File: js/script.js

Recommend this page to a friend!
  Classes of Andras Toth   JavaScript Advanced Table   js/script.js   Download  
File: js/script.js
Role: Auxiliary script
Content type: text/plain
Description: Unit test script
Class: JavaScript Advanced Table
Display and edit in place data in HTML tables
Author: By
Last change: Update of js/script.js
Date: 2 years ago
Size: 582 bytes
 

Contents

Class file image Download
$(document).ready(function() { areaSetSyntax($('[name="htmlCode"]'),"application/x-httpd-php"); //areaSetSyntax($('[name="params"]'),"application/javascript"); //areaSetSyntax($('[name="php"]'),"application/x-httpd-php"); }); function areaSetSyntax(argument,mode) { var editor = CodeMirror.fromTextArea(argument[0], { mode: mode, tabMode: "indent", readOnly: true }); editor.setOption("theme", "monokai"); argument.next('div').css({ 'font-size': '16px', 'text-align': 'left', 'height': '160%' }); }