diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index fd0a477..282532b 100755 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -13,7 +13,6 @@ //= require jquery //= require jquery_ujs //= require turbolinks -//= require jquery.min.js //= require jquery.scrollUp.js //= require bootstrap.js //= require bootstrap-colorpicker.js @@ -27,30 +26,11 @@ //= require jquery.easy-pie-chart.js //= require jquery-fileupload/basic //= require jquery-fileupload/vendor/tmpl -//= require jsapi -//= html5.js function rubyCodeFormat() { - - - -$("pre.ruby").snippet("ruby",{style:"rand01",transparent:true,showNum:true}); - // Finds
elements with the class "js"
- // and snippet highlights the JAVASCRIPT code within
- // using a random style from the selection of 39
- // with a transparent background
- // without showing line numbers.
-
-
-
-$("pre.javascript").snippet("javascript",{style:"rand01",transparent:true,showNum:true});
- // Finds elements with the class "js"
- // and snippet highlights the JAVASCRIPT code within
- // using a random style from the selection of 39
- // with a transparent background
- // without showing line numbers.
-
-};
+ $("pre.ruby").snippet("ruby",{style:"rand01",transparent:true,showNum:true});
+ $("pre.javascript").snippet("javascript",{style:"rand01",transparent:true,showNum:true});
+}
function coerceToString(val) {
return String((val === null || val === undefined) ? '' : val);
@@ -73,8 +53,8 @@ function hoganEscape(str) {
.replace(rApos, ''')
.replace(rQuot, '"') :
str;
- }
+}
$(document).ready(function(){
- rubyCodeFormat()
+ rubyCodeFormat();
});