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 scrollTo(Y, duration, easingFunction, callback) { | |
var start = Date.now(), | |
elem = document.documentElement.scrollTop?document.documentElement:document.body, | |
from = elem.scrollTop; | |
if(from === Y) { | |
callback(); | |
return; /* Prevent scrolling to the Y point if already there */ | |
} |
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
<script type="text/javascript" src="http://yandex.st/jquery/1.11.0/jquery.min.js"></script> | |
<script type="text/javascript" src="http://fancyapps.com/fancybox/source/jquery.fancybox.js"></script> | |
<script type="text/javascript" src="http://fancyapps.com/fancybox/source/jquery.fancybox.js"></script> | |
<script type="text/javascript" src="http://api-maps.yandex.ru/2.0/?load=package.full&lang=ru-RU"></script> | |
<link type='text/css' href='http://fancyapps.com/fancybox/source/jquery.fancybox.css' rel='stylesheet'> | |
// created element | |
<div id="map_popup" style="width:100%; height: 100%; display: none;"></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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset='UTF-8' /> | |
<link rel='stylesheet' href='style.css' /> | |
</head> | |
<body> | |
<form id="myform"> | |
<input type="text" name="login" id="login" /> |
NewerOlder