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
$('#pageslide .v-item, #menu-main a, #menu-main-1 a, #menu-secondary a').on('click', function () { | |
location.hash = $(this).attr('href').match(/(^.*)\./)[1]; | |
return false | |
}) | |
var originalTitle = document.title | |
function hashChange() { | |
var page = location.hash.slice(1); | |
if (page != "") { | |
$('#showHere').load(page + '.html'); |
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
//stop() is the key. | |
$( "#hoverme-stop-2" ).hover(function() { | |
$( this ).find( "img" ).stop( true, true ).fadeOut(); | |
}, function() { | |
$( this ).find( "img" ).stop( true, true ).fadeIn(); | |
}); | |
//Other example: | |
$(document).ready(function() { |
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
//http://stackoverflow.com/questions/9337220/jquery-load-with-fadein-effect | |
$('#primary').fadeOut('slow', function(){ | |
$('#primary').load(link+' #content', function(){ | |
$('#primary').fadeIn('slow'); | |
}); | |
}); |
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
$('.main-content').load('includes/home.html',function(){ | |
$.when( | |
$.getScript("assets/plugins/parallax-slider/js/modernizr.js"), | |
$.getScript("assets/plugins/parallax-slider/js/jquery.cslider.js"), | |
$.getScript("assets/js/plugins/parallax-slider.js"), | |
$.Deferred(function( deferred ){ | |
$( deferred.resolve ); | |
}) | |
).done(function(){ | |
App.init(); |
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
//http://www.etnassoft.com/2011/03/29/reorganizando-los-callbacks-en-jquery/ | |
// We write all callbacks in the same object | |
var callbacks = { | |
myFunctionOne: function( event ) { | |
// Do something... | |
}, | |
myFunctionTwo: function( event ) { | |
// Do something... |
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
jQuery(document).ready(function() { | |
App.init(); | |
PageComingSoon.initPageComingSoon(); | |
$('body').css('margin-top', Number($(document).height() - $('.coming-soon-v3').height())/2); | |
$(window).resize(function() { | |
$('body').css('margin-top', Number($(document).height() - $('.coming-soon-v3').height())/2); | |
}); | |
}); |
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
$(window).on('beforeunload', function (){ | |
//code... | |
return false; | |
}) |
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
var url = window.location.href; | |
url = url.split('.html')[0]; | |
//url = url.substring(0, url.lastIndexOf(".")); | |
window.history.replaceState( null, null, url ); |
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
/* | |
Steps: | |
1. Go to: http://map.google.com | |
2. Pin whatever point in the map. | |
3. Menu/Share or embed map. | |
*/ | |
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3977.2854808824613!2d-75.66567468522176!3d4.5425483442734!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x8e38f4ff13a056e9%3A0x78c9afbeed619948!2sSYSETUP!5e0!3m2!1sen!2sco!4v1472421311744" width="2200" height="300" frameborder="0" style="border:0" allowfullscreen> | |
</iframe> |
OlderNewer