jQuery Scroll to the top
http://ift.tt/1HCaNYT

seen from United Kingdom
seen from United States
seen from Australia
seen from United States
seen from Argentina
seen from United States

seen from Malaysia

seen from Russia
seen from Italy

seen from United States

seen from United States
seen from United States

seen from Sweden

seen from United Kingdom
seen from China
seen from Hong Kong SAR China
seen from Russia
seen from United States
seen from Thailand
seen from United States
jQuery Scroll to the top
http://ift.tt/1HCaNYT

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
jQuery - Mendapatkan x Karakter Terakhir
Untuk mendapatkan x karater terakhir dari suatu string bisa menggunakan metode .substr() dan property .length seperti berikut:
var id = "ctl03_Tabs1"; var lastFive = id.substr(id.length - 5); // => "Tabs1" var lastChar = id.substr(id.length - 1); // => "1"
Tapi ada cara lain yang lebih baik, lebih kompatibel dengan browser IE, yang tidak bisa mengenali nilai negatif dalam substr() .
If either start or end is NaN or negative, it is replaced with zero. ~Internet Explorer Dev Center
Yaitu dengan metode .slice()
var id = "ctl03_Tabs1"; id.slice(-5); //Outputs: Tabs1 id.slice(-1); //Outputs: 1
jQuery - Test Jika Elemen Berada Dalam Viewport
returns true if any portion of the element is visible in the viewport (considering element’s position and dimension, compared to dimension and scroll position of window).
$.fn.isOnScreen = function(){ var win = $(window); var viewport = { top : win.scrollTop(), left : win.scrollLeft() }; viewport.right = viewport.left + win.width(); viewport.bottom = viewport.top + win.height(); var bounds = this.offset(); bounds.right = bounds.left + this.outerWidth(); bounds.bottom = bounds.top + this.outerHeight(); return (!(viewport.right < bounds.left || viewport.left > bounds.right || viewport.bottom < bounds.top || viewport.top > bounds.bottom)); };
Mendapatkan Tinggi Viewport Browser dan Document HTML
Mendapatkan tinggi viewport browser dan tinggi dokumen/halaman HTML:
$(window).height(); // returns height of browser viewport $(document).height(); // returns height of HTML document
jQuery Mendapatkan URL Halaman
Cuplikan skrip javascript dan jQuery untuk mendapatkan dan menyimpan url halaman saat ini yang terlihat pada address bar browser.
$(document).ready(function() { //jquery $(location).attr('href'); //pure javascript var pathname = window.location.pathname; // to show it in an alert window alert(window.location); });
Dan fungsi javascript untuk mendapatkan path url absolute halaman saat ini:
function getAbsolutePath() { var loc = window.location; var pathName = loc.pathname.substring(0, loc.pathname.lastIndexOf('/') + 1); return loc.href.substring(0, loc.href.length - ((loc.pathname + loc.search + loc.hash).length - pathName.length)); }

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
Disable Right Click, Select dan Dragging Content | jQuery
Script untuk menonaktifkan fungsi klik kanan (right click), seleksi (select) dan menyeret (dragging) konten suatu halaman bisa menggunakan kombisan script jQuery dan CSS berikut:
.protected { -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; user-select: none; }
// this part disables the right click $('.protected').on('contextmenu', function (e) { return false; }); //this part disables dragging of image $('.protected').on('dragstart', function (e) { return false; });
New Post has been published on MironC.com
New Post has been published on http://www.mironc.com/web-development/emmet-ex-zen-coding/
Emmet ( Ex Zen Coding)
Hi there, today i am gonna present you a good plugin that you can use with Sublime Text 2 or what coding you are using.
Emmet is Zen Coding v2, which helped me a lot developing websites. I also use it everyday in my project along with Sublime Text 2.
There are 6 main features which comes with Emmet:
HTML from CSS
You’ve already known how to use Emmet abbreviations: its syntax is inspired by CSS selectors.
Dynamic snippets
Each abbreviation is transformed in runtime: just slightly change its name to get a different result.
Ultra-fast coding
With Emmet you can quicklywrite a bunch of code, wrap code with new tags, quickly traverse and select important code parts and more!
Customizable
Users can easily add new snippets and fine-tune Emmet experience with just a few JSON files.
Platform for new tools
Dig into Emmet source code and re-use its modules to create your very own and unique actions.
Highly portable
Emmet is written in pure JavaScript and works across different platforms: web browser, Node.js, Microsoft WSH and Mozilla Rhino.
Get Emmet: http://www.emmet.io/
Emmet on Github: https://github.com/emmetio
New Post has been published on MironC.com
New Post has been published on http://www.mironc.com/web-development/emmet-ex-zen-coding/
Emmet ( Ex Zen Coding)
Hi there, today i am gonna present you a good plugin that you can use with Sublime Text 2 or what coding you are using.
Emmet is Zen Coding v2, which helped me a lot developing websites. I also use it everyday in my project along with Sublime Text 2.
There are 6 main features which comes with Emmet:
HTML from CSS
You’ve already known how to use Emmet abbreviations: its syntax is inspired by CSS selectors.
Dynamic snippets
Each abbreviation is transformed in runtime: just slightly change its name to get a different result.
Ultra-fast coding
With Emmet you can quicklywrite a bunch of code, wrap code with new tags, quickly traverse and select important code parts and more!
Customizable
Users can easily add new snippets and fine-tune Emmet experience with just a few JSON files.
Platform for new tools
Dig into Emmet source code and re-use its modules to create your very own and unique actions.
Highly portable
Emmet is written in pure JavaScript and works across different platforms: web browser, Node.js, Microsoft WSH and Mozilla Rhino.
Get Emmet: http://www.emmet.io/
Emmet on Github: https://github.com/emmetio