Hey all, I've been fiddling with JavaScript and decided to share a neat little thing (its completely useless). Finished Code Code: console.log(+[[-~[]<<~[]][+[]]+[]][+[]][++[[]][+[]]+[+[]]]); //Prints 8 Now for the break down - Pre-note - I use this function while playing with variables. It outputs the value and type of a variable. (The counter is to force the developer console to display each seperately) Code: var counter = 0; ...
console.log(+[[-~[]<<~[]][+[]]+[]][+[]][++[[]][+[]]+[+[]]]); //Prints 8
var counter = 0;
Here's my alternative to the ddscript Jquery Scroll to Top Control V1.1 scroll_to_top.js Code: $.fn.scroll_to_top = function(userOptions) { var check_scroll = 0; var defaultOptions = { image : 'jump_to_top.png', image_height : '6%', image_width : '3%', scroll_distance : 200, scroll_location : 0, scroll_speed : 600, button_animate_speed : 200, button_animate_type : 'fade', ...
$.fn.scroll_to_top = function(userOptions) { var check_scroll = 0; var defaultOptions = { image : 'jump_to_top.png', image_height : '6%', image_width : '3%', scroll_distance : 200, scroll_location : 0, scroll_speed : 600, button_animate_speed : 200, button_animate_type : 'fade',