Taban Bar & Hostel Zagreb

After some designing, planing, painting, some hard phisical work :P, overall result…

TABANZAGREB.COM | TABAN@FACEBOOK

Located right in the heart of the city, inside busy historic Tkalciceva
Street, where all the action is. Our rooms are new and spacious for a
good night sleep, and we offer numerous facilities like free Wi-Fi, a
full bar inside the property, 24 hour reception, luggage storage,
etc….

Wake up smell the freshly ground coffee in the morning or enjoy cold beers in the bar or the terrace by the evening.

We offer you wide range of the rooms to choose from.

Kako koristiti Blogger i CARnet besplatnu osobnu domenu (free dns)

Od danas se moj osobni blog vrti na mojoj novoj besplatnoj domeni filip-srica.from.hr (ili iz.hr, name.hr), ali…

1. Google (blogger) nudi mogučnost postavljanja CNAME zapisa kako bi potvrdio vlasnišvo domene (ili TXT zapisa)
2. CARnet nudi samo mogučnost podešavanja Nameservera i A recorda

= konflikt!

Rješenje -> www.cloudns.net besplatni DNS (free dns):

0. U bloggeru ideš na “Settings -> Basic -> Blog Address”
i upišeš željenu domenu, u mom slučaju filip-srica.from.hr, google
ispod odmah da i neke upute/zapise koje ćemo koristiti kasnije.

1. Otvoriš account na cloudns.net i dodaš novu DNS zonu (klikom na add new):

2. Dodaš svoju besplatnu odobnu domenu, u mom slučaju “filip-srica.from.hr” pod domain name:

3. Automatski se dodaju NS zapisi, a ti dodaš sve zapise koje želiš klikom na “Ad new record” (CNAME, A, AAA, MX, TXT koje ti da Blogger, upute možeš pronaći ovdje: https://support.google.com/blogger/troubleshooter/1233381?hl=en#ts=1734115). U mom slučaju je to izgledalo ovako:

(znači dodao sam dva “A” recorda sa i bez “www”, dodao sam i dva CNAME recorda, jedan je univerzalan ghs.google.com, a drugi je jedinstven za svakog korisnika a da ti ga google u blog settingsima (vidi link gore)

4. Spojiš se u CARnetovo administracijsko sučelje i tamo dodaš cloudns namservere kao nameservere (ns01.cloudns.net, ns02.cloudns.net)

5. Pričekaš… Stvar radi 🙂

Simple popup using jQuery and cookies

<script> 

// Cookie functions

function createCookie(name,value,days) {

    if (days) {

        var date = new Date();

        date.setTime(date.getTime()+(days*24*60*60*1000));

        var expires = “; expires=”+date.toGMTString();

    }

    else var expires = “”;

    document.cookie = name+”=”+value+expires+”; path=/”;

}

function readCookie(name) {

    var nameEQ = name + “=”;

    var ca = document.cookie.split(‘;’);

    for(var i=0;i<ca.length;i++) {

        var c = ca[i];

        while (c.charAt(0)==’ ‘) c = c.substring(1,c.length);

        if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);

    }

    return null;

}

function eraseCookie(name) {

    createCookie(name,””,-1);

}

// jQuery timed trigger

$(document).ready(function(){

var x = readCookie(‘mycookie’);

if (x!=1) { //checks the cookie, if it exits does not show the popup

$(‘#the_box’).delay(5000).fadeIn(“slow”); //5 second delay (5000 mliliseconds = 5 sec), also you can play with jQuery effects

} else {

//Nothing to return 😛

}

// jQuery close button and cookie set

$( “#closex” ).click(function() {

    $( “#the_box” ).hide( “slow”, function() {

        createCookie(‘mycookie’,’1′,0); //1=value, 0=seesion cookie (valid for 0 days) //when button is clicked, window closes and you get a cookie 🙂

        });

    });

});

</script>

<!– The Popup box (actually FadIn box) can be pretty much anything 🙂 –>

<div id=”the_box” style=”background-color: #00b6ef; bottom: 10px; box-shadow: 0px 5px 5px rgb(136, 136, 136); color: white; display: none; height: 185px; padding: 10px; position: absolute; right: 10px; width: 286px;”>
<div id=”closex” style=”color: red; cursor: pointer; float: right; font-weight: bold;”>X</div>
<h2 style=”text-shadow: 1px 1px 2px #000000;”>POPUP BOX</h2>
<h4>Lorem ipsum, bla, bla, bla!!!</h4>
</div>