Skip to content

Instantly share code, notes, and snippets.

View cfpg's full-sized avatar

Carlos F. Peña cfpg

View GitHub Profile
// jQuery ScrollToBottom without any Plugin
$(function() {
$('html,body').animate({scrollTop: $('body').height()}, 0);
})
javascript:(function() {
var s=document.createElement('script');
s.setAttribute("src", "http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js");
if(typeof jQuery=='undefined') {
document.getElementsByTagName('head')[0].appendChild(s);
}
function doWork() {
function buildTime(t) {
minutes = t.getMinutes();
seconds = t.getSeconds();
hours = t.getHours();
if (minutes < 10) {
minutes = "0"+minutes;
}
if (seconds < 10) {
seconds = "0"+seconds;
}