JSFiddle

  • Google Maps Custom Pin Location #3 is the latest revision

    This example highlights random intersections within Nassau County Long Island.

    /* Place the locations array into a separate JS if you want */
    /* The ordering : Main Street, Cross Street, Camera Direction, Latitude ...
  • Rozmiary obrazków

    Sposoby sprawdzania rozmiarów obrazka

    var img=new Image();
    img.onload=function(){
        document.body.appendChild(this);
        console.log('width: '+this.width);
        console.log('naturalWidth: '+this ...
  • Check if next day is holiday #1 is the latest revision

    Show different message depending on date

    function easter_date(year) {
        // original by algorithm from polish wikipedia (http://pl.wikipedia.org/wiki/Wielkanoc)
        year = isNaN(year) ? new Date ...
  • Ile dni do piatku #5 is the latest revision

    No-Library (pure JS), HTML, CSS, JavaScript

    var today = new Date() // pobieramy dzisiejszą datę
    var days_left = { 
        //numer dnia:ile dni do piatku
        0:5,//niedziela
        1:4 ...
  • Bada ilosc powtorzen liczb w tablicy.

    Dla tablicy liczb całkowitych o długości n napisz program, który wypisze lilo

     var tablica = [2,2,3,4,5,4,2,4,4,3,8];
    var wynik = {};
    
    for (var i=0;i ...
  • Body BG based on date #8 is the latest revision

    jQuery edition

        //pobieramy aktualny miesiac
    	var d = new Date();
    	var month = d.getMonth()+1;
        
        //tworzymy tablicę z tłami
        var backgrounds = new Array ...
  • JS function based on a date #10 is the latest revision

    jQuery 1.10.1, HTML, CSS, JavaScript

        //pobieramy aktualny miesiac
    	var d = new Date();
    	var month = d.getMonth()+1;
        
        //tworzymy tablicę z tłami
        var backgrounds = new Array ...
  • Lista a'la nie blokowa

    Kropki na liscie przylegaja do elementu

    le
  • Cookie accept modal box #65 is the latest revision

    Shows modal box with cookie informations and link to accept.

    // Activate fancyBox
    $('#info').fancybox();
    
    
    // Check if cookie exist, if not show modal
    if ($.cookie('accept_cookies')){
        //nothing to do
    } else {
        $('#info ...
  • jQuery: table pagination #3 is the latest revision

    jQuery 1.7.2, HTML, CSS, JavaScript

    
    $('td', 'table').each(function(i) {
        $(this).text(i+1);
    });
    
    
    
    $('table.paginated').each(function() {
        var currentPage = 0;
        var numPerPage = 10;
        var ...
  • Stretched auto height template #15 is the latest revision

    Webpage 100% height CSS template

    	<body>
    	    <div class="stretch">
    	        <div class="rel">
    	            <div id="header">header</div>
    	            <div id="content">Hello, world</div>
    	            <div id="footer">
    								<p>Footer</p>
    							</div>
    	        </div>
    	    </div>
    	
    	</body>
  • 1
  • 2