forked from dimpurr/ClearisionX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
26 lines (21 loc) · 810 Bytes
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Code editable onclick
function clrs_code(){
var controls = document.getElementsByTagName('pre');
for(var i=0; i<controls.length; i++){
controls[i].spellcheck = false;
controls[i].setAttribute("contenteditable","true")
};
var controls = document.getElementsByTagName('code');
for(var i=0; i<controls.length; i++){
controls[i].spellcheck = false;
controls[i].setAttribute("contenteditable","true");
};
}
// A theme analytics script to Dimpurr, you can remove it, or better left.
function sendTj() {
$.get("http://work.dimpurr.com/theme/theme_tj.php?theme_name=ClearisionX&blog_url=" + window.location.host + "&t=" + Math.random());
}
sendTj();
window.onload = clrs_code;
console.log('Theme ClearisionX by Dimpurr')
console.log('http://blog.dimpurr.com/clearision')