1var pones = ["Crystal Star-dance.png?v8", "Jon-dance2.png?v8", "tank-dance.png?v8"]; 2var ponesAni = [22, 22, 22]; 3var ponepat = ["mine", "friend", "friend/Pat"]; 4 5//Countdown on Logo (Main CountDown) 6//var mainCountDownEnable = true; //Display CountDown? --> true or false 7//var mainCountDownDate = new Date("Jan 01, 2021 00:00:00"); //MMM(Jan) DD, YYYY 24H:MM:SS 8//var mainCountDownTitle = "New Years"; // Title for countdown, leave blank for no title. 9//var mainCountDownMsg = ""; // Leave black for no message and leave the 00:00:00:00 on screen. 10//var mainCountDownHideonFinish = 1000; //Does CountDown hide self once finished! 0 = No | # = Length of time in ms until it does (1000 = 1 second) 11 12// Ticker Countdown 13var countDownDate = new Date("Jan 1, 2021 00:00:00").getTime(); //MMM(Jan) DD, YYYY 24H:MM:SS 14var CountDownTxt = "2021-->> [countdown] <<--2021"; //[countdown] <- Add this where the countdown needs to go! 15var CountDownEnd = "HAPPY NEW YEAR 2021"; //00:00:00:00 16 17var bsDate = new Date(); 18var headerextended = false; 19var galleryPage = false; 20var logoFrame = 1; 21var aniHeadFrame = 0; 22var logoAutoPlay = true; 23var logoScrollPlay = true; 24var logoPlay = true; 25var galleryImageEnlarge = false; 26var galleryShareOpen = false; 27var scrolledHeight = 0; 28var scrollBack = 0; 29var galleryItem = ""; 30var galleryID = ""; 31var dmLocked = true; 32var dmFail = false; 33var dmUpdated; 34var dmScroll = 0; 35var currentFPS = 0; 36var recaptchaTimeOut; 37var pauseHeaderAni = false; 38var pizzaEnabled = false; 39var ponesocs; 40var countdownString = ""; 41var countdownInter; 42var test; 43var isOC; 44var wasOC = "nope"; 45var expCountDown = false; 46var expCountDownInterval; 47var sllocation; 48 49startTick(); 50 51//If someone uses the back and foward button in browser 52window.onpopstate = function(e) { 53 if (e.state != null){ 54 if (e.state.page == "dm"){ 55 if (document.getElementById('dmFrame').contentWindow.document.getElementById('pinInput').value != "" && dmFail
55!= true){ 56 document.getElementById('dmFrame').contentWindow.document.getElementById('nsfwScreen').style.width = "100%"; 57 document.getElementById('dmFrame').contentWindow.document.getElementById('nsfwScreen').style.height = "100%"; 58 document.getElementById('dmFrame').contentWindow.document.getElementById('nsfwScreen').innerHTML = "<table style='width:100%;height:100%'><tr style='height:100%'><td style=''><center><div class='divNSFW'><span style='border-radius: 5px 5px 0px 0px;border-bottom: 1px solid #dddddd;font-size:26px;'>Close DM Screen</span><div style='font-size:14px;font-weight:400;padding:10px;'>REMINDER YOU ARE STILL LOGGED IN. Please tell us before you go if you would like to stay logged in so you can easily continue this DM receive notifications when new DMs arrive or would rather be logged out so no one can access this DM using this device (recommended for shared devices but will require to log back in to continue later!)</div><span style='border-radius: 0px 0px 5px 5px;border-top: 1px solid #dddddd;line-height: 200%;'><div class='divNSFWbtn' style='background-color: #8cc14c;' onclick=\"dmStart('closedown');\">Stay Logged IN</div> <div class='divNSFWbtn' style='background-color: #da314b;' onclick=\"dmStart('logout');\">Logout</div></span></div></center></td></tr></table>"; 59 document.getElementById('dmFrame').contentWindow.document.getElementById('nsfwview').style.display=""; 60 }else{ 61 exitDM(); 62 } 63 } 64 } 65}; 66 67$(window).on('popstate', function(){ 68 var urlTag = location.search; 69 if (location.search == "" && location.pathname == "/gallery"){ 70 galControlls("back"); 71 document.getElementById('divCharactorData').style.display = "none"; 72 document.getElementById('charactor').style.display = ""; 73 document.getElementById('charactorRefs').style.display = ""; 74 charactorRef = ""; 75 }else if (urlTag.search("tags") > 0){ 76 galControlls("back"); 77 if (urlTag.search("oc:littlebolt") > 0){ 78 charactorLoad("littlebolt", false); 79 }else if (urlTag.search("oc:pizzapone") > 0){ 80 charactorLoad("pizzapone", false); 81 }else if (urlTag.search("oc:cutewing") > 0){ 82 charactorLoad("cutewing", false); 83 }else if (urlTag.search("oc:crystalstar") > 0){ 84 charactorLoad("crystalstar", false); 85 }else if (urlTag.search("oc:woosh") > 0){ 86 charactorLoad("woosh", false); 87 }else if (urlTag.search("oc:human") > 0){ 88 charactorLoad("human", false); 89 } 90 }else if (location.search != "" && location.pathname == "/gallery"){ 91 loadGalleryView(); 92 } 93}); 94 95function windowSizeChange(){ 96 if(window.innerWidth < 882 || window.innerWidth < window.innerHeight){ //Small Screen 97 document.getElementById('header-waffle').style.display=""; 98 document.getElementById('header-full').style.display="none"; 99 100 if (document.getElementById('leftside') != undefined){ 101 document.getElementById('leftside').style.float = ""; 102 document.getElementById('rightside').style.float = ""; 103 104 document.getElementById('leftside').style.width = "100%"; 105 document.getElementById('rightside').style.width = "90%"; 106 } 107 108 if (document.getElementById('leftsideGal') != undefined){ 109 document.getElementById('leftsideGal').style.float = ""; 110 document.getElementById('rightsideGal').style.float = ""; 111 document.getElementById('rightsideGal').style.borderTop = "1px solid #232426"; 112 document.getElementById('rightsideGal').style.borderLeft = ""; 113 document.getElementById('galleryView').style.flexWrap = "wrap"; 114 115 document.getElementById('leftsideGal').style.width = "100%"; 116 document.getElementById('leftsideGal').style.height = "calc(100% - 130px)"; 117 document.getElementById('rightsideGal').style.width = "100%"; 118 document.getElementById('rightsideGal').style.minWidth = ""; 119 120 if (document.getElementById('galleryImage') != undefined){ 121 document.getElementById('galleryImage').style.maxHeight = (window.innerHeight - 160) + "px"; 122 123 document.getElementById('galleryComBtn').style.top = ""; 124 document.getElementById('galleryComBtn').style.bottom = "0px"; 125 document.getElementById('galleryComBtn').style.left = "50%"; 126 document.getElementById('galleryComBtn').style.right = ""; 127 document.getElementById('galleryComBtn').style.padding = "3px 16px"; 128 document.getElementById('galleryComBtn').style.borderRadius = "10px 10px 0px 0px"; 129 document.getElementById('galleryComBtn').style.transform = "translate(-50%, 0)"; 130 131 if (galleryImageEnlarge == false){ 132 document.getElementById('galleryComBtn').innerHTML = "<i class='fas fa-chevron-down'></i>"; 133 }else{ 134 document.getElementById('galleryComBtn').innerHTML = "<i class='fas fa-chevron-up'></i>"; 135 document.getElementById('leftsideGal').style.height = "100%"; 136 } 137 } 138 } 139 }else{ // Large Screen 140 headerextended = false;
141 document.getElementById('header-extended').style.display="none"; 142 143 document.getElementById('header-waffle').style.display="none"; 144 document.getElementById('header-full').style.display=""; 145 146 if (document.getElementById('leftside') != undefined){ 147 document.getElementById('leftside').style.float = "left"; 148 document.getElementById('rightside').style.float = "left"; 149 150 document.getElementById('leftside').style.width = "70%"; 151 document.getElementById('rightside').style.width = "260px"; 152 } 153 154 if (document.getElementById('leftsideGal') != undefined){ 155 document.getElementById('leftsideGal').style.float = "left"; 156 document.getElementById('rightsideGal').style.float = "right"; 157 document.getElementById('rightsideGal').style.borderTop = ""; 158 document.getElementById('rightsideGal').style.borderLeft = "1px solid #232426"; 159 document.getElementById('galleryView').style.flexWrap = "nowrap"; 160 161 if (document.getElementById('galleryImage') != undefined){ 162 document.getElementById('galleryImage').style.maxHeight = (window.innerHeight - 30) + "px"; 163 164 document.getElementById('galleryComBtn').style.top = "50%"; 165 document.getElementById('galleryComBtn').style.bottom = ""; 166 document.getElementById('galleryComBtn').style.left = ""; 167 document.getElementById('galleryComBtn').style.right = "0px"; 168 document.getElementById('galleryComBtn').style.padding = "16px 5px"; 169 document.getElementById('galleryComBtn').style.borderRadius = "10px 0px 0px 10px"; 170 document.getElementById('galleryComBtn').style.transform = "translate(0, -50%)"; 171 172 if (galleryImageEnlarge == false){ 173 document.getElementById('galleryComBtn').innerHTML = "<i class='fas fa-chevron-right'></i>"; 174 }else{ 175 document.getElementById('galleryComBtn').innerHTML = "<i class='fas fa-chevron-left'></i>"; 176 } 177 } 178 179 document.getElementById('leftsideGal').style.width = "100%"; 180 document.getElementById('leftsideGal').style.height = "100%"; 181 document.getElementById('rightsideGal').style.width = ""; 182 document.getElementById('rightsideGal').style.minWidth = "400px"; 183 } 184 } 185 186 if (galleryPage == true){ 187 if(window.innerWidth < 1023){ 188 $(".flex-item-exp").each(function() { 189 $(this).addClass('flex-item-small flex-item-small-exp').removeClass('flex-item flex-item-exp'); 190 }); 191 $(".flex-item-safe").each(function() { 192 $(this).addClass('flex-item-small flex-item-small-safe').removeClass('flex-item flex-item-safe'); 193 }); 194 $(".flex-item-quest").each(function() { 195 $(this).addClass('flex-item-small flex-item-small-quest').removeClass('flex-item flex-item-quest'); 196 }); 197 $(".flex-item-text").each(function() { 198 $(this).addClass('flex-item-text-small').removeClass('flex-item-text'); 199 }); 200 }else{ 201 $(".flex-item-small-exp").each(function() { 202 $(this).addClass('flex-item flex-item-exp').removeClass('flex-item-small flex-item-small-exp'); 203 }); 204 $(".flex-item-small-safe").each(function() { 205 $(this).addClass('flex-item flex-item-safe').removeClass('flex-item-small flex-item-small-safe'); 206 }); 207 $(".flex-item-small-quest").each(function() { 208 $(this).addClass('flex-item flex-item-quest').removeClass('flex-item-small flex-item-small-quest'); 209 }); 210 $(".flex-item-text-small").each(function() { 211 $(this).addClass('flex-item-text').removeClass('flex-item-text-small'); 212 }); 213 } 214 } 215 216 if (document.getElementById('divOC-bolt') != undefined){ 217 if(window.innerWidth < 550){ 218 document.getElementById('divOC-bolt').style.backgroundImage = "url('')"; 219 document.getElementById('divOC-pizza').style.backgroundImage = "url('')"; 220 document.getElementById('divOC-wing').style.backgroundImage = "url('')"; 221 }else{ 222 document.getElementById('divOC-bolt').style.backgroundImage = "url('images/boltface.png?v1')"; 223 document.getElementById('divOC-pizza').style.backgroundImage = "url('images/pizzaface.png?v1')"; 224 document.getElementById('divOC-wing').style.backgroundImage = "url('images/cuteface.png?v1')"; 225 } 226 } 227} 228 229window.onresize = function() { 230 windowSizeChange(); 231} 232 233function pageLoaded(){ 234 windowSizeChange(); 235 236 if (typeof noheader === 'undefined'){ 237 aniocs(); 238 anilogo(); 239 countdownMain(); 240 countdownFun(); 241 aniHeader(); 242 } 243 244 loadStatCounter(); 245 //reloadCommentCount(); 246} 247 248function pageLoadedGallery(){ 249 galleryPage = true; 250 windowSizeChange(); 251 252 aniocs(); 253 anilogo(); 254 countdownMain(); 255 countdownFun(); 256 aniHeader(); 257 258 loadreCapture("gallery"); 259 loadStatCounter(); 260 //reloadCommentCount(); 261} 262 263function startTick(){ 264 //return; 265 if (document.getElementById('footerdiv') != undefined){ 266 //console.log (+document.getElementById('foottester').offsetTop + +document.getElementById('footerdiv').clientHeight); 267 if (+document.getElementById('foottester').offsetTop + +document.getElementById('footerdiv').clientHeight < window.innerHeight){ 268 document.getElementById('footerdiv').style.position = "fixed";
269 document.getElementById('footerdiv').style.bottom = "0px"; 270 }else{ 271 document.getElementById('footerdiv').style.position = ""; 272 } 273 } 274 275 setTimeout(function(){ startTick(); }, 100); 276} 277 278// When user clicks on screen 279window.onclick = function(event) { 280 if (!event.target.matches('.ignoreBox')) { 281 if (!event.target.matches('.fas')) { 282 if (document.getElementById('typeScreen') != null){ 283 document.getElementById('typeScreen').style.display = "none"; 284 document.getElementById('charaScreen').style.display = "none"; 285 document.getElementById('prefScreen').style.display = "none"; 286 document.getElementById('rateScreen').style.display = "none"; 287 document.getElementById('ocsScreen').style.display = "none"; 288 } 289 } 290 } 291 292 if (!event.target.matches('.ignoreBox')){ 293 if (!event.target.matches('.fas')){ 294 if (document.getElementById('gallerysharebox') != null){ 295 galleryShareOpen = false; 296 document.getElementById('gallerysharebox').style.display = "none"; 297 } 298 } 299 } 300} 301 302function swapStyleSheet(sheet){ 303 document.getElementById('extaStyle').setAttribute('href', sheet); 304} 305 306function charactorLoad(data,freshload){ 307 document.getElementById('divCharactorData').style.display = ""; 308 document.getElementById('charactor').style.display = "none"; 309 document.getElementById('charactorRefs').style.display = "none"; 310 boltCheckID = 0; 311 pizzaCheckID = 0; 312 wingCheckID = 0; 313 starCheckID = 0; 314 wooshCheckID = 0; 315 humanCheckID = 0; 316 otherCheckID = 0; 317 318 if (data == "littlebolt"){ //boltCheckID == 1 319 //document.getElementById('ocPassport').src = "images/passportsmall-bolt.png?v1"; 320 boltCheckID = 1; 321 document.getElementById('divCharactorPic').style.backgroundImage = "url('images/boltimg2.png?v1')"; 322 document.getElementById('divCharactorText').innerHTML = "<span style='font-size:22px;'><b>Little Bolt</b></span><br><b>Age:</b> 24 <b>Sex:</b> Male <b>Race:</b> Pegasus<br><b>Bio:</b><br><span style='font-size:14px;'>Little Bolt is a kind but shy Pegasus who lives in Ponyville mostly with <a class='octerm' href='/gallery?tags=oc:cutewing'>Cute Wing</a>, he is a weather pony who specializes in storms. He was born in Cloudsdale and met <a class='octerm' href='/gallery?tags=oc:cutewing'>Cute Wing</a> whilst in Flight school but lost touch with her when they graduated, he later moved to Ponyville remeeting <a class='octerm' href='/gallery?tags=oc:cutewing'>Cute Wing</a> and later met <a class='octerm' href='/gallery?tags=oc:pizzapone'>PizzaPone</a> while at her party.</span><div id='divCharactorCopy' class='divCharactorCopy borderfix'></div>"; 323 document.getElementById('divCharactorCopy').innerHTML = "Little Bolt is Copyright © Little Bolt 2014"; 324 document.getElementById('divCharactorRefs').innerHTML = "<div class='charactorRefBtnsLeft charactorRefBtns' onclick='loadGalleryItem(\"g43fiVUpCQp\");'>Clean<br>Ref</div><div class='charactorRefBtns' onclick='loadGalleryItem(\"O6ZCmHTrroJ\");'>Explict<br>Ref</div><div class='charactorRefBtnsRight charactorRefBtns' onclick='loadGalleryItem(\"fKiqDmVb5zX\");'>Butt<br>Mark</div>"; 325 //document.getElementById('divCharactorRefs').innerHTML = "<img class='hoverGlow' style='width:43px;cursor:pointer;' onclick='loadGalleryItem(\"g43fiVUpCQp\");' src='images/refboltclean.jpg' /> <img class='hoverGlow' style='width:43px;cursor:pointer;' onclick='loadGalleryItem(\"O6ZCmHTrroJ\");' src='images/refboltexplicit.jpg' /> <img class='hoverGlow' style='width:43px;cursor:pointer;' onclick='loadGalleryItem(\"fKiqDmVb5zX\");' src='images/refboltmark.jpg' />"; 326 isOC = "littlebolt"; 327 }else if (data == "pizzapone"){ //pizzaCheckID == 1 328 //document.getElementById('ocPassport').src = "images/passportsmall-pizza.png?v1"; 329 pizzaCheckID = 1; 330 document.getElementById('divCharactorPic').style.backgroundImage = "url('images/pizzaimg.png?v1')"; 331 document.getElementById('divCharactorText').innerHTML = "<span style='font-size:22px;'><b>PizzaPone</b></span><br><b>Age:</b> 22 <b>Sex:</b> Female <b>Race:</b> Earth<br><b>Bio:</b><br><span style='font-size:14px;'>PizzaPone is an overly excited over the top party loving earth pony, just like Pinkie Pie. She lives in Ponyville with her husband Cookie and daughter Little Slice and runs a successfully Pizza Factory. Her early life is mostly unknown but she was adopted by 2 earth ponies at an early age and lived in Manehattan. She later moved to Ponyville to start a career where she met <a class='octerm' href='/gallery?tags=oc:littlebolt'>Little Bolt</a> and <a class='octerm' href='/gallery?tags=oc:cutewing'>Cute Wing</a> at a party she through becoming friends and BFFs.</span><div id='divCharactorCopy' class='divCharactorCopy borderfix'></div>"; 332 document.getElementById('divCharactorCopy').innerHTML = "PizzaPone is Copyright © Little Bolt 2016"; 333 document.getElementById('divCharactorRefs').innerHTML = "<div class='charactorRefBtnsLeft charactorRefBtns' onclick='loadGalleryItem(\"Jz2LDcUCLr3\");'>Clean<br>Ref</div><div class='charactorRefBtns' onclick='loadGalleryItem(\"n4kWsppbVLt\");'>Explict<br>Ref</div><div class='charactorRefBtnsRight charactorRefBtns' onclick='loadGalleryItem(\"EpakuK53TZL\");'>Butt<br>Mark</div>"; 334 //document.getElementById('divCharactorRefs').innerHTML = "<img class='hoverGlow' style='width:43px;cursor:pointer;' onclick='loadGalleryItem(\"Jz2LDcUCLr3\");' src='images/refpizzaclean.jpg' /> <img class='hoverGlow' style='width:43px;cursor:pointer;' onclick='loadGalleryItem(\"n4kWsppbVLt\");' src='images/refpizzaexplicit.jpg' /> <img class='hoverGlow' style='width:43px;cursor:pointer;' onclick='loadGalleryItem(\"EpakuK53TZL\");' src='images/refpizzamark.jpg' />"; 335 isOC = "pizzapone"; 336 }else if (data == "cutewing"){ //wingCheckID == 1 337 //document.getElementById('ocPassport').src = "images/passportsmall-wing.png?v1"; 338 wingCheckID = 1; 339 document.getElementById('divCharactorPic').style.backgroundImage = "url('images/wingimg.png?v1')"; 340 document.getElementById('divCharactorText').innerHTML = "<span style='font-size:22px;'><b>Cute Wing</b></span><br><b>Age:</b> 23 <b>Sex:</b> Female <b>Race:</b> Pegasus<br><b>Bio:</b><br><span style='font-size:14px;'>Cute Wing is a kind, outgoing and confident Pegasus who lives in Ponyville mostly with <a class='octerm' href='/gallery?tags=oc:littlebolt'>Little Bolt</a> and works as a mailmare. Her talent is in love, relationships and friendship. She was born in Ponyville and has a younger Unicorn sister Crystal Star, she met <a class='octerm' href='/gallery?tags=oc:littlebolt'>Little Bolt</a> while at Flight School in Cloudsdale. She later met <a class='octerm' href='/gallery?tags=oc:pizzapone'>PizzaPone</a> while at her party becoming BFFs.</span><div id='divCharactorCopy' class='divCharactorCopy borderfix'></div>"; 341 document.getElementById('divCharactorCopy').innerHTML = "Cute Wing is Copyright © Little Bolt 2017"; 342 document.getElementById('divCharactorRefs').innerHTML = "<div class='charactorRefBtnsLeft charactorRefBtns' onclick='loadGalleryItem(\"rmW3T41xeDw\");'>Clean<br>Ref</div><div class='charactorRefBtns' onclick='loadGalleryItem(\"Umliz1DAtCq\");'>Explict<br>Ref</div><div class='charactorRefBtnsRight charactorRefBtns' onclick='loadGalleryItem(\"Tw6h6MsiCFP\");'>Butt<br>Mark</div>"; 343 //document.getElementById('divCharactorRefs').innerHTML = "<img class='hoverGlow' style='width:43px;cursor:pointer;' onclick='loadGalleryItem(\"rmW3T41xeDw\");' src='images/refwingclean.jpg' /> <img class='hoverGlow' style='width:43px;cursor:pointer;' onclick='loadGalleryItem(\"Umliz1DAtCq\");' src='images/refwingexplicit.jpg' /> <img class='hoverGlow' style='width:43px;cursor:pointer;' onclick='loadGalleryItem(\"Tw6h6MsiCFP\");' src='images/refwingmark.jpg' />"; 344 isOC = "cutewing"; 345 }else if (data == "crystalstar"){ //wingCheckID == 1 346 //document.getElementById('ocPassport').src = "images/passportsmall-wing.png?v1"; 347 starCheckID = 1; 348 document.getElementById('divCharactorPic').style.backgroundImage = "url('images/crystalimg.png?v1')"; 349 document.getElementById('divCharactorText').innerHTML = "<span style='font-size:22px;'><b>Cyrstal Star</b></span><br><b>Age:</b> 21 <b>Sex:</b> Female <b>Race:</b> Unicorn<br><b>Bio:</b><br><span style='font-size:14px;'>Cystal Star is a young kind Unicorn who lives in Ponyville and is the younger sister of <a class='octerm' href='/gallery?tags=oc:cutewing'>Cute Wing</a>.</span><div id='divCharactorCopy' class='divCharactorCopy borderfix'></div>"; 350 document.getElementById('divCharactorCopy').innerHTML = "Crystal Star is Copyright © Little Bolt 2017"; 351 document.getElementById('divCharactorRefs').innerHTML = ""; 352 //document.getElementById('divCharactorRefs').innerHTML = "<img class='hoverGlow' style='width:43px;cursor:pointer;' onclick='loadGalleryItem(\"rmW3T41xeDw\");' src='images/refwingclean.jpg' /> <img class='hoverGlow' style='width:43px;cursor:pointer;' onclick='loadGalleryItem(\"Umliz1DAtCq\");' src='images/refwingexplicit.jpg' /> <img class='hoverGlow' style='width:43px;cursor:pointer;' onclick='loadGalleryItem(\"Tw6h6MsiCFP\");' src='images/refwingmark.jpg' />"; 353 isOC = "crystalstar"; 354 }else if (data == "woosh"){ //wingCheckID == 1 355 //document.getElementById('ocPassport').src = "images/passportsmall-wing.png?v1"; 356 wooshCheckID = 1; 357 document.getElementById('divCharactorPic').style.backgroundImage = "url('images/wooshimg.png?v1')"; 358 document.getElementById('divCharactorText').innerHTML = "<span style='font-size:22px;'><b>Woosh</b></span><br><b>Age:</b> 22 <b>Sex:</b> Female <b>Race:</b> Bat Pony<br><b>Bio:</b><br><span style='font-size:14px;'>Woosh is a quiet and shy Bat Pony, where she lives is currently unknown. Her talent is flying and she is a fan of the Wonderbolts. She also loves Mangos. Nom.</span><div id='divCharactorCopy' class='divCharactorCopy borderfix'></div>"; 359 document.getElementById('divCharactorCopy').innerHTML = "Woosh is Copyright © Little Bolt 2021"; 360 document.getElementById('divCharactorRefs').innerHTML = ""; 361 //document.getElementById('divCharactorRefs').innerHTML = "<img class='hoverGlow' style='width:43px;cursor:pointer;' onclick='loadGalleryItem(\"rmW3T41xeDw\");' src='images/refwingclean.jpg' /> <img class='hoverGlow' style='width:43px;cursor:pointer;' onclick='loadGalleryItem(\"Umliz1DAtCq\");' src='images/refwingexplicit.jpg' /> <img class='hoverGlow' style='width:43px;cursor:pointer;' onclick='loadGalleryItem(\"Tw6h6MsiCFP\");' src='images/refwingmark.jpg' />"; 362 isOC = "woosh"; 363 }else if (data == "human"){ 364 humanCheckID = 1; 365 document.getElementById('divCharactorPic').style.backgroundImage = "url('images/humanimg.png?v1')"; 366 document.getElementById('divCharactorText').innerHTML = "<span style='font-size:22px;'><b>Unseen Human</b></span><br><b>Age:</b> Adult <b>Sex:</b> Male <b>Race:</b> Earth Human<br><b>Bio:</b><br><span style='font-size:14px;'>Name: [REDACTED] Originated: Earth, UK Located: Equestria<br><br>[REDACTED] is an Earth Human who managed to enter Equestria through unknown means, he is normally only partially seen in content and his face is always obstructed. He seems to have some relation with <a class='octerm' href='/gallery?tags=oc:cutewing'>Cute Wing</a> and is often seen with them (normally in adult situations).<br>(Unseen Human represents me IRL!)</span><div id='divCharactorCopy' class='divCharactorCopy borderfix'></div>"; 367 document.getElementById('divCharactorCopy').innerHTML = "I am Copyright © Little Bolt 2021"; 368 document.getElementById('divCharactorRefs').innerHTML = ""; 369 //document.getElementById('divCharactorRefs').innerHTML = "<img class='hoverGlow' style='width:43px;cursor:pointer;' onclick='loadGalleryItem(\"rmW3T41xeDw\");' src='images/refwingclean.jpg' /> <img class='hoverGlow' style='width:43px;cursor:pointer;' onclick='loadGalleryItem(\"Umliz1DAtCq\");' src='images/refwingexplicit.jpg' /> <img class='hoverGlow' style='width:43px;cursor:pointer;' onclick='loadGalleryItem(\"Tw6h6MsiCFP\");' src='images/refwingmark.jpg' />"; 370 isOC = "human"; 371 }else if (data == "other"){ 372 otherCheckID = 1; 373 document.getElementById('divCharactorData').style.display = "none"; 374 document.getElementById('charactor').style.display = ""; 375 document.getElementById('charactorRefs').style.display = ""; 376 isOC = "other"; 377 }
378 if (isOC != wasOC){ 379 wasOC = isOC; 380 filterIt(); 381 charactorRef = data; 382 } 383} 384 385function charactorClose(){ 386 boltCheckID = 0; 387 pizzaCheckID = 0; 388 wingCheckID = 0; 389 starCheckID = 0; 390 wooshCheckID = 0; 391 humanCheckID = 0; 392 otherCheckID = 0; 393 charactorRef = ""; 394 history.pushState(null, null, 'gallery'); 395 document.getElementById('divCharactorData').style.display = "none"; 396 document.getElementById('charactor').style.display = ""; 397 document.getElementById('charactorRefs').style.display = ""; 398 filterIt(); 399} 400 401function loadreCapture(data){ 402 var token = "fcaptcha"; 403 if (data == "gallery"){ 404 $('#filterFrame').remove(); 405 var filterframe = document.createElement("iframe"); 406 filterframe.id = "filterFrame"; 407 filterframe.src = "gallerydir/filter.php?r=" + token; 408 $("#filterdiv").append(filterframe); 409 410 grecaptcha.ready(function() { 411 grecaptcha.execute('6LdOQ2cUAAAAAE5Y7vmGM7LRwHS2HkUAlivMCT7c', {action: 'social'}) 412 .then(function(token) { 413 414 }); 415 }); 416 417 reloadCommentCount(); 418 } 419} 420 421function loadGalleryView(){ 422 if (location.search != "" && location.pathname == "/gallery"){ 423 doFunction("bgclick"); 424 $.ajax({ 425 type: "GET", 426 url: "gallerydir/data.json", 427 dataType: "text", 428 cache:false, 429 success: function(data) {loadView(data,location.search.replace("?v=", ""));} 430 }); 431 } 432} 433 434function loadGalleryItem(item){ 435 doFunction("bgclick"); 436 $.ajax({ 437 type: "GET", 438 url: "gallerydir/data.json", 439 dataType: "text", 440 cache:false, 441 success: function(data) {loadView(data,item);} 442 }); 443 history.pushState({prevUrl: location.search}, null, "gallery?v=" + item); 444} 445 446function filterIt(data){ 447 if (data === undefined){ 448 document.getElementById('galleryLoading').style.display = ""; 449 } 450 451 var fliterLink = ""; 452 var nsfwLink = ""; 453 if (picCheckID == 1){ 454 fliterLink = fliterLink + "Picture," 455 } 456 if (vidCheckID == 1){ 457 fliterLink = fliterLink + "Video," 458 } 459 if (flaCheckID == 1){ 460 fliterLink = fliterLink + "Flash," 461 } 462 if (miscCheckID == 1){ 463 fliterLink = fliterLink + "Misc," 464 } 465 466 if (boltCheckID == 1){ 467 fliterLink = fliterLink + "bolt," 468 } 469 if (boltCheckID == 2){ 470 fliterLink = fliterLink + "-bolt," 471 } 472 if (pizzaCheckID == 1){ 473 fliterLink = fliterLink + "pizza," 474 } 475 if (pizzaCheckID == 2){ 476 fliterLink = fliterLink + "-pizza," 477 } 478 if (wingCheckID == 1){ 479 fliterLink = fliterLink + "wing," 480 } 481 if (wingCheckID == 2){ 482 fliterLink = fliterLink + "-wing," 483 } 484 if (starCheckID == 1){ 485 fliterLink = fliterLink + "star," 486 } 487 if (starCheckID == 2){ 488 fliterLink = fliterLink + "-star," 489 } 490 if (wooshCheckID == 1){ 491 fliterLink = fliterLink + "woosh," 492 } 493 if (wooshCheckID == 2){ 494 fliterLink = fliterLink + "-woosh," 495 } 496 if (humanCheckID == 1){ 497 fliterLink = fliterLink + "human," 498 } 499 if (humanCheckID == 2){ 500 fliterLink = fliterLink + "-human," 501 } 502 if (otherCheckID == 1){ 503 fliterLink = fliterLink + "other," 504 } 505 if (otherCheckID == 2){ 506 fliterLink = fliterLink + "-other," 507 } 508 509 if (naCheckID == 1){ 510 fliterLink = fliterLink + "na," 511 } 512 if (straightCheckID == 1){ 513 fliterLink = fliterLink + "straight," 514 } 515 if (gayCheckID == 1){ 516 fliterLink = fliterLink + "gay," 517 } 518 if (soloCheckID == 1){ 519 fliterLink = fliterLink + "solo," 520 } 521 522 if (safeCheckID == 1){ 523 fliterLink = fliterLink + "s," 524 } 525 if (questCheckID == 1){ 526 fliterLink = fliterLink + "q," 527 } 528 if (expCheckID == 1){ 529 if (nsfwEnabled == 1){ 530 fliterLink = fliterLink + "e," 531 } 532 } 533 534 if (mustID == 1){ 535 document.getElementById('mustCheck').innerHTML = "Must Have <i class='fas fa-check-circle'></i>"; 536 document.getElementById('mustCheckHelp').innerHTML = "Must have the OCs that are checked even if it has unchecked OCs."; 537 }else{ 538 document.getElementById('mustCheck').innerHTML = "Only Show <i class='fas fa-check-circle'></i>"; 539 document.getElementById('mustCheckHelp').innerHTML = "Only show the OCs that are checked, if it has an unchecked OC don't show it."; 540 } 541 542 if (picCheckID == 1){ 543 document.getElementById('picCheck').innerHTML = "<i class='fas fa-check-circle'></i> Pictures"; 544 }else{ 545 document.getElementById('picCheck').innerHTML = "<i class='fas fa-times-circle'></i> Pictures"; 546 } 547 548 if (vidCheckID == 1){ 549 document.getElementById('vidCheck').innerHTML = "<i class='fas fa-check-circle'></i> Videos"; 550 }else{ 551 document.getElementById('vidCheck').innerHTML = "<i class='fas fa-times-circle'></i> Videos"; 552 } 553 554 if (flaCheckID == 1){ 555 document.getElementById('flaCheck').innerHTML = "<i class='fas fa-check-circle'></i> Flash"; 556 }else{ 557 document.getElementById('flaCheck').innerHTML = "<i class='fas fa-times-circle'></i> Flash"; 558 } 559 560 if (miscCheckID == 1){ 561 document.getElementById('miscCheck').innerHTML = "<i class='fas fa-check-circle'></i> Downloads"; 562 }else{ 563 document.getElementById('miscCheck').innerHTML = "<i class='fas fa-times-circle'></i> Downloads"; 564 } 565 566 if (boltCheckID == 1){ 567 document.getElementById('boltCheck').innerHTML = "<i class='fas fa-plus-circle'></i> Little Bolt"; 568 }else if (boltCheckID == 2){ 569 document.getElementById('boltCheck').innerHTML = "<i class='fas fa-minus-circle'></i> Little Bolt"; 570 }else{ 571 document.getElementById('boltCheck').innerHTML = "<i class='fas fa-dot-circle'></i> Little Bolt"; 572 } 573 574 if (pizzaCheckID == 1){ 575 document.getElementById('pizzaCheck').innerHTML = "<i class='fas fa-plus-circle'></i> PizzaPone"; 576 }else if (pizzaCheckID == 2){ 577 document.getElementById('pizzaCheck').innerHTML = "<i class='fas fa-minus-circle'></i> PizzaPone"; 578 }else{ 579 document.getElementById('pizzaCheck').innerHTML = "<i class='fas fa-dot-circle'></i> PizzaPone"; 580 } 581 582 if (wingCheckID == 1){ 583 document.getElementById('wingCheck').innerHTML = "<i class='fas fa-plus-circle'></i> Cute Wing"; 584 }else if (wingCheckID == 2){ 585 document.getElementById('wingCheck').innerHTML = "<i class='fas fa-minus-circle'></i> Cute Wing"; 586 }else{ 587 document.getElementById('wingCheck').innerHTML = "<i class='fas fa-dot-circle'></i> Cute Wing"; 588 } 589 590 if (starCheckID == 1){ 591 document.getElementById('starCheck').innerHTML = "<i class='fas fa-plus-circle'></i> Crystal Star"; 592 }else if (starCheckID == 2){ 593 document.getElementById('starCheck').innerHTML = "<i class='fas fa-minus-circle'></i> Crystal Star"; 594 }else{ 595 document.getElementById('starCheck').innerHTML = "<i class='fas fa-dot-circle'></i> Crystal Star"; 596 } 597 598 if (wooshCheckID == 1){ 599 document.getElementById('wooshCheck').innerHTML = "<i class='fas fa-plus-circle'></i> Woosh"; 600 }else if (wooshCheckID == 2){ 601 document.getElementById('wooshCheck').innerHTML = "<i class='fas fa-minus-circle'></i> Woosh"; 602 }else{ 603 document.getElementById('wooshCheck').innerHTML = "<i class='fas fa-dot-circle'></i> Woosh"; 604 } 605 606 if (humanCheckID == 1){ 607 document.getElementById('humanCheck').innerHTML = "<i class='fas fa-plus-circle'></i> Human"; 608 }else if (humanCheckID == 2){ 609 document.getElementById('humanCheck').innerHTML = "<i class='fas fa-minus-circle'></i> Human"; 610 }else{ 611 document.getElementById('humanCheck').innerHTML = "<i class='fas fa-dot-circle'></i> Human"; 612 } 613 614 if (otherCheckID == 1){ 615 document.getElementById('otherCheck').innerHTML = "<i class='fas fa-plus-circle'></i> Other"; 616 }else if (otherCheckID == 2){ 617 document.getElementById('otherCheck').innerHTML = "<i class='fas fa-minus-circle'></i> Other"; 618 }else{ 619 document.getElementById('otherCheck').innerHTML = "<i class='fas fa-dot-circle'></i> Other"; 620 } 621 622 if (naCheckID == 1){ 623 document.getElementById('naCheck').innerHTML = "<i class='fas fa-check-circle'></i> N/A"; 624 }else{ 625 document.getElementById('naCheck').innerHTML = "<i class='fas fa-times-circle'></i> N/A"; 626 } 627 628 if (straightCheckID == 1){ 629 document.getElementById('straightCheck').innerHTML = "<i class='fas fa-check-circle'></i> Straight"; 630 }else{ 631 document.getElementById('straightCheck').innerHTML = "<i class='fas fa-times-circle'></i> Straight"; 632 } 633 634 if (gayCheckID == 1){ 635 document.getElementById('gayCheck').innerHTML = "<i class='fas fa-check-circle'></i> Gay"; 636 }else{ 637 document.getElementById('gayCheck').innerHTML = "<i class='fas fa-times-circle'></i> Gay"; 638 } 639 640 if (soloCheckID == 1){ 641 document.getElementById('soloCheck').innerHTML = "<i class='fas fa-check-circle'></i> Solo"; 642 }else{ 643 document.getElementById('soloCheck').innerHTML = "<i class='fas fa-times-circle'></i> Solo"; 644 } 645 646 if (safeCheckID == 1){ 647 document.getElementById('safeCheck').innerHTML = "<i class='fas fa-check-circle'></i> Safe"; 648 }else{ 649 document.getElementById('safeCheck').innerHTML = "<i class='fas fa-times-circle'></i> Safe"; 650 } 651 652 if (questCheckID == 1){ 653 document.getElementById('questCheck').innerHTML = "<i class='fas fa-check-circle'></i> Questionable"; 654 }else{ 655 document.getElementById('questCheck').innerHTML = "<i class='fas fa-times-circle'></i> Questionable"; 656 } 657 658 if (expCheckID == 1){ 659 if (nsfwEnabled == 1){ 660 document.getElementById('expCheck').innerHTML = "<i class='fas fa-check-circle'></i> Explicit"; 661 document.getElementById('prefer').style.display = ""; 662 }else{ 663 galleryFilter('showWarningEXP'); 664 } 665 }else{ 666 document.getElementById('expCheck').innerHTML = "<i class='fas fa-times-circle'></i> Explicit"; 667 document.getElementById('prefer').style.display = "none"; 668 } 669
670 fliterLink = fliterLink.substring(0, fliterLink.length - 1); 671 672 $('#filterFrame').remove(); 673 var filterframe = document.createElement("iframe"); 674 filterframe.id = "filterFrame"; 675 filterframe.src = "gallerydir/filter.php?t=" + fliterLink + "&m=" + mustID; 676 $("#filterdiv").append(filterframe); 677} 678 679function galleryFilter(data){ 680 if (data == "filter"){ 681 var fliterLink = ""; 682 var nsfwLink = ""; 683 if (picCheckID == 1){ 684 fliterLink = fliterLink + "Picture," 685 } 686 if (vidCheckID == 1){ 687 fliterLink = fliterLink + "Video," 688 } 689 if (flaCheckID == 1){ 690 fliterLink = fliterLink + "Flash," 691 } 692 if (miscCheckID == 1){ 693 fliterLink = fliterLink + "Misc," 694 } 695 696 if (boltCheckID == 1){ 697 fliterLink = fliterLink + "bolt," 698 } 699 if (boltCheckID == 2){ 700 fliterLink = fliterLink + "-bolt," 701 } 702 if (pizzaCheckID == 1){ 703 fliterLink = fliterLink + "pizza," 704 } 705 if (pizzaCheckID == 2){ 706 fliterLink = fliterLink + "-pizza," 707 } 708 if (wingCheckID == 1){ 709 fliterLink = fliterLink + "wing," 710 } 711 if (wingCheckID == 2){ 712 fliterLink = fliterLink + "-wing," 713 } 714 if (starCheckID == 1){ 715 fliterLink = fliterLink + "star," 716 } 717 if (starCheckID == 2){ 718 fliterLink = fliterLink + "-star," 719 } 720 if (wooshCheckID == 1){ 721 fliterLink = fliterLink + "woosh," 722 } 723 if (wooshCheckID == 2){ 724 fliterLink = fliterLink + "-woosh," 725 } 726 if (humanCheckID == 1){ 727 fliterLink = fliterLink + "human," 728 } 729 if (humanCheckID == 2){ 730 fliterLink = fliterLink + "-human," 731 } 732 if (otherCheckID == 1){ 733 fliterLink = fliterLink + "other," 734 } 735 if (otherCheckID == 2){ 736 fliterLink = fliterLink + "-other," 737 } 738 739 if (naCheckID == 1){ 740 fliterLink = fliterLink + "na," 741 } 742 if (straightCheckID == 1){ 743 fliterLink = fliterLink + "straight," 744 } 745 if (gayCheckID == 1){ 746 fliterLink = fliterLink + "gay," 747 } 748 if (soloCheckID == 1){ 749 fliterLink = fliterLink + "solo," 750 } 751 752 if (safeCheckID == 1){ 753 fliterLink = fliterLink + "s," 754 } 755 if (questCheckID == 1){ 756 fliterLink = fliterLink + "q," 757 } 758 if (expCheckID == 1){ 759 fliterLink = fliterLink + "e," 760 } 761 762 fliterLink = fliterLink.substring(0, fliterLink.length - 1); 763 window.location.href = "gallery?t=" + fliterLink + "&m=" + mustID; 764 } 765 766 if (data == "type"){ 767 if (document.getElementById('typeScreen').style.display == "none"){ 768 document.getElementById('typeScreen').style.display = ""; 769 }else{ 770 document.getElementById('typeScreen').style.display = "none"; 771 } 772 } 773 if (data == "chara"){ 774 if (document.getElementById('charaScreen').style.display == "none"){ 775 document.getElementById('charaScreen').style.display = ""; 776 }else{ 777 document.getElementById('charaScreen').style.display = "none"; 778 } 779 } 780 if (data == "pref"){ 781 if (document.getElementById('prefScreen').style.display == "none"){ 782 document.getElementById('prefScreen').style.display = ""; 783 }else{ 784 document.getElementById('prefScreen').style.display = "none"; 785 } 786 } 787 if (data == "rate"){ 788 if (document.getElementById('rateScreen').style.display == "none"){ 789 document.getElementById('rateScreen').style.display = ""; 790 }else{ 791 document.getElementById('rateScreen').style.display = "none"; 792 } 793 } 794 if (data == "ocs"){ 795 if (document.getElementById('ocsScreen').style.display == "none"){ 796 document.getElementById('ocsScreen').style.display = ""; 797 }else{ 798 document.getElementById('ocsScreen').style.display = "none"; 799 } 800 } 801 802 if (data == "must"){ 803 if (mustID == 0){ 804 mustID = 1; 805 document.getElementById('mustCheck').innerHTML = "Must Have <i class='fas fa-check-circle'></i>"; 806 document.getElementById('mustCheckHelp').innerHTML = "Must have the OCs that are checked even if it has unchecked OCs."; 807 }else{ 808 mustID = 0; 809 document.getElementById('mustCheck').innerHTML = "Only Show <i class='fas fa-check-circle'></i>"; 810 document.getElementById('mustCheckHelp').innerHTML = "Only show the OCs that are checked, if it has an unchecked OC don't show it."; 811 } 812 filterIt(); 813 } 814 815 if (data == "pictures"){ 816 if (picCheckID == 0){ 817 picCheckID = 1; 818 }else{ 819 picCheckID = 0; 820 } 821 filterIt(); 822 } 823 if (data == "videos"){ 824 if (vidCheckID == 0){ 825 vidCheckID = 1; 826 }else{ 827 vidCheckID = 0; 828 }
829 filterIt(); 830 } 831 if (data == "flash"){ 832 if (flaCheckID == 0){ 833 flaCheckID = 1; 834 }else{ 835 flaCheckID = 0; 836 } 837 filterIt(); 838 } 839 if (data == "misc"){ 840 if (miscCheckID == 0){ 841 miscCheckID = 1; 842 }else{ 843 miscCheckID = 0; 844 } 845 filterIt(); 846 } 847 848 if (data == "bolt"){ 849 if (boltCheckID == 0){ 850 boltCheckID = 1; 851 }else if (boltCheckID == 1){ 852 boltCheckID = 2; 853 }else{ 854 boltCheckID = 0; 855 } 856 filterIt(); 857 } 858 if (data == "pizza"){ 859 if (pizzaCheckID == 0){ 860 pizzaCheckID = 1; 861 }else if (pizzaCheckID == 1){ 862 pizzaCheckID = 2; 863 }else{ 864 pizzaCheckID = 0; 865 } 866 filterIt(); 867 } 868 if (data == "wing"){ 869 if (wingCheckID == 0){ 870 wingCheckID = 1; 871 }else if (wingCheckID == 1){ 872 wingCheckID = 2; 873 }else{ 874 wingCheckID = 0; 875 } 876 filterIt(); 877 } 878 if (data == "star"){ 879 if (starCheckID == 0){ 880 starCheckID = 1; 881 }else if (starCheckID == 1){ 882 starCheckID = 2; 883 }else{ 884 starCheckID = 0; 885 } 886 filterIt(); 887 } 888 if (data == "woosh"){ 889 if (wooshCheckID == 0){ 890 wooshCheckID = 1; 891 }else if (wooshCheckID == 1){ 892 wooshCheckID = 2; 893 }else{ 894 wooshCheckID = 0; 895 } 896 filterIt(); 897 } 898 if (data == "human"){ 899 if (humanCheckID == 0){ 900 humanCheckID = 1; 901 }else if (humanCheckID == 1){ 902 humanCheckID = 2; 903 }else{ 904 humanCheckID = 0; 905 } 906 filterIt(); 907 } 908 if (data == "other"){ 909 if (otherCheckID == 0){ 910 otherCheckID = 1; 911 }else if (otherCheckID == 1){ 912 otherCheckID = 2; 913 }else{ 914 otherCheckID = 0; 915 } 916 filterIt(); 917 } 918 919 if (data == "na"){ 920 if (naCheckID == 0){ 921 naCheckID = 1; 922 }else{ 923 naCheckID = 0; 924 } 925 filterIt(); 926 } 927 if (data == "straight"){ 928 if (straightCheckID == 0){ 929 straightCheckID = 1; 930 }else{ 931 straightCheckID = 0; 932 } 933 filterIt(); 934 } 935 if (data == "gay"){ 936 if (gayCheckID == 0){ 937 gayCheckID = 1; 938 }else{ 939 gayCheckID = 0; 940 } 941 filterIt(); 942 } 943 if (data == "solo"){ 944 if (soloCheckID == 0){ 945 soloCheckID = 1; 946 }else{ 947 soloCheckID = 0; 948 } 949 filterIt(); 950 } 951 952 if (data == "safe"){ 953 if (safeCheckID == 0){ 954 safeCheckID = 1; 955 }else{ 956 safeCheckID = 0; 957 } 958 filterIt(); 959 } 960 if (data == "quest"){ 961 if (questCheckID == 0){ 962 questCheckID = 1; 963 }else{ 964 questCheckID = 0; 965 } 966 filterIt(); 967 } 968 if (data == "exp"){ 969 if (expCheckID == 0){ 970 if (nsfwEnabled == 1){ 971 expCheckID = 1; 972 nsfwEnabled = 1; 973 document.getElementById('prefer').style.display = ""; 974 filterIt(); 975 }else{ 976 galleryFilter('showWarningEXP'); 977 } 978 }else{ 979 expCheckID = 0; 980 981 naCheckID = 1; 982 straightCheckID = 1; 983 gayCheckID = 1; 984 soloCheckID = 1; 985 986 document.getElementById('naCheck').innerHTML = "<i class='fas fa-check-circle'></i> N/A"; 987 document.getElementById('straightCheck').innerHTML = "<i class='fas fa-check-circle'></i> Straight"; 988 document.getElementById('gayCheck').innerHTML = "<i class='fas fa-check-circle'></i> Gay"; 989 document.getElementById('soloCheck').innerHTML = "<i class='fas fa-check-circle'></i> Solo"; 990 991 document.getElementById('prefer').style.display = "none";
992 filterIt(); 993 } 994 } 995 996 if (data == "reset"){ 997 boltCheckID = 0; 998 pizzaCheckID = 0; 999 wingCheckID = 0; 1000 starCheckID = 0; 1001 wooshCheckID = 0; 1002 humanCheckID = 0; 1003 otherCheckID = 0; 1004 filterIt(); 1005 } 1006 1007 if (data == "showWarningEXP"){ 1008 document.getElementById('nsfwScreen').style.width = "100%"; 1009 document.getElementById('nsfwScreen').style.height = "100%"; 1010 document.getElementById('nsfwScreen').innerHTML = "<table style='width:100%;height:100%'><tr style='height:100%'><td style=''><center><div class='divNSFW'><span style='border-radius: 5px 5px 0px 0px;border-bottom: 1px solid #dddddd;font-size:26px;'>Explicit Confirmation</span><div style='font-size:14px;font-weight:400;padding:10px;'><img style='width:115px;' src='images/18sign2.png'><br><br>The filter that you are trying to enable contains explicit adult content that is inappropriate for people under the age of 18, by continuing you agree that you are at least 18 years old and take no issue seeing explicit content detailed below.<br><br><b>Content may Include:</b><br>Visible/Detailed Genitalia, Sexual Intercourse (Staight, Gay and Solo), Soft Vore, Cartoons (Including animal and human).<br><br><b>Do you agree and happy to proceed?</b></div><span style='border-radius: 0px 0px 5px 5px;border-top: 1px solid #dddddd;line-height: 200%;'><div id='expBtnYes' class='divNSFWbtn' style='background-color: #bcbcbc;' onclick=\"expBtnPress('filter','0','0');\">Please Wait</div><div class='divNSFWbtn' style='background-color: #da314b;' onclick=\"galleryFilter('cancelExp');clearInterval(expCountDownInterval);\">No</div></span></div></center></td></tr></table>"; 1011 startExpCountDown(); 1012 1013 document.getElementById('nsfwview').style.display=""; 1014 } 1015 if (data == "enableExp"){ 1016 expCheckID = 1; 1017 nsfwEnabled = 1; 1018 document.getElementById('expCheck').innerHTML = "<i class='fas fa-check-circle'></i> Explicit"; 1019 document.getElementById('prefer').style.display = ""; 1020 document.getElementById('nsfwview').style.display="none"; 1021 filterIt(); 1022 } 1023 if (data == "enableQuest"){ 1024 questCheckID = 1; 1025 document.getElementById('questCheck').innerHTML = "<i class='fas fa-check-circle'></i> Questionable"; 1026 document.getElementById('nsfwview').style.display="none"; 1027 filterIt(); 1028 } 1029 if (data == "enableAll"){ 1030 expCheckID = 1; 1031 questCheckID = 1; 1032 nsfwEnabled = 1; 1033 document.getElementById('expCheck').innerHTML = "<i class='fas fa-check-circle'></i> Explicit"; 1034 document.getElementById('questCheck').innerHTML = "<i class='fas fa-check-circle'></i> Questionable"; 1035 document.getElementById('prefer').style.display = ""; 1036 document.getElementById('nsfwview').style.display="none"; 1037 filterIt(); 1038 } 1039 if (data == "cancelExp"){ 1040 expCheckID = 0; 1041 nsfwEnabled = 0; 1042 document.getElementById('expCheck').innerHTML = "<i class='fas fa-times-circle'></i> Explicit"; 1043 document.getElementById('prefer').style.display = "none"; 1044 document.getElementById('nsfwview').style.display="none"; 1045 } 1046} 1047 1048function expBtnPress(type,item,id){ 1049 if (expCountDown == true){ 1050 if (type == "filter"){ 1051 galleryFilter('enableExp'); 1052 }else if (type == "direct"){ 1053 imageClick(item,id); 1054 galleryFilter('enableAll'); 1055 document.getElementById('nsfwview').style.display='none'; 1056 } 1057 } 1058} 1059 1060function startExpCountDown(){ 1061 var countdownTimer = 7; 1062 expCountDown = false; 1063 expCountDownInterval = setInterval(function () { 1064 if (countdownTimer > 0){ 1065 if (countdownTimer > 5){ 1066 if (document.getElementById('expBtnYes') != undefined){ 1067 document.getElementById('expBtnYes').innerHTML = "Please Wait"; 1068 document.getElementById('expBtnYes').style.backgroundColor = "#bcbcbc"; 1069 } 1070 }else{ 1071 if (document.getElementById('expBtnYes') != undefined){ 1072 document.getElementById('expBtnYes').innerHTML = "" + countdownTimer + ""; 1073 document.getElementById('expBtnYes').style.backgroundColor = "#bcbcbc"; 1074 } 1075 } 1076 countdownTimer--; 1077 }else{ 1078 if (document.getElementById('expBtnYes') != undefined){ 1079 document.getElementById('expBtnYes').innerHTML = "Yes"; 1080 document.getElementById('expBtnYes').style.backgroundColor = "#8cc14c"; 1081 } 1082 expCountDown = true; 1083 clearInterval(expCountDownInterval); 1084 } 1085 }, 1000); 1086} 1087 1088function showHelp(data){ 1089 if (data == "ocs"){ 1090 document.getElementById('mustCheckHelp').innerHTML = "<div style='width:100%;text-align:center;margin-bottom:4px;'>Filters for characters work diffently!</div><div style='width:100%;margin-bottom:4px;'><i class='fas fa-dot-circle'></i> <b>Neutral:</b> These characters do not affect the filters but will be affected!</div><div style='width:100%;margin-bottom:4px;'><i class='fas fa-plus-circle'></i> <b>Include:</b> Any content with these characters must be included unless it contains a removed character!</div><div style='width:100%;'><i class='fas fa-minus-circle'></i> <b>Remove:</b> Any content with these characters must be removed even if it contains an included character!</div>"; 1091 document.getElementById('mustCheckHelp').style.display = ""; 1092 }else if (data == "close"){ 1093 document.getElementById('mustCheckHelp').style.display = "none"; 1094 } 1095} 1096 1097function showRateHelp(data){ 1098 if (data == "safe"){ 1099 document.getElementById('rateCheckHelp').style.display = ""; 1100 document.getElementById('rateCheckHelp').style.top = "55px"; //-5 1101 document.getElementById('rateCheckHelp').innerHTML = "<b>Safe (PG)</b><br>
1101Contains no genitalia, sexual or explicit references or content and will not contain any fetishes."; 1102 }else if (data == "quest"){ 1103 document.getElementById('rateCheckHelp').style.display = ""; 1104 document.getElementById('rateCheckHelp').style.top = "70px"; //13 1105 document.getElementById('rateCheckHelp').innerHTML = "<b>Questionable (PG-13)</b><br>Contains sexual non explicit references but no sexual acts or detailed genitalia (Might be visible under clothing) OR/AND contain soft fetishes like soft vore and hoof fetish!"; 1106 }else if (data == "exp"){ 1107 document.getElementById('rateCheckHelp').style.display = ""; 1108 document.getElementById('rateCheckHelp').style.top = "85px"; //33 1109 document.getElementById('rateCheckHelp').innerHTML = "<b>Explicit (18+)</b><br>Contains clear explicit sexual content, visible/detailed genitalia and can contain harder or/and more sexual fetishes!"; 1110 }else if (data == "close"){ 1111 document.getElementById('rateCheckHelp').style.display = "none"; 1112 document.getElementById('rateCheckHelp').innerHTML = ""; 1113 } 1114} 1115 1116function loadView(data,id){ 1117 var obj = JSON.parse(data); 1118 1119 for (var key in obj) { 1120 if (obj.hasOwnProperty(key)){ 1121 if (key == id){ 1122 galleryItem = obj[key]; 1123 galleryID = id; 1124 1125 if (obj[key].rating == "e" && nsfwEnabled == 0){ 1126 document.getElementById('nsfwScreen').style.width = "100%"; 1127 document.getElementById('nsfwScreen').style.height = "100%"; 1128 document.getElementById('nsfwScreen').innerHTML = "<table style='width:100%;height:100%'><tr style='height:100%'><td style=''><center><div class='divNSFW'><span style='border-radius: 5px 5px 0px 0px;border-bottom: 1px solid #dddddd;font-size:26px;'>Explicit Confirmation</span><div style='font-size:14px;font-weight:400;padding:10px;'><img style='width:115px;' src='images/18sign2.png'><br><br>The content you are trying to view contains explicit adult scenes that is inappropriate for people under the age of 18, by continuing you agree that you are at least 18 years old and take no issue seeing explicit content detailed below.<br><br><b>Content may Include:</b><br>Visible/Detailed Genitalia, Sexual Intercourse (Staight, Gay and Solo), Soft Vore, Cartoons (Including animal and human).<span id='expTagInfo' style='text-transform: capitalize;display:none;'></span><br><br><b>Do you agree and happy to proceed?</b></div><span style='border-radius: 0px 0px 5px 5px;border-top: 1px solid #dddddd;line-height: 200%;'><div id='expBtnYes' class='divNSFWbtn' style='background-color: #bcbcbc;' onclick=\"expBtnPress('direct',galleryItem,galleryID);\">Please Wait</div><div class='divNSFWbtn' style='background-color: #da314b;' onclick=\"doFunction('cancel');history.pushState(null, null, 'gallery');clearInterval(expCountDownInterval);\">No</div></span></div></center></td></tr></table>"; 1129 startExpCountDown(); 1130 1131 document.getElementById('expTagInfo').innerHTML = document.getElementById('expTagInfo').innerHTML + "<b>Content Includes:</b><br>"; 1132 document.getElementById('expTagInfo').innerHTML = document.getElementById('expTagInfo').innerHTML + "Explicit, "; 1133 document.getElementById('expTagInfo').innerHTML = document.getElementById('expTagInfo').innerHTML + obj[key].type + ", "; 1134 var tagArray = obj[key].tags.split(","); 1135 for(var i = 0; i < tagArray.length; i++){ 1136 if (tagArray[i] == "bolt"){ 1137 document.getElementById('expTagInfo').innerHTML = document.getElementById('expTagInfo').innerHTML + "Little Bolt, "; 1138 } 1139 if (tagArray[i] == "pizza"){ 1140 document.getElementById('expTagInfo').innerHTML = document.getElementById('expTagInfo').innerHTML + "PizzaPone, "; 1141 } 1142 if (tagArray[i] == "wing"){ 1143 document.getElementById('expTagInfo').innerHTML = document.getElementById('expTagInfo').innerHTML + "Cute Wing, "; 1144 } 1145 if (tagArray[i] == "star"){ 1146 document.getElementById('expTagInfo').innerHTML = document.getElementById('expTagInfo').innerHTML + "Crystal Star, "; 1147 } 1148 if (tagArray[i] == "woosh"){ 1149 document.getElementById('expTagInfo').innerHTML = document.getElementById('expTagInfo').innerHTML + "Woosh, "; 1150 } 1151 if (tagArray[i] == "human"){ 1152 document.getElementById('expTagInfo').innerHTML = document.getElementById('expTagInfo').innerHTML + "Human, "; 1153 } 1154 if (tagArray[i] == "other"){ 1155 document.getElementById('expTagInfo').innerHTML = document.getElementById('expTagInfo').innerHTML + "Other, "; 1156 } 1157 } 1158 document.getElementById('expTagInfo').innerHTML = document.getElementById('expTagInfo').innerHTML + obj[key].pref + ""; 1159 1160 1161 document.getElementById('nsfwview').style.display=""; 1162 }else if (obj[key].rating == "q"){ 1163 galleryFilter('enableQuest'); 1164 imageClick(galleryItem,galleryID); 1165 }else{ 1166 imageClick(galleryItem,galleryID); 1167 } 1168 } 1169 } 1170 } 1171} 1172 1173function imageClick(data,id){ 1174 scrollBack = scrolledHeight; 1175 1176 window.scrollTo(0, 0); 1177 1178 document.getElementById('galleryView').style.display = ""; 1179 document.getElementById('galleryList').style.display = "none"; 1180 document.getElementById('headerlogo').style.display = "none"; 1181 //document.getElementById('headerTxtBG').style.display = "none"; 1182 logoAutoPlay = false;
1183 pauseHeaderAni = true; 1184 1185 if (isNaN(data) && data != ""){ 1186 var theKey = id; 1187 var theURL = data.url; 1188 var theThumb = data.thumb; 1189 var theTitle = data.title; 1190 var theType = data.type; 1191 var theTypeIcon = ""; 1192 var artistImgReplace = ""; 1193 var artistImg = data.img; 1194 var artistImgLink = ""; 1195 var artistLink = data.link; 1196 var theRating = data.rating; 1197 var thePref = data.pref; 1198 var theTags = data.tags; 1199 var theArtist = data.artist; 1200 var theNote = data.note; 1201 var theMsg = data.msg; 1202 1203 document.title = "Little Bolt | Gallery | " + theTitle + " (" + theKey + ")"; 1204 1205 if (data.multi === undefined){ 1206 var multiVer = false; 1207 }else if (data.multi.length < 1){ 1208 var multiVer = false; 1209 }else{ 1210 var multiVer = data.multi; 1211 } 1212 1213 if (data.sound === undefined){ 1214 var theSound = "false"; 1215 }else{ 1216 var theSound = data.sound; 1217 } 1218 1219 if (theArtist != ""){ 1220 theArtist = theArtist; 1221 } 1222 if (theNote != ""){ 1223 theNote = theNote + "<br><br>"; 1224 } 1225 if (theMsg != ""){ 1226 theMsg = theMsg + "<br><br>"; 1227 } 1228 if (artistImg == ""){ 1229 artistImg = "images/error/error/error9000.png"; 1230 } 1231 1232 if (theRating == "e"){ 1233 theRating = "Explicit"; 1234 theRatingD = "EXPLICIT"; 1235 }else if (theRating == "q"){ 1236 theRating = "Questionable"; 1237 theRatingD = "QUESTIONABLE"; 1238 }else if (theRating == "s"){ 1239 theRating = "Safe"; 1240 theRatingD = "SAFE"; 1241 } 1242 1243 if (theType.toLowerCase() == "picture" || theType.toLowerCase() == "pic" || theType.toLowerCase() == "p"){ 1244 theTypeIcon = "<i class='fas fa-image'></i>"; 1245 }else if (theType.toLowerCase() == "video" || theType.toLowerCase() == "vid" || theType.toLowerCase() == "v"){ 1246 theTypeIcon = "<i class='fas fa-video'></i>"; 1247 }else if (theType.toLowerCase() == "flash" || theType.toLowerCase() == "f"){ 1248 theTypeIcon = "<i class='fab fa-adobe'></i>"; 1249 }else if (theType.toLowerCase() == "misc" || theType.toLowerCase() == "m" || theType.toLowerCase() == "download"){ 1250 theTypeIcon = "<i class='fas fa-download'></i>"; 1251 } 1252 1253 if (artistLink != ""){ 1254 theArtist = "<a href='" + artistLink + "' target='blank'>" + theArtist + "</a>"; 1255 artistImgLink = "<a href='" + artistLink + "' target='blank'><img src='" + artistImg + "' onerror=\"this.src='" + artistImgReplace + "'\" style='width:100%;height:100%;'></a>"; 1256 }else{ 1257 artistImgLink = "<img src='" + artistImg + "' onerror=\"this.src='" + artistImgReplace + "'\" style='width:100%;height:100%;'>"; 1258 } 1259 1260 if (theType.toLowerCase() == "picture" || theType.toLowerCase() == "pic" || theType.toLowerCase() == "p"){ 1261 artistImgReplace = "images/icons/image.png"; 1262 }else if (theType.toLowerCase() == "video" || theType.toLowerCase() == "vid" || theType.toLowerCase() == "v"){ 1263 artistImgReplace = "images/icons/video.png"; 1264 }else if (theType.toLowerCase() == "flash" || theType.toLowerCase() == "f"){ 1265 artistImgReplace = "images/icons/flash1.png"; 1266 }else if (theType.toLowerCase() == "misc" || theType.toLowerCase() == "m" || theType.toLowerCase() == "download"){ 1267 artistImgReplace = "images/icons/misc.png"; 1268 } 1269 1270 artistImgReplace = "images/icons/error.png"; 1271 1272 var theWidth = Math.floor(document.getElementById('leftsideGal').clientWidth/100*90); 1273 var theHeight = theWidth / 16 * 9; 1274 1275 var theURLfileDir = theURL.replace("gallerydir/files/", ""); 1276 var theURLrefDir = theURLfileDir.replace("gallerydir/refs/", ""); 1277 1278 DISQUS.reset({ 1279 reload: true, 1280 config: function () { 1281 this.page.identifier = "G-" + theKey; 1282 this.page.title = "Gallery | " + theTitle + " [" + theType + "/" + theRatingD + "]"; 1283 this.page.url = "https://littlebolt.me/gallery?v=" + theKey; 1284 } 1285 }); 1286 1287 document.getElementById('galleryControls1').style.display = ""; 1288 document.getElementById('galleryControls2').style.display = ""; 1289 document.getElementById('galleryControls3').style.display = ""; 1290 document.getElementById('galleryControls4').style.display = ""; 1291 document.getElementById('gallerySideExtra').style.display = "none"; 1292 1293 if (theType == "Picture"){ 1294 document.getElementById('galleryImg').innerHTML = "<img id='galleryImage' style='visibility:hidden;max-width:95%;height:auto;max-height:" + (window.innerHeight - 30) + "px;box-shadow: 0px 0px 8px #29abe2;border: 1px #29abe2 solid;background-color: #ffffff;' src='" + theURL + "' onload='document.getElementById(\"galleryImage\").style.visibility=\"visible\"'>";
1295 document.getElementById('galleryControls1').innerHTML = "<div class='galleryControls2' onclick='window.open(\"" + theURL + "\", \"_blank\");'><i class='fas fa-cloud-download-alt'></i> Download</div>"; 1296 document.getElementById('galleryControls2').innerHTML = "<div class='galleryControls2 ignoreBox' onclick='galleryShare();' style='position: relative;'><i class='fas fa-share-square'></i> Share<div class='galleryShareBox ignoreBox' id='gallerysharebox' style='display:none;'>Share Link<br><input class='ignoreBox' type='text' name='' value='" + window.location.href + "' style='width:200px;' onclick='this.select()'><br><a class='twitter-share-button' href='https://twitter.com/intent/tweet?text=Check this out&url=" + window.location.href + "&via=littleboltme' target='blank'><i class='fab fa-twitter-square' style='font-size: 30px;padding-right: 5px;'></i></a></div></div>"; 1297 document.getElementById('galleryControls3').innerHTML = "<div class='galleryControls2' onclick='enlargeImg(\"enlarge\");'><i class='fas fa-expand'></i> Full</div>"; 1298 document.getElementById('galleryControls3').style.display = "none"; 1299 document.getElementById('galleryControls4').style.display = "none"; 1300 1301 document.getElementById('gallerySideArist').innerHTML = "<div style='line-height:130%;font-weight: 500;position: relative;'><div class='artistImg'>" + artistImgLink + "</div><div class='artistTitle'>" + theTitle + "</div><div class='artistName'>" + theArtist + "</div></div>"; 1302 document.getElementById('artistCopyright').innerHTML = "" + theArtist + ""; 1303 1304 document.getElementById('gallerySideDescription').innerHTML = "<div style='font-size:20px;font-weight:700;'>Info</div><div><div>" + theNote + "</div><div>" + theMsg + "</div></div>"; 1305 }else if (theType == "Video"){ 1306 if (theURL.startsWith("https://www.youtube.com")){ 1307 var theURLyt = theURL.replace("https://www.youtube.com/watch?v=", "https://www.youtube.com/embed/"); 1308 1309 document.getElementById('galleryImg').innerHTML = "<iframe id='galleryImage' style='height:" + theHeight + "px;width:" + theWidth + "px;box-shadow: 0px 0px 8px #29abe2;border: 1px #29abe2 solid;background-color: #ffffff;' src='" + theURLyt + "'></iframe>"; 1310 document.getElementById('galleryControls1').innerHTML = "<div class='galleryControls2' onclick='window.open(\"" + theURL + "\", \"_blank\");'><i class='fas fa-external-link-alt'></i> Link</div>"; 1311 document.getElementById('galleryControls2').innerHTML = "<div class='galleryControls2 ignoreBox' onclick='galleryShare();' style='position: relative;'><i class='fas fa-share-square'></i> Share<div class='galleryShareBox' id='gallerysharebox' style='display:none;'>Share Link<br><input class='ignoreBox' type='text' name='' value='" + window.location.href + "' style='width:200px;' onclick='this.select()'><br>YouTube Link<br><input class='ignoreBox' type='text' name='' value='" + theURL + "' style='width:200px;' onclick='this.select()'><br><a class='twitter-share-button' href='https://twitter.com/intent/tweet?text=Check this out&url=" + window.location.href + "&via=littleboltme' target='blank'><i class='fab fa-twitter-square' style='font-size: 30px;padding-right: 5px;'></i></a></div></div>"; 1312 document.getElementById('galleryControls3').style.display = "none"; 1313 document.getElementById('galleryControls4').style.display = "none"; 1314 1315 document.getElementById('gallerySideArist').innerHTML = "<div style='line-height:130%;font-weight: 500;position: relative;'><div class='artistImg'>" + artistImgLink + "</div><div class='artistTitle'>" + theTitle + "</div><div class='artistName'>" + theArtist + "</div></div>"; 1316 document.getElementById('artistCopyright').innerHTML = "" + theArtist + ""; 1317 1318 document.getElementById('gallerySideDescription').innerHTML = "<div style='font-size:20px;font-weight:700;'>Info</div><div><div>" + theNote + "</div><div>" + theMsg + "</div></div>"; 1319 }else{ 1320 document.getElementById('galleryImg').innerHTML = "<video id='galleryImage' style='visibility:hidden;max-width:95%;height:auto;max-height:" + (window.innerHeight - 30) + "px;box-shadow: 0px 0px 8px #29abe2;border: 1px #29abe2 solid;background-color: #ffffff;' onloadeddata='document.getElementById(\"galleryImage\").style.visibility=\"visible\"' controls loop><source src='" + theURL + "'></video>";
1321 document.getElementById('galleryControls1').innerHTML = "<div class='galleryControls2' onclick='window.open(\"" + theURL + "\", \"_blank\");'><i class='fas fa-cloud-download-alt'></i> Download</div>"; 1322 document.getElementById('galleryControls2').innerHTML = "<div class='galleryControls2 ignoreBox' onclick='galleryShare();' style='position: relative;'><i class='fas fa-share-square'></i> Share<div class='galleryShareBox' id='gallerysharebox' style='display:none;'>Share Link<br><input class='ignoreBox' type='text' name='' value='" + window.location.href + "' style='width:200px;' onclick='this.select()'><br><a class='twitter-share-button' href='https://twitter.com/intent/tweet?text=Check this out&url=" + window.location.href + "&via=littleboltme' target='blank'><i class='fab fa-twitter-square' style='font-size: 30px;padding-right: 5px;'></i></a></div></div>"; 1323 document.getElementById('galleryControls3').innerHTML = "<div class='galleryControls2' onclick='enlargeImg(\"enlarge\");'><i class='fas fa-expand'></i> Full</div>"; 1324 document.getElementById('galleryControls3').style.display = "none"; 1325 document.getElementById('galleryControls4').style.display = "none"; 1326 1327 document.getElementById('gallerySideArist').innerHTML = "<div style='line-height:130%;font-weight: 500;position: relative;'><div class='artistImg'>" + artistImgLink + "</div><div class='artistTitle'>" + theTitle + "</div><div class='artistName'>" + theArtist + "</div></div>"; 1328 document.getElementById('artistCopyright').innerHTML = "" + theArtist + ""; 1329 1330 document.getElementById('gallerySideDescription').innerHTML = "<div style='font-size:20px;font-weight:700;'>Info</div><div><div>" + theNote + "</div><div>" + theMsg + "</div></div>"; 1331 } 1332 }else if (theType == "Flash"){ 1333 document.getElementById('galleryImg').innerHTML = "<div><div style='font-size:10px;'>The following file is a Flash (SWF) file, flash is now <b>officially unsupported</b> by Adobe since 1st January 2021.<br>We are using <a href='https://ruffle.rs/' target='blank'>Ruffle</a> to emulate flash, but its not perfect nor is it finished. Bugs are likely to occur and some files may not load at all!</div><div style='margin-top:18px;'><object id='galleryImage' style='height:" + theHeight + "px;width:" + theWidth + "px;box-shadow: 0px 0px 8px #29abe2;border: 1px #29abe2 solid;background-color: #ffffff;' data='" + theURL + "'></object></div></div>"; 1334 document.getElementById('galleryControls1').innerHTML = "<div class='galleryControls2' onclick='window.open(\"" + theURL + "\", \"_blank\");'><i class='fas fa-cloud-download-alt'></i> Download</div>"; 1335 document.getElementById('galleryControls2').innerHTML = "<div class='galleryControls2 ignoreBox' onclick='galleryShare();' style='position: relative;'><i class='fas fa-share-square'></i> Share<div class='galleryShareBox' id='gallerysharebox' style='display:none;'>Share Link<br><input class='ignoreBox' type='text' name='' value='" + window.location.href + "' style='width:200px;' onclick='this.select()'><br><a class='twitter-share-button' href='https://twitter.com/intent/tweet?text=Check this out&url=" + window.location.href + "&via=littleboltme' target='blank'><i class='fab fa-twitter-square' style='font-size: 30px;padding-right: 5px;'></i></a></div></div>"; 1336 document.getElementById('galleryControls3').style.display = "none"; 1337 document.getElementById('galleryControls4').style.display = "none"; 1338 1339 document.getElementById('gallerySideArist').innerHTML = "<div style='line-height:130%;font-weight: 500;position: relative;'><div class='artistImg'>" + artistImgLink + "</div><div class='artistTitle'>" + theTitle + "</div><div class='artistName'>" + theArtist + "</div></div>"; 1340 document.getElementById('artistCopyright').innerHTML = "" + theArtist + ""; 1341 1342 document.getElementById('gallerySideDescription').innerHTML = "<div style='font-size:20px;font-weight:700;'>Info</div><div><div>" + theNote + "</div><div>" + theMsg + "</div></div>"; 1343 }else if (theType == "Misc"){ 1344 document.getElementById('galleryImg').innerHTML = "<div><a href='" + theURL.replace("[H]", "#") + "' target='blank'><div style='font-size:24px;'>Click to Download</div><div style='font-size:10px;'>(" + theURL.replace("[H]", "#") + ")</div><div style='margin-top:12px;'><img style='width:1000px;max-width:90%;height:auto;max-height:" + (window.innerHeight - 200) + "px;box-shadow: 0px 0px 8px #29abe2;border: 1px #29abe2 solid;background-color: #ffffff;' src='" + theThumb + "' onload='window.scrollTo(0, document.getElementById(\"headerlogo\").clientHeight);'></div></a></div>";
1345 document.getElementById('galleryControls1').innerHTML = "<div class='galleryControls2' onclick='window.open(\"" + theURL.replace("[H]", "#") + "\", \"_blank\");'><i class='fas fa-cloud-download-alt'></i> Download</div>";; 1346 document.getElementById('galleryControls2').innerHTML = "<div class='galleryControls2 ignoreBox' onclick='galleryShare();' style='position: relative;'><i class='fas fa-share-square'></i> Share<div class='galleryShareBox' id='gallerysharebox' style='display:none;'>Share Link<br><input class='ignoreBox' type='text' name='' value='" + window.location.href + "' style='width:200px;' onclick='this.select()'><br><a class='twitter-share-button' href='https://twitter.com/intent/tweet?text=Check this out&url=" + window.location.href + "&via=littleboltme' target='blank'><i class='fab fa-twitter-square' style='font-size: 30px;padding-right: 5px;'></i></a></div></div>"; 1347 document.getElementById('galleryControls3').style.display = "none"; 1348 document.getElementById('galleryControls4').style.display = "none"; 1349 1350 document.getElementById('gallerySideArist').innerHTML = "<div style='line-height:130%;font-weight: 500;position: relative;'><div class='artistImg'>" + artistImgLink + "</div><div class='artistTitle'>" + theTitle + "</div><div class='artistName'>" + theArtist + "</div></div>"; 1351 document.getElementById('artistCopyright').innerHTML = "" + theArtist + ""; 1352 1353 document.getElementById('gallerySideDescription').innerHTML = "<div style='font-size:20px;font-weight:700;'>Info</div><div><div>" + theNote + "</div><div>" + theMsg + "</div></div>"; 1354 } 1355 1356 document.getElementById('gallerySideTags').innerHTML = "<div style='font-size:20px;font-weight:700;'>Tags</div><div><div id='gallerySideTag' style='padding-top:3px;'></div>"; 1357 var tagArray = theTags.split(","); 1358 1359 for(var i = 0; i < tagArray.length; i++){ 1360 if (tagArray[i] == "bolt"){ 1361 document.getElementById('gallerySideTag').innerHTML = document.getElementById('gallerySideTag').innerHTML + "<div style='background-color: #2a488b;cursor: pointer;' class='catBox' onclick=\"charactorRef='';charactorLoad('littlebolt',false);isRef='';galControlls('switch');\">Little Bolt</div>"; 1362 } 1363 if (tagArray[i] == "pizza"){ 1364 document.getElementById('gallerySideTag').innerHTML = document.getElementById('gallerySideTag').innerHTML + "<div style='background-color: #e7642e;cursor: pointer;' class='catBox' onclick=\"charactorRef='';charactorLoad('pizzapone',false);isRef='';galControlls('switch');\">PizzaPone</div>"; 1365 } 1366 if (tagArray[i] == "wing"){ 1367 document.getElementById('gallerySideTag').innerHTML = document.getElementById('gallerySideTag').innerHTML + "<div style='background-color: #ef75a7;cursor: pointer;' class='catBox' onclick=\"charactorRef='';charactorLoad('cutewing',false);isRef='';galControlls('switch');\">Cute Wing</div>"; 1368 } 1369 if (tagArray[i] == "star"){ 1370 document.getElementById('gallerySideTag').innerHTML = document.getElementById('gallerySideTag').innerHTML + "<div style='background-color: #d69fe8;cursor: pointer;' class='catBox' onclick=\"charactorRef='';charactorLoad('crystalstar',false);isRef='';galControlls('switch');\">Crystal Star</div>"; 1371 } 1372 if (tagArray[i] == "woosh"){ 1373 document.getElementById('gallerySideTag').innerHTML = document.getElementById('gallerySideTag').innerHTML + "<div style='background-color: #4e778b;cursor: pointer;' class='catBox' onclick=\"charactorRef='';charactorLoad('woosh',false);isRef='';galControlls('switch');\">Woosh</div>"; 1374 } 1375 if (tagArray[i] == "human"){ 1376 document.getElementById('gallerySideTag').innerHTML = document.getElementById('gallerySideTag').innerHTML + "<div style='background-color: #e0bd8f;cursor: pointer;' class='catBox' onclick=\"charactorRef='';charactorLoad('human',false);isRef='';galControlls('switch');\">Human</div>"; 1377 } 1378 if (tagArray[i] == "other"){ 1379 document.getElementById('gallerySideTag').innerHTML = document.getElementById('gallerySideTag').innerHTML + "<div style='background-color: #919191;cursor: pointer;' class='catBox' onclick=\"charactorRef='';charactorLoad('other',false);isRef='';galControlls('switch');\">Other</div>"; 1380 } 1381 } 1382 1383 document.getElementById('gallerySideTag').innerHTML = document.getElementById('gallerySideTag').innerHTML + "<br>"; 1384 document.getElementById('gallerySideTag').innerHTML = document.getElementById('gallerySideTag').innerHTML + "<div style='background-color: #c1d7e4;color:#267ead;text-transform: capitalize;' class='catBox'>" + theRating + "</div>"; 1385 document.getElementById('gallerySideTag').innerHTML = document.getElementById('gallerySideTag').innerHTML + "<div style='background-color: #d0e29c;color:#6f8f38;text-transform: capitalize;' class='catBox'>" + thePref + "</div>"; 1386 document.getElementById('gallerySideTag').innerHTML = document.getElementById('gallerySideTag').innerHTML + "<div style='background-color: #e6c9b5;color:#8b552f;text-transform: capitalize;' class='catBox'>" + theType + "</div>"; 1387 1388 if (multiVer != false){ 1389 document.getElementById('gallerySideVersions').innerHTML = "<div style='font-size:20px;font-weight:700;text-align: left;margin-bottom:5px;'>Versions (x" + multiVer.length + ")</div>"; 1390 document.getElementById('gallerySideVersions').style.display = ""; 1391 1392 for (let i = 0; i < multiVer.length; i++) { 1393 var createDiv = document.createElement("div"); 1394 createDiv.id = "ver" + i; 1395 createDiv.className = "sideversions borderfix"; 1396 createDiv.style.backgroundImage = "url('" + multiVer[i].thumb + "')"; 1397 createDiv.style.border = "1px #446e88 solid"; 1398 if (i == 0){ 1399 createDiv.style.outline = "3px #446e88 solid"; //c1ac0f 1400 } 1401 createDiv.onclick = function () { 1402 document.getElementById("galleryImage").src = ""; 1403 versionChange(this.id,multiVer[i].url,multiVer[i].version,theType); 1404 }; 1405 createDiv.innerHTML = "<div class='sideversionstxt' style=''>" + multiVer[i].version + "</div>"; 1406 $("#gallerySideVersions").append(createDiv); 1407 1408 //console.log (multiVer[i].url); 1409 } 1410 }else{ 1411 document.getElementById('gallerySideVersions').style.display = "none"; 1412 document.getElementById('gallerySideVersions').innerHTML = ""; 1413 } 1414 1415 if (theSound == true || theSound == "true"){ 1416 document.getElementById('galleryXBtnS').style.display = ""; 1417 }else{ 1418 document.getElementById('galleryXBtnS').style.display = "none"; 1419 } 1420 1421 windowSizeChange(); 1422 }else{ 1423 document.getElementById('nsfwScreen').style.width = "100%"; 1424 document.getElementById('nsfwScreen').style.height = "100%"; 1425 document.getElementById('nsfwScreen').innerHTML = "<table style='width:100%;height:100%'><tr style='height:100%'><td style=''><center><div class='divNSFW'><span style='border-radius: 5px 5px 0px 0px;border-bottom: 1px solid #dddddd;font-size:26px;'>Error</span><div style='font-size:14px;font-weight:400;padding:10px;'>There was an error loading this item from the gallery, please press continue and try again, or refresh the page and try again!</div><span style='border-radius: 0px 0px 5px 5px;border-top: 1px solid #dddddd;line-height: 200%;'><div class='divNSFWbtn' style='background-color: #8cc14c;' onclick=\"doFunction('cancel');history.pushState(null, null, 'gallery');\">Continue</div></span></div></center></td></tr></table>"; 1426 document.getElementById('nsfwview').style.display=""; 1427 1428 windowSizeChange(); 1429 } 1430} 1431 1432function versionChange(id,url,version,type){ 1433 $('.sideversions').each(function (index, obj) { 1434 obj.style.outline = ""; 1435 }); 1436 1437 document.getElementById(id).style.outline = "3px #446e88 solid"; //c1ac0f 1438 document.getElementById("galleryImage").src = url; 1439
1440 if (document.getElementById("galleryControls1") != undefined){ 1441 if (type == "Picture"){ 1442 document.getElementById('galleryControls1').innerHTML = "<div class='galleryControls2' onclick='window.open(\"" + url + "\", \"_blank\");'><i class='fas fa-cloud-download-alt'></i> Download</div>"; 1443 }else if (type == "Video"){ 1444 if (url.startsWith("https://www.youtube.com")){ 1445 document.getElementById('galleryControls1').innerHTML = "<div class='galleryControls2' onclick='window.open(\"" + url + "\", \"_blank\");'><i class='fas fa-external-link-alt'></i> Link</div>"; 1446 }else{ 1447 document.getElementById('galleryControls1').innerHTML = "<div class='galleryControls2' onclick='window.open(\"" + url + "\", \"_blank\");'><i class='fas fa-cloud-download-alt'></i> Download</div>"; 1448 } 1449 }else if (type == "Flash"){ 1450 document.getElementById('galleryControls1').innerHTML = "<div class='galleryControls2' onclick='window.open(\"" + url + "\", \"_blank\");'><i class='fas fa-cloud-download-alt'></i> Download</div>"; 1451 }else if (type == "Misc"){ 1452 1453 } 1454 } 1455} 1456 1457function sideBar(){ 1458 if (galleryImageEnlarge == false){ 1459 galleryImageEnlarge = true; 1460 1461 document.getElementById('rightsideGal').style.display = "none"; 1462 }else{ 1463 galleryImageEnlarge = false; 1464 1465 document.getElementById('rightsideGal').style.display = ""; 1466 } 1467 1468 windowSizeChange(); 1469} 1470 1471function enlargeImg(data){ 1472 if (document.getElementById('galleryImage') != undefined){ 1473 if (data == "enlarge"){ 1474 galleryImageEnlarge = true; 1475 document.getElementById('rightsideGal').style.display = "none"; 1476 document.getElementById('galleryComBtn').style.display = ""; 1477 1478 if(window.innerWidth < 882 || window.innerWidth < window.innerHeight){ //Small Screen 1479 document.getElementById('leftsideGal').style.height = "100%"; 1480 } 1481 }else if (data == "compress"){ 1482 galleryImageEnlarge = false; 1483 document.getElementById('rightsideGal').style.display = ""; 1484 document.getElementById('galleryComBtn').style.display = "none"; 1485 1486 if(window.innerWidth < 882 || window.innerWidth < window.innerHeight){ //Small Screen 1487 document.getElementById('leftsideGal').style.height = "calc(100% - 130px)"; 1488 } 1489 } 1490 } 1491} 1492function enlargeOLD(){ 1493 if (galleryImageEnlarge == false){ 1494 galleryImageEnlarge = true; 1495 document.getElementById('galleryImage').style.maxWidth = ""; 1496 document.getElementById('galleryImage').style.maxHeight = ""; 1497 document.getElementById('galleryImage').style.width = "99%"; 1498 document.getElementById('galleryImage').style.height = ""; 1499 document.getElementById('galleryControls3').innerHTML = "<div class='galleryControls2' onclick='enlargeImg();'><i class='fas fa-compress'></i> Compress</div>"; 1500 }else{ 1501 galleryImageEnlarge = false; 1502 if(window.innerWidth < 882 || window.innerWidth < window.innerHeight){ //Small Screen 1503 document.getElementById('galleryImage').style.maxHeight = (window.innerHeight - 160) + "px"; 1504 }else{ 1505 document.getElementById('galleryImage').style.maxHeight = (window.innerHeight - 30) + "px"; 1506 } 1507 document.getElementById('galleryImage').style.maxWidth = "95%"; 1508 document.getElementById('galleryImage').style.width = ""; 1509 document.getElementById('galleryImage').style.height = ""; 1510 document.getElementById('galleryControls3').innerHTML = "<div class='galleryControls2' onclick='enlargeImg();'><i class='fas fa-expand'></i> Expand</div>"; 1511 } 1512} 1513 1514function imageClickOLD(data){ 1515 logoAutoPlay = false; 1516 pauseHeaderAni = true; 1517 history.pushState({prevUrl: location.search}, null, "gallery?v=" + item); 1518 1519 document.getElementById('galleryView').style.display = ""; 1520 document.getElementById('galleryList').style.display = "none"; 1521 1522 var per80Lan = window.innerHeight / 10; 1523 var theHeightLan = window.innerHeight - per80Lan - per80Lan; 1524 var theWidthLan = theHeightLan * 16 / 9; 1525 1526 var per80Port = window.innerWidth / 10; 1527 var theWidthPort = window.innerWidth - per80Port - per80Port; 1528 var theHeightPort = theWidthPort / 16 * 9; 1529 1530 var theHeight = 0; 1531 var theWidth = 0; 1532 1533 var theType = document.getElementById('type' + data).innerHTML; 1534 var theURL = document.getElementById('url' + data).innerHTML; 1535 1536 document.getElementById('divfrontScreen').style.width = window.innerWidth + "px"; 1537 document.getElementById('divfrontScreen').style.height = window.innerHeight + "px"; 1538 1539 if (window.innerHeight < window.innerWidth){ 1540 theHeight = theHeightLan; 1541 theWidth = theWidthLan; 1542 }else{ 1543 theHeight = theHeightPort; 1544 theWidth = theWidthPort; 1545 } 1546 1547 if (theType == "Picture"){ 1548 document.getElementById('divfrontScreen').innerHTML = "<table style='width:"
1548+ document.body.clientWidth + "px;height:100%'><tr style='height:100%'><td style='height:" + window.innerHeight + "px'><a href='" + theURL + "' target='blank'><img style='max-width:80%;height:auto;max-height:80%;box-shadow: 0px 0px 8px #29abe2;border: 1px #29abe2 solid;background-color: #ffffff;' src='" + theURL + "'></a><br><br><button class='imgbuttonmain' style='height:30px;width:300px;' title='Full Screen/Download' onclick='window.open(\"" + theURL + "\", \"_blank\");'>Full Screen/Download</button> <button class='imgbuttonmain' style='height:30px;width:300px;' title='Close' onclick='doFunction(\"cancel\")'>Close</button></td></tr></table>"; 1549 document.getElementById('largerScreen').style.display = ""; 1550 }else if (theType == "Video"){ 1551 if (theURL.startsWith("https://www.youtube.com")){ 1552 var theURLyt = theURL.replace("https://www.youtube.com/watch?v=", "https://www.youtube.com/embed/"); 1553 document.getElementById('divfrontScreen').innerHTML = "<table style='width:100%;height:100%'><tr style='height:100%'><td style='height:" + window.innerHeight + "px'><iframe style='height:" + theHeight + "px;width:" + theWidth + "px;box-shadow: 0px 0px 8px #29abe2;border: 1px #29abe2 solid;background-color: #ffffff;' src='" + theURLyt + "'></iframe><br><br><button class='imgbuttonmain' style='height:30px;width:300px;' title='Open on YouTube' onclick='window.open(\"" + theURL + "\", \"_blank\");'>Open on YouTube</button> <button class='imgbuttonmain' style='height:30px;width:300px;' title='Close' onclick='doFunction(\"cancel\")'>Close</button></td></tr></table>"; 1554 document.getElementById('largerScreen').style.display = ""; 1555 }else{ 1556 document.getElementById('divfrontScreen').innerHTML = "<table style='width:100%;height:100%'><tr style='height:100%'><td style='height:" + window.innerHeight + "px'><video style='height:" + theHeight + "px;width:" + theWidth + "px;box-shadow: 0px 0px 8px #29abe2;border: 1px #29abe2 solid;background-color: #ffffff;' controls loop><source src='" + theURL + "'></video><br><br><button class='imgbuttonmain' style='height:30px;width:300px;' title='Full Screen/Download' onclick='window.open(\"" + theURL + "\", \"_blank\");'>Full Screen/Download</button> <button class='imgbuttonmain' style='height:30px;width:300px;' title='Close' onclick='doFunction(\"cancel\")'>Close</button></td></tr></table>"; 1557 document.getElementById('largerScreen').style.display = ""; 1558 } 1559 }else if (theType == "Flash"){ 1560 document.getElementById('divfrontScreen').innerHTML = "<table style='width:100%;height:100%'><tr style='height:100%'><td style='height:" + window.innerHeight + "px'><object style='height:" + theHeight + "px;width:" + theWidth + "px;box-shadow: 0px 0px 8px #29abe2;border: 1px #29abe2 solid;background-color: #ffffff;' data='" + theURL + "'></object><br><br><button class='imgbuttonmain' style='height:30px;width:300px;' title='Full Screen/Download' onclick='window.open(\"" + theURL + "\", \"_blank\");'>Full Screen/Download</button> <button class='imgbuttonmain' style='height:30px;width:300px;' title='Close' onclick='doFunction(\"cancel\")'>Close</button></td></tr></table>"; 1561 document.getElementById('largerScreen').style.display = ""; 1562 }else if (theType == "Misc"){ 1563 document.getElementById('largerScreen').style.display = "none"; 1564 document.getElementById('divfrontScreen').innerHTML = ""; 1565 window.open(theURL, '_blank'); 1566 } 1567} 1568 1569function galleryShare(){ 1570 document.getElementById('gallerysharebox').style.display = ""; 1571} 1572 1573function typeSwitch(data){ 1574 if (data == "typeSwitchArt"){ 1575 document.getElementById('typeSwitchArt').className="typeSwitchActive"; 1576 document.getElementById('typeSwitchVid').className="typeSwitch"; 1577 document.getElementById('typeSwitchOth').className="typeSwitch"; 1578 1579 document.getElementById('artDiv').style.display=""; 1580 document.getElementById('vidDiv').style.display="none"; 1581 document.getElementById('othDiv').style.display="none"; 1582 }else if (data == "typeSwitchVid"){ 1583 document.getElementById('typeSwitchArt').className="typeSwitch"; 1584 document.getElementById('typeSwitchVid').className="typeSwitchActive"; 1585 document.getElementById('typeSwitchOth').className="typeSwitch"; 1586 1587 document.getElementById('artDiv').style.display="none"; 1588 document.getElementById('vidDiv').style.display=""; 1589 document.getElementById('othDiv').style.display="none"; 1590 }else if (data == "typeSwitchOth"){ 1591 document.getElementById('typeSwitchArt').className="typeSwitch"; 1592 document.getElementById('typeSwitchVid').className="typeSwitch"; 1593 document.getElementById('typeSwitchOth').className="typeSwitchActive"; 1594 1595 document.getElementById('artDiv').style.display="none"; 1596 document.getElementById('vidDiv').style.display="none"; 1597 document.getElementById('othDiv').style.display=""; 1598 } 1599} 1600 1601function nsfwSwitch(data){ 1602 if (data == "off"){ 1603 document.getElementById('nsfwview').style.display=""; 1604 }else{ 1605 window.location.href='?n=nope'; 1606 } 1607} 1608 1609function galControlls(data){ 1610 if (data == "close"){ 1611 logoAutoPlay = true; 1612 pauseHeaderAni = false;
1613 galleryImageEnlarge = false; 1614 1615 if (window.history.state === null){ 1616 history.pushState({prevUrl: location.search}, null, 'gallery'); 1617 }else{ 1618 history.pushState({prevUrl: location.search}, null, 'gallery' + window.history.state.prevUrl); 1619 } 1620 document.title = "Little Bolt | Gallery"; 1621 1622 document.getElementById('galleryView').style.display = "none"; 1623 document.getElementById('galleryList').style.display = ""; 1624 document.getElementById('headerlogo').style.display = ""; 1625 document.getElementById('galleryImg').innerHTML = ""; 1626 1627 document.getElementById('rightsideGal').style.display = ""; 1628 1629 reloadCommentCount(); 1630 window.scrollTo(0, scrollBack); 1631 }else if (data == "back"){ 1632 logoAutoPlay = true; 1633 pauseHeaderAni = false; 1634 galleryImageEnlarge = false; 1635 1636 document.title = "Little Bolt | Gallery"; 1637 1638 document.getElementById('galleryView').style.display = "none"; 1639 document.getElementById('galleryList').style.display = ""; 1640 document.getElementById('headerlogo').style.display = ""; 1641 document.getElementById('galleryImg').innerHTML = ""; 1642 1643 document.getElementById('rightsideGal').style.display = ""; 1644 1645 reloadCommentCount(); 1646 window.scrollTo(0, scrollBack); 1647 }else if (data == "switch"){ 1648 logoAutoPlay = true; 1649 pauseHeaderAni = false; 1650 galleryImageEnlarge = false; 1651 1652 if (window.history.state === null){ 1653 history.pushState({prevUrl: location.search}, null, 'gallery?tags=oc:' + isOC); 1654 }else{ 1655 var urlTags = window.history.state.prevUrl.replace("?tags=", ""); 1656 if (urlTags != ""){ 1657 urlTags = urlTags.split(','); 1658 if (urlTags.length > 0){ 1659 for (var i = 0; i < urlTags.length; i++){ 1660 if (urlTags[i].search("oc:") > -1){ 1661 urlTags.splice(i, 1); 1662 } 1663 } 1664 urlTags.push("oc:" + isOC); 1665 history.pushState({prevUrl: location.search}, null, 'gallery?tags=' + urlTags.join()); 1666 }else{ 1667 history.pushState({prevUrl: location.search}, null, 'gallery?tags=oc:' + isOC); 1668 } 1669 }else{ 1670 history.pushState({prevUrl: location.search}, null, 'gallery?tags=oc:' + isOC); 1671 } 1672 } 1673 document.title = "Little Bolt | Gallery"; 1674 1675 document.getElementById('galleryView').style.display = "none"; 1676 document.getElementById('galleryList').style.display = ""; 1677 document.getElementById('headerlogo').style.display = ""; 1678 document.getElementById('galleryImg').innerHTML = ""; 1679 1680 document.getElementById('rightsideGal').style.display = ""; 1681 1682 reloadCommentCount(); 1683 window.scrollTo(0, scrollBack); 1684 } 1685} 1686 1687// Do a function 1688function doFunction(data){ 1689 if (data == "cancel"){ 1690 logoAutoPlay = true; 1691 pauseHeaderAni = false; 1692 galleryImageEnlarge = false; 1693 1694 if (document.getElementById('galleryView') != undefined){ //Check if on gallery page 1695 if (typeof isRef !== "undefined"){ 1696 sessionStorage.setItem("oc", isRef); 1697 history.go(-1); 1698 return; 1699 } 1700 } 1701 1702 document.getElementById('nsfwview').style.display="none"; 1703 document.getElementById('largerScreen').style.display = "none"; 1704 document.getElementById('divfrontScreen').innerHTML = ""; 1705 }else if (data == "bgclick"){ 1706 logoAutoPlay = true; 1707 pauseHeaderAni = false; 1708 galleryImageEnlarge = false; 1709 1710 document.getElementById('nsfwview').style.display="none"; 1711 document.getElementById('largerScreen').style.display = "none"; 1712 document.getElementById('divfrontScreen').innerHTML = ""; 1713 }else if (data == "close"){ 1714 logoAutoPlay = true; 1715 pauseHeaderAni = false; 1716 galleryImageEnlarge = false; 1717 1718 if (document.getElementById('galleryView') != undefined){ //Check if on gallery page 1719 if (typeof isRef !== "undefined"){ 1720 if (isRef = ""){ 1721 history.go(-1); 1722 //history.pushState({prevUrl: window.location.href}, null, 'gallery?tags=oc:' + isRef); 1723 }else{ 1724 history.pushState({prevUrl: window.location.href}, null, 'gallery'); 1725 } 1726 }else{ 1727 //history.go(-1); 1728 history.pushState({prevUrl: window.location.href}, null, 'gallery'); 1729 } 1730 document.getElementById('galleryView').style.display = "none"; 1731 document.getElementById('galleryList').style.display = ""; 1732 document.getElementById('headerlogo').style.display = ""; 1733 //document.getElementById('headerTxtBG').style.display = ""; 1734 document.getElementById('galleryImg').innerHTML = ""; 1735 1736 document.getElementById('rightsideGal').style.display = ""; 1737 1738 reloadCommentCount(); 1739 window.scrollTo(0, scrollBack); 1740 } 1741 }else if (data == "back"){ 1742 logoAutoPlay = true; 1743 pauseHeaderAni = false;
1744 galleryImageEnlarge = false; 1745 1746 if (document.getElementById('galleryView') != undefined){ //Check if on gallery page 1747 if (typeof isRef !== "undefined"){ 1748 //sessionStorage.setItem("oc", isRef); 1749 //history.go(-1); 1750 //return; 1751 } 1752 document.getElementById('galleryView').style.display = "none"; 1753 document.getElementById('galleryList').style.display = ""; 1754 document.getElementById('headerlogo').style.display = ""; 1755 //document.getElementById('headerTxtBG').style.display = ""; 1756 document.getElementById('galleryImg').innerHTML = ""; 1757 1758 document.getElementById('rightsideGal').style.display = ""; 1759 1760 reloadCommentCount(); 1761 window.scrollTo(0, scrollBack); 1762 } 1763 } 1764} 1765 1766function headerextend(){ 1767 if (headerextended == false){ 1768 document.getElementById('header-extended').style.display=""; 1769 document.getElementById('nav-bar-padding').style.height= document.getElementById('header-extended').clientHeight + 48 + "px"; 1770 headerextended = true; 1771 }else{ 1772 document.getElementById('header-extended').style.display="none"; 1773 document.getElementById('nav-bar-padding').style.height="48px"; 1774 headerextended = false; 1775 } 1776} 1777 1778function explicitRef(data){ 1779 document.getElementById('nsfwScreen').style.width = "100%"; 1780 document.getElementById('nsfwScreen').style.height = "100%"; 1781 document.getElementById('nsfwScreen').innerHTML = "<table style='width:100%;height:100%'><tr style='height:100%'><td style=''><center><div class='divNSFW'><span style='border-radius: 5px 5px 0px 0px;border-bottom: 1px solid #dddddd;font-size:26px;'>Age Confirmation</span><div style='font-size:14px;font-weight:400;padding:10px;'>To view explicit refs you must be 18+ years old and take no issue seeing explicit content involving cartoon animals and humans (mostly ponies). <b>Are you happy to proceed?</b></div><span style='border-radius: 0px 0px 5px 5px;border-top: 1px solid #dddddd;line-height: 200%;'><div id='expBtnYes' class='divNSFWbtn' style='background-color: #8cc14c;' onclick=\"window.open('" + data.getAttribute('href') + "', '_blank');explicitRefNope();\">Yes I Accept</div><div class='divNSFWbtn' style='background-color: #da314b;' onclick=\"explicitRefNope()\">No Go Back</div></span></div></center></td></tr></table>"; 1782 1783 document.getElementById('nsfwview').style.display=""; 1784 return false; 1785} 1786 1787function explicitRefNope(){ 1788 document.getElementById('nsfwview').style.display="none"; 1789} 1790 1791var OCbolt = false; 1792var OCpizza = false; 1793var OCwing = false; 1794 1795function extendOC(data){ 1796 if (data == "bolt"){ 1797 if (OCbolt == false){ 1798 OCbolt = true; 1799 document.getElementById('about-bolt').style.display=""; 1800 document.getElementById('bolt-arrow').innerHTML="<i class='fas fa-angle-up'></i>"; 1801 }else{ 1802 OCbolt = false; 1803 document.getElementById('about-bolt').style.display="none"; 1804 document.getElementById('bolt-arrow').innerHTML="<i class='fas fa-angle-down'></i>"; 1805 } 1806 }else if (data == "pizza"){ 1807 if (OCpizza == false){ 1808 OCpizza = true; 1809 document.getElementById('about-pizza').style.display=""; 1810 document.getElementById('pizza-arrow').innerHTML="<i class='fas fa-angle-up'></i>"; 1811 }else{ 1812 OCpizza = false; 1813 document.getElementById('about-pizza').style.display="none"; 1814 document.getElementById('pizza-arrow').innerHTML="<i class='fas fa-angle-down'></i>"; 1815 } 1816 }else if (data == "wing"){ 1817 if (OCwing == false){ 1818 OCwing = true; 1819 document.getElementById('about-wing').style.display=""; 1820 document.getElementById('wing-arrow').innerHTML="<i class='fas fa-angle-up'></i>"; 1821 }else{ 1822 OCwing = false; 1823 document.getElementById('about-wing').style.display="none"; 1824 document.getElementById('wing-arrow').innerHTML="<i class='fas fa-angle-down'></i>"; 1825 } 1826 } 1827} 1828 1829function extendOC2(data){ 1830 if (data == "bolt"){ 1831 document.getElementById('divOCDropdown').style.display = ""; 1832 document.getElementById('ocPassport').src = "images/passportsmall-bolt.png"; 1833 }else if (data == "pizza"){ 1834 document.getElementById('divOCDropdown').style.display = ""; 1835 document.getElementById('ocPassport').src = "images/passportsmall-pizza.png"; 1836 }else if (data == "wing"){ 1837 document.getElementById('divOCDropdown').style.display = ""; 1838 document.getElementById('ocPassport').src = "images/passportsmall-wing.png"; 1839 } 1840} 1841 1842function loadOC(){ 1843 if (sessionStorage.getItem("oc") == "bolt"){ 1844 sessionStorage.removeItem("oc"); 1845 extendOC("bolt"); 1846 }else if (sessionStorage.getItem("oc") == "pizza"){ 1847 sessionStorage.removeItem("oc"); 1848 extendOC("pizza"); 1849 }else if (sessionStorage.getItem("oc") == "wing"){ 1850 sessionStorage.removeItem("oc"); 1851 extendOC("wing"); 1852 } 1853} 1854 1855function headerPlayBtnLoaded(){ 1856 if (typeof noheader != 'undefined'){ 1857 return; 1858 } 1859 1860 document.getElementById('headerPlay').style.display = ""; 1861 1862 if (localStorage.getItem("header-play") != null){ 1863 if (localStorage.getItem("header-play") == "true"){ 1864 logoPlay = true; 1865 document.getElementById('headerPlayBtn').innerHTML = "<i class='fas fa-pause'></i>"; 1866 }else{ 1867 logoPlay = false;
1868 document.getElementById('headerPlayBtn').innerHTML = "<i class='fas fa-play'></i>"; 1869 } 1870 }else{ 1871 logoPlay = true; 1872 document.getElementById('headerPlayBtn').innerHTML = "<i class='fas fa-pause'></i>"; 1873 } 1874 1875 // Force disable animated header (REMOVE TO CONTINUE ANIMATION) 1876 //logoPlay = false; //Force Stop 1877 //document.getElementById('headerPlayBtn').style.visibility = "hidden"; //Hide play button 1878 //document.getElementById("logolarge").src = "/images/logo/logo2020/q0.png?v2"; //Custom pause character frame 1879} 1880 1881function headerPlayBtnLoaded_OLD(){ 1882 if (typeof noheader != 'undefined'){ 1883 return; 1884 } 1885 1886 document.getElementById('headerPlay').style.display = ""; 1887 1888 if (localStorage.getItem("header-play") != null){ 1889 if (localStorage.getItem("header-play") == "true"){ 1890 logoPlay = true; 1891 var imgs = document.querySelectorAll('.bgani'); 1892 for (var i = 0; i < imgs.length; i++) { 1893 imgs[i].style.webkitAnimationPlayState = 'running'; 1894 } 1895 //document.getElementById("headerVideo").play(); 1896 document.getElementById('headerPlayBtn').innerHTML = "<i class='fas fa-pause'></i>"; 1897 }else{ 1898 logoPlay = false; 1899 var imgs = document.querySelectorAll('.bgani'); 1900 for (var i = 0; i < imgs.length; i++) { 1901 imgs[i].style.webkitAnimationPlayState = 'paused'; 1902 } 1903 //document.getElementById("headerVideo").pause(); 1904 document.getElementById("logolarge").src = "/images/logo/logo2020/0.png?v2"; // images/logo/logoani1.png?v2 1905 document.getElementById('headerPlayBtn').innerHTML = "<i class='fas fa-play'></i>"; 1906 } 1907 }else{ 1908 logoPlay = true; 1909 var imgs = document.querySelectorAll('.bgani'); 1910 for (var i = 0; i < imgs.length; i++) { 1911 imgs[i].style.webkitAnimationPlayState = 'running'; 1912 } 1913 //document.getElementById("headerVideo").play(); 1914 document.getElementById('headerPlayBtn').innerHTML = "<i class='fas fa-pause'></i>"; 1915 } 1916} 1917function headerPlayBtn(){ 1918 if (logoPlay == true){ 1919 logoPlay = false; 1920 logoFrame = 1; 1921 localStorage.setItem("header-play", "false"); 1922 document.getElementById("logolarge").src = "/images/logo/logo2020/0.png?v2"; // images/logo/logoani1.png?v2 1923 var imgs = document.querySelectorAll('.bgani'); 1924 for (var i = 0; i < imgs.length; i++) { 1925 imgs[i].style.webkitAnimationPlayState = 'paused'; 1926 } 1927 document.getElementById('headerPlayBtn').innerHTML = "<i class='fas fa-play'></i>"; 1928 if (document.getElementById("headerVideo") != undefined){ 1929 document.getElementById("headerVideo").pause(); 1930 } 1931 }else{ 1932 logoPlay = true; 1933 localStorage.setItem("header-play", "true"); 1934 var imgs = document.querySelectorAll('.bgani'); 1935 for (var i = 0; i < imgs.length; i++) { 1936 imgs[i].style.webkitAnimationPlayState = 'running'; 1937 } 1938 document.getElementById('headerPlayBtn').innerHTML = "<i class='fas fa-pause'></i>"; 1939 if (document.getElementById("headerVideo") != undefined){ 1940 document.getElementById("headerVideo").play(); 1941 } 1942 } 1943} 1944function headerPizzaBtn(){ 1945 if (pizzaEnabled == false){ 1946 pizzaEnabled = true; 1947 setCookie("style", "pizza"); 1948 styleSelected = "pizza"; 1949 1950 setTimeout(function(){ 1951 document.getElementById("LogoPizzalay").style.top = "0px"; 1952 }, 100); 1953 setTimeout(function(){ 1954 document.getElementById("bgpizza").style.opacity = "1"; 1955 }, 200); 1956 1957 document.getElementById("headerPizzaBtn").innerHTML = "<i class='fas fa-bolt'></i>"; 1958 swapStyleSheet('/mainpizza.css?v=' + bsDate.getTime() + ''); 1959 }else{ 1960 if (typeof pizzasite !== "undefined" && styleSelected == "pizza"){ 1961 if (pizzasite != "done"){ 1962 pizzasite = "done"; 1963 return; 1964 } 1965 } 1966 pizzaEnabled = false; 1967 setCookie("style", "bolt", 0); 1968 styleSelected = "bolt"; 1969 1970 setTimeout(function(){ 1971 document.getElementById("LogoPizzalay").style.top = "210px"; 1972 }, 100); 1973 setTimeout(function(){ 1974 document.getElementById("bgpizza").style.opacity = "0"; 1975 }, 150); 1976 1977 document.getElementById("headerPizzaBtn").innerHTML = "<i class='fas fa-pizza-slice'></i>"; 1978 swapStyleSheet(''); 1979 } 1980} 1981 1982function logoutDM(){ 1983 document.getElementById('nsfwScreen').style.width = "100%"; 1984 document.getElementById('nsfwScreen').style.height = "100%"; 1985 document.getElementById('nsfwScreen').innerHTML = "<table style='width:100%;height:100%'><tr style='height:100%'><td style=''><center><div class='divNSFW'><span style='border-radius: 5px 5px 0px 0px;border-bottom: 1px solid #dddddd;font-size:26px;'>Logging Out</span><div style='font-size:14px;font-weight:400;padding:10px;'>Are you sure you wish to Logout, you will need to re-enter your username and password to log back in and you will NOT receive notifications (here) when new DMs arrive?</div><span style='border-radius: 0px 0px 5px 5px;border-top: 1px solid #dddddd;line-height: 200%;'><div class='divNSFWbtn' style='background-color: #da314b;' onclick=\"dmStart('logout');\">Logout</div> <div class='divNSFWbtn' style='background-color: #808080;' onclick=\"dmStart('close');\">Cancel</div></span></div></center></td></tr></table>"; 1986 document.getElementById('nsfwview').style.display=""; 1987} 1988 1989function closeDM(){
1990 if (document.getElementById('pinInput').value != "" && dmFail != true){ 1991 document.getElementById('nsfwScreen').style.width = "100%"; 1992 document.getElementById('nsfwScreen').style.height = "100%"; 1993 document.getElementById('nsfwScreen').innerHTML = "<table style='width:100%;height:100%'><tr style='height:100%'><td style=''><center><div class='divNSFW'><span style='border-radius: 5px 5px 0px 0px;border-bottom: 1px solid #dddddd;font-size:26px;'>Before You Go</span><div style='font-size:14px;font-weight:400;padding:10px;'><b>REMINDER YOU ARE STILL LOGGED IN</b><br>You are only exiting this DM, by staying logged in you can easily continue and receive notifications (here).<br><br>To logout click Cancel and then click <i class='fas fa-sign-out-alt'></i> (Recommended for shared devices).</div><span style='border-radius: 0px 0px 5px 5px;border-top: 1px solid #dddddd;line-height: 200%;'><div class='divNSFWbtn' style='background-color: #8cc14c;' onclick=\"dmStart('closedown');\">Close</div> <!--<div class='divNSFWbtn' style='background-color: #da314b;' onclick=\"dmStart('logout');\">Logout</div>--><div class='divNSFWbtn' style='background-color: #808080;' onclick=\"dmStart('close');\">Cancel</div></span></div></center></td></tr></table>"; 1994 document.getElementById('nsfwview').style.display=""; 1995 }else{ 1996 exitDM(); 1997 } 1998} 1999 2000function loadNameDM(){ 2001 if (localStorage.getItem("dmAccount") != null){ 2002 var lastDMAccount = JSON.parse(localStorage.getItem("dmAccount")); 2003 parent.document.getElementById('contFormDM').style.display = ""; 2004 parent.document.getElementById('contNameDM').value = lastDMAccount.username; 2005 } 2006} 2007 2008function clearNameDM(){ 2009 parent.document.getElementById('contFormDM').style.display = "none"; 2010 parent.document.getElementById('contNameDM').value = ""; 2011} 2012 2013function displayDM(){ 2014 document.getElementById('iframeScreen').style.width = "100%"; 2015 document.getElementById('iframeScreen').style.height = "100%"; 2016 document.getElementById('iframeview').style.display = ""; 2017 document.body.style.overflow = "hidden"; 2018 2019 if (document.getElementById('dmNotif') != undefined){ 2020 document.getElementById('dmNotif').style.display = "none"; 2021 } 2022 2023 //parent.document.getElementById('mainPage').style.display = 'none'; 2024 //parent.document.getElementById('dmPage').style.display = ''; 2025 //window.history.pushState({page:"dm"}, null, "contact"); 2026} 2027 2028function exitDM(){ 2029 parent.document.getElementById('unInput').value = ""; 2030 2031 parent.document.getElementById('iframeview').style.display = "none"; 2032 parent.document.getElementById('dmFrame').src = ""; 2033 parent.document.body.style.overflow = ""; 2034 2035 if (localStorage.getItem("dmAccount") != null){ 2036 var checkDMAccount = JSON.parse(localStorage.getItem("dmAccount")); 2037 $.ajax({ 2038 type: "GET", 2039 url: "/pages/dmschecker.php?t=read&u=" + checkDMAccount.username, 2040 dataType: "text", 2041 cache:false, 2042 success: function(data) { 2043 console.log (data); 2044 } 2045 }); 2046 } 2047} 2048 2049function loadDMNOPE(){ //Recaptcha BS 2050 document.getElementById("msgInput").addEventListener("keyup", function(event){ 2051 if (event.keyCode === 13) { 2052 subDM(); 2053 } 2054 }); 2055 2056 if (document.getElementById("unInput").value != ""){ 2057 grecaptcha.ready(function() { 2058 grecaptcha.execute('6LdOQ2cUAAAAAE5Y7vmGM7LRwHS2HkUAlivMCT7c', {action: 'login'}) 2059 .then(function(token) { 2060 var xhttpLoad = new XMLHttpRequest(); 2061 xhttpLoad.open("POST", "../pages/dms.php", false); 2062 xhttpLoad.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 2063 xhttpLoad.send("u=" + document.getElementById("unInput").value + "&p=" + document.getElementById("pinInput").value + "&b=" + boltPass + "&t=" + token); 2064 var responseData = xhttpLoad.responseText.split("/n"); 2065 2066 if (JSON.parse(responseData[0]).response == "locked"){ 2067 var userDmData = JSON.parse(responseData[1]).username.replace(/<i-pb>/g, "<img class='emoji' src='../images/pizzabot.png'>"); 2068 2069 document.getElementById('infoDM').innerHTML = "DM: " + document.getElementById("unInput").value; 2070 document.getElementById('messageBox').innerHTML = "<div class='dmMsgBox borderfix' style='background-image: linear-gradient(to right, rgba(217, 222, 228, 0), rgba(248, 198, 198, 1), rgba(217, 222, 228, 0));'><span class='dmNameSpan'>" + userDmData + " - </span><span class='dmDateSpan'>" + JSON.parse(responseData[1]).posted + "</span><span class='dmMsgSpan'>" + JSON.parse(responseData[1]).msg + "</span></div>"; 2071 document.getElementById('msgInput').placeholder = JSON.parse(responseData[0]).input; 2072 document.getElementById('lockInput').checked = true; 2073 dmLocked = true; 2074 document.getElementById("msgInput").disabled = true; 2075 }else if (JSON.parse(responseData[0]).response == "pin"){ 2076 var userDmData = JSON.parse(responseData[1]).username.replace(/<i-pb>/g, "<img class='emoji' src='../images/pizzabot.png'>"); 2077 2078 document.getElementById('infoDM').innerHTML = "DM: " + document.getElementById("unInput").value; 2079 document.getElementById('messageBox').innerHTML = "<div class='dmMsgBox borderfix' style='background-image: linear-gradient(to right, rgba(217, 222, 228, 0), rgba(248, 198, 198, 1), rgba(217, 222, 228, 0));'><span class='dmNameSpan'>" + userDmData + " - </span><span class='dmDateSpan'>" + JSON.parse(responseData[1]).posted + "</span><span class='dmMsgSpan'>" + JSON.parse(responseData[1]).msg + "</span></div>"; 2080 document.getElementById('msgInput').placeholder = JSON.parse(responseData[0]).input; 2081 dmLocked = false;
2082 document.getElementById("msgInput").disabled = false; 2083 2084 if (continueDM == true){ 2085 if (boltAccount == "yippiroono"){ 2086 document.getElementById('msgInput').value = boltPass; 2087 subDM(); 2088 }else if (localStorage.getItem("dmAccount") != null){ 2089 var lastDMAccount = JSON.parse(localStorage.getItem("dmAccount")); 2090 2091 document.getElementById('msgInput').value = lastDMAccount.token; 2092 subDM(); 2093 } 2094 } 2095 }else if (JSON.parse(responseData[0]).response == "new"){ 2096 var userDmData = JSON.parse(responseData[1]).username.replace(/<i-pb>/g, "<img class='emoji' src='../images/pizzabot.png'>"); 2097 2098 document.getElementById('infoDM').innerHTML = "DM: " + document.getElementById("unInput").value; 2099 document.getElementById('messageBox').innerHTML = "<div class='dmMsgBox borderfix' style='background-image: linear-gradient(to right, rgba(217, 222, 228, 0), rgba(248, 198, 198, 1), rgba(217, 222, 228, 0));'><span class='dmNameSpan'>" + userDmData + " - </span><span class='dmDateSpan'>" + JSON.parse(responseData[1]).posted + "</span><span class='dmMsgSpan'>" + JSON.parse(responseData[1]).msg + "</span></div>"; 2100 document.getElementById('msgInput').placeholder = JSON.parse(responseData[0]).input; 2101 2102 document.getElementById('nsfwScreen').style.width = "100%"; 2103 document.getElementById('nsfwScreen').style.height = "100%"; 2104 document.getElementById('nsfwScreen').innerHTML = "<table style='width:100%;height:100%'><tr style='height:100%'><td style=''><center><div class='divNSFW'><span style='border-radius: 5px 5px 0px 0px;border-bottom: 1px solid #dddddd;font-size:26px;'>Setup Password</span><div style='font-size:14px;font-weight:400;padding:10px;'><div id='passError' style='display:none;color:red;'>Error: You must enter a Password and re-enter the same password!</div>To continue please enter a Password and keep it safe and secure:<br><div style='background:#ffffff;padding:5px 10px;border-radius:5px;width:90%;box-shadow: 0px 1px 4px #333333;'><input id='newPass1' style='outline: none;border: 0;font-size:20px;width: 100%;' type='password' autocomplete='off' maxlength='1000' placeholder='Enter Password'><hr><input id='newPass2' style='outline: none;border: 0;font-size:20px;width: 100%;' type='password' autocomplete='off' maxlength='1000' placeholder='Re-Enter Password'></div></div><span style='border-radius: 0px 0px 5px 5px;border-top: 1px solid #dddddd;line-height: 200%;'><div class='divNSFWbtn' style='background-color: #8cc14c;' onclick=\"dmStart('start');\">Start</div><div class='divNSFWbtn' style='background-color: #da314b;' onclick=\"dmStart('cancel')\">Cancel</div></span></div></center></td></tr></table>"; 2105 document.getElementById('nsfwview').style.display=""; 2106 2107 dmLocked = false; 2108 document.getElementById("msgInput").disabled = false; 2109 }else if (JSON.parse(responseData[0]).response == "fail"){ 2110 var userDmData = JSON.parse(responseData[1]).username.replace(/<i-pb>/g, "<img class='emoji' src='../images/pizzabot.png'>"); 2111 2112 document.getElementById('messageBox').innerHTML = document.getElementById('messageBox').innerHTML + "<div class='dmMsgBox borderfix' style='border-top: 2px solid #e6e6e6;background-image: linear-gradient(to right, rgba(217, 222, 228, 0), rgba(248, 198, 198, 1), rgba(217, 222, 228, 0));'><span class='dmNameSpan'>" + userDmData + " - </span><span class='dmDateSpan'>" + JSON.parse(responseData[1]).posted + "</span><span class='dmMsgSpan'>" + JSON.parse(responseData[1]).msg + "</span></div>"; 2113 document.getElementById('msgInput').placeholder = JSON.parse(responseData[0]).input; 2114 dmLocked = true; 2115 dmFail = true; 2116 document.getElementById("msgInput").disabled = true; 2117 }else if (JSON.parse(responseData[0]).response == "captcha"){ 2118 var userDmData = JSON.parse(responseData[1]).username.replace(/<i-pb>/g, "<img class='emoji' src='../images/pizzabot.png'>"); 2119 2120 console.log (JSON.parse(responseData[0]).score); 2121 document.getElementById('messageBox').innerHTML = "<div class='dmMsgBox borderfix' style='background-image: linear-gradient(to right, rgba(217, 222, 228, 0), rgba(248, 198, 198, 1), rgba(217, 222, 228, 0));'><span class='dmNameSpan'>" + userDmData + " - </span><span class='dmDateSpan'>" + JSON.parse(responseData[1]).posted + "</span><span class='dmMsgSpan'>" + JSON.parse(responseData[1]).msg + "</span></div>"; 2122 document.getElementById('msgInput').placeholder = JSON.parse(responseData[0]).input; 2123 dmLocked = true; 2124 document.getElementById("msgInput").disabled = true; 2125 } 2126 }); 2127 }); 2128 } 2129} 2130 2131function loadDM(){ //No recaptcha BS 2132 document.getElementById("msgInput").addEventListener("keyup", function(event){ 2133 if (event.keyCode === 13) { 2134 subDM(); 2135 } 2136 }); 2137 2138 if (document.getElementById("unInput").value != ""){ 2139 var token = ""; 2140 2141 var xhttpLoad = new XMLHttpRequest(); 2142 xhttpLoad.open("POST", "../pages/dms.php", false); 2143 xhttpLoad.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 2144 xhttpLoad.send("u=" + document.getElementById("unInput").value + "&p=" + document.getElementById("pinInput").value + "&b=" + boltPass + "&t=" + token); 2145 var responseData = xhttpLoad.responseText.split("/n"); 2146 2147 if (JSON.parse(responseData[0]).response == "locked"){ 2148 var userDmData = JSON.parse(responseData[1]).username.replace(/<i-pb>/g, "<img class='emoji' src='../images/pizzabot.png'>"); 2149 2150 document.getElementById('infoDM').innerHTML = "DM: " + document.getElementById("unInput").value; 2151 document.getElementById('messageBox').innerHTML = "<div class='dmMsgBox dmMsgBoxSystem borderfix' style=''><span class='dmNameSpan'>" + userDmData + " - </span><span class='dmDateSpan'>" + JSON.parse(responseData[1]).posted + "</span><span class='dmMsgSpan'>" + JSON.parse(responseData[1]).msg + "</span></div><hr class='dmMsgBoxHR'>"; 2152 document.getElementById('msgInput').placeholder = JSON.parse(responseData[0]).input; 2153 document.getElementById('lockInput').checked = true; 2154 dmLocked = true; 2155 document.getElementById("msgInput").disabled = true; 2156 }else if (JSON.parse(responseData[0]).response == "pin"){ 2157 var userDmData = JSON.parse(responseData[1]).username.replace(/<i-pb>/g, "<img class='emoji' src='../images/pizzabot.png'>"); 2158 2159 document.getElementById('infoDM').innerHTML = "DM: " + document.getElementById("unInput").value; 2160 document.getElementById('messageBox').innerHTML = "<div class='dmMsgBox dmMsgBoxSystem borderfix' style=''><span class='dmNameSpan'>" + userDmData + " - </span><span class='dmDateSpan'>" + JSON.parse(responseData[1]).posted + "</span><span class='dmMsgSpan'>" + JSON.parse(responseData[1]).msg + "</span></div><hr class='dmMsgBoxHR'>"; 2161 document.getElementById('msgInput').placeholder = JSON.parse(responseData[0]).input; 2162 2163 dmLocked = false;
2164 document.getElementById("msgInput").disabled = false; 2165 2166 if (continueDM == true){ 2167 if (boltAccount == "yippiroono"){ 2168 document.getElementById('msgInput').type = "password"; 2169 document.getElementById('msgInput').value = boltPass; 2170 subDM(); 2171 }else if (localStorage.getItem("dmAccount") != null){ 2172 var lastDMAccount = JSON.parse(localStorage.getItem("dmAccount")); 2173 document.getElementById('msgInput').type = "password"; 2174 document.getElementById('msgInput').value = lastDMAccount.token; 2175 subDM(); 2176 }else{ 2177 document.getElementById('nsfwScreen').style.width = "100%"; 2178 document.getElementById('nsfwScreen').style.height = "100%"; 2179 document.getElementById('nsfwScreen').innerHTML = "<table style='width:100%;height:100%'><tr style='height:100%'><td style=''><center><div class='divNSFW'><span style='border-radius: 5px 5px 0px 0px;border-bottom: 1px solid #dddddd;font-size:26px;'>Password Required</span><div style='font-size:14px;font-weight:400;padding:10px;'><div id='passError' style='display:none;color:red;'>Error: You must enter a Password or the Password was incorrect!</div><div style='padding-bottom:5px;'>This account already exists and is secured with a password, please enter that password to continue:</div><div style='background:#ffffff;padding:5px 10px;border-radius:5px;width:90%;box-shadow: 0px 1px 4px #333333;'><input id='loginPass' style='outline: none;border: 0;font-size:20px;width: 100%;' type='password' autocomplete='off' maxlength='1000' placeholder='Enter Password'></div></div><span style='border-radius: 0px 0px 5px 5px;border-top: 1px solid #dddddd;line-height: 200%;'><div class='divNSFWbtn' style='background-color: #8cc14c;' onclick=\"dmStart('continue');\">Continue</div><div class='divNSFWbtn' style='background-color: #da314b;' onclick=\"dmStart('cancel')\">Cancel</div></span></div></center></td></tr></table>"; 2180 document.getElementById('nsfwview').style.display=""; 2181 2182 document.getElementById("loginPass").addEventListener("keyup", function(event){ 2183 if (event.keyCode === 13) { 2184 dmStart('continue'); 2185 } 2186 }); 2187 } 2188 }else{ 2189 document.getElementById('nsfwScreen').style.width = "100%"; 2190 document.getElementById('nsfwScreen').style.height = "100%"; 2191 document.getElementById('nsfwScreen').innerHTML = "<table style='width:100%;height:100%'><tr style='height:100%'><td style=''><center><div class='divNSFW'><span style='border-radius: 5px 5px 0px 0px;border-bottom: 1px solid #dddddd;font-size:26px;'>Password Required</span><div style='font-size:14px;font-weight:400;padding:10px;'><div id='passError' style='display:none;color:red;'>Error: You must enter a Password or the Password was incorrect!</div><div style='padding-bottom:5px;'>This account already exists and is secured with a password, please enter that password to continue:</div><div style='background:#ffffff;padding:5px 10px;border-radius:5px;width:90%;box-shadow: 0px 1px 4px #333333;'><input id='loginPass' style='outline: none;border: 0;font-size:20px;width: 100%;' type='password' autocomplete='off' maxlength='1000' placeholder='Enter Password'></div></div><span style='border-radius: 0px 0px 5px 5px;border-top: 1px solid #dddddd;line-height: 200%;'><div class='divNSFWbtn' style='background-color: #8cc14c;' onclick=\"dmStart('continue');\">Continue</div><div class='divNSFWbtn' style='background-color: #da314b;' onclick=\"dmStart('cancel')\">Cancel</div></span></div></center></td></tr></table>"; 2192 document.getElementById('nsfwview').style.display=""; 2193 2194 document.getElementById("loginPass").addEventListener("keyup", function(event){ 2195 if (event.keyCode === 13) { 2196 dmStart('continue'); 2197 } 2198 }); 2199 } 2200 }else if (JSON.parse(responseData[0]).response == "new"){ 2201 var userDmData = JSON.parse(responseData[1]).username.replace(/<i-pb>/g, "<img class='emoji' src='../images/pizzabot.png'>"); 2202 2203 document.getElementById('infoDM').innerHTML = "DM: " + document.getElementById("unInput").value; 2204 document.getElementById('messageBox').innerHTML = "<div class='dmMsgBox dmMsgBoxSystem borderfix' style=''><span class='dmNameSpan'>" + userDmData + " - </span><span class='dmDateSpan'>" + JSON.parse(responseData[1]).posted + "</span><span class='dmMsgSpan' id=''>" + JSON.parse(responseData[1]).msg + "</span></div><hr class='dmMsgBoxHR'>"; 2205 document.getElementById('msgInput').placeholder = JSON.parse(responseData[0]).input; 2206 2207 document.getElementById('nsfwScreen').style.width = "100%"; 2208 document.getElementById('nsfwScreen').style.height = "100%"; 2209 document.getElementById('nsfwScreen').innerHTML = "<table style='width:100%;height:100%'><tr style='height:100%'><td style=''><center><div class='divNSFW'><span style='border-radius: 5px 5px 0px 0px;border-bottom: 1px solid #dddddd;font-size:26px;'>Setup Password</span><div style='font-size:14px;font-weight:400;padding:10px;'><div id='passError' style='display:none;color:red;'>Error: You must enter a Password and re-enter the same password!</div><div style='padding-bottom:5px;'>To continue please enter a Password and keep it safe and secure:</div><div style='background:#ffffff;padding:5px 10px;border-radius:5px;width:90%;box-shadow: 0px 1px 4px #333333;'><input id='newPass1' style='outline: none;border: 0;font-size:20px;width: 100%;' type='password' autocomplete='off' maxlength='1000' placeholder='Enter Password'><hr><input id='newPass2' style='outline: none;border: 0;font-size:20px;width: 100%;' type='password' autocomplete='off' maxlength='1000' placeholder='Re-Enter Password'></div></div><span style='border-radius: 0px 0px 5px 5px;border-top: 1px solid #dddddd;line-height: 200%;'><div class='divNSFWbtn' style='background-color: #8cc14c;' onclick=\"dmStart('start');\">Start</div><div class='divNSFWbtn' style='background-color: #da314b;' onclick=\"dmStart('cancel')\">Cancel</div></span></div></center></td></tr></table>"; 2210 document.getElementById('nsfwview').style.display=""; 2211 2212 dmLocked = false;
2213 document.getElementById("msgInput").disabled = false; 2214 2215 document.getElementById("newPass1").addEventListener("keyup", function(event){ 2216 if (event.keyCode === 13) { 2217 dmStart('start'); 2218 } 2219 }); 2220 document.getElementById("newPass2").addEventListener("keyup", function(event){ 2221 if (event.keyCode === 13) { 2222 dmStart('start'); 2223 } 2224 }); 2225 }else if (JSON.parse(responseData[0]).response == "denied"){ 2226 var userDmData = JSON.parse(responseData[1]).username.replace(/<i-pb>/g, "<img class='emoji' src='../images/pizzabot.png'>"); 2227 2228 document.getElementById('infoDM').innerHTML = "DM: " + document.getElementById("unInput").value; 2229 document.getElementById('messageBox').innerHTML = "<div class='dmMsgBox dmMsgBoxSystem borderfix' style=''><span class='dmNameSpan'>" + userDmData + " - </span><span class='dmDateSpan'>" + JSON.parse(responseData[1]).posted + "</span><span class='dmMsgSpan'>" + JSON.parse(responseData[1]).msg + "</span></div><hr class='dmMsgBoxHR'>"; 2230 document.getElementById('msgInput').placeholder = JSON.parse(responseData[0]).input; 2231 2232 dmLocked = true; 2233 document.getElementById("msgInput").disabled = true; 2234 }else if (JSON.parse(responseData[0]).response == "fail"){ 2235 var userDmData = JSON.parse(responseData[1]).username.replace(/<i-pb>/g, "<img class='emoji' src='../images/pizzabot.png'>"); 2236 2237 document.getElementById('messageBox').innerHTML = document.getElementById('messageBox').innerHTML + "<div class='dmMsgBox dmMsgBoxSystem borderfix' style=''><span class='dmNameSpan'>" + userDmData + " - </span><span class='dmDateSpan'>" + JSON.parse(responseData[1]).posted + "</span><span class='dmMsgSpan'>" + JSON.parse(responseData[1]).msg + "</span></div><hr class='dmMsgBoxHR'>"; 2238 document.getElementById('msgInput').placeholder = JSON.parse(responseData[0]).input; 2239 dmLocked = true; 2240 dmFail = true; 2241 document.getElementById("msgInput").disabled = true; 2242 }else if (JSON.parse(responseData[0]).response == "captcha"){ 2243 var userDmData = JSON.parse(responseData[1]).username.replace(/<i-pb>/g, "<img class='emoji' src='../images/pizzabot.png'>"); 2244 2245 console.log (JSON.parse(responseData[0]).score); 2246 document.getElementById('messageBox').innerHTML = "<div class='dmMsgBox dmMsgBoxSystem borderfix' style=''><span class='dmNameSpan'>" + userDmData + " - </span><span class='dmDateSpan'>" + JSON.parse(responseData[1]).posted + "</span><span class='dmMsgSpan'>" + JSON.parse(responseData[1]).msg + "</span></div><hr class='dmMsgBoxHR'>"; 2247 document.getElementById('msgInput').placeholder = JSON.parse(responseData[0]).input; 2248 dmLocked = true; 2249 document.getElementById("msgInput").disabled = true; 2250 } 2251 } 2252} 2253 2254function dmStart(data){ 2255 if (data == "start"){ 2256 if (document.getElementById('newPass1').value != "" && document.getElementById('newPass1').value == document.getElementById('newPass2').value){ 2257 document.getElementById('msgInput').type = "password"; 2258 document.getElementById('msgInput').value = document.getElementById('newPass1').value; 2259 document.getElementById('nsfwScreen').innerHTML = ""; 2260 document.getElementById('nsfwview').style.display="none"; 2261 2262 subDM(); 2263 }else{ 2264 document.getElementById('passError').style.display = ""; 2265 document.getElementById('newPass1').value = ""; 2266 document.getElementById('newPass2').value = ""; 2267 } 2268 }else if (data == "continue"){ 2269 if (document.getElementById('loginPass').value != ""){ 2270 document.getElementById('msgInput').type = "password"; 2271 document.getElementById('msgInput').value = document.getElementById('loginPass').value; 2272 document.getElementById('nsfwScreen').innerHTML = ""; 2273 document.getElementById('nsfwview').style.display="none"; 2274 2275 subDM(); 2276 }else{ 2277 document.getElementById('passError').style.display = ""; 2278 document.getElementById('loginPass').value = ""; 2279 } 2280 }else if (data == "cancel"){ 2281 exitDM(); 2282 }else if (data == "close"){ 2283 document.getElementById('nsfwScreen').innerHTML = ""; 2284 document.getElementById('nsfwview').style.display="none"; 2285 }else if (data == "closedown"){ 2286 loadNameDM(); 2287 exitDM(); 2288 }else if (data == "logout"){ 2289 document.getElementById('nsfwScreen').innerHTML = ""; 2290 document.getElementById('nsfwview').style.display="none"; 2291 2292 clearNameDM(); 2293 exitDM(); 2294 2295 if (localStorage.getItem("dmAccount") != null){ 2296 localStorage.removeItem("dmAccount"); 2297 2298 if (document.getElementById('contFormDM') != undefined){ 2299 document.getElementById('contFormDM').style.display = "none"; 2300 document.getElementById('contNameDM').value = ""; 2301 } 2302 } 2303 //window.location.replace("contact"); 2304 } 2305} 2306 2307function termsDM(){ 2308 document.getElementById('nsfwScreen').style.width = "100%"; 2309 document.getElementById('nsfwScreen').style.height = "100%"; 2310 document.getElementById('nsfwScreen').innerHTML = "<table style='width:100%;height:100%'><tr style='height:100%'><td style=''><center><div class='divNSFW'><span style='border-radius: 5px 5px 0px 0px;border-bottom: 1px solid #dddddd;font-size:26px;'>DM Terms & Agreement</span><div style='font-size:14px;font-weight:400;padding:10px;'><b>You understand and Agree:</b><br> 1- Not to spam or send abuse or harassing messages using this service.<br>2- Not to use this for marketing or requests including commissions and trades!<br>3- That once this DM is no longer required it may be locked and possible deleted.<br>4- To remember your password and not to share it and that you accept all responsibility for it.<br><br>These terms can change at anytime with or without warning and affects everyone, anyone miss using or breaching these terms may get blocked from using this service. Please check the full <a href='agreement'>Terms and Agreement</a> and the <a href='privacy'>Privacy Policy</a>. If you wish for this DM to be disabled (locked) or deleted just let me know.</div><span style='border-radius: 0px 0px 5px 5px;border-top: 1px solid #dddddd;line-height: 200%;'><div class='divNSFWbtn' style='background-color: #8cc14c;' onclick=\"dmStart('close');\">Close</div></span></div></center></td></tr></table>"; 2311 document.getElementById('nsfwview').style.display=""; 2312} 2313 2314 2315function subDM(){ 2316 if (dmLocked == true && boltAccount != "yippiroono"){ 2317 return; 2318 } 2319 2320 if (document.getElementById("unInput").value != ""){ 2321 var xhttpSub = new XMLHttpRequest(); 2322 xhttpSub.open("POST", "../pages/dms.php", false); 2323 xhttpSub.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 2324 xhttpSub.send("m=" + document.getElementById("msgInput").value + "&u=" + document.getElementById("unInput").value + "&p=" + document.getElementById("pinInput").value + "&c=" + document.getElementById('closeInput').checked + "&l=" + document.getElementById('lockInput').checked); 2325 var responseData = xhttpSub.responseText.split("/n"); 2326 2327 if (JSON.parse(responseData[0]).response == "nope"){ 2328 var userDmData = JSON.parse(responseData[1]).username.replace(/<i-pb>/g, "<img class='emoji' src='../images/pizzabot.png'>"); 2329 2330 document.getElementById('messageBox').innerHTML = document.getElementById('messageBox').innerHTML + "<div class='dmMsgBox dmMsgBoxSystem borderfix' style=''><span class='dmNameSpan'>" + userDmData + " - </span><span class='dmDateSpan'>" + JSON.parse(responseData[1]).posted + "</span><span class='dmMsgSpan'>" + JSON.parse(responseData[1]).msg + "</span></div><hr class='dmMsgBoxHR'>"; 2331 document.getElementById('msgInput').placeholder = JSON.parse(responseData[0]).input; 2332 2333 document.getElementById('nsfwScreen').style.width = "100%"; 2334 document.getElementById('nsfwScreen').style.height = "100%"; 2335 document.getElementById('nsfwScreen').innerHTML = "<table style='width:100%;height:100%'><tr style='height:100%'><td style=''><center><div class='divNSFW'><span style='border-radius: 5px 5px 0px 0px;border-bottom: 1px solid #dddddd;font-size:26px;'>Password Required</span><div style='font-size:14px;font-weight:400;padding:10px;'><div id='passError' style='display:;color:red;'>Error: You must enter a Password or the Password was incorrect!</div><div style='padding-bottom:5px;'>This account already exists and is secured with a password, please enter that password to continue:</div><div style='background:#ffffff;padding:5px 10px;border-radius:5px;width:90%;box-shadow: 0px 1px 4px #333333;'><input id='loginPass' style='outline: none;border: 0;font-size:20px;width: 100%;' type='password' autocomplete='off' maxlength='1000' placeholder='Enter Password'></div></div><span style='border-radius: 0px 0px 5px 5px;border-top: 1px solid #dddddd;line-height: 200%;'><div class='divNSFWbtn' style='background-color: #8cc14c;' onclick=\"dmStart('continue');\">Continue</div><div class='divNSFWbtn' style='background-color: #da314b;' onclick=\"dmStart('cancel')\">Cancel</div></span></div></center></td></tr></table>"; 2336 document.getElementById('nsfwview').style.display=""; 2337 2338 dmLocked = false;
2339 document.getElementById("msgInput").disabled = false; 2340 }else if (JSON.parse(responseData[0]).response == "loggedin"){ 2341 document.getElementById('messageBox').innerHTML = ""; 2342 if (boltAccount == "yippiroono"){ 2343 document.getElementById('pinInput').value = boltPass; 2344 }else{ 2345 document.getElementById('pinInput').value = JSON.parse(responseData[0]).token; 2346 localStorage.setItem('dmAccount', '{"username":"' + document.getElementById("unInput").value + '","token":"' + document.getElementById('pinInput').value + '"}'); 2347 } 2348 document.getElementById('msgInput').placeholder = JSON.parse(responseData[0]).input; 2349 2350 refreshDM(); 2351 document.getElementById('dmControlExtra').style.display = "inline-block"; 2352 }else if (JSON.parse(responseData[0]).response == "ready"){ 2353 var userDmData = JSON.parse(responseData[1]).username.replace(/<i-pb>/g, "<img class='emoji' src='../images/pizzabot.png'>"); 2354 2355 document.getElementById('infoDM').innerHTML = "DM: " + document.getElementById("unInput").value; 2356 document.getElementById('messageBox').innerHTML = "<div class='dmMsgBox dmMsgBoxSystem borderfix' style=''><span class='dmNameSpan'>" + userDmData + " - </span><span class='dmDateSpan'>" + JSON.parse(responseData[1]).posted + "</span><span class='dmMsgSpan'>" + JSON.parse(responseData[1]).msg + "</span></div><hr class='dmMsgBoxHR'>"; 2357 document.getElementById('msgInput').placeholder = JSON.parse(responseData[0]).input; 2358 dmLocked = false; 2359 document.getElementById("msgInput").disabled = false; 2360 2361 document.getElementById('pinInput').value = JSON.parse(responseData[0]).token; 2362 localStorage.setItem('dmAccount', '{"username":"' + document.getElementById("unInput").value + '","token":"' + document.getElementById('pinInput').value + '"}'); 2363 2364 refreshDM(); 2365 document.getElementById('dmControlExtra').style.display = "inline-block"; 2366 }else if (JSON.parse(responseData[0]).response == "fail"){ 2367 var userDmData = JSON.parse(responseData[1]).username.replace(/<i-pb>/g, "<img class='emoji' src='../images/pizzabot.png'>"); 2368 2369 document.getElementById('messageBox').innerHTML = document.getElementById('messageBox').innerHTML + "<div class='dmMsgBox dmMsgBoxSystem borderfix' style=''><span class='dmNameSpan'>" + userDmData + " - </span><span class='dmDateSpan'>" + JSON.parse(responseData[1]).posted + "</span><span class='dmMsgSpan'>" + JSON.parse(responseData[1]).msg + "</span></div><hr class='dmMsgBoxHR'>"; 2370 document.getElementById('msgInput').placeholder = JSON.parse(responseData[0]).input; 2371 document.getElementById("msgInput").disabled = true; 2372 dmFail = true; 2373 }else{ 2374 console.log ("umm"); 2375 } 2376 2377 document.getElementById('messageBox').scrollTop = document.getElementById('messageBox').scrollHeight; 2378 document.getElementById('msgInput').value = ""; 2379 document.getElementById('msgInput').type = "text"; 2380 } 2381} 2382 2383function refreshDM(){ 2384 if (document.getElementById("unInput").value != ""){ 2385 var xhttpRef = new XMLHttpRequest(); 2386 xhttpRef.onreadystatechange = function() { 2387 if (this.readyState == 4 && this.status == 200) { 2388 var responseData = xhttpRef.responseText.split("/n"); 2389 2390 if (JSON.parse(responseData[0]).response == "data"){ 2391 var historyData = ""; 2392 document.getElementById('infoDM').innerHTML = "DM: " + document.getElementById("unInput").value + " - IP: " + JSON.parse(responseData[0]).ip + ""; 2393 2394 for (var i = 1; i < responseData.length - 1; i++) { 2395 var userDmData1 = JSON.parse(responseData[i]).username.replace(/<i-bs>/g, "<img class='emoji' src='../images/boltsays.png'>"); 2396 var userDmData2 = userDmData1.replace(/<i-pb>/g, "<img class='emoji' src='../images/pizzabot.png'>"); 2397 var userDmData3 = userDmData2.replace(/<i-cg>/g, "<img class='emoji' src='../images/cuteguest.png'>"); 2398 var userDmData = userDmData3.replace(/<i-bg>/g, "<img class='emoji' src='../images/boltguest.png'>"); 2399 2400 if (JSON.parse(responseData[i]).username == "<i-pb> System" || JSON.parse(responseData[i]).username == "<i-pb> System Admin" || JSON.parse(responseData[i]).username == "<i-pb> System Hidden" || JSON.parse(responseData[i]).username == "Control Center"){ 2401 historyData += "<div class='dmMsgBox dmMsgBoxSystem borderfix' style='solid #e6e6e6;'><span class='dmNameSpan'>" + userDmData + " - </span><span class='dmDateSpan'>" + JSON.parse(responseData[i]).posted + "</span><span class='dmMsgSpan'>" + JSON.parse(responseData[i]).msg + "</span></div><hr class='dmMsgBoxHR'>"; 2402 }else if(JSON.parse(responseData[i]).username == "<i-pb> System Error"){ 2403 historyData += "<div class='dmMsgBox dmMsgBoxError borderfix' style='solid #e6e6e6;'><span class='dmNameSpan'>" + userDmData + " - </span><span class='dmDateSpan'>" + JSON.parse(responseData[i]).posted + "</span><span class='dmMsgSpan'>" + JSON.parse(responseData[i]).msg + "</span></div><hr class='dmMsgBoxHR'>"; 2404 }else{ 2405 historyData += "<div class='dmMsgBox borderfix' style='solid #e6e6e6;'><span class='dmNameSpan'>" + userDmData + " - </span><span class='dmDateSpan'>" + JSON.parse(responseData[i]).posted + "</span><span class='dmMsgSpan' id='msg-" + JSON.parse(responseData[i]).id + "'>" + JSON.parse(responseData[i]).msg + "</span></div><hr class='dmMsgBoxHR'>"; 2406 } 2407 } 2408 2409 if (JSON.parse(responseData[0]).status == "closed"){ 2410 dmLocked = true; 2411 document.getElementById("msgInput").disabled = true; 2412 document.getElementById('closeInput').checked = true; 2413 document.getElementById('msgInput').placeholder = "Chat Locked!"; 2414 } 2415 if (JSON.parse(responseData[0]).status == "open"){ 2416 dmLocked = false;
2417 document.getElementById("msgInput").disabled = false; 2418 document.getElementById('closeInput').checked = false; 2419 document.getElementById('msgInput').placeholder = "Message"; 2420 } 2421 if (JSON.parse(responseData[0]).status == "locked"){ 2422 var userDmData = JSON.parse(responseData[1]).username.replace(/<i-pb>/g, "<img class='emoji' src='../images/pizzabot.png'>"); 2423 2424 document.getElementById('infoDM').innerHTML = "DM: " + document.getElementById("unInput").value; 2425 document.getElementById('messageBox').innerHTML = "<div class='dmMsgBox dmMsgBoxSystem borderfix' style=''><span class='dmNameSpan'>" + userDmData + " - </span><span class='dmDateSpan'>" + JSON.parse(responseData[1]).posted + "</span><span class='dmMsgSpan'>" + JSON.parse(responseData[1]).msg + "</span></div><hr class='dmMsgBoxHR'>"; 2426 document.getElementById('msgInput').placeholder = JSON.parse(responseData[0]).input; 2427 document.getElementById('lockInput').checked = true; 2428 dmLocked = true; 2429 document.getElementById("msgInput").disabled = true; 2430 } 2431 2432 document.getElementById('messageBox').innerHTML = historyData; 2433 }else if (JSON.parse(responseData[0]).response == "fail"){ 2434 if (dmFail != true){ 2435 var userDmData = JSON.parse(responseData[1]).username.replace(/<i-pb>/g, "<img class='emoji' src='../images/pizzabot.png'>"); 2436 2437 document.getElementById('messageBox').innerHTML = document.getElementById('messageBox').innerHTML + "<div class='dmMsgBox dmMsgBoxSystem borderfix' style=''><span class='dmNameSpan'>" + userDmData + " - </span><span class='dmDateSpan'>" + JSON.parse(responseData[1]).posted + "</span><span class='dmMsgSpan'>" + JSON.parse(responseData[1]).msg + "</span></div><hr class='dmMsgBoxHR'>"; 2438 document.getElementById('msgInput').placeholder = JSON.parse(responseData[0]).input; 2439 dmLocked = false; 2440 dmFail = true; 2441 document.getElementById("msgInput").disabled = true; 2442 } 2443 } 2444 2445 if (xhttpRef.responseText != dmUpdated && document.getElementById('messageBox').scrollTop >= dmScroll){ 2446 dmUpdated = xhttpRef.responseText; 2447 document.getElementById('messageBox').scrollTop = document.getElementById('messageBox').scrollHeight; 2448 } 2449 2450 dmScroll = document.getElementById('messageBox').scrollHeight - document.getElementById('messageBox').clientHeight; 2451 } 2452 }; 2453 xhttpRef.open("POST", "../pages/dms.php", true); 2454 xhttpRef.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 2455 xhttpRef.send("u=" + document.getElementById("unInput").value + "&p=" + document.getElementById("pinInput").value + "&r=true"); 2456 2457 setTimeout(function(){ 2458 refreshDM(); 2459 }, 1000); 2460 } 2461} 2462 2463function dmAdminDelete(data){ 2464 if (boltAccount == "yippiroono"){ 2465 if (confirm('Delete DM\n \n( ' + data + '.dm )')){ 2466 //console.log (document.getElementById('pinInput').value); 2467 window.open('https://littlebolt.me/pony_admin.php?p=data%2Fdms&dmdel=' + data + '.dm', '_top'); 2468 return; 2469 }else{ 2470 return; 2471 } 2472 } 2473} 2474 2475function dmAdminAction(action,file,data){ 2476 if (boltAccount == "yippiroono"){ 2477 if (action == "edit"){ 2478 2479 return; 2480 } 2481 2482 var xhttpSub = new XMLHttpRequest(); 2483 xhttpSub.open("POST", "../pages/dms.php", false); 2484 xhttpSub.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 2485 xhttpSub.send("b=" + boltPass + "&aa=" + action + "&af=" + file + "&ad=" + data); 2486 var responseData = xhttpSub.responseText.split("/n"); 2487 console.log (responseData); 2488 2489 if (JSON.parse(responseData[0]).response == "data"){ 2490 document.getElementById('infoDM').innerHTML = "DM: " + document.getElementById("unInput").value + " - IP: " + JSON.parse(responseData[0]).ip + ""; 2491 2492 for (var i = 1; i < responseData.length - 1; i++) { 2493 var userDmData1 = JSON.parse(responseData[i]).username.replace(/<i-pb>/g, "<img class='emoji' src='../images/pizzabot.png'>"); 2494 var userDmData = userDmData1.replace(/<i-bg>/g, "<img class='emoji' src='../images/boltguest.png'>"); 2495 2496 if (JSON.parse(responseData[i]).username == "<i-pb> System" || JSON.parse(responseData[i]).username == "<i-pb> System Admin" || JSON.parse(responseData[i]).username == "<i-pb> System Hidden" || JSON.parse(responseData[i]).username == "Control Center"){ 2497 document.getElementById('messageBox').innerHTML = document.getElementById('messageBox').innerHTML + "<div class='dmMsgBox dmMsgBoxSystem borderfix' style='solid #e6e6e6;'><span class='dmNameSpan'>" + userDmData + " - </span><span class='dmDateSpan'>" + JSON.parse(responseData[i]).posted + "</span><span class='dmMsgSpan'>" + JSON.parse(responseData[i]).msg + "</span></div><hr class='dmMsgBoxHR'>"; 2498 } 2499 } 2500 location.reload(true); 2501 } 2502 } 2503} 2504 2505function aniocs(){ 2506 $.getJSON("/data/ocs.json", function(json) { 2507 ponesocs = json; 2508 }); 2509} 2510 2511function anilogo(){ 2512 if (typeof pizzasite !== "undefined"){ 2513 headerPizzaBtn(); 2514 } 2515 2516 //document.getElementById("logolarge").src = "/images/logo/logoblank.png?v1"; 2517 2518 headerPlayBtnLoaded();
2519 logoAnimationFunc(); 2520 logoFPScount(); 2521 2522 msAnimationEnd(); 2523 document.getElementById('ptfriendbg').addEventListener('animationend',msAnimationEnd); 2524} 2525 2526var logoAniFPS = 1; 2527var thefps = 25; 2528var lastLoop = new Date; 2529 2530function logoAnimationFuncOLD(){ 2531 var thisLoop = new Date; 2532 2533 if (logoAutoPlay == true && logoPlay == true && logoScrollPlay == true){ 2534 //document.getElementById("logolarge").style.backgroundImage = "url('/images/logo/logo2020/trotting.png')"; 2535 document.getElementById("logolarge").src = "/images/logo/logo2020/" + logoFrame + ".png?v2"; // /images/logo/logoani 2536 2537 if (currentFPS >= 0){ 2538 if (localStorage.getItem("header-play") != null){ 2539 if (localStorage.getItem("header-play") == "true"){ 2540 var imgs = document.querySelectorAll('.bgani'); 2541 for (var i = 0; i < imgs.length; i++) { 2542 imgs[i].style.webkitAnimationPlayState = 'running'; 2543 } 2544 }else{ 2545 var imgs = document.querySelectorAll('.bgani'); 2546 for (var i = 0; i < imgs.length; i++) { 2547 imgs[i].style.webkitAnimationPlayState = 'paused'; 2548 } 2549 } 2550 }else{ 2551 var imgs = document.querySelectorAll('.bgani'); 2552 for (var i = 0; i < imgs.length; i++) { 2553 imgs[i].style.webkitAnimationPlayState = 'running'; 2554 } 2555 } 2556 2557 if (logoAniFPS >= (currentFPS/16)/1){ 2558 if (logoFrame == 16){ 2559 logoFrame = 1; 2560 }else{ 2561 logoFrame++; 2562 } 2563 logoAniFPS = 1; 2564 }else{ 2565 logoAniFPS++; 2566 } 2567 }else{ 2568 var imgs = document.querySelectorAll('.bgani'); 2569 for (var i = 0; i < imgs.length; i++) { 2570 imgs[i].style.webkitAnimationPlayState = 'paused'; 2571 } 2572 } 2573 } 2574 2575 //setTimeout(function(){ logoAnimationFunc(); }, 32); 2576 requestAnimationFrame( logoAnimationFunc ); 2577} 2578function logoAnimationFunc(){ 2579 var thisLoop = new Date; 2580 2581 if (logoAutoPlay == true && logoPlay == true && logoScrollPlay == true){ 2582 if (logoFrame > 16){ 2583 logoFrame = logoFrame - 16; 2584 } 2585 2586 //document.getElementById("logolarge").style.backgroundImage = "url('/images/logo/logo2020/trotting.png')"; 2587 document.getElementById("logolarge").src = "/images/logo/logo2020/" + logoFrame + ".png?v2"; // /images/logo/logoani 2588 2589 if (currentFPS >= 0){ 2590 if (localStorage.getItem("header-play") != null){ 2591 if (localStorage.getItem("header-play") == "true"){ 2592 var imgs = document.querySelectorAll('.bgani'); 2593 for (var i = 0; i < imgs.length; i++) { 2594 imgs[i].style.webkitAnimationPlayState = 'running'; 2595 } 2596 }else{ 2597 var imgs = document.querySelectorAll('.bgani'); 2598 for (var i = 0; i < imgs.length; i++) { 2599 imgs[i].style.webkitAnimationPlayState = 'paused'; 2600 } 2601 } 2602 }else{ 2603 var imgs = document.querySelectorAll('.bgani'); 2604 for (var i = 0; i < imgs.length; i++) { 2605 imgs[i].style.webkitAnimationPlayState = 'running'; 2606 } 2607 } 2608 2609 logoFrame++; 2610 }else{ 2611 var imgs = document.querySelectorAll('.bgani'); 2612 for (var i = 0; i < imgs.length; i++) { 2613 imgs[i].style.webkitAnimationPlayState = 'paused'; 2614 } 2615 } 2616 } 2617 2618 setTimeout(function(){ 2619 currentFPS = Math.floor(1000 / (thisLoop - lastLoop)); 2620 lastLoop = thisLoop; 2621 requestAnimationFrame( logoAnimationFunc ); 2622 }, 1000/thefps); 2623} 2624 2625function logoFPScount(){ 2626 document.getElementById('header_fps').innerHTML = currentFPS; 2627 setTimeout(function(){ logoFPScount(); }, 1000); 2628} 2629 2630function msAnimationEnd(){ 2631 $("#ptfriendbg").removeClass("prfriendani"); 2632 setTimeout(function(){ 2633 var randompone = Math.floor((Math.random() * (+ponesocs.length - 1)) + 1); 2634 2635 if (ponesocs[randompone].visible == "false"){ 2636 msAnimationEnd(); 2637 return; 2638 } 2639 2640 document.getElementById("ptfriend").style.background = "url('/images/ptfriends/" + ponesocs[randompone].image + "') left center"; 2641 document.getElementById("ptfriend").style.animation = "play 1.0s steps(" + ponesocs[randompone].frames + ") infinite"; 2642 2643 $("#ptfriendbg").addClass("prfriendani"); 2644 }, 6000); 2645} 2646 2647function countdownMain(){ 2648 if (mainCountDownEnable == true){ 2649 document.getElementById('mainCoundDownDiv').style.display = ""; 2650 //$("#mainCoundDownDiv").addClass("mainCoundDownDivShow"); 2651 document.getElementById('mainCoundDownDiv').addEventListener('animationend', function(){ 2652 //document.getElementById('mainCoundDownDiv').style.bottom = "0p
2652x"; 2653 //$("#mainCoundDownDiv").removeClass("mainCoundDownDivShow"); 2654 }); 2655 2656 if (mainCountDownTitle != ""){ 2657 if (document.getElementById('mainCoundDownDiv') != undefined && document.getElementById('mainCoundDownDiv') != null){ 2658 document.getElementById('mainCDT').innerHTML = mainCountDownTitle; 2659 document.getElementById('mainCoundDownDiv').style.paddingTop = "21px"; 2660 document.getElementById('mainCDT').style.top = "-21px"; 2661 document.getElementById('mainCDT').style.display = ""; 2662 } 2663 } 2664 2665 countdownInter = setInterval(function() { 2666 // Get today's date and time 2667 var now = new Date(); 2668 2669 // Find the distance between now and the count down date 2670 var distance = mainCountDownDate - now; 2671 2672 // Time calculations for days, hours, minutes and seconds 2673 var CDdays = Math.floor(distance / (1000 * 60 * 60 * 24)); 2674 var CDhours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); 2675 var CDminutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); 2676 var CDseconds = Math.floor((distance % (1000 * 60)) / 1000); 2677 2678 if (document.getElementById('mainCoundDownDiv') === undefined || document.getElementById('mainCoundDownDiv') === null){ 2679 }else{ 2680 if (distance < 0) { 2681 clearInterval(countdownInter); 2682 document.getElementById('mainCDD').innerHTML = "00"; 2683 document.getElementById('mainCDH').innerHTML = "00"; 2684 document.getElementById('mainCDM').innerHTML = "00"; 2685 document.getElementById('mainCDS').innerHTML = "00"; 2686 2687 if (mainCountDownMsg != ""){ 2688 setTimeout(function(){ 2689 $("#counterDiv").addClass("counterDivFadeOut"); 2690 document.getElementById('counterDiv').addEventListener('animationend', function(){ 2691 $( "#counterDiv" ).remove(); 2692 2693 var newcounter = document.createElement("div"); 2694 newcounter.id = "counterDiv"; 2695 newcounter.className = "counterDiv"; 2696 newcounter.className = "counterDivFadeIn"; 2697 newcounter.style.fontSize = "12px"; 2698 newcounter.style.position = "absolute"; 2699 newcounter.style.left = "50%"; 2700 newcounter.style.transform = "translate(-50%, 0%)"; 2701 newcounter.innerHTML = mainCountDownMsg; 2702 $("#mainCoundDownDiv").append(newcounter); 2703 }); 2704 }, 500); 2705 } 2706 if (mainCountDownHideonFinish != 0){ 2707 setTimeout(function(){ 2708 $("#mainCoundDownDiv").addClass("mainCoundDownDivHide"); 2709 document.getElementById('mainCoundDownDiv').addEventListener('animationend', function(){ 2710 document.getElementById('mainCoundDownDiv').style.display = "none"; 2711 }); 2712 }, mainCountDownHideonFinish); 2713 } 2714 }else{ 2715 //Day 2716 if (parseInt(document.getElementById('mainCDD').innerHTML) != CDdays){ 2717 $("#mainCDD").addClass("countdownScrollOut"); 2718 document.getElementById('mainCDD').addEventListener('animationend', function(){ 2719 $( "#mainCDD" ).remove(); 2720 }); 2721 setTimeout(function(){ 2722 var newcounter = document.createElement("div"); 2723 newcounter.id = "mainCDD"; 2724 newcounter.className = "mainCDD"; 2725 newcounter.style.position = "absolute"; 2726 newcounter.style.left = "50%"; 2727 newcounter.style.transform = "translate(-50%, 0%)"; 2728 newcounter.className = "countdownScrollIn"; 2729 newcounter.innerHTML = ("00" + CDdays).slice(-2); 2730 $("#divCDD").append(newcounter); 2731 document.getElementById('mainCDD').addEventListener('animationend', function(){ 2732 setTimeout(function(){ 2733 $("#mainCDD").removeClass("countdownScrollIn"); 2734 }, 100); 2735 }); 2736 }, 100); 2737 } 2738 //Hour 2739 if (parseInt(document.getElementById('mainCDH').innerHTML) != CDhours){ 2740 $("#mainCDH").addClass("countdownScrollOut"); 2741 document.getElementById('mainCDH').addEventListener('animationend', function(){ 2742 $( "#mainCDH" ).remove(); 2743 }); 2744 setTimeout(function(){ 2745 var newcounter = document.createElement("div"); 2746 newcounter.id = "mainCDH"; 2747 newcounter.className = "mainCDH"; 2748 newcounter.style.position = "absolute"; 2749 newcounter.style.left = "50%"; 2750 newcounter.style.transform = "translate(-50%, 0%)"; 2751 newcounter.className = "countdownScrollIn"; 2752 newcounter.innerHTML = ("00" + CDhours).slice(-2);
2753 $("#divCDH").append(newcounter); 2754 document.getElementById('mainCDH').addEventListener('animationend', function(){ 2755 setTimeout(function(){ 2756 $("#mainCDH").removeClass("countdownScrollIn"); 2757 }, 100); 2758 }); 2759 }, 100); 2760 } 2761 //Min 2762 if (parseInt(document.getElementById('mainCDM').innerHTML) != CDminutes){ 2763 $("#mainCDM").addClass("countdownScrollOut"); 2764 document.getElementById('mainCDM').addEventListener('animationend', function(){ 2765 $( "#mainCDM" ).remove(); 2766 }); 2767 setTimeout(function(){ 2768 var newcounter = document.createElement("div"); 2769 newcounter.id = "mainCDM"; 2770 newcounter.className = "mainCDM"; 2771 newcounter.style.position = "absolute"; 2772 newcounter.style.left = "50%"; 2773 newcounter.style.transform = "translate(-50%, 0%)"; 2774 newcounter.className = "countdownScrollIn"; 2775 newcounter.innerHTML = ("00" + CDminutes).slice(-2); 2776 $("#divCDM").append(newcounter); 2777 document.getElementById('mainCDM').addEventListener('animationend', function(){ 2778 setTimeout(function(){ 2779 $("#mainCDM").removeClass("countdownScrollIn"); 2780 }, 100); 2781 }); 2782 }, 100); 2783 } 2784 //Sec 2785 if (parseInt(document.getElementById('mainCDS').innerHTML) != CDseconds){ 2786 $("#mainCDS").addClass("countdownScrollOut"); 2787 document.getElementById('mainCDS').addEventListener('animationend', function(){ 2788 $( "#mainCDS" ).remove(); 2789 }); 2790 setTimeout(function(){ 2791 var newcounter = document.createElement("div"); 2792 newcounter.id = "mainCDS"; 2793 newcounter.className = "mainCDS"; 2794 newcounter.style.position = "absolute"; 2795 newcounter.style.left = "50%"; 2796 newcounter.style.transform = "translate(-50%, 0%)"; 2797 newcounter.className = "countdownScrollIn"; 2798 newcounter.innerHTML = ("00" + CDseconds).slice(-2); 2799 $("#divCDS").append(newcounter); 2800 document.getElementById('mainCDS').addEventListener('animationend', function(){ 2801 setTimeout(function(){ 2802 $("#mainCDS").removeClass("countdownScrollIn"); 2803 }, 100); 2804 }); 2805 }, 100); 2806 } 2807 } 2808 } 2809 }, 500); 2810 }else{ 2811 document.getElementById('mainCoundDownDiv').style.display = "none"; 2812 } 2813} 2814 2815function countdownFun(){ 2816 var countdownFunInter = setInterval(function() { 2817 // Get today's date and time 2818 var now = new Date().getTime(); 2819 2820 // Find the distance between now and the count down date 2821 var distance = countDownDate - now; 2822 2823 // Time calculations for days, hours, minutes and seconds 2824 var CDdays = Math.floor(distance / (1000 * 60 * 60 * 24)); 2825 var CDhours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); 2826 var CDminutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); 2827 var CDseconds = Math.floor((distance % (1000 * 60)) / 1000); 2828 2829 var countdownCounter = ("00" + CDdays).slice(-2) + ":" + ("00" + CDhours).slice(-2) + ":" + ("00" + CDminutes).slice(-2) + ":" + ("00" + CDseconds).slice(-2); 2830 countdownString = CountDownTxt.replace("[countdown]", countdownCounter); 2831 2832 if (distance < 0) { 2833 clearInterval(countdownFunInter); 2834 countdownString = CountDownEnd; 2835 } 2836 2837 if (document.getElementById('countdownDiv') === undefined || document.getElementById('countdownDiv') === null){ 2838 }else{ 2839 document.getElementById('countdownDiv').innerHTML = countdownString; 2840 } 2841 }, 1000); 2842} 2843 2844function aniHeader(){ 2845 if (pauseHeaderAni == true){ 2846 setTimeout(function(){ aniHeader(); }, 1000); 2847 }else{ 2848 var d = new Date(); 2849 var months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "
2849November", "December"]; 2850 var days = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]; 2851 var todaysDate = days[d.getDay()] + ", " + months[d.getMonth()] + " " + d.getDate() + ", " + d.getFullYear(); 2852 var headerTxtA = $('#headerTxt'); 2853 2854 if (aniHeadFrame == 0){ 2855 headerTxtA.animate({opacity:'0'}, 1000, function(){aniHeadFrame=1;aniHeader();}); 2856 }else{ 2857 var tickerArray = phpTickerArray; 2858 2859 var tickerString1 = tickerArray[aniHeadFrame].replace("[date]", todaysDate); 2860 var tickerString2 = tickerString1.replace("[patreon]", supportersString); 2861 var tickerString3 = tickerString2.replace("[countdown]", "<div id='countdownDiv' style='width:100%'>" + countdownString + "</div>"); 2862 var tickerString4 = tickerString3.replace("[i-lb]", "<img src=\"../images/boltsays.png?v1\" style=\"width:14px;\">"); 2863 var tickerString5 = tickerString4.replace("[i-lb-x]", "<img src=\"../images/boltsays.png?v1\" style=\"width:14px;-webkit-transform: scaleX(-1); transform: scaleX(-1);\">"); 2864 var tickerString6 = tickerString5.replace("[i-pp]", "<img src=\"../images/pizzahappy.png?v1\" style=\"width:14px;\">"); 2865 var tickerString7 = tickerString6.replace("[i-pp-x]", "<img src=\"../images/pizzahappy.png?v1\" style=\"width:14px;-webkit-transform: scaleX(-1); transform: scaleX(-1);\">"); 2866 var tickerString8 = tickerString7.replace("[i-pb]", "<img src=\"../images/pizzabot.png?v1\" style=\"width:14px;\">"); 2867 var tickerString9 = tickerString8.replace("[i-pb-x]", "<img src=\"../images/pizzabot.png?v1\" style=\"width:14px;-webkit-transform: scaleX(-1); transform: scaleX(-1);\">"); 2868 var tickerString10 = tickerString9.replace("[i-cw]", "<img src=\"../images/cutesmug.png?v1\" style=\"width:14px;\">"); 2869 var tickerString0 = tickerString10.replace("[i-cw-x]", "<img src=\"../images/cutesmug.png?v1\" style=\"width:14px;-webkit-transform: scaleX(-1); transform: scaleX(-1);\">"); 2870 2871 tickerArray[aniHeadFrame] = tickerString0; 2872 //var tickerArray = tickerString0.split("[l]"); 2873 2874 headerTxtA.css('top','35px'); 2875 headerTxtA.css('opacity','1'); 2876 2877 if (tickerArray[aniHeadFrame].indexOf("<end>") != -1){ 2878 aniHeadFrame = 1; 2879 } 2880 2881 if (tickerArray[aniHeadFrame].indexOf("|") != -1){ 2882 var scrollArray = tickerArray[aniHeadFrame].split("|"); 2883 2884 if (scrollArray[0] == ""){var scrollTxtTitle = "";}else{var scrollTxtTitle = scrollArray[0] + "";} 2885 var scrollTxtBody = scrollArray[1]; 2886 2887 headerTxtA.css('top','35px'); 2888 2889 headerTxtA.css('text-align','left'); 2890 headerTxtA.html("<div id='headerTxt0' style='position: absolute;'>" + scrollTxtTitle + "</div>"); 2891 headerTxtA.append("<div style='position: absolute;left:" + ($('#headerTxt0').outerWidth() + 1) + "px;width:calc(100% - " + ($('#headerTxt0').outerWidth() + 1) + "px);height: 50px;overflow: hidden;'><span id='headerTxt2' style='position: absolute;left:10px;white-space: nowrap;'>" + scrollTxtBody + "</span><div style='position: absolute;left:-10px;width:30px;height:30px;background-image:url("images/fadeleft.png");'></div><div style='position: absolute;right:-10px;width:30px;height:30px;background-image:url("images/faderight.png");'></div></div>"); 2892 headerTxtA.animate({top: 0}, 1500); 2893 $('#headerTxt2').delay(2000); 2894 if (($('#headerTxt2').outerWidth() + $('#headerTxt0').outerWidth()) > headerTxtA.outerWidth()){ 2895 $('#headerTxt2').animate({left: -$('#headerTxt2').outerWidth() + headerTxtA.outerWidth() - $('#headerTxt0').outerWidth() - 10}, $('#headerTxt2').outerWidth() * 8, function(){ 2896 headerTxtA.delay(2000); 2897 headerTxtA.animate({top: -35}, 1500, function(){aniHeader();}); 2898 }); 2899 }else{ 2900 $('#headerTxt2').animate({left: 10}, 5000, function(){ 2901 headerTxtA.delay(2000); 2902 headerTxtA.animate({top: -35}, 1500, function(){aniHeader();}); 2903 }); 2904 } 2905 }else{ 2906 headerTxtA.css('text-align','center'); 2907 headerTxtA.html("<center><div id='headerTxt0' style='position:relative;align:center;white-space: nowrap;width: min-content;'>" + tickerArray[aniHeadFrame] + "</div></center>"); 2908 headerTxtA.animate({top: 0}, 1500); 2909 2910 if ($('#headerTxt0').outerWidth() > headerTxtA.outerWidth()){ 2911 $('#headerTxt0').delay(2000); 2912 $('#headerTxt0').animate({left: headerTxtA.outerWidth() - $('#headerTxt0').outerWidth()}, $('#headerTxt0').outerWidth() * 8, function(){ 2913 headerTxtA.delay(2000); 2914 headerTxtA.animate({top: -35}, 1500, function(){aniHeader();}); 2915 }); 2916 }else{ 2917 headerTxtA.delay(4000); 2918 headerTxtA.animate({top: -35}, 1500, function(){aniHeader();}); 2919 } 2920 } 2921 2922 if ((tickerString.split("[l][l]").length - 1) == aniHeadFrame){ 2923 aniHeadFrame = 1; 2924 }else{ 2925 aniHeadFrame++; 2926 } 2927 } 2928 } 2929} 2930 2931function reloadCommentCount(){
2932 DISQUSWIDGETS.getCount({reset: true}); 2933} 2934 2935function loadStatCounter(){ 2936 //document.getElementById('loadStatcounter').innerHTML = "<sc"+"ript type='text/javascript' src='" + scJsHost+ "statcounter.com/counter/counter.js'></"+"script>"; 2937} 2938 2939statusCheck(); 2940function statusCheck(){ 2941 $.ajax({ 2942 type: "GET", 2943 url: "secondlife/status.php?p=guest&r=read&d=1", 2944 dataType: "text", 2945 cache:false, 2946 success: function(data) { 2947 try { 2948 if (document.getElementById('slstatusimg') != undefined){ 2949 var icon = "<i 82858f='fa-dot-circle'></i>"; 2950 var color = "#4d4d4d"; 2951 const result = data.split("|"); 2952 //0 = my status 1 = status 2 = viewer 3 = message 4 = sim 5 = auto 6 = url 2953 2954 sllocation = result[6]; 2955 2956 if (result[0] == "online"){ 2957 if (result[2] == "Game"){ 2958 document.getElementById('slstatusimg').style.background = "url('../secondlife/images/homesign5.png') 0px 0px / cover"; 2959 }else if (result[2] == "Phone"){ 2960 document.getElementById('slstatusimg').style.background = "url('../secondlife/images/homesign5phone.png') 0px 0px / cover"; 2961 } 2962 }else if (result[0] == "busy"){ 2963 if (result[2] == "Game"){ 2964 document.getElementById('slstatusimg').style.background = "url('../secondlife/images/homesign5.png') 0px 142px / cover"; 2965 }else if (result[2] == "Phone"){ 2966 document.getElementById('slstatusimg').style.background = "url('../secondlife/images/homesign5phone.png') 0px 142px / cover"; 2967 } 2968 }else if (result[0] == "away"){ 2969 if (result[2] == "Game"){ 2970 document.getElementById('slstatusimg').style.background = "url('../secondlife/images/homesign5.png') 0px 212px / cover"; 2971 }else if (result[2] == "Phone"){ 2972 document.getElementById('slstatusimg').style.background = "url('../secondlife/images/homesign5phone.png') 0px 212px / cover"; 2973 } 2974 }else if (result[0] == "offline"){ 2975 if (result[2] == "Game"){ 2976 document.getElementById('slstatusimg').style.background = "url('../secondlife/images/homesign5.png') 0px 283px / cover"; 2977 }else if (result[2] == "Phone"){ 2978 document.getElementById('slstatusimg').style.background = "url('../secondlife/images/homesign5phone.png') 0px 283px / cover"; 2979 } 2980 }else if (result[0] == "sleep"){ 2981 if (result[2] == "Game"){ 2982 document.getElementById('slstatusimg').style.background = "url('../secondlife/images/homesign5.png') 0px 71px / cover"; 2983 }else if (result[2] == "Phone"){ 2984 document.getElementById('slstatusimg').style.background = "url('../secondlife/images/homesign5phone.png') 0px 71px / cover"; 2985 } 2986 } 2987 2988 if (result[3] != "NULL"){ 2989 document.getElementById('statusdiv').innerHTML = result[3]; 2990 document.getElementById('statusdiv').style.visibility = "visible"; 2991 }else{ 2992 document.getElementById('statusdiv').style.visibility = "hidden"; 2993 } 2994 } 2995 } catch (e) { 2996 return false; 2997 } 2998 } 2999 }); 3000 setTimeout(statusCheck, 30000) 3001} 3002 3003function visitme(){ 3004 if (sllocation != "" && sllocation != "NULL"){ 3005 window.open(sllocation); 3006 } 3007} 3008 3009//Checks the browser scroll amount and adjusts 3010$(window).scroll(function() { 3011 var scrollTop = $(this).scrollTop(); 3012 scrolledHeight = scrollTop; 3013 3014 if (scrollTop > document.getElementById('headerlogo').clientHeight){ //+ document.getElementById('headerTxtBG').clientHeight 3015 logoScrollPlay = false; 3016 document.getElementById('nav-bar-padding').style.display = ""; 3017 document.getElementById('topArrow').style.display=""; 3018 document.getElementById('nav-bar').className = "nav-bar-fixed"; 3019 }else{ 3020 logoScrollPlay = true; 3021 document.getElementById('nav-bar-padding').style.display = "none"; 3022 document.getElementById('topArrow').style.display="none"; 3023 document.getElementById('nav-bar').className = "nav-bar"; 3024 } 3025}); 3026 3027//This is what creates the cookies for the save data. 3028function setCookie(cname, cvalue, exdays) { 3029 var d = new Date(); 3030 d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); 3031 var expires = "expires=" + d.toUTCString(); 3032 document.cookie = cname + "=" + cvalue + "; " + expires + "; path=/;domain=littlebolt.me"; 3033} 3034 3035//This is what loads the cookies to load save data. 3036function getCookie(cname, cdefault) { 3037 var name = cname + "="; 3038 var ca = document.cookie.split(';'); 3039 for (var i = 0; i < ca.length; i++) { 3040 var c = ca[i]; 3041 while (c.charAt(0) === ' ') 3042 c = c.substring(1); 3043 if (c.indexOf(name) === 0) 3044 return c.substring(name.length, c.length); 3045 } 3046 return typeof cdefault !== 'undefined' ? cdefault : ""; 3047}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.