This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .xbox__body:after { | |
| content: ''; | |
| display: block; | |
| clear: both; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(document).ready(function(){ | |
| $('#pager').detach().prependTo('.content-wrp'); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function content_anime() { | |
| var content_anime = document.getElementById("content_anime"); | |
| content_anime.classList.add("visible", "animated", "flipInY"); | |
| } | |
| setTimeout(content_anime, 500); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var modalVisit = localStorage.getItem('modal'); | |
| if( modalVisit != "true" ) { | |
| setTimeout(function () { | |
| localStorage.setItem('modal', 'true'); | |
| var newTime = new Date(); | |
| localStorage["date"] = newTime.getFullYear() + '/' + (newTime.getMonth() + 1) + '/' + newTime.getDate(); | |
| }, 3000); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if(!!undefinedVar) | |
| alert("Not undefined"); | |
| else | |
| alert("Undefined"); | |
| То-есть, "!!" — является проверкой как определена ли переменная и является истиной, а "!!!" — как определена переменная и является ложью. | |
| При этом если переменная является Undefined, то всегда вернется false. | |
| Счастливых Вам экспериментов! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pixelOffset: new google.maps.Size(0, 60) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- | |
| Designer: KaRmiN | |
| Created by L2Banners | |
| --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Находим все select и оборачиваем их в <div class="selection-box"></div> */ | |
| $("select").each(function(){ | |
| if($(this).css('display') != 'none') { | |
| $(this).wrap( '<div class="selection-box"></div>' ); | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('head').append('<script type="text/javascript" src="js/scripts.js"></script>'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Добавляем или изменяем значение: | |
| localStorage.setItem('myKey', 'myValue'); //теперь у вас в localStorage хранится ключ "myKey" cо значением "myValue" | |
| //Выводм его в консоль: | |
| var localValue = localStorage.getItem('myKey'); | |
| console.log(localValue); //"myValue" | |
| //удаляем: | |
| localStorage.removeItem("myKey"); |