]>
iEval git - plack-app-gruntmaster.git/blob - 90-custom.js
bff6ab15fd9c914a012e7b9c2d259b58130deab8
1 function set_style(name
){
2 $('#stylesheet').attr("href", "/css/" + name
);
3 localStorage
.setItem("theme", name
);
5 $('#yardi').attr('src', name
== "slate" || name
== "cyborg" ? "/img/yardi-white.png" : "/img/yardi-blue.png");
8 $( document
).ready(function() {
9 var txt
= $('#comments');
10 hiddenDiv
= $(document
.createElement('div')),
13 txt
.addClass('txtstuff');
14 hiddenDiv
.addClass('hiddendiv common');
16 $('body').append(hiddenDiv
);
18 $("textarea.autoresize").on('keyup', function () {
19 content
= $(this).val();
21 content
= content
.replace(/\n/g, '<br>');
22 hiddenDiv
.html(content
+ '<br class="lbr">');
24 $(this).css('height', hiddenDiv
.height()+23);
27 $('#theme_slate' ).on('click', function () { set_style("slate"); });
28 $('#theme_cerulean').on('click', function () { set_style("cerulean"); });
29 $('#theme_cyborg' ).on('click', function () { set_style("cyborg"); });
30 $('#theme_cosmo' ).on('click', function () { set_style("cosmo"); });
33 var theme
= localStorage
.getItem("theme");
36 $(document
).ready(function(){
37 $('#yardi').attr('src', theme
== "slate" || theme
== "cyborg" ? "/img/yardi-white.png" : "/img/yardi-blue.png");
41 $( document
).ready(function() {
42 var sb
=$('#sidebar').detach();
43 sb
.appendTo($('#sponsors'));
This page took 0.048757 seconds and 3 git commands to generate.