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
$('body').on('touchmove', function(e){ | |
if($('.scroll-disable').has($(e.target)).length) e.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
/****************************************************** | |
* Get Letter by number | |
****************************************************** | |
* @param number {number} | |
* @returns {string} | |
******************************************************/ | |
function getLetterByNumber(number) { | |
return (number >= 26 ? idOf((number / 26 >> 0) - 1) : '') + 'abcdefghijklmnopqrstuvwxyz'[number % 26 >> 0]; | |
} |
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
/************************************************************************ | |
* UNSERIALIZE | |
************************************************************************ | |
* This function unserialize php database array | |
************************************************************************ | |
* @param data | |
* @returns [] | |
************************************************************************/ | |
popupSplitTest.prototype.unserialize = function (data) { |
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
<div class="container test"> | |
<img src="http://placehold.it/100x100" class="flex-item" alt="" /> | |
<img src="http://placehold.it/100x100" class="flex-item" alt="" /> | |
<img src="http://placehold.it/100x100" class="flex-item" alt="" /> | |
</div> | |
$(window).load(function(){ | |
/ Stuff to do after the page is loaded / | |
$conteinerWidth = $(".test").width(); |