]>
iEval git - mindcoding-template-patches.git/blob - js/scripts.js
4872092b65f9fb2f021df0be03027c70f6c5e334
1 function set_style(name
){
2 $('#stylesheet').attr("href", "/css/" + name
+ ".var");
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 $(".form-control").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'));
44 console
.log( "inside!" );
This page took 0.049414 seconds and 4 git commands to generate.