]>
iEval git - gruntmaster-page.git/blob - js/90-custom.js
3 function set_style(name
){
4 $('#stylesheet').attr("href", "/css/" + name
+ ".css");
5 localStorage
.setItem("theme", name
);
8 $( document
).ready(function() {
9 var hiddenDiv
= $(document
.createElement('div'));
11 hiddenDiv
.addClass('hiddendiv common');
13 $('body').append(hiddenDiv
);
15 $("textarea.autoresize").on('keyup', function () {
16 var content
= $(this).val();
18 content
= content
.replace(/\n/g, '<br>');
19 hiddenDiv
.html(content
+ '<br class="lbr">');
21 $(this).css('height', hiddenDiv
.height()+23);
24 $('#theme_slate' ).on('click', function () { set_style("slate"); });
25 $('#theme_cerulean').on('click', function () { set_style("cerulean"); });
26 $('#theme_cyborg' ).on('click', function () { set_style("cyborg"); });
27 $('#theme_cosmo' ).on('click', function () { set_style("cosmo"); });
30 var theme
= localStorage
.getItem("theme");
This page took 0.045475 seconds and 4 git commands to generate.