This file contains 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
<script type="text/javascript"> | |
function checkForm(){ | |
var forms = document.getElementsByTagName('form'); | |
for (var i = 0; i < forms.length; i++) { | |
forms[i].noValidate = true; | |
forms[i].addEventListener('submit', function(event) { | |
//Prevent submission if checkValidity on the form returns false. | |
if (!event.target.checkValidity()) { | |
event.preventDefault(); |
This file contains 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
ul { | |
padding: 0; | |
margin: 0; | |
} | |
li { | |
display: inline; | |
position: relative; | |
} | |
ul ul { | |
position: absolute; |
This file contains 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
//Цели для Яндекс.Метрики и Google Analytics | |
$(".count_element").on("click", (function() { | |
ga("send", "event", "goal", "goal"); | |
yaCounterXXXXXXXX.reachGoal("goal"); | |
return true; | |
})); |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |