diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a97b43e..f7b77d0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,7 +6,7 @@ build_website: stage: build script: - nuget restore .\Mobile.WYSIWYG.sln - - msbuild /p:Configuration=Release /p:OutDir=build\web .\Mobile.Search.Web\Mobile.WYSIWYG.csproj + - msbuild /p:Configuration=Release /p:OutDir=build\web .\Mobile.WYSIWYG\Mobile.WYSIWYG.csproj artifacts: expire_in: 6 weeks paths: diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/fcl/fcl.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/fcl/fcl.js deleted file mode 100644 index 5181169..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/fcl/fcl.js +++ /dev/null @@ -1,173 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("fcl", function(config) { - var indentUnit = config.indentUnit; - - var keywords = { - "term": true, - "method": true, "accu": true, - "rule": true, "then": true, "is": true, "and": true, "or": true, - "if": true, "default": true - }; - - var start_blocks = { - "var_input": true, - "var_output": true, - "fuzzify": true, - "defuzzify": true, - "function_block": true, - "ruleblock": true - }; - - var end_blocks = { - "end_ruleblock": true, - "end_defuzzify": true, - "end_function_block": true, - "end_fuzzify": true, - "end_var": true - }; - - var atoms = { - "true": true, "false": true, "nan": true, - "real": true, "min": true, "max": true, "cog": true, "cogs": true - }; - - var isOperatorChar = /[+\-*&^%:=<>!|\/]/; - - function tokenBase(stream, state) { - var ch = stream.next(); - - if (/[\d\.]/.test(ch)) { - if (ch == ".") { - stream.match(/^[0-9]+([eE][\-+]?[0-9]+)?/); - } else if (ch == "0") { - stream.match(/^[xX][0-9a-fA-F]+/) || stream.match(/^0[0-7]+/); - } else { - stream.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/); - } - return "number"; - } - - if (ch == "/" || ch == "(") { - if (stream.eat("*")) { - state.tokenize = tokenComment; - return tokenComment(stream, state); - } - if (stream.eat("/")) { - stream.skipToEnd(); - return "comment"; - } - } - if (isOperatorChar.test(ch)) { - stream.eatWhile(isOperatorChar); - return "operator"; - } - stream.eatWhile(/[\w\$_\xa1-\uffff]/); - - var cur = stream.current().toLowerCase(); - if (keywords.propertyIsEnumerable(cur) || - start_blocks.propertyIsEnumerable(cur) || - end_blocks.propertyIsEnumerable(cur)) { - return "keyword"; - } - if (atoms.propertyIsEnumerable(cur)) return "atom"; - return "variable"; - } - - - function tokenComment(stream, state) { - var maybeEnd = false, ch; - while (ch = stream.next()) { - if ((ch == "/" || ch == ")") && maybeEnd) { - state.tokenize = tokenBase; - break; - } - maybeEnd = (ch == "*"); - } - return "comment"; - } - - function Context(indented, column, type, align, prev) { - this.indented = indented; - this.column = column; - this.type = type; - this.align = align; - this.prev = prev; - } - - function pushContext(state, col, type) { - return state.context = new Context(state.indented, col, type, null, state.context); - } - - function popContext(state) { - if (!state.context.prev) return; - var t = state.context.type; - if (t == "end_block") - state.indented = state.context.indented; - return state.context = state.context.prev; - } - - // Interface - - return { - startState: function(basecolumn) { - return { - tokenize: null, - context: new Context((basecolumn || 0) - indentUnit, 0, "top", false), - indented: 0, - startOfLine: true - }; - }, - - token: function(stream, state) { - var ctx = state.context; - if (stream.sol()) { - if (ctx.align == null) ctx.align = false; - state.indented = stream.indentation(); - state.startOfLine = true; - } - if (stream.eatSpace()) return null; - - var style = (state.tokenize || tokenBase)(stream, state); - if (style == "comment") return style; - if (ctx.align == null) ctx.align = true; - - var cur = stream.current().toLowerCase(); - - if (start_blocks.propertyIsEnumerable(cur)) pushContext(state, stream.column(), "end_block"); - else if (end_blocks.propertyIsEnumerable(cur)) popContext(state); - - state.startOfLine = false; - return style; - }, - - indent: function(state, textAfter) { - if (state.tokenize != tokenBase && state.tokenize != null) return 0; - var ctx = state.context; - - var closing = end_blocks.propertyIsEnumerable(textAfter); - if (ctx.align) return ctx.column + (closing ? 0 : 1); - else return ctx.indented + (closing ? 0 : indentUnit); - }, - - electricChars: "ryk", - fold: "brace", - blockCommentStart: "(*", - blockCommentEnd: "*)", - lineComment: "//" - }; -}); - -CodeMirror.defineMIME("text/x-fcl", "fcl"); -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/fcl/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/fcl/index.html deleted file mode 100644 index 3c18d0b..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/fcl/index.html +++ /dev/null @@ -1,108 +0,0 @@ -<!doctype html> - -<title>CodeMirror: FCL mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<link rel="stylesheet" href="../../theme/elegant.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../../addon/edit/matchbrackets.js"></script> -<script src="fcl.js"></script> -<style>.CodeMirror {border:1px solid #999; background:#ffc}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">FCL</a> - </ul> -</div> - -<article> -<h2>FCL mode</h2> -<form><textarea id="code" name="code"> - FUNCTION_BLOCK Fuzzy_FB - VAR_INPUT - TimeDay : REAL; (* RANGE(0 .. 23) *) - ApplicateHost: REAL; - TimeConfiguration: REAL; - TimeRequirements: REAL; - END_VAR - - VAR_OUTPUT - ProbabilityDistribution: REAL; - ProbabilityAccess: REAL; - END_VAR - - FUZZIFY TimeDay - TERM inside := (0, 0) (8, 1) (22,0); - TERM outside := (0, 1) (8, 0) (22, 1); - END_FUZZIFY - - FUZZIFY ApplicateHost - TERM few := (0, 1) (100, 0) (200, 0); - TERM many := (0, 0) (100, 0) (200, 1); - END_FUZZIFY - - FUZZIFY TimeConfiguration - TERM recently := (0, 1) (30, 1) (120, 0); - TERM long := (0, 0) (30, 0) (120, 1); - END_FUZZIFY - - FUZZIFY TimeRequirements - TERM recently := (0, 1) (30, 1) (365, 0); - TERM long := (0, 0) (30, 0) (365, 1); - END_FUZZIFY - - DEFUZZIFY ProbabilityAccess - TERM hight := 1; - TERM medium := 0.5; - TERM low := 0; - ACCU: MAX; - METHOD: COGS; - DEFAULT := 0; - END_DEFUZZIFY - - DEFUZZIFY ProbabilityDistribution - TERM hight := 1; - TERM medium := 0.5; - TERM low := 0; - ACCU: MAX; - METHOD: COGS; - DEFAULT := 0; - END_DEFUZZIFY - - RULEBLOCK No1 - AND : MIN; - RULE 1 : IF TimeDay IS outside AND ApplicateHost IS few THEN ProbabilityAccess IS hight; - RULE 2 : IF ApplicateHost IS many THEN ProbabilityAccess IS hight; - RULE 3 : IF TimeDay IS inside AND ApplicateHost IS few THEN ProbabilityAccess IS low; - END_RULEBLOCK - - RULEBLOCK No2 - AND : MIN; - RULE 1 : IF ApplicateHost IS many THEN ProbabilityDistribution IS hight; - END_RULEBLOCK - - END_FUNCTION_BLOCK -</textarea></form> - - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - theme: "elegant", - matchBrackets: true, - indentUnit: 8, - tabSize: 8, - indentWithTabs: true, - mode: "text/x-fcl" - }); - </script> - - <p><strong>MIME type:</strong> <code>text/x-fcl</code></p> - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/forth/forth.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/forth/forth.js deleted file mode 100644 index 1f519d8..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/forth/forth.js +++ /dev/null @@ -1,180 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -// Author: Aliaksei Chapyzhenka - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { - "use strict"; - - function toWordList(words) { - var ret = []; - words.split(' ').forEach(function(e){ - ret.push({name: e}); - }); - return ret; - } - - var coreWordList = toWordList( -'INVERT AND OR XOR\ - 2* 2/ LSHIFT RSHIFT\ - 0= = 0< < > U< MIN MAX\ - 2DROP 2DUP 2OVER 2SWAP ?DUP DEPTH DROP DUP OVER ROT SWAP\ - >R R> R@\ - + - 1+ 1- ABS NEGATE\ - S>D * M* UM*\ - FM/MOD SM/REM UM/MOD */ */MOD / /MOD MOD\ - HERE , @ ! CELL+ CELLS C, C@ C! CHARS 2@ 2!\ - ALIGN ALIGNED +! ALLOT\ - CHAR [CHAR] [ ] BL\ - FIND EXECUTE IMMEDIATE COUNT LITERAL STATE\ - ; DOES> >BODY\ - EVALUATE\ - SOURCE >IN\ - <# # #S #> HOLD SIGN BASE >NUMBER HEX DECIMAL\ - FILL MOVE\ - . CR EMIT SPACE SPACES TYPE U. .R U.R\ - ACCEPT\ - TRUE FALSE\ - <> U> 0<> 0>\ - NIP TUCK ROLL PICK\ - 2>R 2R@ 2R>\ - WITHIN UNUSED MARKER\ - I J\ - TO\ - COMPILE, [COMPILE]\ - SAVE-INPUT RESTORE-INPUT\ - PAD ERASE\ - 2LITERAL DNEGATE\ - D- D+ D0< D0= D2* D2/ D< D= DMAX DMIN D>S DABS\ - M+ M*/ D. D.R 2ROT DU<\ - CATCH THROW\ - FREE RESIZE ALLOCATE\ - CS-PICK CS-ROLL\ - GET-CURRENT SET-CURRENT FORTH-WORDLIST GET-ORDER SET-ORDER\ - PREVIOUS SEARCH-WORDLIST WORDLIST FIND ALSO ONLY FORTH DEFINITIONS ORDER\ - -TRAILING /STRING SEARCH COMPARE CMOVE CMOVE> BLANK SLITERAL'); - - var immediateWordList = toWordList('IF ELSE THEN BEGIN WHILE REPEAT UNTIL RECURSE [IF] [ELSE] [THEN] ?DO DO LOOP +LOOP UNLOOP LEAVE EXIT AGAIN CASE OF ENDOF ENDCASE'); - - CodeMirror.defineMode('forth', function() { - function searchWordList (wordList, word) { - var i; - for (i = wordList.length - 1; i >= 0; i--) { - if (wordList[i].name === word.toUpperCase()) { - return wordList[i]; - } - } - return undefined; - } - return { - startState: function() { - return { - state: '', - base: 10, - coreWordList: coreWordList, - immediateWordList: immediateWordList, - wordList: [] - }; - }, - token: function (stream, stt) { - var mat; - if (stream.eatSpace()) { - return null; - } - if (stt.state === '') { // interpretation - if (stream.match(/^(\]|:NONAME)(\s|$)/i)) { - stt.state = ' compilation'; - return 'builtin compilation'; - } - mat = stream.match(/^(\:)\s+(\S+)(\s|$)+/); - if (mat) { - stt.wordList.push({name: mat[2].toUpperCase()}); - stt.state = ' compilation'; - return 'def' + stt.state; - } - mat = stream.match(/^(VARIABLE|2VARIABLE|CONSTANT|2CONSTANT|CREATE|POSTPONE|VALUE|WORD)\s+(\S+)(\s|$)+/i); - if (mat) { - stt.wordList.push({name: mat[2].toUpperCase()}); - return 'def' + stt.state; - } - mat = stream.match(/^(\'|\[\'\])\s+(\S+)(\s|$)+/); - if (mat) { - return 'builtin' + stt.state; - } - } else { // compilation - // ; [ - if (stream.match(/^(\;|\[)(\s)/)) { - stt.state = ''; - stream.backUp(1); - return 'builtin compilation'; - } - if (stream.match(/^(\;|\[)($)/)) { - stt.state = ''; - return 'builtin compilation'; - } - if (stream.match(/^(POSTPONE)\s+\S+(\s|$)+/)) { - return 'builtin'; - } - } - - // dynamic wordlist - mat = stream.match(/^(\S+)(\s+|$)/); - if (mat) { - if (searchWordList(stt.wordList, mat[1]) !== undefined) { - return 'variable' + stt.state; - } - - // comments - if (mat[1] === '\\') { - stream.skipToEnd(); - return 'comment' + stt.state; - } - - // core words - if (searchWordList(stt.coreWordList, mat[1]) !== undefined) { - return 'builtin' + stt.state; - } - if (searchWordList(stt.immediateWordList, mat[1]) !== undefined) { - return 'keyword' + stt.state; - } - - if (mat[1] === '(') { - stream.eatWhile(function (s) { return s !== ')'; }); - stream.eat(')'); - return 'comment' + stt.state; - } - - // // strings - if (mat[1] === '.(') { - stream.eatWhile(function (s) { return s !== ')'; }); - stream.eat(')'); - return 'string' + stt.state; - } - if (mat[1] === 'S"' || mat[1] === '."' || mat[1] === 'C"') { - stream.eatWhile(function (s) { return s !== '"'; }); - stream.eat('"'); - return 'string' + stt.state; - } - - // numbers - if (mat[1] - 0xfffffffff) { - return 'number' + stt.state; - } - // if (mat[1].match(/^[-+]?[0-9]+\.[0-9]*/)) { - // return 'number' + stt.state; - // } - - return 'atom' + stt.state; - } - } - }; - }); - CodeMirror.defineMIME("text/x-forth", "forth"); -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/fortran/fortran.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/fortran/fortran.js deleted file mode 100644 index 4d88f00..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/fortran/fortran.js +++ /dev/null @@ -1,188 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("fortran", function() { - function words(array) { - var keys = {}; - for (var i = 0; i < array.length; ++i) { - keys[array[i]] = true; - } - return keys; - } - - var keywords = words([ - "abstract", "accept", "allocatable", "allocate", - "array", "assign", "asynchronous", "backspace", - "bind", "block", "byte", "call", "case", - "class", "close", "common", "contains", - "continue", "cycle", "data", "deallocate", - "decode", "deferred", "dimension", "do", - "elemental", "else", "encode", "end", - "endif", "entry", "enumerator", "equivalence", - "exit", "external", "extrinsic", "final", - "forall", "format", "function", "generic", - "go", "goto", "if", "implicit", "import", "include", - "inquire", "intent", "interface", "intrinsic", - "module", "namelist", "non_intrinsic", - "non_overridable", "none", "nopass", - "nullify", "open", "optional", "options", - "parameter", "pass", "pause", "pointer", - "print", "private", "program", "protected", - "public", "pure", "read", "recursive", "result", - "return", "rewind", "save", "select", "sequence", - "stop", "subroutine", "target", "then", "to", "type", - "use", "value", "volatile", "where", "while", - "write"]); - var builtins = words(["abort", "abs", "access", "achar", "acos", - "adjustl", "adjustr", "aimag", "aint", "alarm", - "all", "allocated", "alog", "amax", "amin", - "amod", "and", "anint", "any", "asin", - "associated", "atan", "besj", "besjn", "besy", - "besyn", "bit_size", "btest", "cabs", "ccos", - "ceiling", "cexp", "char", "chdir", "chmod", - "clog", "cmplx", "command_argument_count", - "complex", "conjg", "cos", "cosh", "count", - "cpu_time", "cshift", "csin", "csqrt", "ctime", - "c_funloc", "c_loc", "c_associated", "c_null_ptr", - "c_null_funptr", "c_f_pointer", "c_null_char", - "c_alert", "c_backspace", "c_form_feed", - "c_new_line", "c_carriage_return", - "c_horizontal_tab", "c_vertical_tab", "dabs", - "dacos", "dasin", "datan", "date_and_time", - "dbesj", "dbesj", "dbesjn", "dbesy", "dbesy", - "dbesyn", "dble", "dcos", "dcosh", "ddim", "derf", - "derfc", "dexp", "digits", "dim", "dint", "dlog", - "dlog", "dmax", "dmin", "dmod", "dnint", - "dot_product", "dprod", "dsign", "dsinh", - "dsin", "dsqrt", "dtanh", "dtan", "dtime", - "eoshift", "epsilon", "erf", "erfc", "etime", - "exit", "exp", "exponent", "extends_type_of", - "fdate", "fget", "fgetc", "float", "floor", - "flush", "fnum", "fputc", "fput", "fraction", - "fseek", "fstat", "ftell", "gerror", "getarg", - "get_command", "get_command_argument", - "get_environment_variable", "getcwd", - "getenv", "getgid", "getlog", "getpid", - "getuid", "gmtime", "hostnm", "huge", "iabs", - "iachar", "iand", "iargc", "ibclr", "ibits", - "ibset", "ichar", "idate", "idim", "idint", - "idnint", "ieor", "ierrno", "ifix", "imag", - "imagpart", "index", "int", "ior", "irand", - "isatty", "ishft", "ishftc", "isign", - "iso_c_binding", "is_iostat_end", "is_iostat_eor", - "itime", "kill", "kind", "lbound", "len", "len_trim", - "lge", "lgt", "link", "lle", "llt", "lnblnk", "loc", - "log", "logical", "long", "lshift", "lstat", "ltime", - "matmul", "max", "maxexponent", "maxloc", "maxval", - "mclock", "merge", "move_alloc", "min", "minexponent", - "minloc", "minval", "mod", "modulo", "mvbits", - "nearest", "new_line", "nint", "not", "or", "pack", - "perror", "precision", "present", "product", "radix", - "rand", "random_number", "random_seed", "range", - "real", "realpart", "rename", "repeat", "reshape", - "rrspacing", "rshift", "same_type_as", "scale", - "scan", "second", "selected_int_kind", - "selected_real_kind", "set_exponent", "shape", - "short", "sign", "signal", "sinh", "sin", "sleep", - "sngl", "spacing", "spread", "sqrt", "srand", "stat", - "sum", "symlnk", "system", "system_clock", "tan", - "tanh", "time", "tiny", "transfer", "transpose", - "trim", "ttynam", "ubound", "umask", "unlink", - "unpack", "verify", "xor", "zabs", "zcos", "zexp", - "zlog", "zsin", "zsqrt"]); - - var dataTypes = words(["c_bool", "c_char", "c_double", "c_double_complex", - "c_float", "c_float_complex", "c_funptr", "c_int", - "c_int16_t", "c_int32_t", "c_int64_t", "c_int8_t", - "c_int_fast16_t", "c_int_fast32_t", "c_int_fast64_t", - "c_int_fast8_t", "c_int_least16_t", "c_int_least32_t", - "c_int_least64_t", "c_int_least8_t", "c_intmax_t", - "c_intptr_t", "c_long", "c_long_double", - "c_long_double_complex", "c_long_long", "c_ptr", - "c_short", "c_signed_char", "c_size_t", "character", - "complex", "double", "integer", "logical", "real"]); - var isOperatorChar = /[+\-*&=<>\/\:]/; - var litOperator = new RegExp("(\.and\.|\.or\.|\.eq\.|\.lt\.|\.le\.|\.gt\.|\.ge\.|\.ne\.|\.not\.|\.eqv\.|\.neqv\.)", "i"); - - function tokenBase(stream, state) { - - if (stream.match(litOperator)){ - return 'operator'; - } - - var ch = stream.next(); - if (ch == "!") { - stream.skipToEnd(); - return "comment"; - } - if (ch == '"' || ch == "'") { - state.tokenize = tokenString(ch); - return state.tokenize(stream, state); - } - if (/[\[\]\(\),]/.test(ch)) { - return null; - } - if (/\d/.test(ch)) { - stream.eatWhile(/[\w\.]/); - return "number"; - } - if (isOperatorChar.test(ch)) { - stream.eatWhile(isOperatorChar); - return "operator"; - } - stream.eatWhile(/[\w\$_]/); - var word = stream.current().toLowerCase(); - - if (keywords.hasOwnProperty(word)){ - return 'keyword'; - } - if (builtins.hasOwnProperty(word) || dataTypes.hasOwnProperty(word)) { - return 'builtin'; - } - return "variable"; - } - - function tokenString(quote) { - return function(stream, state) { - var escaped = false, next, end = false; - while ((next = stream.next()) != null) { - if (next == quote && !escaped) { - end = true; - break; - } - escaped = !escaped && next == "\\"; - } - if (end || !escaped) state.tokenize = null; - return "string"; - }; - } - - // Interface - - return { - startState: function() { - return {tokenize: null}; - }, - - token: function(stream, state) { - if (stream.eatSpace()) return null; - var style = (state.tokenize || tokenBase)(stream, state); - if (style == "comment" || style == "meta") return style; - return style; - } - }; -}); - -CodeMirror.defineMIME("text/x-fortran", "fortran"); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/gas/gas.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/gas/gas.js deleted file mode 100644 index 0c74bed..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/gas/gas.js +++ /dev/null @@ -1,345 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("gas", function(_config, parserConfig) { - 'use strict'; - - // If an architecture is specified, its initialization function may - // populate this array with custom parsing functions which will be - // tried in the event that the standard functions do not find a match. - var custom = []; - - // The symbol used to start a line comment changes based on the target - // architecture. - // If no architecture is pased in "parserConfig" then only multiline - // comments will have syntax support. - var lineCommentStartSymbol = ""; - - // These directives are architecture independent. - // Machine specific directives should go in their respective - // architecture initialization function. - // Reference: - // http://sourceware.org/binutils/docs/as/Pseudo-Ops.html#Pseudo-Ops - var directives = { - ".abort" : "builtin", - ".align" : "builtin", - ".altmacro" : "builtin", - ".ascii" : "builtin", - ".asciz" : "builtin", - ".balign" : "builtin", - ".balignw" : "builtin", - ".balignl" : "builtin", - ".bundle_align_mode" : "builtin", - ".bundle_lock" : "builtin", - ".bundle_unlock" : "builtin", - ".byte" : "builtin", - ".cfi_startproc" : "builtin", - ".comm" : "builtin", - ".data" : "builtin", - ".def" : "builtin", - ".desc" : "builtin", - ".dim" : "builtin", - ".double" : "builtin", - ".eject" : "builtin", - ".else" : "builtin", - ".elseif" : "builtin", - ".end" : "builtin", - ".endef" : "builtin", - ".endfunc" : "builtin", - ".endif" : "builtin", - ".equ" : "builtin", - ".equiv" : "builtin", - ".eqv" : "builtin", - ".err" : "builtin", - ".error" : "builtin", - ".exitm" : "builtin", - ".extern" : "builtin", - ".fail" : "builtin", - ".file" : "builtin", - ".fill" : "builtin", - ".float" : "builtin", - ".func" : "builtin", - ".global" : "builtin", - ".gnu_attribute" : "builtin", - ".hidden" : "builtin", - ".hword" : "builtin", - ".ident" : "builtin", - ".if" : "builtin", - ".incbin" : "builtin", - ".include" : "builtin", - ".int" : "builtin", - ".internal" : "builtin", - ".irp" : "builtin", - ".irpc" : "builtin", - ".lcomm" : "builtin", - ".lflags" : "builtin", - ".line" : "builtin", - ".linkonce" : "builtin", - ".list" : "builtin", - ".ln" : "builtin", - ".loc" : "builtin", - ".loc_mark_labels" : "builtin", - ".local" : "builtin", - ".long" : "builtin", - ".macro" : "builtin", - ".mri" : "builtin", - ".noaltmacro" : "builtin", - ".nolist" : "builtin", - ".octa" : "builtin", - ".offset" : "builtin", - ".org" : "builtin", - ".p2align" : "builtin", - ".popsection" : "builtin", - ".previous" : "builtin", - ".print" : "builtin", - ".protected" : "builtin", - ".psize" : "builtin", - ".purgem" : "builtin", - ".pushsection" : "builtin", - ".quad" : "builtin", - ".reloc" : "builtin", - ".rept" : "builtin", - ".sbttl" : "builtin", - ".scl" : "builtin", - ".section" : "builtin", - ".set" : "builtin", - ".short" : "builtin", - ".single" : "builtin", - ".size" : "builtin", - ".skip" : "builtin", - ".sleb128" : "builtin", - ".space" : "builtin", - ".stab" : "builtin", - ".string" : "builtin", - ".struct" : "builtin", - ".subsection" : "builtin", - ".symver" : "builtin", - ".tag" : "builtin", - ".text" : "builtin", - ".title" : "builtin", - ".type" : "builtin", - ".uleb128" : "builtin", - ".val" : "builtin", - ".version" : "builtin", - ".vtable_entry" : "builtin", - ".vtable_inherit" : "builtin", - ".warning" : "builtin", - ".weak" : "builtin", - ".weakref" : "builtin", - ".word" : "builtin" - }; - - var registers = {}; - - function x86(_parserConfig) { - lineCommentStartSymbol = "#"; - - registers.ax = "variable"; - registers.eax = "variable-2"; - registers.rax = "variable-3"; - - registers.bx = "variable"; - registers.ebx = "variable-2"; - registers.rbx = "variable-3"; - - registers.cx = "variable"; - registers.ecx = "variable-2"; - registers.rcx = "variable-3"; - - registers.dx = "variable"; - registers.edx = "variable-2"; - registers.rdx = "variable-3"; - - registers.si = "variable"; - registers.esi = "variable-2"; - registers.rsi = "variable-3"; - - registers.di = "variable"; - registers.edi = "variable-2"; - registers.rdi = "variable-3"; - - registers.sp = "variable"; - registers.esp = "variable-2"; - registers.rsp = "variable-3"; - - registers.bp = "variable"; - registers.ebp = "variable-2"; - registers.rbp = "variable-3"; - - registers.ip = "variable"; - registers.eip = "variable-2"; - registers.rip = "variable-3"; - - registers.cs = "keyword"; - registers.ds = "keyword"; - registers.ss = "keyword"; - registers.es = "keyword"; - registers.fs = "keyword"; - registers.gs = "keyword"; - } - - function armv6(_parserConfig) { - // Reference: - // http://infocenter.arm.com/help/topic/com.arm.doc.qrc0001l/QRC0001_UAL.pdf - // http://infocenter.arm.com/help/topic/com.arm.doc.ddi0301h/DDI0301H_arm1176jzfs_r0p7_trm.pdf - lineCommentStartSymbol = "@"; - directives.syntax = "builtin"; - - registers.r0 = "variable"; - registers.r1 = "variable"; - registers.r2 = "variable"; - registers.r3 = "variable"; - registers.r4 = "variable"; - registers.r5 = "variable"; - registers.r6 = "variable"; - registers.r7 = "variable"; - registers.r8 = "variable"; - registers.r9 = "variable"; - registers.r10 = "variable"; - registers.r11 = "variable"; - registers.r12 = "variable"; - - registers.sp = "variable-2"; - registers.lr = "variable-2"; - registers.pc = "variable-2"; - registers.r13 = registers.sp; - registers.r14 = registers.lr; - registers.r15 = registers.pc; - - custom.push(function(ch, stream) { - if (ch === '#') { - stream.eatWhile(/\w/); - return "number"; - } - }); - } - - var arch = (parserConfig.architecture || "x86").toLowerCase(); - if (arch === "x86") { - x86(parserConfig); - } else if (arch === "arm" || arch === "armv6") { - armv6(parserConfig); - } - - function nextUntilUnescaped(stream, end) { - var escaped = false, next; - while ((next = stream.next()) != null) { - if (next === end && !escaped) { - return false; - } - escaped = !escaped && next === "\\"; - } - return escaped; - } - - function clikeComment(stream, state) { - var maybeEnd = false, ch; - while ((ch = stream.next()) != null) { - if (ch === "/" && maybeEnd) { - state.tokenize = null; - break; - } - maybeEnd = (ch === "*"); - } - return "comment"; - } - - return { - startState: function() { - return { - tokenize: null - }; - }, - - token: function(stream, state) { - if (state.tokenize) { - return state.tokenize(stream, state); - } - - if (stream.eatSpace()) { - return null; - } - - var style, cur, ch = stream.next(); - - if (ch === "/") { - if (stream.eat("*")) { - state.tokenize = clikeComment; - return clikeComment(stream, state); - } - } - - if (ch === lineCommentStartSymbol) { - stream.skipToEnd(); - return "comment"; - } - - if (ch === '"') { - nextUntilUnescaped(stream, '"'); - return "string"; - } - - if (ch === '.') { - stream.eatWhile(/\w/); - cur = stream.current().toLowerCase(); - style = directives[cur]; - return style || null; - } - - if (ch === '=') { - stream.eatWhile(/\w/); - return "tag"; - } - - if (ch === '{') { - return "braket"; - } - - if (ch === '}') { - return "braket"; - } - - if (/\d/.test(ch)) { - if (ch === "0" && stream.eat("x")) { - stream.eatWhile(/[0-9a-fA-F]/); - return "number"; - } - stream.eatWhile(/\d/); - return "number"; - } - - if (/\w/.test(ch)) { - stream.eatWhile(/\w/); - if (stream.eat(":")) { - return 'tag'; - } - cur = stream.current().toLowerCase(); - style = registers[cur]; - return style || null; - } - - for (var i = 0; i < custom.length; i++) { - style = custom[i](ch, stream, state); - if (style) { - return style; - } - } - }, - - lineComment: lineCommentStartSymbol, - blockCommentStart: "/*", - blockCommentEnd: "*/" - }; -}); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/gfm/gfm.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/gfm/gfm.js deleted file mode 100644 index 6e74ad4..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/gfm/gfm.js +++ /dev/null @@ -1,130 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror"), require("../markdown/markdown"), require("../../addon/mode/overlay")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror", "../markdown/markdown", "../../addon/mode/overlay"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -var urlRE = /^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i - -CodeMirror.defineMode("gfm", function(config, modeConfig) { - var codeDepth = 0; - function blankLine(state) { - state.code = false; - return null; - } - var gfmOverlay = { - startState: function() { - return { - code: false, - codeBlock: false, - ateSpace: false - }; - }, - copyState: function(s) { - return { - code: s.code, - codeBlock: s.codeBlock, - ateSpace: s.ateSpace - }; - }, - token: function(stream, state) { - state.combineTokens = null; - - // Hack to prevent formatting override inside code blocks (block and inline) - if (state.codeBlock) { - if (stream.match(/^```+/)) { - state.codeBlock = false; - return null; - } - stream.skipToEnd(); - return null; - } - if (stream.sol()) { - state.code = false; - } - if (stream.sol() && stream.match(/^```+/)) { - stream.skipToEnd(); - state.codeBlock = true; - return null; - } - // If this block is changed, it may need to be updated in Markdown mode - if (stream.peek() === '`') { - stream.next(); - var before = stream.pos; - stream.eatWhile('`'); - var difference = 1 + stream.pos - before; - if (!state.code) { - codeDepth = difference; - state.code = true; - } else { - if (difference === codeDepth) { // Must be exact - state.code = false; - } - } - return null; - } else if (state.code) { - stream.next(); - return null; - } - // Check if space. If so, links can be formatted later on - if (stream.eatSpace()) { - state.ateSpace = true; - return null; - } - if (stream.sol() || state.ateSpace) { - state.ateSpace = false; - if (modeConfig.gitHubSpice !== false) { - if(stream.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?:[a-f0-9]{7,40}\b)/)) { - // User/Project@SHA - // User@SHA - // SHA - state.combineTokens = true; - return "link"; - } else if (stream.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/)) { - // User/Project#Num - // User#Num - // #Num - state.combineTokens = true; - return "link"; - } - } - } - if (stream.match(urlRE) && - stream.string.slice(stream.start - 2, stream.start) != "](" && - (stream.start == 0 || /\W/.test(stream.string.charAt(stream.start - 1)))) { - // URLs - // Taken from http://daringfireball.net/2010/07/improved_regex_for_matching_urls - // And then (issue #1160) simplified to make it not crash the Chrome Regexp engine - // And then limited url schemes to the CommonMark list, so foo:bar isn't matched as a URL - state.combineTokens = true; - return "link"; - } - stream.next(); - return null; - }, - blankLine: blankLine - }; - - var markdownConfig = { - underscoresBreakWords: false, - taskLists: true, - fencedCodeBlocks: '```', - strikethrough: true - }; - for (var attr in modeConfig) { - markdownConfig[attr] = modeConfig[attr]; - } - markdownConfig.name = "markdown"; - return CodeMirror.overlayMode(CodeMirror.getMode(config, markdownConfig), gfmOverlay); - -}, "markdown"); - - CodeMirror.defineMIME("text/x-gfm", "gfm"); -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/gfm/test.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/gfm/test.js deleted file mode 100644 index 7a1a4cc..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/gfm/test.js +++ /dev/null @@ -1,236 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function() { - var mode = CodeMirror.getMode({tabSize: 4}, "gfm"); - function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); } - var modeHighlightFormatting = CodeMirror.getMode({tabSize: 4}, {name: "gfm", highlightFormatting: true}); - function FT(name) { test.mode(name, modeHighlightFormatting, Array.prototype.slice.call(arguments, 1)); } - - FT("codeBackticks", - "[comment&formatting&formatting-code `][comment foo][comment&formatting&formatting-code `]"); - - FT("doubleBackticks", - "[comment&formatting&formatting-code ``][comment foo ` bar][comment&formatting&formatting-code ``]"); - - FT("codeBlock", - "[comment&formatting&formatting-code-block ```css]", - "[tag foo]", - "[comment&formatting&formatting-code-block ```]"); - - FT("taskList", - "[variable-2&formatting&formatting-list&formatting-list-ul - ][meta&formatting&formatting-task [ ]]][variable-2 foo]", - "[variable-2&formatting&formatting-list&formatting-list-ul - ][property&formatting&formatting-task [x]]][variable-2 foo]"); - - FT("formatting_strikethrough", - "[strikethrough&formatting&formatting-strikethrough ~~][strikethrough foo][strikethrough&formatting&formatting-strikethrough ~~]"); - - FT("formatting_strikethrough", - "foo [strikethrough&formatting&formatting-strikethrough ~~][strikethrough bar][strikethrough&formatting&formatting-strikethrough ~~]"); - - MT("emInWordAsterisk", - "foo[em *bar*]hello"); - - MT("emInWordUnderscore", - "foo_bar_hello"); - - MT("emStrongUnderscore", - "[strong __][em&strong _foo__][em _] bar"); - - MT("fencedCodeBlocks", - "[comment ```]", - "[comment foo]", - "", - "[comment ```]", - "bar"); - - MT("fencedCodeBlockModeSwitching", - "[comment ```javascript]", - "[variable foo]", - "", - "[comment ```]", - "bar"); - - MT("fencedCodeBlockModeSwitchingObjc", - "[comment ```objective-c]", - "[keyword @property] [variable NSString] [operator *] [variable foo];", - "[comment ```]", - "bar"); - - MT("fencedCodeBlocksNoTildes", - "~~~", - "foo", - "~~~"); - - MT("taskListAsterisk", - "[variable-2 * []] foo]", // Invalid; must have space or x between [] - "[variable-2 * [ ]]bar]", // Invalid; must have space after ] - "[variable-2 * [x]]hello]", // Invalid; must have space after ] - "[variable-2 * ][meta [ ]]][variable-2 [world]]]", // Valid; tests reference style links - " [variable-3 * ][property [x]]][variable-3 foo]"); // Valid; can be nested - - MT("taskListPlus", - "[variable-2 + []] foo]", // Invalid; must have space or x between [] - "[variable-2 + [ ]]bar]", // Invalid; must have space after ] - "[variable-2 + [x]]hello]", // Invalid; must have space after ] - "[variable-2 + ][meta [ ]]][variable-2 [world]]]", // Valid; tests reference style links - " [variable-3 + ][property [x]]][variable-3 foo]"); // Valid; can be nested - - MT("taskListDash", - "[variable-2 - []] foo]", // Invalid; must have space or x between [] - "[variable-2 - [ ]]bar]", // Invalid; must have space after ] - "[variable-2 - [x]]hello]", // Invalid; must have space after ] - "[variable-2 - ][meta [ ]]][variable-2 [world]]]", // Valid; tests reference style links - " [variable-3 - ][property [x]]][variable-3 foo]"); // Valid; can be nested - - MT("taskListNumber", - "[variable-2 1. []] foo]", // Invalid; must have space or x between [] - "[variable-2 2. [ ]]bar]", // Invalid; must have space after ] - "[variable-2 3. [x]]hello]", // Invalid; must have space after ] - "[variable-2 4. ][meta [ ]]][variable-2 [world]]]", // Valid; tests reference style links - " [variable-3 1. ][property [x]]][variable-3 foo]"); // Valid; can be nested - - MT("SHA", - "foo [link be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2] bar"); - - MT("SHAEmphasis", - "[em *foo ][em&link be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2][em *]"); - - MT("shortSHA", - "foo [link be6a8cc] bar"); - - MT("tooShortSHA", - "foo be6a8c bar"); - - MT("longSHA", - "foo be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd22 bar"); - - MT("badSHA", - "foo be6a8cc1c1ecfe9489fb51e4869af15a13fc2cg2 bar"); - - MT("userSHA", - "foo [link bar@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2] hello"); - - MT("userSHAEmphasis", - "[em *foo ][em&link bar@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2][em *]"); - - MT("userProjectSHA", - "foo [link bar/hello@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2] world"); - - MT("userProjectSHAEmphasis", - "[em *foo ][em&link bar/hello@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2][em *]"); - - MT("num", - "foo [link #1] bar"); - - MT("numEmphasis", - "[em *foo ][em&link #1][em *]"); - - MT("badNum", - "foo #1bar hello"); - - MT("userNum", - "foo [link bar#1] hello"); - - MT("userNumEmphasis", - "[em *foo ][em&link bar#1][em *]"); - - MT("userProjectNum", - "foo [link bar/hello#1] world"); - - MT("userProjectNumEmphasis", - "[em *foo ][em&link bar/hello#1][em *]"); - - MT("vanillaLink", - "foo [link http://www.example.com/] bar"); - - MT("vanillaLinkNoScheme", - "foo [link www.example.com] bar"); - - MT("vanillaLinkHttps", - "foo [link https://www.example.com/] bar"); - - MT("vanillaLinkDataSchema", - "foo [link data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==] bar"); - - MT("vanillaLinkPunctuation", - "foo [link http://www.example.com/]. bar"); - - MT("vanillaLinkExtension", - "foo [link http://www.example.com/index.html] bar"); - - MT("vanillaLinkEmphasis", - "foo [em *][em&link http://www.example.com/index.html][em *] bar"); - - MT("notALink", - "foo asfd:asdf bar"); - - MT("notALink", - "[comment ```css]", - "[tag foo] {[property color]:[keyword black];}", - "[comment ```][link http://www.example.com/]"); - - MT("notALink", - "[comment ``foo `bar` http://www.example.com/``] hello"); - - MT("notALink", - "[comment `foo]", - "[comment&link http://www.example.com/]", - "[comment `] foo", - "", - "[link http://www.example.com/]"); - - MT("headerCodeBlockGithub", - "[header&header-1 # heading]", - "", - "[comment ```]", - "[comment code]", - "[comment ```]", - "", - "Commit: [link be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2]", - "Issue: [link #1]", - "Link: [link http://www.example.com/]"); - - MT("strikethrough", - "[strikethrough ~~foo~~]"); - - MT("strikethroughWithStartingSpace", - "~~ foo~~"); - - MT("strikethroughUnclosedStrayTildes", - "[strikethrough ~~foo~~~]"); - - MT("strikethroughUnclosedStrayTildes", - "[strikethrough ~~foo ~~]"); - - MT("strikethroughUnclosedStrayTildes", - "[strikethrough ~~foo ~~ bar]"); - - MT("strikethroughUnclosedStrayTildes", - "[strikethrough ~~foo ~~ bar~~]hello"); - - MT("strikethroughOneLetter", - "[strikethrough ~~a~~]"); - - MT("strikethroughWrapped", - "[strikethrough ~~foo]", - "[strikethrough foo~~]"); - - MT("strikethroughParagraph", - "[strikethrough ~~foo]", - "", - "foo[strikethrough ~~bar]"); - - MT("strikethroughEm", - "[strikethrough ~~foo][em&strikethrough *bar*][strikethrough ~~]"); - - MT("strikethroughEm", - "[em *][em&strikethrough ~~foo~~][em *]"); - - MT("strikethroughStrong", - "[strikethrough ~~][strong&strikethrough **foo**][strikethrough ~~]"); - - MT("strikethroughStrong", - "[strong **][strong&strikethrough ~~foo~~][strong **]"); - -})(); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/go/go.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/go/go.js deleted file mode 100644 index 3c9ef6b..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/go/go.js +++ /dev/null @@ -1,185 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("go", function(config) { - var indentUnit = config.indentUnit; - - var keywords = { - "break":true, "case":true, "chan":true, "const":true, "continue":true, - "default":true, "defer":true, "else":true, "fallthrough":true, "for":true, - "func":true, "go":true, "goto":true, "if":true, "import":true, - "interface":true, "map":true, "package":true, "range":true, "return":true, - "select":true, "struct":true, "switch":true, "type":true, "var":true, - "bool":true, "byte":true, "complex64":true, "complex128":true, - "float32":true, "float64":true, "int8":true, "int16":true, "int32":true, - "int64":true, "string":true, "uint8":true, "uint16":true, "uint32":true, - "uint64":true, "int":true, "uint":true, "uintptr":true, "error": true - }; - - var atoms = { - "true":true, "false":true, "iota":true, "nil":true, "append":true, - "cap":true, "close":true, "complex":true, "copy":true, "imag":true, - "len":true, "make":true, "new":true, "panic":true, "print":true, - "println":true, "real":true, "recover":true - }; - - var isOperatorChar = /[+\-*&^%:=<>!|\/]/; - - var curPunc; - - function tokenBase(stream, state) { - var ch = stream.next(); - if (ch == '"' || ch == "'" || ch == "`") { - state.tokenize = tokenString(ch); - return state.tokenize(stream, state); - } - if (/[\d\.]/.test(ch)) { - if (ch == ".") { - stream.match(/^[0-9]+([eE][\-+]?[0-9]+)?/); - } else if (ch == "0") { - stream.match(/^[xX][0-9a-fA-F]+/) || stream.match(/^0[0-7]+/); - } else { - stream.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/); - } - return "number"; - } - if (/[\[\]{}\(\),;\:\.]/.test(ch)) { - curPunc = ch; - return null; - } - if (ch == "/") { - if (stream.eat("*")) { - state.tokenize = tokenComment; - return tokenComment(stream, state); - } - if (stream.eat("/")) { - stream.skipToEnd(); - return "comment"; - } - } - if (isOperatorChar.test(ch)) { - stream.eatWhile(isOperatorChar); - return "operator"; - } - stream.eatWhile(/[\w\$_\xa1-\uffff]/); - var cur = stream.current(); - if (keywords.propertyIsEnumerable(cur)) { - if (cur == "case" || cur == "default") curPunc = "case"; - return "keyword"; - } - if (atoms.propertyIsEnumerable(cur)) return "atom"; - return "variable"; - } - - function tokenString(quote) { - return function(stream, state) { - var escaped = false, next, end = false; - while ((next = stream.next()) != null) { - if (next == quote && !escaped) {end = true; break;} - escaped = !escaped && quote != "`" && next == "\\"; - } - if (end || !(escaped || quote == "`")) - state.tokenize = tokenBase; - return "string"; - }; - } - - function tokenComment(stream, state) { - var maybeEnd = false, ch; - while (ch = stream.next()) { - if (ch == "/" && maybeEnd) { - state.tokenize = tokenBase; - break; - } - maybeEnd = (ch == "*"); - } - return "comment"; - } - - function Context(indented, column, type, align, prev) { - this.indented = indented; - this.column = column; - this.type = type; - this.align = align; - this.prev = prev; - } - function pushContext(state, col, type) { - return state.context = new Context(state.indented, col, type, null, state.context); - } - function popContext(state) { - if (!state.context.prev) return; - var t = state.context.type; - if (t == ")" || t == "]" || t == "}") - state.indented = state.context.indented; - return state.context = state.context.prev; - } - - // Interface - - return { - startState: function(basecolumn) { - return { - tokenize: null, - context: new Context((basecolumn || 0) - indentUnit, 0, "top", false), - indented: 0, - startOfLine: true - }; - }, - - token: function(stream, state) { - var ctx = state.context; - if (stream.sol()) { - if (ctx.align == null) ctx.align = false; - state.indented = stream.indentation(); - state.startOfLine = true; - if (ctx.type == "case") ctx.type = "}"; - } - if (stream.eatSpace()) return null; - curPunc = null; - var style = (state.tokenize || tokenBase)(stream, state); - if (style == "comment") return style; - if (ctx.align == null) ctx.align = true; - - if (curPunc == "{") pushContext(state, stream.column(), "}"); - else if (curPunc == "[") pushContext(state, stream.column(), "]"); - else if (curPunc == "(") pushContext(state, stream.column(), ")"); - else if (curPunc == "case") ctx.type = "case"; - else if (curPunc == "}" && ctx.type == "}") ctx = popContext(state); - else if (curPunc == ctx.type) popContext(state); - state.startOfLine = false; - return style; - }, - - indent: function(state, textAfter) { - if (state.tokenize != tokenBase && state.tokenize != null) return 0; - var ctx = state.context, firstChar = textAfter && textAfter.charAt(0); - if (ctx.type == "case" && /^(?:case|default)\b/.test(textAfter)) { - state.context.type = "}"; - return ctx.indented; - } - var closing = firstChar == ctx.type; - if (ctx.align) return ctx.column + (closing ? 0 : 1); - else return ctx.indented + (closing ? 0 : indentUnit); - }, - - electricChars: "{}):", - fold: "brace", - blockCommentStart: "/*", - blockCommentEnd: "*/", - lineComment: "//" - }; -}); - -CodeMirror.defineMIME("text/x-go", "go"); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/go/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/go/index.html deleted file mode 100644 index 72e3b36..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/go/index.html +++ /dev/null @@ -1,85 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Go mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<link rel="stylesheet" href="../../theme/elegant.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../../addon/edit/matchbrackets.js"></script> -<script src="go.js"></script> -<style>.CodeMirror {border:1px solid #999; background:#ffc}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Go</a> - </ul> -</div> - -<article> -<h2>Go mode</h2> -<form><textarea id="code" name="code"> -// Prime Sieve in Go. -// Taken from the Go specification. -// Copyright © The Go Authors. - -package main - -import "fmt" - -// Send the sequence 2, 3, 4, ... to channel 'ch'. -func generate(ch chan<- int) { - for i := 2; ; i++ { - ch <- i // Send 'i' to channel 'ch' - } -} - -// Copy the values from channel 'src' to channel 'dst', -// removing those divisible by 'prime'. -func filter(src <-chan int, dst chan<- int, prime int) { - for i := range src { // Loop over values received from 'src'. - if i%prime != 0 { - dst <- i // Send 'i' to channel 'dst'. - } - } -} - -// The prime sieve: Daisy-chain filter processes together. -func sieve() { - ch := make(chan int) // Create a new channel. - go generate(ch) // Start generate() as a subprocess. - for { - prime := <-ch - fmt.Print(prime, "\n") - ch1 := make(chan int) - go filter(ch, ch1, prime) - ch = ch1 - } -} - -func main() { - sieve() -} -</textarea></form> - - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - theme: "elegant", - matchBrackets: true, - indentUnit: 8, - tabSize: 8, - indentWithTabs: true, - mode: "text/x-go" - }); - </script> - - <p><strong>MIME type:</strong> <code>text/x-go</code></p> - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/groovy/groovy.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/groovy/groovy.js deleted file mode 100644 index 721933b..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/groovy/groovy.js +++ /dev/null @@ -1,230 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("groovy", function(config) { - function words(str) { - var obj = {}, words = str.split(" "); - for (var i = 0; i < words.length; ++i) obj[words[i]] = true; - return obj; - } - var keywords = words( - "abstract as assert boolean break byte case catch char class const continue def default " + - "do double else enum extends final finally float for goto if implements import in " + - "instanceof int interface long native new package private protected public return " + - "short static strictfp super switch synchronized threadsafe throw throws transient " + - "try void volatile while"); - var blockKeywords = words("catch class do else finally for if switch try while enum interface def"); - var standaloneKeywords = words("return break continue"); - var atoms = words("null true false this"); - - var curPunc; - function tokenBase(stream, state) { - var ch = stream.next(); - if (ch == '"' || ch == "'") { - return startString(ch, stream, state); - } - if (/[\[\]{}\(\),;\:\.]/.test(ch)) { - curPunc = ch; - return null; - } - if (/\d/.test(ch)) { - stream.eatWhile(/[\w\.]/); - if (stream.eat(/eE/)) { stream.eat(/\+\-/); stream.eatWhile(/\d/); } - return "number"; - } - if (ch == "/") { - if (stream.eat("*")) { - state.tokenize.push(tokenComment); - return tokenComment(stream, state); - } - if (stream.eat("/")) { - stream.skipToEnd(); - return "comment"; - } - if (expectExpression(state.lastToken, false)) { - return startString(ch, stream, state); - } - } - if (ch == "-" && stream.eat(">")) { - curPunc = "->"; - return null; - } - if (/[+\-*&%=<>!?|\/~]/.test(ch)) { - stream.eatWhile(/[+\-*&%=<>|~]/); - return "operator"; - } - stream.eatWhile(/[\w\$_]/); - if (ch == "@") { stream.eatWhile(/[\w\$_\.]/); return "meta"; } - if (state.lastToken == ".") return "property"; - if (stream.eat(":")) { curPunc = "proplabel"; return "property"; } - var cur = stream.current(); - if (atoms.propertyIsEnumerable(cur)) { return "atom"; } - if (keywords.propertyIsEnumerable(cur)) { - if (blockKeywords.propertyIsEnumerable(cur)) curPunc = "newstatement"; - else if (standaloneKeywords.propertyIsEnumerable(cur)) curPunc = "standalone"; - return "keyword"; - } - return "variable"; - } - tokenBase.isBase = true; - - function startString(quote, stream, state) { - var tripleQuoted = false; - if (quote != "/" && stream.eat(quote)) { - if (stream.eat(quote)) tripleQuoted = true; - else return "string"; - } - function t(stream, state) { - var escaped = false, next, end = !tripleQuoted; - while ((next = stream.next()) != null) { - if (next == quote && !escaped) { - if (!tripleQuoted) { break; } - if (stream.match(quote + quote)) { end = true; break; } - } - if (quote == '"' && next == "$" && !escaped && stream.eat("{")) { - state.tokenize.push(tokenBaseUntilBrace()); - return "string"; - } - escaped = !escaped && next == "\\"; - } - if (end) state.tokenize.pop(); - return "string"; - } - state.tokenize.push(t); - return t(stream, state); - } - - function tokenBaseUntilBrace() { - var depth = 1; - function t(stream, state) { - if (stream.peek() == "}") { - depth--; - if (depth == 0) { - state.tokenize.pop(); - return state.tokenize[state.tokenize.length-1](stream, state); - } - } else if (stream.peek() == "{") { - depth++; - } - return tokenBase(stream, state); - } - t.isBase = true; - return t; - } - - function tokenComment(stream, state) { - var maybeEnd = false, ch; - while (ch = stream.next()) { - if (ch == "/" && maybeEnd) { - state.tokenize.pop(); - break; - } - maybeEnd = (ch == "*"); - } - return "comment"; - } - - function expectExpression(last, newline) { - return !last || last == "operator" || last == "->" || /[\.\[\{\(,;:]/.test(last) || - last == "newstatement" || last == "keyword" || last == "proplabel" || - (last == "standalone" && !newline); - } - - function Context(indented, column, type, align, prev) { - this.indented = indented; - this.column = column; - this.type = type; - this.align = align; - this.prev = prev; - } - function pushContext(state, col, type) { - return state.context = new Context(state.indented, col, type, null, state.context); - } - function popContext(state) { - var t = state.context.type; - if (t == ")" || t == "]" || t == "}") - state.indented = state.context.indented; - return state.context = state.context.prev; - } - - // Interface - - return { - startState: function(basecolumn) { - return { - tokenize: [tokenBase], - context: new Context((basecolumn || 0) - config.indentUnit, 0, "top", false), - indented: 0, - startOfLine: true, - lastToken: null - }; - }, - - token: function(stream, state) { - var ctx = state.context; - if (stream.sol()) { - if (ctx.align == null) ctx.align = false; - state.indented = stream.indentation(); - state.startOfLine = true; - // Automatic semicolon insertion - if (ctx.type == "statement" && !expectExpression(state.lastToken, true)) { - popContext(state); ctx = state.context; - } - } - if (stream.eatSpace()) return null; - curPunc = null; - var style = state.tokenize[state.tokenize.length-1](stream, state); - if (style == "comment") return style; - if (ctx.align == null) ctx.align = true; - - if ((curPunc == ";" || curPunc == ":") && ctx.type == "statement") popContext(state); - // Handle indentation for {x -> \n ... } - else if (curPunc == "->" && ctx.type == "statement" && ctx.prev.type == "}") { - popContext(state); - state.context.align = false; - } - else if (curPunc == "{") pushContext(state, stream.column(), "}"); - else if (curPunc == "[") pushContext(state, stream.column(), "]"); - else if (curPunc == "(") pushContext(state, stream.column(), ")"); - else if (curPunc == "}") { - while (ctx.type == "statement") ctx = popContext(state); - if (ctx.type == "}") ctx = popContext(state); - while (ctx.type == "statement") ctx = popContext(state); - } - else if (curPunc == ctx.type) popContext(state); - else if (ctx.type == "}" || ctx.type == "top" || (ctx.type == "statement" && curPunc == "newstatement")) - pushContext(state, stream.column(), "statement"); - state.startOfLine = false; - state.lastToken = curPunc || style; - return style; - }, - - indent: function(state, textAfter) { - if (!state.tokenize[state.tokenize.length-1].isBase) return 0; - var firstChar = textAfter && textAfter.charAt(0), ctx = state.context; - if (ctx.type == "statement" && !expectExpression(state.lastToken, true)) ctx = ctx.prev; - var closing = firstChar == ctx.type; - if (ctx.type == "statement") return ctx.indented + (firstChar == "{" ? 0 : config.indentUnit); - else if (ctx.align) return ctx.column + (closing ? 0 : 1); - else return ctx.indented + (closing ? 0 : config.indentUnit); - }, - - electricChars: "{}", - closeBrackets: {triples: "'\""}, - fold: "brace" - }; -}); - -CodeMirror.defineMIME("text/x-groovy", "groovy"); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/groovy/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/groovy/index.html deleted file mode 100644 index bb0df07..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/groovy/index.html +++ /dev/null @@ -1,84 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Groovy mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../../addon/edit/matchbrackets.js"></script> -<script src="groovy.js"></script> -<style>.CodeMirror {border-top: 1px solid #500; border-bottom: 1px solid #500;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Groovy</a> - </ul> -</div> - -<article> -<h2>Groovy mode</h2> -<form><textarea id="code" name="code"> -//Pattern for groovy script -def p = ~/.*\.groovy/ -new File( 'd:\\scripts' ).eachFileMatch(p) {f -> - // imports list - def imports = [] - f.eachLine { - // condition to detect an import instruction - ln -> if ( ln =~ '^import .*' ) { - imports << "${ln - 'import '}" - } - } - // print thmen - if ( ! imports.empty ) { - println f - imports.each{ println " $it" } - } -} - -/* Coin changer demo code from http://groovy.codehaus.org */ - -enum UsCoin { - quarter(25), dime(10), nickel(5), penny(1) - UsCoin(v) { value = v } - final value -} - -enum OzzieCoin { - fifty(50), twenty(20), ten(10), five(5) - OzzieCoin(v) { value = v } - final value -} - -def plural(word, count) { - if (count == 1) return word - word[-1] == 'y' ? word[0..-2] + "ies" : word + "s" -} - -def change(currency, amount) { - currency.values().inject([]){ list, coin -> - int count = amount / coin.value - amount = amount % coin.value - list += "$count ${plural(coin.toString(), count)}" - } -} -</textarea></form> - - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - lineNumbers: true, - matchBrackets: true, - mode: "text/x-groovy" - }); - </script> - - <p><strong>MIME types defined:</strong> <code>text/x-groovy</code></p> - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/haml/haml.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/haml/haml.js deleted file mode 100644 index 20ae1e1..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/haml/haml.js +++ /dev/null @@ -1,161 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed"), require("../ruby/ruby")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror", "../htmlmixed/htmlmixed", "../ruby/ruby"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - - // full haml mode. This handled embedded ruby and html fragments too - CodeMirror.defineMode("haml", function(config) { - var htmlMode = CodeMirror.getMode(config, {name: "htmlmixed"}); - var rubyMode = CodeMirror.getMode(config, "ruby"); - - function rubyInQuote(endQuote) { - return function(stream, state) { - var ch = stream.peek(); - if (ch == endQuote && state.rubyState.tokenize.length == 1) { - // step out of ruby context as it seems to complete processing all the braces - stream.next(); - state.tokenize = html; - return "closeAttributeTag"; - } else { - return ruby(stream, state); - } - }; - } - - function ruby(stream, state) { - if (stream.match("-#")) { - stream.skipToEnd(); - return "comment"; - } - return rubyMode.token(stream, state.rubyState); - } - - function html(stream, state) { - var ch = stream.peek(); - - // handle haml declarations. All declarations that cant be handled here - // will be passed to html mode - if (state.previousToken.style == "comment" ) { - if (state.indented > state.previousToken.indented) { - stream.skipToEnd(); - return "commentLine"; - } - } - - if (state.startOfLine) { - if (ch == "!" && stream.match("!!")) { - stream.skipToEnd(); - return "tag"; - } else if (stream.match(/^%[\w:#\.]+=/)) { - state.tokenize = ruby; - return "hamlTag"; - } else if (stream.match(/^%[\w:]+/)) { - return "hamlTag"; - } else if (ch == "/" ) { - stream.skipToEnd(); - return "comment"; - } - } - - if (state.startOfLine || state.previousToken.style == "hamlTag") { - if ( ch == "#" || ch == ".") { - stream.match(/[\w-#\.]*/); - return "hamlAttribute"; - } - } - - // donot handle --> as valid ruby, make it HTML close comment instead - if (state.startOfLine && !stream.match("-->", false) && (ch == "=" || ch == "-" )) { - state.tokenize = ruby; - return state.tokenize(stream, state); - } - - if (state.previousToken.style == "hamlTag" || - state.previousToken.style == "closeAttributeTag" || - state.previousToken.style == "hamlAttribute") { - if (ch == "(") { - state.tokenize = rubyInQuote(")"); - return state.tokenize(stream, state); - } else if (ch == "{") { - if (!stream.match(/^\{%.*/)) { - state.tokenize = rubyInQuote("}"); - return state.tokenize(stream, state); - } - } - } - - return htmlMode.token(stream, state.htmlState); - } - - return { - // default to html mode - startState: function() { - var htmlState = CodeMirror.startState(htmlMode); - var rubyState = CodeMirror.startState(rubyMode); - return { - htmlState: htmlState, - rubyState: rubyState, - indented: 0, - previousToken: { style: null, indented: 0}, - tokenize: html - }; - }, - - copyState: function(state) { - return { - htmlState : CodeMirror.copyState(htmlMode, state.htmlState), - rubyState: CodeMirror.copyState(rubyMode, state.rubyState), - indented: state.indented, - previousToken: state.previousToken, - tokenize: state.tokenize - }; - }, - - token: function(stream, state) { - if (stream.sol()) { - state.indented = stream.indentation(); - state.startOfLine = true; - } - if (stream.eatSpace()) return null; - var style = state.tokenize(stream, state); - state.startOfLine = false; - // dont record comment line as we only want to measure comment line with - // the opening comment block - if (style && style != "commentLine") { - state.previousToken = { style: style, indented: state.indented }; - } - // if current state is ruby and the previous token is not `,` reset the - // tokenize to html - if (stream.eol() && state.tokenize == ruby) { - stream.backUp(1); - var ch = stream.peek(); - stream.next(); - if (ch && ch != ",") { - state.tokenize = html; - } - } - // reprocess some of the specific style tag when finish setting previousToken - if (style == "hamlTag") { - style = "tag"; - } else if (style == "commentLine") { - style = "comment"; - } else if (style == "hamlAttribute") { - style = "attribute"; - } else if (style == "closeAttributeTag") { - style = null; - } - return style; - } - }; - }, "htmlmixed", "ruby"); - - CodeMirror.defineMIME("text/x-haml", "haml"); -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/haml/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/haml/index.html deleted file mode 100644 index 2894a93..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/haml/index.html +++ /dev/null @@ -1,79 +0,0 @@ -<!doctype html> - -<title>CodeMirror: HAML mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../xml/xml.js"></script> -<script src="../htmlmixed/htmlmixed.js"></script> -<script src="../javascript/javascript.js"></script> -<script src="../ruby/ruby.js"></script> -<script src="haml.js"></script> -<style>.CodeMirror {background: #f8f8f8;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">HAML</a> - </ul> -</div> - -<article> -<h2>HAML mode</h2> -<form><textarea id="code" name="code"> -!!! -#content -.left.column(title="title"){:href => "/hello", :test => "#{hello}_#{world}"} - <!-- This is a comment --> - %h2 Welcome to our site! - %p= puts "HAML MODE" - .right.column - = render :partial => "sidebar" - -.container - .row - .span8 - %h1.title= @page_title -%p.title= @page_title -%p - / - The same as HTML comment - Hello multiline comment - - -# haml comment - This wont be displayed - nor will this - Date/Time: - - now = DateTime.now - %strong= now - - if now > DateTime.parse("December 31, 2006") - = "Happy new " + "year!" - -%title - = @title - \= @title - <h1>Title</h1> - <h1 title="HELLO"> - Title - </h1> - </textarea></form> - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - lineNumbers: true, - mode: "text/x-haml" - }); - </script> - - <p><strong>MIME types defined:</strong> <code>text/x-haml</code>.</p> - - <p><strong>Parsing/Highlighting Tests:</strong> <a href="../../test/index.html#haml_*">normal</a>, <a href="../../test/index.html#verbose,haml_*">verbose</a>.</p> - - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/haml/test.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/haml/test.js deleted file mode 100644 index 508458a..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/haml/test.js +++ /dev/null @@ -1,97 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function() { - var mode = CodeMirror.getMode({tabSize: 4, indentUnit: 2}, "haml"); - function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); } - - // Requires at least one media query - MT("elementName", - "[tag %h1] Hey There"); - - MT("oneElementPerLine", - "[tag %h1] Hey There %h2"); - - MT("idSelector", - "[tag %h1][attribute #test] Hey There"); - - MT("classSelector", - "[tag %h1][attribute .hello] Hey There"); - - MT("docType", - "[tag !!! XML]"); - - MT("comment", - "[comment / Hello WORLD]"); - - MT("notComment", - "[tag %h1] This is not a / comment "); - - MT("attributes", - "[tag %a]([variable title][operator =][string \"test\"]){[atom :title] [operator =>] [string \"test\"]}"); - - MT("htmlCode", - "[tag&bracket <][tag h1][tag&bracket >]Title[tag&bracket </][tag h1][tag&bracket >]"); - - MT("rubyBlock", - "[operator =][variable-2 @item]"); - - MT("selectorRubyBlock", - "[tag %a.selector=] [variable-2 @item]"); - - MT("nestedRubyBlock", - "[tag %a]", - " [operator =][variable puts] [string \"test\"]"); - - MT("multilinePlaintext", - "[tag %p]", - " Hello,", - " World"); - - MT("multilineRuby", - "[tag %p]", - " [comment -# this is a comment]", - " [comment and this is a comment too]", - " Date/Time", - " [operator -] [variable now] [operator =] [tag DateTime][operator .][property now]", - " [tag %strong=] [variable now]", - " [operator -] [keyword if] [variable now] [operator >] [tag DateTime][operator .][property parse]([string \"December 31, 2006\"])", - " [operator =][string \"Happy\"]", - " [operator =][string \"Belated\"]", - " [operator =][string \"Birthday\"]"); - - MT("multilineComment", - "[comment /]", - " [comment Multiline]", - " [comment Comment]"); - - MT("hamlComment", - "[comment -# this is a comment]"); - - MT("multilineHamlComment", - "[comment -# this is a comment]", - " [comment and this is a comment too]"); - - MT("multilineHTMLComment", - "[comment <!--]", - " [comment what a comment]", - " [comment -->]"); - - MT("hamlAfterRubyTag", - "[attribute .block]", - " [tag %strong=] [variable now]", - " [attribute .test]", - " [operator =][variable now]", - " [attribute .right]"); - - MT("stretchedRuby", - "[operator =] [variable puts] [string \"Hello\"],", - " [string \"World\"]"); - - MT("interpolationInHashAttribute", - //"[tag %div]{[atom :id] [operator =>] [string \"#{][variable test][string }_#{][variable ting][string }\"]} test"); - "[tag %div]{[atom :id] [operator =>] [string \"#{][variable test][string }_#{][variable ting][string }\"]} test"); - - MT("interpolationInHTMLAttribute", - "[tag %div]([variable title][operator =][string \"#{][variable test][string }_#{][variable ting]()[string }\"]) Test"); -})(); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/handlebars/handlebars.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/handlebars/handlebars.js deleted file mode 100644 index 2174e53..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/handlebars/handlebars.js +++ /dev/null @@ -1,62 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror"), require("../../addon/mode/simple"), require("../../addon/mode/multiplex")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror", "../../addon/mode/simple", "../../addon/mode/multiplex"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { - "use strict"; - - CodeMirror.defineSimpleMode("handlebars-tags", { - start: [ - { regex: /\{\{!--/, push: "dash_comment", token: "comment" }, - { regex: /\{\{!/, push: "comment", token: "comment" }, - { regex: /\{\{/, push: "handlebars", token: "tag" } - ], - handlebars: [ - { regex: /\}\}/, pop: true, token: "tag" }, - - // Double and single quotes - { regex: /"(?:[^\\"]|\\.)*"?/, token: "string" }, - { regex: /'(?:[^\\']|\\.)*'?/, token: "string" }, - - // Handlebars keywords - { regex: />|[#\/]([A-Za-z_]\w*)/, token: "keyword" }, - { regex: /(?:else|this)\b/, token: "keyword" }, - - // Numeral - { regex: /\d+/i, token: "number" }, - - // Atoms like = and . - { regex: /=|~|@|true|false/, token: "atom" }, - - // Paths - { regex: /(?:\.\.\/)*(?:[A-Za-z_][\w\.]*)+/, token: "variable-2" } - ], - dash_comment: [ - { regex: /--\}\}/, pop: true, token: "comment" }, - - // Commented code - { regex: /./, token: "comment"} - ], - comment: [ - { regex: /\}\}/, pop: true, token: "comment" }, - { regex: /./, token: "comment" } - ] - }); - - CodeMirror.defineMode("handlebars", function(config, parserConfig) { - var handlebars = CodeMirror.getMode(config, "handlebars-tags"); - if (!parserConfig || !parserConfig.base) return handlebars; - return CodeMirror.multiplexingMode( - CodeMirror.getMode(config, parserConfig.base), - {open: "{{", close: "}}", mode: handlebars, parseDelimiters: true} - ); - }); - - CodeMirror.defineMIME("text/x-handlebars-template", "handlebars"); -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/handlebars/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/handlebars/index.html deleted file mode 100644 index b1bfad1..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/handlebars/index.html +++ /dev/null @@ -1,79 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Handlebars mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../../addon/mode/simple.js"></script> -<script src="../../addon/mode/multiplex.js"></script> -<script src="../xml/xml.js"></script> -<script src="handlebars.js"></script> -<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">HTML mixed</a> - </ul> -</div> - -<article> -<h2>Handlebars</h2> -<form><textarea id="code" name="code"> -{{> breadcrumbs}} - -{{!-- - You can use the t function to get - content translated to the current locale, es: - {{t 'article_list'}} ---}} - -<h1>{{t 'article_list'}}</h1> - -{{! one line comment }} - -{{#each articles}} - {{~title}} - <p>{{excerpt body size=120 ellipsis=true}}</p> - - {{#with author}} - written by {{first_name}} {{last_name}} - from category: {{../category.title}} - {{#if @../last}}foobar!{{/if}} - {{/with~}} - - {{#if promoted.latest}}Read this one! {{else}} This is ok! {{/if}} - - {{#if @last}}<hr>{{/if}} -{{/each}} - -{{#form new_comment}} - <input type="text" name="body"> -{{/form}} - -</textarea></form> - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - lineNumbers: true, - matchBrackets: true, - mode: {name: "handlebars", base: "text/html"} - }); - </script> - - <p>Handlebars syntax highlighting for CodeMirror.</p> - - <p><strong>MIME types defined:</strong> <code>text/x-handlebars-template</code></p> - - <p>Supported options: <code>base</code> to set the mode to - wrap. For example, use</p> - <pre>mode: {name: "handlebars", base: "text/html"}</pre> - <p>to highlight an HTML template.</p> -</article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/haskell-literate/haskell-literate.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/haskell-literate/haskell-literate.js deleted file mode 100644 index 906415b..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/haskell-literate/haskell-literate.js +++ /dev/null @@ -1,43 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function (mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror"), require("../haskell/haskell")) - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror", "../haskell/haskell"], mod) - else // Plain browser env - mod(CodeMirror) -})(function (CodeMirror) { - "use strict" - - CodeMirror.defineMode("haskell-literate", function (config, parserConfig) { - var baseMode = CodeMirror.getMode(config, (parserConfig && parserConfig.base) || "haskell") - - return { - startState: function () { - return { - inCode: false, - baseState: CodeMirror.startState(baseMode) - } - }, - token: function (stream, state) { - if (stream.sol()) { - if (state.inCode = stream.eat(">")) - return "meta" - } - if (state.inCode) { - return baseMode.token(stream, state.baseState) - } else { - stream.skipToEnd() - return "comment" - } - }, - innerMode: function (state) { - return state.inCode ? {state: state.baseState, mode: baseMode} : null - } - } - }, "haskell") - - CodeMirror.defineMIME("text/x-literate-haskell", "haskell-literate") -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/haskell-literate/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/haskell-literate/index.html deleted file mode 100644 index 8c9bc60..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/haskell-literate/index.html +++ /dev/null @@ -1,282 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Haskell-literate mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="haskell-literate.js"></script> -<script src="../haskell/haskell.js"></script> -<style>.CodeMirror { - border-top : 1px solid #DDDDDD; - border-bottom : 1px solid #DDDDDD; -}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo - src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Haskell-literate</a> - </ul> -</div> - -<article> - <h2>Haskell literate mode</h2> - <form> - <textarea id="code" name="code"> -> {-# LANGUAGE OverloadedStrings #-} -> {-# OPTIONS_GHC -fno-warn-unused-do-bind #-} -> import Control.Applicative ((<$>), (<*>)) -> import Data.Maybe (isJust) - -> import Data.Text (Text) -> import Text.Blaze ((!)) -> import qualified Data.Text as T -> import qualified Happstack.Server as Happstack -> import qualified Text.Blaze.Html5 as H -> import qualified Text.Blaze.Html5.Attributes as A - -> import Text.Digestive -> import Text.Digestive.Blaze.Html5 -> import Text.Digestive.Happstack -> import Text.Digestive.Util - -Simple forms and validation ---------------------------- - -Let's start by creating a very simple datatype to represent a user: - -> data User = User -> { userName :: Text -> , userMail :: Text -> } deriving (Show) - -And dive in immediately to create a `Form` for a user. The `Form v m a` type -has three parameters: - -- `v`: the type for messages and errors (usually a `String`-like type, `Text` in - this case); -- `m`: the monad we are operating in, not specified here; -- `a`: the return type of the `Form`, in this case, this is obviously `User`. - -> userForm :: Monad m => Form Text m User - -We create forms by using the `Applicative` interface. A few form types are -provided in the `Text.Digestive.Form` module, such as `text`, `string`, -`bool`... - -In the `digestive-functors` library, the developer is required to label each -field using the `.:` operator. This might look like a bit of a burden, but it -allows you to do some really useful stuff, like separating the `Form` from the -actual HTML layout. - -> userForm = User -> <$> "name" .: text Nothing -> <*> "mail" .: check "Not a valid email address" checkEmail (text Nothing) - -The `check` function enables you to validate the result of a form. For example, -we can validate the email address with a really naive `checkEmail` function. - -> checkEmail :: Text -> Bool -> checkEmail = isJust . T.find (== '@') - -More validation ---------------- - -For our example, we also want descriptions of Haskell libraries, and in order to -do that, we need package versions... - -> type Version = [Int] - -We want to let the user input a version number such as `0.1.0.0`. This means we -need to validate if the input `Text` is of this form, and then we need to parse -it to a `Version` type. Fortunately, we can do this in a single function: -`validate` allows conversion between values, which can optionally fail. - -`readMaybe :: Read a => String -> Maybe a` is a utility function imported from -`Text.Digestive.Util`. - -> validateVersion :: Text -> Result Text Version -> validateVersion = maybe (Error "Cannot parse version") Success . -> mapM (readMaybe . T.unpack) . T.split (== '.') - -A quick test in GHCi: - - ghci> validateVersion (T.pack "0.3.2.1") - Success [0,3,2,1] - ghci> validateVersion (T.pack "0.oops") - Error "Cannot parse version" - -It works! This means we can now easily add a `Package` type and a `Form` for it: - -> data Category = Web | Text | Math -> deriving (Bounded, Enum, Eq, Show) - -> data Package = Package Text Version Category -> deriving (Show) - -> packageForm :: Monad m => Form Text m Package -> packageForm = Package -> <$> "name" .: text Nothing -> <*> "version" .: validate validateVersion (text (Just "0.0.0.1")) -> <*> "category" .: choice categories Nothing -> where -> categories = [(x, T.pack (show x)) | x <- [minBound .. maxBound]] - -Composing forms ---------------- - -A release has an author and a package. Let's use this to illustrate the -composability of the digestive-functors library: we can reuse the forms we have -written earlier on. - -> data Release = Release User Package -> deriving (Show) - -> releaseForm :: Monad m => Form Text m Release -> releaseForm = Release -> <$> "author" .: userForm -> <*> "package" .: packageForm - -Views ------ - -As mentioned before, one of the advantages of using digestive-functors is -separation of forms and their actual HTML layout. In order to do this, we have -another type, `View`. - -We can get a `View` from a `Form` by supplying input. A `View` contains more -information than a `Form`, it has: - -- the original form; -- the input given by the user; -- any errors that have occurred. - -It is this view that we convert to HTML. For this tutorial, we use the -[blaze-html] library, and some helpers from the `digestive-functors-blaze` -library. - -[blaze-html]: http://jaspervdj.be/blaze/ - -Let's write a view for the `User` form. As you can see, we here refer to the -different fields in the `userForm`. The `errorList` will generate a list of -errors for the `"mail"` field. - -> userView :: View H.Html -> H.Html -> userView view = do -> label "name" view "Name: " -> inputText "name" view -> H.br -> -> errorList "mail" view -> label "mail" view "Email address: " -> inputText "mail" view -> H.br - -Like forms, views are also composable: let's illustrate that by adding a view -for the `releaseForm`, in which we reuse `userView`. In order to do this, we -take only the parts relevant to the author from the view by using `subView`. We -can then pass the resulting view to our own `userView`. -We have no special view code for `Package`, so we can just add that to -`releaseView` as well. `childErrorList` will generate a list of errors for each -child of the specified form. In this case, this means a list of errors from -`"package.name"` and `"package.version"`. Note how we use `foo.bar` to refer to -nested forms. - -> releaseView :: View H.Html -> H.Html -> releaseView view = do -> H.h2 "Author" -> userView $ subView "author" view -> -> H.h2 "Package" -> childErrorList "package" view -> -> label "package.name" view "Name: " -> inputText "package.name" view -> H.br -> -> label "package.version" view "Version: " -> inputText "package.version" view -> H.br -> -> label "package.category" view "Category: " -> inputSelect "package.category" view -> H.br - -The attentive reader might have wondered what the type parameter for `View` is: -it is the `String`-like type used for e.g. error messages. -But wait! We have - releaseForm :: Monad m => Form Text m Release - releaseView :: View H.Html -> H.Html -... doesn't this mean that we need a `View Text` rather than a `View Html`? The -answer is yes -- but having `View Html` allows us to write these views more -easily with the `digestive-functors-blaze` library. Fortunately, we will be able -to fix this using the `Functor` instance of `View`. - fmap :: Monad m => (v -> w) -> View v -> View w -A backend ---------- -To finish this tutorial, we need to be able to actually run this code. We need -an HTTP server for that, and we use [Happstack] for this tutorial. The -`digestive-functors-happstack` library gives about everything we need for this. -[Happstack]: http://happstack.com/ - -> site :: Happstack.ServerPart Happstack.Response -> site = do -> Happstack.decodeBody $ Happstack.defaultBodyPolicy "/tmp" 4096 4096 4096 -> r <- runForm "test" releaseForm -> case r of -> (view, Nothing) -> do -> let view' = fmap H.toHtml view -> Happstack.ok $ Happstack.toResponse $ -> template $ -> form view' "/" $ do -> releaseView view' -> H.br -> inputSubmit "Submit" -> (_, Just release) -> Happstack.ok $ Happstack.toResponse $ -> template $ do -> css -> H.h1 "Release received" -> H.p $ H.toHtml $ show release -> -> main :: IO () -> main = Happstack.simpleHTTP Happstack.nullConf site - -Utilities ---------- - -> template :: H.Html -> H.Html -> template body = H.docTypeHtml $ do -> H.head $ do -> H.title "digestive-functors tutorial" -> css -> H.body body -> css :: H.Html -> css = H.style ! A.type_ "text/css" $ do -> "label {width: 130px; float: left; clear: both}" -> "ul.digestive-functors-error-list {" -> " color: red;" -> " list-style-type: none;" -> " padding-left: 0px;" -> "}" - </textarea> - </form> - - <p><strong>MIME types - defined:</strong> <code>text/x-literate-haskell</code>.</p> - - <p>Parser configuration parameters recognized: <code>base</code> to - set the base mode (defaults to <code>"haskell"</code>).</p> - - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), {mode: "haskell-literate"}); - </script> - -</article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/haskell/haskell.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/haskell/haskell.js deleted file mode 100644 index fe0bab6..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/haskell/haskell.js +++ /dev/null @@ -1,267 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("haskell", function(_config, modeConfig) { - - function switchState(source, setState, f) { - setState(f); - return f(source, setState); - } - - // These should all be Unicode extended, as per the Haskell 2010 report - var smallRE = /[a-z_]/; - var largeRE = /[A-Z]/; - var digitRE = /\d/; - var hexitRE = /[0-9A-Fa-f]/; - var octitRE = /[0-7]/; - var idRE = /[a-z_A-Z0-9'\xa1-\uffff]/; - var symbolRE = /[-!#$%&*+.\/<=>?@\\^|~:]/; - var specialRE = /[(),;[\]`{}]/; - var whiteCharRE = /[ \t\v\f]/; // newlines are handled in tokenizer - - function normal(source, setState) { - if (source.eatWhile(whiteCharRE)) { - return null; - } - - var ch = source.next(); - if (specialRE.test(ch)) { - if (ch == '{' && source.eat('-')) { - var t = "comment"; - if (source.eat('#')) { - t = "meta"; - } - return switchState(source, setState, ncomment(t, 1)); - } - return null; - } - - if (ch == '\'') { - if (source.eat('\\')) { - source.next(); // should handle other escapes here - } - else { - source.next(); - } - if (source.eat('\'')) { - return "string"; - } - return "error"; - } - - if (ch == '"') { - return switchState(source, setState, stringLiteral); - } - - if (largeRE.test(ch)) { - source.eatWhile(idRE); - if (source.eat('.')) { - return "qualifier"; - } - return "variable-2"; - } - - if (smallRE.test(ch)) { - source.eatWhile(idRE); - return "variable"; - } - - if (digitRE.test(ch)) { - if (ch == '0') { - if (source.eat(/[xX]/)) { - source.eatWhile(hexitRE); // should require at least 1 - return "integer"; - } - if (source.eat(/[oO]/)) { - source.eatWhile(octitRE); // should require at least 1 - return "number"; - } - } - source.eatWhile(digitRE); - var t = "number"; - if (source.match(/^\.\d+/)) { - t = "number"; - } - if (source.eat(/[eE]/)) { - t = "number"; - source.eat(/[-+]/); - source.eatWhile(digitRE); // should require at least 1 - } - return t; - } - - if (ch == "." && source.eat(".")) - return "keyword"; - - if (symbolRE.test(ch)) { - if (ch == '-' && source.eat(/-/)) { - source.eatWhile(/-/); - if (!source.eat(symbolRE)) { - source.skipToEnd(); - return "comment"; - } - } - var t = "variable"; - if (ch == ':') { - t = "variable-2"; - } - source.eatWhile(symbolRE); - return t; - } - - return "error"; - } - - function ncomment(type, nest) { - if (nest == 0) { - return normal; - } - return function(source, setState) { - var currNest = nest; - while (!source.eol()) { - var ch = source.next(); - if (ch == '{' && source.eat('-')) { - ++currNest; - } - else if (ch == '-' && source.eat('}')) { - --currNest; - if (currNest == 0) { - setState(normal); - return type; - } - } - } - setState(ncomment(type, currNest)); - return type; - }; - } - - function stringLiteral(source, setState) { - while (!source.eol()) { - var ch = source.next(); - if (ch == '"') { - setState(normal); - return "string"; - } - if (ch == '\\') { - if (source.eol() || source.eat(whiteCharRE)) { - setState(stringGap); - return "string"; - } - if (source.eat('&')) { - } - else { - source.next(); // should handle other escapes here - } - } - } - setState(normal); - return "error"; - } - - function stringGap(source, setState) { - if (source.eat('\\')) { - return switchState(source, setState, stringLiteral); - } - source.next(); - setState(normal); - return "error"; - } - - - var wellKnownWords = (function() { - var wkw = {}; - function setType(t) { - return function () { - for (var i = 0; i < arguments.length; i++) - wkw[arguments[i]] = t; - }; - } - - setType("keyword")( - "case", "class", "data", "default", "deriving", "do", "else", "foreign", - "if", "import", "in", "infix", "infixl", "infixr", "instance", "let", - "module", "newtype", "of", "then", "type", "where", "_"); - - setType("keyword")( - "\.\.", ":", "::", "=", "\\", "\"", "<-", "->", "@", "~", "=>"); - - setType("builtin")( - "!!", "$!", "$", "&&", "+", "++", "-", ".", "/", "/=", "<", "<=", "=<<", - "==", ">", ">=", ">>", ">>=", "^", "^^", "||", "*", "**"); - - setType("builtin")( - "Bool", "Bounded", "Char", "Double", "EQ", "Either", "Enum", "Eq", - "False", "FilePath", "Float", "Floating", "Fractional", "Functor", "GT", - "IO", "IOError", "Int", "Integer", "Integral", "Just", "LT", "Left", - "Maybe", "Monad", "Nothing", "Num", "Ord", "Ordering", "Rational", "Read", - "ReadS", "Real", "RealFloat", "RealFrac", "Right", "Show", "ShowS", - "String", "True"); - - setType("builtin")( - "abs", "acos", "acosh", "all", "and", "any", "appendFile", "asTypeOf", - "asin", "asinh", "atan", "atan2", "atanh", "break", "catch", "ceiling", - "compare", "concat", "concatMap", "const", "cos", "cosh", "curry", - "cycle", "decodeFloat", "div", "divMod", "drop", "dropWhile", "either", - "elem", "encodeFloat", "enumFrom", "enumFromThen", "enumFromThenTo", - "enumFromTo", "error", "even", "exp", "exponent", "fail", "filter", - "flip", "floatDigits", "floatRadix", "floatRange", "floor", "fmap", - "foldl", "foldl1", "foldr", "foldr1", "fromEnum", "fromInteger", - "fromIntegral", "fromRational", "fst", "gcd", "getChar", "getContents", - "getLine", "head", "id", "init", "interact", "ioError", "isDenormalized", - "isIEEE", "isInfinite", "isNaN", "isNegativeZero", "iterate", "last", - "lcm", "length", "lex", "lines", "log", "logBase", "lookup", "map", - "mapM", "mapM_", "max", "maxBound", "maximum", "maybe", "min", "minBound", - "minimum", "mod", "negate", "not", "notElem", "null", "odd", "or", - "otherwise", "pi", "pred", "print", "product", "properFraction", - "putChar", "putStr", "putStrLn", "quot", "quotRem", "read", "readFile", - "readIO", "readList", "readLn", "readParen", "reads", "readsPrec", - "realToFrac", "recip", "rem", "repeat", "replicate", "return", "reverse", - "round", "scaleFloat", "scanl", "scanl1", "scanr", "scanr1", "seq", - "sequence", "sequence_", "show", "showChar", "showList", "showParen", - "showString", "shows", "showsPrec", "significand", "signum", "sin", - "sinh", "snd", "span", "splitAt", "sqrt", "subtract", "succ", "sum", - "tail", "take", "takeWhile", "tan", "tanh", "toEnum", "toInteger", - "toRational", "truncate", "uncurry", "undefined", "unlines", "until", - "unwords", "unzip", "unzip3", "userError", "words", "writeFile", "zip", - "zip3", "zipWith", "zipWith3"); - - var override = modeConfig.overrideKeywords; - if (override) for (var word in override) if (override.hasOwnProperty(word)) - wkw[word] = override[word]; - - return wkw; - })(); - - - - return { - startState: function () { return { f: normal }; }, - copyState: function (s) { return { f: s.f }; }, - - token: function(stream, state) { - var t = state.f(stream, function(s) { state.f = s; }); - var w = stream.current(); - return wellKnownWords.hasOwnProperty(w) ? wellKnownWords[w] : t; - }, - - blockCommentStart: "{-", - blockCommentEnd: "-}", - lineComment: "--" - }; - -}); - -CodeMirror.defineMIME("text/x-haskell", "haskell"); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/haskell/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/haskell/index.html deleted file mode 100644 index 42240b0..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/haskell/index.html +++ /dev/null @@ -1,73 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Haskell mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<link rel="stylesheet" href="../../theme/elegant.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../../addon/edit/matchbrackets.js"></script> -<script src="haskell.js"></script> -<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Haskell</a> - </ul> -</div> - -<article> -<h2>Haskell mode</h2> -<form><textarea id="code" name="code"> -module UniquePerms ( - uniquePerms - ) -where - --- | Find all unique permutations of a list where there might be duplicates. -uniquePerms :: (Eq a) => [a] -> [[a]] -uniquePerms = permBag . makeBag - --- | An unordered collection where duplicate values are allowed, --- but represented with a single value and a count. -type Bag a = [(a, Int)] - -makeBag :: (Eq a) => [a] -> Bag a -makeBag [] = [] -makeBag (a:as) = mix a $ makeBag as - where - mix a [] = [(a,1)] - mix a (bn@(b,n):bs) | a == b = (b,n+1):bs - | otherwise = bn : mix a bs - -permBag :: Bag a -> [[a]] -permBag [] = [[]] -permBag bs = concatMap (\(f,cs) -> map (f:) $ permBag cs) . oneOfEach $ bs - where - oneOfEach [] = [] - oneOfEach (an@(a,n):bs) = - let bs' = if n == 1 then bs else (a,n-1):bs - in (a,bs') : mapSnd (an:) (oneOfEach bs) - - apSnd f (a,b) = (a, f b) - mapSnd = map . apSnd -</textarea></form> - - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - lineNumbers: true, - matchBrackets: true, - theme: "elegant" - }); - </script> - - <p><strong>MIME types defined:</strong> <code>text/x-haskell</code>.</p> - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/haxe/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/haxe/index.html deleted file mode 100644 index d415b5e..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/haxe/index.html +++ /dev/null @@ -1,124 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Haxe mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="haxe.js"></script> -<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Haxe</a> - </ul> -</div> - -<article> -<h2>Haxe mode</h2> - - -<div><p><textarea id="code-haxe" name="code"> -import one.two.Three; - -@attr("test") -class Foo<T> extends Three -{ - public function new() - { - noFoo = 12; - } - - public static inline function doFoo(obj:{k:Int, l:Float}):Int - { - for(i in 0...10) - { - obj.k++; - trace(i); - var var1 = new Array(); - if(var1.length > 1) - throw "Error"; - } - // The following line should not be colored, the variable is scoped out - var1; - /* Multi line - * Comment test - */ - return obj.k; - } - private function bar():Void - { - #if flash - var t1:String = "1.21"; - #end - try { - doFoo({k:3, l:1.2}); - } - catch (e : String) { - trace(e); - } - var t2:Float = cast(3.2); - var t3:haxe.Timer = new haxe.Timer(); - var t4 = {k:Std.int(t2), l:Std.parseFloat(t1)}; - var t5 = ~/123+.*$/i; - doFoo(t4); - untyped t1 = 4; - bob = new Foo<Int> - } - public var okFoo(default, never):Float; - var noFoo(getFoo, null):Int; - function getFoo():Int { - return noFoo; - } - - public var three:Int; -} -enum Color -{ - red; - green; - blue; - grey( v : Int ); - rgb (r:Int,g:Int,b:Int); -} -</textarea></p> - -<p>Hxml mode:</p> - -<p><textarea id="code-hxml"> --cp test --js path/to/file.js -#-remap nme:flash ---next --D source-map-content --cmd 'test' --lib lime -</textarea></p> -</div> - - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code-haxe"), { - mode: "haxe", - lineNumbers: true, - indentUnit: 4, - indentWithTabs: true - }); - - editor = CodeMirror.fromTextArea(document.getElementById("code-hxml"), { - mode: "hxml", - lineNumbers: true, - indentUnit: 4, - indentWithTabs: true - }); - </script> - - <p><strong>MIME types defined:</strong> <code>text/x-haxe, text/x-hxml</code>.</p> - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/htmlembedded/htmlembedded.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/htmlembedded/htmlembedded.js deleted file mode 100644 index 464dc57..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/htmlembedded/htmlembedded.js +++ /dev/null @@ -1,28 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed"), - require("../../addon/mode/multiplex")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror", "../htmlmixed/htmlmixed", - "../../addon/mode/multiplex"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { - "use strict"; - - CodeMirror.defineMode("htmlembedded", function(config, parserConfig) { - return CodeMirror.multiplexingMode(CodeMirror.getMode(config, "htmlmixed"), { - open: parserConfig.open || parserConfig.scriptStartRegex || "<%", - close: parserConfig.close || parserConfig.scriptEndRegex || "%>", - mode: CodeMirror.getMode(config, parserConfig.scriptingModeSpec) - }); - }, "htmlmixed"); - - CodeMirror.defineMIME("application/x-ejs", {name: "htmlembedded", scriptingModeSpec:"javascript"}); - CodeMirror.defineMIME("application/x-aspx", {name: "htmlembedded", scriptingModeSpec:"text/x-csharp"}); - CodeMirror.defineMIME("application/x-jsp", {name: "htmlembedded", scriptingModeSpec:"text/x-java"}); - CodeMirror.defineMIME("application/x-erb", {name: "htmlembedded", scriptingModeSpec:"ruby"}); -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/htmlembedded/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/htmlembedded/index.html deleted file mode 100644 index 9ed33cf..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/htmlembedded/index.html +++ /dev/null @@ -1,60 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Html Embedded Scripts mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../xml/xml.js"></script> -<script src="../javascript/javascript.js"></script> -<script src="../css/css.js"></script> -<script src="../htmlmixed/htmlmixed.js"></script> -<script src="../../addon/mode/multiplex.js"></script> -<script src="htmlembedded.js"></script> -<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Html Embedded Scripts</a> - </ul> -</div> - -<article> -<h2>Html Embedded Scripts mode</h2> -<form><textarea id="code" name="code"> -<% -function hello(who) { - return "Hello " + who; -} -%> -This is an example of EJS (embedded javascript) -<p>The program says <%= hello("world") %>.</p> -<script> - alert("And here is some normal JS code"); // also colored -</script> -</textarea></form> - - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - lineNumbers: true, - mode: "application/x-ejs", - indentUnit: 4, - indentWithTabs: true - }); - </script> - - <p>Mode for html embedded scripts like JSP and ASP.NET. Depends on multiplex and HtmlMixed which in turn depends on - JavaScript, CSS and XML.<br />Other dependencies include those of the scripting language chosen.</p> - - <p><strong>MIME types defined:</strong> <code>application/x-aspx</code> (ASP.NET), - <code>application/x-ejs</code> (Embedded Javascript), <code>application/x-jsp</code> (JavaServer Pages) - and <code>application/x-erb</code></p> - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/htmlmixed/htmlmixed.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/htmlmixed/htmlmixed.js deleted file mode 100644 index eb21fcc..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/htmlmixed/htmlmixed.js +++ /dev/null @@ -1,152 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror"), require("../xml/xml"), require("../javascript/javascript"), require("../css/css")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror", "../xml/xml", "../javascript/javascript", "../css/css"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { - "use strict"; - - var defaultTags = { - script: [ - ["lang", /(javascript|babel)/i, "javascript"], - ["type", /^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^$/i, "javascript"], - ["type", /./, "text/plain"], - [null, null, "javascript"] - ], - style: [ - ["lang", /^css$/i, "css"], - ["type", /^(text\/)?(x-)?(stylesheet|css)$/i, "css"], - ["type", /./, "text/plain"], - [null, null, "css"] - ] - }; - - function maybeBackup(stream, pat, style) { - var cur = stream.current(), close = cur.search(pat); - if (close > -1) { - stream.backUp(cur.length - close); - } else if (cur.match(/<\/?$/)) { - stream.backUp(cur.length); - if (!stream.match(pat, false)) stream.match(cur); - } - return style; - } - - var attrRegexpCache = {}; - function getAttrRegexp(attr) { - var regexp = attrRegexpCache[attr]; - if (regexp) return regexp; - return attrRegexpCache[attr] = new RegExp("\\s+" + attr + "\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"); - } - - function getAttrValue(text, attr) { - var match = text.match(getAttrRegexp(attr)) - return match ? /^\s*(.*?)\s*$/.exec(match[2])[1] : "" - } - - function getTagRegexp(tagName, anchored) { - return new RegExp((anchored ? "^" : "") + "<\/\s*" + tagName + "\s*>", "i"); - } - - function addTags(from, to) { - for (var tag in from) { - var dest = to[tag] || (to[tag] = []); - var source = from[tag]; - for (var i = source.length - 1; i >= 0; i--) - dest.unshift(source[i]) - } - } - - function findMatchingMode(tagInfo, tagText) { - for (var i = 0; i < tagInfo.length; i++) { - var spec = tagInfo[i]; - if (!spec[0] || spec[1].test(getAttrValue(tagText, spec[0]))) return spec[2]; - } - } - - CodeMirror.defineMode("htmlmixed", function (config, parserConfig) { - var htmlMode = CodeMirror.getMode(config, { - name: "xml", - htmlMode: true, - multilineTagIndentFactor: parserConfig.multilineTagIndentFactor, - multilineTagIndentPastTag: parserConfig.multilineTagIndentPastTag - }); - - var tags = {}; - var configTags = parserConfig && parserConfig.tags, configScript = parserConfig && parserConfig.scriptTypes; - addTags(defaultTags, tags); - if (configTags) addTags(configTags, tags); - if (configScript) for (var i = configScript.length - 1; i >= 0; i--) - tags.script.unshift(["type", configScript[i].matches, configScript[i].mode]) - - function html(stream, state) { - var style = htmlMode.token(stream, state.htmlState), tag = /\btag\b/.test(style), tagName - if (tag && !/[<>\s\/]/.test(stream.current()) && - (tagName = state.htmlState.tagName && state.htmlState.tagName.toLowerCase()) && - tags.hasOwnProperty(tagName)) { - state.inTag = tagName + " " - } else if (state.inTag && tag && />$/.test(stream.current())) { - var inTag = /^([\S]+) (.*)/.exec(state.inTag) - state.inTag = null - var modeSpec = stream.current() == ">" && findMatchingMode(tags[inTag[1]], inTag[2]) - var mode = CodeMirror.getMode(config, modeSpec) - var endTagA = getTagRegexp(inTag[1], true), endTag = getTagRegexp(inTag[1], false); - state.token = function (stream, state) { - if (stream.match(endTagA, false)) { - state.token = html; - state.localState = state.localMode = null; - return null; - } - return maybeBackup(stream, endTag, state.localMode.token(stream, state.localState)); - }; - state.localMode = mode; - state.localState = CodeMirror.startState(mode, htmlMode.indent(state.htmlState, "")); - } else if (state.inTag) { - state.inTag += stream.current() - if (stream.eol()) state.inTag += " " - } - return style; - }; - - return { - startState: function () { - var state = CodeMirror.startState(htmlMode); - return {token: html, inTag: null, localMode: null, localState: null, htmlState: state}; - }, - - copyState: function (state) { - var local; - if (state.localState) { - local = CodeMirror.copyState(state.localMode, state.localState); - } - return {token: state.token, inTag: state.inTag, - localMode: state.localMode, localState: local, - htmlState: CodeMirror.copyState(htmlMode, state.htmlState)}; - }, - - token: function (stream, state) { - return state.token(stream, state); - }, - - indent: function (state, textAfter) { - if (!state.localMode || /^\s*<\//.test(textAfter)) - return htmlMode.indent(state.htmlState, textAfter); - else if (state.localMode.indent) - return state.localMode.indent(state.localState, textAfter); - else - return CodeMirror.Pass; - }, - - innerMode: function (state) { - return {state: state.localState || state.htmlState, mode: state.localMode || htmlMode}; - } - }; - }, "xml", "javascript", "css"); - - CodeMirror.defineMIME("text/html", "htmlmixed"); -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/htmlmixed/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/htmlmixed/index.html deleted file mode 100644 index f94df9e..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/htmlmixed/index.html +++ /dev/null @@ -1,89 +0,0 @@ -<!doctype html> - -<title>CodeMirror: HTML mixed mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../../addon/selection/selection-pointer.js"></script> -<script src="../xml/xml.js"></script> -<script src="../javascript/javascript.js"></script> -<script src="../css/css.js"></script> -<script src="../vbscript/vbscript.js"></script> -<script src="htmlmixed.js"></script> -<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">HTML mixed</a> - </ul> -</div> - -<article> -<h2>HTML mixed mode</h2> -<form><textarea id="code" name="code"> -<html style="color: green"> - <!-- this is a comment --> - <head> - <title>Mixed HTML Example</title> - <style type="text/css"> - h1 {font-family: comic sans; color: #f0f;} - div {background: yellow !important;} - body { - max-width: 50em; - margin: 1em 2em 1em 5em; - } - </style> - </head> - <body> - <h1>Mixed HTML Example</h1> - <script> - function jsFunc(arg1, arg2) { - if (arg1 && arg2) document.body.innerHTML = "achoo"; - } - </script> - </body> -</html> -</textarea></form> - <script> - // Define an extended mixed-mode that understands vbscript and - // leaves mustache/handlebars embedded templates in html mode - var mixedMode = { - name: "htmlmixed", - scriptTypes: [{matches: /\/x-handlebars-template|\/x-mustache/i, - mode: null}, - {matches: /(text|application)\/(x-)?vb(a|script)/i, - mode: "vbscript"}] - }; - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - mode: mixedMode, - selectionPointer: true - }); - </script> - - <p>The HTML mixed mode depends on the XML, JavaScript, and CSS modes.</p> - - <p>It takes an optional mode configuration - option, <code>scriptTypes</code>, which can be used to add custom - behavior for specific <code><script type="..."></code> tags. If - given, it should hold an array of <code>{matches, mode}</code> - objects, where <code>matches</code> is a string or regexp that - matches the script type, and <code>mode</code> is - either <code>null</code>, for script types that should stay in - HTML mode, or a <a href="../../doc/manual.html#option_mode">mode - spec</a> corresponding to the mode that should be used for the - script.</p> - - <p><strong>MIME types defined:</strong> <code>text/html</code> - (redefined, only takes effect if you load this parser after the - XML parser).</p> - - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/http/http.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/http/http.js deleted file mode 100644 index 9a3c5f9..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/http/http.js +++ /dev/null @@ -1,113 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("http", function() { - function failFirstLine(stream, state) { - stream.skipToEnd(); - state.cur = header; - return "error"; - } - - function start(stream, state) { - if (stream.match(/^HTTP\/\d\.\d/)) { - state.cur = responseStatusCode; - return "keyword"; - } else if (stream.match(/^[A-Z]+/) && /[ \t]/.test(stream.peek())) { - state.cur = requestPath; - return "keyword"; - } else { - return failFirstLine(stream, state); - } - } - - function responseStatusCode(stream, state) { - var code = stream.match(/^\d+/); - if (!code) return failFirstLine(stream, state); - - state.cur = responseStatusText; - var status = Number(code[0]); - if (status >= 100 && status < 200) { - return "positive informational"; - } else if (status >= 200 && status < 300) { - return "positive success"; - } else if (status >= 300 && status < 400) { - return "positive redirect"; - } else if (status >= 400 && status < 500) { - return "negative client-error"; - } else if (status >= 500 && status < 600) { - return "negative server-error"; - } else { - return "error"; - } - } - - function responseStatusText(stream, state) { - stream.skipToEnd(); - state.cur = header; - return null; - } - - function requestPath(stream, state) { - stream.eatWhile(/\S/); - state.cur = requestProtocol; - return "string-2"; - } - - function requestProtocol(stream, state) { - if (stream.match(/^HTTP\/\d\.\d$/)) { - state.cur = header; - return "keyword"; - } else { - return failFirstLine(stream, state); - } - } - - function header(stream) { - if (stream.sol() && !stream.eat(/[ \t]/)) { - if (stream.match(/^.*?:/)) { - return "atom"; - } else { - stream.skipToEnd(); - return "error"; - } - } else { - stream.skipToEnd(); - return "string"; - } - } - - function body(stream) { - stream.skipToEnd(); - return null; - } - - return { - token: function(stream, state) { - var cur = state.cur; - if (cur != header && cur != body && stream.eatSpace()) return null; - return cur(stream, state); - }, - - blankLine: function(state) { - state.cur = body; - }, - - startState: function() { - return {cur: start}; - } - }; -}); - -CodeMirror.defineMIME("message/http", "http"); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/http/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/http/index.html deleted file mode 100644 index 0b8d531..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/http/index.html +++ /dev/null @@ -1,45 +0,0 @@ -<!doctype html> - -<title>CodeMirror: HTTP mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="http.js"></script> -<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">HTTP</a> - </ul> -</div> - -<article> -<h2>HTTP mode</h2> - - -<div><textarea id="code" name="code"> -POST /somewhere HTTP/1.1 -Host: example.com -If-Modified-Since: Sat, 29 Oct 1994 19:43:31 GMT -Content-Type: application/x-www-form-urlencoded; - charset=utf-8 -User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.11 (KHTML, like Gecko) Ubuntu/12.04 Chromium/20.0.1132.47 Chrome/20.0.1132.47 Safari/536.11 - -This is the request body! -</textarea></div> - - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), {}); - </script> - - <p><strong>MIME types defined:</strong> <code>message/http</code>.</p> - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/idl/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/idl/index.html deleted file mode 100644 index 4c169e2..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/idl/index.html +++ /dev/null @@ -1,64 +0,0 @@ -<!doctype html> - -<title>CodeMirror: IDL mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="idl.js"></script> -<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">IDL</a> - </ul> -</div> - -<article> -<h2>IDL mode</h2> - - <div><textarea id="code" name="code"> -;; Example IDL code -FUNCTION mean_and_stddev,array - ;; This program reads in an array of numbers - ;; and returns a structure containing the - ;; average and standard deviation - - ave = 0.0 - count = 0.0 - - for i=0,N_ELEMENTS(array)-1 do begin - ave = ave + array[i] - count = count + 1 - endfor - - ave = ave/count - - std = stddev(array) - - return, {average:ave,std:std} - -END - - </textarea></div> - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - mode: {name: "idl", - version: 1, - singleLineStringErrors: false}, - lineNumbers: true, - indentUnit: 4, - matchBrackets: true - }); - </script> - - <p><strong>MIME types defined:</strong> <code>text/x-idl</code>.</p> -</article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/index.html deleted file mode 100644 index 3a2fe55..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/index.html +++ /dev/null @@ -1,164 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Language Modes</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../doc/docs.css"> - -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../doc/logo.png"></a> - - <ul> - <li><a href="../index.html">Home</a> - <li><a href="../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a class=active href="#">Language modes</a> - </ul> -</div> - -<article> - - <h2>Language modes</h2> - - <p>This is a list of every mode in the distribution. Each mode lives -in a subdirectory of the <code>mode/</code> directory, and typically -defines a single JavaScript file that implements the mode. Loading -such file will make the language available to CodeMirror, through -the <a href="../doc/manual.html#option_mode"><code>mode</code></a> -option.</p> - - <div style="-webkit-columns: 100px 2; -moz-columns: 100px 2; columns: 100px 2;"> - <ul style="margin-top: 0"> - <li><a href="apl/index.html">APL</a></li> - <li><a href="asn.1/index.html">ASN.1</a></li> - <li><a href="asterisk/index.html">Asterisk dialplan</a></li> - <li><a href="brainfuck/index.html">Brainfuck</a></li> - <li><a href="clike/index.html">C, C++, C#</a></li> - <li><a href="clike/index.html">Ceylon</a></li> - <li><a href="clojure/index.html">Clojure</a></li> - <li><a href="css/gss.html">Closure Stylesheets (GSS)</a></li> - <li><a href="cmake/index.html">CMake</a></li> - <li><a href="cobol/index.html">COBOL</a></li> - <li><a href="coffeescript/index.html">CoffeeScript</a></li> - <li><a href="commonlisp/index.html">Common Lisp</a></li> - <li><a href="crystal/index.html">Crystal</a></li> - <li><a href="css/index.html">CSS</a></li> - <li><a href="cypher/index.html">Cypher</a></li> - <li><a href="python/index.html">Cython</a></li> - <li><a href="d/index.html">D</a></li> - <li><a href="dart/index.html">Dart</a></li> - <li><a href="django/index.html">Django</a> (templating language)</li> - <li><a href="dockerfile/index.html">Dockerfile</a></li> - <li><a href="diff/index.html">diff</a></li> - <li><a href="dtd/index.html">DTD</a></li> - <li><a href="dylan/index.html">Dylan</a></li> - <li><a href="ebnf/index.html">EBNF</a></li> - <li><a href="ecl/index.html">ECL</a></li> - <li><a href="eiffel/index.html">Eiffel</a></li> - <li><a href="elm/index.html">Elm</a></li> - <li><a href="erlang/index.html">Erlang</a></li> - <li><a href="factor/index.html">Factor</a></li> - <li><a href="fcl/index.html">FCL</a></li> - <li><a href="forth/index.html">Forth</a></li> - <li><a href="fortran/index.html">Fortran</a></li> - <li><a href="mllike/index.html">F#</a></li> - <li><a href="gas/index.html">Gas</a> (AT&T-style assembly)</li> - <li><a href="gherkin/index.html">Gherkin</a></li> - <li><a href="go/index.html">Go</a></li> - <li><a href="groovy/index.html">Groovy</a></li> - <li><a href="haml/index.html">HAML</a></li> - <li><a href="handlebars/index.html">Handlebars</a></li> - <li><a href="haskell/index.html">Haskell</a> (<a href="haskell-literate/index.html">Literate</a>)</li> - <li><a href="haxe/index.html">Haxe</a></li> - <li><a href="htmlembedded/index.html">HTML embedded</a> (JSP, ASP.NET)</li> - <li><a href="htmlmixed/index.html">HTML mixed-mode</a></li> - <li><a href="http/index.html">HTTP</a></li> - <li><a href="idl/index.html">IDL</a></li> - <li><a href="clike/index.html">Java</a></li> - <li><a href="javascript/index.html">JavaScript</a> (<a href="jsx/index.html">JSX</a>)</li> - <li><a href="jinja2/index.html">Jinja2</a></li> - <li><a href="julia/index.html">Julia</a></li> - <li><a href="kotlin/index.html">Kotlin</a></li> - <li><a href="css/less.html">LESS</a></li> - <li><a href="livescript/index.html">LiveScript</a></li> - <li><a href="lua/index.html">Lua</a></li> - <li><a href="markdown/index.html">Markdown</a> (<a href="gfm/index.html">GitHub-flavour</a>)</li> - <li><a href="mathematica/index.html">Mathematica</a></li> - <li><a href="mbox/index.html">mbox</a></li> - <li><a href="mirc/index.html">mIRC</a></li> - <li><a href="modelica/index.html">Modelica</a></li> - <li><a href="mscgen/index.html">MscGen</a></li> - <li><a href="mumps/index.html">MUMPS</a></li> - <li><a href="nginx/index.html">Nginx</a></li> - <li><a href="nsis/index.html">NSIS</a></li> - <li><a href="ntriples/index.html">NTriples</a></li> - <li><a href="clike/index.html">Objective C</a></li> - <li><a href="mllike/index.html">OCaml</a></li> - <li><a href="octave/index.html">Octave</a> (MATLAB)</li> - <li><a href="oz/index.html">Oz</a></li> - <li><a href="pascal/index.html">Pascal</a></li> - <li><a href="pegjs/index.html">PEG.js</a></li> - <li><a href="perl/index.html">Perl</a></li> - <li><a href="asciiarmor/index.html">PGP (ASCII armor)</a></li> - <li><a href="php/index.html">PHP</a></li> - <li><a href="pig/index.html">Pig Latin</a></li> - <li><a href="powershell/index.html">PowerShell</a></li> - <li><a href="properties/index.html">Properties files</a></li> - <li><a href="protobuf/index.html">ProtoBuf</a></li> - <li><a href="pug/index.html">Pug</a></li> - <li><a href="puppet/index.html">Puppet</a></li> - <li><a href="python/index.html">Python</a></li> - <li><a href="q/index.html">Q</a></li> - <li><a href="r/index.html">R</a></li> - <li><a href="rpm/index.html">RPM</a></li> - <li><a href="rst/index.html">reStructuredText</a></li> - <li><a href="ruby/index.html">Ruby</a></li> - <li><a href="rust/index.html">Rust</a></li> - <li><a href="sas/index.html">SAS</a></li> - <li><a href="sass/index.html">Sass</a></li> - <li><a href="spreadsheet/index.html">Spreadsheet</a></li> - <li><a href="clike/scala.html">Scala</a></li> - <li><a href="scheme/index.html">Scheme</a></li> - <li><a href="css/scss.html">SCSS</a></li> - <li><a href="shell/index.html">Shell</a></li> - <li><a href="sieve/index.html">Sieve</a></li> - <li><a href="slim/index.html">Slim</a></li> - <li><a href="smalltalk/index.html">Smalltalk</a></li> - <li><a href="smarty/index.html">Smarty</a></li> - <li><a href="solr/index.html">Solr</a></li> - <li><a href="soy/index.html">Soy</a></li> - <li><a href="stylus/index.html">Stylus</a></li> - <li><a href="sql/index.html">SQL</a> (several dialects)</li> - <li><a href="sparql/index.html">SPARQL</a></li> - <li><a href="clike/index.html">Squirrel</a></li> - <li><a href="swift/index.html">Swift</a></li> - <li><a href="stex/index.html">sTeX, LaTeX</a></li> - <li><a href="tcl/index.html">Tcl</a></li> - <li><a href="textile/index.html">Textile</a></li> - <li><a href="tiddlywiki/index.html">Tiddlywiki</a></li> - <li><a href="tiki/index.html">Tiki wiki</a></li> - <li><a href="toml/index.html">TOML</a></li> - <li><a href="tornado/index.html">Tornado</a> (templating language)</li> - <li><a href="troff/index.html">troff</a> (for manpages)</li> - <li><a href="ttcn/index.html">TTCN</a></li> - <li><a href="ttcn-cfg/index.html">TTCN Configuration</a></li> - <li><a href="turtle/index.html">Turtle</a></li> - <li><a href="twig/index.html">Twig</a></li> - <li><a href="vb/index.html">VB.NET</a></li> - <li><a href="vbscript/index.html">VBScript</a></li> - <li><a href="velocity/index.html">Velocity</a></li> - <li><a href="verilog/index.html">Verilog/SystemVerilog</a></li> - <li><a href="vhdl/index.html">VHDL</a></li> - <li><a href="vue/index.html">Vue.js app</a></li> - <li><a href="webidl/index.html">Web IDL</a></li> - <li><a href="xml/index.html">XML/HTML</a></li> - <li><a href="xquery/index.html">XQuery</a></li> - <li><a href="yacas/index.html">Yacas</a></li> - <li><a href="yaml/index.html">YAML</a></li> - <li><a href="yaml-frontmatter/index.html">YAML frontmatter</a></li> - <li><a href="z80/index.html">Z80</a></li> - </ul> - </div> - -</article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/javascript/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/javascript/index.html deleted file mode 100644 index 592a133..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/javascript/index.html +++ /dev/null @@ -1,114 +0,0 @@ -<!doctype html> - -<title>CodeMirror: JavaScript mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../../addon/edit/matchbrackets.js"></script> -<script src="../../addon/comment/continuecomment.js"></script> -<script src="../../addon/comment/comment.js"></script> -<script src="javascript.js"></script> -<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">JavaScript</a> - </ul> -</div> - -<article> -<h2>JavaScript mode</h2> - - -<div><textarea id="code" name="code"> -// Demo code (the actual new parser character stream implementation) - -function StringStream(string) { - this.pos = 0; - this.string = string; -} - -StringStream.prototype = { - done: function() {return this.pos >= this.string.length;}, - peek: function() {return this.string.charAt(this.pos);}, - next: function() { - if (this.pos < this.string.length) - return this.string.charAt(this.pos++); - }, - eat: function(match) { - var ch = this.string.charAt(this.pos); - if (typeof match == "string") var ok = ch == match; - else var ok = ch && match.test ? match.test(ch) : match(ch); - if (ok) {this.pos++; return ch;} - }, - eatWhile: function(match) { - var start = this.pos; - while (this.eat(match)); - if (this.pos > start) return this.string.slice(start, this.pos); - }, - backUp: function(n) {this.pos -= n;}, - column: function() {return this.pos;}, - eatSpace: function() { - var start = this.pos; - while (/\s/.test(this.string.charAt(this.pos))) this.pos++; - return this.pos - start; - }, - match: function(pattern, consume, caseInsensitive) { - if (typeof pattern == "string") { - function cased(str) {return caseInsensitive ? str.toLowerCase() : str;} - if (cased(this.string).indexOf(cased(pattern), this.pos) == this.pos) { - if (consume !== false) this.pos += str.length; - return true; - } - } - else { - var match = this.string.slice(this.pos).match(pattern); - if (match && consume !== false) this.pos += match[0].length; - return match; - } - } -}; -</textarea></div> - - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - lineNumbers: true, - matchBrackets: true, - continueComments: "Enter", - extraKeys: {"Ctrl-Q": "toggleComment"} - }); - </script> - - <p> - JavaScript mode supports several configuration options: - <ul> - <li><code>json</code> which will set the mode to expect JSON - data rather than a JavaScript program.</li> - <li><code>jsonld</code> which will set the mode to expect - <a href="http://json-ld.org">JSON-LD</a> linked data rather - than a JavaScript program (<a href="json-ld.html">demo</a>).</li> - <li><code>typescript</code> which will activate additional - syntax highlighting and some other things for TypeScript code - (<a href="typescript.html">demo</a>).</li> - <li><code>statementIndent</code> which (given a number) will - determine the amount of indentation to use for statements - continued on a new line.</li> - <li><code>wordCharacters</code>, a regexp that indicates which - characters should be considered part of an identifier. - Defaults to <code>/[\w$]/</code>, which does not handle - non-ASCII identifiers. Can be set to something more elaborate - to improve Unicode support.</li> - </ul> - </p> - - <p><strong>MIME types defined:</strong> <code>text/javascript</code>, <code>application/json</code>, <code>application/ld+json</code>, <code>text/typescript</code>, <code>application/typescript</code>.</p> - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/javascript/json-ld.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/javascript/json-ld.html deleted file mode 100644 index 3a37f0b..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/javascript/json-ld.html +++ /dev/null @@ -1,72 +0,0 @@ -<!doctype html> - -<title>CodeMirror: JSON-LD mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../../addon/edit/matchbrackets.js"></script> -<script src="../../addon/comment/continuecomment.js"></script> -<script src="../../addon/comment/comment.js"></script> -<script src="javascript.js"></script> -<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id="nav"> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"/></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">JSON-LD</a> - </ul> -</div> - -<article> -<h2>JSON-LD mode</h2> - - -<div><textarea id="code" name="code"> -{ - "@context": { - "name": "http://schema.org/name", - "description": "http://schema.org/description", - "image": { - "@id": "http://schema.org/image", - "@type": "@id" - }, - "geo": "http://schema.org/geo", - "latitude": { - "@id": "http://schema.org/latitude", - "@type": "xsd:float" - }, - "longitude": { - "@id": "http://schema.org/longitude", - "@type": "xsd:float" - }, - "xsd": "http://www.w3.org/2001/XMLSchema#" - }, - "name": "The Empire State Building", - "description": "The Empire State Building is a 102-story landmark in New York City.", - "image": "http://www.civil.usherbrooke.ca/cours/gci215a/empire-state-building.jpg", - "geo": { - "latitude": "40.75", - "longitude": "73.98" - } -} -</textarea></div> - - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - matchBrackets: true, - autoCloseBrackets: true, - mode: "application/ld+json", - lineWrapping: true - }); - </script> - - <p>This is a specialization of the <a href="index.html">JavaScript mode</a>.</p> - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/javascript/test.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/javascript/test.js deleted file mode 100644 index 91c8b74..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/javascript/test.js +++ /dev/null @@ -1,237 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function() { - var mode = CodeMirror.getMode({indentUnit: 2}, "javascript"); - function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); } - - MT("locals", - "[keyword function] [def foo]([def a], [def b]) { [keyword var] [def c] [operator =] [number 10]; [keyword return] [variable-2 a] [operator +] [variable-2 c] [operator +] [variable d]; }"); - - MT("comma-and-binop", - "[keyword function](){ [keyword var] [def x] [operator =] [number 1] [operator +] [number 2], [def y]; }"); - - MT("destructuring", - "([keyword function]([def a], [[[def b], [def c] ]]) {", - " [keyword let] {[def d], [property foo]: [def c][operator =][number 10], [def x]} [operator =] [variable foo]([variable-2 a]);", - " [[[variable-2 c], [variable y] ]] [operator =] [variable-2 c];", - "})();"); - - MT("destructure_trailing_comma", - "[keyword let] {[def a], [def b],} [operator =] [variable foo];", - "[keyword let] [def c];"); // Parser still in good state? - - MT("class_body", - "[keyword class] [def Foo] {", - " [property constructor]() {}", - " [property sayName]() {", - " [keyword return] [string-2 `foo${][variable foo][string-2 }oo`];", - " }", - "}"); - - MT("class", - "[keyword class] [def Point] [keyword extends] [variable SuperThing] {", - " [keyword get] [property prop]() { [keyword return] [number 24]; }", - " [property constructor]([def x], [def y]) {", - " [keyword super]([string 'something']);", - " [keyword this].[property x] [operator =] [variable-2 x];", - " }", - "}"); - - MT("import", - "[keyword function] [def foo]() {", - " [keyword import] [def $] [keyword from] [string 'jquery'];", - " [keyword import] { [def encrypt], [def decrypt] } [keyword from] [string 'crypto'];", - "}"); - - MT("import_trailing_comma", - "[keyword import] {[def foo], [def bar],} [keyword from] [string 'baz']") - - MT("const", - "[keyword function] [def f]() {", - " [keyword const] [[ [def a], [def b] ]] [operator =] [[ [number 1], [number 2] ]];", - "}"); - - MT("for/of", - "[keyword for]([keyword let] [def of] [keyword of] [variable something]) {}"); - - MT("generator", - "[keyword function*] [def repeat]([def n]) {", - " [keyword for]([keyword var] [def i] [operator =] [number 0]; [variable-2 i] [operator <] [variable-2 n]; [operator ++][variable-2 i])", - " [keyword yield] [variable-2 i];", - "}"); - - MT("quotedStringAddition", - "[keyword let] [def f] [operator =] [variable a] [operator +] [string 'fatarrow'] [operator +] [variable c];"); - - MT("quotedFatArrow", - "[keyword let] [def f] [operator =] [variable a] [operator +] [string '=>'] [operator +] [variable c];"); - - MT("fatArrow", - "[variable array].[property filter]([def a] [operator =>] [variable-2 a] [operator +] [number 1]);", - "[variable a];", // No longer in scope - "[keyword let] [def f] [operator =] ([[ [def a], [def b] ]], [def c]) [operator =>] [variable-2 a] [operator +] [variable-2 c];", - "[variable c];"); - - MT("spread", - "[keyword function] [def f]([def a], [meta ...][def b]) {", - " [variable something]([variable-2 a], [meta ...][variable-2 b]);", - "}"); - - MT("quasi", - "[variable re][string-2 `fofdlakj${][variable x] [operator +] ([variable re][string-2 `foo`]) [operator +] [number 1][string-2 }fdsa`] [operator +] [number 2]"); - - MT("quasi_no_function", - "[variable x] [operator =] [string-2 `fofdlakj${][variable x] [operator +] [string-2 `foo`] [operator +] [number 1][string-2 }fdsa`] [operator +] [number 2]"); - - MT("indent_statement", - "[keyword var] [def x] [operator =] [number 10]", - "[variable x] [operator +=] [variable y] [operator +]", - " [atom Infinity]", - "[keyword debugger];"); - - MT("indent_if", - "[keyword if] ([number 1])", - " [keyword break];", - "[keyword else] [keyword if] ([number 2])", - " [keyword continue];", - "[keyword else]", - " [number 10];", - "[keyword if] ([number 1]) {", - " [keyword break];", - "} [keyword else] [keyword if] ([number 2]) {", - " [keyword continue];", - "} [keyword else] {", - " [number 10];", - "}"); - - MT("indent_for", - "[keyword for] ([keyword var] [def i] [operator =] [number 0];", - " [variable i] [operator <] [number 100];", - " [variable i][operator ++])", - " [variable doSomething]([variable i]);", - "[keyword debugger];"); - - MT("indent_c_style", - "[keyword function] [def foo]()", - "{", - " [keyword debugger];", - "}"); - - MT("indent_else", - "[keyword for] (;;)", - " [keyword if] ([variable foo])", - " [keyword if] ([variable bar])", - " [number 1];", - " [keyword else]", - " [number 2];", - " [keyword else]", - " [number 3];"); - - MT("indent_funarg", - "[variable foo]([number 10000],", - " [keyword function]([def a]) {", - " [keyword debugger];", - "};"); - - MT("indent_below_if", - "[keyword for] (;;)", - " [keyword if] ([variable foo])", - " [number 1];", - "[number 2];"); - - MT("indent_semicolonless_if", - "[keyword function] [def foo]() {", - " [keyword if] ([variable x])", - " [variable foo]()", - "}") - - MT("indent_semicolonless_if_with_statement", - "[keyword function] [def foo]() {", - " [keyword if] ([variable x])", - " [variable foo]()", - " [variable bar]()", - "}") - - MT("multilinestring", - "[keyword var] [def x] [operator =] [string 'foo\\]", - "[string bar'];"); - - MT("scary_regexp", - "[string-2 /foo[[/]]bar/];"); - - MT("indent_strange_array", - "[keyword var] [def x] [operator =] [[", - " [number 1],,", - " [number 2],", - "]];", - "[number 10];"); - - MT("param_default", - "[keyword function] [def foo]([def x] [operator =] [string-2 `foo${][number 10][string-2 }bar`]) {", - " [keyword return] [variable-2 x];", - "}"); - - MT("new_target", - "[keyword function] [def F]([def target]) {", - " [keyword if] ([variable-2 target] [operator &&] [keyword new].[keyword target].[property name]) {", - " [keyword return] [keyword new]", - " .[keyword target];", - " }", - "}"); - - var ts_mode = CodeMirror.getMode({indentUnit: 2}, "application/typescript") - function TS(name) { - test.mode(name, ts_mode, Array.prototype.slice.call(arguments, 1)) - } - - TS("extend_type", - "[keyword class] [def Foo] [keyword extends] [variable-3 Some][operator <][variable-3 Type][operator >] {}") - - TS("arrow_type", - "[keyword let] [def x]: ([variable arg]: [variable-3 Type]) [operator =>] [variable-3 ReturnType]") - - TS("typescript_class", - "[keyword class] [def Foo] {", - " [keyword public] [keyword static] [property main]() {}", - " [keyword private] [property _foo]: [variable-3 string];", - "}") - - var jsonld_mode = CodeMirror.getMode( - {indentUnit: 2}, - {name: "javascript", jsonld: true} - ); - function LD(name) { - test.mode(name, jsonld_mode, Array.prototype.slice.call(arguments, 1)); - } - - LD("json_ld_keywords", - '{', - ' [meta "@context"]: {', - ' [meta "@base"]: [string "http://example.com"],', - ' [meta "@vocab"]: [string "http://xmlns.com/foaf/0.1/"],', - ' [property "likesFlavor"]: {', - ' [meta "@container"]: [meta "@list"]', - ' [meta "@reverse"]: [string "@beFavoriteOf"]', - ' },', - ' [property "nick"]: { [meta "@container"]: [meta "@set"] },', - ' [property "nick"]: { [meta "@container"]: [meta "@index"] }', - ' },', - ' [meta "@graph"]: [[ {', - ' [meta "@id"]: [string "http://dbpedia.org/resource/John_Lennon"],', - ' [property "name"]: [string "John Lennon"],', - ' [property "modified"]: {', - ' [meta "@value"]: [string "2010-05-29T14:17:39+02:00"],', - ' [meta "@type"]: [string "http://www.w3.org/2001/XMLSchema#dateTime"]', - ' }', - ' } ]]', - '}'); - - LD("json_ld_fake", - '{', - ' [property "@fake"]: [string "@fake"],', - ' [property "@contextual"]: [string "@identifier"],', - ' [property "user@domain.com"]: [string "@graphical"],', - ' [property "@ID"]: [string "@@ID"]', - '}'); -})(); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/javascript/typescript.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/javascript/typescript.html deleted file mode 100644 index 2cfc538..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/javascript/typescript.html +++ /dev/null @@ -1,61 +0,0 @@ -<!doctype html> - -<title>CodeMirror: TypeScript mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="javascript.js"></script> -<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">TypeScript</a> - </ul> -</div> - -<article> -<h2>TypeScript mode</h2> - - -<div><textarea id="code" name="code"> -class Greeter { - greeting: string; - constructor (message: string) { - this.greeting = message; - } - greet() { - return "Hello, " + this.greeting; - } -} - -var greeter = new Greeter("world"); - -var button = document.createElement('button') -button.innerText = "Say Hello" -button.onclick = function() { - alert(greeter.greet()) -} - -document.body.appendChild(button) - -</textarea></div> - - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - lineNumbers: true, - matchBrackets: true, - mode: "text/typescript" - }); - </script> - - <p>This is a specialization of the <a href="index.html">JavaScript mode</a>.</p> - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/jinja2/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/jinja2/index.html deleted file mode 100644 index 5a70e91..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/jinja2/index.html +++ /dev/null @@ -1,54 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Jinja2 mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="jinja2.js"></script> -<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Jinja2</a> - </ul> -</div> - -<article> -<h2>Jinja2 mode</h2> -<form><textarea id="code" name="code"> -{# this is a comment #} -{%- for item in li -%} - <li>{{ item.label }}</li> -{% endfor -%} -{{ item.sand == true and item.keyword == false ? 1 : 0 }} -{{ app.get(55, 1.2, true) }} -{% if app.get('_route') == ('_home') %}home{% endif %} -{% if app.session.flashbag.has('message') %} - {% for message in app.session.flashbag.get('message') %} - {{ message.content }} - {% endfor %} -{% endif %} -{{ path('_home', {'section': app.request.get('section')}) }} -{{ path('_home', { - 'section': app.request.get('section'), - 'boolean': true, - 'number': 55.33 - }) -}} -{% include ('test.incl.html.twig') %} -</textarea></form> - <script> - var editor = - CodeMirror.fromTextArea(document.getElementById("code"), {mode: - {name: "jinja2", htmlMode: true}}); - </script> - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/jinja2/jinja2.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/jinja2/jinja2.js deleted file mode 100644 index ed19558..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/jinja2/jinja2.js +++ /dev/null @@ -1,142 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { - "use strict"; - - CodeMirror.defineMode("jinja2", function() { - var keywords = ["and", "as", "block", "endblock", "by", "cycle", "debug", "else", "elif", - "extends", "filter", "endfilter", "firstof", "for", - "endfor", "if", "endif", "ifchanged", "endifchanged", - "ifequal", "endifequal", "ifnotequal", - "endifnotequal", "in", "include", "load", "not", "now", "or", - "parsed", "regroup", "reversed", "spaceless", - "endspaceless", "ssi", "templatetag", "openblock", - "closeblock", "openvariable", "closevariable", - "openbrace", "closebrace", "opencomment", - "closecomment", "widthratio", "url", "with", "endwith", - "get_current_language", "trans", "endtrans", "noop", "blocktrans", - "endblocktrans", "get_available_languages", - "get_current_language_bidi", "plural"], - operator = /^[+\-*&%=<>!?|~^]/, - sign = /^[:\[\(\{]/, - atom = ["true", "false"], - number = /^(\d[+\-\*\/])?\d+(\.\d+)?/; - - keywords = new RegExp("((" + keywords.join(")|(") + "))\\b"); - atom = new RegExp("((" + atom.join(")|(") + "))\\b"); - - function tokenBase (stream, state) { - var ch = stream.peek(); - - //Comment - if (state.incomment) { - if(!stream.skipTo("#}")) { - stream.skipToEnd(); - } else { - stream.eatWhile(/\#|}/); - state.incomment = false; - } - return "comment"; - //Tag - } else if (state.intag) { - //After operator - if(state.operator) { - state.operator = false; - if(stream.match(atom)) { - return "atom"; - } - if(stream.match(number)) { - return "number"; - } - } - //After sign - if(state.sign) { - state.sign = false; - if(stream.match(atom)) { - return "atom"; - } - if(stream.match(number)) { - return "number"; - } - } - - if(state.instring) { - if(ch == state.instring) { - state.instring = false; - } - stream.next(); - return "string"; - } else if(ch == "'" || ch == '"') { - state.instring = ch; - stream.next(); - return "string"; - } else if(stream.match(state.intag + "}") || stream.eat("-") && stream.match(state.intag + "}")) { - state.intag = false; - return "tag"; - } else if(stream.match(operator)) { - state.operator = true; - return "operator"; - } else if(stream.match(sign)) { - state.sign = true; - } else { - if(stream.eat(" ") || stream.sol()) { - if(stream.match(keywords)) { - return "keyword"; - } - if(stream.match(atom)) { - return "atom"; - } - if(stream.match(number)) { - return "number"; - } - if(stream.sol()) { - stream.next(); - } - } else { - stream.next(); - } - - } - return "variable"; - } else if (stream.eat("{")) { - if (ch = stream.eat("#")) { - state.incomment = true; - if(!stream.skipTo("#}")) { - stream.skipToEnd(); - } else { - stream.eatWhile(/\#|}/); - state.incomment = false; - } - return "comment"; - //Open tag - } else if (ch = stream.eat(/\{|%/)) { - //Cache close tag - state.intag = ch; - if(ch == "{") { - state.intag = "}"; - } - stream.eat("-"); - return "tag"; - } - } - stream.next(); - }; - - return { - startState: function () { - return {tokenize: tokenBase}; - }, - token: function (stream, state) { - return state.tokenize(stream, state); - } - }; - }); -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/jsx/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/jsx/index.html deleted file mode 100644 index 1054bbc..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/jsx/index.html +++ /dev/null @@ -1,89 +0,0 @@ -<!doctype html> - -<title>CodeMirror: JSX mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../javascript/javascript.js"></script> -<script src="../xml/xml.js"></script> -<script src="jsx.js"></script> -<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">JSX</a> - </ul> -</div> - -<article> -<h2>JSX mode</h2> - -<div><textarea id="code" name="code">// Code snippets from http://facebook.github.io/react/docs/jsx-in-depth.html - -// Rendering HTML tags -var myDivElement = <div className="foo" />; -ReactDOM.render(myDivElement, document.getElementById('example')); - -// Rendering React components -var MyComponent = React.createClass({/*...*/}); -var myElement = <MyComponent someProperty={true} />; -ReactDOM.render(myElement, document.getElementById('example')); - -// Namespaced components -var Form = MyFormComponent; - -var App = ( - <Form> - <Form.Row> - <Form.Label /> - <Form.Input /> - </Form.Row> - </Form> -); - -// Attribute JavaScript expressions -var person = <Person name={window.isLoggedIn ? window.name : ''} />; - -// Boolean attributes -<input type="button" disabled />; -<input type="button" disabled={true} />; - -// Child JavaScript expressions -var content = <Container>{window.isLoggedIn ? <Nav /> : <Login />}</Container>; - -// Comments -var content = ( - <Nav> - {/* child comment, put {} around */} - <Person - /* multi - line - comment */ - name={window.isLoggedIn ? window.name : ''} // end of line comment - /> - </Nav> -); -</textarea></div> - -<script> -var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - lineNumbers: true, - mode: "jsx" -}) -</script> - -<p>JSX Mode for <a href="http://facebook.github.io/react">React</a>'s -JavaScript syntax extension.</p> - -<p><strong>MIME types defined:</strong> <code>text/jsx</code>, <code>text/typescript-jsx</code>.</p> - -</article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/jsx/jsx.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/jsx/jsx.js deleted file mode 100644 index 45c3024..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/jsx/jsx.js +++ /dev/null @@ -1,148 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror"), require("../xml/xml"), require("../javascript/javascript")) - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror", "../xml/xml", "../javascript/javascript"], mod) - else // Plain browser env - mod(CodeMirror) -})(function(CodeMirror) { - "use strict" - - // Depth means the amount of open braces in JS context, in XML - // context 0 means not in tag, 1 means in tag, and 2 means in tag - // and js block comment. - function Context(state, mode, depth, prev) { - this.state = state; this.mode = mode; this.depth = depth; this.prev = prev - } - - function copyContext(context) { - return new Context(CodeMirror.copyState(context.mode, context.state), - context.mode, - context.depth, - context.prev && copyContext(context.prev)) - } - - CodeMirror.defineMode("jsx", function(config, modeConfig) { - var xmlMode = CodeMirror.getMode(config, {name: "xml", allowMissing: true, multilineTagIndentPastTag: false}) - var jsMode = CodeMirror.getMode(config, modeConfig && modeConfig.base || "javascript") - - function flatXMLIndent(state) { - var tagName = state.tagName - state.tagName = null - var result = xmlMode.indent(state, "") - state.tagName = tagName - return result - } - - function token(stream, state) { - if (state.context.mode == xmlMode) - return xmlToken(stream, state, state.context) - else - return jsToken(stream, state, state.context) - } - - function xmlToken(stream, state, cx) { - if (cx.depth == 2) { // Inside a JS /* */ comment - if (stream.match(/^.*?\*\//)) cx.depth = 1 - else stream.skipToEnd() - return "comment" - } - - if (stream.peek() == "{") { - xmlMode.skipAttribute(cx.state) - - var indent = flatXMLIndent(cx.state), xmlContext = cx.state.context - // If JS starts on same line as tag - if (xmlContext && stream.match(/^[^>]*>\s*$/, false)) { - while (xmlContext.prev && !xmlContext.startOfLine) - xmlContext = xmlContext.prev - // If tag starts the line, use XML indentation level - if (xmlContext.startOfLine) indent -= config.indentUnit - // Else use JS indentation level - else if (cx.prev.state.lexical) indent = cx.prev.state.lexical.indented - // Else if inside of tag - } else if (cx.depth == 1) { - indent += config.indentUnit - } - - state.context = new Context(CodeMirror.startState(jsMode, indent), - jsMode, 0, state.context) - return null - } - - if (cx.depth == 1) { // Inside of tag - if (stream.peek() == "<") { // Tag inside of tag - xmlMode.skipAttribute(cx.state) - state.context = new Context(CodeMirror.startState(xmlMode, flatXMLIndent(cx.state)), - xmlMode, 0, state.context) - return null - } else if (stream.match("//")) { - stream.skipToEnd() - return "comment" - } else if (stream.match("/*")) { - cx.depth = 2 - return token(stream, state) - } - } - - var style = xmlMode.token(stream, cx.state), cur = stream.current(), stop - if (/\btag\b/.test(style)) { - if (/>$/.test(cur)) { - if (cx.state.context) cx.depth = 0 - else state.context = state.context.prev - } else if (/^</.test(cur)) { - cx.depth = 1 - } - } else if (!style && (stop = cur.indexOf("{")) > -1) { - stream.backUp(cur.length - stop) - } - return style - } - - function jsToken(stream, state, cx) { - if (stream.peek() == "<" && jsMode.expressionAllowed(stream, cx.state)) { - jsMode.skipExpression(cx.state) - state.context = new Context(CodeMirror.startState(xmlMode, jsMode.indent(cx.state, "")), - xmlMode, 0, state.context) - return null - } - - var style = jsMode.token(stream, cx.state) - if (!style && cx.depth != null) { - var cur = stream.current() - if (cur == "{") { - cx.depth++ - } else if (cur == "}") { - if (--cx.depth == 0) state.context = state.context.prev - } - } - return style - } - - return { - startState: function() { - return {context: new Context(CodeMirror.startState(jsMode), jsMode)} - }, - - copyState: function(state) { - return {context: copyContext(state.context)} - }, - - token: token, - - indent: function(state, textAfter, fullLine) { - return state.context.mode.indent(state.context.state, textAfter, fullLine) - }, - - innerMode: function(state) { - return state.context - } - } - }, "xml", "javascript") - - CodeMirror.defineMIME("text/jsx", "jsx") - CodeMirror.defineMIME("text/typescript-jsx", {name: "jsx", base: {name: "javascript", typescript: true}}) -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/jsx/test.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/jsx/test.js deleted file mode 100644 index c54a8b2..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/jsx/test.js +++ /dev/null @@ -1,69 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function() { - var mode = CodeMirror.getMode({indentUnit: 2}, "jsx") - function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)) } - - MT("selfclose", - "[keyword var] [def x] [operator =] [bracket&tag <] [tag foo] [bracket&tag />] [operator +] [number 1];") - - MT("openclose", - "([bracket&tag <][tag foo][bracket&tag >]hello [atom &][bracket&tag </][tag foo][bracket&tag >][operator ++])") - - MT("attr", - "([bracket&tag <][tag foo] [attribute abc]=[string 'value'][bracket&tag >]hello [atom &][bracket&tag </][tag foo][bracket&tag >][operator ++])") - - MT("braced_attr", - "([bracket&tag <][tag foo] [attribute abc]={[number 10]}[bracket&tag >]hello [atom &][bracket&tag </][tag foo][bracket&tag >][operator ++])") - - MT("braced_text", - "([bracket&tag <][tag foo][bracket&tag >]hello {[number 10]} [atom &][bracket&tag </][tag foo][bracket&tag >][operator ++])") - - MT("nested_tag", - "([bracket&tag <][tag foo][bracket&tag ><][tag bar][bracket&tag ></][tag bar][bracket&tag ></][tag foo][bracket&tag >][operator ++])") - - MT("nested_jsx", - "[keyword return] (", - " [bracket&tag <][tag foo][bracket&tag >]", - " say {[number 1] [operator +] [bracket&tag <][tag bar] [attribute attr]={[number 10]}[bracket&tag />]}!", - " [bracket&tag </][tag foo][bracket&tag >][operator ++]", - ")") - - MT("preserve_js_context", - "[variable x] [operator =] [string-2 `quasi${][bracket&tag <][tag foo][bracket&tag />][string-2 }quoted`]") - - MT("line_comment", - "([bracket&tag <][tag foo] [comment // hello]", - " [bracket&tag ></][tag foo][bracket&tag >][operator ++])") - - MT("line_comment_not_in_tag", - "([bracket&tag <][tag foo][bracket&tag >] // hello", - " [bracket&tag </][tag foo][bracket&tag >][operator ++])") - - MT("block_comment", - "([bracket&tag <][tag foo] [comment /* hello]", - "[comment line 2]", - "[comment line 3 */] [bracket&tag ></][tag foo][bracket&tag >][operator ++])") - - MT("block_comment_not_in_tag", - "([bracket&tag <][tag foo][bracket&tag >]/* hello", - " line 2", - " line 3 */ [bracket&tag </][tag foo][bracket&tag >][operator ++])") - - MT("missing_attr", - "([bracket&tag <][tag foo] [attribute selected][bracket&tag />][operator ++])") - - MT("indent_js", - "([bracket&tag <][tag foo][bracket&tag >]", - " [bracket&tag <][tag bar] [attribute baz]={[keyword function]() {", - " [keyword return] [number 10]", - " }}[bracket&tag />]", - " [bracket&tag </][tag foo][bracket&tag >])") - - MT("spread", - "([bracket&tag <][tag foo] [attribute bar]={[meta ...][variable baz] [operator /][number 2]}[bracket&tag />])") - - MT("tag_attribute", - "([bracket&tag <][tag foo] [attribute bar]=[bracket&tag <][tag foo][bracket&tag />/>][operator ++])") -})() diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/julia/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/julia/index.html deleted file mode 100644 index e1492c2..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/julia/index.html +++ /dev/null @@ -1,195 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Julia mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="julia.js"></script> -<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Julia</a> - </ul> -</div> - -<article> -<h2>Julia mode</h2> - - <div><textarea id="code" name="code"> -#numbers -1234 -1234im -.234 -.234im -2.23im -2.3f3 -23e2 -0x234 - -#strings -'a' -"asdf" -r"regex" -b"bytestring" - -""" -multiline string -""" - -#identifiers -a -as123 -function_name! - -#unicode identifiers -# a = x\ddot -a⃗ = ẍ -# a = v\dot -a⃗ = v̇ -#F\vec = m \cdotp a\vec -F⃗ = m·a⃗ - -#literal identifier multiples -3x -4[1, 2, 3] - -#dicts and indexing -x=[1, 2, 3] -x[end-1] -x={"julia"=>"language of technical computing"} - - -#exception handling -try - f() -catch - @printf "Error" -finally - g() -end - -#types -immutable Color{T<:Number} - r::T - g::T - b::T -end - -#functions -function change!(x::Vector{Float64}) - for i = 1:length(x) - x[i] *= 2 - end -end - -#function invocation -f('b', (2, 3)...) - -#operators -|= -&= -^= -\- -%= -*= -+= --= -<= ->= -!= -== -% -* -+ -- -< -> -! -= -| -& -^ -\ -? -~ -: -$ -<: -.< -.> -<< -<<= ->> ->>>> ->>= ->>>= -<<= -<<<= -.<= -.>= -.== --> -// -in -... -// -:= -.//= -.*= -./= -.^= -.%= -.+= -.-= -\= -\\= -|| -=== -&& -|= -.|= -<: ->: -|> -<| -:: -x ? y : z - -#macros -@spawnat 2 1+1 -@eval(:x) - -#keywords and operators -if else elseif while for - begin let end do -try catch finally return break continue -global local const -export import importall using -function macro module baremodule -type immutable quote -true false enumerate - - - </textarea></div> - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - mode: {name: "julia", - }, - lineNumbers: true, - indentUnit: 4, - matchBrackets: true - }); - </script> - - <p><strong>MIME types defined:</strong> <code>text/x-julia</code>.</p> -</article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/julia/julia.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/julia/julia.js deleted file mode 100644 index 004de44..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/julia/julia.js +++ /dev/null @@ -1,392 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("julia", function(_conf, parserConf) { - var ERRORCLASS = 'error'; - - function wordRegexp(words, end) { - if (typeof end === 'undefined') { end = "\\b"; } - return new RegExp("^((" + words.join(")|(") + "))" + end); - } - - var octChar = "\\\\[0-7]{1,3}"; - var hexChar = "\\\\x[A-Fa-f0-9]{1,2}"; - var specialChar = "\\\\[abfnrtv0%?'\"\\\\]"; - var singleChar = "([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])"; - var operators = parserConf.operators || /^\.?[|&^\\%*+\-<>!=\/]=?|\?|~|:|\$|\.[<>]|<<=?|>>>?=?|\.[<>=]=|->?|\/\/|\bin\b(?!\()|[\u2208\u2209](?!\()/; - var delimiters = parserConf.delimiters || /^[;,()[\]{}]/; - var identifiers = parserConf.identifiers || /^[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/; - var charsList = [octChar, hexChar, specialChar, singleChar]; - var blockOpeners = ["begin", "function", "type", "immutable", "let", "macro", "for", "while", "quote", "if", "else", "elseif", "try", "finally", "catch", "do"]; - var blockClosers = ["end", "else", "elseif", "catch", "finally"]; - var keywordList = ['if', 'else', 'elseif', 'while', 'for', 'begin', 'let', 'end', 'do', 'try', 'catch', 'finally', 'return', 'break', 'continue', 'global', 'local', 'const', 'export', 'import', 'importall', 'using', 'function', 'macro', 'module', 'baremodule', 'type', 'immutable', 'quote', 'typealias', 'abstract', 'bitstype']; - var builtinList = ['true', 'false', 'nothing', 'NaN', 'Inf']; - - //var stringPrefixes = new RegExp("^[br]?('|\")") - var stringPrefixes = /^(`|"{3}|([brv]?"))/; - var chars = wordRegexp(charsList, "'"); - var keywords = wordRegexp(keywordList); - var builtins = wordRegexp(builtinList); - var openers = wordRegexp(blockOpeners); - var closers = wordRegexp(blockClosers); - var macro = /^@[_A-Za-z][\w]*/; - var symbol = /^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/; - var typeAnnotation = /^::[^,;"{()=$\s]+({[^}]*}+)*/; - - function inArray(state) { - var ch = currentScope(state); - if (ch == '[') { - return true; - } - return false; - } - - function currentScope(state) { - if (state.scopes.length == 0) { - return null; - } - return state.scopes[state.scopes.length - 1]; - } - - // tokenizers - function tokenBase(stream, state) { - // Handle multiline comments - if (stream.match(/^#=/, false)) { - state.tokenize = tokenComment; - return state.tokenize(stream, state); - } - - // Handle scope changes - var leavingExpr = state.leavingExpr; - if (stream.sol()) { - leavingExpr = false; - } - state.leavingExpr = false; - if (leavingExpr) { - if (stream.match(/^'+/)) { - return 'operator'; - } - } - - if (stream.match(/^\.{2,3}/)) { - return 'operator'; - } - - if (stream.eatSpace()) { - return null; - } - - var ch = stream.peek(); - - // Handle single line comments - if (ch === '#') { - stream.skipToEnd(); - return 'comment'; - } - - if (ch === '[') { - state.scopes.push('['); - } - - if (ch === '(') { - state.scopes.push('('); - } - - var scope = currentScope(state); - - if (scope == '[' && ch === ']') { - state.scopes.pop(); - state.leavingExpr = true; - } - - if (scope == '(' && ch === ')') { - state.scopes.pop(); - state.leavingExpr = true; - } - - var match; - if (!inArray(state) && (match=stream.match(openers, false))) { - state.scopes.push(match); - } - - if (!inArray(state) && stream.match(closers, false)) { - state.scopes.pop(); - } - - if (inArray(state)) { - if (state.lastToken == 'end' && stream.match(/^:/)) { - return 'operator'; - } - if (stream.match(/^end/)) { - return 'number'; - } - } - - if (stream.match(/^=>/)) { - return 'operator'; - } - - // Handle Number Literals - if (stream.match(/^[0-9\.]/, false)) { - var imMatcher = RegExp(/^im\b/); - var numberLiteral = false; - // Floats - if (stream.match(/^\d*\.(?!\.)\d*([Eef][\+\-]?\d+)?/i)) { numberLiteral = true; } - if (stream.match(/^\d+\.(?!\.)\d*/)) { numberLiteral = true; } - if (stream.match(/^\.\d+/)) { numberLiteral = true; } - if (stream.match(/^0x\.[0-9a-f]+p[\+\-]?\d+/i)) { numberLiteral = true; } - // Integers - if (stream.match(/^0x[0-9a-f]+/i)) { numberLiteral = true; } // Hex - if (stream.match(/^0b[01]+/i)) { numberLiteral = true; } // Binary - if (stream.match(/^0o[0-7]+/i)) { numberLiteral = true; } // Octal - if (stream.match(/^[1-9]\d*(e[\+\-]?\d+)?/)) { numberLiteral = true; } // Decimal - // Zero by itself with no other piece of number. - if (stream.match(/^0(?![\dx])/i)) { numberLiteral = true; } - if (numberLiteral) { - // Integer literals may be "long" - stream.match(imMatcher); - state.leavingExpr = true; - return 'number'; - } - } - - if (stream.match(/^<:/)) { - return 'operator'; - } - - if (stream.match(typeAnnotation)) { - return 'builtin'; - } - - // Handle symbols - if (!leavingExpr && stream.match(symbol) || stream.match(/:\./)) { - return 'builtin'; - } - - // Handle parametric types - if (stream.match(/^{[^}]*}(?=\()/)) { - return 'builtin'; - } - - // Handle operators and Delimiters - if (stream.match(operators)) { - return 'operator'; - } - - // Handle Chars - if (stream.match(/^'/)) { - state.tokenize = tokenChar; - return state.tokenize(stream, state); - } - - // Handle Strings - if (stream.match(stringPrefixes)) { - state.tokenize = tokenStringFactory(stream.current()); - return state.tokenize(stream, state); - } - - if (stream.match(macro)) { - return 'meta'; - } - - if (stream.match(delimiters)) { - return null; - } - - if (stream.match(keywords)) { - return 'keyword'; - } - - if (stream.match(builtins)) { - return 'builtin'; - } - - var isDefinition = state.isDefinition || - state.lastToken == 'function' || - state.lastToken == 'macro' || - state.lastToken == 'type' || - state.lastToken == 'immutable'; - - if (stream.match(identifiers)) { - if (isDefinition) { - if (stream.peek() === '.') { - state.isDefinition = true; - return 'variable'; - } - state.isDefinition = false; - return 'def'; - } - if (stream.match(/^({[^}]*})*\(/, false)) { - return callOrDef(stream, state); - } - state.leavingExpr = true; - return 'variable'; - } - - // Handle non-detected items - stream.next(); - return ERRORCLASS; - } - - function callOrDef(stream, state) { - var match = stream.match(/^(\(\s*)/); - if (match) { - if (state.firstParenPos < 0) - state.firstParenPos = state.scopes.length; - state.scopes.push('('); - state.charsAdvanced += match[1].length; - } - if (currentScope(state) == '(' && stream.match(/^\)/)) { - state.scopes.pop(); - state.charsAdvanced += 1; - if (state.scopes.length <= state.firstParenPos) { - var isDefinition = stream.match(/^\s*?=(?!=)/, false); - stream.backUp(state.charsAdvanced); - state.firstParenPos = -1; - state.charsAdvanced = 0; - if (isDefinition) - return 'def'; - return 'builtin'; - } - } - // Unfortunately javascript does not support multiline strings, so we have - // to undo anything done upto here if a function call or definition splits - // over two or more lines. - if (stream.match(/^$/g, false)) { - stream.backUp(state.charsAdvanced); - while (state.scopes.length > state.firstParenPos) - state.scopes.pop(); - state.firstParenPos = -1; - state.charsAdvanced = 0; - return 'builtin'; - } - state.charsAdvanced += stream.match(/^([^()]*)/)[1].length; - return callOrDef(stream, state); - } - - function tokenComment(stream, state) { - if (stream.match(/^#=/)) { - state.weakScopes++; - } - if (!stream.match(/.*?(?=(#=|=#))/)) { - stream.skipToEnd(); - } - if (stream.match(/^=#/)) { - state.weakScopes--; - if (state.weakScopes == 0) - state.tokenize = tokenBase; - } - return 'comment'; - } - - function tokenChar(stream, state) { - var isChar = false, match; - if (stream.match(chars)) { - isChar = true; - } else if (match = stream.match(/\\u([a-f0-9]{1,4})(?=')/i)) { - var value = parseInt(match[1], 16); - if (value <= 55295 || value >= 57344) { // (U+0,U+D7FF), (U+E000,U+FFFF) - isChar = true; - stream.next(); - } - } else if (match = stream.match(/\\U([A-Fa-f0-9]{5,8})(?=')/)) { - var value = parseInt(match[1], 16); - if (value <= 1114111) { // U+10FFFF - isChar = true; - stream.next(); - } - } - if (isChar) { - state.leavingExpr = true; - state.tokenize = tokenBase; - return 'string'; - } - if (!stream.match(/^[^']+(?=')/)) { stream.skipToEnd(); } - if (stream.match(/^'/)) { state.tokenize = tokenBase; } - return ERRORCLASS; - } - - function tokenStringFactory(delimiter) { - while ('bruv'.indexOf(delimiter.charAt(0).toLowerCase()) >= 0) { - delimiter = delimiter.substr(1); - } - var OUTCLASS = 'string'; - - function tokenString(stream, state) { - while (!stream.eol()) { - stream.eatWhile(/[^"\\]/); - if (stream.eat('\\')) { - stream.next(); - } else if (stream.match(delimiter)) { - state.tokenize = tokenBase; - state.leavingExpr = true; - return OUTCLASS; - } else { - stream.eat(/["]/); - } - } - return OUTCLASS; - } - tokenString.isString = true; - return tokenString; - } - - var external = { - startState: function() { - return { - tokenize: tokenBase, - scopes: [], - weakScopes: 0, - lastToken: null, - leavingExpr: false, - isDefinition: false, - charsAdvanced: 0, - firstParenPos: -1 - }; - }, - - token: function(stream, state) { - var style = state.tokenize(stream, state); - var current = stream.current(); - - if (current && style) { - state.lastToken = current; - } - - // Handle '.' connected identifiers - if (current === '.') { - style = stream.match(identifiers, false) || stream.match(macro, false) || - stream.match(/\(/, false) ? 'operator' : ERRORCLASS; - } - return style; - }, - - indent: function(state, textAfter) { - var delta = 0; - if (textAfter == "]" || textAfter == ")" || textAfter == "end" || textAfter == "else" || textAfter == "elseif" || textAfter == "catch" || textAfter == "finally") { - delta = -1; - } - return (state.scopes.length + delta) * _conf.indentUnit; - }, - - electricInput: /(end|else(if)?|catch|finally)$/, - lineComment: "#", - fold: "indent" - }; - return external; -}); - - -CodeMirror.defineMIME("text/x-julia", "julia"); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/livescript/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/livescript/index.html deleted file mode 100644 index f415479..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/livescript/index.html +++ /dev/null @@ -1,459 +0,0 @@ -<!doctype html> - -<title>CodeMirror: LiveScript mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<link rel="stylesheet" href="../../theme/solarized.css"> -<script src="../../lib/codemirror.js"></script> -<script src="livescript.js"></script> -<style>.CodeMirror {font-size: 80%;border-top: 1px solid silver; border-bottom: 1px solid silver;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">LiveScript</a> - </ul> -</div> - -<article> -<h2>LiveScript mode</h2> -<form><textarea id="code" name="code"> -# LiveScript mode for CodeMirror -# The following script, prelude.ls, is used to -# demonstrate LiveScript mode for CodeMirror. -# https://github.com/gkz/prelude-ls - -export objToFunc = objToFunc = (obj) -> - (key) -> obj[key] - -export each = (f, xs) --> - if typeof! xs is \Object - for , x of xs then f x - else - for x in xs then f x - xs - -export map = (f, xs) --> - f = objToFunc f if typeof! f isnt \Function - type = typeof! xs - if type is \Object - {[key, f x] for key, x of xs} - else - result = [f x for x in xs] - if type is \String then result * '' else result - -export filter = (f, xs) --> - f = objToFunc f if typeof! f isnt \Function - type = typeof! xs - if type is \Object - {[key, x] for key, x of xs when f x} - else - result = [x for x in xs when f x] - if type is \String then result * '' else result - -export reject = (f, xs) --> - f = objToFunc f if typeof! f isnt \Function - type = typeof! xs - if type is \Object - {[key, x] for key, x of xs when not f x} - else - result = [x for x in xs when not f x] - if type is \String then result * '' else result - -export partition = (f, xs) --> - f = objToFunc f if typeof! f isnt \Function - type = typeof! xs - if type is \Object - passed = {} - failed = {} - for key, x of xs - (if f x then passed else failed)[key] = x - else - passed = [] - failed = [] - for x in xs - (if f x then passed else failed)push x - if type is \String - passed *= '' - failed *= '' - [passed, failed] - -export find = (f, xs) --> - f = objToFunc f if typeof! f isnt \Function - if typeof! xs is \Object - for , x of xs when f x then return x - else - for x in xs when f x then return x - void - -export head = export first = (xs) -> - return void if not xs.length - xs.0 - -export tail = (xs) -> - return void if not xs.length - xs.slice 1 - -export last = (xs) -> - return void if not xs.length - xs[*-1] - -export initial = (xs) -> - return void if not xs.length - xs.slice 0 xs.length - 1 - -export empty = (xs) -> - if typeof! xs is \Object - for x of xs then return false - return yes - not xs.length - -export values = (obj) -> - [x for , x of obj] - -export keys = (obj) -> - [x for x of obj] - -export len = (xs) -> - xs = values xs if typeof! xs is \Object - xs.length - -export cons = (x, xs) --> - if typeof! xs is \String then x + xs else [x] ++ xs - -export append = (xs, ys) --> - if typeof! ys is \String then xs + ys else xs ++ ys - -export join = (sep, xs) --> - xs = values xs if typeof! xs is \Object - xs.join sep - -export reverse = (xs) -> - if typeof! xs is \String - then (xs / '')reverse! * '' - else xs.slice!reverse! - -export fold = export foldl = (f, memo, xs) --> - if typeof! xs is \Object - for , x of xs then memo = f memo, x - else - for x in xs then memo = f memo, x - memo - -export fold1 = export foldl1 = (f, xs) --> fold f, xs.0, xs.slice 1 - -export foldr = (f, memo, xs) --> fold f, memo, xs.slice!reverse! - -export foldr1 = (f, xs) --> - xs.=slice!reverse! - fold f, xs.0, xs.slice 1 - -export unfoldr = export unfold = (f, b) --> - if (f b)? - [that.0] ++ unfoldr f, that.1 - else - [] - -export andList = (xs) -> - for x in xs when not x - return false - true - -export orList = (xs) -> - for x in xs when x - return true - false - -export any = (f, xs) --> - f = objToFunc f if typeof! f isnt \Function - for x in xs when f x - return yes - no - -export all = (f, xs) --> - f = objToFunc f if typeof! f isnt \Function - for x in xs when not f x - return no - yes - -export unique = (xs) -> - result = [] - if typeof! xs is \Object - for , x of xs when x not in result then result.push x - else - for x in xs when x not in result then result.push x - if typeof! xs is \String then result * '' else result - -export sort = (xs) -> - xs.concat!sort (x, y) -> - | x > y => 1 - | x < y => -1 - | _ => 0 - -export sortBy = (f, xs) --> - return [] unless xs.length - xs.concat!sort f - -export compare = (f, x, y) --> - | (f x) > (f y) => 1 - | (f x) < (f y) => -1 - | otherwise => 0 - -export sum = (xs) -> - result = 0 - if typeof! xs is \Object - for , x of xs then result += x - else - for x in xs then result += x - result - -export product = (xs) -> - result = 1 - if typeof! xs is \Object - for , x of xs then result *= x - else - for x in xs then result *= x - result - -export mean = export average = (xs) -> (sum xs) / len xs - -export concat = (xss) -> fold append, [], xss - -export concatMap = (f, xs) --> fold ((memo, x) -> append memo, f x), [], xs - -export listToObj = (xs) -> - {[x.0, x.1] for x in xs} - -export maximum = (xs) -> fold1 (>?), xs - -export minimum = (xs) -> fold1 (<?), xs - -export scan = export scanl = (f, memo, xs) --> - last = memo - if typeof! xs is \Object - then [memo] ++ [last = f last, x for , x of xs] - else [memo] ++ [last = f last, x for x in xs] - -export scan1 = export scanl1 = (f, xs) --> scan f, xs.0, xs.slice 1 - -export scanr = (f, memo, xs) --> - xs.=slice!reverse! - scan f, memo, xs .reverse! - -export scanr1 = (f, xs) --> - xs.=slice!reverse! - scan f, xs.0, xs.slice 1 .reverse! - -export replicate = (n, x) --> - result = [] - i = 0 - while i < n, ++i then result.push x - result - -export take = (n, xs) --> - | n <= 0 - if typeof! xs is \String then '' else [] - | not xs.length => xs - | otherwise => xs.slice 0, n - -export drop = (n, xs) --> - | n <= 0 => xs - | not xs.length => xs - | otherwise => xs.slice n - -export splitAt = (n, xs) --> [(take n, xs), (drop n, xs)] - -export takeWhile = (p, xs) --> - return xs if not xs.length - p = objToFunc p if typeof! p isnt \Function - result = [] - for x in xs - break if not p x - result.push x - if typeof! xs is \String then result * '' else result - -export dropWhile = (p, xs) --> - return xs if not xs.length - p = objToFunc p if typeof! p isnt \Function - i = 0 - for x in xs - break if not p x - ++i - drop i, xs - -export span = (p, xs) --> [(takeWhile p, xs), (dropWhile p, xs)] - -export breakIt = (p, xs) --> span (not) << p, xs - -export zip = (xs, ys) --> - result = [] - for zs, i in [xs, ys] - for z, j in zs - result.push [] if i is 0 - result[j]?push z - result - -export zipWith = (f,xs, ys) --> - f = objToFunc f if typeof! f isnt \Function - if not xs.length or not ys.length - [] - else - [f.apply this, zs for zs in zip.call this, xs, ys] - -export zipAll = (...xss) -> - result = [] - for xs, i in xss - for x, j in xs - result.push [] if i is 0 - result[j]?push x - result - -export zipAllWith = (f, ...xss) -> - f = objToFunc f if typeof! f isnt \Function - if not xss.0.length or not xss.1.length - [] - else - [f.apply this, xs for xs in zipAll.apply this, xss] - -export compose = (...funcs) -> - -> - args = arguments - for f in funcs - args = [f.apply this, args] - args.0 - -export curry = (f) -> - curry$ f # using util method curry$ from livescript - -export id = (x) -> x - -export flip = (f, x, y) --> f y, x - -export fix = (f) -> - ( (g, x) -> -> f(g g) ...arguments ) do - (g, x) -> -> f(g g) ...arguments - -export lines = (str) -> - return [] if not str.length - str / \\n - -export unlines = (strs) -> strs * \\n - -export words = (str) -> - return [] if not str.length - str / /[ ]+/ - -export unwords = (strs) -> strs * ' ' - -export max = (>?) - -export min = (<?) - -export negate = (x) -> -x - -export abs = Math.abs - -export signum = (x) -> - | x < 0 => -1 - | x > 0 => 1 - | otherwise => 0 - -export quot = (x, y) --> ~~(x / y) - -export rem = (%) - -export div = (x, y) --> Math.floor x / y - -export mod = (%%) - -export recip = (1 /) - -export pi = Math.PI - -export tau = pi * 2 - -export exp = Math.exp - -export sqrt = Math.sqrt - -# changed from log as log is a -# common function for logging things -export ln = Math.log - -export pow = (^) - -export sin = Math.sin - -export tan = Math.tan - -export cos = Math.cos - -export asin = Math.asin - -export acos = Math.acos - -export atan = Math.atan - -export atan2 = (x, y) --> Math.atan2 x, y - -# sinh -# tanh -# cosh -# asinh -# atanh -# acosh - -export truncate = (x) -> ~~x - -export round = Math.round - -export ceiling = Math.ceil - -export floor = Math.floor - -export isItNaN = (x) -> x isnt x - -export even = (x) -> x % 2 == 0 - -export odd = (x) -> x % 2 != 0 - -export gcd = (x, y) --> - x = Math.abs x - y = Math.abs y - until y is 0 - z = x % y - x = y - y = z - x - -export lcm = (x, y) --> - Math.abs Math.floor (x / (gcd x, y) * y) - -# meta -export installPrelude = !(target) -> - unless target.prelude?isInstalled - target <<< out$ # using out$ generated by livescript - target <<< target.prelude.isInstalled = true - -export prelude = out$ -</textarea></form> - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - theme: "solarized light", - lineNumbers: true - }); - </script> - - <p><strong>MIME types defined:</strong> <code>text/x-livescript</code>.</p> - - <p>The LiveScript mode was written by Kenneth Bentley.</p> - - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/livescript/livescript.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/livescript/livescript.js deleted file mode 100644 index 1e363f8..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/livescript/livescript.js +++ /dev/null @@ -1,280 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -/** - * Link to the project's GitHub page: - * https://github.com/duralog/CodeMirror - */ - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { - "use strict"; - - CodeMirror.defineMode('livescript', function(){ - var tokenBase = function(stream, state) { - var next_rule = state.next || "start"; - if (next_rule) { - state.next = state.next; - var nr = Rules[next_rule]; - if (nr.splice) { - for (var i$ = 0; i$ < nr.length; ++i$) { - var r = nr[i$]; - if (r.regex && stream.match(r.regex)) { - state.next = r.next || state.next; - return r.token; - } - } - stream.next(); - return 'error'; - } - if (stream.match(r = Rules[next_rule])) { - if (r.regex && stream.match(r.regex)) { - state.next = r.next; - return r.token; - } else { - stream.next(); - return 'error'; - } - } - } - stream.next(); - return 'error'; - }; - var external = { - startState: function(){ - return { - next: 'start', - lastToken: {style: null, indent: 0, content: ""} - }; - }, - token: function(stream, state){ - while (stream.pos == stream.start) - var style = tokenBase(stream, state); - state.lastToken = { - style: style, - indent: stream.indentation(), - content: stream.current() - }; - return style.replace(/\./g, ' '); - }, - indent: function(state){ - var indentation = state.lastToken.indent; - if (state.lastToken.content.match(indenter)) { - indentation += 2; - } - return indentation; - } - }; - return external; - }); - - var identifier = '(?![\\d\\s])[$\\w\\xAA-\\uFFDC](?:(?!\\s)[$\\w\\xAA-\\uFFDC]|-[A-Za-z])*'; - var indenter = RegExp('(?:[({[=:]|[-~]>|\\b(?:e(?:lse|xport)|d(?:o|efault)|t(?:ry|hen)|finally|import(?:\\s*all)?|const|var|let|new|catch(?:\\s*' + identifier + ')?))\\s*$'); - var keywordend = '(?![$\\w]|-[A-Za-z]|\\s*:(?![:=]))'; - var stringfill = { - token: 'string', - regex: '.+' - }; - var Rules = { - start: [ - { - token: 'comment.doc', - regex: '/\\*', - next: 'comment' - }, { - token: 'comment', - regex: '#.*' - }, { - token: 'keyword', - regex: '(?:t(?:h(?:is|row|en)|ry|ypeof!?)|c(?:on(?:tinue|st)|a(?:se|tch)|lass)|i(?:n(?:stanceof)?|mp(?:ort(?:\\s+all)?|lements)|[fs])|d(?:e(?:fault|lete|bugger)|o)|f(?:or(?:\\s+own)?|inally|unction)|s(?:uper|witch)|e(?:lse|x(?:tends|port)|val)|a(?:nd|rguments)|n(?:ew|ot)|un(?:less|til)|w(?:hile|ith)|o[fr]|return|break|let|var|loop)' + keywordend - }, { - token: 'constant.language', - regex: '(?:true|false|yes|no|on|off|null|void|undefined)' + keywordend - }, { - token: 'invalid.illegal', - regex: '(?:p(?:ackage|r(?:ivate|otected)|ublic)|i(?:mplements|nterface)|enum|static|yield)' + keywordend - }, { - token: 'language.support.class', - regex: '(?:R(?:e(?:gExp|ferenceError)|angeError)|S(?:tring|yntaxError)|E(?:rror|valError)|Array|Boolean|Date|Function|Number|Object|TypeError|URIError)' + keywordend - }, { - token: 'language.support.function', - regex: '(?:is(?:NaN|Finite)|parse(?:Int|Float)|Math|JSON|(?:en|de)codeURI(?:Component)?)' + keywordend - }, { - token: 'variable.language', - regex: '(?:t(?:hat|il|o)|f(?:rom|allthrough)|it|by|e)' + keywordend - }, { - token: 'identifier', - regex: identifier + '\\s*:(?![:=])' - }, { - token: 'variable', - regex: identifier - }, { - token: 'keyword.operator', - regex: '(?:\\.{3}|\\s+\\?)' - }, { - token: 'keyword.variable', - regex: '(?:@+|::|\\.\\.)', - next: 'key' - }, { - token: 'keyword.operator', - regex: '\\.\\s*', - next: 'key' - }, { - token: 'string', - regex: '\\\\\\S[^\\s,;)}\\]]*' - }, { - token: 'string.doc', - regex: '\'\'\'', - next: 'qdoc' - }, { - token: 'string.doc', - regex: '"""', - next: 'qqdoc' - }, { - token: 'string', - regex: '\'', - next: 'qstring' - }, { - token: 'string', - regex: '"', - next: 'qqstring' - }, { - token: 'string', - regex: '`', - next: 'js' - }, { - token: 'string', - regex: '<\\[', - next: 'words' - }, { - token: 'string.regex', - regex: '//', - next: 'heregex' - }, { - token: 'string.regex', - regex: '\\/(?:[^[\\/\\n\\\\]*(?:(?:\\\\.|\\[[^\\]\\n\\\\]*(?:\\\\.[^\\]\\n\\\\]*)*\\])[^[\\/\\n\\\\]*)*)\\/[gimy$]{0,4}', - next: 'key' - }, { - token: 'constant.numeric', - regex: '(?:0x[\\da-fA-F][\\da-fA-F_]*|(?:[2-9]|[12]\\d|3[0-6])r[\\da-zA-Z][\\da-zA-Z_]*|(?:\\d[\\d_]*(?:\\.\\d[\\d_]*)?|\\.\\d[\\d_]*)(?:e[+-]?\\d[\\d_]*)?[\\w$]*)' - }, { - token: 'lparen', - regex: '[({[]' - }, { - token: 'rparen', - regex: '[)}\\]]', - next: 'key' - }, { - token: 'keyword.operator', - regex: '\\S+' - }, { - token: 'text', - regex: '\\s+' - } - ], - heregex: [ - { - token: 'string.regex', - regex: '.*?//[gimy$?]{0,4}', - next: 'start' - }, { - token: 'string.regex', - regex: '\\s*#{' - }, { - token: 'comment.regex', - regex: '\\s+(?:#.*)?' - }, { - token: 'string.regex', - regex: '\\S+' - } - ], - key: [ - { - token: 'keyword.operator', - regex: '[.?@!]+' - }, { - token: 'identifier', - regex: identifier, - next: 'start' - }, { - token: 'text', - regex: '', - next: 'start' - } - ], - comment: [ - { - token: 'comment.doc', - regex: '.*?\\*/', - next: 'start' - }, { - token: 'comment.doc', - regex: '.+' - } - ], - qdoc: [ - { - token: 'string', - regex: ".*?'''", - next: 'key' - }, stringfill - ], - qqdoc: [ - { - token: 'string', - regex: '.*?"""', - next: 'key' - }, stringfill - ], - qstring: [ - { - token: 'string', - regex: '[^\\\\\']*(?:\\\\.[^\\\\\']*)*\'', - next: 'key' - }, stringfill - ], - qqstring: [ - { - token: 'string', - regex: '[^\\\\"]*(?:\\\\.[^\\\\"]*)*"', - next: 'key' - }, stringfill - ], - js: [ - { - token: 'string', - regex: '[^\\\\`]*(?:\\\\.[^\\\\`]*)*`', - next: 'key' - }, stringfill - ], - words: [ - { - token: 'string', - regex: '.*?\\]>', - next: 'key' - }, stringfill - ] - }; - for (var idx in Rules) { - var r = Rules[idx]; - if (r.splice) { - for (var i = 0, len = r.length; i < len; ++i) { - var rr = r[i]; - if (typeof rr.regex === 'string') { - Rules[idx][i].regex = new RegExp('^' + rr.regex); - } - } - } else if (typeof rr.regex === 'string') { - Rules[idx].regex = new RegExp('^' + r.regex); - } - } - - CodeMirror.defineMIME('text/x-livescript', 'livescript'); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/lua/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/lua/index.html deleted file mode 100644 index fc98b94..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/lua/index.html +++ /dev/null @@ -1,85 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Lua mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<link rel="stylesheet" href="../../theme/neat.css"> -<script src="../../addon/edit/matchbrackets.js"></script> -<script src="../../lib/codemirror.js"></script> -<script src="lua.js"></script> -<style>.CodeMirror {border: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Lua</a> - </ul> -</div> - -<article> -<h2>Lua mode</h2> -<form><textarea id="code" name="code"> ---[[ -example useless code to show lua syntax highlighting -this is multiline comment -]] - -function blahblahblah(x) - - local table = { - "asd" = 123, - "x" = 0.34, - } - if x ~= 3 then - print( x ) - elseif x == "string" - my_custom_function( 0x34 ) - else - unknown_function( "some string" ) - end - - --single line comment - -end - -function blablabla3() - - for k,v in ipairs( table ) do - --abcde.. - y=[=[ - x=[[ - x is a multi line string - ]] - but its definition is iside a highest level string! - ]=] - print(" \"\" ") - - s = math.sin( x ) - end - -end -</textarea></form> - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - matchBrackets: true, - theme: "neat" - }); - </script> - - <p>Loosely based on Franciszek - Wawrzak's <a href="http://codemirror.net/1/contrib/lua">CodeMirror - 1 mode</a>. One configuration parameter is - supported, <code>specials</code>, to which you can provide an - array of strings to have those identifiers highlighted with - the <code>lua-special</code> style.</p> - <p><strong>MIME types defined:</strong> <code>text/x-lua</code>.</p> - - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/lua/lua.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/lua/lua.js deleted file mode 100644 index 0b19abd..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/lua/lua.js +++ /dev/null @@ -1,159 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -// LUA mode. Ported to CodeMirror 2 from Franciszek Wawrzak's -// CodeMirror 1 mode. -// highlights keywords, strings, comments (no leveling supported! ("[==[")), tokens, basic indenting - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("lua", function(config, parserConfig) { - var indentUnit = config.indentUnit; - - function prefixRE(words) { - return new RegExp("^(?:" + words.join("|") + ")", "i"); - } - function wordRE(words) { - return new RegExp("^(?:" + words.join("|") + ")$", "i"); - } - var specials = wordRE(parserConfig.specials || []); - - // long list of standard functions from lua manual - var builtins = wordRE([ - "_G","_VERSION","assert","collectgarbage","dofile","error","getfenv","getmetatable","ipairs","load", - "loadfile","loadstring","module","next","pairs","pcall","print","rawequal","rawget","rawset","require", - "select","setfenv","setmetatable","tonumber","tostring","type","unpack","xpcall", - - "coroutine.create","coroutine.resume","coroutine.running","coroutine.status","coroutine.wrap","coroutine.yield", - - "debug.debug","debug.getfenv","debug.gethook","debug.getinfo","debug.getlocal","debug.getmetatable", - "debug.getregistry","debug.getupvalue","debug.setfenv","debug.sethook","debug.setlocal","debug.setmetatable", - "debug.setupvalue","debug.traceback", - - "close","flush","lines","read","seek","setvbuf","write", - - "io.close","io.flush","io.input","io.lines","io.open","io.output","io.popen","io.read","io.stderr","io.stdin", - "io.stdout","io.tmpfile","io.type","io.write", - - "math.abs","math.acos","math.asin","math.atan","math.atan2","math.ceil","math.cos","math.cosh","math.deg", - "math.exp","math.floor","math.fmod","math.frexp","math.huge","math.ldexp","math.log","math.log10","math.max", - "math.min","math.modf","math.pi","math.pow","math.rad","math.random","math.randomseed","math.sin","math.sinh", - "math.sqrt","math.tan","math.tanh", - - "os.clock","os.date","os.difftime","os.execute","os.exit","os.getenv","os.remove","os.rename","os.setlocale", - "os.time","os.tmpname", - - "package.cpath","package.loaded","package.loaders","package.loadlib","package.path","package.preload", - "package.seeall", - - "string.byte","string.char","string.dump","string.find","string.format","string.gmatch","string.gsub", - "string.len","string.lower","string.match","string.rep","string.reverse","string.sub","string.upper", - - "table.concat","table.insert","table.maxn","table.remove","table.sort" - ]); - var keywords = wordRE(["and","break","elseif","false","nil","not","or","return", - "true","function", "end", "if", "then", "else", "do", - "while", "repeat", "until", "for", "in", "local" ]); - - var indentTokens = wordRE(["function", "if","repeat","do", "\\(", "{"]); - var dedentTokens = wordRE(["end", "until", "\\)", "}"]); - var dedentPartial = prefixRE(["end", "until", "\\)", "}", "else", "elseif"]); - - function readBracket(stream) { - var level = 0; - while (stream.eat("=")) ++level; - stream.eat("["); - return level; - } - - function normal(stream, state) { - var ch = stream.next(); - if (ch == "-" && stream.eat("-")) { - if (stream.eat("[") && stream.eat("[")) - return (state.cur = bracketed(readBracket(stream), "comment"))(stream, state); - stream.skipToEnd(); - return "comment"; - } - if (ch == "\"" || ch == "'") - return (state.cur = string(ch))(stream, state); - if (ch == "[" && /[\[=]/.test(stream.peek())) - return (state.cur = bracketed(readBracket(stream), "string"))(stream, state); - if (/\d/.test(ch)) { - stream.eatWhile(/[\w.%]/); - return "number"; - } - if (/[\w_]/.test(ch)) { - stream.eatWhile(/[\w\\\-_.]/); - return "variable"; - } - return null; - } - - function bracketed(level, style) { - return function(stream, state) { - var curlev = null, ch; - while ((ch = stream.next()) != null) { - if (curlev == null) {if (ch == "]") curlev = 0;} - else if (ch == "=") ++curlev; - else if (ch == "]" && curlev == level) { state.cur = normal; break; } - else curlev = null; - } - return style; - }; - } - - function string(quote) { - return function(stream, state) { - var escaped = false, ch; - while ((ch = stream.next()) != null) { - if (ch == quote && !escaped) break; - escaped = !escaped && ch == "\\"; - } - if (!escaped) state.cur = normal; - return "string"; - }; - } - - return { - startState: function(basecol) { - return {basecol: basecol || 0, indentDepth: 0, cur: normal}; - }, - - token: function(stream, state) { - if (stream.eatSpace()) return null; - var style = state.cur(stream, state); - var word = stream.current(); - if (style == "variable") { - if (keywords.test(word)) style = "keyword"; - else if (builtins.test(word)) style = "builtin"; - else if (specials.test(word)) style = "variable-2"; - } - if ((style != "comment") && (style != "string")){ - if (indentTokens.test(word)) ++state.indentDepth; - else if (dedentTokens.test(word)) --state.indentDepth; - } - return style; - }, - - indent: function(state, textAfter) { - var closing = dedentPartial.test(textAfter); - return state.basecol + indentUnit * (state.indentDepth - (closing ? 1 : 0)); - }, - - lineComment: "--", - blockCommentStart: "--[[", - blockCommentEnd: "]]" - }; -}); - -CodeMirror.defineMIME("text/x-lua", "lua"); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/markdown/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/markdown/index.html deleted file mode 100644 index 15660c2..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/markdown/index.html +++ /dev/null @@ -1,361 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Markdown mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../../addon/edit/continuelist.js"></script> -<script src="../xml/xml.js"></script> -<script src="markdown.js"></script> -<style type="text/css"> - .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;} - .cm-s-default .cm-trailing-space-a:before, - .cm-s-default .cm-trailing-space-b:before {position: absolute; content: "\00B7"; color: #777;} - .cm-s-default .cm-trailing-space-new-line:before {position: absolute; content: "\21B5"; color: #777;} - </style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Markdown</a> - </ul> -</div> - -<article> -<h2>Markdown mode</h2> -<form><textarea id="code" name="code"> -Markdown: Basics -================ - -<ul id="ProjectSubmenu"> - <li><a href="/projects/markdown/" title="Markdown Project Page">Main</a></li> - <li><a class="selected" title="Markdown Basics">Basics</a></li> - <li><a href="/projects/markdown/syntax" title="Markdown Syntax Documentation">Syntax</a></li> - <li><a href="/projects/markdown/license" title="Pricing and License Information">License</a></li> - <li><a href="/projects/markdown/dingus" title="Online Markdown Web Form">Dingus</a></li> -</ul> - - -Getting the Gist of Markdown's Formatting Syntax ------------------------------------------------- - -This page offers a brief overview of what it's like to use Markdown. -The [syntax page] [s] provides complete, detailed documentation for -every feature, but Markdown should be very easy to pick up simply by -looking at a few examples of it in action. The examples on this page -are written in a before/after style, showing example syntax and the -HTML output produced by Markdown. - -It's also helpful to simply try Markdown out; the [Dingus] [d] is a -web application that allows you type your own Markdown-formatted text -and translate it to XHTML. - -**Note:** This document is itself written using Markdown; you -can [see the source for it by adding '.text' to the URL] [src]. - - [s]: /projects/markdown/syntax "Markdown Syntax" - [d]: /projects/markdown/dingus "Markdown Dingus" - [src]: /projects/markdown/basics.text - - -## Paragraphs, Headers, Blockquotes ## - -A paragraph is simply one or more consecutive lines of text, separated -by one or more blank lines. (A blank line is any line that looks like -a blank line -- a line containing nothing but spaces or tabs is -considered blank.) Normal paragraphs should not be indented with -spaces or tabs. - -Markdown offers two styles of headers: *Setext* and *atx*. -Setext-style headers for `<h1>` and `<h2>` are created by -"underlining" with equal signs (`=`) and hyphens (`-`), respectively. -To create an atx-style header, you put 1-6 hash marks (`#`) at the -beginning of the line -- the number of hashes equals the resulting -HTML header level. - -Blockquotes are indicated using email-style '`>`' angle brackets. - -Markdown: - - A First Level Header - ==================== - - A Second Level Header - --------------------- - - Now is the time for all good men to come to - the aid of their country. This is just a - regular paragraph. - - The quick brown fox jumped over the lazy - dog's back. - - ### Header 3 - - > This is a blockquote. - > - > This is the second paragraph in the blockquote. - > - > ## This is an H2 in a blockquote - - -Output: - - <h1>A First Level Header</h1> - - <h2>A Second Level Header</h2> - - <p>Now is the time for all good men to come to - the aid of their country. This is just a - regular paragraph.</p> - - <p>The quick brown fox jumped over the lazy - dog's back.</p> - - <h3>Header 3</h3> - - <blockquote> - <p>This is a blockquote.</p> - - <p>This is the second paragraph in the blockquote.</p> - - <h2>This is an H2 in a blockquote</h2> - </blockquote> - - - -### Phrase Emphasis ### - -Markdown uses asterisks and underscores to indicate spans of emphasis. - -Markdown: - - Some of these words *are emphasized*. - Some of these words _are emphasized also_. - - Use two asterisks for **strong emphasis**. - Or, if you prefer, __use two underscores instead__. - -Output: - - <p>Some of these words <em>are emphasized</em>. - Some of these words <em>are emphasized also</em>.</p> - - <p>Use two asterisks for <strong>strong emphasis</strong>. - Or, if you prefer, <strong>use two underscores instead</strong>.</p> - - - -## Lists ## - -Unordered (bulleted) lists use asterisks, pluses, and hyphens (`*`, -`+`, and `-`) as list markers. These three markers are -interchangable; this: - - * Candy. - * Gum. - * Booze. - -this: - - + Candy. - + Gum. - + Booze. - -and this: - - - Candy. - - Gum. - - Booze. - -all produce the same output: - - <ul> - <li>Candy.</li> - <li>Gum.</li> - <li>Booze.</li> - </ul> - -Ordered (numbered) lists use regular numbers, followed by periods, as -list markers: - - 1. Red - 2. Green - 3. Blue - -Output: - - <ol> - <li>Red</li> - <li>Green</li> - <li>Blue</li> - </ol> - -If you put blank lines between items, you'll get `<p>` tags for the -list item text. You can create multi-paragraph list items by indenting -the paragraphs by 4 spaces or 1 tab: - - * A list item. - - With multiple paragraphs. - - * Another item in the list. - -Output: - - <ul> - <li><p>A list item.</p> - <p>With multiple paragraphs.</p></li> - <li><p>Another item in the list.</p></li> - </ul> - - - -### Links ### - -Markdown supports two styles for creating links: *inline* and -*reference*. With both styles, you use square brackets to delimit the -text you want to turn into a link. - -Inline-style links use parentheses immediately after the link text. -For example: - - This is an [example link](http://example.com/). - -Output: - - <p>This is an <a href="http://example.com/"> - example link</a>.</p> - -Optionally, you may include a title attribute in the parentheses: - - This is an [example link](http://example.com/ "With a Title"). - -Output: - - <p>This is an <a href="http://example.com/" title="With a Title"> - example link</a>.</p> - -Reference-style links allow you to refer to your links by names, which -you define elsewhere in your document: - - I get 10 times more traffic from [Google][1] than from - [Yahoo][2] or [MSN][3]. - - [1]: http://google.com/ "Google" - [2]: http://search.yahoo.com/ "Yahoo Search" - [3]: http://search.msn.com/ "MSN Search" - -Output: - - <p>I get 10 times more traffic from <a href="http://google.com/" - title="Google">Google</a> than from <a href="http://search.yahoo.com/" - title="Yahoo Search">Yahoo</a> or <a href="http://search.msn.com/" - title="MSN Search">MSN</a>.</p> - -The title attribute is optional. Link names may contain letters, -numbers and spaces, but are *not* case sensitive: - - I start my morning with a cup of coffee and - [The New York Times][NY Times]. - - [ny times]: http://www.nytimes.com/ - -Output: - - <p>I start my morning with a cup of coffee and - <a href="http://www.nytimes.com/">The New York Times</a>.</p> - - -### Images ### - -Image syntax is very much like link syntax. - -Inline (titles are optional): - -  - -Reference-style: - - ![alt text][id] - - [id]: /path/to/img.jpg "Title" - -Both of the above examples produce the same output: - - <img src="/path/to/img.jpg" alt="alt text" title="Title" /> - - - -### Code ### - -In a regular paragraph, you can create code span by wrapping text in -backtick quotes. Any ampersands (`&`) and angle brackets (`<` or -`>`) will automatically be translated into HTML entities. This makes -it easy to use Markdown to write about HTML example code: - - I strongly recommend against using any `<blink>` tags. - - I wish SmartyPants used named entities like `&mdash;` - instead of decimal-encoded entites like `&#8212;`. - -Output: - - <p>I strongly recommend against using any - <code>&lt;blink&gt;</code> tags.</p> - - <p>I wish SmartyPants used named entities like - <code>&amp;mdash;</code> instead of decimal-encoded - entites like <code>&amp;#8212;</code>.</p> - - -To specify an entire block of pre-formatted code, indent every line of -the block by 4 spaces or 1 tab. Just like with code spans, `&`, `<`, -and `>` characters will be escaped automatically. - -Markdown: - - If you want your page to validate under XHTML 1.0 Strict, - you've got to put paragraph tags in your blockquotes: - - <blockquote> - <p>For example.</p> - </blockquote> - -Output: - - <p>If you want your page to validate under XHTML 1.0 Strict, - you've got to put paragraph tags in your blockquotes:</p> - - <pre><code>&lt;blockquote&gt; - &lt;p&gt;For example.&lt;/p&gt; - &lt;/blockquote&gt; - </code></pre> -</textarea></form> - - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - mode: 'markdown', - lineNumbers: true, - theme: "default", - extraKeys: {"Enter": "newlineAndIndentContinueMarkdownList"} - }); - </script> - - <p>You might want to use the <a href="../gfm/index.html">Github-Flavored Markdown mode</a> instead, which adds support for fenced code blocks and a few other things.</p> - - <p>Optionally depends on the XML mode for properly highlighted inline XML blocks.</p> - - <p><strong>MIME types defined:</strong> <code>text/x-markdown</code>.</p> - - <p><strong>Parsing/Highlighting Tests:</strong> <a href="../../test/index.html#markdown_*">normal</a>, <a href="../../test/index.html#verbose,markdown_*">verbose</a>.</p> - - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/mathematica/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/mathematica/index.html deleted file mode 100644 index 57c4298..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/mathematica/index.html +++ /dev/null @@ -1,72 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Mathematica mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel=stylesheet href=../../lib/codemirror.css> -<script src=../../lib/codemirror.js></script> -<script src=../../addon/edit/matchbrackets.js></script> -<script src=mathematica.js></script> -<style type=text/css> - .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;} -</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Mathematica</a> - </ul> -</div> - -<article> -<h2>Mathematica mode</h2> - - -<textarea id="mathematicaCode"> -(* example Mathematica code *) -(* Dualisiert wird anhand einer Polarität an einer - Quadrik $x^t Q x = 0$ mit regulärer Matrix $Q$ (also - mit $det(Q) \neq 0$), z.B. die Identitätsmatrix. - $p$ ist eine Liste von Polynomen - ein Ideal. *) -dualize::"singular" = "Q must be regular: found Det[Q]==0."; -dualize[ Q_, p_ ] := Block[ - { m, n, xv, lv, uv, vars, polys, dual }, - If[Det[Q] == 0, - Message[dualize::"singular"], - m = Length[p]; - n = Length[Q] - 1; - xv = Table[Subscript[x, i], {i, 0, n}]; - lv = Table[Subscript[l, i], {i, 1, m}]; - uv = Table[Subscript[u, i], {i, 0, n}]; - (* Konstruiere Ideal polys. *) - If[m == 0, - polys = Q.uv, - polys = Join[p, Q.uv - Transpose[Outer[D, p, xv]].lv] - ]; - (* Eliminiere die ersten n + 1 + m Variablen xv und lv - aus dem Ideal polys. *) - vars = Join[xv, lv]; - dual = GroebnerBasis[polys, uv, vars]; - (* Ersetze u mit x im Ergebnis. *) - ReplaceAll[dual, Rule[u, x]] - ] - ] -</textarea> - -<script> - var mathematicaEditor = CodeMirror.fromTextArea(document.getElementById('mathematicaCode'), { - mode: 'text/x-mathematica', - lineNumbers: true, - matchBrackets: true - }); -</script> - -<p><strong>MIME types defined:</strong> <code>text/x-mathematica</code> (Mathematica).</p> -</article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/mathematica/mathematica.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/mathematica/mathematica.js deleted file mode 100644 index d697708..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/mathematica/mathematica.js +++ /dev/null @@ -1,176 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -// Mathematica mode copyright (c) 2015 by Calin Barbat -// Based on code by Patrick Scheibe (halirutan) -// See: https://github.com/halirutan/Mathematica-Source-Highlighting/tree/master/src/lang-mma.js - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode('mathematica', function(_config, _parserConfig) { - - // used pattern building blocks - var Identifier = '[a-zA-Z\\$][a-zA-Z0-9\\$]*'; - var pBase = "(?:\\d+)"; - var pFloat = "(?:\\.\\d+|\\d+\\.\\d*|\\d+)"; - var pFloatBase = "(?:\\.\\w+|\\w+\\.\\w*|\\w+)"; - var pPrecision = "(?:`(?:`?"+pFloat+")?)"; - - // regular expressions - var reBaseForm = new RegExp('(?:'+pBase+'(?:\\^\\^'+pFloatBase+pPrecision+'?(?:\\*\\^[+-]?\\d+)?))'); - var reFloatForm = new RegExp('(?:' + pFloat + pPrecision + '?(?:\\*\\^[+-]?\\d+)?)'); - var reIdInContext = new RegExp('(?:`?)(?:' + Identifier + ')(?:`(?:' + Identifier + '))*(?:`?)'); - - function tokenBase(stream, state) { - var ch; - - // get next character - ch = stream.next(); - - // string - if (ch === '"') { - state.tokenize = tokenString; - return state.tokenize(stream, state); - } - - // comment - if (ch === '(') { - if (stream.eat('*')) { - state.commentLevel++; - state.tokenize = tokenComment; - return state.tokenize(stream, state); - } - } - - // go back one character - stream.backUp(1); - - // look for numbers - // Numbers in a baseform - if (stream.match(reBaseForm, true, false)) { - return 'number'; - } - - // Mathematica numbers. Floats (1.2, .2, 1.) can have optionally a precision (`float) or an accuracy definition - // (``float). Note: while 1.2` is possible 1.2`` is not. At the end an exponent (float*^+12) can follow. - if (stream.match(reFloatForm, true, false)) { - return 'number'; - } - - /* In[23] and Out[34] */ - if (stream.match(/(?:In|Out)\[[0-9]*\]/, true, false)) { - return 'atom'; - } - - // usage - if (stream.match(/([a-zA-Z\$]+(?:`?[a-zA-Z0-9\$])*::usage)/, true, false)) { - return 'meta'; - } - - // message - if (stream.match(/([a-zA-Z\$]+(?:`?[a-zA-Z0-9\$])*::[a-zA-Z\$][a-zA-Z0-9\$]*):?/, true, false)) { - return 'string-2'; - } - - // this makes a look-ahead match for something like variable:{_Integer} - // the match is then forwarded to the mma-patterns tokenizer. - if (stream.match(/([a-zA-Z\$][a-zA-Z0-9\$]*\s*:)(?:(?:[a-zA-Z\$][a-zA-Z0-9\$]*)|(?:[^:=>~@\^\&\*\)\[\]'\?,\|])).*/, true, false)) { - return 'variable-2'; - } - - // catch variables which are used together with Blank (_), BlankSequence (__) or BlankNullSequence (___) - // Cannot start with a number, but can have numbers at any other position. Examples - // blub__Integer, a1_, b34_Integer32 - if (stream.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+[a-zA-Z\$][a-zA-Z0-9\$]*/, true, false)) { - return 'variable-2'; - } - if (stream.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+/, true, false)) { - return 'variable-2'; - } - if (stream.match(/_+[a-zA-Z\$][a-zA-Z0-9\$]*/, true, false)) { - return 'variable-2'; - } - - // Named characters in Mathematica, like \[Gamma]. - if (stream.match(/\\\[[a-zA-Z\$][a-zA-Z0-9\$]*\]/, true, false)) { - return 'variable-3'; - } - - // Match all braces separately - if (stream.match(/(?:\[|\]|{|}|\(|\))/, true, false)) { - return 'bracket'; - } - - // Catch Slots (#, ##, #3, ##9 and the V10 named slots #name). I have never seen someone using more than one digit after #, so we match - // only one. - if (stream.match(/(?:#[a-zA-Z\$][a-zA-Z0-9\$]*|#+[0-9]?)/, true, false)) { - return 'variable-2'; - } - - // Literals like variables, keywords, functions - if (stream.match(reIdInContext, true, false)) { - return 'keyword'; - } - - // operators. Note that operators like @@ or /; are matched separately for each symbol. - if (stream.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%)/, true, false)) { - return 'operator'; - } - - // everything else is an error - stream.next(); // advance the stream. - return 'error'; - } - - function tokenString(stream, state) { - var next, end = false, escaped = false; - while ((next = stream.next()) != null) { - if (next === '"' && !escaped) { - end = true; - break; - } - escaped = !escaped && next === '\\'; - } - if (end && !escaped) { - state.tokenize = tokenBase; - } - return 'string'; - }; - - function tokenComment(stream, state) { - var prev, next; - while(state.commentLevel > 0 && (next = stream.next()) != null) { - if (prev === '(' && next === '*') state.commentLevel++; - if (prev === '*' && next === ')') state.commentLevel--; - prev = next; - } - if (state.commentLevel <= 0) { - state.tokenize = tokenBase; - } - return 'comment'; - } - - return { - startState: function() {return {tokenize: tokenBase, commentLevel: 0};}, - token: function(stream, state) { - if (stream.eatSpace()) return null; - return state.tokenize(stream, state); - }, - blockCommentStart: "(*", - blockCommentEnd: "*)" - }; -}); - -CodeMirror.defineMIME('text/x-mathematica', { - name: 'mathematica' -}); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/mbox/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/mbox/index.html deleted file mode 100644 index 248ea98..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/mbox/index.html +++ /dev/null @@ -1,44 +0,0 @@ -<!doctype html> - -<title>CodeMirror: mbox mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="mbox.js"></script> -<style>.CodeMirror { border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">mbox</a> - </ul> -</div> - -<article> -<h2>mbox mode</h2> -<form><textarea id="code" name="code"> -From timothygu99@gmail.com Sun Apr 17 01:40:43 2016 -From: Timothy Gu <timothygu99@gmail.com> -Date: Sat, 16 Apr 2016 18:40:43 -0700 -Subject: mbox mode -Message-ID: <Z8d+bTT50U/az94FZnyPkDjZmW0=@gmail.com> - -mbox mode is working! - -Timothy -</textarea></form> - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), {}); - </script> - - <p><strong>MIME types defined:</strong> <code>application/mbox</code>.</p> - - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/mbox/mbox.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/mbox/mbox.js deleted file mode 100644 index ba2416a..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/mbox/mbox.js +++ /dev/null @@ -1,129 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -var rfc2822 = [ - "From", "Sender", "Reply-To", "To", "Cc", "Bcc", "Message-ID", - "In-Reply-To", "References", "Resent-From", "Resent-Sender", "Resent-To", - "Resent-Cc", "Resent-Bcc", "Resent-Message-ID", "Return-Path", "Received" -]; -var rfc2822NoEmail = [ - "Date", "Subject", "Comments", "Keywords", "Resent-Date" -]; - -CodeMirror.registerHelper("hintWords", "mbox", rfc2822.concat(rfc2822NoEmail)); - -var whitespace = /^[ \t]/; -var separator = /^From /; // See RFC 4155 -var rfc2822Header = new RegExp("^(" + rfc2822.join("|") + "): "); -var rfc2822HeaderNoEmail = new RegExp("^(" + rfc2822NoEmail.join("|") + "): "); -var header = /^[^:]+:/; // Optional fields defined in RFC 2822 -var email = /^[^ ]+@[^ ]+/; -var untilEmail = /^.*?(?=[^ ]+?@[^ ]+)/; -var bracketedEmail = /^<.*?>/; -var untilBracketedEmail = /^.*?(?=<.*>)/; - -function styleForHeader(header) { - if (header === "Subject") return "header"; - return "string"; -} - -function readToken(stream, state) { - if (stream.sol()) { - // From last line - state.inSeparator = false; - if (state.inHeader && stream.match(whitespace)) { - // Header folding - return null; - } else { - state.inHeader = false; - state.header = null; - } - - if (stream.match(separator)) { - state.inHeaders = true; - state.inSeparator = true; - return "atom"; - } - - var match; - var emailPermitted = false; - if ((match = stream.match(rfc2822HeaderNoEmail)) || - (emailPermitted = true) && (match = stream.match(rfc2822Header))) { - state.inHeaders = true; - state.inHeader = true; - state.emailPermitted = emailPermitted; - state.header = match[1]; - return "atom"; - } - - // Use vim's heuristics: recognize custom headers only if the line is in a - // block of legitimate headers. - if (state.inHeaders && (match = stream.match(header))) { - state.inHeader = true; - state.emailPermitted = true; - state.header = match[1]; - return "atom"; - } - - state.inHeaders = false; - stream.skipToEnd(); - return null; - } - - if (state.inSeparator) { - if (stream.match(email)) return "link"; - if (stream.match(untilEmail)) return "atom"; - stream.skipToEnd(); - return "atom"; - } - - if (state.inHeader) { - var style = styleForHeader(state.header); - - if (state.emailPermitted) { - if (stream.match(bracketedEmail)) return style + " link"; - if (stream.match(untilBracketedEmail)) return style; - } - stream.skipToEnd(); - return style; - } - - stream.skipToEnd(); - return null; -}; - -CodeMirror.defineMode("mbox", function() { - return { - startState: function() { - return { - // Is in a mbox separator - inSeparator: false, - // Is in a mail header - inHeader: false, - // If bracketed email is permitted. Only applicable when inHeader - emailPermitted: false, - // Name of current header - header: null, - // Is in a region of mail headers - inHeaders: false - }; - }, - token: readToken, - blankLine: function(state) { - state.inHeaders = state.inSeparator = state.inHeader = false; - } - }; -}); - -CodeMirror.defineMIME("application/mbox", "mbox"); -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/meta.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/meta.js deleted file mode 100644 index 1e078ee..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/meta.js +++ /dev/null @@ -1,208 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { - "use strict"; - - CodeMirror.modeInfo = [ - {name: "APL", mime: "text/apl", mode: "apl", ext: ["dyalog", "apl"]}, - {name: "PGP", mimes: ["application/pgp", "application/pgp-keys", "application/pgp-signature"], mode: "asciiarmor", ext: ["pgp"]}, - {name: "ASN.1", mime: "text/x-ttcn-asn", mode: "asn.1", ext: ["asn", "asn1"]}, - {name: "Asterisk", mime: "text/x-asterisk", mode: "asterisk", file: /^extensions\.conf$/i}, - {name: "Brainfuck", mime: "text/x-brainfuck", mode: "brainfuck", ext: ["b", "bf"]}, - {name: "C", mime: "text/x-csrc", mode: "clike", ext: ["c", "h"]}, - {name: "C++", mime: "text/x-c++src", mode: "clike", ext: ["cpp", "c++", "cc", "cxx", "hpp", "h++", "hh", "hxx"], alias: ["cpp"]}, - {name: "Cobol", mime: "text/x-cobol", mode: "cobol", ext: ["cob", "cpy"]}, - {name: "C#", mime: "text/x-csharp", mode: "clike", ext: ["cs"], alias: ["csharp"]}, - {name: "Clojure", mime: "text/x-clojure", mode: "clojure", ext: ["clj", "cljc", "cljx"]}, - {name: "ClojureScript", mime: "text/x-clojurescript", mode: "clojure", ext: ["cljs"]}, - {name: "Closure Stylesheets (GSS)", mime: "text/x-gss", mode: "css", ext: ["gss"]}, - {name: "CMake", mime: "text/x-cmake", mode: "cmake", ext: ["cmake", "cmake.in"], file: /^CMakeLists.txt$/}, - {name: "CoffeeScript", mime: "text/x-coffeescript", mode: "coffeescript", ext: ["coffee"], alias: ["coffee", "coffee-script"]}, - {name: "Common Lisp", mime: "text/x-common-lisp", mode: "commonlisp", ext: ["cl", "lisp", "el"], alias: ["lisp"]}, - {name: "Cypher", mime: "application/x-cypher-query", mode: "cypher", ext: ["cyp", "cypher"]}, - {name: "Cython", mime: "text/x-cython", mode: "python", ext: ["pyx", "pxd", "pxi"]}, - {name: "Crystal", mime: "text/x-crystal", mode: "crystal", ext: ["cr"]}, - {name: "CSS", mime: "text/css", mode: "css", ext: ["css"]}, - {name: "CQL", mime: "text/x-cassandra", mode: "sql", ext: ["cql"]}, - {name: "D", mime: "text/x-d", mode: "d", ext: ["d"]}, - {name: "Dart", mimes: ["application/dart", "text/x-dart"], mode: "dart", ext: ["dart"]}, - {name: "diff", mime: "text/x-diff", mode: "diff", ext: ["diff", "patch"]}, - {name: "Django", mime: "text/x-django", mode: "django"}, - {name: "Dockerfile", mime: "text/x-dockerfile", mode: "dockerfile", file: /^Dockerfile$/}, - {name: "DTD", mime: "application/xml-dtd", mode: "dtd", ext: ["dtd"]}, - {name: "Dylan", mime: "text/x-dylan", mode: "dylan", ext: ["dylan", "dyl", "intr"]}, - {name: "EBNF", mime: "text/x-ebnf", mode: "ebnf"}, - {name: "ECL", mime: "text/x-ecl", mode: "ecl", ext: ["ecl"]}, - {name: "edn", mime: "application/edn", mode: "clojure", ext: ["edn"]}, - {name: "Eiffel", mime: "text/x-eiffel", mode: "eiffel", ext: ["e"]}, - {name: "Elm", mime: "text/x-elm", mode: "elm", ext: ["elm"]}, - {name: "Embedded Javascript", mime: "application/x-ejs", mode: "htmlembedded", ext: ["ejs"]}, - {name: "Embedded Ruby", mime: "application/x-erb", mode: "htmlembedded", ext: ["erb"]}, - {name: "Erlang", mime: "text/x-erlang", mode: "erlang", ext: ["erl"]}, - {name: "Factor", mime: "text/x-factor", mode: "factor", ext: ["factor"]}, - {name: "FCL", mime: "text/x-fcl", mode: "fcl"}, - {name: "Forth", mime: "text/x-forth", mode: "forth", ext: ["forth", "fth", "4th"]}, - {name: "Fortran", mime: "text/x-fortran", mode: "fortran", ext: ["f", "for", "f77", "f90"]}, - {name: "F#", mime: "text/x-fsharp", mode: "mllike", ext: ["fs"], alias: ["fsharp"]}, - {name: "Gas", mime: "text/x-gas", mode: "gas", ext: ["s"]}, - {name: "Gherkin", mime: "text/x-feature", mode: "gherkin", ext: ["feature"]}, - {name: "GitHub Flavored Markdown", mime: "text/x-gfm", mode: "gfm", file: /^(readme|contributing|history).md$/i}, - {name: "Go", mime: "text/x-go", mode: "go", ext: ["go"]}, - {name: "Groovy", mime: "text/x-groovy", mode: "groovy", ext: ["groovy", "gradle"], file: /^Jenkinsfile$/}, - {name: "HAML", mime: "text/x-haml", mode: "haml", ext: ["haml"]}, - {name: "Haskell", mime: "text/x-haskell", mode: "haskell", ext: ["hs"]}, - {name: "Haskell (Literate)", mime: "text/x-literate-haskell", mode: "haskell-literate", ext: ["lhs"]}, - {name: "Haxe", mime: "text/x-haxe", mode: "haxe", ext: ["hx"]}, - {name: "HXML", mime: "text/x-hxml", mode: "haxe", ext: ["hxml"]}, - {name: "ASP.NET", mime: "application/x-aspx", mode: "htmlembedded", ext: ["aspx"], alias: ["asp", "aspx"]}, - {name: "HTML", mime: "text/html", mode: "htmlmixed", ext: ["html", "htm"], alias: ["xhtml"]}, - {name: "HTTP", mime: "message/http", mode: "http"}, - {name: "IDL", mime: "text/x-idl", mode: "idl", ext: ["pro"]}, - {name: "Pug", mime: "text/x-pug", mode: "pug", ext: ["jade", "pug"], alias: ["jade"]}, - {name: "Java", mime: "text/x-java", mode: "clike", ext: ["java"]}, - {name: "Java Server Pages", mime: "application/x-jsp", mode: "htmlembedded", ext: ["jsp"], alias: ["jsp"]}, - {name: "JavaScript", mimes: ["text/javascript", "text/ecmascript", "application/javascript", "application/x-javascript", "application/ecmascript"], - mode: "javascript", ext: ["js"], alias: ["ecmascript", "js", "node"]}, - {name: "JSON", mimes: ["application/json", "application/x-json"], mode: "javascript", ext: ["json", "map"], alias: ["json5"]}, - {name: "JSON-LD", mime: "application/ld+json", mode: "javascript", ext: ["jsonld"], alias: ["jsonld"]}, - {name: "JSX", mime: "text/jsx", mode: "jsx", ext: ["jsx"]}, - {name: "Jinja2", mime: "null", mode: "jinja2"}, - {name: "Julia", mime: "text/x-julia", mode: "julia", ext: ["jl"]}, - {name: "Kotlin", mime: "text/x-kotlin", mode: "clike", ext: ["kt"]}, - {name: "LESS", mime: "text/x-less", mode: "css", ext: ["less"]}, - {name: "LiveScript", mime: "text/x-livescript", mode: "livescript", ext: ["ls"], alias: ["ls"]}, - {name: "Lua", mime: "text/x-lua", mode: "lua", ext: ["lua"]}, - {name: "Markdown", mime: "text/x-markdown", mode: "markdown", ext: ["markdown", "md", "mkd"]}, - {name: "mIRC", mime: "text/mirc", mode: "mirc"}, - {name: "MariaDB SQL", mime: "text/x-mariadb", mode: "sql"}, - {name: "Mathematica", mime: "text/x-mathematica", mode: "mathematica", ext: ["m", "nb"]}, - {name: "Modelica", mime: "text/x-modelica", mode: "modelica", ext: ["mo"]}, - {name: "MUMPS", mime: "text/x-mumps", mode: "mumps", ext: ["mps"]}, - {name: "MS SQL", mime: "text/x-mssql", mode: "sql"}, - {name: "mbox", mime: "application/mbox", mode: "mbox", ext: ["mbox"]}, - {name: "MySQL", mime: "text/x-mysql", mode: "sql"}, - {name: "Nginx", mime: "text/x-nginx-conf", mode: "nginx", file: /nginx.*\.conf$/i}, - {name: "NSIS", mime: "text/x-nsis", mode: "nsis", ext: ["nsh", "nsi"]}, - {name: "NTriples", mime: "text/n-triples", mode: "ntriples", ext: ["nt"]}, - {name: "Objective C", mime: "text/x-objectivec", mode: "clike", ext: ["m", "mm"], alias: ["objective-c", "objc"]}, - {name: "OCaml", mime: "text/x-ocaml", mode: "mllike", ext: ["ml", "mli", "mll", "mly"]}, - {name: "Octave", mime: "text/x-octave", mode: "octave", ext: ["m"]}, - {name: "Oz", mime: "text/x-oz", mode: "oz", ext: ["oz"]}, - {name: "Pascal", mime: "text/x-pascal", mode: "pascal", ext: ["p", "pas"]}, - {name: "PEG.js", mime: "null", mode: "pegjs", ext: ["jsonld"]}, - {name: "Perl", mime: "text/x-perl", mode: "perl", ext: ["pl", "pm"]}, - {name: "PHP", mime: "application/x-httpd-php", mode: "php", ext: ["php", "php3", "php4", "php5", "phtml"]}, - {name: "Pig", mime: "text/x-pig", mode: "pig", ext: ["pig"]}, - {name: "Plain Text", mime: "text/plain", mode: "null", ext: ["txt", "text", "conf", "def", "list", "log"]}, - {name: "PLSQL", mime: "text/x-plsql", mode: "sql", ext: ["pls"]}, - {name: "PowerShell", mime: "application/x-powershell", mode: "powershell", ext: ["ps1", "psd1", "psm1"]}, - {name: "Properties files", mime: "text/x-properties", mode: "properties", ext: ["properties", "ini", "in"], alias: ["ini", "properties"]}, - {name: "ProtoBuf", mime: "text/x-protobuf", mode: "protobuf", ext: ["proto"]}, - {name: "Python", mime: "text/x-python", mode: "python", ext: ["BUILD", "bzl", "py", "pyw"], file: /^(BUCK|BUILD)$/}, - {name: "Puppet", mime: "text/x-puppet", mode: "puppet", ext: ["pp"]}, - {name: "Q", mime: "text/x-q", mode: "q", ext: ["q"]}, - {name: "R", mime: "text/x-rsrc", mode: "r", ext: ["r"], alias: ["rscript"]}, - {name: "reStructuredText", mime: "text/x-rst", mode: "rst", ext: ["rst"], alias: ["rst"]}, - {name: "RPM Changes", mime: "text/x-rpm-changes", mode: "rpm"}, - {name: "RPM Spec", mime: "text/x-rpm-spec", mode: "rpm", ext: ["spec"]}, - {name: "Ruby", mime: "text/x-ruby", mode: "ruby", ext: ["rb"], alias: ["jruby", "macruby", "rake", "rb", "rbx"]}, - {name: "Rust", mime: "text/x-rustsrc", mode: "rust", ext: ["rs"]}, - {name: "SAS", mime: "text/x-sas", mode: "sas", ext: ["sas"]}, - {name: "Sass", mime: "text/x-sass", mode: "sass", ext: ["sass"]}, - {name: "Scala", mime: "text/x-scala", mode: "clike", ext: ["scala"]}, - {name: "Scheme", mime: "text/x-scheme", mode: "scheme", ext: ["scm", "ss"]}, - {name: "SCSS", mime: "text/x-scss", mode: "css", ext: ["scss"]}, - {name: "Shell", mime: "text/x-sh", mode: "shell", ext: ["sh", "ksh", "bash"], alias: ["bash", "sh", "zsh"], file: /^PKGBUILD$/}, - {name: "Sieve", mime: "application/sieve", mode: "sieve", ext: ["siv", "sieve"]}, - {name: "Slim", mimes: ["text/x-slim", "application/x-slim"], mode: "slim", ext: ["slim"]}, - {name: "Smalltalk", mime: "text/x-stsrc", mode: "smalltalk", ext: ["st"]}, - {name: "Smarty", mime: "text/x-smarty", mode: "smarty", ext: ["tpl"]}, - {name: "Solr", mime: "text/x-solr", mode: "solr"}, - {name: "Soy", mime: "text/x-soy", mode: "soy", ext: ["soy"], alias: ["closure template"]}, - {name: "SPARQL", mime: "application/sparql-query", mode: "sparql", ext: ["rq", "sparql"], alias: ["sparul"]}, - {name: "Spreadsheet", mime: "text/x-spreadsheet", mode: "spreadsheet", alias: ["excel", "formula"]}, - {name: "SQL", mime: "text/x-sql", mode: "sql", ext: ["sql"]}, - {name: "Squirrel", mime: "text/x-squirrel", mode: "clike", ext: ["nut"]}, - {name: "Swift", mime: "text/x-swift", mode: "swift", ext: ["swift"]}, - {name: "sTeX", mime: "text/x-stex", mode: "stex"}, - {name: "LaTeX", mime: "text/x-latex", mode: "stex", ext: ["text", "ltx"], alias: ["tex"]}, - {name: "SystemVerilog", mime: "text/x-systemverilog", mode: "verilog", ext: ["v"]}, - {name: "Tcl", mime: "text/x-tcl", mode: "tcl", ext: ["tcl"]}, - {name: "Textile", mime: "text/x-textile", mode: "textile", ext: ["textile"]}, - {name: "TiddlyWiki ", mime: "text/x-tiddlywiki", mode: "tiddlywiki"}, - {name: "Tiki wiki", mime: "text/tiki", mode: "tiki"}, - {name: "TOML", mime: "text/x-toml", mode: "toml", ext: ["toml"]}, - {name: "Tornado", mime: "text/x-tornado", mode: "tornado"}, - {name: "troff", mime: "text/troff", mode: "troff", ext: ["1", "2", "3", "4", "5", "6", "7", "8", "9"]}, - {name: "TTCN", mime: "text/x-ttcn", mode: "ttcn", ext: ["ttcn", "ttcn3", "ttcnpp"]}, - {name: "TTCN_CFG", mime: "text/x-ttcn-cfg", mode: "ttcn-cfg", ext: ["cfg"]}, - {name: "Turtle", mime: "text/turtle", mode: "turtle", ext: ["ttl"]}, - {name: "TypeScript", mime: "application/typescript", mode: "javascript", ext: ["ts"], alias: ["ts"]}, - {name: "Twig", mime: "text/x-twig", mode: "twig"}, - {name: "Web IDL", mime: "text/x-webidl", mode: "webidl", ext: ["webidl"]}, - {name: "VB.NET", mime: "text/x-vb", mode: "vb", ext: ["vb"]}, - {name: "VBScript", mime: "text/vbscript", mode: "vbscript", ext: ["vbs"]}, - {name: "Velocity", mime: "text/velocity", mode: "velocity", ext: ["vtl"]}, - {name: "Verilog", mime: "text/x-verilog", mode: "verilog", ext: ["v"]}, - {name: "VHDL", mime: "text/x-vhdl", mode: "vhdl", ext: ["vhd", "vhdl"]}, - {name: "XML", mimes: ["application/xml", "text/xml"], mode: "xml", ext: ["xml", "xsl", "xsd"], alias: ["rss", "wsdl", "xsd"]}, - {name: "XQuery", mime: "application/xquery", mode: "xquery", ext: ["xy", "xquery"]}, - {name: "Yacas", mime: "text/x-yacas", mode: "yacas", ext: ["ys"]}, - {name: "YAML", mime: "text/x-yaml", mode: "yaml", ext: ["yaml", "yml"], alias: ["yml"]}, - {name: "Z80", mime: "text/x-z80", mode: "z80", ext: ["z80"]}, - {name: "mscgen", mime: "text/x-mscgen", mode: "mscgen", ext: ["mscgen", "mscin", "msc"]}, - {name: "xu", mime: "text/x-xu", mode: "mscgen", ext: ["xu"]}, - {name: "msgenny", mime: "text/x-msgenny", mode: "mscgen", ext: ["msgenny"]} - ]; - // Ensure all modes have a mime property for backwards compatibility - for (var i = 0; i < CodeMirror.modeInfo.length; i++) { - var info = CodeMirror.modeInfo[i]; - if (info.mimes) info.mime = info.mimes[0]; - } - - CodeMirror.findModeByMIME = function(mime) { - mime = mime.toLowerCase(); - for (var i = 0; i < CodeMirror.modeInfo.length; i++) { - var info = CodeMirror.modeInfo[i]; - if (info.mime == mime) return info; - if (info.mimes) for (var j = 0; j < info.mimes.length; j++) - if (info.mimes[j] == mime) return info; - } - }; - - CodeMirror.findModeByExtension = function(ext) { - for (var i = 0; i < CodeMirror.modeInfo.length; i++) { - var info = CodeMirror.modeInfo[i]; - if (info.ext) for (var j = 0; j < info.ext.length; j++) - if (info.ext[j] == ext) return info; - } - }; - - CodeMirror.findModeByFileName = function(filename) { - for (var i = 0; i < CodeMirror.modeInfo.length; i++) { - var info = CodeMirror.modeInfo[i]; - if (info.file && info.file.test(filename)) return info; - } - var dot = filename.lastIndexOf("."); - var ext = dot > -1 && filename.substring(dot + 1, filename.length); - if (ext) return CodeMirror.findModeByExtension(ext); - }; - - CodeMirror.findModeByName = function(name) { - name = name.toLowerCase(); - for (var i = 0; i < CodeMirror.modeInfo.length; i++) { - var info = CodeMirror.modeInfo[i]; - if (info.name.toLowerCase() == name) return info; - if (info.alias) for (var j = 0; j < info.alias.length; j++) - if (info.alias[j].toLowerCase() == name) return info; - } - }; -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/mirc/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/mirc/index.html deleted file mode 100644 index fd2f34e..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/mirc/index.html +++ /dev/null @@ -1,160 +0,0 @@ -<!doctype html> - -<title>CodeMirror: mIRC mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<link rel="stylesheet" href="../../theme/twilight.css"> -<script src="../../lib/codemirror.js"></script> -<script src="mirc.js"></script> -<style>.CodeMirror {border: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">mIRC</a> - </ul> -</div> - -<article> -<h2>mIRC mode</h2> -<form><textarea id="code" name="code"> -;AKA Nick Tracker by Ford_Lawnmower irc.GeekShed.net #Script-Help -;*****************************************************************************; -;**Start Setup -;Change JoinDisplay, below, for On Join AKA Display. On = 1 - Off = 0 -alias -l JoinDisplay { return 1 } -;Change MaxNicks, below, to the number of nicknames you want to store for each hostmask. I wouldn't go over 400 with this ;/ -alias -l MaxNicks { return 20 } -;Change AKALogo, below, To the text you want displayed before each AKA result. -alias -l AKALogo { return 06 05A06K07A 06 } -;**End Setup -;*****************************************************************************; -On *:Join:#: { - if ($nick == $me) { .timer 1 1 ialupdateCheck $chan } - NickNamesAdd $nick $+($network,$wildsite) - if ($JoinDisplay) { .timerNickNames $+ $nick 1 2 NickNames.display $nick $chan $network $wildsite } -} -on *:Nick: { NickNamesAdd $newnick $+($network,$wildsite) $nick } -alias -l NickNames.display { - if ($gettok($hget(NickNames,$+($3,$4)),0,126) > 1) { - echo -g $2 $AKALogo $+(09,$1) $AKALogo 07 $mid($replace($hget(NickNames,$+($3,$4)),$chr(126),$chr(44)),2,-1) - } -} -alias -l NickNamesAdd { - if ($hget(NickNames,$2)) { - if (!$regex($hget(NickNames,$2),/~\Q $+ $replacecs($1,\E,\E\\E\Q) $+ \E~/i)) { - if ($gettok($hget(NickNames,$2),0,126) <= $MaxNicks) { - hadd NickNames $2 $+($hget(NickNames,$2),$1,~) - } - else { - hadd NickNames $2 $+($mid($hget(NickNames,$2),$pos($hget(NickNames,$2),~,2)),$1,~) - } - } - } - else { - hadd -m NickNames $2 $+(~,$1,~,$iif($3,$+($3,~))) - } -} -alias -l Fix.All.MindUser { - var %Fix.Count = $hfind(NickNames,/[^~]+[0-9]{4}~/,0,r).data - while (%Fix.Count) { - if ($Fix.MindUser($hget(NickNames,$hfind(NickNames,/[^~]+[0-9]{4}~/,%Fix.Count,r).data))) { - echo -ag Record %Fix.Count - $v1 - Was Cleaned - hadd NickNames $hfind(NickNames,/[^~]+[0-9]{4}~/,%Fix.Count,r).data $v1 - } - dec %Fix.Count - } -} -alias -l Fix.MindUser { return $regsubex($1,/[^~]+[0-9]{4}~/g,$null) } -menu nicklist,query { - - - .AKA - ..Check $$1: { - if ($gettok($hget(NickNames,$+($network,$address($1,2))),0,126) > 1) { - NickNames.display $1 $active $network $address($1,2) - } - else { echo -ag $AKALogo $+(09,$1) 07has not been known by any other nicknames while I have been watching. } - } - ..Cleanup $$1:hadd NickNames $+($network,$address($1,2)) $fix.minduser($hget(NickNames,$+($network,$address($1,2)))) - ..Clear $$1:hadd NickNames $+($network,$address($1,2)) $+(~,$1,~) - ..AKA Search Dialog:dialog $iif($dialog(AKA_Search),-v,-m) AKA_Search AKA_Search - - -} -menu status,channel { - - - .AKA - ..AKA Search Dialog:dialog $iif($dialog(AKA_Search),-v,-m) AKA_Search AKA_Search - ..Clean All Records:Fix.All.Minduser - - -} -dialog AKA_Search { - title "AKA Search Engine" - size -1 -1 206 221 - option dbu - edit "", 1, 8 5 149 10, autohs - button "Search", 2, 163 4 32 12 - radio "Search HostMask", 4, 61 22 55 10 - radio "Search Nicknames", 5, 123 22 56 10 - list 6, 8 38 190 169, sort extsel vsbar - button "Check Selected", 7, 67 206 40 12 - button "Close", 8, 160 206 38 12, cancel - box "Search Type", 3, 11 17 183 18 - button "Copy to Clipboard", 9, 111 206 46 12 -} -On *:Dialog:Aka_Search:init:*: { did -c $dname 5 } -On *:Dialog:Aka_Search:Sclick:2,7,9: { - if ($did == 2) && ($did($dname,1)) { - did -r $dname 6 - var %search $+(*,$v1,*), %type $iif($did($dname,5).state,data,item), %matches = $hfind(NickNames,%search,0,w). [ $+ [ %type ] ] - while (%matches) { - did -a $dname 6 $hfind(NickNames,%search,%matches,w). [ $+ [ %type ] ] - dec %matches - } - did -c $dname 6 1 - } - elseif ($did == 7) && ($did($dname,6).seltext) { echo -ga $AKALogo 07 $mid($replace($hget(NickNames,$v1),$chr(126),$chr(44)),2,-1) } - elseif ($did == 9) && ($did($dname,6).seltext) { clipboard $mid($v1,$pos($v1,*,1)) } -} -On *:Start:{ - if (!$hget(NickNames)) { hmake NickNames 10 } - if ($isfile(NickNames.hsh)) { hload NickNames NickNames.hsh } -} -On *:Exit: { if ($hget(NickNames)) { hsave NickNames NickNames.hsh } } -On *:Disconnect: { if ($hget(NickNames)) { hsave NickNames NickNames.hsh } } -On *:Unload: { hfree NickNames } -alias -l ialupdateCheck { - inc -z $+(%,ialupdateCheck,$network) $calc($nick($1,0) / 4) - ;If your ial is already being updated on join .who $1 out. - ;If you are using /names to update ial you will still need this line. - .who $1 -} -Raw 352:*: { - if ($($+(%,ialupdateCheck,$network),2)) haltdef - NickNamesAdd $6 $+($network,$address($6,2)) -} -Raw 315:*: { - if ($($+(%,ialupdateCheck,$network),2)) haltdef -} - -</textarea></form> - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - theme: "twilight", - lineNumbers: true, - matchBrackets: true, - indentUnit: 4, - mode: "text/mirc" - }); - </script> - - <p><strong>MIME types defined:</strong> <code>text/mirc</code>.</p> - - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/mirc/mirc.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/mirc/mirc.js deleted file mode 100644 index f0d5c6a..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/mirc/mirc.js +++ /dev/null @@ -1,193 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -//mIRC mode by Ford_Lawnmower :: Based on Velocity mode by Steve O'Hara - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMIME("text/mirc", "mirc"); -CodeMirror.defineMode("mirc", function() { - function parseWords(str) { - var obj = {}, words = str.split(" "); - for (var i = 0; i < words.length; ++i) obj[words[i]] = true; - return obj; - } - var specials = parseWords("$! $$ $& $? $+ $abook $abs $active $activecid " + - "$activewid $address $addtok $agent $agentname $agentstat $agentver " + - "$alias $and $anick $ansi2mirc $aop $appactive $appstate $asc $asctime " + - "$asin $atan $avoice $away $awaymsg $awaytime $banmask $base $bfind " + - "$binoff $biton $bnick $bvar $bytes $calc $cb $cd $ceil $chan $chanmodes " + - "$chantypes $chat $chr $cid $clevel $click $cmdbox $cmdline $cnick $color " + - "$com $comcall $comchan $comerr $compact $compress $comval $cos $count " + - "$cr $crc $creq $crlf $ctime $ctimer $ctrlenter $date $day $daylight " + - "$dbuh $dbuw $dccignore $dccport $dde $ddename $debug $decode $decompress " + - "$deltok $devent $dialog $did $didreg $didtok $didwm $disk $dlevel $dll " + - "$dllcall $dname $dns $duration $ebeeps $editbox $emailaddr $encode $error " + - "$eval $event $exist $feof $ferr $fgetc $file $filename $filtered $finddir " + - "$finddirn $findfile $findfilen $findtok $fline $floor $fopen $fread $fserve " + - "$fulladdress $fulldate $fullname $fullscreen $get $getdir $getdot $gettok $gmt " + - "$group $halted $hash $height $hfind $hget $highlight $hnick $hotline " + - "$hotlinepos $ial $ialchan $ibl $idle $iel $ifmatch $ignore $iif $iil " + - "$inelipse $ini $inmidi $inpaste $inpoly $input $inrect $inroundrect " + - "$insong $instok $int $inwave $ip $isalias $isbit $isdde $isdir $isfile " + - "$isid $islower $istok $isupper $keychar $keyrpt $keyval $knick $lactive " + - "$lactivecid $lactivewid $left $len $level $lf $line $lines $link $lock " + - "$lock $locked $log $logstamp $logstampfmt $longfn $longip $lower $ltimer " + - "$maddress $mask $matchkey $matchtok $md5 $me $menu $menubar $menucontext " + - "$menutype $mid $middir $mircdir $mircexe $mircini $mklogfn $mnick $mode " + - "$modefirst $modelast $modespl $mouse $msfile $network $newnick $nick $nofile " + - "$nopath $noqt $not $notags $notify $null $numeric $numok $oline $onpoly " + - "$opnick $or $ord $os $passivedcc $pic $play $pnick $port $portable $portfree " + - "$pos $prefix $prop $protect $puttok $qt $query $rand $r $rawmsg $read $readomo " + - "$readn $regex $regml $regsub $regsubex $remove $remtok $replace $replacex " + - "$reptok $result $rgb $right $round $scid $scon $script $scriptdir $scriptline " + - "$sdir $send $server $serverip $sfile $sha1 $shortfn $show $signal $sin " + - "$site $sline $snick $snicks $snotify $sock $sockbr $sockerr $sockname " + - "$sorttok $sound $sqrt $ssl $sreq $sslready $status $strip $str $stripped " + - "$syle $submenu $switchbar $tan $target $ticks $time $timer $timestamp " + - "$timestampfmt $timezone $tip $titlebar $toolbar $treebar $trust $ulevel " + - "$ulist $upper $uptime $url $usermode $v1 $v2 $var $vcmd $vcmdstat $vcmdver " + - "$version $vnick $vol $wid $width $wildsite $wildtok $window $wrap $xor"); - var keywords = parseWords("abook ajinvite alias aline ame amsg anick aop auser autojoin avoice " + - "away background ban bcopy beep bread break breplace bset btrunc bunset bwrite " + - "channel clear clearall cline clipboard close cnick color comclose comopen " + - "comreg continue copy creq ctcpreply ctcps dcc dccserver dde ddeserver " + - "debug dec describe dialog did didtok disable disconnect dlevel dline dll " + - "dns dqwindow drawcopy drawdot drawfill drawline drawpic drawrect drawreplace " + - "drawrot drawsave drawscroll drawtext ebeeps echo editbox emailaddr enable " + - "events exit fclose filter findtext finger firewall flash flist flood flush " + - "flushini font fopen fseek fsend fserve fullname fwrite ghide gload gmove " + - "gopts goto gplay gpoint gqreq groups gshow gsize gstop gtalk gunload hadd " + - "halt haltdef hdec hdel help hfree hinc hload hmake hop hsave ial ialclear " + - "ialmark identd if ignore iline inc invite iuser join kick linesep links list " + - "load loadbuf localinfo log mdi me menubar mkdir mnick mode msg nick noop notice " + - "notify omsg onotice part partall pdcc perform play playctrl pop protect pvoice " + - "qme qmsg query queryn quit raw reload remini remote remove rename renwin " + - "reseterror resetidle return rlevel rline rmdir run ruser save savebuf saveini " + - "say scid scon server set showmirc signam sline sockaccept sockclose socklist " + - "socklisten sockmark sockopen sockpause sockread sockrename sockudp sockwrite " + - "sound speak splay sreq strip switchbar timer timestamp titlebar tnick tokenize " + - "toolbar topic tray treebar ulist unload unset unsetall updatenl url uwho " + - "var vcadd vcmd vcrem vol while whois window winhelp write writeint if isalnum " + - "isalpha isaop isavoice isban ischan ishop isignore isin isincs isletter islower " + - "isnotify isnum ison isop isprotect isreg isupper isvoice iswm iswmcs " + - "elseif else goto menu nicklist status title icon size option text edit " + - "button check radio box scroll list combo link tab item"); - var functions = parseWords("if elseif else and not or eq ne in ni for foreach while switch"); - var isOperatorChar = /[+\-*&%=<>!?^\/\|]/; - function chain(stream, state, f) { - state.tokenize = f; - return f(stream, state); - } - function tokenBase(stream, state) { - var beforeParams = state.beforeParams; - state.beforeParams = false; - var ch = stream.next(); - if (/[\[\]{}\(\),\.]/.test(ch)) { - if (ch == "(" && beforeParams) state.inParams = true; - else if (ch == ")") state.inParams = false; - return null; - } - else if (/\d/.test(ch)) { - stream.eatWhile(/[\w\.]/); - return "number"; - } - else if (ch == "\\") { - stream.eat("\\"); - stream.eat(/./); - return "number"; - } - else if (ch == "/" && stream.eat("*")) { - return chain(stream, state, tokenComment); - } - else if (ch == ";" && stream.match(/ *\( *\(/)) { - return chain(stream, state, tokenUnparsed); - } - else if (ch == ";" && !state.inParams) { - stream.skipToEnd(); - return "comment"; - } - else if (ch == '"') { - stream.eat(/"/); - return "keyword"; - } - else if (ch == "$") { - stream.eatWhile(/[$_a-z0-9A-Z\.:]/); - if (specials && specials.propertyIsEnumerable(stream.current().toLowerCase())) { - return "keyword"; - } - else { - state.beforeParams = true; - return "builtin"; - } - } - else if (ch == "%") { - stream.eatWhile(/[^,^\s^\(^\)]/); - state.beforeParams = true; - return "string"; - } - else if (isOperatorChar.test(ch)) { - stream.eatWhile(isOperatorChar); - return "operator"; - } - else { - stream.eatWhile(/[\w\$_{}]/); - var word = stream.current().toLowerCase(); - if (keywords && keywords.propertyIsEnumerable(word)) - return "keyword"; - if (functions && functions.propertyIsEnumerable(word)) { - state.beforeParams = true; - return "keyword"; - } - return null; - } - } - function tokenComment(stream, state) { - var maybeEnd = false, ch; - while (ch = stream.next()) { - if (ch == "/" && maybeEnd) { - state.tokenize = tokenBase; - break; - } - maybeEnd = (ch == "*"); - } - return "comment"; - } - function tokenUnparsed(stream, state) { - var maybeEnd = 0, ch; - while (ch = stream.next()) { - if (ch == ";" && maybeEnd == 2) { - state.tokenize = tokenBase; - break; - } - if (ch == ")") - maybeEnd++; - else if (ch != " ") - maybeEnd = 0; - } - return "meta"; - } - return { - startState: function() { - return { - tokenize: tokenBase, - beforeParams: false, - inParams: false - }; - }, - token: function(stream, state) { - if (stream.eatSpace()) return null; - return state.tokenize(stream, state); - } - }; -}); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/mllike/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/mllike/index.html deleted file mode 100644 index 5923af8..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/mllike/index.html +++ /dev/null @@ -1,179 +0,0 @@ -<!doctype html> - -<title>CodeMirror: ML-like mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel=stylesheet href=../../lib/codemirror.css> -<script src=../../lib/codemirror.js></script> -<script src=../../addon/edit/matchbrackets.js></script> -<script src=mllike.js></script> -<style type=text/css> - .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;} -</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">ML-like</a> - </ul> -</div> - -<article> -<h2>OCaml mode</h2> - - -<textarea id="ocamlCode"> -(* Summing a list of integers *) -let rec sum xs = - match xs with - | [] -> 0 - | x :: xs' -> x + sum xs' - -(* Quicksort *) -let rec qsort = function - | [] -> [] - | pivot :: rest -> - let is_less x = x < pivot in - let left, right = List.partition is_less rest in - qsort left @ [pivot] @ qsort right - -(* Fibonacci Sequence *) -let rec fib_aux n a b = - match n with - | 0 -> a - | _ -> fib_aux (n - 1) (a + b) a -let fib n = fib_aux n 0 1 - -(* Birthday paradox *) -let year_size = 365. - -let rec birthday_paradox prob people = - let prob' = (year_size -. float people) /. year_size *. prob in - if prob' < 0.5 then - Printf.printf "answer = %d\n" (people+1) - else - birthday_paradox prob' (people+1) ;; - -birthday_paradox 1.0 1 - -(* Church numerals *) -let zero f x = x -let succ n f x = f (n f x) -let one = succ zero -let two = succ (succ zero) -let add n1 n2 f x = n1 f (n2 f x) -let to_string n = n (fun k -> "S" ^ k) "0" -let _ = to_string (add (succ two) two) - -(* Elementary functions *) -let square x = x * x;; -let rec fact x = - if x <= 1 then 1 else x * fact (x - 1);; - -(* Automatic memory management *) -let l = 1 :: 2 :: 3 :: [];; -[1; 2; 3];; -5 :: l;; - -(* Polymorphism: sorting lists *) -let rec sort = function - | [] -> [] - | x :: l -> insert x (sort l) - -and insert elem = function - | [] -> [elem] - | x :: l -> - if elem < x then elem :: x :: l else x :: insert elem l;; - -(* Imperative features *) -let add_polynom p1 p2 = - let n1 = Array.length p1 - and n2 = Array.length p2 in - let result = Array.create (max n1 n2) 0 in - for i = 0 to n1 - 1 do result.(i) <- p1.(i) done; - for i = 0 to n2 - 1 do result.(i) <- result.(i) + p2.(i) done; - result;; -add_polynom [| 1; 2 |] [| 1; 2; 3 |];; - -(* We may redefine fact using a reference cell and a for loop *) -let fact n = - let result = ref 1 in - for i = 2 to n do - result := i * !result - done; - !result;; -fact 5;; - -(* Triangle (graphics) *) -let () = - ignore( Glut.init Sys.argv ); - Glut.initDisplayMode ~double_buffer:true (); - ignore (Glut.createWindow ~title:"OpenGL Demo"); - let angle t = 10. *. t *. t in - let render () = - GlClear.clear [ `color ]; - GlMat.load_identity (); - GlMat.rotate ~angle: (angle (Sys.time ())) ~z:1. (); - GlDraw.begins `triangles; - List.iter GlDraw.vertex2 [-1., -1.; 0., 1.; 1., -1.]; - GlDraw.ends (); - Glut.swapBuffers () in - GlMat.mode `modelview; - Glut.displayFunc ~cb:render; - Glut.idleFunc ~cb:(Some Glut.postRedisplay); - Glut.mainLoop () - -(* A Hundred Lines of Caml - http://caml.inria.fr/about/taste.en.html *) -(* OCaml page on Wikipedia - http://en.wikipedia.org/wiki/OCaml *) -</textarea> - -<h2>F# mode</h2> -<textarea id="fsharpCode"> -module CodeMirror.FSharp - -let rec fib = function - | 0 -> 0 - | 1 -> 1 - | n -> fib (n - 1) + fib (n - 2) - -type Point = - { - x : int - y : int - } - -type Color = - | Red - | Green - | Blue - -[0 .. 10] -|> List.map ((+) 2) -|> List.fold (fun x y -> x + y) 0 -|> printf "%i" -</textarea> - - -<script> - var ocamlEditor = CodeMirror.fromTextArea(document.getElementById('ocamlCode'), { - mode: 'text/x-ocaml', - lineNumbers: true, - matchBrackets: true - }); - - var fsharpEditor = CodeMirror.fromTextArea(document.getElementById('fsharpCode'), { - mode: 'text/x-fsharp', - lineNumbers: true, - matchBrackets: true - }); -</script> - -<p><strong>MIME types defined:</strong> <code>text/x-ocaml</code> (OCaml) and <code>text/x-fsharp</code> (F#).</p> -</article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/mllike/mllike.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/mllike/mllike.js deleted file mode 100644 index bf0b8a6..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/mllike/mllike.js +++ /dev/null @@ -1,205 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode('mllike', function(_config, parserConfig) { - var words = { - 'let': 'keyword', - 'rec': 'keyword', - 'in': 'keyword', - 'of': 'keyword', - 'and': 'keyword', - 'if': 'keyword', - 'then': 'keyword', - 'else': 'keyword', - 'for': 'keyword', - 'to': 'keyword', - 'while': 'keyword', - 'do': 'keyword', - 'done': 'keyword', - 'fun': 'keyword', - 'function': 'keyword', - 'val': 'keyword', - 'type': 'keyword', - 'mutable': 'keyword', - 'match': 'keyword', - 'with': 'keyword', - 'try': 'keyword', - 'open': 'builtin', - 'ignore': 'builtin', - 'begin': 'keyword', - 'end': 'keyword' - }; - - var extraWords = parserConfig.extraWords || {}; - for (var prop in extraWords) { - if (extraWords.hasOwnProperty(prop)) { - words[prop] = parserConfig.extraWords[prop]; - } - } - - function tokenBase(stream, state) { - var ch = stream.next(); - - if (ch === '"') { - state.tokenize = tokenString; - return state.tokenize(stream, state); - } - if (ch === '(') { - if (stream.eat('*')) { - state.commentLevel++; - state.tokenize = tokenComment; - return state.tokenize(stream, state); - } - } - if (ch === '~') { - stream.eatWhile(/\w/); - return 'variable-2'; - } - if (ch === '`') { - stream.eatWhile(/\w/); - return 'quote'; - } - if (ch === '/' && parserConfig.slashComments && stream.eat('/')) { - stream.skipToEnd(); - return 'comment'; - } - if (/\d/.test(ch)) { - stream.eatWhile(/[\d]/); - if (stream.eat('.')) { - stream.eatWhile(/[\d]/); - } - return 'number'; - } - if ( /[+\-*&%=<>!?|]/.test(ch)) { - return 'operator'; - } - stream.eatWhile(/\w/); - var cur = stream.current(); - return words.hasOwnProperty(cur) ? words[cur] : 'variable'; - } - - function tokenString(stream, state) { - var next, end = false, escaped = false; - while ((next = stream.next()) != null) { - if (next === '"' && !escaped) { - end = true; - break; - } - escaped = !escaped && next === '\\'; - } - if (end && !escaped) { - state.tokenize = tokenBase; - } - return 'string'; - }; - - function tokenComment(stream, state) { - var prev, next; - while(state.commentLevel > 0 && (next = stream.next()) != null) { - if (prev === '(' && next === '*') state.commentLevel++; - if (prev === '*' && next === ')') state.commentLevel--; - prev = next; - } - if (state.commentLevel <= 0) { - state.tokenize = tokenBase; - } - return 'comment'; - } - - return { - startState: function() {return {tokenize: tokenBase, commentLevel: 0};}, - token: function(stream, state) { - if (stream.eatSpace()) return null; - return state.tokenize(stream, state); - }, - - blockCommentStart: "(*", - blockCommentEnd: "*)", - lineComment: parserConfig.slashComments ? "//" : null - }; -}); - -CodeMirror.defineMIME('text/x-ocaml', { - name: 'mllike', - extraWords: { - 'succ': 'keyword', - 'trace': 'builtin', - 'exit': 'builtin', - 'print_string': 'builtin', - 'print_endline': 'builtin', - 'true': 'atom', - 'false': 'atom', - 'raise': 'keyword' - } -}); - -CodeMirror.defineMIME('text/x-fsharp', { - name: 'mllike', - extraWords: { - 'abstract': 'keyword', - 'as': 'keyword', - 'assert': 'keyword', - 'base': 'keyword', - 'class': 'keyword', - 'default': 'keyword', - 'delegate': 'keyword', - 'downcast': 'keyword', - 'downto': 'keyword', - 'elif': 'keyword', - 'exception': 'keyword', - 'extern': 'keyword', - 'finally': 'keyword', - 'global': 'keyword', - 'inherit': 'keyword', - 'inline': 'keyword', - 'interface': 'keyword', - 'internal': 'keyword', - 'lazy': 'keyword', - 'let!': 'keyword', - 'member' : 'keyword', - 'module': 'keyword', - 'namespace': 'keyword', - 'new': 'keyword', - 'null': 'keyword', - 'override': 'keyword', - 'private': 'keyword', - 'public': 'keyword', - 'return': 'keyword', - 'return!': 'keyword', - 'select': 'keyword', - 'static': 'keyword', - 'struct': 'keyword', - 'upcast': 'keyword', - 'use': 'keyword', - 'use!': 'keyword', - 'val': 'keyword', - 'when': 'keyword', - 'yield': 'keyword', - 'yield!': 'keyword', - - 'List': 'builtin', - 'Seq': 'builtin', - 'Map': 'builtin', - 'Set': 'builtin', - 'int': 'builtin', - 'string': 'builtin', - 'raise': 'builtin', - 'failwith': 'builtin', - 'not': 'builtin', - 'true': 'builtin', - 'false': 'builtin' - }, - slashComments: true -}); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/modelica/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/modelica/index.html deleted file mode 100644 index 408c3b1..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/modelica/index.html +++ /dev/null @@ -1,67 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Modelica mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../../addon/edit/matchbrackets.js"></script> -<link rel="stylesheet" href="../../addon/hint/show-hint.css"> -<script src="../../addon/hint/show-hint.js"></script> -<script src="modelica.js"></script> -<style>.CodeMirror {border: 2px inset #dee;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Modelica</a> - </ul> -</div> - -<article> -<h2>Modelica mode</h2> - -<div><textarea id="modelica"> -model BouncingBall - parameter Real e = 0.7; - parameter Real g = 9.81; - Real h(start=1); - Real v; - Boolean flying(start=true); - Boolean impact; - Real v_new; -equation - impact = h <= 0.0; - der(v) = if flying then -g else 0; - der(h) = v; - when {h <= 0.0 and v <= 0.0, impact} then - v_new = if edge(impact) then -e*pre(v) else 0; - flying = v_new > 0; - reinit(v, v_new); - end when; - annotation (uses(Modelica(version="3.2"))); -end BouncingBall; -</textarea></div> - - <script> - var modelicaEditor = CodeMirror.fromTextArea(document.getElementById("modelica"), { - lineNumbers: true, - matchBrackets: true, - mode: "text/x-modelica" - }); - var mac = CodeMirror.keyMap.default == CodeMirror.keyMap.macDefault; - CodeMirror.keyMap.default[(mac ? "Cmd" : "Ctrl") + "-Space"] = "autocomplete"; - </script> - - <p>Simple mode that tries to handle Modelica as well as it can.</p> - - <p><strong>MIME types defined:</strong> <code>text/x-modelica</code> - (Modlica code).</p> -</article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/modelica/modelica.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/modelica/modelica.js deleted file mode 100644 index 77ec7a3..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/modelica/modelica.js +++ /dev/null @@ -1,245 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -// Modelica support for CodeMirror, copyright (c) by Lennart Ochel - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -}) - -(function(CodeMirror) { - "use strict"; - - CodeMirror.defineMode("modelica", function(config, parserConfig) { - - var indentUnit = config.indentUnit; - var keywords = parserConfig.keywords || {}; - var builtin = parserConfig.builtin || {}; - var atoms = parserConfig.atoms || {}; - - var isSingleOperatorChar = /[;=\(:\),{}.*<>+\-\/^\[\]]/; - var isDoubleOperatorChar = /(:=|<=|>=|==|<>|\.\+|\.\-|\.\*|\.\/|\.\^)/; - var isDigit = /[0-9]/; - var isNonDigit = /[_a-zA-Z]/; - - function tokenLineComment(stream, state) { - stream.skipToEnd(); - state.tokenize = null; - return "comment"; - } - - function tokenBlockComment(stream, state) { - var maybeEnd = false, ch; - while (ch = stream.next()) { - if (maybeEnd && ch == "/") { - state.tokenize = null; - break; - } - maybeEnd = (ch == "*"); - } - return "comment"; - } - - function tokenString(stream, state) { - var escaped = false, ch; - while ((ch = stream.next()) != null) { - if (ch == '"' && !escaped) { - state.tokenize = null; - state.sol = false; - break; - } - escaped = !escaped && ch == "\\"; - } - - return "string"; - } - - function tokenIdent(stream, state) { - stream.eatWhile(isDigit); - while (stream.eat(isDigit) || stream.eat(isNonDigit)) { } - - - var cur = stream.current(); - - if(state.sol && (cur == "package" || cur == "model" || cur == "when" || cur == "connector")) state.level++; - else if(state.sol && cur == "end" && state.level > 0) state.level--; - - state.tokenize = null; - state.sol = false; - - if (keywords.propertyIsEnumerable(cur)) return "keyword"; - else if (builtin.propertyIsEnumerable(cur)) return "builtin"; - else if (atoms.propertyIsEnumerable(cur)) return "atom"; - else return "variable"; - } - - function tokenQIdent(stream, state) { - while (stream.eat(/[^']/)) { } - - state.tokenize = null; - state.sol = false; - - if(stream.eat("'")) - return "variable"; - else - return "error"; - } - - function tokenUnsignedNuber(stream, state) { - stream.eatWhile(isDigit); - if (stream.eat('.')) { - stream.eatWhile(isDigit); - } - if (stream.eat('e') || stream.eat('E')) { - if (!stream.eat('-')) - stream.eat('+'); - stream.eatWhile(isDigit); - } - - state.tokenize = null; - state.sol = false; - return "number"; - } - - // Interface - return { - startState: function() { - return { - tokenize: null, - level: 0, - sol: true - }; - }, - - token: function(stream, state) { - if(state.tokenize != null) { - return state.tokenize(stream, state); - } - - if(stream.sol()) { - state.sol = true; - } - - // WHITESPACE - if(stream.eatSpace()) { - state.tokenize = null; - return null; - } - - var ch = stream.next(); - - // LINECOMMENT - if(ch == '/' && stream.eat('/')) { - state.tokenize = tokenLineComment; - } - // BLOCKCOMMENT - else if(ch == '/' && stream.eat('*')) { - state.tokenize = tokenBlockComment; - } - // TWO SYMBOL TOKENS - else if(isDoubleOperatorChar.test(ch+stream.peek())) { - stream.next(); - state.tokenize = null; - return "operator"; - } - // SINGLE SYMBOL TOKENS - else if(isSingleOperatorChar.test(ch)) { - state.tokenize = null; - return "operator"; - } - // IDENT - else if(isNonDigit.test(ch)) { - state.tokenize = tokenIdent; - } - // Q-IDENT - else if(ch == "'" && stream.peek() && stream.peek() != "'") { - state.tokenize = tokenQIdent; - } - // STRING - else if(ch == '"') { - state.tokenize = tokenString; - } - // UNSIGNED_NUBER - else if(isDigit.test(ch)) { - state.tokenize = tokenUnsignedNuber; - } - // ERROR - else { - state.tokenize = null; - return "error"; - } - - return state.tokenize(stream, state); - }, - - indent: function(state, textAfter) { - if (state.tokenize != null) return CodeMirror.Pass; - - var level = state.level; - if(/(algorithm)/.test(textAfter)) level--; - if(/(equation)/.test(textAfter)) level--; - if(/(initial algorithm)/.test(textAfter)) level--; - if(/(initial equation)/.test(textAfter)) level--; - if(/(end)/.test(textAfter)) level--; - - if(level > 0) - return indentUnit*level; - else - return 0; - }, - - blockCommentStart: "/*", - blockCommentEnd: "*/", - lineComment: "//" - }; - }); - - function words(str) { - var obj = {}, words = str.split(" "); - for (var i=0; i<words.length; ++i) - obj[words[i]] = true; - return obj; - } - - var modelicaKeywords = "algorithm and annotation assert block break class connect connector constant constrainedby der discrete each else elseif elsewhen encapsulated end enumeration equation expandable extends external false final flow for function if import impure in initial inner input loop model not operator or outer output package parameter partial protected public pure record redeclare replaceable return stream then true type when while within"; - var modelicaBuiltin = "abs acos actualStream asin atan atan2 cardinality ceil cos cosh delay div edge exp floor getInstanceName homotopy inStream integer log log10 mod pre reinit rem semiLinear sign sin sinh spatialDistribution sqrt tan tanh"; - var modelicaAtoms = "Real Boolean Integer String"; - - function def(mimes, mode) { - if (typeof mimes == "string") - mimes = [mimes]; - - var words = []; - - function add(obj) { - if (obj) - for (var prop in obj) - if (obj.hasOwnProperty(prop)) - words.push(prop); - } - - add(mode.keywords); - add(mode.builtin); - add(mode.atoms); - - if (words.length) { - mode.helperType = mimes[0]; - CodeMirror.registerHelper("hintWords", mimes[0], words); - } - - for (var i=0; i<mimes.length; ++i) - CodeMirror.defineMIME(mimes[i], mode); - } - - def(["text/x-modelica"], { - name: "modelica", - keywords: words(modelicaKeywords), - builtin: words(modelicaBuiltin), - atoms: words(modelicaAtoms) - }); -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/mscgen/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/mscgen/index.html deleted file mode 100644 index 8c28ee6..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/mscgen/index.html +++ /dev/null @@ -1,151 +0,0 @@ -<!doctype html> - -<title>CodeMirror: MscGen mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="mscgen.js"></script> -<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">MscGen</a> - </ul> -</div> - -<article> -<h2>MscGen mode</h2> - -<div><textarea id="mscgen-code"> -# Sample mscgen program -# See http://www.mcternan.me.uk/mscgen or -# https://sverweij.github.io/mscgen_js for more samples -msc { - # options - hscale="1.2"; - - # entities/ lifelines - a [label="Entity A"], - b [label="Entity B", linecolor="red", arclinecolor="red", textbgcolor="pink"], - c [label="Entity C"]; - - # arcs/ messages - a => c [label="doSomething(args)"]; - b => c [label="doSomething(args)"]; - c >> * [label="everyone asked me", arcskip="1"]; - c =>> c [label="doing something"]; - c -x * [label="report back", arcskip="1"]; - |||; - --- [label="shows's over, however ..."]; - b => a [label="did you see c doing something?"]; - a -> b [label="nope"]; - b :> a [label="shall we ask again?"]; - a => b [label="naah"]; - ...; -} -</textarea></div> - -<h2>Xù mode</h2> - -<div><textarea id="xu-code"> -# Xù - expansions to MscGen to support inline expressions -# https://github.com/sverweij/mscgen_js/blob/master/wikum/xu.md -# More samples: https://sverweij.github.io/mscgen_js -msc { - hscale="0.8", - width="700"; - - a, - b [label="change store"], - c, - d [label="necro queue"], - e [label="natalis queue"], - f; - - a =>> b [label="get change list()"]; - a alt f [label="changes found"] { /* alt is a xu specific keyword*/ - b >> a [label="list of changes"]; - a =>> c [label="cull old stuff (list of changes)"]; - b loop e [label="for each change"] { // loop is xu specific as well... - /* - * Interesting stuff happens. - */ - c =>> b [label="get change()"]; - b >> c [label="change"]; - c alt e [label="change too old"] { - c =>> d [label="queue(change)"]; - --- [label="change newer than latest run"]; - c =>> e [label="queue(change)"]; - --- [label="all other cases"]; - ||| [label="leave well alone"]; - }; - }; - - c >> a [label="done - processing"]; - - /* shucks! nothing found ...*/ - --- [label="nothing found"]; - b >> a [label="nothing"]; - a note a [label="silent exit"]; - }; -} -</textarea></div> - -<h2>MsGenny mode</h2> -<div><textarea id="msgenny-code"> -# MsGenny - simplified version of MscGen / Xù -# https://github.com/sverweij/mscgen_js/blob/master/wikum/msgenny.md -# More samples: https://sverweij.github.io/mscgen_js -a -> b : a -> b (signal); -a => b : a => b (method); -b >> a : b >> a (return value); -a =>> b : a =>> b (callback); -a -x b : a -x b (lost); -a :> b : a :> b (emphasis); -a .. b : a .. b (dotted); -a -- b : "a -- b straight line"; -a note a : a note a\n(note), -b box b : b box b\n(action); -a rbox a : a rbox a\n(reference), -b abox b : b abox b\n(state/ condition); -||| : ||| (empty row); -... : ... (omitted row); ---- : --- (comment); -</textarea></div> - - <p> - Simple mode for highlighting MscGen and two derived sequence - chart languages. - </p> - - <script> - var mscgenEditor = CodeMirror.fromTextArea(document.getElementById("mscgen-code"), { - lineNumbers: true, - mode: "text/x-mscgen", - }); - var xuEditor = CodeMirror.fromTextArea(document.getElementById("xu-code"), { - lineNumbers: true, - mode: "text/x-xu", - }); - var msgennyEditor = CodeMirror.fromTextArea(document.getElementById("msgenny-code"), { - lineNumbers: true, - mode: "text/x-msgenny", - }); - </script> - - <p><strong>MIME types defined:</strong> - <code>text/x-mscgen</code> - <code>text/x-xu</code> - <code>text/x-msgenny</code> - </p> - -</article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/mscgen/mscgen.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/mscgen/mscgen.js deleted file mode 100644 index d61b470..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/mscgen/mscgen.js +++ /dev/null @@ -1,169 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -// mode(s) for the sequence chart dsl's mscgen, xù and msgenny -// For more information on mscgen, see the site of the original author: -// http://www.mcternan.me.uk/mscgen -// -// This mode for mscgen and the two derivative languages were -// originally made for use in the mscgen_js interpreter -// (https://sverweij.github.io/mscgen_js) - -(function(mod) { - if ( typeof exports == "object" && typeof module == "object")// CommonJS - mod(require("../../lib/codemirror")); - else if ( typeof define == "function" && define.amd)// AMD - define(["../../lib/codemirror"], mod); - else// Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { - "use strict"; - - var languages = { - mscgen: { - "keywords" : ["msc"], - "options" : ["hscale", "width", "arcgradient", "wordwraparcs"], - "attributes" : ["label", "idurl", "id", "url", "linecolor", "linecolour", "textcolor", "textcolour", "textbgcolor", "textbgcolour", "arclinecolor", "arclinecolour", "arctextcolor", "arctextcolour", "arctextbgcolor", "arctextbgcolour", "arcskip"], - "brackets" : ["\\{", "\\}"], // [ and ] are brackets too, but these get handled in with lists - "arcsWords" : ["note", "abox", "rbox", "box"], - "arcsOthers" : ["\\|\\|\\|", "\\.\\.\\.", "---", "--", "<->", "==", "<<=>>", "<=>", "\\.\\.", "<<>>", "::", "<:>", "->", "=>>", "=>", ">>", ":>", "<-", "<<=", "<=", "<<", "<:", "x-", "-x"], - "singlecomment" : ["//", "#"], - "operators" : ["="] - }, - xu: { - "keywords" : ["msc"], - "options" : ["hscale", "width", "arcgradient", "wordwraparcs", "watermark"], - "attributes" : ["label", "idurl", "id", "url", "linecolor", "linecolour", "textcolor", "textcolour", "textbgcolor", "textbgcolour", "arclinecolor", "arclinecolour", "arctextcolor", "arctextcolour", "arctextbgcolor", "arctextbgcolour", "arcskip"], - "brackets" : ["\\{", "\\}"], // [ and ] are brackets too, but these get handled in with lists - "arcsWords" : ["note", "abox", "rbox", "box", "alt", "else", "opt", "break", "par", "seq", "strict", "neg", "critical", "ignore", "consider", "assert", "loop", "ref", "exc"], - "arcsOthers" : ["\\|\\|\\|", "\\.\\.\\.", "---", "--", "<->", "==", "<<=>>", "<=>", "\\.\\.", "<<>>", "::", "<:>", "->", "=>>", "=>", ">>", ":>", "<-", "<<=", "<=", "<<", "<:", "x-", "-x"], - "singlecomment" : ["//", "#"], - "operators" : ["="] - }, - msgenny: { - "keywords" : null, - "options" : ["hscale", "width", "arcgradient", "wordwraparcs", "watermark"], - "attributes" : null, - "brackets" : ["\\{", "\\}"], - "arcsWords" : ["note", "abox", "rbox", "box", "alt", "else", "opt", "break", "par", "seq", "strict", "neg", "critical", "ignore", "consider", "assert", "loop", "ref", "exc"], - "arcsOthers" : ["\\|\\|\\|", "\\.\\.\\.", "---", "--", "<->", "==", "<<=>>", "<=>", "\\.\\.", "<<>>", "::", "<:>", "->", "=>>", "=>", ">>", ":>", "<-", "<<=", "<=", "<<", "<:", "x-", "-x"], - "singlecomment" : ["//", "#"], - "operators" : ["="] - } - } - - CodeMirror.defineMode("mscgen", function(_, modeConfig) { - var language = languages[modeConfig && modeConfig.language || "mscgen"] - return { - startState: startStateFn, - copyState: copyStateFn, - token: produceTokenFunction(language), - lineComment : "#", - blockCommentStart : "/*", - blockCommentEnd : "*/" - }; - }); - - CodeMirror.defineMIME("text/x-mscgen", "mscgen"); - CodeMirror.defineMIME("text/x-xu", {name: "mscgen", language: "xu"}); - CodeMirror.defineMIME("text/x-msgenny", {name: "mscgen", language: "msgenny"}); - - function wordRegexpBoundary(pWords) { - return new RegExp("\\b(" + pWords.join("|") + ")\\b", "i"); - } - - function wordRegexp(pWords) { - return new RegExp("(" + pWords.join("|") + ")", "i"); - } - - function startStateFn() { - return { - inComment : false, - inString : false, - inAttributeList : false, - inScript : false - }; - } - - function copyStateFn(pState) { - return { - inComment : pState.inComment, - inString : pState.inString, - inAttributeList : pState.inAttributeList, - inScript : pState.inScript - }; - } - - function produceTokenFunction(pConfig) { - - return function(pStream, pState) { - if (pStream.match(wordRegexp(pConfig.brackets), true, true)) { - return "bracket"; - } - /* comments */ - if (!pState.inComment) { - if (pStream.match(/\/\*[^\*\/]*/, true, true)) { - pState.inComment = true; - return "comment"; - } - if (pStream.match(wordRegexp(pConfig.singlecomment), true, true)) { - pStream.skipToEnd(); - return "comment"; - } - } - if (pState.inComment) { - if (pStream.match(/[^\*\/]*\*\//, true, true)) - pState.inComment = false; - else - pStream.skipToEnd(); - return "comment"; - } - /* strings */ - if (!pState.inString && pStream.match(/\"(\\\"|[^\"])*/, true, true)) { - pState.inString = true; - return "string"; - } - if (pState.inString) { - if (pStream.match(/[^\"]*\"/, true, true)) - pState.inString = false; - else - pStream.skipToEnd(); - return "string"; - } - /* keywords & operators */ - if (!!pConfig.keywords && pStream.match(wordRegexpBoundary(pConfig.keywords), true, true)) - return "keyword"; - - if (pStream.match(wordRegexpBoundary(pConfig.options), true, true)) - return "keyword"; - - if (pStream.match(wordRegexpBoundary(pConfig.arcsWords), true, true)) - return "keyword"; - - if (pStream.match(wordRegexp(pConfig.arcsOthers), true, true)) - return "keyword"; - - if (!!pConfig.operators && pStream.match(wordRegexp(pConfig.operators), true, true)) - return "operator"; - - /* attribute lists */ - if (!pConfig.inAttributeList && !!pConfig.attributes && pStream.match(/\[/, true, true)) { - pConfig.inAttributeList = true; - return "bracket"; - } - if (pConfig.inAttributeList) { - if (pConfig.attributes !== null && pStream.match(wordRegexpBoundary(pConfig.attributes), true, true)) { - return "attribute"; - } - if (pStream.match(/]/, true, true)) { - pConfig.inAttributeList = false; - return "bracket"; - } - } - - pStream.next(); - return "base"; - }; - } - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/mscgen/mscgen_test.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/mscgen/mscgen_test.js deleted file mode 100644 index e319a39..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/mscgen/mscgen_test.js +++ /dev/null @@ -1,75 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function() { - var mode = CodeMirror.getMode({indentUnit: 2}, "mscgen"); - function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); } - - MT("empty chart", - "[keyword msc][bracket {]", - "[base ]", - "[bracket }]" - ); - - MT("comments", - "[comment // a single line comment]", - "[comment # another single line comment /* and */ ignored here]", - "[comment /* A multi-line comment even though it contains]", - "[comment msc keywords and \"quoted text\"*/]"); - - MT("strings", - "[string \"// a string\"]", - "[string \"a string running over]", - "[string two lines\"]", - "[string \"with \\\"escaped quote\"]" - ); - - MT("xù/ msgenny keywords classify as 'base'", - "[base watermark]", - "[base alt loop opt ref else break par seq assert]" - ); - - MT("mscgen options classify as keyword", - "[keyword hscale]", "[keyword width]", "[keyword arcgradient]", "[keyword wordwraparcs]" - ); - - MT("mscgen arcs classify as keyword", - "[keyword note]","[keyword abox]","[keyword rbox]","[keyword box]", - "[keyword |||...---]", "[keyword ..--==::]", - "[keyword ->]", "[keyword <-]", "[keyword <->]", - "[keyword =>]", "[keyword <=]", "[keyword <=>]", - "[keyword =>>]", "[keyword <<=]", "[keyword <<=>>]", - "[keyword >>]", "[keyword <<]", "[keyword <<>>]", - "[keyword -x]", "[keyword x-]", "[keyword -X]", "[keyword X-]", - "[keyword :>]", "[keyword <:]", "[keyword <:>]" - ); - - MT("within an attribute list, attributes classify as attribute", - "[bracket [[][attribute label]", - "[attribute id]","[attribute url]","[attribute idurl]", - "[attribute linecolor]","[attribute linecolour]","[attribute textcolor]","[attribute textcolour]","[attribute textbgcolor]","[attribute textbgcolour]", - "[attribute arclinecolor]","[attribute arclinecolour]","[attribute arctextcolor]","[attribute arctextcolour]","[attribute arctextbgcolor]","[attribute arctextbgcolour]", - "[attribute arcskip][bracket ]]]" - ); - - MT("outside an attribute list, attributes classify as base", - "[base label]", - "[base id]","[base url]","[base idurl]", - "[base linecolor]","[base linecolour]","[base textcolor]","[base textcolour]","[base textbgcolor]","[base textbgcolour]", - "[base arclinecolor]","[base arclinecolour]","[base arctextcolor]","[base arctextcolour]","[base arctextbgcolor]","[base arctextbgcolour]", - "[base arcskip]" - ); - - MT("a typical program", - "[comment # typical mscgen program]", - "[keyword msc][base ][bracket {]", - "[keyword wordwraparcs][operator =][string \"true\"][base , ][keyword hscale][operator =][string \"0.8\"][keyword arcgradient][operator =][base 30;]", - "[base a][bracket [[][attribute label][operator =][string \"Entity A\"][bracket ]]][base ,]", - "[base b][bracket [[][attribute label][operator =][string \"Entity B\"][bracket ]]][base ,]", - "[base c][bracket [[][attribute label][operator =][string \"Entity C\"][bracket ]]][base ;]", - "[base a ][keyword =>>][base b][bracket [[][attribute label][operator =][string \"Hello entity B\"][bracket ]]][base ;]", - "[base a ][keyword <<][base b][bracket [[][attribute label][operator =][string \"Here's an answer dude!\"][bracket ]]][base ;]", - "[base c ][keyword :>][base *][bracket [[][attribute label][operator =][string \"What about me?\"][base , ][attribute textcolor][operator =][base red][bracket ]]][base ;]", - "[bracket }]" - ); -})(); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/mscgen/msgenny_test.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/mscgen/msgenny_test.js deleted file mode 100644 index 80173de..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/mscgen/msgenny_test.js +++ /dev/null @@ -1,71 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function() { - var mode = CodeMirror.getMode({indentUnit: 2}, "text/x-msgenny"); - function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1), "msgenny"); } - - MT("comments", - "[comment // a single line comment]", - "[comment # another single line comment /* and */ ignored here]", - "[comment /* A multi-line comment even though it contains]", - "[comment msc keywords and \"quoted text\"*/]"); - - MT("strings", - "[string \"// a string\"]", - "[string \"a string running over]", - "[string two lines\"]", - "[string \"with \\\"escaped quote\"]" - ); - - MT("xù/ msgenny keywords classify as 'keyword'", - "[keyword watermark]", - "[keyword alt]","[keyword loop]","[keyword opt]","[keyword ref]","[keyword else]","[keyword break]","[keyword par]","[keyword seq]","[keyword assert]" - ); - - MT("mscgen options classify as keyword", - "[keyword hscale]", "[keyword width]", "[keyword arcgradient]", "[keyword wordwraparcs]" - ); - - MT("mscgen arcs classify as keyword", - "[keyword note]","[keyword abox]","[keyword rbox]","[keyword box]", - "[keyword |||...---]", "[keyword ..--==::]", - "[keyword ->]", "[keyword <-]", "[keyword <->]", - "[keyword =>]", "[keyword <=]", "[keyword <=>]", - "[keyword =>>]", "[keyword <<=]", "[keyword <<=>>]", - "[keyword >>]", "[keyword <<]", "[keyword <<>>]", - "[keyword -x]", "[keyword x-]", "[keyword -X]", "[keyword X-]", - "[keyword :>]", "[keyword <:]", "[keyword <:>]" - ); - - MT("within an attribute list, mscgen/ xù attributes classify as base", - "[base [[label]", - "[base idurl id url]", - "[base linecolor linecolour textcolor textcolour textbgcolor textbgcolour]", - "[base arclinecolor arclinecolour arctextcolor arctextcolour arctextbgcolor arctextbgcolour]", - "[base arcskip]]]" - ); - - MT("outside an attribute list, mscgen/ xù attributes classify as base", - "[base label]", - "[base idurl id url]", - "[base linecolor linecolour textcolor textcolour textbgcolor textbgcolour]", - "[base arclinecolor arclinecolour arctextcolor arctextcolour arctextbgcolor arctextbgcolour]", - "[base arcskip]" - ); - - MT("a typical program", - "[comment # typical msgenny program]", - "[keyword wordwraparcs][operator =][string \"true\"][base , ][keyword hscale][operator =][string \"0.8\"][base , ][keyword arcgradient][operator =][base 30;]", - "[base a : ][string \"Entity A\"][base ,]", - "[base b : Entity B,]", - "[base c : Entity C;]", - "[base a ][keyword =>>][base b: ][string \"Hello entity B\"][base ;]", - "[base a ][keyword alt][base c][bracket {]", - "[base a ][keyword <<][base b: ][string \"Here's an answer dude!\"][base ;]", - "[keyword ---][base : ][string \"sorry, won't march - comm glitch\"]", - "[base a ][keyword x-][base b: ][string \"Here's an answer dude! (won't arrive...)\"][base ;]", - "[bracket }]", - "[base c ][keyword :>][base *: What about me?;]" - ); -})(); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/mscgen/xu_test.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/mscgen/xu_test.js deleted file mode 100644 index f9a50f0..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/mscgen/xu_test.js +++ /dev/null @@ -1,75 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function() { - var mode = CodeMirror.getMode({indentUnit: 2}, "text/x-xu"); - function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1), "xu"); } - - MT("empty chart", - "[keyword msc][bracket {]", - "[base ]", - "[bracket }]" - ); - - MT("comments", - "[comment // a single line comment]", - "[comment # another single line comment /* and */ ignored here]", - "[comment /* A multi-line comment even though it contains]", - "[comment msc keywords and \"quoted text\"*/]"); - - MT("strings", - "[string \"// a string\"]", - "[string \"a string running over]", - "[string two lines\"]", - "[string \"with \\\"escaped quote\"]" - ); - - MT("xù/ msgenny keywords classify as 'keyword'", - "[keyword watermark]", - "[keyword alt]","[keyword loop]","[keyword opt]","[keyword ref]","[keyword else]","[keyword break]","[keyword par]","[keyword seq]","[keyword assert]" - ); - - MT("mscgen options classify as keyword", - "[keyword hscale]", "[keyword width]", "[keyword arcgradient]", "[keyword wordwraparcs]" - ); - - MT("mscgen arcs classify as keyword", - "[keyword note]","[keyword abox]","[keyword rbox]","[keyword box]", - "[keyword |||...---]", "[keyword ..--==::]", - "[keyword ->]", "[keyword <-]", "[keyword <->]", - "[keyword =>]", "[keyword <=]", "[keyword <=>]", - "[keyword =>>]", "[keyword <<=]", "[keyword <<=>>]", - "[keyword >>]", "[keyword <<]", "[keyword <<>>]", - "[keyword -x]", "[keyword x-]", "[keyword -X]", "[keyword X-]", - "[keyword :>]", "[keyword <:]", "[keyword <:>]" - ); - - MT("within an attribute list, attributes classify as attribute", - "[bracket [[][attribute label]", - "[attribute id]","[attribute url]","[attribute idurl]", - "[attribute linecolor]","[attribute linecolour]","[attribute textcolor]","[attribute textcolour]","[attribute textbgcolor]","[attribute textbgcolour]", - "[attribute arclinecolor]","[attribute arclinecolour]","[attribute arctextcolor]","[attribute arctextcolour]","[attribute arctextbgcolor]","[attribute arctextbgcolour]", - "[attribute arcskip][bracket ]]]" - ); - - MT("outside an attribute list, attributes classify as base", - "[base label]", - "[base id]","[base url]","[base idurl]", - "[base linecolor]","[base linecolour]","[base textcolor]","[base textcolour]","[base textbgcolor]","[base textbgcolour]", - "[base arclinecolor]","[base arclinecolour]","[base arctextcolor]","[base arctextcolour]","[base arctextbgcolor]","[base arctextbgcolour]", - "[base arcskip]" - ); - - MT("a typical program", - "[comment # typical mscgen program]", - "[keyword msc][base ][bracket {]", - "[keyword wordwraparcs][operator =][string \"true\"][keyword hscale][operator =][string \"0.8\"][keyword arcgradient][operator =][base 30;]", - "[base a][bracket [[][attribute label][operator =][string \"Entity A\"][bracket ]]][base ,]", - "[base b][bracket [[][attribute label][operator =][string \"Entity B\"][bracket ]]][base ,]", - "[base c][bracket [[][attribute label][operator =][string \"Entity C\"][bracket ]]][base ;]", - "[base a ][keyword =>>][base b][bracket [[][attribute label][operator =][string \"Hello entity B\"][bracket ]]][base ;]", - "[base a ][keyword <<][base b][bracket [[][attribute label][operator =][string \"Here's an answer dude!\"][bracket ]]][base ;]", - "[base c ][keyword :>][base *][bracket [[][attribute label][operator =][string \"What about me?\"][base , ][attribute textcolor][operator =][base red][bracket ]]][base ;]", - "[bracket }]" - ); -})(); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/mumps/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/mumps/index.html deleted file mode 100644 index b1f92c2..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/mumps/index.html +++ /dev/null @@ -1,85 +0,0 @@ -<!doctype html> - -<title>CodeMirror: MUMPS mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="mumps.js"></script> -<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">MUMPS</a> - </ul> -</div> - -<article> -<h2>MUMPS mode</h2> - - -<div><textarea id="code" name="code"> - ; Lloyd Milligan - ; 03-30-2015 - ; - ; MUMPS support for Code Mirror - Excerpts below from routine ^XUS - ; -CHECKAV(X1) ;Check A/V code return DUZ or Zero. (Called from XUSRB) - N %,%1,X,Y,IEN,DA,DIK - S IEN=0 - ;Start CCOW - I $E(X1,1,7)="~~TOK~~" D Q:IEN>0 IEN - . I $E(X1,8,9)="~1" S IEN=$$CHKASH^XUSRB4($E(X1,8,255)) - . I $E(X1,8,9)="~2" S IEN=$$CHKCCOW^XUSRB4($E(X1,8,255)) - . Q - ;End CCOW - S X1=$$UP(X1) S:X1[":" XUTT=1,X1=$TR(X1,":") - S X=$P(X1,";") Q:X="^" -1 S:XUF %1="Access: "_X - Q:X'?1.20ANP 0 - S X=$$EN^XUSHSH(X) I '$D(^VA(200,"A",X)) D LBAV Q 0 - S %1="",IEN=$O(^VA(200,"A",X,0)),XUF(.3)=IEN D USER(IEN) - S X=$P(X1,";",2) S:XUF %1="Verify: "_X S X=$$EN^XUSHSH(X) - I $P(XUSER(1),"^",2)'=X D LBAV Q 0 - I $G(XUFAC(1)) S DIK="^XUSEC(4,",DA=XUFAC(1) D ^DIK - Q IEN - ; - ; Spell out commands - ; -SET2() ;EF. Return error code (also called from XUSRB) - NEW %,X - SET XUNOW=$$HTFM^XLFDT($H),DT=$P(XUNOW,".") - KILL DUZ,XUSER - SET (DUZ,DUZ(2))=0,(DUZ(0),DUZ("AG"),XUSER(0),XUSER(1),XUTT,%UCI)="" - SET %=$$INHIBIT^XUSRB() IF %>0 QUIT % - SET X=$G(^%ZIS(1,XUDEV,"XUS")),XU1=$G(^(1)) - IF $L(X) FOR I=1:1:15 IF $L($P(X,U,I)) SET $P(XOPT,U,I)=$P(X,U,I) - SET DTIME=600 - IF '$P(XOPT,U,11),$D(^%ZIS(1,XUDEV,90)),^(90)>2800000,^(90)'>DT QUIT 8 - QUIT 0 - ; - ; Spell out commands and functions - ; - IF $PIECE(XUSER(0),U,11),$PIECE(XUSER(0),U,11)'>DT QUIT 11 ;Terminated - IF $DATA(DUZ("ASH")) QUIT 0 ;If auto handle, Allow to sign-on p434 - IF $PIECE(XUSER(0),U,7) QUIT 5 ;Disuser flag set - IF '$LENGTH($PIECE(XUSER(1),U,2)) QUIT 21 ;p419, p434 - Q 0 - ; - </textarea></div> - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - mode: "mumps", - lineNumbers: true, - lineWrapping: true - }); - </script> - - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/mumps/mumps.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/mumps/mumps.js deleted file mode 100644 index 469f8c3..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/mumps/mumps.js +++ /dev/null @@ -1,148 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -/* - This MUMPS Language script was constructed using vbscript.js as a template. -*/ - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { - "use strict"; - - CodeMirror.defineMode("mumps", function() { - function wordRegexp(words) { - return new RegExp("^((" + words.join(")|(") + "))\\b", "i"); - } - - var singleOperators = new RegExp("^[\\+\\-\\*/&#!_?\\\\<>=\\'\\[\\]]"); - var doubleOperators = new RegExp("^(('=)|(<=)|(>=)|('>)|('<)|([[)|(]])|(^$))"); - var singleDelimiters = new RegExp("^[\\.,:]"); - var brackets = new RegExp("[()]"); - var identifiers = new RegExp("^[%A-Za-z][A-Za-z0-9]*"); - var commandKeywords = ["break","close","do","else","for","goto", "halt", "hang", "if", "job","kill","lock","merge","new","open", "quit", "read", "set", "tcommit", "trollback", "tstart", "use", "view", "write", "xecute", "b","c","d","e","f","g", "h", "i", "j","k","l","m","n","o", "q", "r", "s", "tc", "tro", "ts", "u", "v", "w", "x"]; - // The following list includes instrinsic functions _and_ special variables - var intrinsicFuncsWords = ["\\$ascii", "\\$char", "\\$data", "\\$ecode", "\\$estack", "\\$etrap", "\\$extract", "\\$find", "\\$fnumber", "\\$get", "\\$horolog", "\\$io", "\\$increment", "\\$job", "\\$justify", "\\$length", "\\$name", "\\$next", "\\$order", "\\$piece", "\\$qlength", "\\$qsubscript", "\\$query", "\\$quit", "\\$random", "\\$reverse", "\\$select", "\\$stack", "\\$test", "\\$text", "\\$translate", "\\$view", "\\$x", "\\$y", "\\$a", "\\$c", "\\$d", "\\$e", "\\$ec", "\\$es", "\\$et", "\\$f", "\\$fn", "\\$g", "\\$h", "\\$i", "\\$j", "\\$l", "\\$n", "\\$na", "\\$o", "\\$p", "\\$q", "\\$ql", "\\$qs", "\\$r", "\\$re", "\\$s", "\\$st", "\\$t", "\\$tr", "\\$v", "\\$z"]; - var intrinsicFuncs = wordRegexp(intrinsicFuncsWords); - var command = wordRegexp(commandKeywords); - - function tokenBase(stream, state) { - if (stream.sol()) { - state.label = true; - state.commandMode = 0; - } - - // The <space> character has meaning in MUMPS. Ignoring consecutive - // spaces would interfere with interpreting whether the next non-space - // character belongs to the command or argument context. - - // Examine each character and update a mode variable whose interpretation is: - // >0 => command 0 => argument <0 => command post-conditional - var ch = stream.peek(); - - if (ch == " " || ch == "\t") { // Pre-process <space> - state.label = false; - if (state.commandMode == 0) - state.commandMode = 1; - else if ((state.commandMode < 0) || (state.commandMode == 2)) - state.commandMode = 0; - } else if ((ch != ".") && (state.commandMode > 0)) { - if (ch == ":") - state.commandMode = -1; // SIS - Command post-conditional - else - state.commandMode = 2; - } - - // Do not color parameter list as line tag - if ((ch === "(") || (ch === "\u0009")) - state.label = false; - - // MUMPS comment starts with ";" - if (ch === ";") { - stream.skipToEnd(); - return "comment"; - } - - // Number Literals // SIS/RLM - MUMPS permits canonic number followed by concatenate operator - if (stream.match(/^[-+]?\d+(\.\d+)?([eE][-+]?\d+)?/)) - return "number"; - - // Handle Strings - if (ch == '"') { - if (stream.skipTo('"')) { - stream.next(); - return "string"; - } else { - stream.skipToEnd(); - return "error"; - } - } - - // Handle operators and Delimiters - if (stream.match(doubleOperators) || stream.match(singleOperators)) - return "operator"; - - // Prevents leading "." in DO block from falling through to error - if (stream.match(singleDelimiters)) - return null; - - if (brackets.test(ch)) { - stream.next(); - return "bracket"; - } - - if (state.commandMode > 0 && stream.match(command)) - return "variable-2"; - - if (stream.match(intrinsicFuncs)) - return "builtin"; - - if (stream.match(identifiers)) - return "variable"; - - // Detect dollar-sign when not a documented intrinsic function - // "^" may introduce a GVN or SSVN - Color same as function - if (ch === "$" || ch === "^") { - stream.next(); - return "builtin"; - } - - // MUMPS Indirection - if (ch === "@") { - stream.next(); - return "string-2"; - } - - if (/[\w%]/.test(ch)) { - stream.eatWhile(/[\w%]/); - return "variable"; - } - - // Handle non-detected items - stream.next(); - return "error"; - } - - return { - startState: function() { - return { - label: false, - commandMode: 0 - }; - }, - - token: function(stream, state) { - var style = tokenBase(stream, state); - if (state.label) return "tag"; - return style; - } - }; - }); - - CodeMirror.defineMIME("text/x-mumps", "mumps"); -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/nginx/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/nginx/index.html deleted file mode 100644 index 03cf671..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/nginx/index.html +++ /dev/null @@ -1,181 +0,0 @@ -<!doctype html> -<head> -<title>CodeMirror: NGINX mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="nginx.js"></script> -<style>.CodeMirror {background: #f8f8f8;}</style> - <link rel="stylesheet" href="../../doc/docs.css"> - </head> - - <style> - body { - margin: 0em auto; - } - - .CodeMirror, .CodeMirror-scroll { - height: 600px; - } - </style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">NGINX</a> - </ul> -</div> - -<article> -<h2>NGINX mode</h2> -<form><textarea id="code" name="code" style="height: 800px;"> -server { - listen 173.255.219.235:80; - server_name website.com.au; - rewrite / $scheme://www.$host$request_uri permanent; ## Forcibly prepend a www -} - -server { - listen 173.255.219.235:443; - server_name website.com.au; - rewrite / $scheme://www.$host$request_uri permanent; ## Forcibly prepend a www -} - -server { - - listen 173.255.219.235:80; - server_name www.website.com.au; - - - - root /data/www; - index index.html index.php; - - location / { - index index.html index.php; ## Allow a static html file to be shown first - try_files $uri $uri/ @handler; ## If missing pass the URI to Magento's front handler - expires 30d; ## Assume all files are cachable - } - - ## These locations would be hidden by .htaccess normally - location /app/ { deny all; } - location /includes/ { deny all; } - location /lib/ { deny all; } - location /media/downloadable/ { deny all; } - location /pkginfo/ { deny all; } - location /report/config.xml { deny all; } - location /var/ { deny all; } - - location /var/export/ { ## Allow admins only to view export folder - auth_basic "Restricted"; ## Message shown in login window - auth_basic_user_file /rs/passwords/testfile; ## See /etc/nginx/htpassword - autoindex on; - } - - location /. { ## Disable .htaccess and other hidden files - return 404; - } - - location @handler { ## Magento uses a common front handler - rewrite / /index.php; - } - - location ~ .php/ { ## Forward paths like /js/index.php/x.js to relevant handler - rewrite ^/(.*.php)/ /$1 last; - } - - location ~ \.php$ { - if (!-e $request_filename) { rewrite / /index.php last; } ## Catch 404s that try_files miss - - fastcgi_pass 127.0.0.1:9000; - fastcgi_index index.php; - fastcgi_param PATH_INFO $fastcgi_script_name; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - include /rs/confs/nginx/fastcgi_params; - } - -} - - -server { - - listen 173.255.219.235:443; - server_name website.com.au www.website.com.au; - - root /data/www; - index index.html index.php; - - ssl on; - ssl_certificate /rs/ssl/ssl.crt; - ssl_certificate_key /rs/ssl/ssl.key; - - ssl_session_timeout 5m; - - ssl_protocols SSLv2 SSLv3 TLSv1; - ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP; - ssl_prefer_server_ciphers on; - - - - location / { - index index.html index.php; ## Allow a static html file to be shown first - try_files $uri $uri/ @handler; ## If missing pass the URI to Magento's front handler - expires 30d; ## Assume all files are cachable - } - - ## These locations would be hidden by .htaccess normally - location /app/ { deny all; } - location /includes/ { deny all; } - location /lib/ { deny all; } - location /media/downloadable/ { deny all; } - location /pkginfo/ { deny all; } - location /report/config.xml { deny all; } - location /var/ { deny all; } - - location /var/export/ { ## Allow admins only to view export folder - auth_basic "Restricted"; ## Message shown in login window - auth_basic_user_file htpasswd; ## See /etc/nginx/htpassword - autoindex on; - } - - location /. { ## Disable .htaccess and other hidden files - return 404; - } - - location @handler { ## Magento uses a common front handler - rewrite / /index.php; - } - - location ~ .php/ { ## Forward paths like /js/index.php/x.js to relevant handler - rewrite ^/(.*.php)/ /$1 last; - } - - location ~ .php$ { ## Execute PHP scripts - if (!-e $request_filename) { rewrite /index.php last; } ## Catch 404s that try_files miss - - fastcgi_pass 127.0.0.1:9000; - fastcgi_index index.php; - fastcgi_param PATH_INFO $fastcgi_script_name; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - include /rs/confs/nginx/fastcgi_params; - - fastcgi_param HTTPS on; - } - -} -</textarea></form> - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), {}); - </script> - - <p><strong>MIME types defined:</strong> <code>text/nginx</code>.</p> - - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/nginx/nginx.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/nginx/nginx.js deleted file mode 100644 index 00a3224..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/nginx/nginx.js +++ /dev/null @@ -1,178 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("nginx", function(config) { - - function words(str) { - var obj = {}, words = str.split(" "); - for (var i = 0; i < words.length; ++i) obj[words[i]] = true; - return obj; - } - - var keywords = words( - /* ngxDirectiveControl */ "break return rewrite set" + - /* ngxDirective */ " accept_mutex accept_mutex_delay access_log add_after_body add_before_body add_header addition_types aio alias allow ancient_browser ancient_browser_value auth_basic auth_basic_user_file auth_http auth_http_header auth_http_timeout autoindex autoindex_exact_size autoindex_localtime charset charset_types client_body_buffer_size client_body_in_file_only client_body_in_single_buffer client_body_temp_path client_body_timeout client_header_buffer_size client_header_timeout client_max_body_size connection_pool_size create_full_put_path daemon dav_access dav_methods debug_connection debug_points default_type degradation degrade deny devpoll_changes devpoll_events directio directio_alignment empty_gif env epoll_events error_log eventport_events expires fastcgi_bind fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size fastcgi_cache fastcgi_cache_key fastcgi_cache_methods fastcgi_cache_min_uses fastcgi_cache_path fastcgi_cache_use_stale fastcgi_cache_valid fastcgi_catch_stderr fastcgi_connect_timeout fastcgi_hide_header fastcgi_ignore_client_abort fastcgi_ignore_headers fastcgi_index fastcgi_intercept_errors fastcgi_max_temp_file_size fastcgi_next_upstream fastcgi_param fastcgi_pass_header fastcgi_pass_request_body fastcgi_pass_request_headers fastcgi_read_timeout fastcgi_send_lowat fastcgi_send_timeout fastcgi_split_path_info fastcgi_store fastcgi_store_access fastcgi_temp_file_write_size fastcgi_temp_path fastcgi_upstream_fail_timeout fastcgi_upstream_max_fails flv geoip_city geoip_country google_perftools_profiles gzip gzip_buffers gzip_comp_level gzip_disable gzip_hash gzip_http_version gzip_min_length gzip_no_buffer gzip_proxied gzip_static gzip_types gzip_vary gzip_window if_modified_since ignore_invalid_headers image_filter image_filter_buffer image_filter_jpeg_quality image_filter_transparency imap_auth imap_capabilities imap_client_buffer index ip_hash keepalive_requests keepalive_timeout kqueue_changes kqueue_events large_client_header_buffers limit_conn limit_conn_log_level limit_rate limit_rate_after limit_req limit_req_log_level limit_req_zone limit_zone lingering_time lingering_timeout lock_file log_format log_not_found log_subrequest map_hash_bucket_size map_hash_max_size master_process memcached_bind memcached_buffer_size memcached_connect_timeout memcached_next_upstream memcached_read_timeout memcached_send_timeout memcached_upstream_fail_timeout memcached_upstream_max_fails merge_slashes min_delete_depth modern_browser modern_browser_value msie_padding msie_refresh multi_accept open_file_cache open_file_cache_errors open_file_cache_events open_file_cache_min_uses open_file_cache_valid open_log_file_cache output_buffers override_charset perl perl_modules perl_require perl_set pid pop3_auth pop3_capabilities port_in_redirect postpone_gzipping postpone_output protocol proxy proxy_bind proxy_buffer proxy_buffer_size proxy_buffering proxy_buffers proxy_busy_buffers_size proxy_cache proxy_cache_key proxy_cache_methods proxy_cache_min_uses proxy_cache_path proxy_cache_use_stale proxy_cache_valid proxy_connect_timeout proxy_headers_hash_bucket_size proxy_headers_hash_max_size proxy_hide_header proxy_ignore_client_abort proxy_ignore_headers proxy_intercept_errors proxy_max_temp_file_size proxy_method proxy_next_upstream proxy_pass_error_message proxy_pass_header proxy_pass_request_body proxy_pass_request_headers proxy_read_timeout proxy_redirect proxy_send_lowat proxy_send_timeout proxy_set_body proxy_set_header proxy_ssl_session_reuse proxy_store proxy_store_access proxy_temp_file_write_size proxy_temp_path proxy_timeout proxy_upstream_fail_timeout proxy_upstream_max_fails random_index read_ahead real_ip_header recursive_error_pages request_pool_size reset_timedout_connection resolver resolver_timeout rewrite_log rtsig_overflow_events rtsig_overflow_test rtsig_overflow_threshold rtsig_signo satisfy secure_link_secret send_lowat send_timeout sendfile sendfile_max_chunk server_name_in_redirect server_names_hash_bucket_size server_names_hash_max_size server_tokens set_real_ip_from smtp_auth smtp_capabilities smtp_client_buffer smtp_greeting_delay so_keepalive source_charset ssi ssi_ignore_recycled_buffers ssi_min_file_chunk ssi_silent_errors ssi_types ssi_value_length ssl ssl_certificate ssl_certificate_key ssl_ciphers ssl_client_certificate ssl_crl ssl_dhparam ssl_engine ssl_prefer_server_ciphers ssl_protocols ssl_session_cache ssl_session_timeout ssl_verify_client ssl_verify_depth starttls stub_status sub_filter sub_filter_once sub_filter_types tcp_nodelay tcp_nopush thread_stack_size timeout timer_resolution types_hash_bucket_size types_hash_max_size underscores_in_headers uninitialized_variable_warn use user userid userid_domain userid_expires userid_mark userid_name userid_p3p userid_path userid_service valid_referers variables_hash_bucket_size variables_hash_max_size worker_connections worker_cpu_affinity worker_priority worker_processes worker_rlimit_core worker_rlimit_nofile worker_rlimit_sigpending worker_threads working_directory xclient xml_entities xslt_stylesheet xslt_typesdrew@li229-23" - ); - - var keywords_block = words( - /* ngxDirectiveBlock */ "http mail events server types location upstream charset_map limit_except if geo map" - ); - - var keywords_important = words( - /* ngxDirectiveImportant */ "include root server server_name listen internal proxy_pass memcached_pass fastcgi_pass try_files" - ); - - var indentUnit = config.indentUnit, type; - function ret(style, tp) {type = tp; return style;} - - function tokenBase(stream, state) { - - - stream.eatWhile(/[\w\$_]/); - - var cur = stream.current(); - - - if (keywords.propertyIsEnumerable(cur)) { - return "keyword"; - } - else if (keywords_block.propertyIsEnumerable(cur)) { - return "variable-2"; - } - else if (keywords_important.propertyIsEnumerable(cur)) { - return "string-2"; - } - /**/ - - var ch = stream.next(); - if (ch == "@") {stream.eatWhile(/[\w\\\-]/); return ret("meta", stream.current());} - else if (ch == "/" && stream.eat("*")) { - state.tokenize = tokenCComment; - return tokenCComment(stream, state); - } - else if (ch == "<" && stream.eat("!")) { - state.tokenize = tokenSGMLComment; - return tokenSGMLComment(stream, state); - } - else if (ch == "=") ret(null, "compare"); - else if ((ch == "~" || ch == "|") && stream.eat("=")) return ret(null, "compare"); - else if (ch == "\"" || ch == "'") { - state.tokenize = tokenString(ch); - return state.tokenize(stream, state); - } - else if (ch == "#") { - stream.skipToEnd(); - return ret("comment", "comment"); - } - else if (ch == "!") { - stream.match(/^\s*\w*/); - return ret("keyword", "important"); - } - else if (/\d/.test(ch)) { - stream.eatWhile(/[\w.%]/); - return ret("number", "unit"); - } - else if (/[,.+>*\/]/.test(ch)) { - return ret(null, "select-op"); - } - else if (/[;{}:\[\]]/.test(ch)) { - return ret(null, ch); - } - else { - stream.eatWhile(/[\w\\\-]/); - return ret("variable", "variable"); - } - } - - function tokenCComment(stream, state) { - var maybeEnd = false, ch; - while ((ch = stream.next()) != null) { - if (maybeEnd && ch == "/") { - state.tokenize = tokenBase; - break; - } - maybeEnd = (ch == "*"); - } - return ret("comment", "comment"); - } - - function tokenSGMLComment(stream, state) { - var dashes = 0, ch; - while ((ch = stream.next()) != null) { - if (dashes >= 2 && ch == ">") { - state.tokenize = tokenBase; - break; - } - dashes = (ch == "-") ? dashes + 1 : 0; - } - return ret("comment", "comment"); - } - - function tokenString(quote) { - return function(stream, state) { - var escaped = false, ch; - while ((ch = stream.next()) != null) { - if (ch == quote && !escaped) - break; - escaped = !escaped && ch == "\\"; - } - if (!escaped) state.tokenize = tokenBase; - return ret("string", "string"); - }; - } - - return { - startState: function(base) { - return {tokenize: tokenBase, - baseIndent: base || 0, - stack: []}; - }, - - token: function(stream, state) { - if (stream.eatSpace()) return null; - type = null; - var style = state.tokenize(stream, state); - - var context = state.stack[state.stack.length-1]; - if (type == "hash" && context == "rule") style = "atom"; - else if (style == "variable") { - if (context == "rule") style = "number"; - else if (!context || context == "@media{") style = "tag"; - } - - if (context == "rule" && /^[\{\};]$/.test(type)) - state.stack.pop(); - if (type == "{") { - if (context == "@media") state.stack[state.stack.length-1] = "@media{"; - else state.stack.push("{"); - } - else if (type == "}") state.stack.pop(); - else if (type == "@media") state.stack.push("@media"); - else if (context == "{" && type != "comment") state.stack.push("rule"); - return style; - }, - - indent: function(state, textAfter) { - var n = state.stack.length; - if (/^\}/.test(textAfter)) - n -= state.stack[state.stack.length-1] == "rule" ? 2 : 1; - return state.baseIndent + n * indentUnit; - }, - - electricChars: "}" - }; -}); - -CodeMirror.defineMIME("text/x-nginx-conf", "nginx"); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/nsis/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/nsis/index.html deleted file mode 100644 index 2afae87..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/nsis/index.html +++ /dev/null @@ -1,80 +0,0 @@ -<!doctype html> - -<title>CodeMirror: NSIS mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel=stylesheet href=../../lib/codemirror.css> -<script src=../../lib/codemirror.js></script> -<script src="../../addon/mode/simple.js"></script> -<script src="../../addon/edit/matchbrackets.js"></script> -<script src=nsis.js></script> -<style type=text/css> - .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;} -</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">NSIS</a> - </ul> -</div> - -<article> -<h2>NSIS mode</h2> - - -<textarea id=code> -; This is a comment -!ifdef ERROR - !error "Something went wrong" -!endif - -OutFile "demo.exe" -RequestExecutionLevel user -SetDetailsPrint listonly - -!include "LogicLib.nsh" -!include "WinVer.nsh" - -Section -mandatory - - Call logWinVer - - ${If} 1 > 0 - MessageBox MB_OK "Hello world" - ${EndIf} - -SectionEnd - -Function logWinVer - - ${If} ${IsWin10} - DetailPrint "Windows 10!" - ${ElseIf} ${AtLeastWinVista} - DetailPrint "We're post-XP" - ${Else} - DetailPrint "Legacy system" - ${EndIf} - -FunctionEnd -</textarea> - -<script> - var editor = CodeMirror.fromTextArea(document.getElementById('code'), { - mode: 'nsis', - indentWithTabs: true, - smartIndent: true, - lineNumbers: true, - matchBrackets: true - }); -</script> - -<p><strong>MIME types defined:</strong> <code>text/x-nsis</code>.</p> -</article> \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/nsis/nsis.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/nsis/nsis.js deleted file mode 100644 index 172207c..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/nsis/nsis.js +++ /dev/null @@ -1,95 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -// Author: Jan T. Sott (http://github.com/idleberg) - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror"), require("../../addon/mode/simple")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror", "../../addon/mode/simple"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineSimpleMode("nsis",{ - start:[ - // Numbers - {regex: /(?:[+-]?)(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\d+.?\d*)/, token: "number"}, - - // Strings - { regex: /"(?:[^\\"]|\\.)*"?/, token: "string" }, - { regex: /'(?:[^\\']|\\.)*'?/, token: "string" }, - { regex: /`(?:[^\\`]|\\.)*`?/, token: "string" }, - - // Compile Time Commands - {regex: /(?:\!(include|addincludedir|addplugindir|appendfile|cd|delfile|echo|error|execute|packhdr|finalize|getdllversion|system|tempfile|warning|verbose|define|undef|insertmacro|makensis|searchparse|searchreplace))\b/, token: "keyword"}, - - // Conditional Compilation - {regex: /(?:\!(if(?:n?def)?|ifmacron?def|macro))\b/, token: "keyword", indent: true}, - {regex: /(?:\!(else|endif|macroend))\b/, token: "keyword", dedent: true}, - - // Runtime Commands - {regex: /\b(?:Abort|AddBrandingImage|AddSize|AllowRootDirInstall|AllowSkipFiles|AutoCloseWindow|BGFont|BGGradient|BrandingText|BringToFront|Call|CallInstDLL|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|CRCCheck|CreateDirectory|CreateFont|CreateShortCut|Delete|DeleteINISec|DeleteINIStr|DeleteRegKey|DeleteRegValue|DetailPrint|DetailsButtonText|DirText|DirVar|DirVerify|EnableWindow|EnumRegKey|EnumRegValue|Exch|Exec|ExecShell|ExecWait|ExpandEnvStrings|File|FileBufSize|FileClose|FileErrorText|FileOpen|FileRead|FileReadByte|FileReadUTF16LE|FileReadWord|FileWriteUTF16LE|FileSeek|FileWrite|FileWriteByte|FileWriteWord|FindClose|FindFirst|FindNext|FindWindow|FlushINI|GetCurInstType|GetCurrentAddress|GetDlgItem|GetDLLVersion|GetDLLVersionLocal|GetErrorLevel|GetFileTime|GetFileTimeLocal|GetFullPathName|GetFunctionAddress|GetInstDirError|GetLabelAddress|GetTempFileName|Goto|HideWindow|Icon|IfAbort|IfErrors|IfFileExists|IfRebootFlag|IfSilent|InitPluginsDir|InstallButtonText|InstallColors|InstallDir|InstallDirRegKey|InstProgressFlags|InstType|InstTypeGetText|InstTypeSetText|IntCmp|IntCmpU|IntFmt|IntOp|IsWindow|LangString|LicenseBkColor|LicenseData|LicenseForceSelection|LicenseLangString|LicenseText|LoadLanguageFile|LockWindow|LogSet|LogText|ManifestDPIAware|ManifestSupportedOS|MessageBox|MiscButtonText|Name|Nop|OutFile|Page|PageCallbacks|Pop|Push|Quit|ReadEnvStr|ReadINIStr|ReadRegDWORD|ReadRegStr|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|RMDir|SearchPath|SectionGetFlags|SectionGetInstTypes|SectionGetSize|SectionGetText|SectionIn|SectionSetFlags|SectionSetInstTypes|SectionSetSize|SectionSetText|SendMessage|SetAutoClose|SetBrandingImage|SetCompress|SetCompressor|SetCompressorDictSize|SetCtlColors|SetCurInstType|SetDatablockOptimize|SetDateSave|SetDetailsPrint|SetDetailsView|SetErrorLevel|SetErrors|SetFileAttributes|SetFont|SetOutPath|SetOverwrite|SetPluginUnload|SetRebootFlag|SetRegView|SetShellVarContext|SetSilent|ShowInstDetails|ShowUninstDetails|ShowWindow|SilentInstall|SilentUnInstall|Sleep|SpaceTexts|StrCmp|StrCmpS|StrCpy|StrLen|SubCaption|Unicode|UninstallButtonText|UninstallCaption|UninstallIcon|UninstallSubCaption|UninstallText|UninstPage|UnRegDLL|Var|VIAddVersionKey|VIFileVersion|VIProductVersion|WindowIcon|WriteINIStr|WriteRegBin|WriteRegDWORD|WriteRegExpandStr|WriteRegStr|WriteUninstaller|XPStyle)\b/, token: "keyword"}, - {regex: /\b(?:Function|PageEx|Section(?:Group)?)\b/, token: "keyword", indent: true}, - {regex: /\b(?:(Function|PageEx|Section(?:Group)?)End)\b/, token: "keyword", dedent: true}, - - // Command Options - {regex: /\b(?:ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HIDDEN|HKCC|HKCR|HKCU|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM|HKPD|HKU|IDABORT|IDCANCEL|IDD_DIR|IDD_INST|IDD_INSTFILES|IDD_LICENSE|IDD_SELCOM|IDD_UNINST|IDD_VERIFY|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|MB_YESNOCANCEL|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SW_HIDE|SW_SHOWDEFAULT|SW_SHOWMAXIMIZED|SW_SHOWMINIMIZED|SW_SHOWNORMAL|SYSTEM|TEMPORARY)\b/, token: "atom"}, - {regex: /\b(?:admin|all|auto|both|bottom|bzip2|components|current|custom|directory|force|hide|highest|ifdiff|ifnewer|instfiles|lastused|leave|left|license|listonly|lzma|nevershow|none|normal|notset|right|show|silent|silentlog|textonly|top|try|un\.components|un\.custom|un\.directory|un\.instfiles|un\.license|uninstConfirm|user|Win10|Win7|Win8|WinVista|zlib)\b/, token: "builtin"}, - - // LogicLib.nsh - {regex: /\$\{(?:And(?:If(?:Not)?|Unless)|Break|Case(?:Else)?|Continue|Default|Do(?:Until|While)?|Else(?:If(?:Not)?|Unless)?|End(?:If|Select|Switch)|Exit(?:Do|For|While)|For(?:Each)?|If(?:Cmd|Not(?:Then)?|Then)?|Loop(?:Until|While)?|Or(?:If(?:Not)?|Unless)|Select|Switch|Unless|While)\}/, token: "variable-2", indent: true}, - - // FileFunc.nsh - {regex: /\$\{(?:BannerTrimPath|DirState|DriveSpace|Get(BaseName|Drives|ExeName|ExePath|FileAttributes|FileExt|FileName|FileVersion|Options|OptionsS|Parameters|Parent|Root|Size|Time)|Locate|RefreshShellIcons)\}/, token: "variable-2", dedent: true}, - - // Memento.nsh - {regex: /\$\{(?:Memento(?:Section(?:Done|End|Restore|Save)?|UnselectedSection))\}/, token: "variable-2", dedent: true}, - - // TextFunc.nsh - {regex: /\$\{(?:Config(?:Read|ReadS|Write|WriteS)|File(?:Join|ReadFromEnd|Recode)|Line(?:Find|Read|Sum)|Text(?:Compare|CompareS)|TrimNewLines)\}/, token: "variable-2", dedent: true}, - - // WinVer.nsh - {regex: /\$\{(?:(?:At(?:Least|Most)|Is)(?:ServicePack|Win(?:7|8|10|95|98|200(?:0|3|8(?:R2)?)|ME|NT4|Vista|XP))|Is(?:NT|Server))\}/, token: "variable", dedent: true}, - - // WordFunc.nsh - {regex: /\$\{(?:StrFilterS?|Version(?:Compare|Convert)|Word(?:AddS?|Find(?:(?:2|3)X)?S?|InsertS?|ReplaceS?))\}/, token: "variable-2", dedent: true}, - - // x64.nsh - {regex: /\$\{(?:RunningX64)\}/, token: "variable", dedent: true}, - {regex: /\$\{(?:Disable|Enable)X64FSRedirection\}/, token: "variable-2", dedent: true}, - - // Line Comment - {regex: /(#|;).*/, token: "comment"}, - - // Block Comment - {regex: /\/\*/, token: "comment", next: "comment"}, - - // Operator - {regex: /[-+\/*=<>!]+/, token: "operator"}, - - // Variable - {regex: /\$[\w]+/, token: "variable"}, - - // Constant - {regex: /\${[\w]+}/,token: "variable-2"}, - - // Language String - {regex: /\$\([\w]+\)/,token: "variable-3"} - ], - comment: [ - {regex: /.*?\*\//, token: "comment", next: "start"}, - {regex: /.*/, token: "comment"} - ], - meta: { - electricInput: /^\s*((Function|PageEx|Section|Section(Group)?)End|(\!(endif|macroend))|\$\{(End(If|Unless|While)|Loop(Until)|Next)\})$/, - blockCommentStart: "/*", - blockCommentEnd: "*/", - lineComment: ["#", ";"] - } -}); - -CodeMirror.defineMIME("text/x-nsis", "nsis"); -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/ntriples/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/ntriples/index.html deleted file mode 100644 index 1355e71..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/ntriples/index.html +++ /dev/null @@ -1,45 +0,0 @@ -<!doctype html> - -<title>CodeMirror: NTriples mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="ntriples.js"></script> -<style type="text/css"> - .CodeMirror { - border: 1px solid #eee; - } - </style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">NTriples</a> - </ul> -</div> - -<article> -<h2>NTriples mode</h2> -<form> -<textarea id="ntriples" name="ntriples"> -<http://Sub1> <http://pred1> <http://obj> . -<http://Sub2> <http://pred2#an2> "literal 1" . -<http://Sub3#an3> <http://pred3> _:bnode3 . -_:bnode4 <http://pred4> "literal 2"@lang . -_:bnode5 <http://pred5> "literal 3"^^<http://type> . -</textarea> -</form> - - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("ntriples"), {}); - </script> - <p><strong>MIME types defined:</strong> <code>text/n-triples</code>.</p> - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/ntriples/ntriples.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/ntriples/ntriples.js deleted file mode 100644 index 0524b1e..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/ntriples/ntriples.js +++ /dev/null @@ -1,186 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -/********************************************************** -* This script provides syntax highlighting support for -* the Ntriples format. -* Ntriples format specification: -* http://www.w3.org/TR/rdf-testcases/#ntriples -***********************************************************/ - -/* - The following expression defines the defined ASF grammar transitions. - - pre_subject -> - { - ( writing_subject_uri | writing_bnode_uri ) - -> pre_predicate - -> writing_predicate_uri - -> pre_object - -> writing_object_uri | writing_object_bnode | - ( - writing_object_literal - -> writing_literal_lang | writing_literal_type - ) - -> post_object - -> BEGIN - } otherwise { - -> ERROR - } -*/ - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("ntriples", function() { - - var Location = { - PRE_SUBJECT : 0, - WRITING_SUB_URI : 1, - WRITING_BNODE_URI : 2, - PRE_PRED : 3, - WRITING_PRED_URI : 4, - PRE_OBJ : 5, - WRITING_OBJ_URI : 6, - WRITING_OBJ_BNODE : 7, - WRITING_OBJ_LITERAL : 8, - WRITING_LIT_LANG : 9, - WRITING_LIT_TYPE : 10, - POST_OBJ : 11, - ERROR : 12 - }; - function transitState(currState, c) { - var currLocation = currState.location; - var ret; - - // Opening. - if (currLocation == Location.PRE_SUBJECT && c == '<') ret = Location.WRITING_SUB_URI; - else if(currLocation == Location.PRE_SUBJECT && c == '_') ret = Location.WRITING_BNODE_URI; - else if(currLocation == Location.PRE_PRED && c == '<') ret = Location.WRITING_PRED_URI; - else if(currLocation == Location.PRE_OBJ && c == '<') ret = Location.WRITING_OBJ_URI; - else if(currLocation == Location.PRE_OBJ && c == '_') ret = Location.WRITING_OBJ_BNODE; - else if(currLocation == Location.PRE_OBJ && c == '"') ret = Location.WRITING_OBJ_LITERAL; - - // Closing. - else if(currLocation == Location.WRITING_SUB_URI && c == '>') ret = Location.PRE_PRED; - else if(currLocation == Location.WRITING_BNODE_URI && c == ' ') ret = Location.PRE_PRED; - else if(currLocation == Location.WRITING_PRED_URI && c == '>') ret = Location.PRE_OBJ; - else if(currLocation == Location.WRITING_OBJ_URI && c == '>') ret = Location.POST_OBJ; - else if(currLocation == Location.WRITING_OBJ_BNODE && c == ' ') ret = Location.POST_OBJ; - else if(currLocation == Location.WRITING_OBJ_LITERAL && c == '"') ret = Location.POST_OBJ; - else if(currLocation == Location.WRITING_LIT_LANG && c == ' ') ret = Location.POST_OBJ; - else if(currLocation == Location.WRITING_LIT_TYPE && c == '>') ret = Location.POST_OBJ; - - // Closing typed and language literal. - else if(currLocation == Location.WRITING_OBJ_LITERAL && c == '@') ret = Location.WRITING_LIT_LANG; - else if(currLocation == Location.WRITING_OBJ_LITERAL && c == '^') ret = Location.WRITING_LIT_TYPE; - - // Spaces. - else if( c == ' ' && - ( - currLocation == Location.PRE_SUBJECT || - currLocation == Location.PRE_PRED || - currLocation == Location.PRE_OBJ || - currLocation == Location.POST_OBJ - ) - ) ret = currLocation; - - // Reset. - else if(currLocation == Location.POST_OBJ && c == '.') ret = Location.PRE_SUBJECT; - - // Error - else ret = Location.ERROR; - - currState.location=ret; - } - - return { - startState: function() { - return { - location : Location.PRE_SUBJECT, - uris : [], - anchors : [], - bnodes : [], - langs : [], - types : [] - }; - }, - token: function(stream, state) { - var ch = stream.next(); - if(ch == '<') { - transitState(state, ch); - var parsedURI = ''; - stream.eatWhile( function(c) { if( c != '#' && c != '>' ) { parsedURI += c; return true; } return false;} ); - state.uris.push(parsedURI); - if( stream.match('#', false) ) return 'variable'; - stream.next(); - transitState(state, '>'); - return 'variable'; - } - if(ch == '#') { - var parsedAnchor = ''; - stream.eatWhile(function(c) { if(c != '>' && c != ' ') { parsedAnchor+= c; return true; } return false;}); - state.anchors.push(parsedAnchor); - return 'variable-2'; - } - if(ch == '>') { - transitState(state, '>'); - return 'variable'; - } - if(ch == '_') { - transitState(state, ch); - var parsedBNode = ''; - stream.eatWhile(function(c) { if( c != ' ' ) { parsedBNode += c; return true; } return false;}); - state.bnodes.push(parsedBNode); - stream.next(); - transitState(state, ' '); - return 'builtin'; - } - if(ch == '"') { - transitState(state, ch); - stream.eatWhile( function(c) { return c != '"'; } ); - stream.next(); - if( stream.peek() != '@' && stream.peek() != '^' ) { - transitState(state, '"'); - } - return 'string'; - } - if( ch == '@' ) { - transitState(state, '@'); - var parsedLang = ''; - stream.eatWhile(function(c) { if( c != ' ' ) { parsedLang += c; return true; } return false;}); - state.langs.push(parsedLang); - stream.next(); - transitState(state, ' '); - return 'string-2'; - } - if( ch == '^' ) { - stream.next(); - transitState(state, '^'); - var parsedType = ''; - stream.eatWhile(function(c) { if( c != '>' ) { parsedType += c; return true; } return false;} ); - state.types.push(parsedType); - stream.next(); - transitState(state, '>'); - return 'variable'; - } - if( ch == ' ' ) { - transitState(state, ch); - } - if( ch == '.' ) { - transitState(state, ch); - } - } - }; -}); - -CodeMirror.defineMIME("text/n-triples", "ntriples"); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/octave/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/octave/index.html deleted file mode 100644 index 3490ee6..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/octave/index.html +++ /dev/null @@ -1,83 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Octave mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="octave.js"></script> -<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Octave</a> - </ul> -</div> - -<article> -<h2>Octave mode</h2> - - <div><textarea id="code" name="code"> -%numbers -[1234 1234i 1234j] -[.234 .234j 2.23i] -[23e2 12E1j 123D-4 0x234] - -%strings -'asda''a' -"asda""a" - -%identifiers -a + as123 - __asd__ - -%operators -- -+ -= -== -> -< ->= -<= -& -~ -... -break zeros default margin round ones rand -ceil floor size clear zeros eye mean std cov -error eval function -abs acos atan asin cos cosh exp log prod sum -log10 max min sign sin sinh sqrt tan reshape -return -case switch -else elseif end if otherwise -do for while -try catch -classdef properties events methods -global persistent - -%one line comment -%{ multi -line comment %} - - </textarea></div> - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - mode: {name: "octave", - version: 2, - singleLineStringErrors: false}, - lineNumbers: true, - indentUnit: 4, - matchBrackets: true - }); - </script> - - <p><strong>MIME types defined:</strong> <code>text/x-octave</code>.</p> -</article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/octave/octave.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/octave/octave.js deleted file mode 100644 index a7bec03..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/octave/octave.js +++ /dev/null @@ -1,135 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("octave", function() { - function wordRegexp(words) { - return new RegExp("^((" + words.join(")|(") + "))\\b"); - } - - var singleOperators = new RegExp("^[\\+\\-\\*/&|\\^~<>!@'\\\\]"); - var singleDelimiters = new RegExp('^[\\(\\[\\{\\},:=;]'); - var doubleOperators = new RegExp("^((==)|(~=)|(<=)|(>=)|(<<)|(>>)|(\\.[\\+\\-\\*/\\^\\\\]))"); - var doubleDelimiters = new RegExp("^((!=)|(\\+=)|(\\-=)|(\\*=)|(/=)|(&=)|(\\|=)|(\\^=))"); - var tripleDelimiters = new RegExp("^((>>=)|(<<=))"); - var expressionEnd = new RegExp("^[\\]\\)]"); - var identifiers = new RegExp("^[_A-Za-z\xa1-\uffff][_A-Za-z0-9\xa1-\uffff]*"); - - var builtins = wordRegexp([ - 'error', 'eval', 'function', 'abs', 'acos', 'atan', 'asin', 'cos', - 'cosh', 'exp', 'log', 'prod', 'sum', 'log10', 'max', 'min', 'sign', 'sin', 'sinh', - 'sqrt', 'tan', 'reshape', 'break', 'zeros', 'default', 'margin', 'round', 'ones', - 'rand', 'syn', 'ceil', 'floor', 'size', 'clear', 'zeros', 'eye', 'mean', 'std', 'cov', - 'det', 'eig', 'inv', 'norm', 'rank', 'trace', 'expm', 'logm', 'sqrtm', 'linspace', 'plot', - 'title', 'xlabel', 'ylabel', 'legend', 'text', 'grid', 'meshgrid', 'mesh', 'num2str', - 'fft', 'ifft', 'arrayfun', 'cellfun', 'input', 'fliplr', 'flipud', 'ismember' - ]); - - var keywords = wordRegexp([ - 'return', 'case', 'switch', 'else', 'elseif', 'end', 'endif', 'endfunction', - 'if', 'otherwise', 'do', 'for', 'while', 'try', 'catch', 'classdef', 'properties', 'events', - 'methods', 'global', 'persistent', 'endfor', 'endwhile', 'printf', 'sprintf', 'disp', 'until', - 'continue', 'pkg' - ]); - - - // tokenizers - function tokenTranspose(stream, state) { - if (!stream.sol() && stream.peek() === '\'') { - stream.next(); - state.tokenize = tokenBase; - return 'operator'; - } - state.tokenize = tokenBase; - return tokenBase(stream, state); - } - - - function tokenComment(stream, state) { - if (stream.match(/^.*%}/)) { - state.tokenize = tokenBase; - return 'comment'; - }; - stream.skipToEnd(); - return 'comment'; - } - - function tokenBase(stream, state) { - // whitespaces - if (stream.eatSpace()) return null; - - // Handle one line Comments - if (stream.match('%{')){ - state.tokenize = tokenComment; - stream.skipToEnd(); - return 'comment'; - } - - if (stream.match(/^[%#]/)){ - stream.skipToEnd(); - return 'comment'; - } - - // Handle Number Literals - if (stream.match(/^[0-9\.+-]/, false)) { - if (stream.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/)) { - stream.tokenize = tokenBase; - return 'number'; }; - if (stream.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/)) { return 'number'; }; - if (stream.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/)) { return 'number'; }; - } - if (stream.match(wordRegexp(['nan','NaN','inf','Inf']))) { return 'number'; }; - - // Handle Strings - if (stream.match(/^"([^"]|(""))*"/)) { return 'string'; } ; - if (stream.match(/^'([^']|(''))*'/)) { return 'string'; } ; - - // Handle words - if (stream.match(keywords)) { return 'keyword'; } ; - if (stream.match(builtins)) { return 'builtin'; } ; - if (stream.match(identifiers)) { return 'variable'; } ; - - if (stream.match(singleOperators) || stream.match(doubleOperators)) { return 'operator'; }; - if (stream.match(singleDelimiters) || stream.match(doubleDelimiters) || stream.match(tripleDelimiters)) { return null; }; - - if (stream.match(expressionEnd)) { - state.tokenize = tokenTranspose; - return null; - }; - - - // Handle non-detected items - stream.next(); - return 'error'; - }; - - - return { - startState: function() { - return { - tokenize: tokenBase - }; - }, - - token: function(stream, state) { - var style = state.tokenize(stream, state); - if (style === 'number' || style === 'variable'){ - state.tokenize = tokenTranspose; - } - return style; - } - }; -}); - -CodeMirror.defineMIME("text/x-octave", "octave"); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/oz/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/oz/index.html deleted file mode 100644 index febd82a..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/oz/index.html +++ /dev/null @@ -1,59 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Oz mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="oz.js"></script> -<script type="text/javascript" src="../../addon/runmode/runmode.js"></script> -<style> - .CodeMirror {border: 1px solid #aaa;} -</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Oz</a> - </ul> -</div> - -<article> -<h2>Oz mode</h2> -<textarea id="code" name="code"> -declare -fun {Ints N Max} - if N == Max then nil - else - {Delay 1000} - N|{Ints N+1 Max} - end -end - -fun {Sum S Stream} - case Stream of nil then S - [] H|T then S|{Sum H+S T} end -end - -local X Y in - thread X = {Ints 0 1000} end - thread Y = {Sum 0 X} end - {Browse Y} -end -</textarea> -<p>MIME type defined: <code>text/x-oz</code>.</p> - -<script type="text/javascript"> -var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - lineNumbers: true, - mode: "text/x-oz", - readOnly: false -}); -</script> -</article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/oz/oz.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/oz/oz.js deleted file mode 100644 index ee8cb0a..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/oz/oz.js +++ /dev/null @@ -1,252 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("oz", function (conf) { - - function wordRegexp(words) { - return new RegExp("^((" + words.join(")|(") + "))\\b"); - } - - var singleOperators = /[\^@!\|<>#~\.\*\-\+\\/,=]/; - var doubleOperators = /(<-)|(:=)|(=<)|(>=)|(<=)|(<:)|(>:)|(=:)|(\\=)|(\\=:)|(!!)|(==)|(::)/; - var tripleOperators = /(:::)|(\.\.\.)|(=<:)|(>=:)/; - - var middle = ["in", "then", "else", "of", "elseof", "elsecase", "elseif", "catch", - "finally", "with", "require", "prepare", "import", "export", "define", "do"]; - var end = ["end"]; - - var atoms = wordRegexp(["true", "false", "nil", "unit"]); - var commonKeywords = wordRegexp(["andthen", "at", "attr", "declare", "feat", "from", "lex", - "mod", "mode", "orelse", "parser", "prod", "prop", "scanner", "self", "syn", "token"]); - var openingKeywords = wordRegexp(["local", "proc", "fun", "case", "class", "if", "cond", "or", "dis", - "choice", "not", "thread", "try", "raise", "lock", "for", "suchthat", "meth", "functor"]); - var middleKeywords = wordRegexp(middle); - var endKeywords = wordRegexp(end); - - // Tokenizers - function tokenBase(stream, state) { - if (stream.eatSpace()) { - return null; - } - - // Brackets - if(stream.match(/[{}]/)) { - return "bracket"; - } - - // Special [] keyword - if (stream.match(/(\[])/)) { - return "keyword" - } - - // Operators - if (stream.match(tripleOperators) || stream.match(doubleOperators)) { - return "operator"; - } - - // Atoms - if(stream.match(atoms)) { - return 'atom'; - } - - // Opening keywords - var matched = stream.match(openingKeywords); - if (matched) { - if (!state.doInCurrentLine) - state.currentIndent++; - else - state.doInCurrentLine = false; - - // Special matching for signatures - if(matched[0] == "proc" || matched[0] == "fun") - state.tokenize = tokenFunProc; - else if(matched[0] == "class") - state.tokenize = tokenClass; - else if(matched[0] == "meth") - state.tokenize = tokenMeth; - - return 'keyword'; - } - - // Middle and other keywords - if (stream.match(middleKeywords) || stream.match(commonKeywords)) { - return "keyword" - } - - // End keywords - if (stream.match(endKeywords)) { - state.currentIndent--; - return 'keyword'; - } - - // Eat the next char for next comparisons - var ch = stream.next(); - - // Strings - if (ch == '"' || ch == "'") { - state.tokenize = tokenString(ch); - return state.tokenize(stream, state); - } - - // Numbers - if (/[~\d]/.test(ch)) { - if (ch == "~") { - if(! /^[0-9]/.test(stream.peek())) - return null; - else if (( stream.next() == "0" && stream.match(/^[xX][0-9a-fA-F]+/)) || stream.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/)) - return "number"; - } - - if ((ch == "0" && stream.match(/^[xX][0-9a-fA-F]+/)) || stream.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/)) - return "number"; - - return null; - } - - // Comments - if (ch == "%") { - stream.skipToEnd(); - return 'comment'; - } - else if (ch == "/") { - if (stream.eat("*")) { - state.tokenize = tokenComment; - return tokenComment(stream, state); - } - } - - // Single operators - if(singleOperators.test(ch)) { - return "operator"; - } - - // If nothing match, we skip the entire alphanumerical block - stream.eatWhile(/\w/); - - return "variable"; - } - - function tokenClass(stream, state) { - if (stream.eatSpace()) { - return null; - } - stream.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)/); - state.tokenize = tokenBase; - return "variable-3" - } - - function tokenMeth(stream, state) { - if (stream.eatSpace()) { - return null; - } - stream.match(/([a-zA-Z][A-Za-z0-9_]*)|(`.+`)/); - state.tokenize = tokenBase; - return "def" - } - - function tokenFunProc(stream, state) { - if (stream.eatSpace()) { - return null; - } - - if(!state.hasPassedFirstStage && stream.eat("{")) { - state.hasPassedFirstStage = true; - return "bracket"; - } - else if(state.hasPassedFirstStage) { - stream.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)|\$/); - state.hasPassedFirstStage = false; - state.tokenize = tokenBase; - return "def" - } - else { - state.tokenize = tokenBase; - return null; - } - } - - function tokenComment(stream, state) { - var maybeEnd = false, ch; - while (ch = stream.next()) { - if (ch == "/" && maybeEnd) { - state.tokenize = tokenBase; - break; - } - maybeEnd = (ch == "*"); - } - return "comment"; - } - - function tokenString(quote) { - return function (stream, state) { - var escaped = false, next, end = false; - while ((next = stream.next()) != null) { - if (next == quote && !escaped) { - end = true; - break; - } - escaped = !escaped && next == "\\"; - } - if (end || !escaped) - state.tokenize = tokenBase; - return "string"; - }; - } - - function buildElectricInputRegEx() { - // Reindentation should occur on [] or on a match of any of - // the block closing keywords, at the end of a line. - var allClosings = middle.concat(end); - return new RegExp("[\\[\\]]|(" + allClosings.join("|") + ")$"); - } - - return { - - startState: function () { - return { - tokenize: tokenBase, - currentIndent: 0, - doInCurrentLine: false, - hasPassedFirstStage: false - }; - }, - - token: function (stream, state) { - if (stream.sol()) - state.doInCurrentLine = 0; - - return state.tokenize(stream, state); - }, - - indent: function (state, textAfter) { - var trueText = textAfter.replace(/^\s+|\s+$/g, ''); - - if (trueText.match(endKeywords) || trueText.match(middleKeywords) || trueText.match(/(\[])/)) - return conf.indentUnit * (state.currentIndent - 1); - - if (state.currentIndent < 0) - return 0; - - return state.currentIndent * conf.indentUnit; - }, - fold: "indent", - electricInput: buildElectricInputRegEx(), - lineComment: "%", - blockCommentStart: "/*", - blockCommentEnd: "*/" - }; -}); - -CodeMirror.defineMIME("text/x-oz", "oz"); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/pascal/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/pascal/index.html deleted file mode 100644 index f8a99ad..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/pascal/index.html +++ /dev/null @@ -1,61 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Pascal mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="pascal.js"></script> -<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Pascal</a> - </ul> -</div> - -<article> -<h2>Pascal mode</h2> - - -<div><textarea id="code" name="code"> -(* Example Pascal code *) - -while a <> b do writeln('Waiting'); - -if a > b then - writeln('Condition met') -else - writeln('Condition not met'); - -for i := 1 to 10 do - writeln('Iteration: ', i:1); - -repeat - a := a + 1 -until a = 10; - -case i of - 0: write('zero'); - 1: write('one'); - 2: write('two') -end; -</textarea></div> - - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - lineNumbers: true, - mode: "text/x-pascal" - }); - </script> - - <p><strong>MIME types defined:</strong> <code>text/x-pascal</code>.</p> - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/pascal/pascal.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/pascal/pascal.js deleted file mode 100644 index 2d0c3d4..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/pascal/pascal.js +++ /dev/null @@ -1,109 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("pascal", function() { - function words(str) { - var obj = {}, words = str.split(" "); - for (var i = 0; i < words.length; ++i) obj[words[i]] = true; - return obj; - } - var keywords = words("and array begin case const div do downto else end file for forward integer " + - "boolean char function goto if in label mod nil not of or packed procedure " + - "program record repeat set string then to type until var while with"); - var atoms = {"null": true}; - - var isOperatorChar = /[+\-*&%=<>!?|\/]/; - - function tokenBase(stream, state) { - var ch = stream.next(); - if (ch == "#" && state.startOfLine) { - stream.skipToEnd(); - return "meta"; - } - if (ch == '"' || ch == "'") { - state.tokenize = tokenString(ch); - return state.tokenize(stream, state); - } - if (ch == "(" && stream.eat("*")) { - state.tokenize = tokenComment; - return tokenComment(stream, state); - } - if (/[\[\]{}\(\),;\:\.]/.test(ch)) { - return null; - } - if (/\d/.test(ch)) { - stream.eatWhile(/[\w\.]/); - return "number"; - } - if (ch == "/") { - if (stream.eat("/")) { - stream.skipToEnd(); - return "comment"; - } - } - if (isOperatorChar.test(ch)) { - stream.eatWhile(isOperatorChar); - return "operator"; - } - stream.eatWhile(/[\w\$_]/); - var cur = stream.current(); - if (keywords.propertyIsEnumerable(cur)) return "keyword"; - if (atoms.propertyIsEnumerable(cur)) return "atom"; - return "variable"; - } - - function tokenString(quote) { - return function(stream, state) { - var escaped = false, next, end = false; - while ((next = stream.next()) != null) { - if (next == quote && !escaped) {end = true; break;} - escaped = !escaped && next == "\\"; - } - if (end || !escaped) state.tokenize = null; - return "string"; - }; - } - - function tokenComment(stream, state) { - var maybeEnd = false, ch; - while (ch = stream.next()) { - if (ch == ")" && maybeEnd) { - state.tokenize = null; - break; - } - maybeEnd = (ch == "*"); - } - return "comment"; - } - - // Interface - - return { - startState: function() { - return {tokenize: null}; - }, - - token: function(stream, state) { - if (stream.eatSpace()) return null; - var style = (state.tokenize || tokenBase)(stream, state); - if (style == "comment" || style == "meta") return style; - return style; - }, - - electricChars: "{}" - }; -}); - -CodeMirror.defineMIME("text/x-pascal", "pascal"); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/pegjs/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/pegjs/index.html deleted file mode 100644 index 0c74604..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/pegjs/index.html +++ /dev/null @@ -1,66 +0,0 @@ -<!doctype html> -<html> - <head> - <title>CodeMirror: PEG.js Mode</title> - <meta charset="utf-8"/> - <link rel=stylesheet href="../../doc/docs.css"> - - <link rel="stylesheet" href="../../lib/codemirror.css"> - <script src="../../lib/codemirror.js"></script> - <script src="../javascript/javascript.js"></script> - <script src="pegjs.js"></script> - <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> - </head> - <body> - <div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">PEG.js Mode</a> - </ul> - </div> - - <article> - <h2>PEG.js Mode</h2> - <form><textarea id="code" name="code"> -/* - * Classic example grammar, which recognizes simple arithmetic expressions like - * "2*(3+4)". The parser generated from this grammar then computes their value. - */ - -start - = additive - -additive - = left:multiplicative "+" right:additive { return left + right; } - / multiplicative - -multiplicative - = left:primary "*" right:multiplicative { return left * right; } - / primary - -primary - = integer - / "(" additive:additive ")" { return additive; } - -integer "integer" - = digits:[0-9]+ { return parseInt(digits.join(""), 10); } - -letter = [a-z]+</textarea></form> - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - mode: {name: "pegjs"}, - lineNumbers: true - }); - </script> - <h3>The PEG.js Mode</h3> - <p> Created by Forbes Lindesay.</p> - </article> - </body> -</html> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/pegjs/pegjs.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/pegjs/pegjs.js deleted file mode 100644 index 6c72074..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/pegjs/pegjs.js +++ /dev/null @@ -1,114 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror"), require("../javascript/javascript")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror", "../javascript/javascript"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("pegjs", function (config) { - var jsMode = CodeMirror.getMode(config, "javascript"); - - function identifier(stream) { - return stream.match(/^[a-zA-Z_][a-zA-Z0-9_]*/); - } - - return { - startState: function () { - return { - inString: false, - stringType: null, - inComment: false, - inCharacterClass: false, - braced: 0, - lhs: true, - localState: null - }; - }, - token: function (stream, state) { - if (stream) - - //check for state changes - if (!state.inString && !state.inComment && ((stream.peek() == '"') || (stream.peek() == "'"))) { - state.stringType = stream.peek(); - stream.next(); // Skip quote - state.inString = true; // Update state - } - if (!state.inString && !state.inComment && stream.match(/^\/\*/)) { - state.inComment = true; - } - - //return state - if (state.inString) { - while (state.inString && !stream.eol()) { - if (stream.peek() === state.stringType) { - stream.next(); // Skip quote - state.inString = false; // Clear flag - } else if (stream.peek() === '\\') { - stream.next(); - stream.next(); - } else { - stream.match(/^.[^\\\"\']*/); - } - } - return state.lhs ? "property string" : "string"; // Token style - } else if (state.inComment) { - while (state.inComment && !stream.eol()) { - if (stream.match(/\*\//)) { - state.inComment = false; // Clear flag - } else { - stream.match(/^.[^\*]*/); - } - } - return "comment"; - } else if (state.inCharacterClass) { - while (state.inCharacterClass && !stream.eol()) { - if (!(stream.match(/^[^\]\\]+/) || stream.match(/^\\./))) { - state.inCharacterClass = false; - } - } - } else if (stream.peek() === '[') { - stream.next(); - state.inCharacterClass = true; - return 'bracket'; - } else if (stream.match(/^\/\//)) { - stream.skipToEnd(); - return "comment"; - } else if (state.braced || stream.peek() === '{') { - if (state.localState === null) { - state.localState = CodeMirror.startState(jsMode); - } - var token = jsMode.token(stream, state.localState); - var text = stream.current(); - if (!token) { - for (var i = 0; i < text.length; i++) { - if (text[i] === '{') { - state.braced++; - } else if (text[i] === '}') { - state.braced--; - } - }; - } - return token; - } else if (identifier(stream)) { - if (stream.peek() === ':') { - return 'variable'; - } - return 'variable-2'; - } else if (['[', ']', '(', ')'].indexOf(stream.peek()) != -1) { - stream.next(); - return 'bracket'; - } else if (!stream.eatSpace()) { - stream.next(); - } - return null; - } - }; -}, "javascript"); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/perl/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/perl/index.html deleted file mode 100644 index 8c1021c..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/perl/index.html +++ /dev/null @@ -1,75 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Perl mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="perl.js"></script> -<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Perl</a> - </ul> -</div> - -<article> -<h2>Perl mode</h2> - - -<div><textarea id="code" name="code"> -#!/usr/bin/perl - -use Something qw(func1 func2); - -# strings -my $s1 = qq'single line'; -our $s2 = q(multi- - line); - -=item Something - Example. -=cut - -my $html=<<'HTML' -<html> -<title>hi!</title> -</html> -HTML - -print "first,".join(',', 'second', qq~third~); - -if($s1 =~ m[(?<!\s)(l.ne)\z]o) { - $h->{$1}=$$.' predefined variables'; - $s2 =~ s/\-line//ox; - $s1 =~ s[ - line ] - [ - block - ]ox; -} - -1; # numbers and comments - -__END__ -something... - -</textarea></div> - - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - lineNumbers: true - }); - </script> - - <p><strong>MIME types defined:</strong> <code>text/x-perl</code>.</p> - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/php/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/php/index.html deleted file mode 100644 index adf6b1b..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/php/index.html +++ /dev/null @@ -1,64 +0,0 @@ -<!doctype html> - -<title>CodeMirror: PHP mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../../addon/edit/matchbrackets.js"></script> -<script src="../htmlmixed/htmlmixed.js"></script> -<script src="../xml/xml.js"></script> -<script src="../javascript/javascript.js"></script> -<script src="../css/css.js"></script> -<script src="../clike/clike.js"></script> -<script src="php.js"></script> -<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">PHP</a> - </ul> -</div> - -<article> -<h2>PHP mode</h2> -<form><textarea id="code" name="code"> -<?php -$a = array('a' => 1, 'b' => 2, 3 => 'c'); - -echo "$a[a] ${a[3] /* } comment */} {$a[b]} \$a[a]"; - -function hello($who) { - return "Hello $who!"; -} -?> -<p>The program says <?= hello("World") ?>.</p> -<script> - alert("And here is some JS code"); // also colored -</script> -</textarea></form> - - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - lineNumbers: true, - matchBrackets: true, - mode: "application/x-httpd-php", - indentUnit: 4, - indentWithTabs: true - }); - </script> - - <p>Simple HTML/PHP mode based on - the <a href="../clike/">C-like</a> mode. Depends on XML, - JavaScript, CSS, HTMLMixed, and C-like modes.</p> - - <p><strong>MIME types defined:</strong> <code>application/x-httpd-php</code> (HTML with PHP code), <code>text/x-php</code> (plain, non-wrapped PHP code).</p> - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/php/php.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/php/php.js deleted file mode 100644 index 57ba812..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/php/php.js +++ /dev/null @@ -1,234 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed"), require("../clike/clike")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror", "../htmlmixed/htmlmixed", "../clike/clike"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { - "use strict"; - - function keywords(str) { - var obj = {}, words = str.split(" "); - for (var i = 0; i < words.length; ++i) obj[words[i]] = true; - return obj; - } - - // Helper for phpString - function matchSequence(list, end, escapes) { - if (list.length == 0) return phpString(end); - return function (stream, state) { - var patterns = list[0]; - for (var i = 0; i < patterns.length; i++) if (stream.match(patterns[i][0])) { - state.tokenize = matchSequence(list.slice(1), end); - return patterns[i][1]; - } - state.tokenize = phpString(end, escapes); - return "string"; - }; - } - function phpString(closing, escapes) { - return function(stream, state) { return phpString_(stream, state, closing, escapes); }; - } - function phpString_(stream, state, closing, escapes) { - // "Complex" syntax - if (escapes !== false && stream.match("${", false) || stream.match("{$", false)) { - state.tokenize = null; - return "string"; - } - - // Simple syntax - if (escapes !== false && stream.match(/^\$[a-zA-Z_][a-zA-Z0-9_]*/)) { - // After the variable name there may appear array or object operator. - if (stream.match("[", false)) { - // Match array operator - state.tokenize = matchSequence([ - [["[", null]], - [[/\d[\w\.]*/, "number"], - [/\$[a-zA-Z_][a-zA-Z0-9_]*/, "variable-2"], - [/[\w\$]+/, "variable"]], - [["]", null]] - ], closing, escapes); - } - if (stream.match(/\-\>\w/, false)) { - // Match object operator - state.tokenize = matchSequence([ - [["->", null]], - [[/[\w]+/, "variable"]] - ], closing, escapes); - } - return "variable-2"; - } - - var escaped = false; - // Normal string - while (!stream.eol() && - (escaped || escapes === false || - (!stream.match("{$", false) && - !stream.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/, false)))) { - if (!escaped && stream.match(closing)) { - state.tokenize = null; - state.tokStack.pop(); state.tokStack.pop(); - break; - } - escaped = stream.next() == "\\" && !escaped; - } - return "string"; - } - - var phpKeywords = "abstract and array as break case catch class clone const continue declare default " + - "do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final " + - "for foreach function global goto if implements interface instanceof namespace " + - "new or private protected public static switch throw trait try use var while xor " + - "die echo empty exit eval include include_once isset list require require_once return " + - "print unset __halt_compiler self static parent yield insteadof finally"; - var phpAtoms = "true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__"; - var phpBuiltin = "func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count"; - CodeMirror.registerHelper("hintWords", "php", [phpKeywords, phpAtoms, phpBuiltin].join(" ").split(" ")); - CodeMirror.registerHelper("wordChars", "php", /[\w$]/); - - var phpConfig = { - name: "clike", - helperType: "php", - keywords: keywords(phpKeywords), - blockKeywords: keywords("catch do else elseif for foreach if switch try while finally"), - defKeywords: keywords("class function interface namespace trait"), - atoms: keywords(phpAtoms), - builtin: keywords(phpBuiltin), - multiLineStrings: true, - hooks: { - "$": function(stream) { - stream.eatWhile(/[\w\$_]/); - return "variable-2"; - }, - "<": function(stream, state) { - var before; - if (before = stream.match(/<<\s*/)) { - var quoted = stream.eat(/['"]/); - stream.eatWhile(/[\w\.]/); - var delim = stream.current().slice(before[0].length + (quoted ? 2 : 1)); - if (quoted) stream.eat(quoted); - if (delim) { - (state.tokStack || (state.tokStack = [])).push(delim, 0); - state.tokenize = phpString(delim, quoted != "'"); - return "string"; - } - } - return false; - }, - "#": function(stream) { - while (!stream.eol() && !stream.match("?>", false)) stream.next(); - return "comment"; - }, - "/": function(stream) { - if (stream.eat("/")) { - while (!stream.eol() && !stream.match("?>", false)) stream.next(); - return "comment"; - } - return false; - }, - '"': function(_stream, state) { - (state.tokStack || (state.tokStack = [])).push('"', 0); - state.tokenize = phpString('"'); - return "string"; - }, - "{": function(_stream, state) { - if (state.tokStack && state.tokStack.length) - state.tokStack[state.tokStack.length - 1]++; - return false; - }, - "}": function(_stream, state) { - if (state.tokStack && state.tokStack.length > 0 && - !--state.tokStack[state.tokStack.length - 1]) { - state.tokenize = phpString(state.tokStack[state.tokStack.length - 2]); - } - return false; - } - } - }; - - CodeMirror.defineMode("php", function(config, parserConfig) { - var htmlMode = CodeMirror.getMode(config, "text/html"); - var phpMode = CodeMirror.getMode(config, phpConfig); - - function dispatch(stream, state) { - var isPHP = state.curMode == phpMode; - if (stream.sol() && state.pending && state.pending != '"' && state.pending != "'") state.pending = null; - if (!isPHP) { - if (stream.match(/^<\?\w*/)) { - state.curMode = phpMode; - if (!state.php) state.php = CodeMirror.startState(phpMode, htmlMode.indent(state.html, "")) - state.curState = state.php; - return "meta"; - } - if (state.pending == '"' || state.pending == "'") { - while (!stream.eol() && stream.next() != state.pending) {} - var style = "string"; - } else if (state.pending && stream.pos < state.pending.end) { - stream.pos = state.pending.end; - var style = state.pending.style; - } else { - var style = htmlMode.token(stream, state.curState); - } - if (state.pending) state.pending = null; - var cur = stream.current(), openPHP = cur.search(/<\?/), m; - if (openPHP != -1) { - if (style == "string" && (m = cur.match(/[\'\"]$/)) && !/\?>/.test(cur)) state.pending = m[0]; - else state.pending = {end: stream.pos, style: style}; - stream.backUp(cur.length - openPHP); - } - return style; - } else if (isPHP && state.php.tokenize == null && stream.match("?>")) { - state.curMode = htmlMode; - state.curState = state.html; - if (!state.php.context.prev) state.php = null; - return "meta"; - } else { - return phpMode.token(stream, state.curState); - } - } - - return { - startState: function() { - var html = CodeMirror.startState(htmlMode) - var php = parserConfig.startOpen ? CodeMirror.startState(phpMode) : null - return {html: html, - php: php, - curMode: parserConfig.startOpen ? phpMode : htmlMode, - curState: parserConfig.startOpen ? php : html, - pending: null}; - }, - - copyState: function(state) { - var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html), - php = state.php, phpNew = php && CodeMirror.copyState(phpMode, php), cur; - if (state.curMode == htmlMode) cur = htmlNew; - else cur = phpNew; - return {html: htmlNew, php: phpNew, curMode: state.curMode, curState: cur, - pending: state.pending}; - }, - - token: dispatch, - - indent: function(state, textAfter) { - if ((state.curMode != phpMode && /^\s*<\//.test(textAfter)) || - (state.curMode == phpMode && /^\?>/.test(textAfter))) - return htmlMode.indent(state.html, textAfter); - return state.curMode.indent(state.curState, textAfter); - }, - - blockCommentStart: "/*", - blockCommentEnd: "*/", - lineComment: "//", - - innerMode: function(state) { return {state: state.curState, mode: state.curMode}; } - }; - }, "htmlmixed", "clike"); - - CodeMirror.defineMIME("application/x-httpd-php", "php"); - CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true}); - CodeMirror.defineMIME("text/x-php", phpConfig); -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/php/test.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/php/test.js deleted file mode 100644 index e2ecefc..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/php/test.js +++ /dev/null @@ -1,154 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function() { - var mode = CodeMirror.getMode({indentUnit: 2}, "php"); - function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); } - - MT('simple_test', - '[meta <?php] ' + - '[keyword echo] [string "aaa"]; ' + - '[meta ?>]'); - - MT('variable_interpolation_non_alphanumeric', - '[meta <?php]', - '[keyword echo] [string "aaa$~$!$@$#$$$%$^$&$*$($)$.$<$>$/$\\$}$\\\"$:$;$?$|$[[$]]$+$=aaa"]', - '[meta ?>]'); - - MT('variable_interpolation_digits', - '[meta <?php]', - '[keyword echo] [string "aaa$1$2$3$4$5$6$7$8$9$0aaa"]', - '[meta ?>]'); - - MT('variable_interpolation_simple_syntax_1', - '[meta <?php]', - '[keyword echo] [string "aaa][variable-2 $aaa][string .aaa"];', - '[meta ?>]'); - - MT('variable_interpolation_simple_syntax_2', - '[meta <?php]', - '[keyword echo] [string "][variable-2 $aaaa][[','[number 2]', ']][string aa"];', - '[keyword echo] [string "][variable-2 $aaaa][[','[number 2345]', ']][string aa"];', - '[keyword echo] [string "][variable-2 $aaaa][[','[number 2.3]', ']][string aa"];', - '[keyword echo] [string "][variable-2 $aaaa][[','[variable aaaaa]', ']][string aa"];', - '[keyword echo] [string "][variable-2 $aaaa][[','[variable-2 $aaaaa]',']][string aa"];', - - '[keyword echo] [string "1aaa][variable-2 $aaaa][[','[number 2]', ']][string aa"];', - '[keyword echo] [string "aaa][variable-2 $aaaa][[','[number 2345]', ']][string aa"];', - '[keyword echo] [string "aaa][variable-2 $aaaa][[','[number 2.3]', ']][string aa"];', - '[keyword echo] [string "aaa][variable-2 $aaaa][[','[variable aaaaa]', ']][string aa"];', - '[keyword echo] [string "aaa][variable-2 $aaaa][[','[variable-2 $aaaaa]',']][string aa"];', - '[meta ?>]'); - - MT('variable_interpolation_simple_syntax_3', - '[meta <?php]', - '[keyword echo] [string "aaa][variable-2 $aaaa]->[variable aaaaa][string .aaaaaa"];', - '[keyword echo] [string "aaa][variable-2 $aaaa][string ->][variable-2 $aaaaa][string .aaaaaa"];', - '[keyword echo] [string "aaa][variable-2 $aaaa]->[variable aaaaa][string [[2]].aaaaaa"];', - '[keyword echo] [string "aaa][variable-2 $aaaa]->[variable aaaaa][string ->aaaa2.aaaaaa"];', - '[meta ?>]'); - - MT('variable_interpolation_escaping', - '[meta <?php] [comment /* Escaping */]', - '[keyword echo] [string "aaa\\$aaaa->aaa.aaa"];', - '[keyword echo] [string "aaa\\$aaaa[[2]]aaa.aaa"];', - '[keyword echo] [string "aaa\\$aaaa[[asd]]aaa.aaa"];', - '[keyword echo] [string "aaa{\\$aaaa->aaa.aaa"];', - '[keyword echo] [string "aaa{\\$aaaa[[2]]aaa.aaa"];', - '[keyword echo] [string "aaa{\\aaaaa[[asd]]aaa.aaa"];', - '[keyword echo] [string "aaa\\${aaaa->aaa.aaa"];', - '[keyword echo] [string "aaa\\${aaaa[[2]]aaa.aaa"];', - '[keyword echo] [string "aaa\\${aaaa[[asd]]aaa.aaa"];', - '[meta ?>]'); - - MT('variable_interpolation_complex_syntax_1', - '[meta <?php]', - '[keyword echo] [string "aaa][variable-2 $]{[variable aaaa]}[string ->aaa.aaa"];', - '[keyword echo] [string "aaa][variable-2 $]{[variable-2 $aaaa]}[string ->aaa.aaa"];', - '[keyword echo] [string "aaa][variable-2 $]{[variable-2 $aaaa][[',' [number 42]',']]}[string ->aaa.aaa"];', - '[keyword echo] [string "aaa][variable-2 $]{[variable aaaa][meta ?>]aaaaaa'); - - MT('variable_interpolation_complex_syntax_2', - '[meta <?php] [comment /* Monsters */]', - '[keyword echo] [string "][variable-2 $]{[variable aaa][comment /*}?>} $aaa<?php } */]}[string ->aaa.aaa"];', - '[keyword echo] [string "][variable-2 $]{[variable aaa][comment /*}?>*/][[',' [string "aaa][variable-2 $aaa][string {}][variable-2 $]{[variable aaa]}[string "]',']]}[string ->aaa.aaa"];', - '[keyword echo] [string "][variable-2 $]{[variable aaa][comment /*} } $aaa } */]}[string ->aaa.aaa"];'); - - - function build_recursive_monsters(nt, t, n){ - var monsters = [t]; - for (var i = 1; i <= n; ++i) - monsters[i] = nt.join(monsters[i - 1]); - return monsters; - } - - var m1 = build_recursive_monsters( - ['[string "][variable-2 $]{[variable aaa] [operator +] ', '}[string "]'], - '[comment /* }?>} */] [string "aaa][variable-2 $aaa][string .aaa"]', - 10 - ); - - MT('variable_interpolation_complex_syntax_3_1', - '[meta <?php] [comment /* Recursive monsters */]', - '[keyword echo] ' + m1[4] + ';', - '[keyword echo] ' + m1[7] + ';', - '[keyword echo] ' + m1[8] + ';', - '[keyword echo] ' + m1[5] + ';', - '[keyword echo] ' + m1[1] + ';', - '[keyword echo] ' + m1[6] + ';', - '[keyword echo] ' + m1[9] + ';', - '[keyword echo] ' + m1[0] + ';', - '[keyword echo] ' + m1[10] + ';', - '[keyword echo] ' + m1[2] + ';', - '[keyword echo] ' + m1[3] + ';', - '[keyword echo] [string "end"];', - '[meta ?>]'); - - var m2 = build_recursive_monsters( - ['[string "a][variable-2 $]{[variable aaa] [operator +] ', ' [operator +] ', '}[string .a"]'], - '[comment /* }?>{{ */] [string "a?>}{{aa][variable-2 $aaa][string .a}a?>a"]', - 5 - ); - - MT('variable_interpolation_complex_syntax_3_2', - '[meta <?php] [comment /* Recursive monsters 2 */]', - '[keyword echo] ' + m2[0] + ';', - '[keyword echo] ' + m2[1] + ';', - '[keyword echo] ' + m2[5] + ';', - '[keyword echo] ' + m2[4] + ';', - '[keyword echo] ' + m2[2] + ';', - '[keyword echo] ' + m2[3] + ';', - '[keyword echo] [string "end"];', - '[meta ?>]'); - - function build_recursive_monsters_2(mf1, mf2, nt, t, n){ - var monsters = [t]; - for (var i = 1; i <= n; ++i) - monsters[i] = nt[0] + mf1[i - 1] + nt[1] + mf2[i - 1] + nt[2] + monsters[i - 1] + nt[3]; - return monsters; - } - - var m3 = build_recursive_monsters_2( - m1, - m2, - ['[string "a][variable-2 $]{[variable aaa] [operator +] ', ' [operator +] ', ' [operator +] ', '}[string .a"]'], - '[comment /* }?>{{ */] [string "a?>}{{aa][variable-2 $aaa][string .a}a?>a"]', - 4 - ); - - MT('variable_interpolation_complex_syntax_3_3', - '[meta <?php] [comment /* Recursive monsters 2 */]', - '[keyword echo] ' + m3[4] + ';', - '[keyword echo] ' + m3[0] + ';', - '[keyword echo] ' + m3[3] + ';', - '[keyword echo] ' + m3[1] + ';', - '[keyword echo] ' + m3[2] + ';', - '[keyword echo] [string "end"];', - '[meta ?>]'); - - MT("variable_interpolation_heredoc", - "[meta <?php]", - "[string <<<here]", - "[string doc ][variable-2 $]{[variable yay]}[string more]", - "[string here]; [comment // normal]"); -})(); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/pig/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/pig/index.html deleted file mode 100644 index ea77f70..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/pig/index.html +++ /dev/null @@ -1,53 +0,0 @@ -<!doctype html> -<title>CodeMirror: Pig Latin mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="pig.js"></script> -<style>.CodeMirror {border: 2px inset #dee;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Pig Latin</a> - </ul> -</div> - -<article> -<h2>Pig Latin mode</h2> -<form><textarea id="code" name="code"> --- Apache Pig (Pig Latin Language) Demo -/* -This is a multiline comment. -*/ -a = LOAD "\path\to\input" USING PigStorage('\t') AS (x:long, y:chararray, z:bytearray); -b = GROUP a BY (x,y,3+4); -c = FOREACH b GENERATE flatten(group) as (x,y), SUM(group.$2) as z; -STORE c INTO "\path\to\output"; - --- -</textarea></form> - - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - lineNumbers: true, - indentUnit: 4, - mode: "text/x-pig" - }); - </script> - - <p> - Simple mode that handles Pig Latin language. - </p> - - <p><strong>MIME type defined:</strong> <code>text/x-pig</code> - (PIG code) -</article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/pig/pig.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/pig/pig.js deleted file mode 100644 index 5b56727..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/pig/pig.js +++ /dev/null @@ -1,178 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -/* - * Pig Latin Mode for CodeMirror 2 - * @author Prasanth Jayachandran - * @link https://github.com/prasanthj/pig-codemirror-2 - * This implementation is adapted from PL/SQL mode in CodeMirror 2. - */ -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("pig", function(_config, parserConfig) { - var keywords = parserConfig.keywords, - builtins = parserConfig.builtins, - types = parserConfig.types, - multiLineStrings = parserConfig.multiLineStrings; - - var isOperatorChar = /[*+\-%<>=&?:\/!|]/; - - function chain(stream, state, f) { - state.tokenize = f; - return f(stream, state); - } - - function tokenComment(stream, state) { - var isEnd = false; - var ch; - while(ch = stream.next()) { - if(ch == "/" && isEnd) { - state.tokenize = tokenBase; - break; - } - isEnd = (ch == "*"); - } - return "comment"; - } - - function tokenString(quote) { - return function(stream, state) { - var escaped = false, next, end = false; - while((next = stream.next()) != null) { - if (next == quote && !escaped) { - end = true; break; - } - escaped = !escaped && next == "\\"; - } - if (end || !(escaped || multiLineStrings)) - state.tokenize = tokenBase; - return "error"; - }; - } - - - function tokenBase(stream, state) { - var ch = stream.next(); - - // is a start of string? - if (ch == '"' || ch == "'") - return chain(stream, state, tokenString(ch)); - // is it one of the special chars - else if(/[\[\]{}\(\),;\.]/.test(ch)) - return null; - // is it a number? - else if(/\d/.test(ch)) { - stream.eatWhile(/[\w\.]/); - return "number"; - } - // multi line comment or operator - else if (ch == "/") { - if (stream.eat("*")) { - return chain(stream, state, tokenComment); - } - else { - stream.eatWhile(isOperatorChar); - return "operator"; - } - } - // single line comment or operator - else if (ch=="-") { - if(stream.eat("-")){ - stream.skipToEnd(); - return "comment"; - } - else { - stream.eatWhile(isOperatorChar); - return "operator"; - } - } - // is it an operator - else if (isOperatorChar.test(ch)) { - stream.eatWhile(isOperatorChar); - return "operator"; - } - else { - // get the while word - stream.eatWhile(/[\w\$_]/); - // is it one of the listed keywords? - if (keywords && keywords.propertyIsEnumerable(stream.current().toUpperCase())) { - //keywords can be used as variables like flatten(group), group.$0 etc.. - if (!stream.eat(")") && !stream.eat(".")) - return "keyword"; - } - // is it one of the builtin functions? - if (builtins && builtins.propertyIsEnumerable(stream.current().toUpperCase())) - return "variable-2"; - // is it one of the listed types? - if (types && types.propertyIsEnumerable(stream.current().toUpperCase())) - return "variable-3"; - // default is a 'variable' - return "variable"; - } - } - - // Interface - return { - startState: function() { - return { - tokenize: tokenBase, - startOfLine: true - }; - }, - - token: function(stream, state) { - if(stream.eatSpace()) return null; - var style = state.tokenize(stream, state); - return style; - } - }; -}); - -(function() { - function keywords(str) { - var obj = {}, words = str.split(" "); - for (var i = 0; i < words.length; ++i) obj[words[i]] = true; - return obj; - } - - // builtin funcs taken from trunk revision 1303237 - var pBuiltins = "ABS ACOS ARITY ASIN ATAN AVG BAGSIZE BINSTORAGE BLOOM BUILDBLOOM CBRT CEIL " - + "CONCAT COR COS COSH COUNT COUNT_STAR COV CONSTANTSIZE CUBEDIMENSIONS DIFF DISTINCT DOUBLEABS " - + "DOUBLEAVG DOUBLEBASE DOUBLEMAX DOUBLEMIN DOUBLEROUND DOUBLESUM EXP FLOOR FLOATABS FLOATAVG " - + "FLOATMAX FLOATMIN FLOATROUND FLOATSUM GENERICINVOKER INDEXOF INTABS INTAVG INTMAX INTMIN " - + "INTSUM INVOKEFORDOUBLE INVOKEFORFLOAT INVOKEFORINT INVOKEFORLONG INVOKEFORSTRING INVOKER " - + "ISEMPTY JSONLOADER JSONMETADATA JSONSTORAGE LAST_INDEX_OF LCFIRST LOG LOG10 LOWER LONGABS " - + "LONGAVG LONGMAX LONGMIN LONGSUM MAX MIN MAPSIZE MONITOREDUDF NONDETERMINISTIC OUTPUTSCHEMA " - + "PIGSTORAGE PIGSTREAMING RANDOM REGEX_EXTRACT REGEX_EXTRACT_ALL REPLACE ROUND SIN SINH SIZE " - + "SQRT STRSPLIT SUBSTRING SUM STRINGCONCAT STRINGMAX STRINGMIN STRINGSIZE TAN TANH TOBAG " - + "TOKENIZE TOMAP TOP TOTUPLE TRIM TEXTLOADER TUPLESIZE UCFIRST UPPER UTF8STORAGECONVERTER "; - - // taken from QueryLexer.g - var pKeywords = "VOID IMPORT RETURNS DEFINE LOAD FILTER FOREACH ORDER CUBE DISTINCT COGROUP " - + "JOIN CROSS UNION SPLIT INTO IF OTHERWISE ALL AS BY USING INNER OUTER ONSCHEMA PARALLEL " - + "PARTITION GROUP AND OR NOT GENERATE FLATTEN ASC DESC IS STREAM THROUGH STORE MAPREDUCE " - + "SHIP CACHE INPUT OUTPUT STDERROR STDIN STDOUT LIMIT SAMPLE LEFT RIGHT FULL EQ GT LT GTE LTE " - + "NEQ MATCHES TRUE FALSE DUMP"; - - // data types - var pTypes = "BOOLEAN INT LONG FLOAT DOUBLE CHARARRAY BYTEARRAY BAG TUPLE MAP "; - - CodeMirror.defineMIME("text/x-pig", { - name: "pig", - builtins: keywords(pBuiltins), - keywords: keywords(pKeywords), - types: keywords(pTypes) - }); - - CodeMirror.registerHelper("hintWords", "pig", (pBuiltins + pTypes + pKeywords).split(" ")); -}()); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/powershell/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/powershell/index.html deleted file mode 100644 index 6b235df..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/powershell/index.html +++ /dev/null @@ -1,204 +0,0 @@ -<!doctype html> -<html> - <head> - <meta charset="utf-8"> - <title>CodeMirror: Powershell mode</title> - <link rel="stylesheet" href="../../doc/docs.css"> - <link rel="stylesheet" href="../../lib/codemirror.css"> - <script src="../../lib/codemirror.js"></script> - <script src="powershell.js"></script> - <style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> - </head> - <body> - <div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">JavaScript</a> - </ul> - </div> - <article> - <h2>PowerShell mode</h2> - - <div><textarea id="code" name="code"> -# Number Literals -0 12345 -12kb 12mb 12gB 12Tb 12PB 12L 12D 12lkb 12dtb -1.234 1.234e56 1. 1.e2 .2 .2e34 -1.2MB 1.kb .1dTb 1.e1gb -0x1 0xabcdef 0x3tb 0xelmb - -# String Literals -'Literal escaping''' -'Literal $variable' -"Escaping 1`"" -"Escaping 2""" -"Escaped `$variable" -"Text, $variable and more text" -"Text, ${variable with spaces} and more text." -"Text, $($expression + 3) and more text." -"Text, $("interpolation $("inception")") and more text." - -@" -Multiline -string -"@ -# -- -@" -Multiline -string with quotes "' -"@ -# -- -@' -Multiline literal -string with quotes "' -'@ - -# Array and Hash literals -@( 'a','b','c' ) -@{ 'key': 'value' } - -# Variables -$Variable = 5 -$global:variable = 5 -${Variable with spaces} = 5 - -# Operators -= += -= *= /= %= -++ -- .. -f * / % + - --not ! -bnot --split -isplit -csplit --join --is -isnot -as --eq -ieq -ceq -ne -ine -cne --gt -igt -cgt -ge -ige -cge --lt -ilt -clt -le -ile -cle --like -ilike -clike -notlike -inotlike -cnotlike --match -imatch -cmatch -notmatch -inotmatch -cnotmatch --contains -icontains -ccontains -notcontains -inotcontains -cnotcontains --replace -ireplace -creplace --band -bor -bxor --and -or -xor - -# Punctuation -() [] {} , : ` = ; . - -# Keywords -elseif begin function for foreach return else trap while do data dynamicparam -until end break if throw param continue finally in switch exit filter from try -process catch - -# Built-in variables -$$ $? $^ $_ -$args $ConfirmPreference $ConsoleFileName $DebugPreference $Error -$ErrorActionPreference $ErrorView $ExecutionContext $false $FormatEnumerationLimit -$HOME $Host $input $MaximumAliasCount $MaximumDriveCount $MaximumErrorCount -$MaximumFunctionCount $MaximumHistoryCount $MaximumVariableCount $MyInvocation -$NestedPromptLevel $null $OutputEncoding $PID $PROFILE $ProgressPreference -$PSBoundParameters $PSCommandPath $PSCulture $PSDefaultParameterValues -$PSEmailServer $PSHOME $PSScriptRoot $PSSessionApplicationName -$PSSessionConfigurationName $PSSessionOption $PSUICulture $PSVersionTable $PWD -$ShellId $StackTrace $true $VerbosePreference $WarningPreference $WhatIfPreference -$true $false $null - -# Built-in functions -A: -Add-Computer Add-Content Add-History Add-Member Add-PSSnapin Add-Type -B: -C: -Checkpoint-Computer Clear-Content Clear-EventLog Clear-History Clear-Host Clear-Item -Clear-ItemProperty Clear-Variable Compare-Object Complete-Transaction Connect-PSSession -ConvertFrom-Csv ConvertFrom-Json ConvertFrom-SecureString ConvertFrom-StringData -Convert-Path ConvertTo-Csv ConvertTo-Html ConvertTo-Json ConvertTo-SecureString -ConvertTo-Xml Copy-Item Copy-ItemProperty -D: -Debug-Process Disable-ComputerRestore Disable-PSBreakpoint Disable-PSRemoting -Disable-PSSessionConfiguration Disconnect-PSSession -E: -Enable-ComputerRestore Enable-PSBreakpoint Enable-PSRemoting Enable-PSSessionConfiguration -Enter-PSSession Exit-PSSession Export-Alias Export-Clixml Export-Console Export-Counter -Export-Csv Export-FormatData Export-ModuleMember Export-PSSession -F: -ForEach-Object Format-Custom Format-List Format-Table Format-Wide -G: -Get-Acl Get-Alias Get-AuthenticodeSignature Get-ChildItem Get-Command Get-ComputerRestorePoint -Get-Content Get-ControlPanelItem Get-Counter Get-Credential Get-Culture Get-Date -Get-Event Get-EventLog Get-EventSubscriber Get-ExecutionPolicy Get-FormatData Get-Help -Get-History Get-Host Get-HotFix Get-Item Get-ItemProperty Get-Job Get-Location Get-Member -Get-Module Get-PfxCertificate Get-Process Get-PSBreakpoint Get-PSCallStack Get-PSDrive -Get-PSProvider Get-PSSession Get-PSSessionConfiguration Get-PSSnapin Get-Random Get-Service -Get-TraceSource Get-Transaction Get-TypeData Get-UICulture Get-Unique Get-Variable Get-Verb -Get-WinEvent Get-WmiObject Group-Object -H: -help -I: -Import-Alias Import-Clixml Import-Counter Import-Csv Import-LocalizedData Import-Module -Import-PSSession ImportSystemModules Invoke-Command Invoke-Expression Invoke-History -Invoke-Item Invoke-RestMethod Invoke-WebRequest Invoke-WmiMethod -J: -Join-Path -K: -L: -Limit-EventLog -M: -Measure-Command Measure-Object mkdir more Move-Item Move-ItemProperty -N: -New-Alias New-Event New-EventLog New-Item New-ItemProperty New-Module New-ModuleManifest -New-Object New-PSDrive New-PSSession New-PSSessionConfigurationFile New-PSSessionOption -New-PSTransportOption New-Service New-TimeSpan New-Variable New-WebServiceProxy -New-WinEvent -O: -oss Out-Default Out-File Out-GridView Out-Host Out-Null Out-Printer Out-String -P: -Pause Pop-Location prompt Push-Location -Q: -R: -Read-Host Receive-Job Receive-PSSession Register-EngineEvent Register-ObjectEvent -Register-PSSessionConfiguration Register-WmiEvent Remove-Computer Remove-Event -Remove-EventLog Remove-Item Remove-ItemProperty Remove-Job Remove-Module -Remove-PSBreakpoint Remove-PSDrive Remove-PSSession Remove-PSSnapin Remove-TypeData -Remove-Variable Remove-WmiObject Rename-Computer Rename-Item Rename-ItemProperty -Reset-ComputerMachinePassword Resolve-Path Restart-Computer Restart-Service -Restore-Computer Resume-Job Resume-Service -S: -Save-Help Select-Object Select-String Select-Xml Send-MailMessage Set-Acl Set-Alias -Set-AuthenticodeSignature Set-Content Set-Date Set-ExecutionPolicy Set-Item -Set-ItemProperty Set-Location Set-PSBreakpoint Set-PSDebug -Set-PSSessionConfiguration Set-Service Set-StrictMode Set-TraceSource Set-Variable -Set-WmiInstance Show-Command Show-ControlPanelItem Show-EventLog Sort-Object -Split-Path Start-Job Start-Process Start-Service Start-Sleep Start-Transaction -Start-Transcript Stop-Computer Stop-Job Stop-Process Stop-Service Stop-Transcript -Suspend-Job Suspend-Service -T: -TabExpansion2 Tee-Object Test-ComputerSecureChannel Test-Connection -Test-ModuleManifest Test-Path Test-PSSessionConfigurationFile Trace-Command -U: -Unblock-File Undo-Transaction Unregister-Event Unregister-PSSessionConfiguration -Update-FormatData Update-Help Update-List Update-TypeData Use-Transaction -V: -W: -Wait-Event Wait-Job Wait-Process Where-Object Write-Debug Write-Error Write-EventLog -Write-Host Write-Output Write-Progress Write-Verbose Write-Warning -X: -Y: -Z:</textarea></div> - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - mode: "powershell", - lineNumbers: true, - indentUnit: 4, - tabMode: "shift", - matchBrackets: true - }); - </script> - - <p><strong>MIME types defined:</strong> <code>application/x-powershell</code>.</p> - </article> - </body> -</html> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/powershell/powershell.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/powershell/powershell.js deleted file mode 100644 index c443e72..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/powershell/powershell.js +++ /dev/null @@ -1,396 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - 'use strict'; - if (typeof exports == 'object' && typeof module == 'object') // CommonJS - mod(require('codemirror')); - else if (typeof define == 'function' && define.amd) // AMD - define(['codemirror'], mod); - else // Plain browser env - mod(window.CodeMirror); -})(function(CodeMirror) { -'use strict'; - -CodeMirror.defineMode('powershell', function() { - function buildRegexp(patterns, options) { - options = options || {}; - var prefix = options.prefix !== undefined ? options.prefix : '^'; - var suffix = options.suffix !== undefined ? options.suffix : '\\b'; - - for (var i = 0; i < patterns.length; i++) { - if (patterns[i] instanceof RegExp) { - patterns[i] = patterns[i].source; - } - else { - patterns[i] = patterns[i].replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'); - } - } - - return new RegExp(prefix + '(' + patterns.join('|') + ')' + suffix, 'i'); - } - - var notCharacterOrDash = '(?=[^A-Za-z\\d\\-_]|$)'; - var varNames = /[\w\-:]/ - var keywords = buildRegexp([ - /begin|break|catch|continue|data|default|do|dynamicparam/, - /else|elseif|end|exit|filter|finally|for|foreach|from|function|if|in/, - /param|process|return|switch|throw|trap|try|until|where|while/ - ], { suffix: notCharacterOrDash }); - - var punctuation = /[\[\]{},;`\.]|@[({]/; - var wordOperators = buildRegexp([ - 'f', - /b?not/, - /[ic]?split/, 'join', - /is(not)?/, 'as', - /[ic]?(eq|ne|[gl][te])/, - /[ic]?(not)?(like|match|contains)/, - /[ic]?replace/, - /b?(and|or|xor)/ - ], { prefix: '-' }); - var symbolOperators = /[+\-*\/%]=|\+\+|--|\.\.|[+\-*&^%:=!|\/]|<(?!#)|(?!#)>/; - var operators = buildRegexp([wordOperators, symbolOperators], { suffix: '' }); - - var numbers = /^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i; - - var identifiers = /^[A-Za-z\_][A-Za-z\-\_\d]*\b/; - - var symbolBuiltins = /[A-Z]:|%|\?/i; - var namedBuiltins = buildRegexp([ - /Add-(Computer|Content|History|Member|PSSnapin|Type)/, - /Checkpoint-Computer/, - /Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/, - /Compare-Object/, - /Complete-Transaction/, - /Connect-PSSession/, - /ConvertFrom-(Csv|Json|SecureString|StringData)/, - /Convert-Path/, - /ConvertTo-(Csv|Html|Json|SecureString|Xml)/, - /Copy-Item(Property)?/, - /Debug-Process/, - /Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/, - /Disconnect-PSSession/, - /Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/, - /(Enter|Exit)-PSSession/, - /Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/, - /ForEach-Object/, - /Format-(Custom|List|Table|Wide)/, - new RegExp('Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential' - + '|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job' - + '|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration' - + '|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)'), - /Group-Object/, - /Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/, - /ImportSystemModules/, - /Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/, - /Join-Path/, - /Limit-EventLog/, - /Measure-(Command|Object)/, - /Move-Item(Property)?/, - new RegExp('New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile' - + '|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)'), - /Out-(Default|File|GridView|Host|Null|Printer|String)/, - /Pause/, - /(Pop|Push)-Location/, - /Read-Host/, - /Receive-(Job|PSSession)/, - /Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/, - /Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/, - /Rename-(Computer|Item(Property)?)/, - /Reset-ComputerMachinePassword/, - /Resolve-Path/, - /Restart-(Computer|Service)/, - /Restore-Computer/, - /Resume-(Job|Service)/, - /Save-Help/, - /Select-(Object|String|Xml)/, - /Send-MailMessage/, - new RegExp('Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug' + - '|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)'), - /Show-(Command|ControlPanelItem|EventLog)/, - /Sort-Object/, - /Split-Path/, - /Start-(Job|Process|Service|Sleep|Transaction|Transcript)/, - /Stop-(Computer|Job|Process|Service|Transcript)/, - /Suspend-(Job|Service)/, - /TabExpansion2/, - /Tee-Object/, - /Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/, - /Trace-Command/, - /Unblock-File/, - /Undo-Transaction/, - /Unregister-(Event|PSSessionConfiguration)/, - /Update-(FormatData|Help|List|TypeData)/, - /Use-Transaction/, - /Wait-(Event|Job|Process)/, - /Where-Object/, - /Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/, - /cd|help|mkdir|more|oss|prompt/, - /ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/, - /echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/, - /group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/, - /measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/, - /rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/, - /sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/ - ], { prefix: '', suffix: '' }); - var variableBuiltins = buildRegexp([ - /[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/, - /FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/, - /MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/, - /PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/, - /PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/, - /WarningPreference|WhatIfPreference/, - - /Event|EventArgs|EventSubscriber|Sender/, - /Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/, - /true|false|null/ - ], { prefix: '\\$', suffix: '' }); - - var builtins = buildRegexp([symbolBuiltins, namedBuiltins, variableBuiltins], { suffix: notCharacterOrDash }); - - var grammar = { - keyword: keywords, - number: numbers, - operator: operators, - builtin: builtins, - punctuation: punctuation, - identifier: identifiers - }; - - // tokenizers - function tokenBase(stream, state) { - // Handle Comments - //var ch = stream.peek(); - - var parent = state.returnStack[state.returnStack.length - 1]; - if (parent && parent.shouldReturnFrom(state)) { - state.tokenize = parent.tokenize; - state.returnStack.pop(); - return state.tokenize(stream, state); - } - - if (stream.eatSpace()) { - return null; - } - - if (stream.eat('(')) { - state.bracketNesting += 1; - return 'punctuation'; - } - - if (stream.eat(')')) { - state.bracketNesting -= 1; - return 'punctuation'; - } - - for (var key in grammar) { - if (stream.match(grammar[key])) { - return key; - } - } - - var ch = stream.next(); - - // single-quote string - if (ch === "'") { - return tokenSingleQuoteString(stream, state); - } - - if (ch === '$') { - return tokenVariable(stream, state); - } - - // double-quote string - if (ch === '"') { - return tokenDoubleQuoteString(stream, state); - } - - if (ch === '<' && stream.eat('#')) { - state.tokenize = tokenComment; - return tokenComment(stream, state); - } - - if (ch === '#') { - stream.skipToEnd(); - return 'comment'; - } - - if (ch === '@') { - var quoteMatch = stream.eat(/["']/); - if (quoteMatch && stream.eol()) { - state.tokenize = tokenMultiString; - state.startQuote = quoteMatch[0]; - return tokenMultiString(stream, state); - } else if (stream.peek().match(/[({]/)) { - return 'punctuation'; - } else if (stream.peek().match(varNames)) { - // splatted variable - return tokenVariable(stream, state); - } - } - return 'error'; - } - - function tokenSingleQuoteString(stream, state) { - var ch; - while ((ch = stream.peek()) != null) { - stream.next(); - - if (ch === "'" && !stream.eat("'")) { - state.tokenize = tokenBase; - return 'string'; - } - } - - return 'error'; - } - - function tokenDoubleQuoteString(stream, state) { - var ch; - while ((ch = stream.peek()) != null) { - if (ch === '$') { - state.tokenize = tokenStringInterpolation; - return 'string'; - } - - stream.next(); - if (ch === '`') { - stream.next(); - continue; - } - - if (ch === '"' && !stream.eat('"')) { - state.tokenize = tokenBase; - return 'string'; - } - } - - return 'error'; - } - - function tokenStringInterpolation(stream, state) { - return tokenInterpolation(stream, state, tokenDoubleQuoteString); - } - - function tokenMultiStringReturn(stream, state) { - state.tokenize = tokenMultiString; - state.startQuote = '"' - return tokenMultiString(stream, state); - } - - function tokenHereStringInterpolation(stream, state) { - return tokenInterpolation(stream, state, tokenMultiStringReturn); - } - - function tokenInterpolation(stream, state, parentTokenize) { - if (stream.match('$(')) { - var savedBracketNesting = state.bracketNesting; - state.returnStack.push({ - /*jshint loopfunc:true */ - shouldReturnFrom: function(state) { - return state.bracketNesting === savedBracketNesting; - }, - tokenize: parentTokenize - }); - state.tokenize = tokenBase; - state.bracketNesting += 1; - return 'punctuation'; - } else { - stream.next(); - state.returnStack.push({ - shouldReturnFrom: function() { return true; }, - tokenize: parentTokenize - }); - state.tokenize = tokenVariable; - return state.tokenize(stream, state); - } - } - - function tokenComment(stream, state) { - var maybeEnd = false, ch; - while ((ch = stream.next()) != null) { - if (maybeEnd && ch == '>') { - state.tokenize = tokenBase; - break; - } - maybeEnd = (ch === '#'); - } - return 'comment'; - } - - function tokenVariable(stream, state) { - var ch = stream.peek(); - if (stream.eat('{')) { - state.tokenize = tokenVariableWithBraces; - return tokenVariableWithBraces(stream, state); - } else if (ch != undefined && ch.match(varNames)) { - stream.eatWhile(varNames); - state.tokenize = tokenBase; - return 'variable-2'; - } else { - state.tokenize = tokenBase; - return 'error'; - } - } - - function tokenVariableWithBraces(stream, state) { - var ch; - while ((ch = stream.next()) != null) { - if (ch === '}') { - state.tokenize = tokenBase; - break; - } - } - return 'variable-2'; - } - - function tokenMultiString(stream, state) { - var quote = state.startQuote; - if (stream.sol() && stream.match(new RegExp(quote + '@'))) { - state.tokenize = tokenBase; - } - else if (quote === '"') { - while (!stream.eol()) { - var ch = stream.peek(); - if (ch === '$') { - state.tokenize = tokenHereStringInterpolation; - return 'string'; - } - - stream.next(); - if (ch === '`') { - stream.next(); - } - } - } - else { - stream.skipToEnd(); - } - - return 'string'; - } - - var external = { - startState: function() { - return { - returnStack: [], - bracketNesting: 0, - tokenize: tokenBase - }; - }, - - token: function(stream, state) { - return state.tokenize(stream, state); - }, - - blockCommentStart: '<#', - blockCommentEnd: '#>', - lineComment: '#', - fold: 'brace' - }; - return external; -}); - -CodeMirror.defineMIME('application/x-powershell', 'powershell'); -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/powershell/test.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/powershell/test.js deleted file mode 100644 index 59b8e6f..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/powershell/test.js +++ /dev/null @@ -1,72 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function() { - var mode = CodeMirror.getMode({indentUnit: 2}, "powershell"); - function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); } - - MT('comment', '[number 1][comment # A]'); - MT('comment_multiline', '[number 1][comment <#]', - '[comment ABC]', - '[comment #>][number 2]'); - - [ - '0', '1234', - '12kb', '12mb', '12Gb', '12Tb', '12PB', '12L', '12D', '12lkb', '12dtb', - '1.234', '1.234e56', '1.', '1.e2', '.2', '.2e34', - '1.2MB', '1.kb', '.1dTB', '1.e1gb', '.2', '.2e34', - '0x1', '0xabcdef', '0x3tb', '0xelmb' - ].forEach(function(number) { - MT("number_" + number, "[number " + number + "]"); - }); - - MT('string_literal_escaping', "[string 'a''']"); - MT('string_literal_variable', "[string 'a $x']"); - MT('string_escaping_1', '[string "a `""]'); - MT('string_escaping_2', '[string "a """]'); - MT('string_variable_escaping', '[string "a `$x"]'); - MT('string_variable', '[string "a ][variable-2 $x][string b"]'); - MT('string_variable_spaces', '[string "a ][variable-2 ${x y}][string b"]'); - MT('string_expression', '[string "a ][punctuation $(][variable-2 $x][operator +][number 3][punctuation )][string b"]'); - MT('string_expression_nested', '[string "A][punctuation $(][string "a][punctuation $(][string "w"][punctuation )][string b"][punctuation )][string B"]'); - - MT('string_heredoc', '[string @"]', - '[string abc]', - '[string "@]'); - MT('string_heredoc_quotes', '[string @"]', - '[string abc "\']', - '[string "@]'); - MT('string_heredoc_variable', '[string @"]', - '[string a ][variable-2 $x][string b]', - '[string "@]'); - MT('string_heredoc_nested_string', '[string @"]', - '[string a][punctuation $(][string "w"][punctuation )][string b]', - '[string "@]'); - MT('string_heredoc_literal_quotes', "[string @']", - '[string abc "\']', - "[string '@]"); - - MT('array', "[punctuation @(][string 'a'][punctuation ,][string 'b'][punctuation )]"); - MT('hash', "[punctuation @{][string 'key'][operator :][string 'value'][punctuation }]"); - - MT('variable', "[variable-2 $test]"); - MT('variable_global', "[variable-2 $global:test]"); - MT('variable_spaces', "[variable-2 ${test test}]"); - MT('operator_splat', "[variable-2 @x]"); - MT('variable_builtin', "[builtin $ErrorActionPreference]"); - MT('variable_builtin_symbols', "[builtin $$]"); - - MT('operator', "[operator +]"); - MT('operator_unary', "[operator +][number 3]"); - MT('operator_long', "[operator -match]"); - - [ - '(', ')', '[[', ']]', '{', '}', ',', '`', ';', '.' - ].forEach(function(punctuation) { - MT("punctuation_" + punctuation.replace(/^[\[\]]/,''), "[punctuation " + punctuation + "]"); - }); - - MT('keyword', "[keyword if]"); - - MT('call_builtin', "[builtin Get-ChildItem]"); -})(); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/properties/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/properties/index.html deleted file mode 100644 index f885302..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/properties/index.html +++ /dev/null @@ -1,53 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Properties files mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="properties.js"></script> -<style>.CodeMirror {border-top: 1px solid #ddd; border-bottom: 1px solid #ddd;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Properties files</a> - </ul> -</div> - -<article> -<h2>Properties files mode</h2> -<form><textarea id="code" name="code"> -# This is a properties file -a.key = A value -another.key = http://example.com -! Exclamation mark as comment -but.not=Within ! A value # indeed - # Spaces at the beginning of a line - spaces.before.key=value -backslash=Used for multi\ - line entries,\ - that's convenient. -# Unicode sequences -unicode.key=This is \u0020 Unicode -no.multiline=here -# Colons -colons : can be used too -# Spaces -spaces\ in\ keys=Not very common... -</textarea></form> - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), {}); - </script> - - <p><strong>MIME types defined:</strong> <code>text/x-properties</code>, - <code>text/x-ini</code>.</p> - - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/properties/properties.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/properties/properties.js deleted file mode 100644 index ef8bf37..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/properties/properties.js +++ /dev/null @@ -1,78 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("properties", function() { - return { - token: function(stream, state) { - var sol = stream.sol() || state.afterSection; - var eol = stream.eol(); - - state.afterSection = false; - - if (sol) { - if (state.nextMultiline) { - state.inMultiline = true; - state.nextMultiline = false; - } else { - state.position = "def"; - } - } - - if (eol && ! state.nextMultiline) { - state.inMultiline = false; - state.position = "def"; - } - - if (sol) { - while(stream.eatSpace()) {} - } - - var ch = stream.next(); - - if (sol && (ch === "#" || ch === "!" || ch === ";")) { - state.position = "comment"; - stream.skipToEnd(); - return "comment"; - } else if (sol && ch === "[") { - state.afterSection = true; - stream.skipTo("]"); stream.eat("]"); - return "header"; - } else if (ch === "=" || ch === ":") { - state.position = "quote"; - return null; - } else if (ch === "\\" && state.position === "quote") { - if (stream.eol()) { // end of line? - // Multiline value - state.nextMultiline = true; - } - } - - return state.position; - }, - - startState: function() { - return { - position : "def", // Current position, "def", "quote" or "comment" - nextMultiline : false, // Is the next line multiline value - inMultiline : false, // Is the current line a multiline value - afterSection : false // Did we just open a section - }; - } - - }; -}); - -CodeMirror.defineMIME("text/x-properties", "properties"); -CodeMirror.defineMIME("text/x-ini", "properties"); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/protobuf/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/protobuf/index.html deleted file mode 100644 index cfe7b9d..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/protobuf/index.html +++ /dev/null @@ -1,64 +0,0 @@ -<!doctype html> - -<title>CodeMirror: ProtoBuf mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="protobuf.js"></script> -<style>.CodeMirror { border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">ProtoBuf</a> - </ul> -</div> - -<article> -<h2>ProtoBuf mode</h2> -<form><textarea id="code" name="code"> -package addressbook; - -message Address { - required string street = 1; - required string postCode = 2; -} - -message PhoneNumber { - required string number = 1; -} - -message Person { - optional int32 id = 1; - required string name = 2; - required string surname = 3; - optional Address address = 4; - repeated PhoneNumber phoneNumbers = 5; - optional uint32 age = 6; - repeated uint32 favouriteNumbers = 7; - optional string license = 8; - enum Gender { - MALE = 0; - FEMALE = 1; - } - optional Gender gender = 9; - optional fixed64 lastUpdate = 10; - required bool deleted = 11 [default = false]; -} - -</textarea></form> - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), {}); - </script> - - <p><strong>MIME types defined:</strong> <code>text/x-protobuf</code>.</p> - - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/protobuf/protobuf.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/protobuf/protobuf.js deleted file mode 100644 index bcae276..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/protobuf/protobuf.js +++ /dev/null @@ -1,68 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { - "use strict"; - - function wordRegexp(words) { - return new RegExp("^((" + words.join(")|(") + "))\\b", "i"); - }; - - var keywordArray = [ - "package", "message", "import", "syntax", - "required", "optional", "repeated", "reserved", "default", "extensions", "packed", - "bool", "bytes", "double", "enum", "float", "string", - "int32", "int64", "uint32", "uint64", "sint32", "sint64", "fixed32", "fixed64", "sfixed32", "sfixed64" - ]; - var keywords = wordRegexp(keywordArray); - - CodeMirror.registerHelper("hintWords", "protobuf", keywordArray); - - var identifiers = new RegExp("^[_A-Za-z\xa1-\uffff][_A-Za-z0-9\xa1-\uffff]*"); - - function tokenBase(stream) { - // whitespaces - if (stream.eatSpace()) return null; - - // Handle one line Comments - if (stream.match("//")) { - stream.skipToEnd(); - return "comment"; - } - - // Handle Number Literals - if (stream.match(/^[0-9\.+-]/, false)) { - if (stream.match(/^[+-]?0x[0-9a-fA-F]+/)) - return "number"; - if (stream.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/)) - return "number"; - if (stream.match(/^[+-]?\d+([EeDd][+-]?\d+)?/)) - return "number"; - } - - // Handle Strings - if (stream.match(/^"([^"]|(""))*"/)) { return "string"; } - if (stream.match(/^'([^']|(''))*'/)) { return "string"; } - - // Handle words - if (stream.match(keywords)) { return "keyword"; } - if (stream.match(identifiers)) { return "variable"; } ; - - // Handle non-detected items - stream.next(); - return null; - }; - - CodeMirror.defineMode("protobuf", function() { - return {token: tokenBase}; - }); - - CodeMirror.defineMIME("text/x-protobuf", "protobuf"); -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/pug/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/pug/index.html deleted file mode 100644 index 1765853..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/pug/index.html +++ /dev/null @@ -1,70 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Pug Templating Mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../javascript/javascript.js"></script> -<script src="../css/css.js"></script> -<script src="../xml/xml.js"></script> -<script src="../htmlmixed/htmlmixed.js"></script> -<script src="pug.js"></script> -<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Pug Templating Mode</a> - </ul> -</div> - -<article> -<h2>Pug Templating Mode</h2> -<form><textarea id="code" name="code"> -doctype html - html - head - title= "Pug Templating CodeMirror Mode Example" - link(rel='stylesheet', href='/css/bootstrap.min.css') - link(rel='stylesheet', href='/css/index.css') - script(type='text/javascript', src='/js/jquery-1.9.1.min.js') - script(type='text/javascript', src='/js/bootstrap.min.js') - body - div.header - h1 Welcome to this Example - div.spots - if locals.spots - each spot in spots - div.spot.well - div - if spot.logo - img.img-rounded.logo(src=spot.logo) - else - img.img-rounded.logo(src="img/placeholder.png") - h3 - a(href=spot.hash) ##{spot.hash} - if spot.title - span.title #{spot.title} - if spot.desc - div #{spot.desc} - else - h3 There are no spots currently available. -</textarea></form> - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - mode: {name: "pug", alignCDATA: true}, - lineNumbers: true - }); - </script> - <h3>The Pug Templating Mode</h3> - <p> Created by Forbes Lindesay. Managed as part of a Brackets extension at <a href="https://github.com/ForbesLindesay/jade-brackets">https://github.com/ForbesLindesay/jade-brackets</a>.</p> - <p><strong>MIME type defined:</strong> <code>text/x-pug</code>, <code>text/x-jade</code>.</p> - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/pug/pug.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/pug/pug.js deleted file mode 100644 index 4018233..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/pug/pug.js +++ /dev/null @@ -1,591 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror"), require("../javascript/javascript"), require("../css/css"), require("../htmlmixed/htmlmixed")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror", "../javascript/javascript", "../css/css", "../htmlmixed/htmlmixed"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("pug", function (config) { - // token types - var KEYWORD = 'keyword'; - var DOCTYPE = 'meta'; - var ID = 'builtin'; - var CLASS = 'qualifier'; - - var ATTRS_NEST = { - '{': '}', - '(': ')', - '[': ']' - }; - - var jsMode = CodeMirror.getMode(config, 'javascript'); - - function State() { - this.javaScriptLine = false; - this.javaScriptLineExcludesColon = false; - - this.javaScriptArguments = false; - this.javaScriptArgumentsDepth = 0; - - this.isInterpolating = false; - this.interpolationNesting = 0; - - this.jsState = CodeMirror.startState(jsMode); - - this.restOfLine = ''; - - this.isIncludeFiltered = false; - this.isEach = false; - - this.lastTag = ''; - this.scriptType = ''; - - // Attributes Mode - this.isAttrs = false; - this.attrsNest = []; - this.inAttributeName = true; - this.attributeIsType = false; - this.attrValue = ''; - - // Indented Mode - this.indentOf = Infinity; - this.indentToken = ''; - - this.innerMode = null; - this.innerState = null; - - this.innerModeForLine = false; - } - /** - * Safely copy a state - * - * @return {State} - */ - State.prototype.copy = function () { - var res = new State(); - res.javaScriptLine = this.javaScriptLine; - res.javaScriptLineExcludesColon = this.javaScriptLineExcludesColon; - res.javaScriptArguments = this.javaScriptArguments; - res.javaScriptArgumentsDepth = this.javaScriptArgumentsDepth; - res.isInterpolating = this.isInterpolating; - res.interpolationNesting = this.interpolationNesting; - - res.jsState = CodeMirror.copyState(jsMode, this.jsState); - - res.innerMode = this.innerMode; - if (this.innerMode && this.innerState) { - res.innerState = CodeMirror.copyState(this.innerMode, this.innerState); - } - - res.restOfLine = this.restOfLine; - - res.isIncludeFiltered = this.isIncludeFiltered; - res.isEach = this.isEach; - res.lastTag = this.lastTag; - res.scriptType = this.scriptType; - res.isAttrs = this.isAttrs; - res.attrsNest = this.attrsNest.slice(); - res.inAttributeName = this.inAttributeName; - res.attributeIsType = this.attributeIsType; - res.attrValue = this.attrValue; - res.indentOf = this.indentOf; - res.indentToken = this.indentToken; - - res.innerModeForLine = this.innerModeForLine; - - return res; - }; - - function javaScript(stream, state) { - if (stream.sol()) { - // if javaScriptLine was set at end of line, ignore it - state.javaScriptLine = false; - state.javaScriptLineExcludesColon = false; - } - if (state.javaScriptLine) { - if (state.javaScriptLineExcludesColon && stream.peek() === ':') { - state.javaScriptLine = false; - state.javaScriptLineExcludesColon = false; - return; - } - var tok = jsMode.token(stream, state.jsState); - if (stream.eol()) state.javaScriptLine = false; - return tok || true; - } - } - function javaScriptArguments(stream, state) { - if (state.javaScriptArguments) { - if (state.javaScriptArgumentsDepth === 0 && stream.peek() !== '(') { - state.javaScriptArguments = false; - return; - } - if (stream.peek() === '(') { - state.javaScriptArgumentsDepth++; - } else if (stream.peek() === ')') { - state.javaScriptArgumentsDepth--; - } - if (state.javaScriptArgumentsDepth === 0) { - state.javaScriptArguments = false; - return; - } - - var tok = jsMode.token(stream, state.jsState); - return tok || true; - } - } - - function yieldStatement(stream) { - if (stream.match(/^yield\b/)) { - return 'keyword'; - } - } - - function doctype(stream) { - if (stream.match(/^(?:doctype) *([^\n]+)?/)) { - return DOCTYPE; - } - } - - function interpolation(stream, state) { - if (stream.match('#{')) { - state.isInterpolating = true; - state.interpolationNesting = 0; - return 'punctuation'; - } - } - - function interpolationContinued(stream, state) { - if (state.isInterpolating) { - if (stream.peek() === '}') { - state.interpolationNesting--; - if (state.interpolationNesting < 0) { - stream.next(); - state.isInterpolating = false; - return 'punctuation'; - } - } else if (stream.peek() === '{') { - state.interpolationNesting++; - } - return jsMode.token(stream, state.jsState) || true; - } - } - - function caseStatement(stream, state) { - if (stream.match(/^case\b/)) { - state.javaScriptLine = true; - return KEYWORD; - } - } - - function when(stream, state) { - if (stream.match(/^when\b/)) { - state.javaScriptLine = true; - state.javaScriptLineExcludesColon = true; - return KEYWORD; - } - } - - function defaultStatement(stream) { - if (stream.match(/^default\b/)) { - return KEYWORD; - } - } - - function extendsStatement(stream, state) { - if (stream.match(/^extends?\b/)) { - state.restOfLine = 'string'; - return KEYWORD; - } - } - - function append(stream, state) { - if (stream.match(/^append\b/)) { - state.restOfLine = 'variable'; - return KEYWORD; - } - } - function prepend(stream, state) { - if (stream.match(/^prepend\b/)) { - state.restOfLine = 'variable'; - return KEYWORD; - } - } - function block(stream, state) { - if (stream.match(/^block\b *(?:(prepend|append)\b)?/)) { - state.restOfLine = 'variable'; - return KEYWORD; - } - } - - function include(stream, state) { - if (stream.match(/^include\b/)) { - state.restOfLine = 'string'; - return KEYWORD; - } - } - - function includeFiltered(stream, state) { - if (stream.match(/^include:([a-zA-Z0-9\-]+)/, false) && stream.match('include')) { - state.isIncludeFiltered = true; - return KEYWORD; - } - } - - function includeFilteredContinued(stream, state) { - if (state.isIncludeFiltered) { - var tok = filter(stream, state); - state.isIncludeFiltered = false; - state.restOfLine = 'string'; - return tok; - } - } - - function mixin(stream, state) { - if (stream.match(/^mixin\b/)) { - state.javaScriptLine = true; - return KEYWORD; - } - } - - function call(stream, state) { - if (stream.match(/^\+([-\w]+)/)) { - if (!stream.match(/^\( *[-\w]+ *=/, false)) { - state.javaScriptArguments = true; - state.javaScriptArgumentsDepth = 0; - } - return 'variable'; - } - if (stream.match(/^\+#{/, false)) { - stream.next(); - state.mixinCallAfter = true; - return interpolation(stream, state); - } - } - function callArguments(stream, state) { - if (state.mixinCallAfter) { - state.mixinCallAfter = false; - if (!stream.match(/^\( *[-\w]+ *=/, false)) { - state.javaScriptArguments = true; - state.javaScriptArgumentsDepth = 0; - } - return true; - } - } - - function conditional(stream, state) { - if (stream.match(/^(if|unless|else if|else)\b/)) { - state.javaScriptLine = true; - return KEYWORD; - } - } - - function each(stream, state) { - if (stream.match(/^(- *)?(each|for)\b/)) { - state.isEach = true; - return KEYWORD; - } - } - function eachContinued(stream, state) { - if (state.isEach) { - if (stream.match(/^ in\b/)) { - state.javaScriptLine = true; - state.isEach = false; - return KEYWORD; - } else if (stream.sol() || stream.eol()) { - state.isEach = false; - } else if (stream.next()) { - while (!stream.match(/^ in\b/, false) && stream.next()); - return 'variable'; - } - } - } - - function whileStatement(stream, state) { - if (stream.match(/^while\b/)) { - state.javaScriptLine = true; - return KEYWORD; - } - } - - function tag(stream, state) { - var captures; - if (captures = stream.match(/^(\w(?:[-:\w]*\w)?)\/?/)) { - state.lastTag = captures[1].toLowerCase(); - if (state.lastTag === 'script') { - state.scriptType = 'application/javascript'; - } - return 'tag'; - } - } - - function filter(stream, state) { - if (stream.match(/^:([\w\-]+)/)) { - var innerMode; - if (config && config.innerModes) { - innerMode = config.innerModes(stream.current().substring(1)); - } - if (!innerMode) { - innerMode = stream.current().substring(1); - } - if (typeof innerMode === 'string') { - innerMode = CodeMirror.getMode(config, innerMode); - } - setInnerMode(stream, state, innerMode); - return 'atom'; - } - } - - function code(stream, state) { - if (stream.match(/^(!?=|-)/)) { - state.javaScriptLine = true; - return 'punctuation'; - } - } - - function id(stream) { - if (stream.match(/^#([\w-]+)/)) { - return ID; - } - } - - function className(stream) { - if (stream.match(/^\.([\w-]+)/)) { - return CLASS; - } - } - - function attrs(stream, state) { - if (stream.peek() == '(') { - stream.next(); - state.isAttrs = true; - state.attrsNest = []; - state.inAttributeName = true; - state.attrValue = ''; - state.attributeIsType = false; - return 'punctuation'; - } - } - - function attrsContinued(stream, state) { - if (state.isAttrs) { - if (ATTRS_NEST[stream.peek()]) { - state.attrsNest.push(ATTRS_NEST[stream.peek()]); - } - if (state.attrsNest[state.attrsNest.length - 1] === stream.peek()) { - state.attrsNest.pop(); - } else if (stream.eat(')')) { - state.isAttrs = false; - return 'punctuation'; - } - if (state.inAttributeName && stream.match(/^[^=,\)!]+/)) { - if (stream.peek() === '=' || stream.peek() === '!') { - state.inAttributeName = false; - state.jsState = CodeMirror.startState(jsMode); - if (state.lastTag === 'script' && stream.current().trim().toLowerCase() === 'type') { - state.attributeIsType = true; - } else { - state.attributeIsType = false; - } - } - return 'attribute'; - } - - var tok = jsMode.token(stream, state.jsState); - if (state.attributeIsType && tok === 'string') { - state.scriptType = stream.current().toString(); - } - if (state.attrsNest.length === 0 && (tok === 'string' || tok === 'variable' || tok === 'keyword')) { - try { - Function('', 'var x ' + state.attrValue.replace(/,\s*$/, '').replace(/^!/, '')); - state.inAttributeName = true; - state.attrValue = ''; - stream.backUp(stream.current().length); - return attrsContinued(stream, state); - } catch (ex) { - //not the end of an attribute - } - } - state.attrValue += stream.current(); - return tok || true; - } - } - - function attributesBlock(stream, state) { - if (stream.match(/^&attributes\b/)) { - state.javaScriptArguments = true; - state.javaScriptArgumentsDepth = 0; - return 'keyword'; - } - } - - function indent(stream) { - if (stream.sol() && stream.eatSpace()) { - return 'indent'; - } - } - - function comment(stream, state) { - if (stream.match(/^ *\/\/(-)?([^\n]*)/)) { - state.indentOf = stream.indentation(); - state.indentToken = 'comment'; - return 'comment'; - } - } - - function colon(stream) { - if (stream.match(/^: */)) { - return 'colon'; - } - } - - function text(stream, state) { - if (stream.match(/^(?:\| ?| )([^\n]+)/)) { - return 'string'; - } - if (stream.match(/^(<[^\n]*)/, false)) { - // html string - setInnerMode(stream, state, 'htmlmixed'); - state.innerModeForLine = true; - return innerMode(stream, state, true); - } - } - - function dot(stream, state) { - if (stream.eat('.')) { - var innerMode = null; - if (state.lastTag === 'script' && state.scriptType.toLowerCase().indexOf('javascript') != -1) { - innerMode = state.scriptType.toLowerCase().replace(/"|'/g, ''); - } else if (state.lastTag === 'style') { - innerMode = 'css'; - } - setInnerMode(stream, state, innerMode); - return 'dot'; - } - } - - function fail(stream) { - stream.next(); - return null; - } - - - function setInnerMode(stream, state, mode) { - mode = CodeMirror.mimeModes[mode] || mode; - mode = config.innerModes ? config.innerModes(mode) || mode : mode; - mode = CodeMirror.mimeModes[mode] || mode; - mode = CodeMirror.getMode(config, mode); - state.indentOf = stream.indentation(); - - if (mode && mode.name !== 'null') { - state.innerMode = mode; - } else { - state.indentToken = 'string'; - } - } - function innerMode(stream, state, force) { - if (stream.indentation() > state.indentOf || (state.innerModeForLine && !stream.sol()) || force) { - if (state.innerMode) { - if (!state.innerState) { - state.innerState = state.innerMode.startState ? CodeMirror.startState(state.innerMode, stream.indentation()) : {}; - } - return stream.hideFirstChars(state.indentOf + 2, function () { - return state.innerMode.token(stream, state.innerState) || true; - }); - } else { - stream.skipToEnd(); - return state.indentToken; - } - } else if (stream.sol()) { - state.indentOf = Infinity; - state.indentToken = null; - state.innerMode = null; - state.innerState = null; - } - } - function restOfLine(stream, state) { - if (stream.sol()) { - // if restOfLine was set at end of line, ignore it - state.restOfLine = ''; - } - if (state.restOfLine) { - stream.skipToEnd(); - var tok = state.restOfLine; - state.restOfLine = ''; - return tok; - } - } - - - function startState() { - return new State(); - } - function copyState(state) { - return state.copy(); - } - /** - * Get the next token in the stream - * - * @param {Stream} stream - * @param {State} state - */ - function nextToken(stream, state) { - var tok = innerMode(stream, state) - || restOfLine(stream, state) - || interpolationContinued(stream, state) - || includeFilteredContinued(stream, state) - || eachContinued(stream, state) - || attrsContinued(stream, state) - || javaScript(stream, state) - || javaScriptArguments(stream, state) - || callArguments(stream, state) - - || yieldStatement(stream, state) - || doctype(stream, state) - || interpolation(stream, state) - || caseStatement(stream, state) - || when(stream, state) - || defaultStatement(stream, state) - || extendsStatement(stream, state) - || append(stream, state) - || prepend(stream, state) - || block(stream, state) - || include(stream, state) - || includeFiltered(stream, state) - || mixin(stream, state) - || call(stream, state) - || conditional(stream, state) - || each(stream, state) - || whileStatement(stream, state) - || tag(stream, state) - || filter(stream, state) - || code(stream, state) - || id(stream, state) - || className(stream, state) - || attrs(stream, state) - || attributesBlock(stream, state) - || indent(stream, state) - || text(stream, state) - || comment(stream, state) - || colon(stream, state) - || dot(stream, state) - || fail(stream, state); - - return tok === true ? null : tok; - } - return { - startState: startState, - copyState: copyState, - token: nextToken - }; -}, 'javascript', 'css', 'htmlmixed'); - -CodeMirror.defineMIME('text/x-pug', 'pug'); -CodeMirror.defineMIME('text/x-jade', 'pug'); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/puppet/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/puppet/index.html deleted file mode 100644 index 5614c36..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/puppet/index.html +++ /dev/null @@ -1,121 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Puppet mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../../addon/edit/matchbrackets.js"></script> -<script src="puppet.js"></script> -<style> - .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;} - .cm-s-default span.cm-arrow { color: red; } - </style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Puppet</a> - </ul> -</div> - -<article> -<h2>Puppet mode</h2> -<form><textarea id="code" name="code"> -# == Class: automysqlbackup -# -# Puppet module to install AutoMySQLBackup for periodic MySQL backups. -# -# class { 'automysqlbackup': -# backup_dir => '/mnt/backups', -# } -# - -class automysqlbackup ( - $bin_dir = $automysqlbackup::params::bin_dir, - $etc_dir = $automysqlbackup::params::etc_dir, - $backup_dir = $automysqlbackup::params::backup_dir, - $install_multicore = undef, - $config = {}, - $config_defaults = {}, -) inherits automysqlbackup::params { - -# Ensure valid paths are assigned - validate_absolute_path($bin_dir) - validate_absolute_path($etc_dir) - validate_absolute_path($backup_dir) - -# Create a subdirectory in /etc for config files - file { $etc_dir: - ensure => directory, - owner => 'root', - group => 'root', - mode => '0750', - } - -# Create an example backup file, useful for reference - file { "${etc_dir}/automysqlbackup.conf.example": - ensure => file, - owner => 'root', - group => 'root', - mode => '0660', - source => 'puppet:///modules/automysqlbackup/automysqlbackup.conf', - } - -# Add files from the developer - file { "${etc_dir}/AMB_README": - ensure => file, - source => 'puppet:///modules/automysqlbackup/AMB_README', - } - file { "${etc_dir}/AMB_LICENSE": - ensure => file, - source => 'puppet:///modules/automysqlbackup/AMB_LICENSE', - } - -# Install the actual binary file - file { "${bin_dir}/automysqlbackup": - ensure => file, - owner => 'root', - group => 'root', - mode => '0755', - source => 'puppet:///modules/automysqlbackup/automysqlbackup', - } - -# Create the base backup directory - file { $backup_dir: - ensure => directory, - owner => 'root', - group => 'root', - mode => '0755', - } - -# If you'd like to keep your config in hiera and pass it to this class - if !empty($config) { - create_resources('automysqlbackup::backup', $config, $config_defaults) - } - -# If using RedHat family, must have the RPMforge repo's enabled - if $install_multicore { - package { ['pigz', 'pbzip2']: ensure => installed } - } - -} -</textarea></form> - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - mode: "text/x-puppet", - matchBrackets: true, - indentUnit: 4 - }); - </script> - - <p><strong>MIME types defined:</strong> <code>text/x-puppet</code>.</p> - - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/puppet/puppet.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/puppet/puppet.js deleted file mode 100644 index 5704130..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/puppet/puppet.js +++ /dev/null @@ -1,220 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("puppet", function () { - // Stores the words from the define method - var words = {}; - // Taken, mostly, from the Puppet official variable standards regex - var variable_regex = /({)?([a-z][a-z0-9_]*)?((::[a-z][a-z0-9_]*)*::)?[a-zA-Z0-9_]+(})?/; - - // Takes a string of words separated by spaces and adds them as - // keys with the value of the first argument 'style' - function define(style, string) { - var split = string.split(' '); - for (var i = 0; i < split.length; i++) { - words[split[i]] = style; - } - } - - // Takes commonly known puppet types/words and classifies them to a style - define('keyword', 'class define site node include import inherits'); - define('keyword', 'case if else in and elsif default or'); - define('atom', 'false true running present absent file directory undef'); - define('builtin', 'action augeas burst chain computer cron destination dport exec ' + - 'file filebucket group host icmp iniface interface jump k5login limit log_level ' + - 'log_prefix macauthorization mailalias maillist mcx mount nagios_command ' + - 'nagios_contact nagios_contactgroup nagios_host nagios_hostdependency ' + - 'nagios_hostescalation nagios_hostextinfo nagios_hostgroup nagios_service ' + - 'nagios_servicedependency nagios_serviceescalation nagios_serviceextinfo ' + - 'nagios_servicegroup nagios_timeperiod name notify outiface package proto reject ' + - 'resources router schedule scheduled_task selboolean selmodule service source ' + - 'sport ssh_authorized_key sshkey stage state table tidy todest toports tosource ' + - 'user vlan yumrepo zfs zone zpool'); - - // After finding a start of a string ('|") this function attempts to find the end; - // If a variable is encountered along the way, we display it differently when it - // is encapsulated in a double-quoted string. - function tokenString(stream, state) { - var current, prev, found_var = false; - while (!stream.eol() && (current = stream.next()) != state.pending) { - if (current === '$' && prev != '\\' && state.pending == '"') { - found_var = true; - break; - } - prev = current; - } - if (found_var) { - stream.backUp(1); - } - if (current == state.pending) { - state.continueString = false; - } else { - state.continueString = true; - } - return "string"; - } - - // Main function - function tokenize(stream, state) { - // Matches one whole word - var word = stream.match(/[\w]+/, false); - // Matches attributes (i.e. ensure => present ; 'ensure' would be matched) - var attribute = stream.match(/(\s+)?\w+\s+=>.*/, false); - // Matches non-builtin resource declarations - // (i.e. "apache::vhost {" or "mycustomclasss {" would be matched) - var resource = stream.match(/(\s+)?[\w:_]+(\s+)?{/, false); - // Matches virtual and exported resources (i.e. @@user { ; and the like) - var special_resource = stream.match(/(\s+)?[@]{1,2}[\w:_]+(\s+)?{/, false); - - // Finally advance the stream - var ch = stream.next(); - - // Have we found a variable? - if (ch === '$') { - if (stream.match(variable_regex)) { - // If so, and its in a string, assign it a different color - return state.continueString ? 'variable-2' : 'variable'; - } - // Otherwise return an invalid variable - return "error"; - } - // Should we still be looking for the end of a string? - if (state.continueString) { - // If so, go through the loop again - stream.backUp(1); - return tokenString(stream, state); - } - // Are we in a definition (class, node, define)? - if (state.inDefinition) { - // If so, return def (i.e. for 'class myclass {' ; 'myclass' would be matched) - if (stream.match(/(\s+)?[\w:_]+(\s+)?/)) { - return 'def'; - } - // Match the rest it the next time around - stream.match(/\s+{/); - state.inDefinition = false; - } - // Are we in an 'include' statement? - if (state.inInclude) { - // Match and return the included class - stream.match(/(\s+)?\S+(\s+)?/); - state.inInclude = false; - return 'def'; - } - // Do we just have a function on our hands? - // In 'ensure_resource("myclass")', 'ensure_resource' is matched - if (stream.match(/(\s+)?\w+\(/)) { - stream.backUp(1); - return 'def'; - } - // Have we matched the prior attribute regex? - if (attribute) { - stream.match(/(\s+)?\w+/); - return 'tag'; - } - // Do we have Puppet specific words? - if (word && words.hasOwnProperty(word)) { - // Negates the initial next() - stream.backUp(1); - // rs move the stream - stream.match(/[\w]+/); - // We want to process these words differently - // do to the importance they have in Puppet - if (stream.match(/\s+\S+\s+{/, false)) { - state.inDefinition = true; - } - if (word == 'include') { - state.inInclude = true; - } - // Returns their value as state in the prior define methods - return words[word]; - } - // Is there a match on a reference? - if (/(^|\s+)[A-Z][\w:_]+/.test(word)) { - // Negate the next() - stream.backUp(1); - // Match the full reference - stream.match(/(^|\s+)[A-Z][\w:_]+/); - return 'def'; - } - // Have we matched the prior resource regex? - if (resource) { - stream.match(/(\s+)?[\w:_]+/); - return 'def'; - } - // Have we matched the prior special_resource regex? - if (special_resource) { - stream.match(/(\s+)?[@]{1,2}/); - return 'special'; - } - // Match all the comments. All of them. - if (ch == "#") { - stream.skipToEnd(); - return "comment"; - } - // Have we found a string? - if (ch == "'" || ch == '"') { - // Store the type (single or double) - state.pending = ch; - // Perform the looping function to find the end - return tokenString(stream, state); - } - // Match all the brackets - if (ch == '{' || ch == '}') { - return 'bracket'; - } - // Match characters that we are going to assume - // are trying to be regex - if (ch == '/') { - stream.match(/.*?\//); - return 'variable-3'; - } - // Match all the numbers - if (ch.match(/[0-9]/)) { - stream.eatWhile(/[0-9]+/); - return 'number'; - } - // Match the '=' and '=>' operators - if (ch == '=') { - if (stream.peek() == '>') { - stream.next(); - } - return "operator"; - } - // Keep advancing through all the rest - stream.eatWhile(/[\w-]/); - // Return a blank line for everything else - return null; - } - // Start it all - return { - startState: function () { - var state = {}; - state.inDefinition = false; - state.inInclude = false; - state.continueString = false; - state.pending = false; - return state; - }, - token: function (stream, state) { - // Strip the spaces, but regex will account for them eitherway - if (stream.eatSpace()) return null; - // Go through the main process - return tokenize(stream, state); - } - }; -}); - -CodeMirror.defineMIME("text/x-puppet", "puppet"); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/python/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/python/index.html deleted file mode 100644 index 0ac02a3..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/python/index.html +++ /dev/null @@ -1,198 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Python mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../../addon/edit/matchbrackets.js"></script> -<script src="python.js"></script> -<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Python</a> - </ul> -</div> - -<article> -<h2>Python mode</h2> - - <div><textarea id="code" name="code"> -# Literals -1234 -0.0e101 -.123 -0b01010011100 -0o01234567 -0x0987654321abcdef -7 -2147483647 -3L -79228162514264337593543950336L -0x100000000L -79228162514264337593543950336 -0xdeadbeef -3.14j -10.j -10j -.001j -1e100j -3.14e-10j - - -# String Literals -'For\'' -"God\"" -"""so loved -the world""" -'''that he gave -his only begotten\' ''' -'that whosoever believeth \ -in him' -'' - -# Identifiers -__a__ -a.b -a.b.c - -#Unicode identifiers on Python3 -# a = x\ddot -a⃗ = ẍ -# a = v\dot -a⃗ = v̇ - -#F\vec = m \cdot a\vec -F⃗ = m•a⃗ - -# Operators -+ - * / % & | ^ ~ < > -== != <= >= <> << >> // ** -and or not in is - -#infix matrix multiplication operator (PEP 465) -A @ B - -# Delimiters -() [] {} , : ` = ; @ . # Note that @ and . require the proper context on Python 2. -+= -= *= /= %= &= |= ^= -//= >>= <<= **= - -# Keywords -as assert break class continue def del elif else except -finally for from global if import lambda pass raise -return try while with yield - -# Python 2 Keywords (otherwise Identifiers) -exec print - -# Python 3 Keywords (otherwise Identifiers) -nonlocal - -# Types -bool classmethod complex dict enumerate float frozenset int list object -property reversed set slice staticmethod str super tuple type - -# Python 2 Types (otherwise Identifiers) -basestring buffer file long unicode xrange - -# Python 3 Types (otherwise Identifiers) -bytearray bytes filter map memoryview open range zip - -# Some Example code -import os -from package import ParentClass - -@nonsenseDecorator -def doesNothing(): - pass - -class ExampleClass(ParentClass): - @staticmethod - def example(inputStr): - a = list(inputStr) - a.reverse() - return ''.join(a) - - def __init__(self, mixin = 'Hello'): - self.mixin = mixin - -</textarea></div> - - -<h2>Cython mode</h2> - -<div><textarea id="code-cython" name="code-cython"> - -import numpy as np -cimport cython -from libc.math cimport sqrt - -@cython.boundscheck(False) -@cython.wraparound(False) -def pairwise_cython(double[:, ::1] X): - cdef int M = X.shape[0] - cdef int N = X.shape[1] - cdef double tmp, d - cdef double[:, ::1] D = np.empty((M, M), dtype=np.float64) - for i in range(M): - for j in range(M): - d = 0.0 - for k in range(N): - tmp = X[i, k] - X[j, k] - d += tmp * tmp - D[i, j] = sqrt(d) - return np.asarray(D) - -</textarea></div> - - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - mode: {name: "python", - version: 3, - singleLineStringErrors: false}, - lineNumbers: true, - indentUnit: 4, - matchBrackets: true - }); - - CodeMirror.fromTextArea(document.getElementById("code-cython"), { - mode: {name: "text/x-cython", - version: 2, - singleLineStringErrors: false}, - lineNumbers: true, - indentUnit: 4, - matchBrackets: true - }); - </script> - <h2>Configuration Options for Python mode:</h2> - <ul> - <li>version - 2/3 - The version of Python to recognize. Default is 3.</li> - <li>singleLineStringErrors - true/false - If you have a single-line string that is not terminated at the end of the line, this will show subsequent lines as errors if true, otherwise it will consider the newline as the end of the string. Default is false.</li> - <li>hangingIndent - int - If you want to write long arguments to a function starting on a new line, how much that line should be indented. Defaults to one normal indentation unit.</li> - </ul> - <h2>Advanced Configuration Options:</h2> - <p>Usefull for superset of python syntax like Enthought enaml, IPython magics and questionmark help</p> - <ul> - <li>singleOperators - RegEx - Regular Expression for single operator matching, default : <pre>^[\\+\\-\\*/%&|\\^~<>!]</pre> including <pre>@</pre> on Python 3</li> - <li>singleDelimiters - RegEx - Regular Expression for single delimiter matching, default : <pre>^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]</pre></li> - <li>doubleOperators - RegEx - Regular Expression for double operators matching, default : <pre>^((==)|(!=)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))</pre></li> - <li>doubleDelimiters - RegEx - Regular Expression for double delimiters matching, default : <pre>^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))</pre></li> - <li>tripleDelimiters - RegEx - Regular Expression for triple delimiters matching, default : <pre>^((//=)|(>>=)|(<<=)|(\\*\\*=))</pre></li> - <li>identifiers - RegEx - Regular Expression for identifier, default : <pre>^[_A-Za-z][_A-Za-z0-9]*</pre> on Python 2 and <pre>^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*</pre> on Python 3.</li> - <li>extra_keywords - list of string - List of extra words ton consider as keywords</li> - <li>extra_builtins - list of string - List of extra words ton consider as builtins</li> - </ul> - - - <p><strong>MIME types defined:</strong> <code>text/x-python</code> and <code>text/x-cython</code>.</p> - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/python/python.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/python/python.js deleted file mode 100644 index efeed7f..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/python/python.js +++ /dev/null @@ -1,340 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { - "use strict"; - - function wordRegexp(words) { - return new RegExp("^((" + words.join(")|(") + "))\\b"); - } - - var wordOperators = wordRegexp(["and", "or", "not", "is"]); - var commonKeywords = ["as", "assert", "break", "class", "continue", - "def", "del", "elif", "else", "except", "finally", - "for", "from", "global", "if", "import", - "lambda", "pass", "raise", "return", - "try", "while", "with", "yield", "in"]; - var commonBuiltins = ["abs", "all", "any", "bin", "bool", "bytearray", "callable", "chr", - "classmethod", "compile", "complex", "delattr", "dict", "dir", "divmod", - "enumerate", "eval", "filter", "float", "format", "frozenset", - "getattr", "globals", "hasattr", "hash", "help", "hex", "id", - "input", "int", "isinstance", "issubclass", "iter", "len", - "list", "locals", "map", "max", "memoryview", "min", "next", - "object", "oct", "open", "ord", "pow", "property", "range", - "repr", "reversed", "round", "set", "setattr", "slice", - "sorted", "staticmethod", "str", "sum", "super", "tuple", - "type", "vars", "zip", "__import__", "NotImplemented", - "Ellipsis", "__debug__"]; - CodeMirror.registerHelper("hintWords", "python", commonKeywords.concat(commonBuiltins)); - - function top(state) { - return state.scopes[state.scopes.length - 1]; - } - - CodeMirror.defineMode("python", function(conf, parserConf) { - var ERRORCLASS = "error"; - - var singleDelimiters = parserConf.singleDelimiters || /^[\(\)\[\]\{\}@,:`=;\.]/; - var doubleOperators = parserConf.doubleOperators || /^([!<>]==|<>|<<|>>|\/\/|\*\*)/; - var doubleDelimiters = parserConf.doubleDelimiters || /^(\+=|\-=|\*=|%=|\/=|&=|\|=|\^=)/; - var tripleDelimiters = parserConf.tripleDelimiters || /^(\/\/=|>>=|<<=|\*\*=)/; - - var hangingIndent = parserConf.hangingIndent || conf.indentUnit; - - var myKeywords = commonKeywords, myBuiltins = commonBuiltins; - if (parserConf.extra_keywords != undefined) - myKeywords = myKeywords.concat(parserConf.extra_keywords); - - if (parserConf.extra_builtins != undefined) - myBuiltins = myBuiltins.concat(parserConf.extra_builtins); - - var py3 = !(parserConf.version && Number(parserConf.version) < 3) - if (py3) { - // since http://legacy.python.org/dev/peps/pep-0465/ @ is also an operator - var singleOperators = parserConf.singleOperators || /^[\+\-\*\/%&|\^~<>!@]/; - var identifiers = parserConf.identifiers|| /^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*/; - myKeywords = myKeywords.concat(["nonlocal", "False", "True", "None", "async", "await"]); - myBuiltins = myBuiltins.concat(["ascii", "bytes", "exec", "print"]); - var stringPrefixes = new RegExp("^(([rbuf]|(br))?('{3}|\"{3}|['\"]))", "i"); - } else { - var singleOperators = parserConf.singleOperators || /^[\+\-\*\/%&|\^~<>!]/; - var identifiers = parserConf.identifiers|| /^[_A-Za-z][_A-Za-z0-9]*/; - myKeywords = myKeywords.concat(["exec", "print"]); - myBuiltins = myBuiltins.concat(["apply", "basestring", "buffer", "cmp", "coerce", "execfile", - "file", "intern", "long", "raw_input", "reduce", "reload", - "unichr", "unicode", "xrange", "False", "True", "None"]); - var stringPrefixes = new RegExp("^(([rub]|(ur)|(br))?('{3}|\"{3}|['\"]))", "i"); - } - var keywords = wordRegexp(myKeywords); - var builtins = wordRegexp(myBuiltins); - - // tokenizers - function tokenBase(stream, state) { - if (stream.sol()) state.indent = stream.indentation() - // Handle scope changes - if (stream.sol() && top(state).type == "py") { - var scopeOffset = top(state).offset; - if (stream.eatSpace()) { - var lineOffset = stream.indentation(); - if (lineOffset > scopeOffset) - pushPyScope(state); - else if (lineOffset < scopeOffset && dedent(stream, state)) - state.errorToken = true; - return null; - } else { - var style = tokenBaseInner(stream, state); - if (scopeOffset > 0 && dedent(stream, state)) - style += " " + ERRORCLASS; - return style; - } - } - return tokenBaseInner(stream, state); - } - - function tokenBaseInner(stream, state) { - if (stream.eatSpace()) return null; - - var ch = stream.peek(); - - // Handle Comments - if (ch == "#") { - stream.skipToEnd(); - return "comment"; - } - - // Handle Number Literals - if (stream.match(/^[0-9\.]/, false)) { - var floatLiteral = false; - // Floats - if (stream.match(/^\d*\.\d+(e[\+\-]?\d+)?/i)) { floatLiteral = true; } - if (stream.match(/^\d+\.\d*/)) { floatLiteral = true; } - if (stream.match(/^\.\d+/)) { floatLiteral = true; } - if (floatLiteral) { - // Float literals may be "imaginary" - stream.eat(/J/i); - return "number"; - } - // Integers - var intLiteral = false; - // Hex - if (stream.match(/^0x[0-9a-f]+/i)) intLiteral = true; - // Binary - if (stream.match(/^0b[01]+/i)) intLiteral = true; - // Octal - if (stream.match(/^0o[0-7]+/i)) intLiteral = true; - // Decimal - if (stream.match(/^[1-9]\d*(e[\+\-]?\d+)?/)) { - // Decimal literals may be "imaginary" - stream.eat(/J/i); - // TODO - Can you have imaginary longs? - intLiteral = true; - } - // Zero by itself with no other piece of number. - if (stream.match(/^0(?![\dx])/i)) intLiteral = true; - if (intLiteral) { - // Integer literals may be "long" - stream.eat(/L/i); - return "number"; - } - } - - // Handle Strings - if (stream.match(stringPrefixes)) { - state.tokenize = tokenStringFactory(stream.current()); - return state.tokenize(stream, state); - } - - // Handle operators and Delimiters - if (stream.match(tripleDelimiters) || stream.match(doubleDelimiters)) - return "punctuation"; - - if (stream.match(doubleOperators) || stream.match(singleOperators)) - return "operator"; - - if (stream.match(singleDelimiters)) - return "punctuation"; - - if (state.lastToken == "." && stream.match(identifiers)) - return "property"; - - if (stream.match(keywords) || stream.match(wordOperators)) - return "keyword"; - - if (stream.match(builtins)) - return "builtin"; - - if (stream.match(/^(self|cls)\b/)) - return "variable-2"; - - if (stream.match(identifiers)) { - if (state.lastToken == "def" || state.lastToken == "class") - return "def"; - return "variable"; - } - - // Handle non-detected items - stream.next(); - return ERRORCLASS; - } - - function tokenStringFactory(delimiter) { - while ("rubf".indexOf(delimiter.charAt(0).toLowerCase()) >= 0) - delimiter = delimiter.substr(1); - - var singleline = delimiter.length == 1; - var OUTCLASS = "string"; - - function tokenString(stream, state) { - while (!stream.eol()) { - stream.eatWhile(/[^'"\\]/); - if (stream.eat("\\")) { - stream.next(); - if (singleline && stream.eol()) - return OUTCLASS; - } else if (stream.match(delimiter)) { - state.tokenize = tokenBase; - return OUTCLASS; - } else { - stream.eat(/['"]/); - } - } - if (singleline) { - if (parserConf.singleLineStringErrors) - return ERRORCLASS; - else - state.tokenize = tokenBase; - } - return OUTCLASS; - } - tokenString.isString = true; - return tokenString; - } - - function pushPyScope(state) { - while (top(state).type != "py") state.scopes.pop() - state.scopes.push({offset: top(state).offset + conf.indentUnit, - type: "py", - align: null}) - } - - function pushBracketScope(stream, state, type) { - var align = stream.match(/^([\s\[\{\(]|#.*)*$/, false) ? null : stream.column() + 1 - state.scopes.push({offset: state.indent + hangingIndent, - type: type, - align: align}) - } - - function dedent(stream, state) { - var indented = stream.indentation(); - while (state.scopes.length > 1 && top(state).offset > indented) { - if (top(state).type != "py") return true; - state.scopes.pop(); - } - return top(state).offset != indented; - } - - function tokenLexer(stream, state) { - if (stream.sol()) state.beginningOfLine = true; - - var style = state.tokenize(stream, state); - var current = stream.current(); - - // Handle decorators - if (state.beginningOfLine && current == "@") - return stream.match(identifiers, false) ? "meta" : py3 ? "operator" : ERRORCLASS; - - if (/\S/.test(current)) state.beginningOfLine = false; - - if ((style == "variable" || style == "builtin") - && state.lastToken == "meta") - style = "meta"; - - // Handle scope changes. - if (current == "pass" || current == "return") - state.dedent += 1; - - if (current == "lambda") state.lambda = true; - if (current == ":" && !state.lambda && top(state).type == "py") - pushPyScope(state); - - var delimiter_index = current.length == 1 ? "[({".indexOf(current) : -1; - if (delimiter_index != -1) - pushBracketScope(stream, state, "])}".slice(delimiter_index, delimiter_index+1)); - - delimiter_index = "])}".indexOf(current); - if (delimiter_index != -1) { - if (top(state).type == current) state.indent = state.scopes.pop().offset - hangingIndent - else return ERRORCLASS; - } - if (state.dedent > 0 && stream.eol() && top(state).type == "py") { - if (state.scopes.length > 1) state.scopes.pop(); - state.dedent -= 1; - } - - return style; - } - - var external = { - startState: function(basecolumn) { - return { - tokenize: tokenBase, - scopes: [{offset: basecolumn || 0, type: "py", align: null}], - indent: basecolumn || 0, - lastToken: null, - lambda: false, - dedent: 0 - }; - }, - - token: function(stream, state) { - var addErr = state.errorToken; - if (addErr) state.errorToken = false; - var style = tokenLexer(stream, state); - - if (style && style != "comment") - state.lastToken = (style == "keyword" || style == "punctuation") ? stream.current() : style; - if (style == "punctuation") style = null; - - if (stream.eol() && state.lambda) - state.lambda = false; - return addErr ? style + " " + ERRORCLASS : style; - }, - - indent: function(state, textAfter) { - if (state.tokenize != tokenBase) - return state.tokenize.isString ? CodeMirror.Pass : 0; - - var scope = top(state), closing = scope.type == textAfter.charAt(0) - if (scope.align != null) - return scope.align - (closing ? 1 : 0) - else - return scope.offset - (closing ? hangingIndent : 0) - }, - - electricInput: /^\s*[\}\]\)]$/, - closeBrackets: {triples: "'\""}, - lineComment: "#", - fold: "indent" - }; - return external; - }); - - CodeMirror.defineMIME("text/x-python", "python"); - - var words = function(str) { return str.split(" "); }; - - CodeMirror.defineMIME("text/x-cython", { - name: "python", - extra_keywords: words("by cdef cimport cpdef ctypedef enum except"+ - "extern gil include nogil property public"+ - "readonly struct union DEF IF ELIF ELSE") - }); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/python/test.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/python/test.js deleted file mode 100644 index c1a9c6a..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/python/test.js +++ /dev/null @@ -1,30 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function() { - var mode = CodeMirror.getMode({indentUnit: 4}, - {name: "python", - version: 3, - singleLineStringErrors: false}); - function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); } - - // Error, because "foobarhello" is neither a known type or property, but - // property was expected (after "and"), and it should be in parentheses. - MT("decoratorStartOfLine", - "[meta @dec]", - "[keyword def] [def function]():", - " [keyword pass]"); - - MT("decoratorIndented", - "[keyword class] [def Foo]:", - " [meta @dec]", - " [keyword def] [def function]():", - " [keyword pass]"); - - MT("matmulWithSpace:", "[variable a] [operator @] [variable b]"); - MT("matmulWithoutSpace:", "[variable a][operator @][variable b]"); - MT("matmulSpaceBefore:", "[variable a] [operator @][variable b]"); - - MT("fValidStringPrefix", "[string f'this is a {formatted} string']"); - MT("uValidStringPrefix", "[string u'this is an unicode string']"); -})(); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/q/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/q/index.html deleted file mode 100644 index 72785ba..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/q/index.html +++ /dev/null @@ -1,144 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Q mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../../addon/edit/matchbrackets.js"></script> -<script src="q.js"></script> -<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Q</a> - </ul> -</div> - -<article> -<h2>Q mode</h2> - - -<div><textarea id="code" name="code"> -/ utilities to quickly load a csv file - for more exhaustive analysis of the csv contents see csvguess.q -/ 2009.09.20 - updated to match latest csvguess.q - -/ .csv.colhdrs[file] - return a list of colhdrs from file -/ info:.csv.info[file] - return a table of information about the file -/ columns are: -/ c - column name; ci - column index; t - load type; mw - max width; -/ dchar - distinct characters in values; rule - rule that caught the type -/ maybe - needs checking, _could_ be say a date, but perhaps just a float? -/ .csv.info0[file;onlycols] - like .csv.info except that it only analyses <onlycols> -/ example: -/ info:.csv.info0[file;(.csv.colhdrs file)like"*price"] -/ info:.csv.infolike[file;"*price"] -/ show delete from info where t=" " -/ .csv.data[file;info] - use the info from .csv.info to read the data -/ .csv.data10[file;info] - like .csv.data but only returns the first 10 rows -/ bulkload[file;info] - bulk loads file into table DATA (which must be already defined :: DATA:() ) -/ .csv.read[file]/read10[file] - for when you don't care about checking/tweaking the <info> before reading - -\d .csv -DELIM:"," -ZAPHDRS:0b / lowercase and remove _ from colhdrs (junk characters are always removed) -WIDTHHDR:25000 / number of characters read to get the header -READLINES:222 / number of lines read and used to guess the types -SYMMAXWIDTH:11 / character columns narrower than this are stored as symbols -SYMMAXGR:10 / max symbol granularity% before we give up and keep as a * string -FORCECHARWIDTH:30 / every field (of any type) with values this wide or more is forced to character "*" -DISCARDEMPTY:0b / completely ignore empty columns if true else set them to "C" -CHUNKSIZE:50000000 / used in fs2 (modified .Q.fs) - -k)nameltrim:{$[~@x;.z.s'x;~(*x)in aA:.Q.a,.Q.A;(+/&\~x in aA)_x;x]} -k)fs2:{[f;s]((-7!s)>){[f;s;x]i:1+last@&0xa=r:1:(s;x;CHUNKSIZE);f@`\:i#r;x+i}[f;s]/0j} -cleanhdrs:{{$[ZAPHDRS;lower x except"_";x]}x where x in DELIM,.Q.an} -cancast:{nw:x$"";if[not x in"BXCS";nw:(min 0#;max 0#;::)@\:nw];$[not any nw in x$(11&count y)#y;$[11<count y;not any nw in x$y;1b];0b]} - -read:{[file]data[file;info[file]]} -read10:{[file]data10[file;info[file]]} - -colhdrs:{[file] - `$nameltrim DELIM vs cleanhdrs first read0(file;0;1+first where 0xa=read1(file;0;WIDTHHDR))} -data:{[file;info] - (exec c from info where not t=" ")xcol(exec t from info;enlist DELIM)0:file} -data10:{[file;info] - data[;info](file;0;1+last 11#where 0xa=read1(file;0;15*WIDTHHDR))} -info0:{[file;onlycols] - colhdrs:`$nameltrim DELIM vs cleanhdrs first head:read0(file;0;1+last where 0xa=read1(file;0;WIDTHHDR)); - loadfmts:(count colhdrs)#"S";if[count onlycols;loadfmts[where not colhdrs in onlycols]:"C"]; - breaks:where 0xa=read1(file;0;floor(10+READLINES)*WIDTHHDR%count head); - nas:count as:colhdrs xcol(loadfmts;enlist DELIM)0:(file;0;1+last((1+READLINES)&count breaks)#breaks); - info:([]c:key flip as;v:value flip as);as:(); - reserved:key`.q;reserved,:.Q.res;reserved,:`i; - info:update res:c in reserved from info; - info:update ci:i,t:"?",ipa:0b,mdot:0,mw:0,rule:0,gr:0,ndv:0,maybe:0b,empty:0b,j10:0b,j12:0b from info; - info:update ci:`s#ci from info; - if[count onlycols;info:update t:" ",rule:10 from info where not c in onlycols]; - info:update sdv:{string(distinct x)except`}peach v from info; - info:update ndv:count each sdv from info; - info:update gr:floor 0.5+100*ndv%nas,mw:{max count each x}peach sdv from info where 0<ndv; - info:update t:"*",rule:20 from info where mw>.csv.FORCECHARWIDTH; / long values - info:update t:"C "[.csv.DISCARDEMPTY],rule:30,empty:1b from info where t="?",mw=0; / empty columns - info:update dchar:{asc distinct raze x}peach sdv from info where t="?"; - info:update mdot:{max sum each"."=x}peach sdv from info where t="?",{"."in x}each dchar; - info:update t:"n",rule:40 from info where t="?",{any x in"0123456789"}each dchar; / vaguely numeric.. - info:update t:"I",rule:50,ipa:1b from info where t="n",mw within 7 15,mdot=3,{all x in".0123456789"}each dchar,.csv.cancast["I"]peach sdv; / ip-address - info:update t:"J",rule:60 from info where t="n",mdot=0,{all x in"+-0123456789"}each dchar,.csv.cancast["J"]peach sdv; - info:update t:"I",rule:70 from info where t="J",mw<12,.csv.cancast["I"]peach sdv; - info:update t:"H",rule:80 from info where t="I",mw<7,.csv.cancast["H"]peach sdv; - info:update t:"F",rule:90 from info where t="n",mdot<2,mw>1,.csv.cancast["F"]peach sdv; - info:update t:"E",rule:100,maybe:1b from info where t="F",mw<9; - info:update t:"M",rule:110,maybe:1b from info where t in"nIHEF",mdot<2,mw within 4 7,.csv.cancast["M"]peach sdv; - info:update t:"D",rule:120,maybe:1b from info where t in"nI",mdot in 0 2,mw within 6 11,.csv.cancast["D"]peach sdv; - info:update t:"V",rule:130,maybe:1b from info where t="I",mw in 5 6,7<count each dchar,{all x like"*[0-9][0-5][0-9][0-5][0-9]"}peach sdv,.csv.cancast["V"]peach sdv; / 235959 12345 - info:update t:"U",rule:140,maybe:1b from info where t="H",mw in 3 4,7<count each dchar,{all x like"*[0-9][0-5][0-9]"}peach sdv,.csv.cancast["U"]peach sdv; /2359 - info:update t:"U",rule:150,maybe:0b from info where t="n",mw in 4 5,mdot=0,{all x like"*[0-9]:[0-5][0-9]"}peach sdv,.csv.cancast["U"]peach sdv; - info:update t:"T",rule:160,maybe:0b from info where t="n",mw within 7 12,mdot<2,{all x like"*[0-9]:[0-5][0-9]:[0-5][0-9]*"}peach sdv,.csv.cancast["T"]peach sdv; - info:update t:"V",rule:170,maybe:0b from info where t="T",mw in 7 8,mdot=0,.csv.cancast["V"]peach sdv; - info:update t:"T",rule:180,maybe:1b from info where t in"EF",mw within 7 10,mdot=1,{all x like"*[0-9][0-5][0-9][0-5][0-9].*"}peach sdv,.csv.cancast["T"]peach sdv; - info:update t:"Z",rule:190,maybe:0b from info where t="n",mw within 11 24,mdot<4,.csv.cancast["Z"]peach sdv; - info:update t:"P",rule:200,maybe:1b from info where t="n",mw within 12 29,mdot<4,{all x like"[12]*"}peach sdv,.csv.cancast["P"]peach sdv; - info:update t:"N",rule:210,maybe:1b from info where t="n",mw within 3 28,mdot=1,.csv.cancast["N"]peach sdv; - info:update t:"?",rule:220,maybe:0b from info where t="n"; / reset remaining maybe numeric - info:update t:"C",rule:230,maybe:0b from info where t="?",mw=1; / char - info:update t:"B",rule:240,maybe:0b from info where t in"HC",mw=1,mdot=0,{$[all x in"01tTfFyYnN";(any"0fFnN"in x)and any"1tTyY"in x;0b]}each dchar; / boolean - info:update t:"B",rule:250,maybe:1b from info where t in"HC",mw=1,mdot=0,{all x in"01tTfFyYnN"}each dchar; / boolean - info:update t:"X",rule:260,maybe:0b from info where t="?",mw=2,{$[all x in"0123456789abcdefABCDEF";(any .Q.n in x)and any"abcdefABCDEF"in x;0b]}each dchar; /hex - info:update t:"S",rule:270,maybe:1b from info where t="?",mw<.csv.SYMMAXWIDTH,mw>1,gr<.csv.SYMMAXGR; / symbols (max width permitting) - info:update t:"*",rule:280,maybe:0b from info where t="?"; / the rest as strings - / flag those S/* columns which could be encoded to integers (.Q.j10/x10/j12/x12) to avoid symbols - info:update j12:1b from info where t in"S*",mw<13,{all x in .Q.nA}each dchar; - info:update j10:1b from info where t in"S*",mw<11,{all x in .Q.b6}each dchar; - select c,ci,t,maybe,empty,res,j10,j12,ipa,mw,mdot,rule,gr,ndv,dchar from info} -info:info0[;()] / by default don't restrict columns -infolike:{[file;pattern] info0[file;{x where x like y}[lower colhdrs[file];pattern]]} / .csv.infolike[file;"*time"] - -\d . -/ DATA:() -bulkload:{[file;info] - if[not`DATA in system"v";'`DATA.not.defined]; - if[count DATA;'`DATA.not.empty]; - loadhdrs:exec c from info where not t=" ";loadfmts:exec t from info; - .csv.fs2[{[file;loadhdrs;loadfmts] `DATA insert $[count DATA;flip loadhdrs!(loadfmts;.csv.DELIM)0:file;loadhdrs xcol(loadfmts;enlist .csv.DELIM)0:file]}[file;loadhdrs;loadfmts]]; - count DATA} -@[.:;"\\l csvutil.custom.q";::]; / save your custom settings in csvutil.custom.q to override those set at the beginning of the file -</textarea></div> - - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - lineNumbers: true, - matchBrackets: true - }); - </script> - - <p><strong>MIME type defined:</strong> <code>text/x-q</code>.</p> - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/q/q.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/q/q.js deleted file mode 100644 index a4af938..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/q/q.js +++ /dev/null @@ -1,139 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("q",function(config){ - var indentUnit=config.indentUnit, - curPunc, - keywords=buildRE(["abs","acos","aj","aj0","all","and","any","asc","asin","asof","atan","attr","avg","avgs","bin","by","ceiling","cols","cor","cos","count","cov","cross","csv","cut","delete","deltas","desc","dev","differ","distinct","div","do","each","ej","enlist","eval","except","exec","exit","exp","fby","fills","first","fkeys","flip","floor","from","get","getenv","group","gtime","hclose","hcount","hdel","hopen","hsym","iasc","idesc","if","ij","in","insert","inter","inv","key","keys","last","like","list","lj","load","log","lower","lsq","ltime","ltrim","mavg","max","maxs","mcount","md5","mdev","med","meta","min","mins","mmax","mmin","mmu","mod","msum","neg","next","not","null","or","over","parse","peach","pj","plist","prd","prds","prev","prior","rand","rank","ratios","raze","read0","read1","reciprocal","reverse","rload","rotate","rsave","rtrim","save","scan","select","set","setenv","show","signum","sin","sqrt","ss","ssr","string","sublist","sum","sums","sv","system","tables","tan","til","trim","txf","type","uj","ungroup","union","update","upper","upsert","value","var","view","views","vs","wavg","where","where","while","within","wj","wj1","wsum","xasc","xbar","xcol","xcols","xdesc","xexp","xgroup","xkey","xlog","xprev","xrank"]), - E=/[|/&^!+:\\\-*%$=~#;@><,?_\'\"\[\(\]\)\s{}]/; - function buildRE(w){return new RegExp("^("+w.join("|")+")$");} - function tokenBase(stream,state){ - var sol=stream.sol(),c=stream.next(); - curPunc=null; - if(sol) - if(c=="/") - return(state.tokenize=tokenLineComment)(stream,state); - else if(c=="\\"){ - if(stream.eol()||/\s/.test(stream.peek())) - return stream.skipToEnd(),/^\\\s*$/.test(stream.current())?(state.tokenize=tokenCommentToEOF)(stream, state):state.tokenize=tokenBase,"comment"; - else - return state.tokenize=tokenBase,"builtin"; - } - if(/\s/.test(c)) - return stream.peek()=="/"?(stream.skipToEnd(),"comment"):"whitespace"; - if(c=='"') - return(state.tokenize=tokenString)(stream,state); - if(c=='`') - return stream.eatWhile(/[A-Z|a-z|\d|_|:|\/|\.]/),"symbol"; - if(("."==c&&/\d/.test(stream.peek()))||/\d/.test(c)){ - var t=null; - stream.backUp(1); - if(stream.match(/^\d{4}\.\d{2}(m|\.\d{2}([D|T](\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)?)?)/) - || stream.match(/^\d+D(\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)/) - || stream.match(/^\d{2}:\d{2}(:\d{2}(\.\d{1,9})?)?/) - || stream.match(/^\d+[ptuv]{1}/)) - t="temporal"; - else if(stream.match(/^0[NwW]{1}/) - || stream.match(/^0x[\d|a-f|A-F]*/) - || stream.match(/^[0|1]+[b]{1}/) - || stream.match(/^\d+[chijn]{1}/) - || stream.match(/-?\d*(\.\d*)?(e[+\-]?\d+)?(e|f)?/)) - t="number"; - return(t&&(!(c=stream.peek())||E.test(c)))?t:(stream.next(),"error"); - } - if(/[A-Z|a-z]|\./.test(c)) - return stream.eatWhile(/[A-Z|a-z|\.|_|\d]/),keywords.test(stream.current())?"keyword":"variable"; - if(/[|/&^!+:\\\-*%$=~#;@><\.,?_\']/.test(c)) - return null; - if(/[{}\(\[\]\)]/.test(c)) - return null; - return"error"; - } - function tokenLineComment(stream,state){ - return stream.skipToEnd(),/\/\s*$/.test(stream.current())?(state.tokenize=tokenBlockComment)(stream,state):(state.tokenize=tokenBase),"comment"; - } - function tokenBlockComment(stream,state){ - var f=stream.sol()&&stream.peek()=="\\"; - stream.skipToEnd(); - if(f&&/^\\\s*$/.test(stream.current())) - state.tokenize=tokenBase; - return"comment"; - } - function tokenCommentToEOF(stream){return stream.skipToEnd(),"comment";} - function tokenString(stream,state){ - var escaped=false,next,end=false; - while((next=stream.next())){ - if(next=="\""&&!escaped){end=true;break;} - escaped=!escaped&&next=="\\"; - } - if(end)state.tokenize=tokenBase; - return"string"; - } - function pushContext(state,type,col){state.context={prev:state.context,indent:state.indent,col:col,type:type};} - function popContext(state){state.indent=state.context.indent;state.context=state.context.prev;} - return{ - startState:function(){ - return{tokenize:tokenBase, - context:null, - indent:0, - col:0}; - }, - token:function(stream,state){ - if(stream.sol()){ - if(state.context&&state.context.align==null) - state.context.align=false; - state.indent=stream.indentation(); - } - //if (stream.eatSpace()) return null; - var style=state.tokenize(stream,state); - if(style!="comment"&&state.context&&state.context.align==null&&state.context.type!="pattern"){ - state.context.align=true; - } - if(curPunc=="(")pushContext(state,")",stream.column()); - else if(curPunc=="[")pushContext(state,"]",stream.column()); - else if(curPunc=="{")pushContext(state,"}",stream.column()); - else if(/[\]\}\)]/.test(curPunc)){ - while(state.context&&state.context.type=="pattern")popContext(state); - if(state.context&&curPunc==state.context.type)popContext(state); - } - else if(curPunc=="."&&state.context&&state.context.type=="pattern")popContext(state); - else if(/atom|string|variable/.test(style)&&state.context){ - if(/[\}\]]/.test(state.context.type)) - pushContext(state,"pattern",stream.column()); - else if(state.context.type=="pattern"&&!state.context.align){ - state.context.align=true; - state.context.col=stream.column(); - } - } - return style; - }, - indent:function(state,textAfter){ - var firstChar=textAfter&&textAfter.charAt(0); - var context=state.context; - if(/[\]\}]/.test(firstChar)) - while (context&&context.type=="pattern")context=context.prev; - var closing=context&&firstChar==context.type; - if(!context) - return 0; - else if(context.type=="pattern") - return context.col; - else if(context.align) - return context.col+(closing?0:1); - else - return context.indent+(closing?0:indentUnit); - } - }; -}); -CodeMirror.defineMIME("text/x-q","q"); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/r/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/r/index.html deleted file mode 100644 index 6dd9634..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/r/index.html +++ /dev/null @@ -1,85 +0,0 @@ -<!doctype html> - -<title>CodeMirror: R mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="r.js"></script> -<style> - .CodeMirror { border-top: 1px solid silver; border-bottom: 1px solid silver; } - .cm-s-default span.cm-semi { color: blue; font-weight: bold; } - .cm-s-default span.cm-dollar { color: orange; font-weight: bold; } - .cm-s-default span.cm-arrow { color: brown; } - .cm-s-default span.cm-arg-is { color: brown; } - </style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">R</a> - </ul> -</div> - -<article> -<h2>R mode</h2> -<form><textarea id="code" name="code"> -# Code from http://www.mayin.org/ajayshah/KB/R/ - -# FIRST LEARN ABOUT LISTS -- -X = list(height=5.4, weight=54) -print("Use default printing --") -print(X) -print("Accessing individual elements --") -cat("Your height is ", X$height, " and your weight is ", X$weight, "\n") - -# FUNCTIONS -- -square <- function(x) { - return(x*x) -} -cat("The square of 3 is ", square(3), "\n") - - # default value of the arg is set to 5. -cube <- function(x=5) { - return(x*x*x); -} -cat("Calling cube with 2 : ", cube(2), "\n") # will give 2^3 -cat("Calling cube : ", cube(), "\n") # will default to 5^3. - -# LEARN ABOUT FUNCTIONS THAT RETURN MULTIPLE OBJECTS -- -powers <- function(x) { - parcel = list(x2=x*x, x3=x*x*x, x4=x*x*x*x); - return(parcel); -} - -X = powers(3); -print("Showing powers of 3 --"); print(X); - -# WRITING THIS COMPACTLY (4 lines instead of 7) - -powerful <- function(x) { - return(list(x2=x*x, x3=x*x*x, x4=x*x*x*x)); -} -print("Showing powers of 3 --"); print(powerful(3)); - -# In R, the last expression in a function is, by default, what is -# returned. So you could equally just say: -powerful <- function(x) {list(x2=x*x, x3=x*x*x, x4=x*x*x*x)} -</textarea></form> - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), {}); - </script> - - <p><strong>MIME types defined:</strong> <code>text/x-rsrc</code>.</p> - - <p>Development of the CodeMirror R mode was kindly sponsored - by <a href="https://twitter.com/ubalo">Ubalo</a>.</p> - - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/r/r.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/r/r.js deleted file mode 100644 index d41d1c5..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/r/r.js +++ /dev/null @@ -1,164 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.registerHelper("wordChars", "r", /[\w.]/); - -CodeMirror.defineMode("r", function(config) { - function wordObj(str) { - var words = str.split(" "), res = {}; - for (var i = 0; i < words.length; ++i) res[words[i]] = true; - return res; - } - var atoms = wordObj("NULL NA Inf NaN NA_integer_ NA_real_ NA_complex_ NA_character_"); - var builtins = wordObj("list quote bquote eval return call parse deparse"); - var keywords = wordObj("if else repeat while function for in next break"); - var blockkeywords = wordObj("if else repeat while function for"); - var opChars = /[+\-*\/^<>=!&|~$:]/; - var curPunc; - - function tokenBase(stream, state) { - curPunc = null; - var ch = stream.next(); - if (ch == "#") { - stream.skipToEnd(); - return "comment"; - } else if (ch == "0" && stream.eat("x")) { - stream.eatWhile(/[\da-f]/i); - return "number"; - } else if (ch == "." && stream.eat(/\d/)) { - stream.match(/\d*(?:e[+\-]?\d+)?/); - return "number"; - } else if (/\d/.test(ch)) { - stream.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/); - return "number"; - } else if (ch == "'" || ch == '"') { - state.tokenize = tokenString(ch); - return "string"; - } else if (ch == "." && stream.match(/.[.\d]+/)) { - return "keyword"; - } else if (/[\w\.]/.test(ch) && ch != "_") { - stream.eatWhile(/[\w\.]/); - var word = stream.current(); - if (atoms.propertyIsEnumerable(word)) return "atom"; - if (keywords.propertyIsEnumerable(word)) { - // Block keywords start new blocks, except 'else if', which only starts - // one new block for the 'if', no block for the 'else'. - if (blockkeywords.propertyIsEnumerable(word) && - !stream.match(/\s*if(\s+|$)/, false)) - curPunc = "block"; - return "keyword"; - } - if (builtins.propertyIsEnumerable(word)) return "builtin"; - return "variable"; - } else if (ch == "%") { - if (stream.skipTo("%")) stream.next(); - return "variable-2"; - } else if (ch == "<" && stream.eat("-")) { - return "arrow"; - } else if (ch == "=" && state.ctx.argList) { - return "arg-is"; - } else if (opChars.test(ch)) { - if (ch == "$") return "dollar"; - stream.eatWhile(opChars); - return "operator"; - } else if (/[\(\){}\[\];]/.test(ch)) { - curPunc = ch; - if (ch == ";") return "semi"; - return null; - } else { - return null; - } - } - - function tokenString(quote) { - return function(stream, state) { - if (stream.eat("\\")) { - var ch = stream.next(); - if (ch == "x") stream.match(/^[a-f0-9]{2}/i); - else if ((ch == "u" || ch == "U") && stream.eat("{") && stream.skipTo("}")) stream.next(); - else if (ch == "u") stream.match(/^[a-f0-9]{4}/i); - else if (ch == "U") stream.match(/^[a-f0-9]{8}/i); - else if (/[0-7]/.test(ch)) stream.match(/^[0-7]{1,2}/); - return "string-2"; - } else { - var next; - while ((next = stream.next()) != null) { - if (next == quote) { state.tokenize = tokenBase; break; } - if (next == "\\") { stream.backUp(1); break; } - } - return "string"; - } - }; - } - - function push(state, type, stream) { - state.ctx = {type: type, - indent: state.indent, - align: null, - column: stream.column(), - prev: state.ctx}; - } - function pop(state) { - state.indent = state.ctx.indent; - state.ctx = state.ctx.prev; - } - - return { - startState: function() { - return {tokenize: tokenBase, - ctx: {type: "top", - indent: -config.indentUnit, - align: false}, - indent: 0, - afterIdent: false}; - }, - - token: function(stream, state) { - if (stream.sol()) { - if (state.ctx.align == null) state.ctx.align = false; - state.indent = stream.indentation(); - } - if (stream.eatSpace()) return null; - var style = state.tokenize(stream, state); - if (style != "comment" && state.ctx.align == null) state.ctx.align = true; - - var ctype = state.ctx.type; - if ((curPunc == ";" || curPunc == "{" || curPunc == "}") && ctype == "block") pop(state); - if (curPunc == "{") push(state, "}", stream); - else if (curPunc == "(") { - push(state, ")", stream); - if (state.afterIdent) state.ctx.argList = true; - } - else if (curPunc == "[") push(state, "]", stream); - else if (curPunc == "block") push(state, "block", stream); - else if (curPunc == ctype) pop(state); - state.afterIdent = style == "variable" || style == "keyword"; - return style; - }, - - indent: function(state, textAfter) { - if (state.tokenize != tokenBase) return 0; - var firstChar = textAfter && textAfter.charAt(0), ctx = state.ctx, - closing = firstChar == ctx.type; - if (ctx.type == "block") return ctx.indent + (firstChar == "{" ? 0 : config.indentUnit); - else if (ctx.align) return ctx.column + (closing ? 0 : 1); - else return ctx.indent + (closing ? 0 : config.indentUnit); - }, - - lineComment: "#" - }; -}); - -CodeMirror.defineMIME("text/x-rsrc", "r"); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/rpm/changes/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/rpm/changes/index.html deleted file mode 100644 index 6e5031b..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/rpm/changes/index.html +++ /dev/null @@ -1,66 +0,0 @@ -<!doctype html> - -<title>CodeMirror: RPM changes mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - - <link rel="stylesheet" href="../../../lib/codemirror.css"> - <script src="../../../lib/codemirror.js"></script> - <script src="changes.js"></script> - <link rel="stylesheet" href="../../../doc/docs.css"> - <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> - -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../../doc/logo.png"></a> - - <ul> - <li><a href="../../../index.html">Home</a> - <li><a href="../../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../../index.html">Language modes</a> - <li><a class=active href="#">RPM changes</a> - </ul> -</div> - -<article> -<h2>RPM changes mode</h2> - - <div><textarea id="code" name="code"> -------------------------------------------------------------------- -Tue Oct 18 13:58:40 UTC 2011 - misterx@example.com - -- Update to r60.3 -- Fixes bug in the reflect package - * disallow Interface method on Value obtained via unexported name - -------------------------------------------------------------------- -Thu Oct 6 08:14:24 UTC 2011 - misterx@example.com - -- Update to r60.2 -- Fixes memory leak in certain map types - -------------------------------------------------------------------- -Wed Oct 5 14:34:10 UTC 2011 - misterx@example.com - -- Tweaks for gdb debugging -- go.spec changes: - - move %go_arch definition to %prep section - - pass correct location of go specific gdb pretty printer and - functions to cpp as HOST_EXTRA_CFLAGS macro - - install go gdb functions & printer -- gdb-printer.patch - - patch linker (src/cmd/ld/dwarf.c) to emit correct location of go - gdb functions and pretty printer -</textarea></div> - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - mode: {name: "changes"}, - lineNumbers: true, - indentUnit: 4 - }); - </script> - - <p><strong>MIME types defined:</strong> <code>text/x-rpm-changes</code>.</p> -</article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/rpm/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/rpm/index.html deleted file mode 100644 index 9a34e6d..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/rpm/index.html +++ /dev/null @@ -1,149 +0,0 @@ -<!doctype html> - -<title>CodeMirror: RPM changes mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - - <link rel="stylesheet" href="../../lib/codemirror.css"> - <script src="../../lib/codemirror.js"></script> - <script src="rpm.js"></script> - <link rel="stylesheet" href="../../doc/docs.css"> - <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> - -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">RPM</a> - </ul> -</div> - -<article> -<h2>RPM changes mode</h2> - - <div><textarea id="code" name="code"> -------------------------------------------------------------------- -Tue Oct 18 13:58:40 UTC 2011 - misterx@example.com - -- Update to r60.3 -- Fixes bug in the reflect package - * disallow Interface method on Value obtained via unexported name - -------------------------------------------------------------------- -Thu Oct 6 08:14:24 UTC 2011 - misterx@example.com - -- Update to r60.2 -- Fixes memory leak in certain map types - -------------------------------------------------------------------- -Wed Oct 5 14:34:10 UTC 2011 - misterx@example.com - -- Tweaks for gdb debugging -- go.spec changes: - - move %go_arch definition to %prep section - - pass correct location of go specific gdb pretty printer and - functions to cpp as HOST_EXTRA_CFLAGS macro - - install go gdb functions & printer -- gdb-printer.patch - - patch linker (src/cmd/ld/dwarf.c) to emit correct location of go - gdb functions and pretty printer -</textarea></div> - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - mode: {name: "rpm-changes"}, - lineNumbers: true, - indentUnit: 4 - }); - </script> - -<h2>RPM spec mode</h2> - - <div><textarea id="code2" name="code2"> -# -# spec file for package minidlna -# -# Copyright (c) 2011, Sascha Peilicke <saschpe@gmx.de> -# -# All modifications and additions to the file contributed by third parties -# remain the property of their copyright owners, unless otherwise agreed -# upon. The license for this file, and modifications and additions to the -# file, is the same license as for the pristine package itself (unless the -# license for the pristine package is not an Open Source License, in which -# case the license is the MIT License). An "Open Source License" is a -# license that conforms to the Open Source Definition (Version 1.9) -# published by the Open Source Initiative. - - -Name: libupnp6 -Version: 1.6.13 -Release: 0 -Summary: Portable Universal Plug and Play (UPnP) SDK -Group: System/Libraries -License: BSD-3-Clause -Url: http://sourceforge.net/projects/pupnp/ -Source0: http://downloads.sourceforge.net/pupnp/libupnp-%{version}.tar.bz2 -BuildRoot: %{_tmppath}/%{name}-%{version}-build - -%description -The portable Universal Plug and Play (UPnP) SDK provides support for building -UPnP-compliant control points, devices, and bridges on several operating -systems. - -%package -n libupnp-devel -Summary: Portable Universal Plug and Play (UPnP) SDK -Group: Development/Libraries/C and C++ -Provides: pkgconfig(libupnp) -Requires: %{name} = %{version} - -%description -n libupnp-devel -The portable Universal Plug and Play (UPnP) SDK provides support for building -UPnP-compliant control points, devices, and bridges on several operating -systems. - -%prep -%setup -n libupnp-%{version} - -%build -%configure --disable-static -make %{?_smp_mflags} - -%install -%makeinstall -find %{buildroot} -type f -name '*.la' -exec rm -f {} ';' - -%post -p /sbin/ldconfig - -%postun -p /sbin/ldconfig - -%files -%defattr(-,root,root,-) -%doc ChangeLog NEWS README TODO -%{_libdir}/libixml.so.* -%{_libdir}/libthreadutil.so.* -%{_libdir}/libupnp.so.* - -%files -n libupnp-devel -%defattr(-,root,root,-) -%{_libdir}/pkgconfig/libupnp.pc -%{_libdir}/libixml.so -%{_libdir}/libthreadutil.so -%{_libdir}/libupnp.so -%{_includedir}/upnp/ - -%changelog</textarea></div> - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code2"), { - mode: {name: "rpm-spec"}, - lineNumbers: true, - indentUnit: 4 - }); - </script> - - <p><strong>MIME types defined:</strong> <code>text/x-rpm-spec</code>, <code>text/x-rpm-changes</code>.</p> -</article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/rpm/rpm.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/rpm/rpm.js deleted file mode 100644 index 87cde59..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/rpm/rpm.js +++ /dev/null @@ -1,109 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("rpm-changes", function() { - var headerSeperator = /^-+$/; - var headerLine = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ?\d{1,2} \d{2}:\d{2}(:\d{2})? [A-Z]{3,4} \d{4} - /; - var simpleEmail = /^[\w+.-]+@[\w.-]+/; - - return { - token: function(stream) { - if (stream.sol()) { - if (stream.match(headerSeperator)) { return 'tag'; } - if (stream.match(headerLine)) { return 'tag'; } - } - if (stream.match(simpleEmail)) { return 'string'; } - stream.next(); - return null; - } - }; -}); - -CodeMirror.defineMIME("text/x-rpm-changes", "rpm-changes"); - -// Quick and dirty spec file highlighting - -CodeMirror.defineMode("rpm-spec", function() { - var arch = /^(i386|i586|i686|x86_64|ppc64le|ppc64|ppc|ia64|s390x|s390|sparc64|sparcv9|sparc|noarch|alphaev6|alpha|hppa|mipsel)/; - - var preamble = /^[a-zA-Z0-9()]+:/; - var section = /^%(debug_package|package|description|prep|build|install|files|clean|changelog|preinstall|preun|postinstall|postun|pretrans|posttrans|pre|post|triggerin|triggerun|verifyscript|check|triggerpostun|triggerprein|trigger)/; - var control_flow_complex = /^%(ifnarch|ifarch|if)/; // rpm control flow macros - var control_flow_simple = /^%(else|endif)/; // rpm control flow macros - var operators = /^(\!|\?|\<\=|\<|\>\=|\>|\=\=|\&\&|\|\|)/; // operators in control flow macros - - return { - startState: function () { - return { - controlFlow: false, - macroParameters: false, - section: false - }; - }, - token: function (stream, state) { - var ch = stream.peek(); - if (ch == "#") { stream.skipToEnd(); return "comment"; } - - if (stream.sol()) { - if (stream.match(preamble)) { return "header"; } - if (stream.match(section)) { return "atom"; } - } - - if (stream.match(/^\$\w+/)) { return "def"; } // Variables like '$RPM_BUILD_ROOT' - if (stream.match(/^\$\{\w+\}/)) { return "def"; } // Variables like '${RPM_BUILD_ROOT}' - - if (stream.match(control_flow_simple)) { return "keyword"; } - if (stream.match(control_flow_complex)) { - state.controlFlow = true; - return "keyword"; - } - if (state.controlFlow) { - if (stream.match(operators)) { return "operator"; } - if (stream.match(/^(\d+)/)) { return "number"; } - if (stream.eol()) { state.controlFlow = false; } - } - - if (stream.match(arch)) { - if (stream.eol()) { state.controlFlow = false; } - return "number"; - } - - // Macros like '%make_install' or '%attr(0775,root,root)' - if (stream.match(/^%[\w]+/)) { - if (stream.match(/^\(/)) { state.macroParameters = true; } - return "keyword"; - } - if (state.macroParameters) { - if (stream.match(/^\d+/)) { return "number";} - if (stream.match(/^\)/)) { - state.macroParameters = false; - return "keyword"; - } - } - - // Macros like '%{defined fedora}' - if (stream.match(/^%\{\??[\w \-\:\!]+\}/)) { - if (stream.eol()) { state.controlFlow = false; } - return "def"; - } - - //TODO: Include bash script sub-parser (CodeMirror supports that) - stream.next(); - return null; - } - }; -}); - -CodeMirror.defineMIME("text/x-rpm-spec", "rpm-spec"); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/rst/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/rst/index.html deleted file mode 100644 index 2902dea..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/rst/index.html +++ /dev/null @@ -1,535 +0,0 @@ -<!doctype html> - -<title>CodeMirror: reStructuredText mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../../addon/mode/overlay.js"></script> -<script src="rst.js"></script> -<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">reStructuredText</a> - </ul> -</div> - -<article> -<h2>reStructuredText mode</h2> -<form><textarea id="code" name="code"> -.. This is an excerpt from Sphinx documentation: http://sphinx.pocoo.org/_sources/rest.txt - -.. highlightlang:: rest - -.. _rst-primer: - -reStructuredText Primer -======================= - -This section is a brief introduction to reStructuredText (reST) concepts and -syntax, intended to provide authors with enough information to author documents -productively. Since reST was designed to be a simple, unobtrusive markup -language, this will not take too long. - -.. seealso:: - - The authoritative `reStructuredText User Documentation - <http://docutils.sourceforge.net/rst.html>`_. The "ref" links in this - document link to the description of the individual constructs in the reST - reference. - - -Paragraphs ----------- - -The paragraph (:duref:`ref <paragraphs>`) is the most basic block in a reST -document. Paragraphs are simply chunks of text separated by one or more blank -lines. As in Python, indentation is significant in reST, so all lines of the -same paragraph must be left-aligned to the same level of indentation. - - -.. _inlinemarkup: - -Inline markup -------------- - -The standard reST inline markup is quite simple: use - -* one asterisk: ``*text*`` for emphasis (italics), -* two asterisks: ``**text**`` for strong emphasis (boldface), and -* backquotes: ````text```` for code samples. - -If asterisks or backquotes appear in running text and could be confused with -inline markup delimiters, they have to be escaped with a backslash. - -Be aware of some restrictions of this markup: - -* it may not be nested, -* content may not start or end with whitespace: ``* text*`` is wrong, -* it must be separated from surrounding text by non-word characters. Use a - backslash escaped space to work around that: ``thisis\ *one*\ word``. - -These restrictions may be lifted in future versions of the docutils. - -reST also allows for custom "interpreted text roles"', which signify that the -enclosed text should be interpreted in a specific way. Sphinx uses this to -provide semantic markup and cross-referencing of identifiers, as described in -the appropriate section. The general syntax is ``:rolename:`content```. - -Standard reST provides the following roles: - -* :durole:`emphasis` -- alternate spelling for ``*emphasis*`` -* :durole:`strong` -- alternate spelling for ``**strong**`` -* :durole:`literal` -- alternate spelling for ````literal```` -* :durole:`subscript` -- subscript text -* :durole:`superscript` -- superscript text -* :durole:`title-reference` -- for titles of books, periodicals, and other - materials - -See :ref:`inline-markup` for roles added by Sphinx. - - -Lists and Quote-like blocks ---------------------------- - -List markup (:duref:`ref <bullet-lists>`) is natural: just place an asterisk at -the start of a paragraph and indent properly. The same goes for numbered lists; -they can also be autonumbered using a ``#`` sign:: - - * This is a bulleted list. - * It has two items, the second - item uses two lines. - - 1. This is a numbered list. - 2. It has two items too. - - #. This is a numbered list. - #. It has two items too. - - -Nested lists are possible, but be aware that they must be separated from the -parent list items by blank lines:: - - * this is - * a list - - * with a nested list - * and some subitems - - * and here the parent list continues - -Definition lists (:duref:`ref <definition-lists>`) are created as follows:: - - term (up to a line of text) - Definition of the term, which must be indented - - and can even consist of multiple paragraphs - - next term - Description. - -Note that the term cannot have more than one line of text. - -Quoted paragraphs (:duref:`ref <block-quotes>`) are created by just indenting -them more than the surrounding paragraphs. - -Line blocks (:duref:`ref <line-blocks>`) are a way of preserving line breaks:: - - | These lines are - | broken exactly like in - | the source file. - -There are also several more special blocks available: - -* field lists (:duref:`ref <field-lists>`) -* option lists (:duref:`ref <option-lists>`) -* quoted literal blocks (:duref:`ref <quoted-literal-blocks>`) -* doctest blocks (:duref:`ref <doctest-blocks>`) - - -Source Code ------------ - -Literal code blocks (:duref:`ref <literal-blocks>`) are introduced by ending a -paragraph with the special marker ``::``. The literal block must be indented -(and, like all paragraphs, separated from the surrounding ones by blank lines):: - - This is a normal text paragraph. The next paragraph is a code sample:: - - It is not processed in any way, except - that the indentation is removed. - - It can span multiple lines. - - This is a normal text paragraph again. - -The handling of the ``::`` marker is smart: - -* If it occurs as a paragraph of its own, that paragraph is completely left - out of the document. -* If it is preceded by whitespace, the marker is removed. -* If it is preceded by non-whitespace, the marker is replaced by a single - colon. - -That way, the second sentence in the above example's first paragraph would be -rendered as "The next paragraph is a code sample:". - - -.. _rst-tables: - -Tables ------- - -Two forms of tables are supported. For *grid tables* (:duref:`ref -<grid-tables>`), you have to "paint" the cell grid yourself. They look like -this:: - - +------------------------+------------+----------+----------+ - | Header row, column 1 | Header 2 | Header 3 | Header 4 | - | (header rows optional) | | | | - +========================+============+==========+==========+ - | body row 1, column 1 | column 2 | column 3 | column 4 | - +------------------------+------------+----------+----------+ - | body row 2 | ... | ... | | - +------------------------+------------+----------+----------+ - -*Simple tables* (:duref:`ref <simple-tables>`) are easier to write, but -limited: they must contain more than one row, and the first column cannot -contain multiple lines. They look like this:: - - ===== ===== ======= - A B A and B - ===== ===== ======= - False False False - True False False - False True False - True True True - ===== ===== ======= - - -Hyperlinks ----------- - -External links -^^^^^^^^^^^^^^ - -Use ```Link text <http://example.com/>`_`` for inline web links. If the link -text should be the web address, you don't need special markup at all, the parser -finds links and mail addresses in ordinary text. - -You can also separate the link and the target definition (:duref:`ref -<hyperlink-targets>`), like this:: - - This is a paragraph that contains `a link`_. - - .. _a link: http://example.com/ - - -Internal links -^^^^^^^^^^^^^^ - -Internal linking is done via a special reST role provided by Sphinx, see the -section on specific markup, :ref:`ref-role`. - - -Sections --------- - -Section headers (:duref:`ref <sections>`) are created by underlining (and -optionally overlining) the section title with a punctuation character, at least -as long as the text:: - - ================= - This is a heading - ================= - -Normally, there are no heading levels assigned to certain characters as the -structure is determined from the succession of headings. However, for the -Python documentation, this convention is used which you may follow: - -* ``#`` with overline, for parts -* ``*`` with overline, for chapters -* ``=``, for sections -* ``-``, for subsections -* ``^``, for subsubsections -* ``"``, for paragraphs - -Of course, you are free to use your own marker characters (see the reST -documentation), and use a deeper nesting level, but keep in mind that most -target formats (HTML, LaTeX) have a limited supported nesting depth. - - -Explicit Markup ---------------- - -"Explicit markup" (:duref:`ref <explicit-markup-blocks>`) is used in reST for -most constructs that need special handling, such as footnotes, -specially-highlighted paragraphs, comments, and generic directives. - -An explicit markup block begins with a line starting with ``..`` followed by -whitespace and is terminated by the next paragraph at the same level of -indentation. (There needs to be a blank line between explicit markup and normal -paragraphs. This may all sound a bit complicated, but it is intuitive enough -when you write it.) - - -.. _directives: - -Directives ----------- - -A directive (:duref:`ref <directives>`) is a generic block of explicit markup. -Besides roles, it is one of the extension mechanisms of reST, and Sphinx makes -heavy use of it. - -Docutils supports the following directives: - -* Admonitions: :dudir:`attention`, :dudir:`caution`, :dudir:`danger`, - :dudir:`error`, :dudir:`hint`, :dudir:`important`, :dudir:`note`, - :dudir:`tip`, :dudir:`warning` and the generic :dudir:`admonition`. - (Most themes style only "note" and "warning" specially.) - -* Images: - - - :dudir:`image` (see also Images_ below) - - :dudir:`figure` (an image with caption and optional legend) - -* Additional body elements: - - - :dudir:`contents` (a local, i.e. for the current file only, table of - contents) - - :dudir:`container` (a container with a custom class, useful to generate an - outer ``<div>`` in HTML) - - :dudir:`rubric` (a heading without relation to the document sectioning) - - :dudir:`topic`, :dudir:`sidebar` (special highlighted body elements) - - :dudir:`parsed-literal` (literal block that supports inline markup) - - :dudir:`epigraph` (a block quote with optional attribution line) - - :dudir:`highlights`, :dudir:`pull-quote` (block quotes with their own - class attribute) - - :dudir:`compound` (a compound paragraph) - -* Special tables: - - - :dudir:`table` (a table with title) - - :dudir:`csv-table` (a table generated from comma-separated values) - - :dudir:`list-table` (a table generated from a list of lists) - -* Special directives: - - - :dudir:`raw` (include raw target-format markup) - - :dudir:`include` (include reStructuredText from another file) - -- in Sphinx, when given an absolute include file path, this directive takes - it as relative to the source directory - - :dudir:`class` (assign a class attribute to the next element) [1]_ - -* HTML specifics: - - - :dudir:`meta` (generation of HTML ``<meta>`` tags) - - :dudir:`title` (override document title) - -* Influencing markup: - - - :dudir:`default-role` (set a new default role) - - :dudir:`role` (create a new role) - - Since these are only per-file, better use Sphinx' facilities for setting the - :confval:`default_role`. - -Do *not* use the directives :dudir:`sectnum`, :dudir:`header` and -:dudir:`footer`. - -Directives added by Sphinx are described in :ref:`sphinxmarkup`. - -Basically, a directive consists of a name, arguments, options and content. (Keep -this terminology in mind, it is used in the next chapter describing custom -directives.) Looking at this example, :: - - .. function:: foo(x) - foo(y, z) - :module: some.module.name - - Return a line of text input from the user. - -``function`` is the directive name. It is given two arguments here, the -remainder of the first line and the second line, as well as one option -``module`` (as you can see, options are given in the lines immediately following -the arguments and indicated by the colons). Options must be indented to the -same level as the directive content. - -The directive content follows after a blank line and is indented relative to the -directive start. - - -Images ------- - -reST supports an image directive (:dudir:`ref <image>`), used like so:: - - .. image:: gnu.png - (options) - -When used within Sphinx, the file name given (here ``gnu.png``) must either be -relative to the source file, or absolute which means that they are relative to -the top source directory. For example, the file ``sketch/spam.rst`` could refer -to the image ``images/spam.png`` as ``../images/spam.png`` or -``/images/spam.png``. - -Sphinx will automatically copy image files over to a subdirectory of the output -directory on building (e.g. the ``_static`` directory for HTML output.) - -Interpretation of image size options (``width`` and ``height``) is as follows: -if the size has no unit or the unit is pixels, the given size will only be -respected for output channels that support pixels (i.e. not in LaTeX output). -Other units (like ``pt`` for points) will be used for HTML and LaTeX output. - -Sphinx extends the standard docutils behavior by allowing an asterisk for the -extension:: - - .. image:: gnu.* - -Sphinx then searches for all images matching the provided pattern and determines -their type. Each builder then chooses the best image out of these candidates. -For instance, if the file name ``gnu.*`` was given and two files :file:`gnu.pdf` -and :file:`gnu.png` existed in the source tree, the LaTeX builder would choose -the former, while the HTML builder would prefer the latter. - -.. versionchanged:: 0.4 - Added the support for file names ending in an asterisk. - -.. versionchanged:: 0.6 - Image paths can now be absolute. - - -Footnotes ---------- - -For footnotes (:duref:`ref <footnotes>`), use ``[#name]_`` to mark the footnote -location, and add the footnote body at the bottom of the document after a -"Footnotes" rubric heading, like so:: - - Lorem ipsum [#f1]_ dolor sit amet ... [#f2]_ - - .. rubric:: Footnotes - - .. [#f1] Text of the first footnote. - .. [#f2] Text of the second footnote. - -You can also explicitly number the footnotes (``[1]_``) or use auto-numbered -footnotes without names (``[#]_``). - - -Citations ---------- - -Standard reST citations (:duref:`ref <citations>`) are supported, with the -additional feature that they are "global", i.e. all citations can be referenced -from all files. Use them like so:: - - Lorem ipsum [Ref]_ dolor sit amet. - - .. [Ref] Book or article reference, URL or whatever. - -Citation usage is similar to footnote usage, but with a label that is not -numeric or begins with ``#``. - - -Substitutions -------------- - -reST supports "substitutions" (:duref:`ref <substitution-definitions>`), which -are pieces of text and/or markup referred to in the text by ``|name|``. They -are defined like footnotes with explicit markup blocks, like this:: - - .. |name| replace:: replacement *text* - -or this:: - - .. |caution| image:: warning.png - :alt: Warning! - -See the :duref:`reST reference for substitutions <substitution-definitions>` -for details. - -If you want to use some substitutions for all documents, put them into -:confval:`rst_prolog` or put them into a separate file and include it into all -documents you want to use them in, using the :rst:dir:`include` directive. (Be -sure to give the include file a file name extension differing from that of other -source files, to avoid Sphinx finding it as a standalone document.) - -Sphinx defines some default substitutions, see :ref:`default-substitutions`. - - -Comments --------- - -Every explicit markup block which isn't a valid markup construct (like the -footnotes above) is regarded as a comment (:duref:`ref <comments>`). For -example:: - - .. This is a comment. - -You can indent text after a comment start to form multiline comments:: - - .. - This whole indented block - is a comment. - - Still in the comment. - - -Source encoding ---------------- - -Since the easiest way to include special characters like em dashes or copyright -signs in reST is to directly write them as Unicode characters, one has to -specify an encoding. Sphinx assumes source files to be encoded in UTF-8 by -default; you can change this with the :confval:`source_encoding` config value. - - -Gotchas -------- - -There are some problems one commonly runs into while authoring reST documents: - -* **Separation of inline markup:** As said above, inline markup spans must be - separated from the surrounding text by non-word characters, you have to use a - backslash-escaped space to get around that. See `the reference - <http://docutils.sf.net/docs/ref/rst/restructuredtext.html#inline-markup>`_ - for the details. - -* **No nested inline markup:** Something like ``*see :func:`foo`*`` is not - possible. - - -.. rubric:: Footnotes - -.. [1] When the default domain contains a :rst:dir:`class` directive, this directive - will be shadowed. Therefore, Sphinx re-exports it as :rst:dir:`rst-class`. -</textarea></form> - - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - lineNumbers: true, - }); - </script> - <p> - The <code>python</code> mode will be used for highlighting blocks - containing Python/IPython terminal sessions: blocks starting with - <code>>>></code> (for Python) or <code>In [num]:</code> (for - IPython). - - Further, the <code>stex</code> mode will be used for highlighting - blocks containing LaTex code. - </p> - - <p><strong>MIME types defined:</strong> <code>text/x-rst</code>.</p> - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/rst/rst.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/rst/rst.js deleted file mode 100644 index bcf110c..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/rst/rst.js +++ /dev/null @@ -1,557 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror"), require("../python/python"), require("../stex/stex"), require("../../addon/mode/overlay")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror", "../python/python", "../stex/stex", "../../addon/mode/overlay"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode('rst', function (config, options) { - - var rx_strong = /^\*\*[^\*\s](?:[^\*]*[^\*\s])?\*\*/; - var rx_emphasis = /^\*[^\*\s](?:[^\*]*[^\*\s])?\*/; - var rx_literal = /^``[^`\s](?:[^`]*[^`\s])``/; - - var rx_number = /^(?:[\d]+(?:[\.,]\d+)*)/; - var rx_positive = /^(?:\s\+[\d]+(?:[\.,]\d+)*)/; - var rx_negative = /^(?:\s\-[\d]+(?:[\.,]\d+)*)/; - - var rx_uri_protocol = "[Hh][Tt][Tt][Pp][Ss]?://"; - var rx_uri_domain = "(?:[\\d\\w.-]+)\\.(?:\\w{2,6})"; - var rx_uri_path = "(?:/[\\d\\w\\#\\%\\&\\-\\.\\,\\/\\:\\=\\?\\~]+)*"; - var rx_uri = new RegExp("^" + rx_uri_protocol + rx_uri_domain + rx_uri_path); - - var overlay = { - token: function (stream) { - - if (stream.match(rx_strong) && stream.match (/\W+|$/, false)) - return 'strong'; - if (stream.match(rx_emphasis) && stream.match (/\W+|$/, false)) - return 'em'; - if (stream.match(rx_literal) && stream.match (/\W+|$/, false)) - return 'string-2'; - if (stream.match(rx_number)) - return 'number'; - if (stream.match(rx_positive)) - return 'positive'; - if (stream.match(rx_negative)) - return 'negative'; - if (stream.match(rx_uri)) - return 'link'; - - while (stream.next() != null) { - if (stream.match(rx_strong, false)) break; - if (stream.match(rx_emphasis, false)) break; - if (stream.match(rx_literal, false)) break; - if (stream.match(rx_number, false)) break; - if (stream.match(rx_positive, false)) break; - if (stream.match(rx_negative, false)) break; - if (stream.match(rx_uri, false)) break; - } - - return null; - } - }; - - var mode = CodeMirror.getMode( - config, options.backdrop || 'rst-base' - ); - - return CodeMirror.overlayMode(mode, overlay, true); // combine -}, 'python', 'stex'); - -/////////////////////////////////////////////////////////////////////////////// -/////////////////////////////////////////////////////////////////////////////// - -CodeMirror.defineMode('rst-base', function (config) { - - /////////////////////////////////////////////////////////////////////////// - /////////////////////////////////////////////////////////////////////////// - - function format(string) { - var args = Array.prototype.slice.call(arguments, 1); - return string.replace(/{(\d+)}/g, function (match, n) { - return typeof args[n] != 'undefined' ? args[n] : match; - }); - } - - /////////////////////////////////////////////////////////////////////////// - /////////////////////////////////////////////////////////////////////////// - - var mode_python = CodeMirror.getMode(config, 'python'); - var mode_stex = CodeMirror.getMode(config, 'stex'); - - /////////////////////////////////////////////////////////////////////////// - /////////////////////////////////////////////////////////////////////////// - - var SEPA = "\\s+"; - var TAIL = "(?:\\s*|\\W|$)", - rx_TAIL = new RegExp(format('^{0}', TAIL)); - - var NAME = - "(?:[^\\W\\d_](?:[\\w!\"#$%&'()\\*\\+,\\-\\.\/:;<=>\\?]*[^\\W_])?)", - rx_NAME = new RegExp(format('^{0}', NAME)); - var NAME_WWS = - "(?:[^\\W\\d_](?:[\\w\\s!\"#$%&'()\\*\\+,\\-\\.\/:;<=>\\?]*[^\\W_])?)"; - var REF_NAME = format('(?:{0}|`{1}`)', NAME, NAME_WWS); - - var TEXT1 = "(?:[^\\s\\|](?:[^\\|]*[^\\s\\|])?)"; - var TEXT2 = "(?:[^\\`]+)", - rx_TEXT2 = new RegExp(format('^{0}', TEXT2)); - - var rx_section = new RegExp( - "^([!'#$%&\"()*+,-./:;<=>?@\\[\\\\\\]^_`{|}~])\\1{3,}\\s*$"); - var rx_explicit = new RegExp( - format('^\\.\\.{0}', SEPA)); - var rx_link = new RegExp( - format('^_{0}:{1}|^__:{1}', REF_NAME, TAIL)); - var rx_directive = new RegExp( - format('^{0}::{1}', REF_NAME, TAIL)); - var rx_substitution = new RegExp( - format('^\\|{0}\\|{1}{2}::{3}', TEXT1, SEPA, REF_NAME, TAIL)); - var rx_footnote = new RegExp( - format('^\\[(?:\\d+|#{0}?|\\*)]{1}', REF_NAME, TAIL)); - var rx_citation = new RegExp( - format('^\\[{0}\\]{1}', REF_NAME, TAIL)); - - var rx_substitution_ref = new RegExp( - format('^\\|{0}\\|', TEXT1)); - var rx_footnote_ref = new RegExp( - format('^\\[(?:\\d+|#{0}?|\\*)]_', REF_NAME)); - var rx_citation_ref = new RegExp( - format('^\\[{0}\\]_', REF_NAME)); - var rx_link_ref1 = new RegExp( - format('^{0}__?', REF_NAME)); - var rx_link_ref2 = new RegExp( - format('^`{0}`_', TEXT2)); - - var rx_role_pre = new RegExp( - format('^:{0}:`{1}`{2}', NAME, TEXT2, TAIL)); - var rx_role_suf = new RegExp( - format('^`{1}`:{0}:{2}', NAME, TEXT2, TAIL)); - var rx_role = new RegExp( - format('^:{0}:{1}', NAME, TAIL)); - - var rx_directive_name = new RegExp(format('^{0}', REF_NAME)); - var rx_directive_tail = new RegExp(format('^::{0}', TAIL)); - var rx_substitution_text = new RegExp(format('^\\|{0}\\|', TEXT1)); - var rx_substitution_sepa = new RegExp(format('^{0}', SEPA)); - var rx_substitution_name = new RegExp(format('^{0}', REF_NAME)); - var rx_substitution_tail = new RegExp(format('^::{0}', TAIL)); - var rx_link_head = new RegExp("^_"); - var rx_link_name = new RegExp(format('^{0}|_', REF_NAME)); - var rx_link_tail = new RegExp(format('^:{0}', TAIL)); - - var rx_verbatim = new RegExp('^::\\s*$'); - var rx_examples = new RegExp('^\\s+(?:>>>|In \\[\\d+\\]:)\\s'); - - /////////////////////////////////////////////////////////////////////////// - /////////////////////////////////////////////////////////////////////////// - - function to_normal(stream, state) { - var token = null; - - if (stream.sol() && stream.match(rx_examples, false)) { - change(state, to_mode, { - mode: mode_python, local: CodeMirror.startState(mode_python) - }); - } else if (stream.sol() && stream.match(rx_explicit)) { - change(state, to_explicit); - token = 'meta'; - } else if (stream.sol() && stream.match(rx_section)) { - change(state, to_normal); - token = 'header'; - } else if (phase(state) == rx_role_pre || - stream.match(rx_role_pre, false)) { - - switch (stage(state)) { - case 0: - change(state, to_normal, context(rx_role_pre, 1)); - stream.match(/^:/); - token = 'meta'; - break; - case 1: - change(state, to_normal, context(rx_role_pre, 2)); - stream.match(rx_NAME); - token = 'keyword'; - - if (stream.current().match(/^(?:math|latex)/)) { - state.tmp_stex = true; - } - break; - case 2: - change(state, to_normal, context(rx_role_pre, 3)); - stream.match(/^:`/); - token = 'meta'; - break; - case 3: - if (state.tmp_stex) { - state.tmp_stex = undefined; state.tmp = { - mode: mode_stex, local: CodeMirror.startState(mode_stex) - }; - } - - if (state.tmp) { - if (stream.peek() == '`') { - change(state, to_normal, context(rx_role_pre, 4)); - state.tmp = undefined; - break; - } - - token = state.tmp.mode.token(stream, state.tmp.local); - break; - } - - change(state, to_normal, context(rx_role_pre, 4)); - stream.match(rx_TEXT2); - token = 'string'; - break; - case 4: - change(state, to_normal, context(rx_role_pre, 5)); - stream.match(/^`/); - token = 'meta'; - break; - case 5: - change(state, to_normal, context(rx_role_pre, 6)); - stream.match(rx_TAIL); - break; - default: - change(state, to_normal); - } - } else if (phase(state) == rx_role_suf || - stream.match(rx_role_suf, false)) { - - switch (stage(state)) { - case 0: - change(state, to_normal, context(rx_role_suf, 1)); - stream.match(/^`/); - token = 'meta'; - break; - case 1: - change(state, to_normal, context(rx_role_suf, 2)); - stream.match(rx_TEXT2); - token = 'string'; - break; - case 2: - change(state, to_normal, context(rx_role_suf, 3)); - stream.match(/^`:/); - token = 'meta'; - break; - case 3: - change(state, to_normal, context(rx_role_suf, 4)); - stream.match(rx_NAME); - token = 'keyword'; - break; - case 4: - change(state, to_normal, context(rx_role_suf, 5)); - stream.match(/^:/); - token = 'meta'; - break; - case 5: - change(state, to_normal, context(rx_role_suf, 6)); - stream.match(rx_TAIL); - break; - default: - change(state, to_normal); - } - } else if (phase(state) == rx_role || stream.match(rx_role, false)) { - - switch (stage(state)) { - case 0: - change(state, to_normal, context(rx_role, 1)); - stream.match(/^:/); - token = 'meta'; - break; - case 1: - change(state, to_normal, context(rx_role, 2)); - stream.match(rx_NAME); - token = 'keyword'; - break; - case 2: - change(state, to_normal, context(rx_role, 3)); - stream.match(/^:/); - token = 'meta'; - break; - case 3: - change(state, to_normal, context(rx_role, 4)); - stream.match(rx_TAIL); - break; - default: - change(state, to_normal); - } - } else if (phase(state) == rx_substitution_ref || - stream.match(rx_substitution_ref, false)) { - - switch (stage(state)) { - case 0: - change(state, to_normal, context(rx_substitution_ref, 1)); - stream.match(rx_substitution_text); - token = 'variable-2'; - break; - case 1: - change(state, to_normal, context(rx_substitution_ref, 2)); - if (stream.match(/^_?_?/)) token = 'link'; - break; - default: - change(state, to_normal); - } - } else if (stream.match(rx_footnote_ref)) { - change(state, to_normal); - token = 'quote'; - } else if (stream.match(rx_citation_ref)) { - change(state, to_normal); - token = 'quote'; - } else if (stream.match(rx_link_ref1)) { - change(state, to_normal); - if (!stream.peek() || stream.peek().match(/^\W$/)) { - token = 'link'; - } - } else if (phase(state) == rx_link_ref2 || - stream.match(rx_link_ref2, false)) { - - switch (stage(state)) { - case 0: - if (!stream.peek() || stream.peek().match(/^\W$/)) { - change(state, to_normal, context(rx_link_ref2, 1)); - } else { - stream.match(rx_link_ref2); - } - break; - case 1: - change(state, to_normal, context(rx_link_ref2, 2)); - stream.match(/^`/); - token = 'link'; - break; - case 2: - change(state, to_normal, context(rx_link_ref2, 3)); - stream.match(rx_TEXT2); - break; - case 3: - change(state, to_normal, context(rx_link_ref2, 4)); - stream.match(/^`_/); - token = 'link'; - break; - default: - change(state, to_normal); - } - } else if (stream.match(rx_verbatim)) { - change(state, to_verbatim); - } - - else { - if (stream.next()) change(state, to_normal); - } - - return token; - } - - /////////////////////////////////////////////////////////////////////////// - /////////////////////////////////////////////////////////////////////////// - - function to_explicit(stream, state) { - var token = null; - - if (phase(state) == rx_substitution || - stream.match(rx_substitution, false)) { - - switch (stage(state)) { - case 0: - change(state, to_explicit, context(rx_substitution, 1)); - stream.match(rx_substitution_text); - token = 'variable-2'; - break; - case 1: - change(state, to_explicit, context(rx_substitution, 2)); - stream.match(rx_substitution_sepa); - break; - case 2: - change(state, to_explicit, context(rx_substitution, 3)); - stream.match(rx_substitution_name); - token = 'keyword'; - break; - case 3: - change(state, to_explicit, context(rx_substitution, 4)); - stream.match(rx_substitution_tail); - token = 'meta'; - break; - default: - change(state, to_normal); - } - } else if (phase(state) == rx_directive || - stream.match(rx_directive, false)) { - - switch (stage(state)) { - case 0: - change(state, to_explicit, context(rx_directive, 1)); - stream.match(rx_directive_name); - token = 'keyword'; - - if (stream.current().match(/^(?:math|latex)/)) - state.tmp_stex = true; - else if (stream.current().match(/^python/)) - state.tmp_py = true; - break; - case 1: - change(state, to_explicit, context(rx_directive, 2)); - stream.match(rx_directive_tail); - token = 'meta'; - - if (stream.match(/^latex\s*$/) || state.tmp_stex) { - state.tmp_stex = undefined; change(state, to_mode, { - mode: mode_stex, local: CodeMirror.startState(mode_stex) - }); - } - break; - case 2: - change(state, to_explicit, context(rx_directive, 3)); - if (stream.match(/^python\s*$/) || state.tmp_py) { - state.tmp_py = undefined; change(state, to_mode, { - mode: mode_python, local: CodeMirror.startState(mode_python) - }); - } - break; - default: - change(state, to_normal); - } - } else if (phase(state) == rx_link || stream.match(rx_link, false)) { - - switch (stage(state)) { - case 0: - change(state, to_explicit, context(rx_link, 1)); - stream.match(rx_link_head); - stream.match(rx_link_name); - token = 'link'; - break; - case 1: - change(state, to_explicit, context(rx_link, 2)); - stream.match(rx_link_tail); - token = 'meta'; - break; - default: - change(state, to_normal); - } - } else if (stream.match(rx_footnote)) { - change(state, to_normal); - token = 'quote'; - } else if (stream.match(rx_citation)) { - change(state, to_normal); - token = 'quote'; - } - - else { - stream.eatSpace(); - if (stream.eol()) { - change(state, to_normal); - } else { - stream.skipToEnd(); - change(state, to_comment); - token = 'comment'; - } - } - - return token; - } - - /////////////////////////////////////////////////////////////////////////// - /////////////////////////////////////////////////////////////////////////// - - function to_comment(stream, state) { - return as_block(stream, state, 'comment'); - } - - function to_verbatim(stream, state) { - return as_block(stream, state, 'meta'); - } - - function as_block(stream, state, token) { - if (stream.eol() || stream.eatSpace()) { - stream.skipToEnd(); - return token; - } else { - change(state, to_normal); - return null; - } - } - - /////////////////////////////////////////////////////////////////////////// - /////////////////////////////////////////////////////////////////////////// - - function to_mode(stream, state) { - - if (state.ctx.mode && state.ctx.local) { - - if (stream.sol()) { - if (!stream.eatSpace()) change(state, to_normal); - return null; - } - - return state.ctx.mode.token(stream, state.ctx.local); - } - - change(state, to_normal); - return null; - } - - /////////////////////////////////////////////////////////////////////////// - /////////////////////////////////////////////////////////////////////////// - - function context(phase, stage, mode, local) { - return {phase: phase, stage: stage, mode: mode, local: local}; - } - - function change(state, tok, ctx) { - state.tok = tok; - state.ctx = ctx || {}; - } - - function stage(state) { - return state.ctx.stage || 0; - } - - function phase(state) { - return state.ctx.phase; - } - - /////////////////////////////////////////////////////////////////////////// - /////////////////////////////////////////////////////////////////////////// - - return { - startState: function () { - return {tok: to_normal, ctx: context(undefined, 0)}; - }, - - copyState: function (state) { - var ctx = state.ctx, tmp = state.tmp; - if (ctx.local) - ctx = {mode: ctx.mode, local: CodeMirror.copyState(ctx.mode, ctx.local)}; - if (tmp) - tmp = {mode: tmp.mode, local: CodeMirror.copyState(tmp.mode, tmp.local)}; - return {tok: state.tok, ctx: ctx, tmp: tmp}; - }, - - innerMode: function (state) { - return state.tmp ? {state: state.tmp.local, mode: state.tmp.mode} - : state.ctx.mode ? {state: state.ctx.local, mode: state.ctx.mode} - : null; - }, - - token: function (stream, state) { - return state.tok(stream, state); - } - }; -}, 'python', 'stex'); - -/////////////////////////////////////////////////////////////////////////////// -/////////////////////////////////////////////////////////////////////////////// - -CodeMirror.defineMIME('text/x-rst', 'rst'); - -/////////////////////////////////////////////////////////////////////////////// -/////////////////////////////////////////////////////////////////////////////// - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/ruby/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/ruby/index.html deleted file mode 100644 index 97544ba..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/ruby/index.html +++ /dev/null @@ -1,183 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Ruby mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../../addon/edit/matchbrackets.js"></script> -<script src="ruby.js"></script> -<style> - .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;} - .cm-s-default span.cm-arrow { color: red; } - </style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Ruby</a> - </ul> -</div> - -<article> -<h2>Ruby mode</h2> -<form><textarea id="code" name="code"> -# Code from http://sandbox.mc.edu/~bennet/ruby/code/poly_rb.html -# -# This program evaluates polynomials. It first asks for the coefficients -# of a polynomial, which must be entered on one line, highest-order first. -# It then requests values of x and will compute the value of the poly for -# each x. It will repeatly ask for x values, unless you the user enters -# a blank line. It that case, it will ask for another polynomial. If the -# user types quit for either input, the program immediately exits. -# - -# -# Function to evaluate a polynomial at x. The polynomial is given -# as a list of coefficients, from the greatest to the least. -def polyval(x, coef) - sum = 0 - coef = coef.clone # Don't want to destroy the original - while true - sum += coef.shift # Add and remove the next coef - break if coef.empty? # If no more, done entirely. - sum *= x # This happens the right number of times. - end - return sum -end - -# -# Function to read a line containing a list of integers and return -# them as an array of integers. If the string conversion fails, it -# throws TypeError. If the input line is the word 'quit', then it -# converts it to an end-of-file exception -def readints(prompt) - # Read a line - print prompt - line = readline.chomp - raise EOFError.new if line == 'quit' # You can also use a real EOF. - - # Go through each item on the line, converting each one and adding it - # to retval. - retval = [ ] - for str in line.split(/\s+/) - if str =~ /^\-?\d+$/ - retval.push(str.to_i) - else - raise TypeError.new - end - end - - return retval -end - -# -# Take a coeff and an exponent and return the string representation, ignoring -# the sign of the coefficient. -def term_to_str(coef, exp) - ret = "" - - # Show coeff, unless it's 1 or at the right - coef = coef.abs - ret = coef.to_s unless coef == 1 && exp > 0 - ret += "x" if exp > 0 # x if exponent not 0 - ret += "^" + exp.to_s if exp > 1 # ^exponent, if > 1. - - return ret -end - -# -# Create a string of the polynomial in sort-of-readable form. -def polystr(p) - # Get the exponent of first coefficient, plus 1. - exp = p.length - - # Assign exponents to each term, making pairs of coeff and exponent, - # Then get rid of the zero terms. - p = (p.map { |c| exp -= 1; [ c, exp ] }).select { |p| p[0] != 0 } - - # If there's nothing left, it's a zero - return "0" if p.empty? - - # *** Now p is a non-empty list of [ coef, exponent ] pairs. *** - - # Convert the first term, preceded by a "-" if it's negative. - result = (if p[0][0] < 0 then "-" else "" end) + term_to_str(*p[0]) - - # Convert the rest of the terms, in each case adding the appropriate - # + or - separating them. - for term in p[1...p.length] - # Add the separator then the rep. of the term. - result += (if term[0] < 0 then " - " else " + " end) + - term_to_str(*term) - end - - return result -end - -# -# Run until some kind of endfile. -begin - # Repeat until an exception or quit gets us out. - while true - # Read a poly until it works. An EOF will except out of the - # program. - print "\n" - begin - poly = readints("Enter a polynomial coefficients: ") - rescue TypeError - print "Try again.\n" - retry - end - break if poly.empty? - - # Read and evaluate x values until the user types a blank line. - # Again, an EOF will except out of the pgm. - while true - # Request an integer. - print "Enter x value or blank line: " - x = readline.chomp - break if x == '' - raise EOFError.new if x == 'quit' - - # If it looks bad, let's try again. - if x !~ /^\-?\d+$/ - print "That doesn't look like an integer. Please try again.\n" - next - end - - # Convert to an integer and print the result. - x = x.to_i - print "p(x) = ", polystr(poly), "\n" - print "p(", x, ") = ", polyval(x, poly), "\n" - end - end -rescue EOFError - print "\n=== EOF ===\n" -rescue Interrupt, SignalException - print "\n=== Interrupted ===\n" -else - print "--- Bye ---\n" -end -</textarea></form> - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - mode: "text/x-ruby", - matchBrackets: true, - indentUnit: 4 - }); - </script> - - <p><strong>MIME types defined:</strong> <code>text/x-ruby</code>.</p> - - <p>Development of the CodeMirror Ruby mode was kindly sponsored - by <a href="http://ubalo.com/">Ubalo</a>.</p> - - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/ruby/ruby.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/ruby/ruby.js deleted file mode 100644 index 10cad8d..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/ruby/ruby.js +++ /dev/null @@ -1,285 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("ruby", function(config) { - function wordObj(words) { - var o = {}; - for (var i = 0, e = words.length; i < e; ++i) o[words[i]] = true; - return o; - } - var keywords = wordObj([ - "alias", "and", "BEGIN", "begin", "break", "case", "class", "def", "defined?", "do", "else", - "elsif", "END", "end", "ensure", "false", "for", "if", "in", "module", "next", "not", "or", - "redo", "rescue", "retry", "return", "self", "super", "then", "true", "undef", "unless", - "until", "when", "while", "yield", "nil", "raise", "throw", "catch", "fail", "loop", "callcc", - "caller", "lambda", "proc", "public", "protected", "private", "require", "load", - "require_relative", "extend", "autoload", "__END__", "__FILE__", "__LINE__", "__dir__" - ]); - var indentWords = wordObj(["def", "class", "case", "for", "while", "until", "module", "then", - "catch", "loop", "proc", "begin"]); - var dedentWords = wordObj(["end", "until"]); - var matching = {"[": "]", "{": "}", "(": ")"}; - var curPunc; - - function chain(newtok, stream, state) { - state.tokenize.push(newtok); - return newtok(stream, state); - } - - function tokenBase(stream, state) { - if (stream.sol() && stream.match("=begin") && stream.eol()) { - state.tokenize.push(readBlockComment); - return "comment"; - } - if (stream.eatSpace()) return null; - var ch = stream.next(), m; - if (ch == "`" || ch == "'" || ch == '"') { - return chain(readQuoted(ch, "string", ch == '"' || ch == "`"), stream, state); - } else if (ch == "/") { - var currentIndex = stream.current().length; - if (stream.skipTo("/")) { - var search_till = stream.current().length; - stream.backUp(stream.current().length - currentIndex); - var balance = 0; // balance brackets - while (stream.current().length < search_till) { - var chchr = stream.next(); - if (chchr == "(") balance += 1; - else if (chchr == ")") balance -= 1; - if (balance < 0) break; - } - stream.backUp(stream.current().length - currentIndex); - if (balance == 0) - return chain(readQuoted(ch, "string-2", true), stream, state); - } - return "operator"; - } else if (ch == "%") { - var style = "string", embed = true; - if (stream.eat("s")) style = "atom"; - else if (stream.eat(/[WQ]/)) style = "string"; - else if (stream.eat(/[r]/)) style = "string-2"; - else if (stream.eat(/[wxq]/)) { style = "string"; embed = false; } - var delim = stream.eat(/[^\w\s=]/); - if (!delim) return "operator"; - if (matching.propertyIsEnumerable(delim)) delim = matching[delim]; - return chain(readQuoted(delim, style, embed, true), stream, state); - } else if (ch == "#") { - stream.skipToEnd(); - return "comment"; - } else if (ch == "<" && (m = stream.match(/^<-?[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/))) { - return chain(readHereDoc(m[1]), stream, state); - } else if (ch == "0") { - if (stream.eat("x")) stream.eatWhile(/[\da-fA-F]/); - else if (stream.eat("b")) stream.eatWhile(/[01]/); - else stream.eatWhile(/[0-7]/); - return "number"; - } else if (/\d/.test(ch)) { - stream.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/); - return "number"; - } else if (ch == "?") { - while (stream.match(/^\\[CM]-/)) {} - if (stream.eat("\\")) stream.eatWhile(/\w/); - else stream.next(); - return "string"; - } else if (ch == ":") { - if (stream.eat("'")) return chain(readQuoted("'", "atom", false), stream, state); - if (stream.eat('"')) return chain(readQuoted('"', "atom", true), stream, state); - - // :> :>> :< :<< are valid symbols - if (stream.eat(/[\<\>]/)) { - stream.eat(/[\<\>]/); - return "atom"; - } - - // :+ :- :/ :* :| :& :! are valid symbols - if (stream.eat(/[\+\-\*\/\&\|\:\!]/)) { - return "atom"; - } - - // Symbols can't start by a digit - if (stream.eat(/[a-zA-Z$@_\xa1-\uffff]/)) { - stream.eatWhile(/[\w$\xa1-\uffff]/); - // Only one ? ! = is allowed and only as the last character - stream.eat(/[\?\!\=]/); - return "atom"; - } - return "operator"; - } else if (ch == "@" && stream.match(/^@?[a-zA-Z_\xa1-\uffff]/)) { - stream.eat("@"); - stream.eatWhile(/[\w\xa1-\uffff]/); - return "variable-2"; - } else if (ch == "$") { - if (stream.eat(/[a-zA-Z_]/)) { - stream.eatWhile(/[\w]/); - } else if (stream.eat(/\d/)) { - stream.eat(/\d/); - } else { - stream.next(); // Must be a special global like $: or $! - } - return "variable-3"; - } else if (/[a-zA-Z_\xa1-\uffff]/.test(ch)) { - stream.eatWhile(/[\w\xa1-\uffff]/); - stream.eat(/[\?\!]/); - if (stream.eat(":")) return "atom"; - return "ident"; - } else if (ch == "|" && (state.varList || state.lastTok == "{" || state.lastTok == "do")) { - curPunc = "|"; - return null; - } else if (/[\(\)\[\]{}\\;]/.test(ch)) { - curPunc = ch; - return null; - } else if (ch == "-" && stream.eat(">")) { - return "arrow"; - } else if (/[=+\-\/*:\.^%<>~|]/.test(ch)) { - var more = stream.eatWhile(/[=+\-\/*:\.^%<>~|]/); - if (ch == "." && !more) curPunc = "."; - return "operator"; - } else { - return null; - } - } - - function tokenBaseUntilBrace(depth) { - if (!depth) depth = 1; - return function(stream, state) { - if (stream.peek() == "}") { - if (depth == 1) { - state.tokenize.pop(); - return state.tokenize[state.tokenize.length-1](stream, state); - } else { - state.tokenize[state.tokenize.length - 1] = tokenBaseUntilBrace(depth - 1); - } - } else if (stream.peek() == "{") { - state.tokenize[state.tokenize.length - 1] = tokenBaseUntilBrace(depth + 1); - } - return tokenBase(stream, state); - }; - } - function tokenBaseOnce() { - var alreadyCalled = false; - return function(stream, state) { - if (alreadyCalled) { - state.tokenize.pop(); - return state.tokenize[state.tokenize.length-1](stream, state); - } - alreadyCalled = true; - return tokenBase(stream, state); - }; - } - function readQuoted(quote, style, embed, unescaped) { - return function(stream, state) { - var escaped = false, ch; - - if (state.context.type === 'read-quoted-paused') { - state.context = state.context.prev; - stream.eat("}"); - } - - while ((ch = stream.next()) != null) { - if (ch == quote && (unescaped || !escaped)) { - state.tokenize.pop(); - break; - } - if (embed && ch == "#" && !escaped) { - if (stream.eat("{")) { - if (quote == "}") { - state.context = {prev: state.context, type: 'read-quoted-paused'}; - } - state.tokenize.push(tokenBaseUntilBrace()); - break; - } else if (/[@\$]/.test(stream.peek())) { - state.tokenize.push(tokenBaseOnce()); - break; - } - } - escaped = !escaped && ch == "\\"; - } - return style; - }; - } - function readHereDoc(phrase) { - return function(stream, state) { - if (stream.match(phrase)) state.tokenize.pop(); - else stream.skipToEnd(); - return "string"; - }; - } - function readBlockComment(stream, state) { - if (stream.sol() && stream.match("=end") && stream.eol()) - state.tokenize.pop(); - stream.skipToEnd(); - return "comment"; - } - - return { - startState: function() { - return {tokenize: [tokenBase], - indented: 0, - context: {type: "top", indented: -config.indentUnit}, - continuedLine: false, - lastTok: null, - varList: false}; - }, - - token: function(stream, state) { - curPunc = null; - if (stream.sol()) state.indented = stream.indentation(); - var style = state.tokenize[state.tokenize.length-1](stream, state), kwtype; - var thisTok = curPunc; - if (style == "ident") { - var word = stream.current(); - style = state.lastTok == "." ? "property" - : keywords.propertyIsEnumerable(stream.current()) ? "keyword" - : /^[A-Z]/.test(word) ? "tag" - : (state.lastTok == "def" || state.lastTok == "class" || state.varList) ? "def" - : "variable"; - if (style == "keyword") { - thisTok = word; - if (indentWords.propertyIsEnumerable(word)) kwtype = "indent"; - else if (dedentWords.propertyIsEnumerable(word)) kwtype = "dedent"; - else if ((word == "if" || word == "unless") && stream.column() == stream.indentation()) - kwtype = "indent"; - else if (word == "do" && state.context.indented < state.indented) - kwtype = "indent"; - } - } - if (curPunc || (style && style != "comment")) state.lastTok = thisTok; - if (curPunc == "|") state.varList = !state.varList; - - if (kwtype == "indent" || /[\(\[\{]/.test(curPunc)) - state.context = {prev: state.context, type: curPunc || style, indented: state.indented}; - else if ((kwtype == "dedent" || /[\)\]\}]/.test(curPunc)) && state.context.prev) - state.context = state.context.prev; - - if (stream.eol()) - state.continuedLine = (curPunc == "\\" || style == "operator"); - return style; - }, - - indent: function(state, textAfter) { - if (state.tokenize[state.tokenize.length-1] != tokenBase) return 0; - var firstChar = textAfter && textAfter.charAt(0); - var ct = state.context; - var closing = ct.type == matching[firstChar] || - ct.type == "keyword" && /^(?:end|until|else|elsif|when|rescue)\b/.test(textAfter); - return ct.indented + (closing ? 0 : config.indentUnit) + - (state.continuedLine ? config.indentUnit : 0); - }, - - electricInput: /^\s*(?:end|rescue|\})$/, - lineComment: "#" - }; -}); - -CodeMirror.defineMIME("text/x-ruby", "ruby"); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/rust/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/rust/index.html deleted file mode 100644 index 1fe0ad1..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/rust/index.html +++ /dev/null @@ -1,64 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Rust mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../../addon/mode/simple.js"></script> -<script src="rust.js"></script> -<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Rust</a> - </ul> -</div> - -<article> -<h2>Rust mode</h2> - - -<div><textarea id="code" name="code"> -// Demo code. - -type foo<T> = int; -enum bar { - some(int, foo<float>), - none -} - -fn check_crate(x: int) { - let v = 10; - match foo { - 1 ... 3 { - print_foo(); - if x { - blah().to_string(); - } - } - (x, y) { "bye" } - _ { "hi" } - } -} -</textarea></div> - - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - lineNumbers: true, - lineWrapping: true, - indentUnit: 4, - mode: "rust" - }); - </script> - - <p><strong>MIME types defined:</strong> <code>text/x-rustsrc</code>.</p> - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/rust/rust.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/rust/rust.js deleted file mode 100644 index 8558b53..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/rust/rust.js +++ /dev/null @@ -1,71 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror"), require("../../addon/mode/simple")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror", "../../addon/mode/simple"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineSimpleMode("rust",{ - start: [ - // string and byte string - {regex: /b?"/, token: "string", next: "string"}, - // raw string and raw byte string - {regex: /b?r"/, token: "string", next: "string_raw"}, - {regex: /b?r#+"/, token: "string", next: "string_raw_hash"}, - // character - {regex: /'(?:[^'\\]|\\(?:[nrt0'"]|x[\da-fA-F]{2}|u\{[\da-fA-F]{6}\}))'/, token: "string-2"}, - // byte - {regex: /b'(?:[^']|\\(?:['\\nrt0]|x[\da-fA-F]{2}))'/, token: "string-2"}, - - {regex: /(?:(?:[0-9][0-9_]*)(?:(?:[Ee][+-]?[0-9_]+)|\.[0-9_]+(?:[Ee][+-]?[0-9_]+)?)(?:f32|f64)?)|(?:0(?:b[01_]+|(?:o[0-7_]+)|(?:x[0-9a-fA-F_]+))|(?:[0-9][0-9_]*))(?:u8|u16|u32|u64|i8|i16|i32|i64|isize|usize)?/, - token: "number"}, - {regex: /(let(?:\s+mut)?|fn|enum|mod|struct|type)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/, token: ["keyword", null, "def"]}, - {regex: /(?:abstract|alignof|as|box|break|continue|const|crate|do|else|enum|extern|fn|for|final|if|impl|in|loop|macro|match|mod|move|offsetof|override|priv|proc|pub|pure|ref|return|self|sizeof|static|struct|super|trait|type|typeof|unsafe|unsized|use|virtual|where|while|yield)\b/, token: "keyword"}, - {regex: /\b(?:Self|isize|usize|char|bool|u8|u16|u32|u64|f16|f32|f64|i8|i16|i32|i64|str|Option)\b/, token: "atom"}, - {regex: /\b(?:true|false|Some|None|Ok|Err)\b/, token: "builtin"}, - {regex: /\b(fn)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/, - token: ["keyword", null ,"def"]}, - {regex: /#!?\[.*\]/, token: "meta"}, - {regex: /\/\/.*/, token: "comment"}, - {regex: /\/\*/, token: "comment", next: "comment"}, - {regex: /[-+\/*=<>!]+/, token: "operator"}, - {regex: /[a-zA-Z_]\w*!/,token: "variable-3"}, - {regex: /[a-zA-Z_]\w*/, token: "variable"}, - {regex: /[\{\[\(]/, indent: true}, - {regex: /[\}\]\)]/, dedent: true} - ], - string: [ - {regex: /"/, token: "string", next: "start"}, - {regex: /(?:[^\\"]|\\(?:.|$))*/, token: "string"} - ], - string_raw: [ - {regex: /"/, token: "string", next: "start"}, - {regex: /[^"]*/, token: "string"} - ], - string_raw_hash: [ - {regex: /"#+/, token: "string", next: "start"}, - {regex: /(?:[^"]|"(?!#))*/, token: "string"} - ], - comment: [ - {regex: /.*?\*\//, token: "comment", next: "start"}, - {regex: /.*/, token: "comment"} - ], - meta: { - dontIndentStates: ["comment"], - electricInput: /^\s*\}$/, - blockCommentStart: "/*", - blockCommentEnd: "*/", - lineComment: "//", - fold: "brace" - } -}); - - -CodeMirror.defineMIME("text/x-rustsrc", "rust"); -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/rust/test.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/rust/test.js deleted file mode 100644 index eb256c4..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/rust/test.js +++ /dev/null @@ -1,39 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function() { - var mode = CodeMirror.getMode({indentUnit: 4}, "rust"); - function MT(name) {test.mode(name, mode, Array.prototype.slice.call(arguments, 1));} - - MT('integer_test', - '[number 123i32]', - '[number 123u32]', - '[number 123_u32]', - '[number 0xff_u8]', - '[number 0o70_i16]', - '[number 0b1111_1111_1001_0000_i32]', - '[number 0usize]'); - - MT('float_test', - '[number 123.0f64]', - '[number 0.1f64]', - '[number 0.1f32]', - '[number 12E+99_f64]'); - - MT('string-literals-test', - '[string "foo"]', - '[string r"foo"]', - '[string "\\"foo\\""]', - '[string r#""foo""#]', - '[string "foo #\\"# bar"]', - - '[string b"foo"]', - '[string br"foo"]', - '[string b"\\"foo\\""]', - '[string br#""foo""#]', - '[string br##"foo #" bar"##]', - - "[string-2 'h']", - "[string-2 b'h']"); - -})(); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/sas/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/sas/index.html deleted file mode 100644 index 636e065..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/sas/index.html +++ /dev/null @@ -1,81 +0,0 @@ -<!doctype html> - -<title>CodeMirror: SAS mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../xml/xml.js"></script> -<script src="sas.js"></script> -<style type="text/css"> - .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;} - .cm-s-default .cm-trailing-space-a:before, - .cm-s-default .cm-trailing-space-b:before {position: absolute; content: "\00B7"; color: #777;} - .cm-s-default .cm-trailing-space-new-line:before {position: absolute; content: "\21B5"; color: #777;} -</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">SAS</a> - </ul> -</div> - -<article> -<h2>SAS mode</h2> -<form><textarea id="code" name="code"> -libname foo "/tmp/foobar"; -%let count=1; - -/* Multi line -Comment -*/ -data _null_; - x=ranuni(); - * single comment; - x2=x**2; - sx=sqrt(x); - if x=x2 then put "x must be 1"; - else do; - put x=; - end; -run; - -/* embedded comment -* comment; -*/ - -proc glm data=sashelp.class; - class sex; - model weight = height sex; -run; - -proc sql; - select count(*) - from sashelp.class; - - create table foo as - select * from sashelp.class; - - select * - from foo; -quit; -</textarea></form> - -<script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - mode: 'sas', - lineNumbers: true - }); -</script> - -<p><strong>MIME types defined:</strong> <code>text/x-sas</code>.</p> - -</article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/sas/sas.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/sas/sas.js deleted file mode 100644 index a6109eb..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/sas/sas.js +++ /dev/null @@ -1,316 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - - -// SAS mode copyright (c) 2016 Jared Dean, SAS Institute -// Created by Jared Dean - -// TODO -// indent and de-indent -// identify macro variables - - -//Definitions -// comment -- text withing * ; or /* */ -// keyword -- SAS language variable -// variable -- macro variables starts with '&' or variable formats -// variable-2 -- DATA Step, proc, or macro names -// string -- text within ' ' or " " -// operator -- numeric operator + / - * ** le eq ge ... and so on -// builtin -- proc %macro data run mend -// atom -// def - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { - "use strict"; - - CodeMirror.defineMode("sas", function () { - var words = {}; - var isDoubleOperatorSym = { - eq: 'operator', - lt: 'operator', - le: 'operator', - gt: 'operator', - ge: 'operator', - "in": 'operator', - ne: 'operator', - or: 'operator' - }; - var isDoubleOperatorChar = /(<=|>=|!=|<>)/; - var isSingleOperatorChar = /[=\(:\),{}.*<>+\-\/^\[\]]/; - - // Takes a string of words separated by spaces and adds them as - // keys with the value of the first argument 'style' - function define(style, string, context) { - if (context) { - var split = string.split(' '); - for (var i = 0; i < split.length; i++) { - words[split[i]] = {style: style, state: context}; - } - } - } - //datastep - define('def', 'stack pgm view source debug nesting nolist', ['inDataStep']); - define('def', 'if while until for do do; end end; then else cancel', ['inDataStep']); - define('def', 'label format _n_ _error_', ['inDataStep']); - define('def', 'ALTER BUFNO BUFSIZE CNTLLEV COMPRESS DLDMGACTION ENCRYPT ENCRYPTKEY EXTENDOBSCOUNTER GENMAX GENNUM INDEX LABEL OBSBUF OUTREP PW PWREQ READ REPEMPTY REPLACE REUSE ROLE SORTEDBY SPILL TOBSNO TYPE WRITE FILECLOSE FIRSTOBS IN OBS POINTOBS WHERE WHEREUP IDXNAME IDXWHERE DROP KEEP RENAME', ['inDataStep']); - define('def', 'filevar finfo finv fipname fipnamel fipstate first firstobs floor', ['inDataStep']); - define('def', 'varfmt varinfmt varlabel varlen varname varnum varray varrayx vartype verify vformat vformatd vformatdx vformatn vformatnx vformatw vformatwx vformatx vinarray vinarrayx vinformat vinformatd vinformatdx vinformatn vinformatnx vinformatw vinformatwx vinformatx vlabel vlabelx vlength vlengthx vname vnamex vnferr vtype vtypex weekday', ['inDataStep']); - define('def', 'zipfips zipname zipnamel zipstate', ['inDataStep']); - define('def', 'put putc putn', ['inDataStep']); - define('builtin', 'data run', ['inDataStep']); - - - //proc - define('def', 'data', ['inProc']); - - // flow control for macros - define('def', '%if %end %end; %else %else; %do %do; %then', ['inMacro']); - - //everywhere - define('builtin', 'proc run; quit; libname filename %macro %mend option options', ['ALL']); - - define('def', 'footnote title libname ods', ['ALL']); - define('def', '%let %put %global %sysfunc %eval ', ['ALL']); - // automatic macro variables http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#a003167023.htm - define('variable', '&sysbuffr &syscc &syscharwidth &syscmd &sysdate &sysdate9 &sysday &sysdevic &sysdmg &sysdsn &sysencoding &sysenv &syserr &syserrortext &sysfilrc &syshostname &sysindex &sysinfo &sysjobid &syslast &syslckrc &syslibrc &syslogapplname &sysmacroname &sysmenv &sysmsg &sysncpu &sysodspath &sysparm &syspbuff &sysprocessid &sysprocessname &sysprocname &sysrc &sysscp &sysscpl &sysscpl &syssite &sysstartid &sysstartname &systcpiphostname &systime &sysuserid &sysver &sysvlong &sysvlong4 &syswarningtext', ['ALL']); - - //footnote[1-9]? title[1-9]? - - //options statement - define('def', 'source2 nosource2 page pageno pagesize', ['ALL']); - - //proc and datastep - define('def', '_all_ _character_ _cmd_ _freq_ _i_ _infile_ _last_ _msg_ _null_ _numeric_ _temporary_ _type_ abort abs addr adjrsq airy alpha alter altlog altprint and arcos array arsin as atan attrc attrib attrn authserver autoexec awscontrol awsdef awsmenu awsmenumerge awstitle backward band base betainv between blocksize blshift bnot bor brshift bufno bufsize bxor by byerr byline byte calculated call cards cards4 catcache cbufno cdf ceil center cexist change chisq cinv class cleanup close cnonct cntllev coalesce codegen col collate collin column comamid comaux1 comaux2 comdef compbl compound compress config continue convert cos cosh cpuid create cross crosstab css curobs cv daccdb daccdbsl daccsl daccsyd dacctab dairy datalines datalines4 datejul datepart datetime day dbcslang dbcstype dclose ddm delete delimiter depdb depdbsl depsl depsyd deptab dequote descending descript design= device dflang dhms dif digamma dim dinfo display distinct dkricond dkrocond dlm dnum do dopen doptname doptnum dread drop dropnote dsname dsnferr echo else emaildlg emailid emailpw emailserver emailsys encrypt end endsas engine eof eov erf erfc error errorcheck errors exist exp fappend fclose fcol fdelete feedback fetch fetchobs fexist fget file fileclose fileexist filefmt filename fileref fmterr fmtsearch fnonct fnote font fontalias fopen foptname foptnum force formatted formchar formdelim formdlim forward fpoint fpos fput fread frewind frlen from fsep fuzz fwrite gaminv gamma getoption getvarc getvarn go goto group gwindow hbar hbound helpenv helploc hms honorappearance hosthelp hostprint hour hpct html hvar ibessel ibr id if index indexc indexw initcmd initstmt inner input inputc inputn inr insert int intck intnx into intrr invaliddata irr is jbessel join juldate keep kentb kurtosis label lag last lbound leave left length levels lgamma lib library libref line linesize link list log log10 log2 logpdf logpmf logsdf lostcard lowcase lrecl ls macro macrogen maps mautosource max maxdec maxr mdy mean measures median memtype merge merror min minute missing missover mlogic mod mode model modify month mopen mort mprint mrecall msglevel msymtabmax mvarsize myy n nest netpv new news nmiss no nobatch nobs nocaps nocardimage nocenter nocharcode nocmdmac nocol nocum nodate nodbcs nodetails nodmr nodms nodmsbatch nodup nodupkey noduplicates noechoauto noequals noerrorabend noexitwindows nofullstimer noicon noimplmac noint nolist noloadlist nomiss nomlogic nomprint nomrecall nomsgcase nomstored nomultenvappl nonotes nonumber noobs noovp nopad nopercent noprint noprintinit normal norow norsasuser nosetinit nosplash nosymbolgen note notes notitle notitles notsorted noverbose noxsync noxwait npv null number numkeys nummousekeys nway obs on open order ordinal otherwise out outer outp= output over ovp p(1 5 10 25 50 75 90 95 99) pad pad2 paired parm parmcards path pathdll pathname pdf peek peekc pfkey pmf point poisson poke position printer probbeta probbnml probchi probf probgam probhypr probit probnegb probnorm probsig probt procleave prt ps pw pwreq qtr quote r ranbin rancau ranexp rangam range ranks rannor ranpoi rantbl rantri ranuni read recfm register regr remote remove rename repeat replace resolve retain return reuse reverse rewind right round rsquare rtf rtrace rtraceloc s s2 samploc sasautos sascontrol sasfrscr sasmsg sasmstore sasscript sasuser saving scan sdf second select selection separated seq serror set setcomm setot sign simple sin sinh siteinfo skewness skip sle sls sortedby sortpgm sortseq sortsize soundex spedis splashlocation split spool sqrt start std stderr stdin stfips stimer stname stnamel stop stopover subgroup subpopn substr sum sumwgt symbol symbolgen symget symput sysget sysin sysleave sysmsg sysparm sysprint sysprintfont sysprod sysrc system t table tables tan tanh tapeclose tbufsize terminal test then timepart tinv tnonct to today tol tooldef totper transformout translate trantab tranwrd trigamma trim trimn trunc truncover type unformatted uniform union until upcase update user usericon uss validate value var weight when where while wincharset window work workinit workterm write wsum xsync xwait yearcutoff yes yyq min max', ['inDataStep', 'inProc']); - define('operator', 'and not ', ['inDataStep', 'inProc']); - - // Main function - function tokenize(stream, state) { - // Finally advance the stream - var ch = stream.next(); - - // BLOCKCOMMENT - if (ch === '/' && stream.eat('*')) { - state.continueComment = true; - return "comment"; - } else if (state.continueComment === true) { // in comment block - //comment ends at the beginning of the line - if (ch === '*' && stream.peek() === '/') { - stream.next(); - state.continueComment = false; - } else if (stream.skipTo('*')) { //comment is potentially later in line - stream.skipTo('*'); - stream.next(); - if (stream.eat('/')) - state.continueComment = false; - } else { - stream.skipToEnd(); - } - return "comment"; - } - - // DoubleOperator match - var doubleOperator = ch + stream.peek(); - - // Match all line comments. - var myString = stream.string; - var myRegexp = /(?:^\s*|[;]\s*)(\*.*?);/ig; - var match = myRegexp.exec(myString); - if (match !== null) { - if (match.index === 0 && (stream.column() !== (match.index + match[0].length - 1))) { - stream.backUp(stream.column()); - stream.skipTo(';'); - stream.next(); - return 'comment'; - } else if (match.index + 1 < stream.column() && stream.column() < match.index + match[0].length - 1) { - // the ';' triggers the match so move one past it to start - // the comment block that is why match.index+1 - stream.backUp(stream.column() - match.index - 1); - stream.skipTo(';'); - stream.next(); - return 'comment'; - } - } else if ((ch === '"' || ch === "'") && !state.continueString) { - state.continueString = ch - return "string" - } else if (state.continueString) { - if (state.continueString == ch) { - state.continueString = null; - } else if (stream.skipTo(state.continueString)) { - // quote found on this line - stream.next(); - state.continueString = null; - } else { - stream.skipToEnd(); - } - return "string"; - } else if (state.continueString !== null && stream.eol()) { - stream.skipTo(state.continueString) || stream.skipToEnd(); - return "string"; - } else if (/[\d\.]/.test(ch)) { //find numbers - if (ch === ".") - stream.match(/^[0-9]+([eE][\-+]?[0-9]+)?/); - else if (ch === "0") - stream.match(/^[xX][0-9a-fA-F]+/) || stream.match(/^0[0-7]+/); - else - stream.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/); - return "number"; - } else if (isDoubleOperatorChar.test(ch + stream.peek())) { // TWO SYMBOL TOKENS - stream.next(); - return "operator"; - } else if (isDoubleOperatorSym.hasOwnProperty(doubleOperator)) { - stream.next(); - if (stream.peek() === ' ') - return isDoubleOperatorSym[doubleOperator.toLowerCase()]; - } else if (isSingleOperatorChar.test(ch)) { // SINGLE SYMBOL TOKENS - return "operator"; - } - - // Matches one whole word -- even if the word is a character - var word; - if (stream.match(/[%&;\w]+/, false) != null) { - word = ch + stream.match(/[%&;\w]+/, true); - if (/&/.test(word)) return 'variable' - } else { - word = ch; - } - // the word after DATA PROC or MACRO - if (state.nextword) { - stream.match(/[\w]+/); - // match memname.libname - if (stream.peek() === '.') stream.skipTo(' '); - state.nextword = false; - return 'variable-2'; - } - - word = word.toLowerCase() - // Are we in a DATA Step? - if (state.inDataStep) { - if (word === 'run;' || stream.match(/run\s;/)) { - state.inDataStep = false; - return 'builtin'; - } - // variable formats - if ((word) && stream.next() === '.') { - //either a format or libname.memname - if (/\w/.test(stream.peek())) return 'variable-2'; - else return 'variable'; - } - // do we have a DATA Step keyword - if (word && words.hasOwnProperty(word) && - (words[word].state.indexOf("inDataStep") !== -1 || - words[word].state.indexOf("ALL") !== -1)) { - //backup to the start of the word - if (stream.start < stream.pos) - stream.backUp(stream.pos - stream.start); - //advance the length of the word and return - for (var i = 0; i < word.length; ++i) stream.next(); - return words[word].style; - } - } - // Are we in an Proc statement? - if (state.inProc) { - if (word === 'run;' || word === 'quit;') { - state.inProc = false; - return 'builtin'; - } - // do we have a proc keyword - if (word && words.hasOwnProperty(word) && - (words[word].state.indexOf("inProc") !== -1 || - words[word].state.indexOf("ALL") !== -1)) { - stream.match(/[\w]+/); - return words[word].style; - } - } - // Are we in a Macro statement? - if (state.inMacro) { - if (word === '%mend') { - if (stream.peek() === ';') stream.next(); - state.inMacro = false; - return 'builtin'; - } - if (word && words.hasOwnProperty(word) && - (words[word].state.indexOf("inMacro") !== -1 || - words[word].state.indexOf("ALL") !== -1)) { - stream.match(/[\w]+/); - return words[word].style; - } - - return 'atom'; - } - // Do we have Keywords specific words? - if (word && words.hasOwnProperty(word)) { - // Negates the initial next() - stream.backUp(1); - // Actually move the stream - stream.match(/[\w]+/); - if (word === 'data' && /=/.test(stream.peek()) === false) { - state.inDataStep = true; - state.nextword = true; - return 'builtin'; - } - if (word === 'proc') { - state.inProc = true; - state.nextword = true; - return 'builtin'; - } - if (word === '%macro') { - state.inMacro = true; - state.nextword = true; - return 'builtin'; - } - if (/title[1-9]/.test(word)) return 'def'; - - if (word === 'footnote') { - stream.eat(/[1-9]/); - return 'def'; - } - - // Returns their value as state in the prior define methods - if (state.inDataStep === true && words[word].state.indexOf("inDataStep") !== -1) - return words[word].style; - if (state.inProc === true && words[word].state.indexOf("inProc") !== -1) - return words[word].style; - if (state.inMacro === true && words[word].state.indexOf("inMacro") !== -1) - return words[word].style; - if (words[word].state.indexOf("ALL") !== -1) - return words[word].style; - return null; - } - // Unrecognized syntax - return null; - } - - return { - startState: function () { - return { - inDataStep: false, - inProc: false, - inMacro: false, - nextword: false, - continueString: null, - continueComment: false - }; - }, - token: function (stream, state) { - // Strip the spaces, but regex will account for them either way - if (stream.eatSpace()) return null; - // Go through the main process - return tokenize(stream, state); - }, - - blockCommentStart: "/*", - blockCommentEnd: "*/" - }; - - }); - - CodeMirror.defineMIME("text/x-sas", "sas"); -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/sass/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/sass/index.html deleted file mode 100644 index 9f4a790..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/sass/index.html +++ /dev/null @@ -1,66 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Sass mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../../addon/edit/matchbrackets.js"></script> -<script src="sass.js"></script> -<style>.CodeMirror {border: 1px solid #ddd; font-size:12px; height: 400px}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Sass</a> - </ul> -</div> - -<article> -<h2>Sass mode</h2> -<form><textarea id="code" name="code">// Variable Definitions - -$page-width: 800px -$sidebar-width: 200px -$primary-color: #eeeeee - -// Global Attributes - -body - font: - family: sans-serif - size: 30em - weight: bold - -// Scoped Styles - -#contents - width: $page-width - #sidebar - float: right - width: $sidebar-width - #main - width: $page-width - $sidebar-width - background: $primary-color - h2 - color: blue - -#footer - height: 200px -</textarea></form> - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - lineNumbers : true, - matchBrackets : true - }); - </script> - - <p><strong>MIME types defined:</strong> <code>text/x-sass</code>.</p> - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/sass/sass.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/sass/sass.js deleted file mode 100644 index 6973ece..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/sass/sass.js +++ /dev/null @@ -1,414 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("sass", function(config) { - function tokenRegexp(words) { - return new RegExp("^" + words.join("|")); - } - - var keywords = ["true", "false", "null", "auto"]; - var keywordsRegexp = new RegExp("^" + keywords.join("|")); - - var operators = ["\\(", "\\)", "=", ">", "<", "==", ">=", "<=", "\\+", "-", - "\\!=", "/", "\\*", "%", "and", "or", "not", ";","\\{","\\}",":"]; - var opRegexp = tokenRegexp(operators); - - var pseudoElementsRegexp = /^::?[a-zA-Z_][\w\-]*/; - - function urlTokens(stream, state) { - var ch = stream.peek(); - - if (ch === ")") { - stream.next(); - state.tokenizer = tokenBase; - return "operator"; - } else if (ch === "(") { - stream.next(); - stream.eatSpace(); - - return "operator"; - } else if (ch === "'" || ch === '"') { - state.tokenizer = buildStringTokenizer(stream.next()); - return "string"; - } else { - state.tokenizer = buildStringTokenizer(")", false); - return "string"; - } - } - function comment(indentation, multiLine) { - return function(stream, state) { - if (stream.sol() && stream.indentation() <= indentation) { - state.tokenizer = tokenBase; - return tokenBase(stream, state); - } - - if (multiLine && stream.skipTo("*/")) { - stream.next(); - stream.next(); - state.tokenizer = tokenBase; - } else { - stream.skipToEnd(); - } - - return "comment"; - }; - } - - function buildStringTokenizer(quote, greedy) { - if (greedy == null) { greedy = true; } - - function stringTokenizer(stream, state) { - var nextChar = stream.next(); - var peekChar = stream.peek(); - var previousChar = stream.string.charAt(stream.pos-2); - - var endingString = ((nextChar !== "\\" && peekChar === quote) || (nextChar === quote && previousChar !== "\\")); - - if (endingString) { - if (nextChar !== quote && greedy) { stream.next(); } - state.tokenizer = tokenBase; - return "string"; - } else if (nextChar === "#" && peekChar === "{") { - state.tokenizer = buildInterpolationTokenizer(stringTokenizer); - stream.next(); - return "operator"; - } else { - return "string"; - } - } - - return stringTokenizer; - } - - function buildInterpolationTokenizer(currentTokenizer) { - return function(stream, state) { - if (stream.peek() === "}") { - stream.next(); - state.tokenizer = currentTokenizer; - return "operator"; - } else { - return tokenBase(stream, state); - } - }; - } - - function indent(state) { - if (state.indentCount == 0) { - state.indentCount++; - var lastScopeOffset = state.scopes[0].offset; - var currentOffset = lastScopeOffset + config.indentUnit; - state.scopes.unshift({ offset:currentOffset }); - } - } - - function dedent(state) { - if (state.scopes.length == 1) return; - - state.scopes.shift(); - } - - function tokenBase(stream, state) { - var ch = stream.peek(); - - // Comment - if (stream.match("/*")) { - state.tokenizer = comment(stream.indentation(), true); - return state.tokenizer(stream, state); - } - if (stream.match("//")) { - state.tokenizer = comment(stream.indentation(), false); - return state.tokenizer(stream, state); - } - - // Interpolation - if (stream.match("#{")) { - state.tokenizer = buildInterpolationTokenizer(tokenBase); - return "operator"; - } - - // Strings - if (ch === '"' || ch === "'") { - stream.next(); - state.tokenizer = buildStringTokenizer(ch); - return "string"; - } - - if(!state.cursorHalf){// state.cursorHalf === 0 - // first half i.e. before : for key-value pairs - // including selectors - - if (ch === ".") { - stream.next(); - if (stream.match(/^[\w-]+/)) { - indent(state); - return "atom"; - } else if (stream.peek() === "#") { - indent(state); - return "atom"; - } - } - - if (ch === "#") { - stream.next(); - // ID selectors - if (stream.match(/^[\w-]+/)) { - indent(state); - return "atom"; - } - if (stream.peek() === "#") { - indent(state); - return "atom"; - } - } - - // Variables - if (ch === "$") { - stream.next(); - stream.eatWhile(/[\w-]/); - return "variable-2"; - } - - // Numbers - if (stream.match(/^-?[0-9\.]+/)) - return "number"; - - // Units - if (stream.match(/^(px|em|in)\b/)) - return "unit"; - - if (stream.match(keywordsRegexp)) - return "keyword"; - - if (stream.match(/^url/) && stream.peek() === "(") { - state.tokenizer = urlTokens; - return "atom"; - } - - if (ch === "=") { - // Match shortcut mixin definition - if (stream.match(/^=[\w-]+/)) { - indent(state); - return "meta"; - } - } - - if (ch === "+") { - // Match shortcut mixin definition - if (stream.match(/^\+[\w-]+/)){ - return "variable-3"; - } - } - - if(ch === "@"){ - if(stream.match(/@extend/)){ - if(!stream.match(/\s*[\w]/)) - dedent(state); - } - } - - - // Indent Directives - if (stream.match(/^@(else if|if|media|else|for|each|while|mixin|function)/)) { - indent(state); - return "meta"; - } - - // Other Directives - if (ch === "@") { - stream.next(); - stream.eatWhile(/[\w-]/); - return "meta"; - } - - if (stream.eatWhile(/[\w-]/)){ - if(stream.match(/ *: *[\w-\+\$#!\("']/,false)){ - return "property"; - } - else if(stream.match(/ *:/,false)){ - indent(state); - state.cursorHalf = 1; - return "atom"; - } - else if(stream.match(/ *,/,false)){ - return "atom"; - } - else{ - indent(state); - return "atom"; - } - } - - if(ch === ":"){ - if (stream.match(pseudoElementsRegexp)){ // could be a pseudo-element - return "keyword"; - } - stream.next(); - state.cursorHalf=1; - return "operator"; - } - - } // cursorHalf===0 ends here - else{ - - if (ch === "#") { - stream.next(); - // Hex numbers - if (stream.match(/[0-9a-fA-F]{6}|[0-9a-fA-F]{3}/)){ - if(!stream.peek()){ - state.cursorHalf = 0; - } - return "number"; - } - } - - // Numbers - if (stream.match(/^-?[0-9\.]+/)){ - if(!stream.peek()){ - state.cursorHalf = 0; - } - return "number"; - } - - // Units - if (stream.match(/^(px|em|in)\b/)){ - if(!stream.peek()){ - state.cursorHalf = 0; - } - return "unit"; - } - - if (stream.match(keywordsRegexp)){ - if(!stream.peek()){ - state.cursorHalf = 0; - } - return "keyword"; - } - - if (stream.match(/^url/) && stream.peek() === "(") { - state.tokenizer = urlTokens; - if(!stream.peek()){ - state.cursorHalf = 0; - } - return "atom"; - } - - // Variables - if (ch === "$") { - stream.next(); - stream.eatWhile(/[\w-]/); - if(!stream.peek()){ - state.cursorHalf = 0; - } - return "variable-3"; - } - - // bang character for !important, !default, etc. - if (ch === "!") { - stream.next(); - if(!stream.peek()){ - state.cursorHalf = 0; - } - return stream.match(/^[\w]+/) ? "keyword": "operator"; - } - - if (stream.match(opRegexp)){ - if(!stream.peek()){ - state.cursorHalf = 0; - } - return "operator"; - } - - // attributes - if (stream.eatWhile(/[\w-]/)) { - if(!stream.peek()){ - state.cursorHalf = 0; - } - return "attribute"; - } - - //stream.eatSpace(); - if(!stream.peek()){ - state.cursorHalf = 0; - return null; - } - - } // else ends here - - if (stream.match(opRegexp)) - return "operator"; - - // If we haven't returned by now, we move 1 character - // and return an error - stream.next(); - return null; - } - - function tokenLexer(stream, state) { - if (stream.sol()) state.indentCount = 0; - var style = state.tokenizer(stream, state); - var current = stream.current(); - - if (current === "@return" || current === "}"){ - dedent(state); - } - - if (style !== null) { - var startOfToken = stream.pos - current.length; - - var withCurrentIndent = startOfToken + (config.indentUnit * state.indentCount); - - var newScopes = []; - - for (var i = 0; i < state.scopes.length; i++) { - var scope = state.scopes[i]; - - if (scope.offset <= withCurrentIndent) - newScopes.push(scope); - } - - state.scopes = newScopes; - } - - - return style; - } - - return { - startState: function() { - return { - tokenizer: tokenBase, - scopes: [{offset: 0, type: "sass"}], - indentCount: 0, - cursorHalf: 0, // cursor half tells us if cursor lies after (1) - // or before (0) colon (well... more or less) - definedVars: [], - definedMixins: [] - }; - }, - token: function(stream, state) { - var style = tokenLexer(stream, state); - - state.lastToken = { style: style, content: stream.current() }; - - return style; - }, - - indent: function(state) { - return state.scopes[0].offset; - } - }; -}); - -CodeMirror.defineMIME("text/x-sass", "sass"); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/scheme/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/scheme/index.html deleted file mode 100644 index 04d5c6a..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/scheme/index.html +++ /dev/null @@ -1,77 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Scheme mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="scheme.js"></script> -<style>.CodeMirror {background: #f8f8f8;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Scheme</a> - </ul> -</div> - -<article> -<h2>Scheme mode</h2> -<form><textarea id="code" name="code"> -; See if the input starts with a given symbol. -(define (match-symbol input pattern) - (cond ((null? (remain input)) #f) - ((eqv? (car (remain input)) pattern) (r-cdr input)) - (else #f))) - -; Allow the input to start with one of a list of patterns. -(define (match-or input pattern) - (cond ((null? pattern) #f) - ((match-pattern input (car pattern))) - (else (match-or input (cdr pattern))))) - -; Allow a sequence of patterns. -(define (match-seq input pattern) - (if (null? pattern) - input - (let ((match (match-pattern input (car pattern)))) - (if match (match-seq match (cdr pattern)) #f)))) - -; Match with the pattern but no problem if it does not match. -(define (match-opt input pattern) - (let ((match (match-pattern input (car pattern)))) - (if match match input))) - -; Match anything (other than '()), until pattern is found. The rather -; clumsy form of requiring an ending pattern is needed to decide where -; the end of the match is. If none is given, this will match the rest -; of the sentence. -(define (match-any input pattern) - (cond ((null? (remain input)) #f) - ((null? pattern) (f-cons (remain input) (clear-remain input))) - (else - (let ((accum-any (collector))) - (define (match-pattern-any input pattern) - (cond ((null? (remain input)) #f) - (else (accum-any (car (remain input))) - (cond ((match-pattern (r-cdr input) pattern)) - (else (match-pattern-any (r-cdr input) pattern)))))) - (let ((retval (match-pattern-any input (car pattern)))) - (if retval - (f-cons (accum-any) retval) - #f)))))) -</textarea></form> - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), {}); - </script> - - <p><strong>MIME types defined:</strong> <code>text/x-scheme</code>.</p> - - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/scheme/scheme.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/scheme/scheme.js deleted file mode 100644 index 2234645..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/scheme/scheme.js +++ /dev/null @@ -1,249 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -/** - * Author: Koh Zi Han, based on implementation by Koh Zi Chun - */ - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("scheme", function () { - var BUILTIN = "builtin", COMMENT = "comment", STRING = "string", - ATOM = "atom", NUMBER = "number", BRACKET = "bracket"; - var INDENT_WORD_SKIP = 2; - - function makeKeywords(str) { - var obj = {}, words = str.split(" "); - for (var i = 0; i < words.length; ++i) obj[words[i]] = true; - return obj; - } - - var keywords = makeKeywords("λ case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt #f floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? string=? string>=? string>? string? substring symbol->string symbol? #t tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"); - var indentKeys = makeKeywords("define let letrec let* lambda"); - - function stateStack(indent, type, prev) { // represents a state stack object - this.indent = indent; - this.type = type; - this.prev = prev; - } - - function pushStack(state, indent, type) { - state.indentStack = new stateStack(indent, type, state.indentStack); - } - - function popStack(state) { - state.indentStack = state.indentStack.prev; - } - - var binaryMatcher = new RegExp(/^(?:[-+]i|[-+][01]+#*(?:\/[01]+#*)?i|[-+]?[01]+#*(?:\/[01]+#*)?@[-+]?[01]+#*(?:\/[01]+#*)?|[-+]?[01]+#*(?:\/[01]+#*)?[-+](?:[01]+#*(?:\/[01]+#*)?)?i|[-+]?[01]+#*(?:\/[01]+#*)?)(?=[()\s;"]|$)/i); - var octalMatcher = new RegExp(/^(?:[-+]i|[-+][0-7]+#*(?:\/[0-7]+#*)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?@[-+]?[0-7]+#*(?:\/[0-7]+#*)?|[-+]?[0-7]+#*(?:\/[0-7]+#*)?[-+](?:[0-7]+#*(?:\/[0-7]+#*)?)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?)(?=[()\s;"]|$)/i); - var hexMatcher = new RegExp(/^(?:[-+]i|[-+][\da-f]+#*(?:\/[\da-f]+#*)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?@[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?[-+](?:[\da-f]+#*(?:\/[\da-f]+#*)?)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?)(?=[()\s;"]|$)/i); - var decimalMatcher = new RegExp(/^(?:[-+]i|[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)i|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)@[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)?i|(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*))(?=[()\s;"]|$)/i); - - function isBinaryNumber (stream) { - return stream.match(binaryMatcher); - } - - function isOctalNumber (stream) { - return stream.match(octalMatcher); - } - - function isDecimalNumber (stream, backup) { - if (backup === true) { - stream.backUp(1); - } - return stream.match(decimalMatcher); - } - - function isHexNumber (stream) { - return stream.match(hexMatcher); - } - - return { - startState: function () { - return { - indentStack: null, - indentation: 0, - mode: false, - sExprComment: false - }; - }, - - token: function (stream, state) { - if (state.indentStack == null && stream.sol()) { - // update indentation, but only if indentStack is empty - state.indentation = stream.indentation(); - } - - // skip spaces - if (stream.eatSpace()) { - return null; - } - var returnType = null; - - switch(state.mode){ - case "string": // multi-line string parsing mode - var next, escaped = false; - while ((next = stream.next()) != null) { - if (next == "\"" && !escaped) { - - state.mode = false; - break; - } - escaped = !escaped && next == "\\"; - } - returnType = STRING; // continue on in scheme-string mode - break; - case "comment": // comment parsing mode - var next, maybeEnd = false; - while ((next = stream.next()) != null) { - if (next == "#" && maybeEnd) { - - state.mode = false; - break; - } - maybeEnd = (next == "|"); - } - returnType = COMMENT; - break; - case "s-expr-comment": // s-expr commenting mode - state.mode = false; - if(stream.peek() == "(" || stream.peek() == "["){ - // actually start scheme s-expr commenting mode - state.sExprComment = 0; - }else{ - // if not we just comment the entire of the next token - stream.eatWhile(/[^/s]/); // eat non spaces - returnType = COMMENT; - break; - } - default: // default parsing mode - var ch = stream.next(); - - if (ch == "\"") { - state.mode = "string"; - returnType = STRING; - - } else if (ch == "'") { - returnType = ATOM; - } else if (ch == '#') { - if (stream.eat("|")) { // Multi-line comment - state.mode = "comment"; // toggle to comment mode - returnType = COMMENT; - } else if (stream.eat(/[tf]/i)) { // #t/#f (atom) - returnType = ATOM; - } else if (stream.eat(';')) { // S-Expr comment - state.mode = "s-expr-comment"; - returnType = COMMENT; - } else { - var numTest = null, hasExactness = false, hasRadix = true; - if (stream.eat(/[ei]/i)) { - hasExactness = true; - } else { - stream.backUp(1); // must be radix specifier - } - if (stream.match(/^#b/i)) { - numTest = isBinaryNumber; - } else if (stream.match(/^#o/i)) { - numTest = isOctalNumber; - } else if (stream.match(/^#x/i)) { - numTest = isHexNumber; - } else if (stream.match(/^#d/i)) { - numTest = isDecimalNumber; - } else if (stream.match(/^[-+0-9.]/, false)) { - hasRadix = false; - numTest = isDecimalNumber; - // re-consume the intial # if all matches failed - } else if (!hasExactness) { - stream.eat('#'); - } - if (numTest != null) { - if (hasRadix && !hasExactness) { - // consume optional exactness after radix - stream.match(/^#[ei]/i); - } - if (numTest(stream)) - returnType = NUMBER; - } - } - } else if (/^[-+0-9.]/.test(ch) && isDecimalNumber(stream, true)) { // match non-prefixed number, must be decimal - returnType = NUMBER; - } else if (ch == ";") { // comment - stream.skipToEnd(); // rest of the line is a comment - returnType = COMMENT; - } else if (ch == "(" || ch == "[") { - var keyWord = ''; var indentTemp = stream.column(), letter; - /** - Either - (indent-word .. - (non-indent-word .. - (;something else, bracket, etc. - */ - - while ((letter = stream.eat(/[^\s\(\[\;\)\]]/)) != null) { - keyWord += letter; - } - - if (keyWord.length > 0 && indentKeys.propertyIsEnumerable(keyWord)) { // indent-word - - pushStack(state, indentTemp + INDENT_WORD_SKIP, ch); - } else { // non-indent word - // we continue eating the spaces - stream.eatSpace(); - if (stream.eol() || stream.peek() == ";") { - // nothing significant after - // we restart indentation 1 space after - pushStack(state, indentTemp + 1, ch); - } else { - pushStack(state, indentTemp + stream.current().length, ch); // else we match - } - } - stream.backUp(stream.current().length - 1); // undo all the eating - - if(typeof state.sExprComment == "number") state.sExprComment++; - - returnType = BRACKET; - } else if (ch == ")" || ch == "]") { - returnType = BRACKET; - if (state.indentStack != null && state.indentStack.type == (ch == ")" ? "(" : "[")) { - popStack(state); - - if(typeof state.sExprComment == "number"){ - if(--state.sExprComment == 0){ - returnType = COMMENT; // final closing bracket - state.sExprComment = false; // turn off s-expr commenting mode - } - } - } - } else { - stream.eatWhile(/[\w\$_\-!$%&*+\.\/:<=>?@\^~]/); - - if (keywords && keywords.propertyIsEnumerable(stream.current())) { - returnType = BUILTIN; - } else returnType = "variable"; - } - } - return (typeof state.sExprComment == "number") ? COMMENT : returnType; - }, - - indent: function (state) { - if (state.indentStack == null) return state.indentation; - return state.indentStack.indent; - }, - - closeBrackets: {pairs: "()[]{}\"\""}, - lineComment: ";;" - }; -}); - -CodeMirror.defineMIME("text/x-scheme", "scheme"); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/shell/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/shell/index.html deleted file mode 100644 index 0b56300..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/shell/index.html +++ /dev/null @@ -1,66 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Shell mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel=stylesheet href=../../lib/codemirror.css> -<script src=../../lib/codemirror.js></script> -<script src="../../addon/edit/matchbrackets.js"></script> -<script src=shell.js></script> -<style type=text/css> - .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;} -</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Shell</a> - </ul> -</div> - -<article> -<h2>Shell mode</h2> - - -<textarea id=code> -#!/bin/bash - -# clone the repository -git clone http://github.com/garden/tree - -# generate HTTPS credentials -cd tree -openssl genrsa -aes256 -out https.key 1024 -openssl req -new -nodes -key https.key -out https.csr -openssl x509 -req -days 365 -in https.csr -signkey https.key -out https.crt -cp https.key{,.orig} -openssl rsa -in https.key.orig -out https.key - -# start the server in HTTPS mode -cd web -sudo node ../server.js 443 'yes' >> ../node.log & - -# here is how to stop the server -for pid in `ps aux | grep 'node ../server.js' | awk '{print $2}'` ; do - sudo kill -9 $pid 2> /dev/null -done - -exit 0</textarea> - -<script> - var editor = CodeMirror.fromTextArea(document.getElementById('code'), { - mode: 'shell', - lineNumbers: true, - matchBrackets: true - }); -</script> - -<p><strong>MIME types defined:</strong> <code>text/x-sh</code>.</p> -</article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/shell/shell.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/shell/shell.js deleted file mode 100644 index a684e8c..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/shell/shell.js +++ /dev/null @@ -1,139 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode('shell', function() { - - var words = {}; - function define(style, string) { - var split = string.split(' '); - for(var i = 0; i < split.length; i++) { - words[split[i]] = style; - } - }; - - // Atoms - define('atom', 'true false'); - - // Keywords - define('keyword', 'if then do else elif while until for in esac fi fin ' + - 'fil done exit set unset export function'); - - // Commands - define('builtin', 'ab awk bash beep cat cc cd chown chmod chroot clear cp ' + - 'curl cut diff echo find gawk gcc get git grep kill killall ln ls make ' + - 'mkdir openssl mv nc node npm ping ps restart rm rmdir sed service sh ' + - 'shopt shred source sort sleep ssh start stop su sudo tee telnet top ' + - 'touch vi vim wall wc wget who write yes zsh'); - - function tokenBase(stream, state) { - if (stream.eatSpace()) return null; - - var sol = stream.sol(); - var ch = stream.next(); - - if (ch === '\\') { - stream.next(); - return null; - } - if (ch === '\'' || ch === '"' || ch === '`') { - state.tokens.unshift(tokenString(ch)); - return tokenize(stream, state); - } - if (ch === '#') { - if (sol && stream.eat('!')) { - stream.skipToEnd(); - return 'meta'; // 'comment'? - } - stream.skipToEnd(); - return 'comment'; - } - if (ch === '$') { - state.tokens.unshift(tokenDollar); - return tokenize(stream, state); - } - if (ch === '+' || ch === '=') { - return 'operator'; - } - if (ch === '-') { - stream.eat('-'); - stream.eatWhile(/\w/); - return 'attribute'; - } - if (/\d/.test(ch)) { - stream.eatWhile(/\d/); - if(stream.eol() || !/\w/.test(stream.peek())) { - return 'number'; - } - } - stream.eatWhile(/[\w-]/); - var cur = stream.current(); - if (stream.peek() === '=' && /\w+/.test(cur)) return 'def'; - return words.hasOwnProperty(cur) ? words[cur] : null; - } - - function tokenString(quote) { - return function(stream, state) { - var next, end = false, escaped = false; - while ((next = stream.next()) != null) { - if (next === quote && !escaped) { - end = true; - break; - } - if (next === '$' && !escaped && quote !== '\'') { - escaped = true; - stream.backUp(1); - state.tokens.unshift(tokenDollar); - break; - } - escaped = !escaped && next === '\\'; - } - if (end || !escaped) { - state.tokens.shift(); - } - return (quote === '`' || quote === ')' ? 'quote' : 'string'); - }; - }; - - var tokenDollar = function(stream, state) { - if (state.tokens.length > 1) stream.eat('$'); - var ch = stream.next(), hungry = /\w/; - if (ch === '{') hungry = /[^}]/; - if (ch === '(') { - state.tokens[0] = tokenString(')'); - return tokenize(stream, state); - } - if (!/\d/.test(ch)) { - stream.eatWhile(hungry); - stream.eat('}'); - } - state.tokens.shift(); - return 'def'; - }; - - function tokenize(stream, state) { - return (state.tokens[0] || tokenBase) (stream, state); - }; - - return { - startState: function() {return {tokens:[]};}, - token: function(stream, state) { - return tokenize(stream, state); - }, - lineComment: '#', - fold: "brace" - }; -}); - -CodeMirror.defineMIME('text/x-sh', 'shell'); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/shell/test.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/shell/test.js deleted file mode 100644 index a413b5a..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/shell/test.js +++ /dev/null @@ -1,58 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function() { - var mode = CodeMirror.getMode({}, "shell"); - function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); } - - MT("var", - "text [def $var] text"); - MT("varBraces", - "text[def ${var}]text"); - MT("varVar", - "text [def $a$b] text"); - MT("varBracesVarBraces", - "text[def ${a}${b}]text"); - - MT("singleQuotedVar", - "[string 'text $var text']"); - MT("singleQuotedVarBraces", - "[string 'text ${var} text']"); - - MT("doubleQuotedVar", - '[string "text ][def $var][string text"]'); - MT("doubleQuotedVarBraces", - '[string "text][def ${var}][string text"]'); - MT("doubleQuotedVarPunct", - '[string "text ][def $@][string text"]'); - MT("doubleQuotedVarVar", - '[string "][def $a$b][string "]'); - MT("doubleQuotedVarBracesVarBraces", - '[string "][def ${a}${b}][string "]'); - - MT("notAString", - "text\\'text"); - MT("escapes", - "outside\\'\\\"\\`\\\\[string \"inside\\`\\'\\\"\\\\`\\$notAVar\"]outside\\$\\(notASubShell\\)"); - - MT("subshell", - "[builtin echo] [quote $(whoami)] s log, stardate [quote `date`]."); - MT("doubleQuotedSubshell", - "[builtin echo] [string \"][quote $(whoami)][string 's log, stardate `date`.\"]"); - - MT("hashbang", - "[meta #!/bin/bash]"); - MT("comment", - "text [comment # Blurb]"); - - MT("numbers", - "[number 0] [number 1] [number 2]"); - MT("keywords", - "[keyword while] [atom true]; [keyword do]", - " [builtin sleep] [number 3]", - "[keyword done]"); - MT("options", - "[builtin ls] [attribute -l] [attribute --human-readable]"); - MT("operator", - "[def var][operator =]value"); -})(); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/sieve/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/sieve/index.html deleted file mode 100644 index 6f029b6..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/sieve/index.html +++ /dev/null @@ -1,93 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Sieve (RFC5228) mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="sieve.js"></script> -<style>.CodeMirror {background: #f8f8f8;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Sieve (RFC5228)</a> - </ul> -</div> - -<article> -<h2>Sieve (RFC5228) mode</h2> -<form><textarea id="code" name="code"> -# -# Example Sieve Filter -# Declare any optional features or extension used by the script -# - -require ["fileinto", "reject"]; - -# -# Reject any large messages (note that the four leading dots get -# "stuffed" to three) -# -if size :over 1M -{ - reject text: -Please do not send me large attachments. -Put your file on a server and send me the URL. -Thank you. -.... Fred -. -; - stop; -} - -# -# Handle messages from known mailing lists -# Move messages from IETF filter discussion list to filter folder -# -if header :is "Sender" "owner-ietf-mta-filters@imc.org" -{ - fileinto "filter"; # move to "filter" folder -} -# -# Keep all messages to or from people in my company -# -elsif address :domain :is ["From", "To"] "example.com" -{ - keep; # keep in "In" folder -} - -# -# Try and catch unsolicited email. If a message is not to me, -# or it contains a subject known to be spam, file it away. -# -elsif anyof (not address :all :contains - ["To", "Cc", "Bcc"] "me@example.com", - header :matches "subject" - ["*make*money*fast*", "*university*dipl*mas*"]) -{ - # If message header does not contain my address, - # it's from a list. - fileinto "spam"; # move to "spam" folder -} -else -{ - # Move all other (non-company) mail to "personal" - # folder. - fileinto "personal"; -} -</textarea></form> - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), {}); - </script> - - <p><strong>MIME types defined:</strong> <code>application/sieve</code>.</p> - - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/sieve/sieve.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/sieve/sieve.js deleted file mode 100644 index f67db2f..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/sieve/sieve.js +++ /dev/null @@ -1,193 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("sieve", function(config) { - function words(str) { - var obj = {}, words = str.split(" "); - for (var i = 0; i < words.length; ++i) obj[words[i]] = true; - return obj; - } - - var keywords = words("if elsif else stop require"); - var atoms = words("true false not"); - var indentUnit = config.indentUnit; - - function tokenBase(stream, state) { - - var ch = stream.next(); - if (ch == "/" && stream.eat("*")) { - state.tokenize = tokenCComment; - return tokenCComment(stream, state); - } - - if (ch === '#') { - stream.skipToEnd(); - return "comment"; - } - - if (ch == "\"") { - state.tokenize = tokenString(ch); - return state.tokenize(stream, state); - } - - if (ch == "(") { - state._indent.push("("); - // add virtual angel wings so that editor behaves... - // ...more sane incase of broken brackets - state._indent.push("{"); - return null; - } - - if (ch === "{") { - state._indent.push("{"); - return null; - } - - if (ch == ")") { - state._indent.pop(); - state._indent.pop(); - } - - if (ch === "}") { - state._indent.pop(); - return null; - } - - if (ch == ",") - return null; - - if (ch == ";") - return null; - - - if (/[{}\(\),;]/.test(ch)) - return null; - - // 1*DIGIT "K" / "M" / "G" - if (/\d/.test(ch)) { - stream.eatWhile(/[\d]/); - stream.eat(/[KkMmGg]/); - return "number"; - } - - // ":" (ALPHA / "_") *(ALPHA / DIGIT / "_") - if (ch == ":") { - stream.eatWhile(/[a-zA-Z_]/); - stream.eatWhile(/[a-zA-Z0-9_]/); - - return "operator"; - } - - stream.eatWhile(/\w/); - var cur = stream.current(); - - // "text:" *(SP / HTAB) (hash-comment / CRLF) - // *(multiline-literal / multiline-dotstart) - // "." CRLF - if ((cur == "text") && stream.eat(":")) - { - state.tokenize = tokenMultiLineString; - return "string"; - } - - if (keywords.propertyIsEnumerable(cur)) - return "keyword"; - - if (atoms.propertyIsEnumerable(cur)) - return "atom"; - - return null; - } - - function tokenMultiLineString(stream, state) - { - state._multiLineString = true; - // the first line is special it may contain a comment - if (!stream.sol()) { - stream.eatSpace(); - - if (stream.peek() == "#") { - stream.skipToEnd(); - return "comment"; - } - - stream.skipToEnd(); - return "string"; - } - - if ((stream.next() == ".") && (stream.eol())) - { - state._multiLineString = false; - state.tokenize = tokenBase; - } - - return "string"; - } - - function tokenCComment(stream, state) { - var maybeEnd = false, ch; - while ((ch = stream.next()) != null) { - if (maybeEnd && ch == "/") { - state.tokenize = tokenBase; - break; - } - maybeEnd = (ch == "*"); - } - return "comment"; - } - - function tokenString(quote) { - return function(stream, state) { - var escaped = false, ch; - while ((ch = stream.next()) != null) { - if (ch == quote && !escaped) - break; - escaped = !escaped && ch == "\\"; - } - if (!escaped) state.tokenize = tokenBase; - return "string"; - }; - } - - return { - startState: function(base) { - return {tokenize: tokenBase, - baseIndent: base || 0, - _indent: []}; - }, - - token: function(stream, state) { - if (stream.eatSpace()) - return null; - - return (state.tokenize || tokenBase)(stream, state);; - }, - - indent: function(state, _textAfter) { - var length = state._indent.length; - if (_textAfter && (_textAfter[0] == "}")) - length--; - - if (length <0) - length = 0; - - return length * indentUnit; - }, - - electricChars: "}" - }; -}); - -CodeMirror.defineMIME("application/sieve", "sieve"); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/slim/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/slim/index.html deleted file mode 100644 index 7fa4e50..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/slim/index.html +++ /dev/null @@ -1,96 +0,0 @@ -<!doctype html> - -<title>CodeMirror: SLIM mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<link rel="stylesheet" href="../../theme/ambiance.css"> -<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script> -<script src="https://code.jquery.com/ui/1.11.0/jquery-ui.min.js"></script> -<link rel="stylesheet" href="https://code.jquery.com/ui/1.11.0/themes/smoothness/jquery-ui.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../xml/xml.js"></script> -<script src="../htmlembedded/htmlembedded.js"></script> -<script src="../htmlmixed/htmlmixed.js"></script> -<script src="../coffeescript/coffeescript.js"></script> -<script src="../javascript/javascript.js"></script> -<script src="../ruby/ruby.js"></script> -<script src="../markdown/markdown.js"></script> -<script src="slim.js"></script> -<style>.CodeMirror {background: #f8f8f8;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">SLIM</a> - </ul> -</div> - -<article> - <h2>SLIM mode</h2> - <form><textarea id="code" name="code"> -body - table - - for user in users - td id="user_#{user.id}" class=user.role - a href=user_action(user, :edit) Edit #{user.name} - a href=(path_to_user user) = user.name -body - h1(id="logo") = page_logo - h2[id="tagline" class="small tagline"] = page_tagline - -h2[id="tagline" - class="small tagline"] = page_tagline - -h1 id = "logo" = page_logo -h2 [ id = "tagline" ] = page_tagline - -/ comment - second line -/! html comment - second line -<!-- html comment --> -<a href="#{'hello' if set}">link</a> -a.slim href="work" disabled=false running==:atom Text <b>bold</b> -.clazz data-id="test" == 'hello' unless quark - | Text mode #{12} - Second line -= x ||= :ruby_atom -#menu.left - - @env.each do |x| - li: a = x -*@dyntag attr="val" -.first *{:class => [:second, :third]} Text -.second class=["text","more"] -.third class=:text,:symbol - - </textarea></form> - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - lineNumbers: true, - theme: "ambiance", - mode: "application/x-slim" - }); - $('.CodeMirror').resizable({ - resize: function() { - editor.setSize($(this).width(), $(this).height()); - //editor.refresh(); - } - }); - </script> - - <p><strong>MIME types defined:</strong> <code>application/x-slim</code>.</p> - - <p> - <strong>Parsing/Highlighting Tests:</strong> - <a href="../../test/index.html#slim_*">normal</a>, - <a href="../../test/index.html#verbose,slim_*">verbose</a>. - </p> -</article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/slim/slim.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/slim/slim.js deleted file mode 100644 index 991a97e..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/slim/slim.js +++ /dev/null @@ -1,575 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -// Slim Highlighting for CodeMirror copyright (c) HicknHack Software Gmbh - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed"), require("../ruby/ruby")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror", "../htmlmixed/htmlmixed", "../ruby/ruby"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - - CodeMirror.defineMode("slim", function(config) { - var htmlMode = CodeMirror.getMode(config, {name: "htmlmixed"}); - var rubyMode = CodeMirror.getMode(config, "ruby"); - var modes = { html: htmlMode, ruby: rubyMode }; - var embedded = { - ruby: "ruby", - javascript: "javascript", - css: "text/css", - sass: "text/x-sass", - scss: "text/x-scss", - less: "text/x-less", - styl: "text/x-styl", // no highlighting so far - coffee: "coffeescript", - asciidoc: "text/x-asciidoc", - markdown: "text/x-markdown", - textile: "text/x-textile", // no highlighting so far - creole: "text/x-creole", // no highlighting so far - wiki: "text/x-wiki", // no highlighting so far - mediawiki: "text/x-mediawiki", // no highlighting so far - rdoc: "text/x-rdoc", // no highlighting so far - builder: "text/x-builder", // no highlighting so far - nokogiri: "text/x-nokogiri", // no highlighting so far - erb: "application/x-erb" - }; - var embeddedRegexp = function(map){ - var arr = []; - for(var key in map) arr.push(key); - return new RegExp("^("+arr.join('|')+"):"); - }(embedded); - - var styleMap = { - "commentLine": "comment", - "slimSwitch": "operator special", - "slimTag": "tag", - "slimId": "attribute def", - "slimClass": "attribute qualifier", - "slimAttribute": "attribute", - "slimSubmode": "keyword special", - "closeAttributeTag": null, - "slimDoctype": null, - "lineContinuation": null - }; - var closing = { - "{": "}", - "[": "]", - "(": ")" - }; - - var nameStartChar = "_a-zA-Z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD"; - var nameChar = nameStartChar + "\\-0-9\xB7\u0300-\u036F\u203F-\u2040"; - var nameRegexp = new RegExp("^[:"+nameStartChar+"](?::["+nameChar+"]|["+nameChar+"]*)"); - var attributeNameRegexp = new RegExp("^[:"+nameStartChar+"][:\\."+nameChar+"]*(?=\\s*=)"); - var wrappedAttributeNameRegexp = new RegExp("^[:"+nameStartChar+"][:\\."+nameChar+"]*"); - var classNameRegexp = /^\.-?[_a-zA-Z]+[\w\-]*/; - var classIdRegexp = /^#[_a-zA-Z]+[\w\-]*/; - - function backup(pos, tokenize, style) { - var restore = function(stream, state) { - state.tokenize = tokenize; - if (stream.pos < pos) { - stream.pos = pos; - return style; - } - return state.tokenize(stream, state); - }; - return function(stream, state) { - state.tokenize = restore; - return tokenize(stream, state); - }; - } - - function maybeBackup(stream, state, pat, offset, style) { - var cur = stream.current(); - var idx = cur.search(pat); - if (idx > -1) { - state.tokenize = backup(stream.pos, state.tokenize, style); - stream.backUp(cur.length - idx - offset); - } - return style; - } - - function continueLine(state, column) { - state.stack = { - parent: state.stack, - style: "continuation", - indented: column, - tokenize: state.line - }; - state.line = state.tokenize; - } - function finishContinue(state) { - if (state.line == state.tokenize) { - state.line = state.stack.tokenize; - state.stack = state.stack.parent; - } - } - - function lineContinuable(column, tokenize) { - return function(stream, state) { - finishContinue(state); - if (stream.match(/^\\$/)) { - continueLine(state, column); - return "lineContinuation"; - } - var style = tokenize(stream, state); - if (stream.eol() && stream.current().match(/(?:^|[^\\])(?:\\\\)*\\$/)) { - stream.backUp(1); - } - return style; - }; - } - function commaContinuable(column, tokenize) { - return function(stream, state) { - finishContinue(state); - var style = tokenize(stream, state); - if (stream.eol() && stream.current().match(/,$/)) { - continueLine(state, column); - } - return style; - }; - } - - function rubyInQuote(endQuote, tokenize) { - // TODO: add multi line support - return function(stream, state) { - var ch = stream.peek(); - if (ch == endQuote && state.rubyState.tokenize.length == 1) { - // step out of ruby context as it seems to complete processing all the braces - stream.next(); - state.tokenize = tokenize; - return "closeAttributeTag"; - } else { - return ruby(stream, state); - } - }; - } - function startRubySplat(tokenize) { - var rubyState; - var runSplat = function(stream, state) { - if (state.rubyState.tokenize.length == 1 && !state.rubyState.context.prev) { - stream.backUp(1); - if (stream.eatSpace()) { - state.rubyState = rubyState; - state.tokenize = tokenize; - return tokenize(stream, state); - } - stream.next(); - } - return ruby(stream, state); - }; - return function(stream, state) { - rubyState = state.rubyState; - state.rubyState = CodeMirror.startState(rubyMode); - state.tokenize = runSplat; - return ruby(stream, state); - }; - } - - function ruby(stream, state) { - return rubyMode.token(stream, state.rubyState); - } - - function htmlLine(stream, state) { - if (stream.match(/^\\$/)) { - return "lineContinuation"; - } - return html(stream, state); - } - function html(stream, state) { - if (stream.match(/^#\{/)) { - state.tokenize = rubyInQuote("}", state.tokenize); - return null; - } - return maybeBackup(stream, state, /[^\\]#\{/, 1, htmlMode.token(stream, state.htmlState)); - } - - function startHtmlLine(lastTokenize) { - return function(stream, state) { - var style = htmlLine(stream, state); - if (stream.eol()) state.tokenize = lastTokenize; - return style; - }; - } - - function startHtmlMode(stream, state, offset) { - state.stack = { - parent: state.stack, - style: "html", - indented: stream.column() + offset, // pipe + space - tokenize: state.line - }; - state.line = state.tokenize = html; - return null; - } - - function comment(stream, state) { - stream.skipToEnd(); - return state.stack.style; - } - - function commentMode(stream, state) { - state.stack = { - parent: state.stack, - style: "comment", - indented: state.indented + 1, - tokenize: state.line - }; - state.line = comment; - return comment(stream, state); - } - - function attributeWrapper(stream, state) { - if (stream.eat(state.stack.endQuote)) { - state.line = state.stack.line; - state.tokenize = state.stack.tokenize; - state.stack = state.stack.parent; - return null; - } - if (stream.match(wrappedAttributeNameRegexp)) { - state.tokenize = attributeWrapperAssign; - return "slimAttribute"; - } - stream.next(); - return null; - } - function attributeWrapperAssign(stream, state) { - if (stream.match(/^==?/)) { - state.tokenize = attributeWrapperValue; - return null; - } - return attributeWrapper(stream, state); - } - function attributeWrapperValue(stream, state) { - var ch = stream.peek(); - if (ch == '"' || ch == "\'") { - state.tokenize = readQuoted(ch, "string", true, false, attributeWrapper); - stream.next(); - return state.tokenize(stream, state); - } - if (ch == '[') { - return startRubySplat(attributeWrapper)(stream, state); - } - if (stream.match(/^(true|false|nil)\b/)) { - state.tokenize = attributeWrapper; - return "keyword"; - } - return startRubySplat(attributeWrapper)(stream, state); - } - - function startAttributeWrapperMode(state, endQuote, tokenize) { - state.stack = { - parent: state.stack, - style: "wrapper", - indented: state.indented + 1, - tokenize: tokenize, - line: state.line, - endQuote: endQuote - }; - state.line = state.tokenize = attributeWrapper; - return null; - } - - function sub(stream, state) { - if (stream.match(/^#\{/)) { - state.tokenize = rubyInQuote("}", state.tokenize); - return null; - } - var subStream = new CodeMirror.StringStream(stream.string.slice(state.stack.indented), stream.tabSize); - subStream.pos = stream.pos - state.stack.indented; - subStream.start = stream.start - state.stack.indented; - subStream.lastColumnPos = stream.lastColumnPos - state.stack.indented; - subStream.lastColumnValue = stream.lastColumnValue - state.stack.indented; - var style = state.subMode.token(subStream, state.subState); - stream.pos = subStream.pos + state.stack.indented; - return style; - } - function firstSub(stream, state) { - state.stack.indented = stream.column(); - state.line = state.tokenize = sub; - return state.tokenize(stream, state); - } - - function createMode(mode) { - var query = embedded[mode]; - var spec = CodeMirror.mimeModes[query]; - if (spec) { - return CodeMirror.getMode(config, spec); - } - var factory = CodeMirror.modes[query]; - if (factory) { - return factory(config, {name: query}); - } - return CodeMirror.getMode(config, "null"); - } - - function getMode(mode) { - if (!modes.hasOwnProperty(mode)) { - return modes[mode] = createMode(mode); - } - return modes[mode]; - } - - function startSubMode(mode, state) { - var subMode = getMode(mode); - var subState = CodeMirror.startState(subMode); - - state.subMode = subMode; - state.subState = subState; - - state.stack = { - parent: state.stack, - style: "sub", - indented: state.indented + 1, - tokenize: state.line - }; - state.line = state.tokenize = firstSub; - return "slimSubmode"; - } - - function doctypeLine(stream, _state) { - stream.skipToEnd(); - return "slimDoctype"; - } - - function startLine(stream, state) { - var ch = stream.peek(); - if (ch == '<') { - return (state.tokenize = startHtmlLine(state.tokenize))(stream, state); - } - if (stream.match(/^[|']/)) { - return startHtmlMode(stream, state, 1); - } - if (stream.match(/^\/(!|\[\w+])?/)) { - return commentMode(stream, state); - } - if (stream.match(/^(-|==?[<>]?)/)) { - state.tokenize = lineContinuable(stream.column(), commaContinuable(stream.column(), ruby)); - return "slimSwitch"; - } - if (stream.match(/^doctype\b/)) { - state.tokenize = doctypeLine; - return "keyword"; - } - - var m = stream.match(embeddedRegexp); - if (m) { - return startSubMode(m[1], state); - } - - return slimTag(stream, state); - } - - function slim(stream, state) { - if (state.startOfLine) { - return startLine(stream, state); - } - return slimTag(stream, state); - } - - function slimTag(stream, state) { - if (stream.eat('*')) { - state.tokenize = startRubySplat(slimTagExtras); - return null; - } - if (stream.match(nameRegexp)) { - state.tokenize = slimTagExtras; - return "slimTag"; - } - return slimClass(stream, state); - } - function slimTagExtras(stream, state) { - if (stream.match(/^(<>?|><?)/)) { - state.tokenize = slimClass; - return null; - } - return slimClass(stream, state); - } - function slimClass(stream, state) { - if (stream.match(classIdRegexp)) { - state.tokenize = slimClass; - return "slimId"; - } - if (stream.match(classNameRegexp)) { - state.tokenize = slimClass; - return "slimClass"; - } - return slimAttribute(stream, state); - } - function slimAttribute(stream, state) { - if (stream.match(/^([\[\{\(])/)) { - return startAttributeWrapperMode(state, closing[RegExp.$1], slimAttribute); - } - if (stream.match(attributeNameRegexp)) { - state.tokenize = slimAttributeAssign; - return "slimAttribute"; - } - if (stream.peek() == '*') { - stream.next(); - state.tokenize = startRubySplat(slimContent); - return null; - } - return slimContent(stream, state); - } - function slimAttributeAssign(stream, state) { - if (stream.match(/^==?/)) { - state.tokenize = slimAttributeValue; - return null; - } - // should never happen, because of forward lookup - return slimAttribute(stream, state); - } - - function slimAttributeValue(stream, state) { - var ch = stream.peek(); - if (ch == '"' || ch == "\'") { - state.tokenize = readQuoted(ch, "string", true, false, slimAttribute); - stream.next(); - return state.tokenize(stream, state); - } - if (ch == '[') { - return startRubySplat(slimAttribute)(stream, state); - } - if (ch == ':') { - return startRubySplat(slimAttributeSymbols)(stream, state); - } - if (stream.match(/^(true|false|nil)\b/)) { - state.tokenize = slimAttribute; - return "keyword"; - } - return startRubySplat(slimAttribute)(stream, state); - } - function slimAttributeSymbols(stream, state) { - stream.backUp(1); - if (stream.match(/^[^\s],(?=:)/)) { - state.tokenize = startRubySplat(slimAttributeSymbols); - return null; - } - stream.next(); - return slimAttribute(stream, state); - } - function readQuoted(quote, style, embed, unescaped, nextTokenize) { - return function(stream, state) { - finishContinue(state); - var fresh = stream.current().length == 0; - if (stream.match(/^\\$/, fresh)) { - if (!fresh) return style; - continueLine(state, state.indented); - return "lineContinuation"; - } - if (stream.match(/^#\{/, fresh)) { - if (!fresh) return style; - state.tokenize = rubyInQuote("}", state.tokenize); - return null; - } - var escaped = false, ch; - while ((ch = stream.next()) != null) { - if (ch == quote && (unescaped || !escaped)) { - state.tokenize = nextTokenize; - break; - } - if (embed && ch == "#" && !escaped) { - if (stream.eat("{")) { - stream.backUp(2); - break; - } - } - escaped = !escaped && ch == "\\"; - } - if (stream.eol() && escaped) { - stream.backUp(1); - } - return style; - }; - } - function slimContent(stream, state) { - if (stream.match(/^==?/)) { - state.tokenize = ruby; - return "slimSwitch"; - } - if (stream.match(/^\/$/)) { // tag close hint - state.tokenize = slim; - return null; - } - if (stream.match(/^:/)) { // inline tag - state.tokenize = slimTag; - return "slimSwitch"; - } - startHtmlMode(stream, state, 0); - return state.tokenize(stream, state); - } - - var mode = { - // default to html mode - startState: function() { - var htmlState = CodeMirror.startState(htmlMode); - var rubyState = CodeMirror.startState(rubyMode); - return { - htmlState: htmlState, - rubyState: rubyState, - stack: null, - last: null, - tokenize: slim, - line: slim, - indented: 0 - }; - }, - - copyState: function(state) { - return { - htmlState : CodeMirror.copyState(htmlMode, state.htmlState), - rubyState: CodeMirror.copyState(rubyMode, state.rubyState), - subMode: state.subMode, - subState: state.subMode && CodeMirror.copyState(state.subMode, state.subState), - stack: state.stack, - last: state.last, - tokenize: state.tokenize, - line: state.line - }; - }, - - token: function(stream, state) { - if (stream.sol()) { - state.indented = stream.indentation(); - state.startOfLine = true; - state.tokenize = state.line; - while (state.stack && state.stack.indented > state.indented && state.last != "slimSubmode") { - state.line = state.tokenize = state.stack.tokenize; - state.stack = state.stack.parent; - state.subMode = null; - state.subState = null; - } - } - if (stream.eatSpace()) return null; - var style = state.tokenize(stream, state); - state.startOfLine = false; - if (style) state.last = style; - return styleMap.hasOwnProperty(style) ? styleMap[style] : style; - }, - - blankLine: function(state) { - if (state.subMode && state.subMode.blankLine) { - return state.subMode.blankLine(state.subState); - } - }, - - innerMode: function(state) { - if (state.subMode) return {state: state.subState, mode: state.subMode}; - return {state: state, mode: mode}; - } - - //indent: function(state) { - // return state.indented; - //} - }; - return mode; - }, "htmlmixed", "ruby"); - - CodeMirror.defineMIME("text/x-slim", "slim"); - CodeMirror.defineMIME("application/x-slim", "slim"); -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/slim/test.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/slim/test.js deleted file mode 100644 index be4ddac..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/slim/test.js +++ /dev/null @@ -1,96 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -// Slim Highlighting for CodeMirror copyright (c) HicknHack Software Gmbh - -(function() { - var mode = CodeMirror.getMode({tabSize: 4, indentUnit: 2}, "slim"); - function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); } - - // Requires at least one media query - MT("elementName", - "[tag h1] Hey There"); - - MT("oneElementPerLine", - "[tag h1] Hey There .h2"); - - MT("idShortcut", - "[attribute&def #test] Hey There"); - - MT("tagWithIdShortcuts", - "[tag h1][attribute&def #test] Hey There"); - - MT("classShortcut", - "[attribute&qualifier .hello] Hey There"); - - MT("tagWithIdAndClassShortcuts", - "[tag h1][attribute&def #test][attribute&qualifier .hello] Hey There"); - - MT("docType", - "[keyword doctype] xml"); - - MT("comment", - "[comment / Hello WORLD]"); - - MT("notComment", - "[tag h1] This is not a / comment "); - - MT("attributes", - "[tag a]([attribute title]=[string \"test\"]) [attribute href]=[string \"link\"]}"); - - MT("multiLineAttributes", - "[tag a]([attribute title]=[string \"test\"]", - " ) [attribute href]=[string \"link\"]}"); - - MT("htmlCode", - "[tag&bracket <][tag h1][tag&bracket >]Title[tag&bracket </][tag h1][tag&bracket >]"); - - MT("rubyBlock", - "[operator&special =][variable-2 @item]"); - - MT("selectorRubyBlock", - "[tag a][attribute&qualifier .test][operator&special =] [variable-2 @item]"); - - MT("nestedRubyBlock", - "[tag a]", - " [operator&special =][variable puts] [string \"test\"]"); - - MT("multilinePlaintext", - "[tag p]", - " | Hello,", - " World"); - - MT("multilineRuby", - "[tag p]", - " [comment /# this is a comment]", - " [comment and this is a comment too]", - " | Date/Time", - " [operator&special -] [variable now] [operator =] [tag DateTime][operator .][property now]", - " [tag strong][operator&special =] [variable now]", - " [operator&special -] [keyword if] [variable now] [operator >] [tag DateTime][operator .][property parse]([string \"December 31, 2006\"])", - " [operator&special =][string \"Happy\"]", - " [operator&special =][string \"Belated\"]", - " [operator&special =][string \"Birthday\"]"); - - MT("multilineComment", - "[comment /]", - " [comment Multiline]", - " [comment Comment]"); - - MT("hamlAfterRubyTag", - "[attribute&qualifier .block]", - " [tag strong][operator&special =] [variable now]", - " [attribute&qualifier .test]", - " [operator&special =][variable now]", - " [attribute&qualifier .right]"); - - MT("stretchedRuby", - "[operator&special =] [variable puts] [string \"Hello\"],", - " [string \"World\"]"); - - MT("interpolationInHashAttribute", - "[tag div]{[attribute id] = [string \"]#{[variable test]}[string _]#{[variable ting]}[string \"]} test"); - - MT("interpolationInHTMLAttribute", - "[tag div]([attribute title]=[string \"]#{[variable test]}[string _]#{[variable ting]()}[string \"]) Test"); -})(); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/smalltalk/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/smalltalk/index.html deleted file mode 100644 index 2155ebc..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/smalltalk/index.html +++ /dev/null @@ -1,68 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Smalltalk mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../../addon/edit/matchbrackets.js"></script> -<script src="smalltalk.js"></script> -<style> - .CodeMirror {border: 2px solid #dee; border-right-width: 10px;} - .CodeMirror-gutter {border: none; background: #dee;} - .CodeMirror-gutter pre {color: white; font-weight: bold;} - </style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Smalltalk</a> - </ul> -</div> - -<article> -<h2>Smalltalk mode</h2> -<form><textarea id="code" name="code"> -" - This is a test of the Smalltalk code -" -Seaside.WAComponent subclass: #MyCounter [ - | count | - MyCounter class >> canBeRoot [ ^true ] - - initialize [ - super initialize. - count := 0. - ] - states [ ^{ self } ] - renderContentOn: html [ - html heading: count. - html anchor callback: [ count := count + 1 ]; with: '++'. - html space. - html anchor callback: [ count := count - 1 ]; with: '--'. - ] -] - -MyCounter registerAsApplication: 'mycounter' -</textarea></form> - - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - lineNumbers: true, - matchBrackets: true, - mode: "text/x-stsrc", - indentUnit: 4 - }); - </script> - - <p>Simple Smalltalk mode.</p> - - <p><strong>MIME types defined:</strong> <code>text/x-stsrc</code>.</p> - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/smalltalk/smalltalk.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/smalltalk/smalltalk.js deleted file mode 100644 index bb510ba..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/smalltalk/smalltalk.js +++ /dev/null @@ -1,168 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode('smalltalk', function(config) { - - var specialChars = /[+\-\/\\*~<>=@%|&?!.,:;^]/; - var keywords = /true|false|nil|self|super|thisContext/; - - var Context = function(tokenizer, parent) { - this.next = tokenizer; - this.parent = parent; - }; - - var Token = function(name, context, eos) { - this.name = name; - this.context = context; - this.eos = eos; - }; - - var State = function() { - this.context = new Context(next, null); - this.expectVariable = true; - this.indentation = 0; - this.userIndentationDelta = 0; - }; - - State.prototype.userIndent = function(indentation) { - this.userIndentationDelta = indentation > 0 ? (indentation / config.indentUnit - this.indentation) : 0; - }; - - var next = function(stream, context, state) { - var token = new Token(null, context, false); - var aChar = stream.next(); - - if (aChar === '"') { - token = nextComment(stream, new Context(nextComment, context)); - - } else if (aChar === '\'') { - token = nextString(stream, new Context(nextString, context)); - - } else if (aChar === '#') { - if (stream.peek() === '\'') { - stream.next(); - token = nextSymbol(stream, new Context(nextSymbol, context)); - } else { - if (stream.eatWhile(/[^\s.{}\[\]()]/)) - token.name = 'string-2'; - else - token.name = 'meta'; - } - - } else if (aChar === '$') { - if (stream.next() === '<') { - stream.eatWhile(/[^\s>]/); - stream.next(); - } - token.name = 'string-2'; - - } else if (aChar === '|' && state.expectVariable) { - token.context = new Context(nextTemporaries, context); - - } else if (/[\[\]{}()]/.test(aChar)) { - token.name = 'bracket'; - token.eos = /[\[{(]/.test(aChar); - - if (aChar === '[') { - state.indentation++; - } else if (aChar === ']') { - state.indentation = Math.max(0, state.indentation - 1); - } - - } else if (specialChars.test(aChar)) { - stream.eatWhile(specialChars); - token.name = 'operator'; - token.eos = aChar !== ';'; // ; cascaded message expression - - } else if (/\d/.test(aChar)) { - stream.eatWhile(/[\w\d]/); - token.name = 'number'; - - } else if (/[\w_]/.test(aChar)) { - stream.eatWhile(/[\w\d_]/); - token.name = state.expectVariable ? (keywords.test(stream.current()) ? 'keyword' : 'variable') : null; - - } else { - token.eos = state.expectVariable; - } - - return token; - }; - - var nextComment = function(stream, context) { - stream.eatWhile(/[^"]/); - return new Token('comment', stream.eat('"') ? context.parent : context, true); - }; - - var nextString = function(stream, context) { - stream.eatWhile(/[^']/); - return new Token('string', stream.eat('\'') ? context.parent : context, false); - }; - - var nextSymbol = function(stream, context) { - stream.eatWhile(/[^']/); - return new Token('string-2', stream.eat('\'') ? context.parent : context, false); - }; - - var nextTemporaries = function(stream, context) { - var token = new Token(null, context, false); - var aChar = stream.next(); - - if (aChar === '|') { - token.context = context.parent; - token.eos = true; - - } else { - stream.eatWhile(/[^|]/); - token.name = 'variable'; - } - - return token; - }; - - return { - startState: function() { - return new State; - }, - - token: function(stream, state) { - state.userIndent(stream.indentation()); - - if (stream.eatSpace()) { - return null; - } - - var token = state.context.next(stream, state.context, state); - state.context = token.context; - state.expectVariable = token.eos; - - return token.name; - }, - - blankLine: function(state) { - state.userIndent(0); - }, - - indent: function(state, textAfter) { - var i = state.context.next === next && textAfter && textAfter.charAt(0) === ']' ? -1 : state.userIndentationDelta; - return (state.indentation + i) * config.indentUnit; - }, - - electricChars: ']' - }; - -}); - -CodeMirror.defineMIME('text/x-stsrc', {name: 'smalltalk'}); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/smarty/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/smarty/index.html deleted file mode 100644 index b19c8f0..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/smarty/index.html +++ /dev/null @@ -1,138 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Smarty mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../xml/xml.js"></script> -<script src="smarty.js"></script> -<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Smarty</a> - </ul> -</div> - -<article> -<h2>Smarty mode</h2> -<form><textarea id="code" name="code"> -{extends file="parent.tpl"} -{include file="template.tpl"} - -{* some example Smarty content *} -{if isset($name) && $name == 'Blog'} - This is a {$var}. - {$integer = 451}, {$array[] = "a"}, {$stringvar = "string"} - {assign var='bob' value=$var.prop} -{elseif $name == $foo} - {function name=menu level=0} - {foreach $data as $entry} - {if is_array($entry)} - - {$entry@key} - {menu data=$entry level=$level+1} - {else} - {$entry} - {/if} - {/foreach} - {/function} -{/if}</textarea></form> - -<p>Mode for Smarty version 2 or 3, which allows for custom delimiter tags.</p> - -<p>Several configuration parameters are supported:</p> - -<ul> - <li><code>leftDelimiter</code> and <code>rightDelimiter</code>, - which should be strings that determine where the Smarty syntax - starts and ends.</li> - <li><code>version</code>, which should be 2 or 3.</li> - <li><code>baseMode</code>, which can be a mode spec - like <code>"text/html"</code> to set a different background mode.</li> -</ul> - -<p><strong>MIME types defined:</strong> <code>text/x-smarty</code></p> - -<h3>Smarty 2, custom delimiters</h3> - -<form><textarea id="code2" name="code2"> -{--extends file="parent.tpl"--} -{--include file="template.tpl"--} - -{--* some example Smarty content *--} -{--if isset($name) && $name == 'Blog'--} - This is a {--$var--}. - {--$integer = 451--}, {--$array[] = "a"--}, {--$stringvar = "string"--} - {--assign var='bob' value=$var.prop--} -{--elseif $name == $foo--} - {--function name=menu level=0--} - {--foreach $data as $entry--} - {--if is_array($entry)--} - - {--$entry@key--} - {--menu data=$entry level=$level+1--} - {--else--} - {--$entry--} - {--/if--} - {--/foreach--} - {--/function--} -{--/if--}</textarea></form> - -<h3>Smarty 3</h3> - -<textarea id="code3" name="code3"> -Nested tags {$foo={counter one=1 two={inception}}+3} are now valid in Smarty 3. - -<script> -function test() { - console.log("Smarty 3 permits single curly braces followed by whitespace to NOT slip into Smarty mode."); -} -</script> - -{assign var=foo value=[1,2,3]} -{assign var=foo value=['y'=>'yellow','b'=>'blue']} -{assign var=foo value=[1,[9,8],3]} - -{$foo=$bar+2} {* a comment *} -{$foo.bar=1} {* another comment *} -{$foo = myfunct(($x+$y)*3)} -{$foo = strlen($bar)} -{$foo.bar.baz=1}, {$foo[]=1} - -Smarty "dot" syntax (note: embedded {} are used to address ambiguities): - -{$foo.a.b.c} => $foo['a']['b']['c'] -{$foo.a.$b.c} => $foo['a'][$b]['c'] -{$foo.a.{$b+4}.c} => $foo['a'][$b+4]['c'] -{$foo.a.{$b.c}} => $foo['a'][$b['c']] - -{$object->method1($x)->method2($y)}</textarea> - -<script> -var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - lineNumbers: true, - mode: "smarty" -}); -var editor = CodeMirror.fromTextArea(document.getElementById("code2"), { - lineNumbers: true, - mode: { - name: "smarty", - leftDelimiter: "{--", - rightDelimiter: "--}" - } -}); -var editor = CodeMirror.fromTextArea(document.getElementById("code3"), { - lineNumbers: true, - mode: {name: "smarty", version: 3, baseMode: "text/html"} -}); -</script> - -</article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/smarty/smarty.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/smarty/smarty.js deleted file mode 100644 index 6e0fbed..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/smarty/smarty.js +++ /dev/null @@ -1,225 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -/** - * Smarty 2 and 3 mode. - */ - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { - "use strict"; - - CodeMirror.defineMode("smarty", function(config, parserConf) { - var rightDelimiter = parserConf.rightDelimiter || "}"; - var leftDelimiter = parserConf.leftDelimiter || "{"; - var version = parserConf.version || 2; - var baseMode = CodeMirror.getMode(config, parserConf.baseMode || "null"); - - var keyFunctions = ["debug", "extends", "function", "include", "literal"]; - var regs = { - operatorChars: /[+\-*&%=<>!?]/, - validIdentifier: /[a-zA-Z0-9_]/, - stringChar: /['"]/ - }; - - var last; - function cont(style, lastType) { - last = lastType; - return style; - } - - function chain(stream, state, parser) { - state.tokenize = parser; - return parser(stream, state); - } - - // Smarty 3 allows { and } surrounded by whitespace to NOT slip into Smarty mode - function doesNotCount(stream, pos) { - if (pos == null) pos = stream.pos; - return version === 3 && leftDelimiter == "{" && - (pos == stream.string.length || /\s/.test(stream.string.charAt(pos))); - } - - function tokenTop(stream, state) { - var string = stream.string; - for (var scan = stream.pos;;) { - var nextMatch = string.indexOf(leftDelimiter, scan); - scan = nextMatch + leftDelimiter.length; - if (nextMatch == -1 || !doesNotCount(stream, nextMatch + leftDelimiter.length)) break; - } - if (nextMatch == stream.pos) { - stream.match(leftDelimiter); - if (stream.eat("*")) { - return chain(stream, state, tokenBlock("comment", "*" + rightDelimiter)); - } else { - state.depth++; - state.tokenize = tokenSmarty; - last = "startTag"; - return "tag"; - } - } - - if (nextMatch > -1) stream.string = string.slice(0, nextMatch); - var token = baseMode.token(stream, state.base); - if (nextMatch > -1) stream.string = string; - return token; - } - - // parsing Smarty content - function tokenSmarty(stream, state) { - if (stream.match(rightDelimiter, true)) { - if (version === 3) { - state.depth--; - if (state.depth <= 0) { - state.tokenize = tokenTop; - } - } else { - state.tokenize = tokenTop; - } - return cont("tag", null); - } - - if (stream.match(leftDelimiter, true)) { - state.depth++; - return cont("tag", "startTag"); - } - - var ch = stream.next(); - if (ch == "$") { - stream.eatWhile(regs.validIdentifier); - return cont("variable-2", "variable"); - } else if (ch == "|") { - return cont("operator", "pipe"); - } else if (ch == ".") { - return cont("operator", "property"); - } else if (regs.stringChar.test(ch)) { - state.tokenize = tokenAttribute(ch); - return cont("string", "string"); - } else if (regs.operatorChars.test(ch)) { - stream.eatWhile(regs.operatorChars); - return cont("operator", "operator"); - } else if (ch == "[" || ch == "]") { - return cont("bracket", "bracket"); - } else if (ch == "(" || ch == ")") { - return cont("bracket", "operator"); - } else if (/\d/.test(ch)) { - stream.eatWhile(/\d/); - return cont("number", "number"); - } else { - - if (state.last == "variable") { - if (ch == "@") { - stream.eatWhile(regs.validIdentifier); - return cont("property", "property"); - } else if (ch == "|") { - stream.eatWhile(regs.validIdentifier); - return cont("qualifier", "modifier"); - } - } else if (state.last == "pipe") { - stream.eatWhile(regs.validIdentifier); - return cont("qualifier", "modifier"); - } else if (state.last == "whitespace") { - stream.eatWhile(regs.validIdentifier); - return cont("attribute", "modifier"); - } if (state.last == "property") { - stream.eatWhile(regs.validIdentifier); - return cont("property", null); - } else if (/\s/.test(ch)) { - last = "whitespace"; - return null; - } - - var str = ""; - if (ch != "/") { - str += ch; - } - var c = null; - while (c = stream.eat(regs.validIdentifier)) { - str += c; - } - for (var i=0, j=keyFunctions.length; i<j; i++) { - if (keyFunctions[i] == str) { - return cont("keyword", "keyword"); - } - } - if (/\s/.test(ch)) { - return null; - } - return cont("tag", "tag"); - } - } - - function tokenAttribute(quote) { - return function(stream, state) { - var prevChar = null; - var currChar = null; - while (!stream.eol()) { - currChar = stream.peek(); - if (stream.next() == quote && prevChar !== '\\') { - state.tokenize = tokenSmarty; - break; - } - prevChar = currChar; - } - return "string"; - }; - } - - function tokenBlock(style, terminator) { - return function(stream, state) { - while (!stream.eol()) { - if (stream.match(terminator)) { - state.tokenize = tokenTop; - break; - } - stream.next(); - } - return style; - }; - } - - return { - startState: function() { - return { - base: CodeMirror.startState(baseMode), - tokenize: tokenTop, - last: null, - depth: 0 - }; - }, - copyState: function(state) { - return { - base: CodeMirror.copyState(baseMode, state.base), - tokenize: state.tokenize, - last: state.last, - depth: state.depth - }; - }, - innerMode: function(state) { - if (state.tokenize == tokenTop) - return {mode: baseMode, state: state.base}; - }, - token: function(stream, state) { - var style = state.tokenize(stream, state); - state.last = last; - return style; - }, - indent: function(state, text) { - if (state.tokenize == tokenTop && baseMode.indent) - return baseMode.indent(state.base, text); - else - return CodeMirror.Pass; - }, - blockCommentStart: leftDelimiter + "*", - blockCommentEnd: "*" + rightDelimiter - }; - }); - - CodeMirror.defineMIME("text/x-smarty", "smarty"); -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/solr/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/solr/index.html deleted file mode 100644 index 4b18c25..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/solr/index.html +++ /dev/null @@ -1,57 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Solr mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="solr.js"></script> -<style type="text/css"> - .CodeMirror { - border-top: 1px solid black; - border-bottom: 1px solid black; - } - - .CodeMirror .cm-operator { - color: orange; - } -</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Solr</a> - </ul> -</div> - -<article> - <h2>Solr mode</h2> - - <div> - <textarea id="code" name="code">author:Camus - -title:"The Rebel" and author:Camus - -philosophy:Existentialism -author:Kierkegaard - -hardToSpell:Dostoevsky~ - -published:[194* TO 1960] and author:(Sartre or "Simone de Beauvoir")</textarea> - </div> - - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - mode: 'solr', - lineNumbers: true - }); - </script> - - <p><strong>MIME types defined:</strong> <code>text/x-solr</code>.</p> -</article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/solr/solr.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/solr/solr.js deleted file mode 100644 index f7f7087..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/solr/solr.js +++ /dev/null @@ -1,104 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("solr", function() { - "use strict"; - - var isStringChar = /[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\^\"\\]/; - var isOperatorChar = /[\|\!\+\-\*\?\~\^\&]/; - var isOperatorString = /^(OR|AND|NOT|TO)$/i; - - function isNumber(word) { - return parseFloat(word, 10).toString() === word; - } - - function tokenString(quote) { - return function(stream, state) { - var escaped = false, next; - while ((next = stream.next()) != null) { - if (next == quote && !escaped) break; - escaped = !escaped && next == "\\"; - } - - if (!escaped) state.tokenize = tokenBase; - return "string"; - }; - } - - function tokenOperator(operator) { - return function(stream, state) { - var style = "operator"; - if (operator == "+") - style += " positive"; - else if (operator == "-") - style += " negative"; - else if (operator == "|") - stream.eat(/\|/); - else if (operator == "&") - stream.eat(/\&/); - else if (operator == "^") - style += " boost"; - - state.tokenize = tokenBase; - return style; - }; - } - - function tokenWord(ch) { - return function(stream, state) { - var word = ch; - while ((ch = stream.peek()) && ch.match(isStringChar) != null) { - word += stream.next(); - } - - state.tokenize = tokenBase; - if (isOperatorString.test(word)) - return "operator"; - else if (isNumber(word)) - return "number"; - else if (stream.peek() == ":") - return "field"; - else - return "string"; - }; - } - - function tokenBase(stream, state) { - var ch = stream.next(); - if (ch == '"') - state.tokenize = tokenString(ch); - else if (isOperatorChar.test(ch)) - state.tokenize = tokenOperator(ch); - else if (isStringChar.test(ch)) - state.tokenize = tokenWord(ch); - - return (state.tokenize != tokenBase) ? state.tokenize(stream, state) : null; - } - - return { - startState: function() { - return { - tokenize: tokenBase - }; - }, - - token: function(stream, state) { - if (stream.eatSpace()) return null; - return state.tokenize(stream, state); - } - }; -}); - -CodeMirror.defineMIME("text/x-solr", "solr"); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/soy/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/soy/index.html deleted file mode 100644 index f0216f0..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/soy/index.html +++ /dev/null @@ -1,68 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Soy (Closure Template) mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../../addon/edit/matchbrackets.js"></script> -<script src="../htmlmixed/htmlmixed.js"></script> -<script src="../xml/xml.js"></script> -<script src="../javascript/javascript.js"></script> -<script src="../css/css.js"></script> -<script src="soy.js"></script> -<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Soy (Closure Template)</a> - </ul> -</div> - -<article> -<h2>Soy (Closure Template) mode</h2> -<form><textarea id="code" name="code"> -{namespace example} - -/** - * Says hello to the world. - */ -{template .helloWorld} - {@param name: string} - {@param? score: number} - Hello <b>{$name}</b>! - <div> - {if $score} - <em>{$score} points</em> - {else} - no score - {/if} - </div> -{/template} - -{template .alertHelloWorld kind="js"} - alert('Hello World'); -{/template} -</textarea></form> - - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - lineNumbers: true, - matchBrackets: true, - mode: "text/x-soy", - indentUnit: 2, - indentWithTabs: false - }); - </script> - - <p>A mode for <a href="https://developers.google.com/closure/templates/">Closure Templates</a> (Soy).</p> - <p><strong>MIME type defined:</strong> <code>text/x-soy</code>.</p> - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/soy/soy.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/soy/soy.js deleted file mode 100644 index 580c306..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/soy/soy.js +++ /dev/null @@ -1,199 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror", "../htmlmixed/htmlmixed"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { - "use strict"; - - var indentingTags = ["template", "literal", "msg", "fallbackmsg", "let", "if", "elseif", - "else", "switch", "case", "default", "foreach", "ifempty", "for", - "call", "param", "deltemplate", "delcall", "log"]; - - CodeMirror.defineMode("soy", function(config) { - var textMode = CodeMirror.getMode(config, "text/plain"); - var modes = { - html: CodeMirror.getMode(config, {name: "text/html", multilineTagIndentFactor: 2, multilineTagIndentPastTag: false}), - attributes: textMode, - text: textMode, - uri: textMode, - css: CodeMirror.getMode(config, "text/css"), - js: CodeMirror.getMode(config, {name: "text/javascript", statementIndent: 2 * config.indentUnit}) - }; - - function last(array) { - return array[array.length - 1]; - } - - function tokenUntil(stream, state, untilRegExp) { - var oldString = stream.string; - var match = untilRegExp.exec(oldString.substr(stream.pos)); - if (match) { - // We don't use backUp because it backs up just the position, not the state. - // This uses an undocumented API. - stream.string = oldString.substr(0, stream.pos + match.index); - } - var result = stream.hideFirstChars(state.indent, function() { - return state.localMode.token(stream, state.localState); - }); - stream.string = oldString; - return result; - } - - return { - startState: function() { - return { - kind: [], - kindTag: [], - soyState: [], - indent: 0, - localMode: modes.html, - localState: CodeMirror.startState(modes.html) - }; - }, - - copyState: function(state) { - return { - tag: state.tag, // Last seen Soy tag. - kind: state.kind.concat([]), // Values of kind="" attributes. - kindTag: state.kindTag.concat([]), // Opened tags with kind="" attributes. - soyState: state.soyState.concat([]), - indent: state.indent, // Indentation of the following line. - localMode: state.localMode, - localState: CodeMirror.copyState(state.localMode, state.localState) - }; - }, - - token: function(stream, state) { - var match; - - switch (last(state.soyState)) { - case "comment": - if (stream.match(/^.*?\*\//)) { - state.soyState.pop(); - } else { - stream.skipToEnd(); - } - return "comment"; - - case "variable": - if (stream.match(/^}/)) { - state.indent -= 2 * config.indentUnit; - state.soyState.pop(); - return "variable-2"; - } - stream.next(); - return null; - - case "tag": - if (stream.match(/^\/?}/)) { - if (state.tag == "/template" || state.tag == "/deltemplate") state.indent = 0; - else state.indent -= (stream.current() == "/}" || indentingTags.indexOf(state.tag) == -1 ? 2 : 1) * config.indentUnit; - state.soyState.pop(); - return "keyword"; - } else if (stream.match(/^([\w?]+)(?==)/)) { - if (stream.current() == "kind" && (match = stream.match(/^="([^"]+)/, false))) { - var kind = match[1]; - state.kind.push(kind); - state.kindTag.push(state.tag); - state.localMode = modes[kind] || modes.html; - state.localState = CodeMirror.startState(state.localMode); - } - return "attribute"; - } else if (stream.match(/^"/)) { - state.soyState.push("string"); - return "string"; - } - stream.next(); - return null; - - case "literal": - if (stream.match(/^(?=\{\/literal})/)) { - state.indent -= config.indentUnit; - state.soyState.pop(); - return this.token(stream, state); - } - return tokenUntil(stream, state, /\{\/literal}/); - - case "string": - var match = stream.match(/^.*?("|\\[\s\S])/); - if (!match) { - stream.skipToEnd(); - } else if (match[1] == "\"") { - state.soyState.pop(); - } - return "string"; - } - - if (stream.match(/^\/\*/)) { - state.soyState.push("comment"); - return "comment"; - } else if (stream.match(stream.sol() ? /^\s*\/\/.*/ : /^\s+\/\/.*/)) { - return "comment"; - } else if (stream.match(/^\{\$[\w?]*/)) { - state.indent += 2 * config.indentUnit; - state.soyState.push("variable"); - return "variable-2"; - } else if (stream.match(/^\{literal}/)) { - state.indent += config.indentUnit; - state.soyState.push("literal"); - return "keyword"; - } else if (match = stream.match(/^\{([\/@\\]?[\w?]*)/)) { - if (match[1] != "/switch") - state.indent += (/^(\/|(else|elseif|case|default)$)/.test(match[1]) && state.tag != "switch" ? 1 : 2) * config.indentUnit; - state.tag = match[1]; - if (state.tag == "/" + last(state.kindTag)) { - // We found the tag that opened the current kind="". - state.kind.pop(); - state.kindTag.pop(); - state.localMode = modes[last(state.kind)] || modes.html; - state.localState = CodeMirror.startState(state.localMode); - } - state.soyState.push("tag"); - return "keyword"; - } - - return tokenUntil(stream, state, /\{|\s+\/\/|\/\*/); - }, - - indent: function(state, textAfter) { - var indent = state.indent, top = last(state.soyState); - if (top == "comment") return CodeMirror.Pass; - - if (top == "literal") { - if (/^\{\/literal}/.test(textAfter)) indent -= config.indentUnit; - } else { - if (/^\s*\{\/(template|deltemplate)\b/.test(textAfter)) return 0; - if (/^\{(\/|(fallbackmsg|elseif|else|ifempty)\b)/.test(textAfter)) indent -= config.indentUnit; - if (state.tag != "switch" && /^\{(case|default)\b/.test(textAfter)) indent -= config.indentUnit; - if (/^\{\/switch\b/.test(textAfter)) indent -= config.indentUnit; - } - if (indent && state.localMode.indent) - indent += state.localMode.indent(state.localState, textAfter); - return indent; - }, - - innerMode: function(state) { - if (state.soyState.length && last(state.soyState) != "literal") return null; - else return {state: state.localState, mode: state.localMode}; - }, - - electricInput: /^\s*\{(\/|\/template|\/deltemplate|\/switch|fallbackmsg|elseif|else|case|default|ifempty|\/literal\})$/, - lineComment: "//", - blockCommentStart: "/*", - blockCommentEnd: "*/", - blockCommentContinue: " * ", - fold: "indent" - }; - }, "htmlmixed"); - - CodeMirror.registerHelper("hintWords", "soy", indentingTags.concat( - ["delpackage", "namespace", "alias", "print", "css", "debugger"])); - - CodeMirror.defineMIME("text/x-soy", "soy"); -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/sparql/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/sparql/index.html deleted file mode 100644 index 84ef4d3..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/sparql/index.html +++ /dev/null @@ -1,61 +0,0 @@ -<!doctype html> - -<title>CodeMirror: SPARQL mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../../addon/edit/matchbrackets.js"></script> -<script src="sparql.js"></script> -<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">SPARQL</a> - </ul> -</div> - -<article> -<h2>SPARQL mode</h2> -<form><textarea id="code" name="code"> -PREFIX a: <http://www.w3.org/2000/10/annotation-ns#> -PREFIX dc: <http://purl.org/dc/elements/1.1/> -PREFIX foaf: <http://xmlns.com/foaf/0.1/> -PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> - -# Comment! - -SELECT ?given ?family -WHERE { - { - ?annot a:annotates <http://www.w3.org/TR/rdf-sparql-query/> . - ?annot dc:creator ?c . - OPTIONAL {?c foaf:givenName ?given ; - foaf:familyName ?family } - } UNION { - ?c !foaf:knows/foaf:knows? ?thing. - ?thing rdfs - } MINUS { - ?thing rdfs:label "剛柔流"@jp - } - FILTER isBlank(?c) -} -</textarea></form> - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - mode: "application/sparql-query", - matchBrackets: true - }); - </script> - - <p><strong>MIME types defined:</strong> <code>application/sparql-query</code>.</p> - - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/sparql/sparql.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/sparql/sparql.js deleted file mode 100644 index 095dcca..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/sparql/sparql.js +++ /dev/null @@ -1,180 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("sparql", function(config) { - var indentUnit = config.indentUnit; - var curPunc; - - function wordRegexp(words) { - return new RegExp("^(?:" + words.join("|") + ")$", "i"); - } - var ops = wordRegexp(["str", "lang", "langmatches", "datatype", "bound", "sameterm", "isiri", "isuri", - "iri", "uri", "bnode", "count", "sum", "min", "max", "avg", "sample", - "group_concat", "rand", "abs", "ceil", "floor", "round", "concat", "substr", "strlen", - "replace", "ucase", "lcase", "encode_for_uri", "contains", "strstarts", "strends", - "strbefore", "strafter", "year", "month", "day", "hours", "minutes", "seconds", - "timezone", "tz", "now", "uuid", "struuid", "md5", "sha1", "sha256", "sha384", - "sha512", "coalesce", "if", "strlang", "strdt", "isnumeric", "regex", "exists", - "isblank", "isliteral", "a", "bind"]); - var keywords = wordRegexp(["base", "prefix", "select", "distinct", "reduced", "construct", "describe", - "ask", "from", "named", "where", "order", "limit", "offset", "filter", "optional", - "graph", "by", "asc", "desc", "as", "having", "undef", "values", "group", - "minus", "in", "not", "service", "silent", "using", "insert", "delete", "union", - "true", "false", "with", - "data", "copy", "to", "move", "add", "create", "drop", "clear", "load"]); - var operatorChars = /[*+\-<>=&|\^\/!\?]/; - - function tokenBase(stream, state) { - var ch = stream.next(); - curPunc = null; - if (ch == "$" || ch == "?") { - if(ch == "?" && stream.match(/\s/, false)){ - return "operator"; - } - stream.match(/^[\w\d]*/); - return "variable-2"; - } - else if (ch == "<" && !stream.match(/^[\s\u00a0=]/, false)) { - stream.match(/^[^\s\u00a0>]*>?/); - return "atom"; - } - else if (ch == "\"" || ch == "'") { - state.tokenize = tokenLiteral(ch); - return state.tokenize(stream, state); - } - else if (/[{}\(\),\.;\[\]]/.test(ch)) { - curPunc = ch; - return "bracket"; - } - else if (ch == "#") { - stream.skipToEnd(); - return "comment"; - } - else if (operatorChars.test(ch)) { - stream.eatWhile(operatorChars); - return "operator"; - } - else if (ch == ":") { - stream.eatWhile(/[\w\d\._\-]/); - return "atom"; - } - else if (ch == "@") { - stream.eatWhile(/[a-z\d\-]/i); - return "meta"; - } - else { - stream.eatWhile(/[_\w\d]/); - if (stream.eat(":")) { - stream.eatWhile(/[\w\d_\-]/); - return "atom"; - } - var word = stream.current(); - if (ops.test(word)) - return "builtin"; - else if (keywords.test(word)) - return "keyword"; - else - return "variable"; - } - } - - function tokenLiteral(quote) { - return function(stream, state) { - var escaped = false, ch; - while ((ch = stream.next()) != null) { - if (ch == quote && !escaped) { - state.tokenize = tokenBase; - break; - } - escaped = !escaped && ch == "\\"; - } - return "string"; - }; - } - - function pushContext(state, type, col) { - state.context = {prev: state.context, indent: state.indent, col: col, type: type}; - } - function popContext(state) { - state.indent = state.context.indent; - state.context = state.context.prev; - } - - return { - startState: function() { - return {tokenize: tokenBase, - context: null, - indent: 0, - col: 0}; - }, - - token: function(stream, state) { - if (stream.sol()) { - if (state.context && state.context.align == null) state.context.align = false; - state.indent = stream.indentation(); - } - if (stream.eatSpace()) return null; - var style = state.tokenize(stream, state); - - if (style != "comment" && state.context && state.context.align == null && state.context.type != "pattern") { - state.context.align = true; - } - - if (curPunc == "(") pushContext(state, ")", stream.column()); - else if (curPunc == "[") pushContext(state, "]", stream.column()); - else if (curPunc == "{") pushContext(state, "}", stream.column()); - else if (/[\]\}\)]/.test(curPunc)) { - while (state.context && state.context.type == "pattern") popContext(state); - if (state.context && curPunc == state.context.type) { - popContext(state); - if (curPunc == "}" && state.context && state.context.type == "pattern") - popContext(state); - } - } - else if (curPunc == "." && state.context && state.context.type == "pattern") popContext(state); - else if (/atom|string|variable/.test(style) && state.context) { - if (/[\}\]]/.test(state.context.type)) - pushContext(state, "pattern", stream.column()); - else if (state.context.type == "pattern" && !state.context.align) { - state.context.align = true; - state.context.col = stream.column(); - } - } - - return style; - }, - - indent: function(state, textAfter) { - var firstChar = textAfter && textAfter.charAt(0); - var context = state.context; - if (/[\]\}]/.test(firstChar)) - while (context && context.type == "pattern") context = context.prev; - - var closing = context && firstChar == context.type; - if (!context) - return 0; - else if (context.type == "pattern") - return context.col; - else if (context.align) - return context.col + (closing ? 0 : 1); - else - return context.indent + (closing ? 0 : indentUnit); - }, - - lineComment: "#" - }; -}); - -CodeMirror.defineMIME("application/sparql-query", "sparql"); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/spreadsheet/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/spreadsheet/index.html deleted file mode 100644 index a52f76f..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/spreadsheet/index.html +++ /dev/null @@ -1,42 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Spreadsheet mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../../addon/edit/matchbrackets.js"></script> -<script src="spreadsheet.js"></script> -<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Spreadsheet</a> - </ul> -</div> - -<article> - <h2>Spreadsheet mode</h2> - <form><textarea id="code" name="code">=IF(A1:B2, TRUE, FALSE) / 100</textarea></form> - - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - lineNumbers: true, - matchBrackets: true, - extraKeys: {"Tab": "indentAuto"} - }); - </script> - - <p><strong>MIME types defined:</strong> <code>text/x-spreadsheet</code>.</p> - - <h3>The Spreadsheet Mode</h3> - <p> Created by <a href="https://github.com/robertleeplummerjr">Robert Plummer</a></p> -</article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/spreadsheet/spreadsheet.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/spreadsheet/spreadsheet.js deleted file mode 100644 index 222f297..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/spreadsheet/spreadsheet.js +++ /dev/null @@ -1,112 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { - "use strict"; - - CodeMirror.defineMode("spreadsheet", function () { - return { - startState: function () { - return { - stringType: null, - stack: [] - }; - }, - token: function (stream, state) { - if (!stream) return; - - //check for state changes - if (state.stack.length === 0) { - //strings - if ((stream.peek() == '"') || (stream.peek() == "'")) { - state.stringType = stream.peek(); - stream.next(); // Skip quote - state.stack.unshift("string"); - } - } - - //return state - //stack has - switch (state.stack[0]) { - case "string": - while (state.stack[0] === "string" && !stream.eol()) { - if (stream.peek() === state.stringType) { - stream.next(); // Skip quote - state.stack.shift(); // Clear flag - } else if (stream.peek() === "\\") { - stream.next(); - stream.next(); - } else { - stream.match(/^.[^\\\"\']*/); - } - } - return "string"; - - case "characterClass": - while (state.stack[0] === "characterClass" && !stream.eol()) { - if (!(stream.match(/^[^\]\\]+/) || stream.match(/^\\./))) - state.stack.shift(); - } - return "operator"; - } - - var peek = stream.peek(); - - //no stack - switch (peek) { - case "[": - stream.next(); - state.stack.unshift("characterClass"); - return "bracket"; - case ":": - stream.next(); - return "operator"; - case "\\": - if (stream.match(/\\[a-z]+/)) return "string-2"; - else { - stream.next(); - return "atom"; - } - case ".": - case ",": - case ";": - case "*": - case "-": - case "+": - case "^": - case "<": - case "/": - case "=": - stream.next(); - return "atom"; - case "$": - stream.next(); - return "builtin"; - } - - if (stream.match(/\d+/)) { - if (stream.match(/^\w+/)) return "error"; - return "number"; - } else if (stream.match(/^[a-zA-Z_]\w*/)) { - if (stream.match(/(?=[\(.])/, false)) return "keyword"; - return "variable-2"; - } else if (["[", "]", "(", ")", "{", "}"].indexOf(peek) != -1) { - stream.next(); - return "bracket"; - } else if (!stream.eatSpace()) { - stream.next(); - } - return null; - } - }; - }); - - CodeMirror.defineMIME("text/x-spreadsheet", "spreadsheet"); -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/sql/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/sql/index.html deleted file mode 100644 index dba069d..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/sql/index.html +++ /dev/null @@ -1,86 +0,0 @@ -<!doctype html> - -<title>CodeMirror: SQL Mode for CodeMirror</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css" /> -<script src="../../lib/codemirror.js"></script> -<script src="sql.js"></script> -<link rel="stylesheet" href="../../addon/hint/show-hint.css" /> -<script src="../../addon/hint/show-hint.js"></script> -<script src="../../addon/hint/sql-hint.js"></script> -<style> -.CodeMirror { - border-top: 1px solid black; - border-bottom: 1px solid black; -} - </style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">SQL Mode for CodeMirror</a> - </ul> -</div> - -<article> -<h2>SQL Mode for CodeMirror</h2> -<form> - <textarea id="code" name="code">-- SQL Mode for CodeMirror -SELECT SQL_NO_CACHE DISTINCT - @var1 AS `val1`, @'val2', @global.'sql_mode', - 1.1 AS `float_val`, .14 AS `another_float`, 0.09e3 AS `int_with_esp`, - 0xFA5 AS `hex`, x'fa5' AS `hex2`, 0b101 AS `bin`, b'101' AS `bin2`, - DATE '1994-01-01' AS `sql_date`, { T "1994-01-01" } AS `odbc_date`, - 'my string', _utf8'your string', N'her string', - TRUE, FALSE, UNKNOWN - FROM DUAL - -- space needed after '--' - # 1 line comment - /* multiline - comment! */ - LIMIT 1 OFFSET 0; -</textarea> - </form> - <p><strong>MIME types defined:</strong> - <code><a href="?mime=text/x-sql">text/x-sql</a></code>, - <code><a href="?mime=text/x-mysql">text/x-mysql</a></code>, - <code><a href="?mime=text/x-mariadb">text/x-mariadb</a></code>, - <code><a href="?mime=text/x-cassandra">text/x-cassandra</a></code>, - <code><a href="?mime=text/x-plsql">text/x-plsql</a></code>, - <code><a href="?mime=text/x-mssql">text/x-mssql</a></code>, - <code><a href="?mime=text/x-hive">text/x-hive</a></code>, - <code><a href="?mime=text/x-pgsql">text/x-pgsql</a></code>, - <code><a href="?mime=text/x-gql">text/x-gql</a></code>. - </p> -<script> -window.onload = function() { - var mime = 'text/x-mariadb'; - // get mime type - if (window.location.href.indexOf('mime=') > -1) { - mime = window.location.href.substr(window.location.href.indexOf('mime=') + 5); - } - window.editor = CodeMirror.fromTextArea(document.getElementById('code'), { - mode: mime, - indentWithTabs: true, - smartIndent: true, - lineNumbers: true, - matchBrackets : true, - autofocus: true, - extraKeys: {"Ctrl-Space": "autocomplete"}, - hintOptions: {tables: { - users: {name: null, score: null, birthDate: null}, - countries: {name: null, population: null, size: null} - }} - }); -}; -</script> - -</article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/stex/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/stex/index.html deleted file mode 100644 index 14679da..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/stex/index.html +++ /dev/null @@ -1,110 +0,0 @@ -<!doctype html> - -<title>CodeMirror: sTeX mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="stex.js"></script> -<style>.CodeMirror {background: #f8f8f8;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">sTeX</a> - </ul> -</div> - -<article> -<h2>sTeX mode</h2> -<form><textarea id="code" name="code"> -\begin{module}[id=bbt-size] -\importmodule[balanced-binary-trees]{balanced-binary-trees} -\importmodule[\KWARCslides{dmath/en/cardinality}]{cardinality} - -\begin{frame} - \frametitle{Size Lemma for Balanced Trees} - \begin{itemize} - \item - \begin{assertion}[id=size-lemma,type=lemma] - Let $G=\tup{V,E}$ be a \termref[cd=binary-trees]{balanced binary tree} - of \termref[cd=graph-depth,name=vertex-depth]{depth}$n>i$, then the set - $\defeq{\livar{V}i}{\setst{\inset{v}{V}}{\gdepth{v} = i}}$ of - \termref[cd=graphs-intro,name=node]{nodes} at - \termref[cd=graph-depth,name=vertex-depth]{depth} $i$ has - \termref[cd=cardinality,name=cardinality]{cardinality} $\power2i$. - \end{assertion} - \item - \begin{sproof}[id=size-lemma-pf,proofend=,for=size-lemma]{via induction over the depth $i$.} - \begin{spfcases}{We have to consider two cases} - \begin{spfcase}{$i=0$} - \begin{spfstep}[display=flow] - then $\livar{V}i=\set{\livar{v}r}$, where $\livar{v}r$ is the root, so - $\eq{\card{\livar{V}0},\card{\set{\livar{v}r}},1,\power20}$. - \end{spfstep} - \end{spfcase} - \begin{spfcase}{$i>0$} - \begin{spfstep}[display=flow] - then $\livar{V}{i-1}$ contains $\power2{i-1}$ vertexes - \begin{justification}[method=byIH](IH)\end{justification} - \end{spfstep} - \begin{spfstep} - By the \begin{justification}[method=byDef]definition of a binary - tree\end{justification}, each $\inset{v}{\livar{V}{i-1}}$ is a leaf or has - two children that are at depth $i$. - \end{spfstep} - \begin{spfstep} - As $G$ is \termref[cd=balanced-binary-trees,name=balanced-binary-tree]{balanced} and $\gdepth{G}=n>i$, $\livar{V}{i-1}$ cannot contain - leaves. - \end{spfstep} - \begin{spfstep}[type=conclusion] - Thus $\eq{\card{\livar{V}i},{\atimes[cdot]{2,\card{\livar{V}{i-1}}}},{\atimes[cdot]{2,\power2{i-1}}},\power2i}$. - \end{spfstep} - \end{spfcase} - \end{spfcases} - \end{sproof} - \item - \begin{assertion}[id=fbbt,type=corollary] - A fully balanced tree of depth $d$ has $\power2{d+1}-1$ nodes. - \end{assertion} - \item - \begin{sproof}[for=fbbt,id=fbbt-pf]{} - \begin{spfstep} - Let $\defeq{G}{\tup{V,E}}$ be a fully balanced tree - \end{spfstep} - \begin{spfstep} - Then $\card{V}=\Sumfromto{i}1d{\power2i}= \power2{d+1}-1$. - \end{spfstep} - \end{sproof} - \end{itemize} - \end{frame} -\begin{note} - \begin{omtext}[type=conclusion,for=binary-tree] - This shows that balanced binary trees grow in breadth very quickly, a consequence of - this is that they are very shallow (and this compute very fast), which is the essence of - the next result. - \end{omtext} -\end{note} -\end{module} - -%%% Local Variables: -%%% mode: LaTeX -%%% TeX-master: "all" -%%% End: \end{document} -</textarea></form> - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), {}); - </script> - - <p><strong>MIME types defined:</strong> <code>text/x-stex</code>.</p> - - <p><strong>Parsing/Highlighting Tests:</strong> <a href="../../test/index.html#stex_*">normal</a>, <a href="../../test/index.html#verbose,stex_*">verbose</a>.</p> - - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/stex/stex.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/stex/stex.js deleted file mode 100644 index 835ed46..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/stex/stex.js +++ /dev/null @@ -1,251 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -/* - * Author: Constantin Jucovschi (c.jucovschi@jacobs-university.de) - * Licence: MIT - */ - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { - "use strict"; - - CodeMirror.defineMode("stex", function() { - "use strict"; - - function pushCommand(state, command) { - state.cmdState.push(command); - } - - function peekCommand(state) { - if (state.cmdState.length > 0) { - return state.cmdState[state.cmdState.length - 1]; - } else { - return null; - } - } - - function popCommand(state) { - var plug = state.cmdState.pop(); - if (plug) { - plug.closeBracket(); - } - } - - // returns the non-default plugin closest to the end of the list - function getMostPowerful(state) { - var context = state.cmdState; - for (var i = context.length - 1; i >= 0; i--) { - var plug = context[i]; - if (plug.name == "DEFAULT") { - continue; - } - return plug; - } - return { styleIdentifier: function() { return null; } }; - } - - function addPluginPattern(pluginName, cmdStyle, styles) { - return function () { - this.name = pluginName; - this.bracketNo = 0; - this.style = cmdStyle; - this.styles = styles; - this.argument = null; // \begin and \end have arguments that follow. These are stored in the plugin - - this.styleIdentifier = function() { - return this.styles[this.bracketNo - 1] || null; - }; - this.openBracket = function() { - this.bracketNo++; - return "bracket"; - }; - this.closeBracket = function() {}; - }; - } - - var plugins = {}; - - plugins["importmodule"] = addPluginPattern("importmodule", "tag", ["string", "builtin"]); - plugins["documentclass"] = addPluginPattern("documentclass", "tag", ["", "atom"]); - plugins["usepackage"] = addPluginPattern("usepackage", "tag", ["atom"]); - plugins["begin"] = addPluginPattern("begin", "tag", ["atom"]); - plugins["end"] = addPluginPattern("end", "tag", ["atom"]); - - plugins["DEFAULT"] = function () { - this.name = "DEFAULT"; - this.style = "tag"; - - this.styleIdentifier = this.openBracket = this.closeBracket = function() {}; - }; - - function setState(state, f) { - state.f = f; - } - - // called when in a normal (no environment) context - function normal(source, state) { - var plug; - // Do we look like '\command' ? If so, attempt to apply the plugin 'command' - if (source.match(/^\\[a-zA-Z@]+/)) { - var cmdName = source.current().slice(1); - plug = plugins[cmdName] || plugins["DEFAULT"]; - plug = new plug(); - pushCommand(state, plug); - setState(state, beginParams); - return plug.style; - } - - // escape characters - if (source.match(/^\\[$&%#{}_]/)) { - return "tag"; - } - - // white space control characters - if (source.match(/^\\[,;!\/\\]/)) { - return "tag"; - } - - // find if we're starting various math modes - if (source.match("\\[")) { - setState(state, function(source, state){ return inMathMode(source, state, "\\]"); }); - return "keyword"; - } - if (source.match("$$")) { - setState(state, function(source, state){ return inMathMode(source, state, "$$"); }); - return "keyword"; - } - if (source.match("$")) { - setState(state, function(source, state){ return inMathMode(source, state, "$"); }); - return "keyword"; - } - - var ch = source.next(); - if (ch == "%") { - source.skipToEnd(); - return "comment"; - } else if (ch == '}' || ch == ']') { - plug = peekCommand(state); - if (plug) { - plug.closeBracket(ch); - setState(state, beginParams); - } else { - return "error"; - } - return "bracket"; - } else if (ch == '{' || ch == '[') { - plug = plugins["DEFAULT"]; - plug = new plug(); - pushCommand(state, plug); - return "bracket"; - } else if (/\d/.test(ch)) { - source.eatWhile(/[\w.%]/); - return "atom"; - } else { - source.eatWhile(/[\w\-_]/); - plug = getMostPowerful(state); - if (plug.name == 'begin') { - plug.argument = source.current(); - } - return plug.styleIdentifier(); - } - } - - function inMathMode(source, state, endModeSeq) { - if (source.eatSpace()) { - return null; - } - if (source.match(endModeSeq)) { - setState(state, normal); - return "keyword"; - } - if (source.match(/^\\[a-zA-Z@]+/)) { - return "tag"; - } - if (source.match(/^[a-zA-Z]+/)) { - return "variable-2"; - } - // escape characters - if (source.match(/^\\[$&%#{}_]/)) { - return "tag"; - } - // white space control characters - if (source.match(/^\\[,;!\/]/)) { - return "tag"; - } - // special math-mode characters - if (source.match(/^[\^_&]/)) { - return "tag"; - } - // non-special characters - if (source.match(/^[+\-<>|=,\/@!*:;'"`~#?]/)) { - return null; - } - if (source.match(/^(\d+\.\d*|\d*\.\d+|\d+)/)) { - return "number"; - } - var ch = source.next(); - if (ch == "{" || ch == "}" || ch == "[" || ch == "]" || ch == "(" || ch == ")") { - return "bracket"; - } - - if (ch == "%") { - source.skipToEnd(); - return "comment"; - } - return "error"; - } - - function beginParams(source, state) { - var ch = source.peek(), lastPlug; - if (ch == '{' || ch == '[') { - lastPlug = peekCommand(state); - lastPlug.openBracket(ch); - source.eat(ch); - setState(state, normal); - return "bracket"; - } - if (/[ \t\r]/.test(ch)) { - source.eat(ch); - return null; - } - setState(state, normal); - popCommand(state); - - return normal(source, state); - } - - return { - startState: function() { - return { - cmdState: [], - f: normal - }; - }, - copyState: function(s) { - return { - cmdState: s.cmdState.slice(), - f: s.f - }; - }, - token: function(stream, state) { - return state.f(stream, state); - }, - blankLine: function(state) { - state.f = normal; - state.cmdState.length = 0; - }, - lineComment: "%" - }; - }); - - CodeMirror.defineMIME("text/x-stex", "stex"); - CodeMirror.defineMIME("text/x-latex", "stex"); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/stex/test.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/stex/test.js deleted file mode 100644 index 22f027e..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/stex/test.js +++ /dev/null @@ -1,123 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function() { - var mode = CodeMirror.getMode({tabSize: 4}, "stex"); - function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); } - - MT("word", - "foo"); - - MT("twoWords", - "foo bar"); - - MT("beginEndDocument", - "[tag \\begin][bracket {][atom document][bracket }]", - "[tag \\end][bracket {][atom document][bracket }]"); - - MT("beginEndEquation", - "[tag \\begin][bracket {][atom equation][bracket }]", - " E=mc^2", - "[tag \\end][bracket {][atom equation][bracket }]"); - - MT("beginModule", - "[tag \\begin][bracket {][atom module][bracket }[[]]]"); - - MT("beginModuleId", - "[tag \\begin][bracket {][atom module][bracket }[[]id=bbt-size[bracket ]]]"); - - MT("importModule", - "[tag \\importmodule][bracket [[][string b-b-t][bracket ]]{][builtin b-b-t][bracket }]"); - - MT("importModulePath", - "[tag \\importmodule][bracket [[][tag \\KWARCslides][bracket {][string dmath/en/cardinality][bracket }]]{][builtin card][bracket }]"); - - MT("psForPDF", - "[tag \\PSforPDF][bracket [[][atom 1][bracket ]]{]#1[bracket }]"); - - MT("comment", - "[comment % foo]"); - - MT("tagComment", - "[tag \\item][comment % bar]"); - - MT("commentTag", - " [comment % \\item]"); - - MT("commentLineBreak", - "[comment %]", - "foo"); - - MT("tagErrorCurly", - "[tag \\begin][error }][bracket {]"); - - MT("tagErrorSquare", - "[tag \\item][error ]]][bracket {]"); - - MT("commentCurly", - "[comment % }]"); - - MT("tagHash", - "the [tag \\#] key"); - - MT("tagNumber", - "a [tag \\$][atom 5] stetson"); - - MT("tagPercent", - "[atom 100][tag \\%] beef"); - - MT("tagAmpersand", - "L [tag \\&] N"); - - MT("tagUnderscore", - "foo[tag \\_]bar"); - - MT("tagBracketOpen", - "[tag \\emph][bracket {][tag \\{][bracket }]"); - - MT("tagBracketClose", - "[tag \\emph][bracket {][tag \\}][bracket }]"); - - MT("tagLetterNumber", - "section [tag \\S][atom 1]"); - - MT("textTagNumber", - "para [tag \\P][atom 2]"); - - MT("thinspace", - "x[tag \\,]y"); - - MT("thickspace", - "x[tag \\;]y"); - - MT("negativeThinspace", - "x[tag \\!]y"); - - MT("periodNotSentence", - "J.\\ L.\\ is"); - - MT("periodSentence", - "X[tag \\@]. The"); - - MT("italicCorrection", - "[bracket {][tag \\em] If[tag \\/][bracket }] I"); - - MT("tagBracket", - "[tag \\newcommand][bracket {][tag \\pop][bracket }]"); - - MT("inlineMathTagFollowedByNumber", - "[keyword $][tag \\pi][number 2][keyword $]"); - - MT("inlineMath", - "[keyword $][number 3][variable-2 x][tag ^][number 2.45]-[tag \\sqrt][bracket {][tag \\$\\alpha][bracket }] = [number 2][keyword $] other text"); - - MT("displayMath", - "More [keyword $$]\t[variable-2 S][tag ^][variable-2 n][tag \\sum] [variable-2 i][keyword $$] other text"); - - MT("mathWithComment", - "[keyword $][variable-2 x] [comment % $]", - "[variable-2 y][keyword $] other text"); - - MT("lineBreakArgument", - "[tag \\\\][bracket [[][atom 1cm][bracket ]]]"); -})(); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/stylus/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/stylus/index.html deleted file mode 100644 index 862c18f..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/stylus/index.html +++ /dev/null @@ -1,106 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Stylus mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> -<link rel="stylesheet" href="../../lib/codemirror.css"> -<link rel="stylesheet" href="../../addon/hint/show-hint.css"> -<script src="../../lib/codemirror.js"></script> -<script src="stylus.js"></script> -<script src="../../addon/hint/show-hint.js"></script> -<script src="../../addon/hint/css-hint.js"></script> -<style>.CodeMirror {background: #f8f8f8;} form{margin-bottom: .7em;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Stylus</a> - </ul> -</div> - -<article> -<h2>Stylus mode</h2> -<form><textarea id="code" name="code"> -/* Stylus mode */ - -#id, -.class, -article - font-family Arial, sans-serif - -#id, -.class, -article { - font-family: Arial, sans-serif; -} - -// Variables -font-size-base = 16px -line-height-base = 1.5 -font-family-base = "Helvetica Neue", Helvetica, Arial, sans-serif -text-color = lighten(#000, 20%) - -body - font font-size-base/line-height-base font-family-base - color text-color - -body { - font: 400 16px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif; - color: #333; -} - -// Variables -link-color = darken(#428bca, 6.5%) -link-hover-color = darken(link-color, 15%) -link-decoration = none -link-hover-decoration = false - -// Mixin -tab-focus() - outline thin dotted - outline 5px auto -webkit-focus-ring-color - outline-offset -2px - -a - color link-color - if link-decoration - text-decoration link-decoration - &:hover - &:focus - color link-hover-color - if link-hover-decoration - text-decoration link-hover-decoration - &:focus - tab-focus() - -a { - color: #3782c4; - text-decoration: none; -} -a:hover, -a:focus { - color: #2f6ea7; -} -a:focus { - outline: thin dotted; - outline: 5px auto -webkit-focus-ring-color; - outline-offset: -2px; -} -</textarea> -</form> -<script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - extraKeys: {"Ctrl-Space": "autocomplete"}, - tabSize: 2 - }); -</script> - -<p><strong>MIME types defined:</strong> <code>text/x-styl</code>.</p> -<p>Created by <a href="https://github.com/dmitrykiselyov">Dmitry Kiselyov</a></p> -</article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/swift/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/swift/index.html deleted file mode 100644 index 109f3fd..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/swift/index.html +++ /dev/null @@ -1,88 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Swift mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../../addon/edit/matchbrackets.js"></script> -<script src="./swift.js"></script> -<style> - .CodeMirror { border: 2px inset #dee; } - </style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Swift</a> - </ul> -</div> - -<article> -<h2>Swift mode</h2> -<form><textarea id="code" name="code"> -// -// TipCalculatorModel.swift -// TipCalculator -// -// Created by Main Account on 12/18/14. -// Copyright (c) 2014 Razeware LLC. All rights reserved. -// - -import Foundation - -class TipCalculatorModel { - - var total: Double - var taxPct: Double - var subtotal: Double { - get { - return total / (taxPct + 1) - } - } - - init(total: Double, taxPct: Double) { - self.total = total - self.taxPct = taxPct - } - - func calcTipWithTipPct(tipPct: Double) -> Double { - return subtotal * tipPct - } - - func returnPossibleTips() -> [Int: Double] { - - let possibleTipsInferred = [0.15, 0.18, 0.20] - let possibleTipsExplicit:[Double] = [0.15, 0.18, 0.20] - - var retval = [Int: Double]() - for possibleTip in possibleTipsInferred { - let intPct = Int(possibleTip*100) - retval[intPct] = calcTipWithTipPct(possibleTip) - } - return retval - - } - -} -</textarea></form> - - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - lineNumbers: true, - matchBrackets: true, - mode: "text/x-swift" - }); - </script> - - <p>A simple mode for Swift</p> - - <p><strong>MIME types defined:</strong> <code>text/x-swift</code> (Swift code)</p> - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/swift/swift.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/swift/swift.js deleted file mode 100644 index 3c28ced..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/swift/swift.js +++ /dev/null @@ -1,202 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -// Swift mode created by Michael Kaminsky https://github.com/mkaminsky11 - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") - mod(require("../../lib/codemirror")) - else if (typeof define == "function" && define.amd) - define(["../../lib/codemirror"], mod) - else - mod(CodeMirror) -})(function(CodeMirror) { - "use strict" - - function wordSet(words) { - var set = {} - for (var i = 0; i < words.length; i++) set[words[i]] = true - return set - } - - var keywords = wordSet(["var","let","class","deinit","enum","extension","func","import","init","protocol", - "static","struct","subscript","typealias","as","dynamicType","is","new","super", - "self","Self","Type","__COLUMN__","__FILE__","__FUNCTION__","__LINE__","break","case", - "continue","default","do","else","fallthrough","if","in","for","return","switch", - "where","while","associativity","didSet","get","infix","inout","left","mutating", - "none","nonmutating","operator","override","postfix","precedence","prefix","right", - "set","unowned","weak","willSet"]) - var definingKeywords = wordSet(["var","let","class","enum","extension","func","import","protocol","struct", - "typealias","dynamicType","for"]) - var atoms = wordSet(["Infinity","NaN","undefined","null","true","false","on","off","yes","no","nil","null", - "this","super"]) - var types = wordSet(["String","bool","int","string","double","Double","Int","Float","float","public", - "private","extension"]) - var operators = "+-/*%=|&<>#" - var punc = ";,.(){}[]" - var number = /^-?(?:(?:[\d_]+\.[_\d]*|\.[_\d]+|0o[0-7_\.]+|0b[01_\.]+)(?:e-?[\d_]+)?|0x[\d_a-f\.]+(?:p-?[\d_]+)?)/i - var identifier = /^[_A-Za-z$][_A-Za-z$0-9]*/ - var property = /^[@\.][_A-Za-z$][_A-Za-z$0-9]*/ - var regexp = /^\/(?!\s)(?:\/\/)?(?:\\.|[^\/])+\// - - function tokenBase(stream, state, prev) { - if (stream.sol()) state.indented = stream.indentation() - if (stream.eatSpace()) return null - - var ch = stream.peek() - if (ch == "/") { - if (stream.match("//")) { - stream.skipToEnd() - return "comment" - } - if (stream.match("/*")) { - state.tokenize.push(tokenComment) - return tokenComment(stream, state) - } - if (stream.match(regexp)) return "string-2" - } - if (operators.indexOf(ch) > -1) { - stream.next() - return "operator" - } - if (punc.indexOf(ch) > -1) { - stream.next() - stream.match("..") - return "punctuation" - } - if (ch == '"' || ch == "'") { - stream.next() - var tokenize = tokenString(ch) - state.tokenize.push(tokenize) - return tokenize(stream, state) - } - - if (stream.match(number)) return "number" - if (stream.match(property)) return "property" - - if (stream.match(identifier)) { - var ident = stream.current() - if (keywords.hasOwnProperty(ident)) { - if (definingKeywords.hasOwnProperty(ident)) - state.prev = "define" - return "keyword" - } - if (types.hasOwnProperty(ident)) return "variable-2" - if (atoms.hasOwnProperty(ident)) return "atom" - if (prev == "define") return "def" - return "variable" - } - - stream.next() - return null - } - - function tokenUntilClosingParen() { - var depth = 0 - return function(stream, state, prev) { - var inner = tokenBase(stream, state, prev) - if (inner == "punctuation") { - if (stream.current() == "(") ++depth - else if (stream.current() == ")") { - if (depth == 0) { - stream.backUp(1) - state.tokenize.pop() - return state.tokenize[state.tokenize.length - 1](stream, state) - } - else --depth - } - } - return inner - } - } - - function tokenString(quote) { - return function(stream, state) { - var ch, escaped = false - while (ch = stream.next()) { - if (escaped) { - if (ch == "(") { - state.tokenize.push(tokenUntilClosingParen()) - return "string" - } - escaped = false - } else if (ch == quote) { - break - } else { - escaped = ch == "\\" - } - } - state.tokenize.pop() - return "string" - } - } - - function tokenComment(stream, state) { - stream.match(/^(?:[^*]|\*(?!\/))*/) - if (stream.match("*/")) state.tokenize.pop() - return "comment" - } - - function Context(prev, align, indented) { - this.prev = prev - this.align = align - this.indented = indented - } - - function pushContext(state, stream) { - var align = stream.match(/^\s*($|\/[\/\*])/, false) ? null : stream.column() + 1 - state.context = new Context(state.context, align, state.indented) - } - - function popContext(state) { - if (state.context) { - state.indented = state.context.indented - state.context = state.context.prev - } - } - - CodeMirror.defineMode("swift", function(config) { - return { - startState: function() { - return { - prev: null, - context: null, - indented: 0, - tokenize: [] - } - }, - - token: function(stream, state) { - var prev = state.prev - state.prev = null - var tokenize = state.tokenize[state.tokenize.length - 1] || tokenBase - var style = tokenize(stream, state, prev) - if (!style || style == "comment") state.prev = prev - else if (!state.prev) state.prev = style - - if (style == "punctuation") { - var bracket = /[\(\[\{]|([\]\)\}])/.exec(stream.current()) - if (bracket) (bracket[1] ? popContext : pushContext)(state, stream) - } - - return style - }, - - indent: function(state, textAfter) { - var cx = state.context - if (!cx) return 0 - var closing = /^[\]\}\)]/.test(textAfter) - if (cx.align != null) return cx.align - (closing ? 1 : 0) - return cx.indented + (closing ? 0 : config.indentUnit) - }, - - electricInput: /^\s*[\)\}\]]$/, - - lineComment: "//", - blockCommentStart: "/*", - blockCommentEnd: "*/" - } - }) - - CodeMirror.defineMIME("text/x-swift","swift") -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/tcl/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/tcl/index.html deleted file mode 100644 index ce4ad34..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/tcl/index.html +++ /dev/null @@ -1,142 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Tcl mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<link rel="stylesheet" href="../../theme/night.css"> -<script src="../../lib/codemirror.js"></script> -<script src="tcl.js"></script> -<script src="../../addon/scroll/scrollpastend.js"></script> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Tcl</a> - </ul> -</div> - -<article> -<h2>Tcl mode</h2> -<form><textarea id="code" name="code"> -############################################################################################## -## ## whois.tcl for eggdrop by Ford_Lawnmower irc.geekshed.net #Script-Help ## ## -############################################################################################## -## To use this script you must set channel flag +whois (ie .chanset #chan +whois) ## -############################################################################################## -## ____ __ ########################################### ## -## / __/___ _ ___ _ ___/ /____ ___ ___ ########################################### ## -## / _/ / _ `// _ `// _ // __// _ \ / _ \ ########################################### ## -## /___/ \_, / \_, / \_,_//_/ \___// .__/ ########################################### ## -## /___/ /___/ /_/ ########################################### ## -## ########################################### ## -############################################################################################## -## ## Start Setup. ## ## -############################################################################################## -namespace eval whois { -## change cmdchar to the trigger you want to use ## ## - variable cmdchar "!" -## change command to the word trigger you would like to use. ## ## -## Keep in mind, This will also change the .chanset +/-command ## ## - variable command "whois" -## change textf to the colors you want for the text. ## ## - variable textf "\017\00304" -## change tagf to the colors you want for tags: ## ## - variable tagf "\017\002" -## Change logo to the logo you want at the start of the line. ## ## - variable logo "\017\00304\002\[\00306W\003hois\00304\]\017" -## Change lineout to the results you want. Valid results are channel users modes topic ## ## - variable lineout "channel users modes topic" -############################################################################################## -## ## End Setup. ## ## -############################################################################################## - variable channel "" - setudef flag $whois::command - bind pub -|- [string trimleft $whois::cmdchar]${whois::command} whois::list - bind raw -|- "311" whois::311 - bind raw -|- "312" whois::312 - bind raw -|- "319" whois::319 - bind raw -|- "317" whois::317 - bind raw -|- "313" whois::multi - bind raw -|- "310" whois::multi - bind raw -|- "335" whois::multi - bind raw -|- "301" whois::301 - bind raw -|- "671" whois::multi - bind raw -|- "320" whois::multi - bind raw -|- "401" whois::multi - bind raw -|- "318" whois::318 - bind raw -|- "307" whois::307 -} -proc whois::311 {from key text} { - if {[regexp -- {^[^\s]+\s(.+?)\s(.+?)\s(.+?)\s\*\s\:(.+)$} $text wholematch nick ident host realname]} { - putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Host:${whois::textf} \ - $nick \(${ident}@${host}\) ${whois::tagf}Realname:${whois::textf} $realname" - } -} -proc whois::multi {from key text} { - if {[regexp {\:(.*)$} $text match $key]} { - putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Note:${whois::textf} [subst $$key]" - return 1 - } -} -proc whois::312 {from key text} { - regexp {([^\s]+)\s\:} $text match server - putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Server:${whois::textf} $server" -} -proc whois::319 {from key text} { - if {[regexp {.+\:(.+)$} $text match channels]} { - putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Channels:${whois::textf} $channels" - } -} -proc whois::317 {from key text} { - if {[regexp -- {.*\s(\d+)\s(\d+)\s\:} $text wholematch idle signon]} { - putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Connected:${whois::textf} \ - [ctime $signon] ${whois::tagf}Idle:${whois::textf} [duration $idle]" - } -} -proc whois::301 {from key text} { - if {[regexp {^.+\s[^\s]+\s\:(.*)$} $text match awaymsg]} { - putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Away:${whois::textf} $awaymsg" - } -} -proc whois::318 {from key text} { - namespace eval whois { - variable channel "" - } - variable whois::channel "" -} -proc whois::307 {from key text} { - putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Services:${whois::textf} Registered Nick" -} -proc whois::list {nick host hand chan text} { - if {[lsearch -exact [channel info $chan] "+${whois::command}"] != -1} { - namespace eval whois { - variable channel "" - } - variable whois::channel $chan - putserv "WHOIS $text" - } -} -putlog "\002*Loaded* \017\00304\002\[\00306W\003hois\00304\]\017 \002by \ -Ford_Lawnmower irc.GeekShed.net #Script-Help" -</textarea></form> - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - theme: "night", - lineNumbers: true, - indentUnit: 2, - scrollPastEnd: true, - mode: "text/x-tcl" - }); - </script> - - <p><strong>MIME types defined:</strong> <code>text/x-tcl</code>.</p> - - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/tcl/tcl.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/tcl/tcl.js deleted file mode 100644 index 8c76d52..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/tcl/tcl.js +++ /dev/null @@ -1,139 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -//tcl mode by Ford_Lawnmower :: Based on Velocity mode by Steve O'Hara - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("tcl", function() { - function parseWords(str) { - var obj = {}, words = str.split(" "); - for (var i = 0; i < words.length; ++i) obj[words[i]] = true; - return obj; - } - var keywords = parseWords("Tcl safe after append array auto_execok auto_import auto_load " + - "auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror " + - "binary break catch cd close concat continue dde eof encoding error " + - "eval exec exit expr fblocked fconfigure fcopy file fileevent filename " + - "filename flush for foreach format gets glob global history http if " + - "incr info interp join lappend lindex linsert list llength load lrange " + - "lreplace lsearch lset lsort memory msgcat namespace open package parray " + - "pid pkg::create pkg_mkIndex proc puts pwd re_syntax read regex regexp " + - "registry regsub rename resource return scan seek set socket source split " + - "string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord " + - "tcl_wordBreakAfter tcl_startOfPreviousWord tcl_wordBreakBefore tcltest " + - "tclvars tell time trace unknown unset update uplevel upvar variable " + - "vwait"); - var functions = parseWords("if elseif else and not or eq ne in ni for foreach while switch"); - var isOperatorChar = /[+\-*&%=<>!?^\/\|]/; - function chain(stream, state, f) { - state.tokenize = f; - return f(stream, state); - } - function tokenBase(stream, state) { - var beforeParams = state.beforeParams; - state.beforeParams = false; - var ch = stream.next(); - if ((ch == '"' || ch == "'") && state.inParams) { - return chain(stream, state, tokenString(ch)); - } else if (/[\[\]{}\(\),;\.]/.test(ch)) { - if (ch == "(" && beforeParams) state.inParams = true; - else if (ch == ")") state.inParams = false; - return null; - } else if (/\d/.test(ch)) { - stream.eatWhile(/[\w\.]/); - return "number"; - } else if (ch == "#") { - if (stream.eat("*")) - return chain(stream, state, tokenComment); - if (ch == "#" && stream.match(/ *\[ *\[/)) - return chain(stream, state, tokenUnparsed); - stream.skipToEnd(); - return "comment"; - } else if (ch == '"') { - stream.skipTo(/"/); - return "comment"; - } else if (ch == "$") { - stream.eatWhile(/[$_a-z0-9A-Z\.{:]/); - stream.eatWhile(/}/); - state.beforeParams = true; - return "builtin"; - } else if (isOperatorChar.test(ch)) { - stream.eatWhile(isOperatorChar); - return "comment"; - } else { - stream.eatWhile(/[\w\$_{}\xa1-\uffff]/); - var word = stream.current().toLowerCase(); - if (keywords && keywords.propertyIsEnumerable(word)) - return "keyword"; - if (functions && functions.propertyIsEnumerable(word)) { - state.beforeParams = true; - return "keyword"; - } - return null; - } - } - function tokenString(quote) { - return function(stream, state) { - var escaped = false, next, end = false; - while ((next = stream.next()) != null) { - if (next == quote && !escaped) { - end = true; - break; - } - escaped = !escaped && next == "\\"; - } - if (end) state.tokenize = tokenBase; - return "string"; - }; - } - function tokenComment(stream, state) { - var maybeEnd = false, ch; - while (ch = stream.next()) { - if (ch == "#" && maybeEnd) { - state.tokenize = tokenBase; - break; - } - maybeEnd = (ch == "*"); - } - return "comment"; - } - function tokenUnparsed(stream, state) { - var maybeEnd = 0, ch; - while (ch = stream.next()) { - if (ch == "#" && maybeEnd == 2) { - state.tokenize = tokenBase; - break; - } - if (ch == "]") - maybeEnd++; - else if (ch != " ") - maybeEnd = 0; - } - return "meta"; - } - return { - startState: function() { - return { - tokenize: tokenBase, - beforeParams: false, - inParams: false - }; - }, - token: function(stream, state) { - if (stream.eatSpace()) return null; - return state.tokenize(stream, state); - } - }; -}); -CodeMirror.defineMIME("text/x-tcl", "tcl"); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/textile/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/textile/index.html deleted file mode 100644 index 42b156b..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/textile/index.html +++ /dev/null @@ -1,191 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Textile mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="textile.js"></script> -<style>.CodeMirror {background: #f8f8f8;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/marijnh/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class="active" href="#">Textile</a> - </ul> -</div> - -<article> - <h2>Textile mode</h2> - <form><textarea id="code" name="code"> -h1. Textile Mode - -A paragraph without formatting. - -p. A simple Paragraph. - - -h2. Phrase Modifiers - -Here are some simple phrase modifiers: *strong*, _emphasis_, **bold**, and __italic__. - -A ??citation??, -deleted text-, +inserted text+, some ^superscript^, and some ~subscript~. - -A %span element% and @code element@ - -A "link":http://example.com, a "link with (alt text)":urlAlias - -[urlAlias]http://example.com/ - -An image: !http://example.com/image.png! and an image with a link: !http://example.com/image.png!:http://example.com - -A sentence with a footnote.[123] - -fn123. The footnote is defined here. - -Registered(r), Trademark(tm), and Copyright(c) - - -h2. Headers - -h1. Top level -h2. Second level -h3. Third level -h4. Fourth level -h5. Fifth level -h6. Lowest level - - -h2. Lists - -* An unordered list -** foo bar -*** foo bar -**** foo bar -** foo bar - -# An ordered list -## foo bar -### foo bar -#### foo bar -## foo bar - -- definition list := description -- another item := foo bar -- spanning ines := - foo bar - - foo bar =: - - -h2. Attributes - -Layouts and phrase modifiers can be modified with various kinds of attributes: alignment, CSS ID, CSS class names, language, padding, and CSS styles. - -h3. Alignment - -div<. left align -div>. right align - -h3. CSS ID and class name - -You are a %(my-id#my-classname) rad% person. - -h3. Language - -p[en_CA]. Strange weather, eh? - -h3. Horizontal Padding - -p(())). 2em left padding, 3em right padding - -h3. CSS styling - -p{background: red}. Fire! - - -h2. Table - -|_. Header 1 |_. Header 2 | -|{background:#ddd}. Cell with background| Normal | -|\2. Cell spanning 2 columns | -|/2. Cell spanning 2 rows |(cell-class). one | -| two | -|>. Right aligned cell |<. Left aligned cell | - - -h3. A table with attributes: - -table(#prices). -|Adults|$5| -|Children|$2| - - -h2. Code blocks - -bc. -function factorial(n) { - if (n === 0) { - return 1; - } - return n * factorial(n - 1); -} - -pre.. - ,,,,,, - o#'9MMHb':'-,o, - .oH":HH$' "' ' -*R&o, - dMMM*""'`' .oM"HM?. - ,MMM' "HLbd< ?&H\ - .:MH ."\ ` MM MM&b - . "*H - &MMMMMMMMMH: - . dboo MMMMMMMMMMMM. - . dMMMMMMb *MMMMMMMMMP. - . MMMMMMMP *MMMMMP . - `#MMMMM MM6P , - ' `MMMP" HM*`, - ' :MM .- , - '. `#?.. . ..' - -. . .- - ''-.oo,oo.-'' - -\. _(9> - \==_) - -'= - -h2. Temporarily disabling textile markup - -notextile. Don't __touch this!__ - -Surround text with double-equals to disable textile inline. Example: Use ==*asterisks*== for *strong* text. - - -h2. HTML - -Some block layouts are simply textile versions of HTML tags with the same name, like @div@, @pre@, and @p@. HTML tags can also exist on their own line: - -<section> - <h1>Title</h1> - <p>Hello!</p> -</section> - -</textarea></form> - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - lineNumbers: true, - mode: "text/x-textile" - }); - </script> - - <p><strong>MIME types defined:</strong> <code>text/x-textile</code>.</p> - - <p><strong>Parsing/Highlighting Tests:</strong> <a href="../../test/index.html#textile_*">normal</a>, <a href="../../test/index.html#verbose,textile_*">verbose</a>.</p> - -</article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/textile/test.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/textile/test.js deleted file mode 100644 index 49cdaf9..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/textile/test.js +++ /dev/null @@ -1,417 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function() { - var mode = CodeMirror.getMode({tabSize: 4}, 'textile'); - function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); } - - MT('simpleParagraphs', - 'Some text.', - '', - 'Some more text.'); - - /* - * Phrase Modifiers - */ - - MT('em', - 'foo [em _bar_]'); - - MT('emBoogus', - 'code_mirror'); - - MT('strong', - 'foo [strong *bar*]'); - - MT('strongBogus', - '3 * 3 = 9'); - - MT('italic', - 'foo [em __bar__]'); - - MT('italicBogus', - 'code__mirror'); - - MT('bold', - 'foo [strong **bar**]'); - - MT('boldBogus', - '3 ** 3 = 27'); - - MT('simpleLink', - '[link "CodeMirror":http://codemirror.net]'); - - MT('referenceLink', - '[link "CodeMirror":code_mirror]', - 'Normal Text.', - '[link [[code_mirror]]http://codemirror.net]'); - - MT('footCite', - 'foo bar[qualifier [[1]]]'); - - MT('footCiteBogus', - 'foo bar[[1a2]]'); - - MT('special-characters', - 'Registered [tag (r)], ' + - 'Trademark [tag (tm)], and ' + - 'Copyright [tag (c)] 2008'); - - MT('cite', - "A book is [keyword ??The Count of Monte Cristo??] by Dumas."); - - MT('additionAndDeletion', - 'The news networks declared [negative -Al Gore-] ' + - '[positive +George W. Bush+] the winner in Florida.'); - - MT('subAndSup', - 'f(x, n) = log [builtin ~4~] x [builtin ^n^]'); - - MT('spanAndCode', - 'A [quote %span element%] and [atom @code element@]'); - - MT('spanBogus', - 'Percentage 25% is not a span.'); - - MT('citeBogus', - 'Question? is not a citation.'); - - MT('codeBogus', - 'user@example.com'); - - MT('subBogus', - '~username'); - - MT('supBogus', - 'foo ^ bar'); - - MT('deletionBogus', - '3 - 3 = 0'); - - MT('additionBogus', - '3 + 3 = 6'); - - MT('image', - 'An image: [string !http://www.example.com/image.png!]'); - - MT('imageWithAltText', - 'An image: [string !http://www.example.com/image.png (Alt Text)!]'); - - MT('imageWithUrl', - 'An image: [string !http://www.example.com/image.png!:http://www.example.com/]'); - - /* - * Headers - */ - - MT('h1', - '[header&header-1 h1. foo]'); - - MT('h2', - '[header&header-2 h2. foo]'); - - MT('h3', - '[header&header-3 h3. foo]'); - - MT('h4', - '[header&header-4 h4. foo]'); - - MT('h5', - '[header&header-5 h5. foo]'); - - MT('h6', - '[header&header-6 h6. foo]'); - - MT('h7Bogus', - 'h7. foo'); - - MT('multipleHeaders', - '[header&header-1 h1. Heading 1]', - '', - 'Some text.', - '', - '[header&header-2 h2. Heading 2]', - '', - 'More text.'); - - MT('h1inline', - '[header&header-1 h1. foo ][header&header-1&em _bar_][header&header-1 baz]'); - - /* - * Lists - */ - - MT('ul', - 'foo', - 'bar', - '', - '[variable-2 * foo]', - '[variable-2 * bar]'); - - MT('ulNoBlank', - 'foo', - 'bar', - '[variable-2 * foo]', - '[variable-2 * bar]'); - - MT('ol', - 'foo', - 'bar', - '', - '[variable-2 # foo]', - '[variable-2 # bar]'); - - MT('olNoBlank', - 'foo', - 'bar', - '[variable-2 # foo]', - '[variable-2 # bar]'); - - MT('ulFormatting', - '[variable-2 * ][variable-2&em _foo_][variable-2 bar]', - '[variable-2 * ][variable-2&strong *][variable-2&em&strong _foo_]' + - '[variable-2&strong *][variable-2 bar]', - '[variable-2 * ][variable-2&strong *foo*][variable-2 bar]'); - - MT('olFormatting', - '[variable-2 # ][variable-2&em _foo_][variable-2 bar]', - '[variable-2 # ][variable-2&strong *][variable-2&em&strong _foo_]' + - '[variable-2&strong *][variable-2 bar]', - '[variable-2 # ][variable-2&strong *foo*][variable-2 bar]'); - - MT('ulNested', - '[variable-2 * foo]', - '[variable-3 ** bar]', - '[keyword *** bar]', - '[variable-2 **** bar]', - '[variable-3 ** bar]'); - - MT('olNested', - '[variable-2 # foo]', - '[variable-3 ## bar]', - '[keyword ### bar]', - '[variable-2 #### bar]', - '[variable-3 ## bar]'); - - MT('ulNestedWithOl', - '[variable-2 * foo]', - '[variable-3 ## bar]', - '[keyword *** bar]', - '[variable-2 #### bar]', - '[variable-3 ** bar]'); - - MT('olNestedWithUl', - '[variable-2 # foo]', - '[variable-3 ** bar]', - '[keyword ### bar]', - '[variable-2 **** bar]', - '[variable-3 ## bar]'); - - MT('definitionList', - '[number - coffee := Hot ][number&em _and_][number black]', - '', - 'Normal text.'); - - MT('definitionListSpan', - '[number - coffee :=]', - '', - '[number Hot ][number&em _and_][number black =:]', - '', - 'Normal text.'); - - MT('boo', - '[number - dog := woof woof]', - '[number - cat := meow meow]', - '[number - whale :=]', - '[number Whale noises.]', - '', - '[number Also, ][number&em _splashing_][number . =:]'); - - /* - * Attributes - */ - - MT('divWithAttribute', - '[punctuation div][punctuation&attribute (#my-id)][punctuation . foo bar]'); - - MT('divWithAttributeAnd2emRightPadding', - '[punctuation div][punctuation&attribute (#my-id)((][punctuation . foo bar]'); - - MT('divWithClassAndId', - '[punctuation div][punctuation&attribute (my-class#my-id)][punctuation . foo bar]'); - - MT('paragraphWithCss', - 'p[attribute {color:red;}]. foo bar'); - - MT('paragraphNestedStyles', - 'p. [strong *foo ][strong&em _bar_][strong *]'); - - MT('paragraphWithLanguage', - 'p[attribute [[fr]]]. Parlez-vous français?'); - - MT('paragraphLeftAlign', - 'p[attribute <]. Left'); - - MT('paragraphRightAlign', - 'p[attribute >]. Right'); - - MT('paragraphRightAlign', - 'p[attribute =]. Center'); - - MT('paragraphJustified', - 'p[attribute <>]. Justified'); - - MT('paragraphWithLeftIndent1em', - 'p[attribute (]. Left'); - - MT('paragraphWithRightIndent1em', - 'p[attribute )]. Right'); - - MT('paragraphWithLeftIndent2em', - 'p[attribute ((]. Left'); - - MT('paragraphWithRightIndent2em', - 'p[attribute ))]. Right'); - - MT('paragraphWithLeftIndent3emRightIndent2em', - 'p[attribute ((())]. Right'); - - MT('divFormatting', - '[punctuation div. ][punctuation&strong *foo ]' + - '[punctuation&strong&em _bar_][punctuation&strong *]'); - - MT('phraseModifierAttributes', - 'p[attribute (my-class)]. This is a paragraph that has a class and' + - ' this [em _][em&attribute (#special-phrase)][em emphasized phrase_]' + - ' has an id.'); - - MT('linkWithClass', - '[link "(my-class). This is a link with class":http://redcloth.org]'); - - /* - * Layouts - */ - - MT('paragraphLayouts', - 'p. This is one paragraph.', - '', - 'p. This is another.'); - - MT('div', - '[punctuation div. foo bar]'); - - MT('pre', - '[operator pre. Text]'); - - MT('bq.', - '[bracket bq. foo bar]', - '', - 'Normal text.'); - - MT('footnote', - '[variable fn123. foo ][variable&strong *bar*]'); - - /* - * Spanning Layouts - */ - - MT('bq..ThenParagraph', - '[bracket bq.. foo bar]', - '', - '[bracket More quote.]', - 'p. Normal Text'); - - MT('bq..ThenH1', - '[bracket bq.. foo bar]', - '', - '[bracket More quote.]', - '[header&header-1 h1. Header Text]'); - - MT('bc..ThenParagraph', - '[atom bc.. # Some ruby code]', - '[atom obj = {foo: :bar}]', - '[atom puts obj]', - '', - '[atom obj[[:love]] = "*love*"]', - '[atom puts obj.love.upcase]', - '', - 'p. Normal text.'); - - MT('fn1..ThenParagraph', - '[variable fn1.. foo bar]', - '', - '[variable More.]', - 'p. Normal Text'); - - MT('pre..ThenParagraph', - '[operator pre.. foo bar]', - '', - '[operator More.]', - 'p. Normal Text'); - - /* - * Tables - */ - - MT('table', - '[variable-3&operator |_. name |_. age|]', - '[variable-3 |][variable-3&strong *Walter*][variable-3 | 5 |]', - '[variable-3 |Florence| 6 |]', - '', - 'p. Normal text.'); - - MT('tableWithAttributes', - '[variable-3&operator |_. name |_. age|]', - '[variable-3 |][variable-3&attribute /2.][variable-3 Jim |]', - '[variable-3 |][variable-3&attribute \\2{color: red}.][variable-3 Sam |]'); - - /* - * HTML - */ - - MT('html', - '[comment <div id="wrapper">]', - '[comment <section id="introduction">]', - '', - '[header&header-1 h1. Welcome]', - '', - '[variable-2 * Item one]', - '[variable-2 * Item two]', - '', - '[comment <a href="http://example.com">Example</a>]', - '', - '[comment </section>]', - '[comment </div>]'); - - MT('inlineHtml', - 'I can use HTML directly in my [comment <span class="youbetcha">Textile</span>].'); - - /* - * No-Textile - */ - - MT('notextile', - '[string-2 notextile. *No* formatting]'); - - MT('notextileInline', - 'Use [string-2 ==*asterisks*==] for [strong *strong*] text.'); - - MT('notextileWithPre', - '[operator pre. *No* formatting]'); - - MT('notextileWithSpanningPre', - '[operator pre.. *No* formatting]', - '', - '[operator *No* formatting]'); - - /* Only toggling phrases between non-word chars. */ - - MT('phrase-in-word', - 'foo_bar_baz'); - - MT('phrase-non-word', - '[negative -x-] aaa-bbb ccc-ddd [negative -eee-] fff [negative -ggg-]'); - - MT('phrase-lone-dash', - 'foo - bar - baz'); -})(); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/textile/textile.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/textile/textile.js deleted file mode 100644 index a6f7576..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/textile/textile.js +++ /dev/null @@ -1,469 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") { // CommonJS - mod(require("../../lib/codemirror")); - } else if (typeof define == "function" && define.amd) { // AMD - define(["../../lib/codemirror"], mod); - } else { // Plain browser env - mod(CodeMirror); - } -})(function(CodeMirror) { - "use strict"; - - var TOKEN_STYLES = { - addition: "positive", - attributes: "attribute", - bold: "strong", - cite: "keyword", - code: "atom", - definitionList: "number", - deletion: "negative", - div: "punctuation", - em: "em", - footnote: "variable", - footCite: "qualifier", - header: "header", - html: "comment", - image: "string", - italic: "em", - link: "link", - linkDefinition: "link", - list1: "variable-2", - list2: "variable-3", - list3: "keyword", - notextile: "string-2", - pre: "operator", - p: "property", - quote: "bracket", - span: "quote", - specialChar: "tag", - strong: "strong", - sub: "builtin", - sup: "builtin", - table: "variable-3", - tableHeading: "operator" - }; - - function startNewLine(stream, state) { - state.mode = Modes.newLayout; - state.tableHeading = false; - - if (state.layoutType === "definitionList" && state.spanningLayout && - stream.match(RE("definitionListEnd"), false)) - state.spanningLayout = false; - } - - function handlePhraseModifier(stream, state, ch) { - if (ch === "_") { - if (stream.eat("_")) - return togglePhraseModifier(stream, state, "italic", /__/, 2); - else - return togglePhraseModifier(stream, state, "em", /_/, 1); - } - - if (ch === "*") { - if (stream.eat("*")) { - return togglePhraseModifier(stream, state, "bold", /\*\*/, 2); - } - return togglePhraseModifier(stream, state, "strong", /\*/, 1); - } - - if (ch === "[") { - if (stream.match(/\d+\]/)) state.footCite = true; - return tokenStyles(state); - } - - if (ch === "(") { - var spec = stream.match(/^(r|tm|c)\)/); - if (spec) - return tokenStylesWith(state, TOKEN_STYLES.specialChar); - } - - if (ch === "<" && stream.match(/(\w+)[^>]+>[^<]+<\/\1>/)) - return tokenStylesWith(state, TOKEN_STYLES.html); - - if (ch === "?" && stream.eat("?")) - return togglePhraseModifier(stream, state, "cite", /\?\?/, 2); - - if (ch === "=" && stream.eat("=")) - return togglePhraseModifier(stream, state, "notextile", /==/, 2); - - if (ch === "-" && !stream.eat("-")) - return togglePhraseModifier(stream, state, "deletion", /-/, 1); - - if (ch === "+") - return togglePhraseModifier(stream, state, "addition", /\+/, 1); - - if (ch === "~") - return togglePhraseModifier(stream, state, "sub", /~/, 1); - - if (ch === "^") - return togglePhraseModifier(stream, state, "sup", /\^/, 1); - - if (ch === "%") - return togglePhraseModifier(stream, state, "span", /%/, 1); - - if (ch === "@") - return togglePhraseModifier(stream, state, "code", /@/, 1); - - if (ch === "!") { - var type = togglePhraseModifier(stream, state, "image", /(?:\([^\)]+\))?!/, 1); - stream.match(/^:\S+/); // optional Url portion - return type; - } - return tokenStyles(state); - } - - function togglePhraseModifier(stream, state, phraseModifier, closeRE, openSize) { - var charBefore = stream.pos > openSize ? stream.string.charAt(stream.pos - openSize - 1) : null; - var charAfter = stream.peek(); - if (state[phraseModifier]) { - if ((!charAfter || /\W/.test(charAfter)) && charBefore && /\S/.test(charBefore)) { - var type = tokenStyles(state); - state[phraseModifier] = false; - return type; - } - } else if ((!charBefore || /\W/.test(charBefore)) && charAfter && /\S/.test(charAfter) && - stream.match(new RegExp("^.*\\S" + closeRE.source + "(?:\\W|$)"), false)) { - state[phraseModifier] = true; - state.mode = Modes.attributes; - } - return tokenStyles(state); - }; - - function tokenStyles(state) { - var disabled = textileDisabled(state); - if (disabled) return disabled; - - var styles = []; - if (state.layoutType) styles.push(TOKEN_STYLES[state.layoutType]); - - styles = styles.concat(activeStyles( - state, "addition", "bold", "cite", "code", "deletion", "em", "footCite", - "image", "italic", "link", "span", "strong", "sub", "sup", "table", "tableHeading")); - - if (state.layoutType === "header") - styles.push(TOKEN_STYLES.header + "-" + state.header); - - return styles.length ? styles.join(" ") : null; - } - - function textileDisabled(state) { - var type = state.layoutType; - - switch(type) { - case "notextile": - case "code": - case "pre": - return TOKEN_STYLES[type]; - default: - if (state.notextile) - return TOKEN_STYLES.notextile + (type ? (" " + TOKEN_STYLES[type]) : ""); - return null; - } - } - - function tokenStylesWith(state, extraStyles) { - var disabled = textileDisabled(state); - if (disabled) return disabled; - - var type = tokenStyles(state); - if (extraStyles) - return type ? (type + " " + extraStyles) : extraStyles; - else - return type; - } - - function activeStyles(state) { - var styles = []; - for (var i = 1; i < arguments.length; ++i) { - if (state[arguments[i]]) - styles.push(TOKEN_STYLES[arguments[i]]); - } - return styles; - } - - function blankLine(state) { - var spanningLayout = state.spanningLayout, type = state.layoutType; - - for (var key in state) if (state.hasOwnProperty(key)) - delete state[key]; - - state.mode = Modes.newLayout; - if (spanningLayout) { - state.layoutType = type; - state.spanningLayout = true; - } - } - - var REs = { - cache: {}, - single: { - bc: "bc", - bq: "bq", - definitionList: /- [^(?::=)]+:=+/, - definitionListEnd: /.*=:\s*$/, - div: "div", - drawTable: /\|.*\|/, - foot: /fn\d+/, - header: /h[1-6]/, - html: /\s*<(?:\/)?(\w+)(?:[^>]+)?>(?:[^<]+<\/\1>)?/, - link: /[^"]+":\S/, - linkDefinition: /\[[^\s\]]+\]\S+/, - list: /(?:#+|\*+)/, - notextile: "notextile", - para: "p", - pre: "pre", - table: "table", - tableCellAttributes: /[\/\\]\d+/, - tableHeading: /\|_\./, - tableText: /[^"_\*\[\(\?\+~\^%@|-]+/, - text: /[^!"_=\*\[\(<\?\+~\^%@-]+/ - }, - attributes: { - align: /(?:<>|<|>|=)/, - selector: /\([^\(][^\)]+\)/, - lang: /\[[^\[\]]+\]/, - pad: /(?:\(+|\)+){1,2}/, - css: /\{[^\}]+\}/ - }, - createRe: function(name) { - switch (name) { - case "drawTable": - return REs.makeRe("^", REs.single.drawTable, "$"); - case "html": - return REs.makeRe("^", REs.single.html, "(?:", REs.single.html, ")*", "$"); - case "linkDefinition": - return REs.makeRe("^", REs.single.linkDefinition, "$"); - case "listLayout": - return REs.makeRe("^", REs.single.list, RE("allAttributes"), "*\\s+"); - case "tableCellAttributes": - return REs.makeRe("^", REs.choiceRe(REs.single.tableCellAttributes, - RE("allAttributes")), "+\\."); - case "type": - return REs.makeRe("^", RE("allTypes")); - case "typeLayout": - return REs.makeRe("^", RE("allTypes"), RE("allAttributes"), - "*\\.\\.?", "(\\s+|$)"); - case "attributes": - return REs.makeRe("^", RE("allAttributes"), "+"); - - case "allTypes": - return REs.choiceRe(REs.single.div, REs.single.foot, - REs.single.header, REs.single.bc, REs.single.bq, - REs.single.notextile, REs.single.pre, REs.single.table, - REs.single.para); - - case "allAttributes": - return REs.choiceRe(REs.attributes.selector, REs.attributes.css, - REs.attributes.lang, REs.attributes.align, REs.attributes.pad); - - default: - return REs.makeRe("^", REs.single[name]); - } - }, - makeRe: function() { - var pattern = ""; - for (var i = 0; i < arguments.length; ++i) { - var arg = arguments[i]; - pattern += (typeof arg === "string") ? arg : arg.source; - } - return new RegExp(pattern); - }, - choiceRe: function() { - var parts = [arguments[0]]; - for (var i = 1; i < arguments.length; ++i) { - parts[i * 2 - 1] = "|"; - parts[i * 2] = arguments[i]; - } - - parts.unshift("(?:"); - parts.push(")"); - return REs.makeRe.apply(null, parts); - } - }; - - function RE(name) { - return (REs.cache[name] || (REs.cache[name] = REs.createRe(name))); - } - - var Modes = { - newLayout: function(stream, state) { - if (stream.match(RE("typeLayout"), false)) { - state.spanningLayout = false; - return (state.mode = Modes.blockType)(stream, state); - } - var newMode; - if (!textileDisabled(state)) { - if (stream.match(RE("listLayout"), false)) - newMode = Modes.list; - else if (stream.match(RE("drawTable"), false)) - newMode = Modes.table; - else if (stream.match(RE("linkDefinition"), false)) - newMode = Modes.linkDefinition; - else if (stream.match(RE("definitionList"))) - newMode = Modes.definitionList; - else if (stream.match(RE("html"), false)) - newMode = Modes.html; - } - return (state.mode = (newMode || Modes.text))(stream, state); - }, - - blockType: function(stream, state) { - var match, type; - state.layoutType = null; - - if (match = stream.match(RE("type"))) - type = match[0]; - else - return (state.mode = Modes.text)(stream, state); - - if (match = type.match(RE("header"))) { - state.layoutType = "header"; - state.header = parseInt(match[0][1]); - } else if (type.match(RE("bq"))) { - state.layoutType = "quote"; - } else if (type.match(RE("bc"))) { - state.layoutType = "code"; - } else if (type.match(RE("foot"))) { - state.layoutType = "footnote"; - } else if (type.match(RE("notextile"))) { - state.layoutType = "notextile"; - } else if (type.match(RE("pre"))) { - state.layoutType = "pre"; - } else if (type.match(RE("div"))) { - state.layoutType = "div"; - } else if (type.match(RE("table"))) { - state.layoutType = "table"; - } - - state.mode = Modes.attributes; - return tokenStyles(state); - }, - - text: function(stream, state) { - if (stream.match(RE("text"))) return tokenStyles(state); - - var ch = stream.next(); - if (ch === '"') - return (state.mode = Modes.link)(stream, state); - return handlePhraseModifier(stream, state, ch); - }, - - attributes: function(stream, state) { - state.mode = Modes.layoutLength; - - if (stream.match(RE("attributes"))) - return tokenStylesWith(state, TOKEN_STYLES.attributes); - else - return tokenStyles(state); - }, - - layoutLength: function(stream, state) { - if (stream.eat(".") && stream.eat(".")) - state.spanningLayout = true; - - state.mode = Modes.text; - return tokenStyles(state); - }, - - list: function(stream, state) { - var match = stream.match(RE("list")); - state.listDepth = match[0].length; - var listMod = (state.listDepth - 1) % 3; - if (!listMod) - state.layoutType = "list1"; - else if (listMod === 1) - state.layoutType = "list2"; - else - state.layoutType = "list3"; - - state.mode = Modes.attributes; - return tokenStyles(state); - }, - - link: function(stream, state) { - state.mode = Modes.text; - if (stream.match(RE("link"))) { - stream.match(/\S+/); - return tokenStylesWith(state, TOKEN_STYLES.link); - } - return tokenStyles(state); - }, - - linkDefinition: function(stream, state) { - stream.skipToEnd(); - return tokenStylesWith(state, TOKEN_STYLES.linkDefinition); - }, - - definitionList: function(stream, state) { - stream.match(RE("definitionList")); - - state.layoutType = "definitionList"; - - if (stream.match(/\s*$/)) - state.spanningLayout = true; - else - state.mode = Modes.attributes; - - return tokenStyles(state); - }, - - html: function(stream, state) { - stream.skipToEnd(); - return tokenStylesWith(state, TOKEN_STYLES.html); - }, - - table: function(stream, state) { - state.layoutType = "table"; - return (state.mode = Modes.tableCell)(stream, state); - }, - - tableCell: function(stream, state) { - if (stream.match(RE("tableHeading"))) - state.tableHeading = true; - else - stream.eat("|"); - - state.mode = Modes.tableCellAttributes; - return tokenStyles(state); - }, - - tableCellAttributes: function(stream, state) { - state.mode = Modes.tableText; - - if (stream.match(RE("tableCellAttributes"))) - return tokenStylesWith(state, TOKEN_STYLES.attributes); - else - return tokenStyles(state); - }, - - tableText: function(stream, state) { - if (stream.match(RE("tableText"))) - return tokenStyles(state); - - if (stream.peek() === "|") { // end of cell - state.mode = Modes.tableCell; - return tokenStyles(state); - } - return handlePhraseModifier(stream, state, stream.next()); - } - }; - - CodeMirror.defineMode("textile", function() { - return { - startState: function() { - return { mode: Modes.newLayout }; - }, - token: function(stream, state) { - if (stream.sol()) startNewLine(stream, state); - return state.mode(stream, state); - }, - blankLine: blankLine - }; - }); - - CodeMirror.defineMIME("text/x-textile", "textile"); -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/tiddlywiki/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/tiddlywiki/index.html deleted file mode 100644 index 77dd045..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/tiddlywiki/index.html +++ /dev/null @@ -1,154 +0,0 @@ -<!doctype html> - -<title>CodeMirror: TiddlyWiki mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<link rel="stylesheet" href="tiddlywiki.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../../addon/edit/matchbrackets.js"></script> -<script src="tiddlywiki.js"></script> -<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">TiddlyWiki</a> - </ul> -</div> - -<article> -<h2>TiddlyWiki mode</h2> - - -<div><textarea id="code" name="code"> -!TiddlyWiki Formatting -* Rendered versions can be found at: http://www.tiddlywiki.com/#Reference - -|!Option | !Syntax | -|bold font | ''bold'' | -|italic type | //italic// | -|underlined text | __underlined__ | -|strikethrough text | --strikethrough-- | -|superscript text | super^^script^^ | -|subscript text | sub~~script~~ | -|highlighted text | @@highlighted@@ | -|preformatted text | {{{preformatted}}} | - -!Block Elements -<<< -!Heading 1 - -!!Heading 2 - -!!!Heading 3 - -!!!!Heading 4 - -!!!!!Heading 5 -<<< - -!!Lists -<<< -* unordered list, level 1 -** unordered list, level 2 -*** unordered list, level 3 - -# ordered list, level 1 -## ordered list, level 2 -### unordered list, level 3 - -; definition list, term -: definition list, description -<<< - -!!Blockquotes -<<< -> blockquote, level 1 ->> blockquote, level 2 ->>> blockquote, level 3 - -> blockquote -<<< - -!!Preformatted Text -<<< -{{{ -preformatted (e.g. code) -}}} -<<< - -!!Code Sections -<<< -{{{ -Text style code -}}} - -//{{{ -JS styled code. TiddlyWiki mixed mode should support highlighter switching in the future. -//}}} - -<!--{{{--> -XML styled code. TiddlyWiki mixed mode should support highlighter switching in the future. -<!--}}}--> -<<< - -!!Tables -<<< -|CssClass|k -|!heading column 1|!heading column 2| -|row 1, column 1|row 1, column 2| -|row 2, column 1|row 2, column 2| -|>|COLSPAN| -|ROWSPAN| ... | -|~| ... | -|CssProperty:value;...| ... | -|caption|c - -''Annotation:'' -* The {{{>}}} marker creates a "colspan", causing the current cell to merge with the one to the right. -* The {{{~}}} marker creates a "rowspan", causing the current cell to merge with the one above. -<<< -!!Images /% TODO %/ -cf. [[TiddlyWiki.com|http://www.tiddlywiki.com/#EmbeddedImages]] - -!Hyperlinks -* [[WikiWords|WikiWord]] are automatically transformed to hyperlinks to the respective tiddler -** the automatic transformation can be suppressed by preceding the respective WikiWord with a tilde ({{{~}}}): {{{~WikiWord}}} -* [[PrettyLinks]] are enclosed in square brackets and contain the desired tiddler name: {{{[[tiddler name]]}}} -** optionally, a custom title or description can be added, separated by a pipe character ({{{|}}}): {{{[[title|target]]}}}<br>'''N.B.:''' In this case, the target can also be any website (i.e. URL). - -!Custom Styling -* {{{@@CssProperty:value;CssProperty:value;...@@}}}<br>''N.B.:'' CSS color definitions should use lowercase letters to prevent the inadvertent creation of WikiWords. -* <html><code>{{customCssClass{...}}}</code></html> -* raw HTML can be inserted by enclosing the respective code in HTML tags: {{{<html> ... </html>}}} - -!Special Markers -* {{{<br>}}} forces a manual line break -* {{{----}}} creates a horizontal ruler -* [[HTML entities|http://www.tiddlywiki.com/#HtmlEntities]] -* [[HTML entities local|HtmlEntities]] -* {{{<<macroName>>}}} calls the respective [[macro|Macros]] -* To hide text within a tiddler so that it is not displayed, it can be wrapped in {{{/%}}} and {{{%/}}}.<br/>This can be a useful trick for hiding drafts or annotating complex markup. -* To prevent wiki markup from taking effect for a particular section, that section can be enclosed in three double quotes: e.g. {{{"""WikiWord"""}}}. -</textarea></div> - - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - mode: 'tiddlywiki', - lineNumbers: true, - matchBrackets: true - }); - </script> - - <p>TiddlyWiki mode supports a single configuration.</p> - - <p><strong>MIME types defined:</strong> <code>text/x-tiddlywiki</code>.</p> - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/tiddlywiki/tiddlywiki.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/tiddlywiki/tiddlywiki.js deleted file mode 100644 index 1a3b3bc..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/tiddlywiki/tiddlywiki.js +++ /dev/null @@ -1,308 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -/*** - |''Name''|tiddlywiki.js| - |''Description''|Enables TiddlyWikiy syntax highlighting using CodeMirror| - |''Author''|PMario| - |''Version''|0.1.7| - |''Status''|''stable''| - |''Source''|[[GitHub|https://github.com/pmario/CodeMirror2/blob/tw-syntax/mode/tiddlywiki]]| - |''Documentation''|http://codemirror.tiddlyspace.com/| - |''License''|[[MIT License|http://www.opensource.org/licenses/mit-license.php]]| - |''CoreVersion''|2.5.0| - |''Requires''|codemirror.js| - |''Keywords''|syntax highlighting color code mirror codemirror| - ! Info - CoreVersion parameter is needed for TiddlyWiki only! -***/ - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("tiddlywiki", function () { - // Tokenizer - var textwords = {}; - - var keywords = { - "allTags": true, "closeAll": true, "list": true, - "newJournal": true, "newTiddler": true, - "permaview": true, "saveChanges": true, - "search": true, "slider": true, "tabs": true, - "tag": true, "tagging": true, "tags": true, - "tiddler": true, "timeline": true, - "today": true, "version": true, "option": true, - "with": true, "filter": true - }; - - var isSpaceName = /[\w_\-]/i, - reHR = /^\-\-\-\-+$/, // <hr> - reWikiCommentStart = /^\/\*\*\*$/, // /*** - reWikiCommentStop = /^\*\*\*\/$/, // ***/ - reBlockQuote = /^<<<$/, - - reJsCodeStart = /^\/\/\{\{\{$/, // //{{{ js block start - reJsCodeStop = /^\/\/\}\}\}$/, // //}}} js stop - reXmlCodeStart = /^<!--\{\{\{-->$/, // xml block start - reXmlCodeStop = /^<!--\}\}\}-->$/, // xml stop - - reCodeBlockStart = /^\{\{\{$/, // {{{ TW text div block start - reCodeBlockStop = /^\}\}\}$/, // }}} TW text stop - - reUntilCodeStop = /.*?\}\}\}/; - - function chain(stream, state, f) { - state.tokenize = f; - return f(stream, state); - } - - function tokenBase(stream, state) { - var sol = stream.sol(), ch = stream.peek(); - - state.block = false; // indicates the start of a code block. - - // check start of blocks - if (sol && /[<\/\*{}\-]/.test(ch)) { - if (stream.match(reCodeBlockStart)) { - state.block = true; - return chain(stream, state, twTokenCode); - } - if (stream.match(reBlockQuote)) - return 'quote'; - if (stream.match(reWikiCommentStart) || stream.match(reWikiCommentStop)) - return 'comment'; - if (stream.match(reJsCodeStart) || stream.match(reJsCodeStop) || stream.match(reXmlCodeStart) || stream.match(reXmlCodeStop)) - return 'comment'; - if (stream.match(reHR)) - return 'hr'; - } - - stream.next(); - if (sol && /[\/\*!#;:>|]/.test(ch)) { - if (ch == "!") { // tw header - stream.skipToEnd(); - return "header"; - } - if (ch == "*") { // tw list - stream.eatWhile('*'); - return "comment"; - } - if (ch == "#") { // tw numbered list - stream.eatWhile('#'); - return "comment"; - } - if (ch == ";") { // definition list, term - stream.eatWhile(';'); - return "comment"; - } - if (ch == ":") { // definition list, description - stream.eatWhile(':'); - return "comment"; - } - if (ch == ">") { // single line quote - stream.eatWhile(">"); - return "quote"; - } - if (ch == '|') - return 'header'; - } - - if (ch == '{' && stream.match(/\{\{/)) - return chain(stream, state, twTokenCode); - - // rudimentary html:// file:// link matching. TW knows much more ... - if (/[hf]/i.test(ch) && - /[ti]/i.test(stream.peek()) && - stream.match(/\b(ttps?|tp|ile):\/\/[\-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i)) - return "link"; - - // just a little string indicator, don't want to have the whole string covered - if (ch == '"') - return 'string'; - - if (ch == '~') // _no_ CamelCase indicator should be bold - return 'brace'; - - if (/[\[\]]/.test(ch) && stream.match(ch)) // check for [[..]] - return 'brace'; - - if (ch == "@") { // check for space link. TODO fix @@...@@ highlighting - stream.eatWhile(isSpaceName); - return "link"; - } - - if (/\d/.test(ch)) { // numbers - stream.eatWhile(/\d/); - return "number"; - } - - if (ch == "/") { // tw invisible comment - if (stream.eat("%")) { - return chain(stream, state, twTokenComment); - } else if (stream.eat("/")) { // - return chain(stream, state, twTokenEm); - } - } - - if (ch == "_" && stream.eat("_")) // tw underline - return chain(stream, state, twTokenUnderline); - - // strikethrough and mdash handling - if (ch == "-" && stream.eat("-")) { - // if strikethrough looks ugly, change CSS. - if (stream.peek() != ' ') - return chain(stream, state, twTokenStrike); - // mdash - if (stream.peek() == ' ') - return 'brace'; - } - - if (ch == "'" && stream.eat("'")) // tw bold - return chain(stream, state, twTokenStrong); - - if (ch == "<" && stream.eat("<")) // tw macro - return chain(stream, state, twTokenMacro); - - // core macro handling - stream.eatWhile(/[\w\$_]/); - return textwords.propertyIsEnumerable(stream.current()) ? "keyword" : null - } - - // tw invisible comment - function twTokenComment(stream, state) { - var maybeEnd = false, ch; - while (ch = stream.next()) { - if (ch == "/" && maybeEnd) { - state.tokenize = tokenBase; - break; - } - maybeEnd = (ch == "%"); - } - return "comment"; - } - - // tw strong / bold - function twTokenStrong(stream, state) { - var maybeEnd = false, - ch; - while (ch = stream.next()) { - if (ch == "'" && maybeEnd) { - state.tokenize = tokenBase; - break; - } - maybeEnd = (ch == "'"); - } - return "strong"; - } - - // tw code - function twTokenCode(stream, state) { - var sb = state.block; - - if (sb && stream.current()) { - return "comment"; - } - - if (!sb && stream.match(reUntilCodeStop)) { - state.tokenize = tokenBase; - return "comment"; - } - - if (sb && stream.sol() && stream.match(reCodeBlockStop)) { - state.tokenize = tokenBase; - return "comment"; - } - - stream.next(); - return "comment"; - } - - // tw em / italic - function twTokenEm(stream, state) { - var maybeEnd = false, - ch; - while (ch = stream.next()) { - if (ch == "/" && maybeEnd) { - state.tokenize = tokenBase; - break; - } - maybeEnd = (ch == "/"); - } - return "em"; - } - - // tw underlined text - function twTokenUnderline(stream, state) { - var maybeEnd = false, - ch; - while (ch = stream.next()) { - if (ch == "_" && maybeEnd) { - state.tokenize = tokenBase; - break; - } - maybeEnd = (ch == "_"); - } - return "underlined"; - } - - // tw strike through text looks ugly - // change CSS if needed - function twTokenStrike(stream, state) { - var maybeEnd = false, ch; - - while (ch = stream.next()) { - if (ch == "-" && maybeEnd) { - state.tokenize = tokenBase; - break; - } - maybeEnd = (ch == "-"); - } - return "strikethrough"; - } - - // macro - function twTokenMacro(stream, state) { - if (stream.current() == '<<') { - return 'macro'; - } - - var ch = stream.next(); - if (!ch) { - state.tokenize = tokenBase; - return null; - } - if (ch == ">") { - if (stream.peek() == '>') { - stream.next(); - state.tokenize = tokenBase; - return "macro"; - } - } - - stream.eatWhile(/[\w\$_]/); - return keywords.propertyIsEnumerable(stream.current()) ? "keyword" : null - } - - // Interface - return { - startState: function () { - return {tokenize: tokenBase}; - }, - - token: function (stream, state) { - if (stream.eatSpace()) return null; - var style = state.tokenize(stream, state); - return style; - } - }; -}); - -CodeMirror.defineMIME("text/x-tiddlywiki", "tiddlywiki"); -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/tiki/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/tiki/index.html deleted file mode 100644 index 091c5fb..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/tiki/index.html +++ /dev/null @@ -1,95 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Tiki wiki mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<link rel="stylesheet" href="tiki.css"> -<script src="../../lib/codemirror.js"></script> -<script src="tiki.js"></script> -<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Tiki wiki</a> - </ul> -</div> - -<article> -<h2>Tiki wiki mode</h2> - - -<div><textarea id="code" name="code"> -Headings -!Header 1 -!!Header 2 -!!!Header 3 -!!!!Header 4 -!!!!!Header 5 -!!!!!!Header 6 - -Styling --=titlebar=- -^^ Box on multi -lines -of content^^ -__bold__ -''italic'' -===underline=== -::center:: ---Line Through-- - -Operators -~np~No parse~/np~ - -Link -[link|desc|nocache] - -Wiki -((Wiki)) -((Wiki|desc)) -((Wiki|desc|timeout)) - -Table -||row1 col1|row1 col2|row1 col3 -row2 col1|row2 col2|row2 col3 -row3 col1|row3 col2|row3 col3|| - -Lists: -*bla -**bla-1 -++continue-bla-1 -***bla-2 -++continue-bla-1 -*bla -+continue-bla -#bla -** tra-la-la -+continue-bla -#bla - -Plugin (standard): -{PLUGIN(attr="my attr")} -Plugin Body -{PLUGIN} - -Plugin (inline): -{plugin attr="my attr"} -</textarea></div> - -<script type="text/javascript"> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - mode: 'tiki', - lineNumbers: true - }); -</script> - -</article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/tiki/tiki.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/tiki/tiki.js deleted file mode 100644 index 5e05b1f..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/tiki/tiki.js +++ /dev/null @@ -1,312 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode('tiki', function(config) { - function inBlock(style, terminator, returnTokenizer) { - return function(stream, state) { - while (!stream.eol()) { - if (stream.match(terminator)) { - state.tokenize = inText; - break; - } - stream.next(); - } - - if (returnTokenizer) state.tokenize = returnTokenizer; - - return style; - }; - } - - function inLine(style) { - return function(stream, state) { - while(!stream.eol()) { - stream.next(); - } - state.tokenize = inText; - return style; - }; - } - - function inText(stream, state) { - function chain(parser) { - state.tokenize = parser; - return parser(stream, state); - } - - var sol = stream.sol(); - var ch = stream.next(); - - //non start of line - switch (ch) { //switch is generally much faster than if, so it is used here - case "{": //plugin - stream.eat("/"); - stream.eatSpace(); - stream.eatWhile(/[^\s\u00a0=\"\'\/?(}]/); - state.tokenize = inPlugin; - return "tag"; - case "_": //bold - if (stream.eat("_")) - return chain(inBlock("strong", "__", inText)); - break; - case "'": //italics - if (stream.eat("'")) - return chain(inBlock("em", "''", inText)); - break; - case "(":// Wiki Link - if (stream.eat("(")) - return chain(inBlock("variable-2", "))", inText)); - break; - case "[":// Weblink - return chain(inBlock("variable-3", "]", inText)); - break; - case "|": //table - if (stream.eat("|")) - return chain(inBlock("comment", "||")); - break; - case "-": - if (stream.eat("=")) {//titleBar - return chain(inBlock("header string", "=-", inText)); - } else if (stream.eat("-")) {//deleted - return chain(inBlock("error tw-deleted", "--", inText)); - } - break; - case "=": //underline - if (stream.match("==")) - return chain(inBlock("tw-underline", "===", inText)); - break; - case ":": - if (stream.eat(":")) - return chain(inBlock("comment", "::")); - break; - case "^": //box - return chain(inBlock("tw-box", "^")); - break; - case "~": //np - if (stream.match("np~")) - return chain(inBlock("meta", "~/np~")); - break; - } - - //start of line types - if (sol) { - switch (ch) { - case "!": //header at start of line - if (stream.match('!!!!!')) { - return chain(inLine("header string")); - } else if (stream.match('!!!!')) { - return chain(inLine("header string")); - } else if (stream.match('!!!')) { - return chain(inLine("header string")); - } else if (stream.match('!!')) { - return chain(inLine("header string")); - } else { - return chain(inLine("header string")); - } - break; - case "*": //unordered list line item, or <li /> at start of line - case "#": //ordered list line item, or <li /> at start of line - case "+": //ordered list line item, or <li /> at start of line - return chain(inLine("tw-listitem bracket")); - break; - } - } - - //stream.eatWhile(/[&{]/); was eating up plugins, turned off to act less like html and more like tiki - return null; - } - - var indentUnit = config.indentUnit; - - // Return variables for tokenizers - var pluginName, type; - function inPlugin(stream, state) { - var ch = stream.next(); - var peek = stream.peek(); - - if (ch == "}") { - state.tokenize = inText; - //type = ch == ")" ? "endPlugin" : "selfclosePlugin"; inPlugin - return "tag"; - } else if (ch == "(" || ch == ")") { - return "bracket"; - } else if (ch == "=") { - type = "equals"; - - if (peek == ">") { - ch = stream.next(); - peek = stream.peek(); - } - - //here we detect values directly after equal character with no quotes - if (!/[\'\"]/.test(peek)) { - state.tokenize = inAttributeNoQuote(); - } - //end detect values - - return "operator"; - } else if (/[\'\"]/.test(ch)) { - state.tokenize = inAttribute(ch); - return state.tokenize(stream, state); - } else { - stream.eatWhile(/[^\s\u00a0=\"\'\/?]/); - return "keyword"; - } - } - - function inAttribute(quote) { - return function(stream, state) { - while (!stream.eol()) { - if (stream.next() == quote) { - state.tokenize = inPlugin; - break; - } - } - return "string"; - }; - } - - function inAttributeNoQuote() { - return function(stream, state) { - while (!stream.eol()) { - var ch = stream.next(); - var peek = stream.peek(); - if (ch == " " || ch == "," || /[ )}]/.test(peek)) { - state.tokenize = inPlugin; - break; - } - } - return "string"; -}; - } - -var curState, setStyle; -function pass() { - for (var i = arguments.length - 1; i >= 0; i--) curState.cc.push(arguments[i]); -} - -function cont() { - pass.apply(null, arguments); - return true; -} - -function pushContext(pluginName, startOfLine) { - var noIndent = curState.context && curState.context.noIndent; - curState.context = { - prev: curState.context, - pluginName: pluginName, - indent: curState.indented, - startOfLine: startOfLine, - noIndent: noIndent - }; -} - -function popContext() { - if (curState.context) curState.context = curState.context.prev; -} - -function element(type) { - if (type == "openPlugin") {curState.pluginName = pluginName; return cont(attributes, endplugin(curState.startOfLine));} - else if (type == "closePlugin") { - var err = false; - if (curState.context) { - err = curState.context.pluginName != pluginName; - popContext(); - } else { - err = true; - } - if (err) setStyle = "error"; - return cont(endcloseplugin(err)); - } - else if (type == "string") { - if (!curState.context || curState.context.name != "!cdata") pushContext("!cdata"); - if (curState.tokenize == inText) popContext(); - return cont(); - } - else return cont(); -} - -function endplugin(startOfLine) { - return function(type) { - if ( - type == "selfclosePlugin" || - type == "endPlugin" - ) - return cont(); - if (type == "endPlugin") {pushContext(curState.pluginName, startOfLine); return cont();} - return cont(); - }; -} - -function endcloseplugin(err) { - return function(type) { - if (err) setStyle = "error"; - if (type == "endPlugin") return cont(); - return pass(); - }; -} - -function attributes(type) { - if (type == "keyword") {setStyle = "attribute"; return cont(attributes);} - if (type == "equals") return cont(attvalue, attributes); - return pass(); -} -function attvalue(type) { - if (type == "keyword") {setStyle = "string"; return cont();} - if (type == "string") return cont(attvaluemaybe); - return pass(); -} -function attvaluemaybe(type) { - if (type == "string") return cont(attvaluemaybe); - else return pass(); -} -return { - startState: function() { - return {tokenize: inText, cc: [], indented: 0, startOfLine: true, pluginName: null, context: null}; - }, - token: function(stream, state) { - if (stream.sol()) { - state.startOfLine = true; - state.indented = stream.indentation(); - } - if (stream.eatSpace()) return null; - - setStyle = type = pluginName = null; - var style = state.tokenize(stream, state); - if ((style || type) && style != "comment") { - curState = state; - while (true) { - var comb = state.cc.pop() || element; - if (comb(type || style)) break; - } - } - state.startOfLine = false; - return setStyle || style; - }, - indent: function(state, textAfter) { - var context = state.context; - if (context && context.noIndent) return 0; - if (context && /^{\//.test(textAfter)) - context = context.prev; - while (context && !context.startOfLine) - context = context.prev; - if (context) return context.indent + indentUnit; - else return 0; - }, - electricChars: "/" - }; -}); - -CodeMirror.defineMIME("text/tiki", "tiki"); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/toml/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/toml/index.html deleted file mode 100644 index 90a2a02..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/toml/index.html +++ /dev/null @@ -1,73 +0,0 @@ -<!doctype html> - -<title>CodeMirror: TOML Mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="toml.js"></script> -<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">TOML Mode</a> - </ul> -</div> - -<article> -<h2>TOML Mode</h2> -<form><textarea id="code" name="code"> -# This is a TOML document. Boom. - -title = "TOML Example" - -[owner] -name = "Tom Preston-Werner" -organization = "GitHub" -bio = "GitHub Cofounder & CEO\nLikes tater tots and beer." -dob = 1979-05-27T07:32:00Z # First class dates? Why not? - -[database] -server = "192.168.1.1" -ports = [ 8001, 8001, 8002 ] -connection_max = 5000 -enabled = true - -[servers] - - # You can indent as you please. Tabs or spaces. TOML don't care. - [servers.alpha] - ip = "10.0.0.1" - dc = "eqdc10" - - [servers.beta] - ip = "10.0.0.2" - dc = "eqdc10" - -[clients] -data = [ ["gamma", "delta"], [1, 2] ] - -# Line breaks are OK when inside arrays -hosts = [ - "alpha", - "omega" -] -</textarea></form> - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - mode: {name: "toml"}, - lineNumbers: true - }); - </script> - <h3>The TOML Mode</h3> - <p> Created by Forbes Lindesay.</p> - <p><strong>MIME type defined:</strong> <code>text/x-toml</code>.</p> - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/toml/toml.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/toml/toml.js deleted file mode 100644 index baeca15..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/toml/toml.js +++ /dev/null @@ -1,88 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("toml", function () { - return { - startState: function () { - return { - inString: false, - stringType: "", - lhs: true, - inArray: 0 - }; - }, - token: function (stream, state) { - //check for state changes - if (!state.inString && ((stream.peek() == '"') || (stream.peek() == "'"))) { - state.stringType = stream.peek(); - stream.next(); // Skip quote - state.inString = true; // Update state - } - if (stream.sol() && state.inArray === 0) { - state.lhs = true; - } - //return state - if (state.inString) { - while (state.inString && !stream.eol()) { - if (stream.peek() === state.stringType) { - stream.next(); // Skip quote - state.inString = false; // Clear flag - } else if (stream.peek() === '\\') { - stream.next(); - stream.next(); - } else { - stream.match(/^.[^\\\"\']*/); - } - } - return state.lhs ? "property string" : "string"; // Token style - } else if (state.inArray && stream.peek() === ']') { - stream.next(); - state.inArray--; - return 'bracket'; - } else if (state.lhs && stream.peek() === '[' && stream.skipTo(']')) { - stream.next();//skip closing ] - // array of objects has an extra open & close [] - if (stream.peek() === ']') stream.next(); - return "atom"; - } else if (stream.peek() === "#") { - stream.skipToEnd(); - return "comment"; - } else if (stream.eatSpace()) { - return null; - } else if (state.lhs && stream.eatWhile(function (c) { return c != '=' && c != ' '; })) { - return "property"; - } else if (state.lhs && stream.peek() === "=") { - stream.next(); - state.lhs = false; - return null; - } else if (!state.lhs && stream.match(/^\d\d\d\d[\d\-\:\.T]*Z/)) { - return 'atom'; //date - } else if (!state.lhs && (stream.match('true') || stream.match('false'))) { - return 'atom'; - } else if (!state.lhs && stream.peek() === '[') { - state.inArray++; - stream.next(); - return 'bracket'; - } else if (!state.lhs && stream.match(/^\-?\d+(?:\.\d+)?/)) { - return 'number'; - } else if (!stream.eatSpace()) { - stream.next(); - } - return null; - } - }; -}); - -CodeMirror.defineMIME('text/x-toml', 'toml'); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/tornado/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/tornado/index.html deleted file mode 100644 index 8ee7ef5..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/tornado/index.html +++ /dev/null @@ -1,63 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Tornado template mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../../addon/mode/overlay.js"></script> -<script src="../xml/xml.js"></script> -<script src="../htmlmixed/htmlmixed.js"></script> -<script src="tornado.js"></script> -<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/marijnh/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Tornado</a> - </ul> -</div> - -<article> -<h2>Tornado template mode</h2> -<form><textarea id="code" name="code"> -<!doctype html> -<html> - <head> - <title>My Tornado web application</title> - </head> - <body> - <h1> - {{ title }} - </h1> - <ul class="my-list"> - {% for item in items %} - <li>{% item.name %}</li> - {% empty %} - <li>You have no items in your list.</li> - {% end %} - </ul> - </body> -</html> -</textarea></form> - - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - lineNumbers: true, - mode: "tornado", - indentUnit: 4, - indentWithTabs: true - }); - </script> - - <p>Mode for HTML with embedded Tornado template markup.</p> - - <p><strong>MIME types defined:</strong> <code>text/x-tornado</code></p> - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/tornado/tornado.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/tornado/tornado.js deleted file mode 100644 index dbfbc34..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/tornado/tornado.js +++ /dev/null @@ -1,68 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed"), - require("../../addon/mode/overlay")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror", "../htmlmixed/htmlmixed", - "../../addon/mode/overlay"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { - "use strict"; - - CodeMirror.defineMode("tornado:inner", function() { - var keywords = ["and","as","assert","autoescape","block","break","class","comment","context", - "continue","datetime","def","del","elif","else","end","escape","except", - "exec","extends","false","finally","for","from","global","if","import","in", - "include","is","json_encode","lambda","length","linkify","load","module", - "none","not","or","pass","print","put","raise","raw","return","self","set", - "squeeze","super","true","try","url_escape","while","with","without","xhtml_escape","yield"]; - keywords = new RegExp("^((" + keywords.join(")|(") + "))\\b"); - - function tokenBase (stream, state) { - stream.eatWhile(/[^\{]/); - var ch = stream.next(); - if (ch == "{") { - if (ch = stream.eat(/\{|%|#/)) { - state.tokenize = inTag(ch); - return "tag"; - } - } - } - function inTag (close) { - if (close == "{") { - close = "}"; - } - return function (stream, state) { - var ch = stream.next(); - if ((ch == close) && stream.eat("}")) { - state.tokenize = tokenBase; - return "tag"; - } - if (stream.match(keywords)) { - return "keyword"; - } - return close == "#" ? "comment" : "string"; - }; - } - return { - startState: function () { - return {tokenize: tokenBase}; - }, - token: function (stream, state) { - return state.tokenize(stream, state); - } - }; - }); - - CodeMirror.defineMode("tornado", function(config) { - var htmlBase = CodeMirror.getMode(config, "text/html"); - var tornadoInner = CodeMirror.getMode(config, "tornado:inner"); - return CodeMirror.overlayMode(htmlBase, tornadoInner); - }); - - CodeMirror.defineMIME("text/x-tornado", "tornado"); -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/troff/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/troff/index.html deleted file mode 100644 index 7c5a54e..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/troff/index.html +++ /dev/null @@ -1,146 +0,0 @@ -<!doctype html> - -<title>CodeMirror: troff mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel=stylesheet href=../../lib/codemirror.css> -<script src=../../lib/codemirror.js></script> -<script src="../../addon/edit/matchbrackets.js"></script> -<script src=troff.js></script> -<style type=text/css> - .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;} -</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">troff</a> - </ul> -</div> - -<article> -<h2>troff</h2> - - -<textarea id=code> -'\" t -.\" Title: mkvextract -.TH "MKVEXTRACT" "1" "2015\-02\-28" "MKVToolNix 7\&.7\&.0" "User Commands" -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.SH "NAME" -mkvextract \- extract tracks from Matroska(TM) files into other files -.SH "SYNOPSIS" -.HP \w'\fBmkvextract\fR\ 'u -\fBmkvextract\fR {mode} {source\-filename} [options] [extraction\-spec] -.SH "DESCRIPTION" -.PP -.B mkvextract -extracts specific parts from a -.I Matroska(TM) -file to other useful formats\&. The first argument, -\fBmode\fR, tells -\fBmkvextract\fR(1) -what to extract\&. Currently supported is the extraction of -tracks, -tags, -attachments, -chapters, -CUE sheets, -timecodes -and -cues\&. The second argument is the name of the source file\&. It must be a -Matroska(TM) -file\&. All following arguments are options and extraction specifications; both of which depend on the selected mode\&. -.SS "Common options" -.PP -The following options are available in all modes and only described once in this section\&. -.PP -\fB\-f\fR, \fB\-\-parse\-fully\fR -.RS 4 -Sets the parse mode to \*(Aqfull\*(Aq\&. The default mode does not parse the whole file but uses the meta seek elements for locating the required elements of a source file\&. In 99% of all cases this is enough\&. But for files that do not contain meta seek elements or which are damaged the user might have to use this mode\&. A full scan of a file can take a couple of minutes while a fast scan only takes seconds\&. -.RE -.PP -\fB\-\-command\-line\-charset\fR \fIcharacter\-set\fR -.RS 4 -Sets the character set to convert strings given on the command line from\&. It defaults to the character set given by system\*(Aqs current locale\&. -.RE -.PP -\fB\-\-output\-charset\fR \fIcharacter\-set\fR -.RS 4 -Sets the character set to which strings are converted that are to be output\&. It defaults to the character set given by system\*(Aqs current locale\&. -.RE -.PP -\fB\-r\fR, \fB\-\-redirect\-output\fR \fIfile\-name\fR -.RS 4 -Writes all messages to the file -\fIfile\-name\fR -instead of to the console\&. While this can be done easily with output redirection there are cases in which this option is needed: when the terminal reinterprets the output before writing it to a file\&. The character set set with -\fB\-\-output\-charset\fR -is honored\&. -.RE -.PP -\fB\-\-ui\-language\fR \fIcode\fR -.RS 4 -Forces the translations for the language -\fIcode\fR -to be used (e\&.g\&. \*(Aqde_DE\*(Aq for the German translations)\&. It is preferable to use the environment variables -\fILANG\fR, -\fILC_MESSAGES\fR -and -\fILC_ALL\fR -though\&. Entering \*(Aqlist\*(Aq as the -\fIcode\fR -will cause -\fBmkvextract\fR(1) -to output a list of available translations\&. - -.\" [...] - -.SH "SEE ALSO" -.PP -\fBmkvmerge\fR(1), -\fBmkvinfo\fR(1), -\fBmkvpropedit\fR(1), -\fBmmg\fR(1) -.SH "WWW" -.PP -The latest version can always be found at -\m[blue]\fBthe MKVToolNix homepage\fR\m[]\&\s-2\u[1]\d\s+2\&. -.SH "AUTHOR" -.PP -\(co \fBMoritz Bunkus\fR <\&moritz@bunkus\&.org\&> -.RS 4 -Developer -.RE -.SH "NOTES" -.IP " 1." 4 -the MKVToolNix homepage -.RS 4 -\%https://www.bunkus.org/videotools/mkvtoolnix/ -.RE -</textarea> - -<script> - var editor = CodeMirror.fromTextArea(document.getElementById('code'), { - mode: 'troff', - lineNumbers: true, - matchBrackets: false - }); -</script> - -<p><strong>MIME types defined:</strong> <code>troff</code>.</p> -</article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/troff/troff.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/troff/troff.js deleted file mode 100644 index 86154b6..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/troff/troff.js +++ /dev/null @@ -1,84 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) - define(["../../lib/codemirror"], mod); - else - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode('troff', function() { - - var words = {}; - - function tokenBase(stream) { - if (stream.eatSpace()) return null; - - var sol = stream.sol(); - var ch = stream.next(); - - if (ch === '\\') { - if (stream.match('fB') || stream.match('fR') || stream.match('fI') || - stream.match('u') || stream.match('d') || - stream.match('%') || stream.match('&')) { - return 'string'; - } - if (stream.match('m[')) { - stream.skipTo(']'); - stream.next(); - return 'string'; - } - if (stream.match('s+') || stream.match('s-')) { - stream.eatWhile(/[\d-]/); - return 'string'; - } - if (stream.match('\(') || stream.match('*\(')) { - stream.eatWhile(/[\w-]/); - return 'string'; - } - return 'string'; - } - if (sol && (ch === '.' || ch === '\'')) { - if (stream.eat('\\') && stream.eat('\"')) { - stream.skipToEnd(); - return 'comment'; - } - } - if (sol && ch === '.') { - if (stream.match('B ') || stream.match('I ') || stream.match('R ')) { - return 'attribute'; - } - if (stream.match('TH ') || stream.match('SH ') || stream.match('SS ') || stream.match('HP ')) { - stream.skipToEnd(); - return 'quote'; - } - if ((stream.match(/[A-Z]/) && stream.match(/[A-Z]/)) || (stream.match(/[a-z]/) && stream.match(/[a-z]/))) { - return 'attribute'; - } - } - stream.eatWhile(/[\w-]/); - var cur = stream.current(); - return words.hasOwnProperty(cur) ? words[cur] : null; - } - - function tokenize(stream, state) { - return (state.tokens[0] || tokenBase) (stream, state); - }; - - return { - startState: function() {return {tokens:[]};}, - token: function(stream, state) { - return tokenize(stream, state); - } - }; -}); - -CodeMirror.defineMIME('text/troff', 'troff'); -CodeMirror.defineMIME('text/x-troff', 'troff'); -CodeMirror.defineMIME('application/x-troff', 'troff'); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/ttcn-cfg/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/ttcn-cfg/index.html deleted file mode 100644 index 4a4cd45..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/ttcn-cfg/index.html +++ /dev/null @@ -1,115 +0,0 @@ -<!doctype html> - -<title>CodeMirror: TTCN-CFG mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="ttcn-cfg.js"></script> -<style type="text/css"> - .CodeMirror { - border-top: 1px solid black; - border-bottom: 1px solid black; - } -</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1> - <img id=logo src="../../doc/logo.png"> - </a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="http://en.wikipedia.org/wiki/TTCN">TTCN-CFG</a> - </ul> -</div> -<article> - <h2>TTCN-CFG example</h2> - <div> - <textarea id="ttcn-cfg-code"> -[MODULE_PARAMETERS] -# This section shall contain the values of all parameters that are defined in your TTCN-3 modules. - -[LOGGING] -# In this section you can specify the name of the log file and the classes of events -# you want to log into the file or display on console (standard error). - -LogFile := "logs/%e.%h-%r.%s" -FileMask := LOG_ALL | DEBUG | MATCHING -ConsoleMask := ERROR | WARNING | TESTCASE | STATISTICS | PORTEVENT - -LogSourceInfo := Yes -AppendFile := No -TimeStampFormat := DateTime -LogEventTypes := Yes -SourceInfoFormat := Single -LogEntityName := Yes - -[TESTPORT_PARAMETERS] -# In this section you can specify parameters that are passed to Test Ports. - -[DEFINE] -# In this section you can create macro definitions, -# that can be used in other configuration file sections except [INCLUDE]. - -[INCLUDE] -# To use configuration settings given in other configuration files, -# the configuration files just need to be listed in this section, with their full or relative pathnames. - -[EXTERNAL_COMMANDS] -# This section can define external commands (shell scripts) to be executed by the ETS -# whenever a control part or test case is started or terminated. - -BeginTestCase := "" -EndTestCase := "" -BeginControlPart := "" -EndControlPart := "" - -[EXECUTE] -# In this section you can specify what parts of your test suite you want to execute. - -[GROUPS] -# In this section you can specify groups of hosts. These groups can be used inside the -# [COMPONENTS] section to restrict the creation of certain PTCs to a given set of hosts. - -[COMPONENTS] -# This section consists of rules restricting the location of created PTCs. - -[MAIN_CONTROLLER] -# The options herein control the behavior of MC. - -TCPPort := 0 -KillTimer := 10.0 -NumHCs := 0 -LocalAddress := - </textarea> - </div> - - <script> - var ttcnEditor = CodeMirror.fromTextArea(document.getElementById("ttcn-cfg-code"), { - lineNumbers: true, - matchBrackets: true, - mode: "text/x-ttcn-cfg" - }); - ttcnEditor.setSize(600, 860); - var mac = CodeMirror.keyMap.default == CodeMirror.keyMap.macDefault; - CodeMirror.keyMap.default[(mac ? "Cmd" : "Ctrl") + "-Space"] = "autocomplete"; - </script> - <br/> - <p><strong>Language:</strong> Testing and Test Control Notation - - Configuration files - (<a href="http://en.wikipedia.org/wiki/TTCN">TTCN-CFG</a>) - </p> - <p><strong>MIME types defined:</strong> <code>text/x-ttcn-cfg</code>.</p> - - <br/> - <p>The development of this mode has been sponsored by <a href="http://www.ericsson.com/">Ericsson - </a>.</p> - <p>Coded by Asmelash Tsegay Gebretsadkan </p> -</article> - diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/ttcn-cfg/ttcn-cfg.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/ttcn-cfg/ttcn-cfg.js deleted file mode 100644 index e108051..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/ttcn-cfg/ttcn-cfg.js +++ /dev/null @@ -1,214 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { - "use strict"; - - CodeMirror.defineMode("ttcn-cfg", function(config, parserConfig) { - var indentUnit = config.indentUnit, - keywords = parserConfig.keywords || {}, - fileNCtrlMaskOptions = parserConfig.fileNCtrlMaskOptions || {}, - externalCommands = parserConfig.externalCommands || {}, - multiLineStrings = parserConfig.multiLineStrings, - indentStatements = parserConfig.indentStatements !== false; - var isOperatorChar = /[\|]/; - var curPunc; - - function tokenBase(stream, state) { - var ch = stream.next(); - if (ch == '"' || ch == "'") { - state.tokenize = tokenString(ch); - return state.tokenize(stream, state); - } - if (/[:=]/.test(ch)) { - curPunc = ch; - return "punctuation"; - } - if (ch == "#"){ - stream.skipToEnd(); - return "comment"; - } - if (/\d/.test(ch)) { - stream.eatWhile(/[\w\.]/); - return "number"; - } - if (isOperatorChar.test(ch)) { - stream.eatWhile(isOperatorChar); - return "operator"; - } - if (ch == "["){ - stream.eatWhile(/[\w_\]]/); - return "number sectionTitle"; - } - - stream.eatWhile(/[\w\$_]/); - var cur = stream.current(); - if (keywords.propertyIsEnumerable(cur)) return "keyword"; - if (fileNCtrlMaskOptions.propertyIsEnumerable(cur)) - return "negative fileNCtrlMaskOptions"; - if (externalCommands.propertyIsEnumerable(cur)) return "negative externalCommands"; - - return "variable"; - } - - function tokenString(quote) { - return function(stream, state) { - var escaped = false, next, end = false; - while ((next = stream.next()) != null) { - if (next == quote && !escaped){ - var afterNext = stream.peek(); - //look if the character if the quote is like the B in '10100010'B - if (afterNext){ - afterNext = afterNext.toLowerCase(); - if(afterNext == "b" || afterNext == "h" || afterNext == "o") - stream.next(); - } - end = true; break; - } - escaped = !escaped && next == "\\"; - } - if (end || !(escaped || multiLineStrings)) - state.tokenize = null; - return "string"; - }; - } - - function Context(indented, column, type, align, prev) { - this.indented = indented; - this.column = column; - this.type = type; - this.align = align; - this.prev = prev; - } - function pushContext(state, col, type) { - var indent = state.indented; - if (state.context && state.context.type == "statement") - indent = state.context.indented; - return state.context = new Context(indent, col, type, null, state.context); - } - function popContext(state) { - var t = state.context.type; - if (t == ")" || t == "]" || t == "}") - state.indented = state.context.indented; - return state.context = state.context.prev; - } - - //Interface - return { - startState: function(basecolumn) { - return { - tokenize: null, - context: new Context((basecolumn || 0) - indentUnit, 0, "top", false), - indented: 0, - startOfLine: true - }; - }, - - token: function(stream, state) { - var ctx = state.context; - if (stream.sol()) { - if (ctx.align == null) ctx.align = false; - state.indented = stream.indentation(); - state.startOfLine = true; - } - if (stream.eatSpace()) return null; - curPunc = null; - var style = (state.tokenize || tokenBase)(stream, state); - if (style == "comment") return style; - if (ctx.align == null) ctx.align = true; - - if ((curPunc == ";" || curPunc == ":" || curPunc == ",") - && ctx.type == "statement"){ - popContext(state); - } - else if (curPunc == "{") pushContext(state, stream.column(), "}"); - else if (curPunc == "[") pushContext(state, stream.column(), "]"); - else if (curPunc == "(") pushContext(state, stream.column(), ")"); - else if (curPunc == "}") { - while (ctx.type == "statement") ctx = popContext(state); - if (ctx.type == "}") ctx = popContext(state); - while (ctx.type == "statement") ctx = popContext(state); - } - else if (curPunc == ctx.type) popContext(state); - else if (indentStatements && (((ctx.type == "}" || ctx.type == "top") - && curPunc != ';') || (ctx.type == "statement" - && curPunc == "newstatement"))) - pushContext(state, stream.column(), "statement"); - state.startOfLine = false; - return style; - }, - - electricChars: "{}", - lineComment: "#", - fold: "brace" - }; - }); - - function words(str) { - var obj = {}, words = str.split(" "); - for (var i = 0; i < words.length; ++i) - obj[words[i]] = true; - return obj; - } - - CodeMirror.defineMIME("text/x-ttcn-cfg", { - name: "ttcn-cfg", - keywords: words("Yes No LogFile FileMask ConsoleMask AppendFile" + - " TimeStampFormat LogEventTypes SourceInfoFormat" + - " LogEntityName LogSourceInfo DiskFullAction" + - " LogFileNumber LogFileSize MatchingHints Detailed" + - " Compact SubCategories Stack Single None Seconds" + - " DateTime Time Stop Error Retry Delete TCPPort KillTimer" + - " NumHCs UnixSocketsEnabled LocalAddress"), - fileNCtrlMaskOptions: words("TTCN_EXECUTOR TTCN_ERROR TTCN_WARNING" + - " TTCN_PORTEVENT TTCN_TIMEROP TTCN_VERDICTOP" + - " TTCN_DEFAULTOP TTCN_TESTCASE TTCN_ACTION" + - " TTCN_USER TTCN_FUNCTION TTCN_STATISTICS" + - " TTCN_PARALLEL TTCN_MATCHING TTCN_DEBUG" + - " EXECUTOR ERROR WARNING PORTEVENT TIMEROP" + - " VERDICTOP DEFAULTOP TESTCASE ACTION USER" + - " FUNCTION STATISTICS PARALLEL MATCHING DEBUG" + - " LOG_ALL LOG_NOTHING ACTION_UNQUALIFIED" + - " DEBUG_ENCDEC DEBUG_TESTPORT" + - " DEBUG_UNQUALIFIED DEFAULTOP_ACTIVATE" + - " DEFAULTOP_DEACTIVATE DEFAULTOP_EXIT" + - " DEFAULTOP_UNQUALIFIED ERROR_UNQUALIFIED" + - " EXECUTOR_COMPONENT EXECUTOR_CONFIGDATA" + - " EXECUTOR_EXTCOMMAND EXECUTOR_LOGOPTIONS" + - " EXECUTOR_RUNTIME EXECUTOR_UNQUALIFIED" + - " FUNCTION_RND FUNCTION_UNQUALIFIED" + - " MATCHING_DONE MATCHING_MCSUCCESS" + - " MATCHING_MCUNSUCC MATCHING_MMSUCCESS" + - " MATCHING_MMUNSUCC MATCHING_PCSUCCESS" + - " MATCHING_PCUNSUCC MATCHING_PMSUCCESS" + - " MATCHING_PMUNSUCC MATCHING_PROBLEM" + - " MATCHING_TIMEOUT MATCHING_UNQUALIFIED" + - " PARALLEL_PORTCONN PARALLEL_PORTMAP" + - " PARALLEL_PTC PARALLEL_UNQUALIFIED" + - " PORTEVENT_DUALRECV PORTEVENT_DUALSEND" + - " PORTEVENT_MCRECV PORTEVENT_MCSEND" + - " PORTEVENT_MMRECV PORTEVENT_MMSEND" + - " PORTEVENT_MQUEUE PORTEVENT_PCIN" + - " PORTEVENT_PCOUT PORTEVENT_PMIN" + - " PORTEVENT_PMOUT PORTEVENT_PQUEUE" + - " PORTEVENT_STATE PORTEVENT_UNQUALIFIED" + - " STATISTICS_UNQUALIFIED STATISTICS_VERDICT" + - " TESTCASE_FINISH TESTCASE_START" + - " TESTCASE_UNQUALIFIED TIMEROP_GUARD" + - " TIMEROP_READ TIMEROP_START TIMEROP_STOP" + - " TIMEROP_TIMEOUT TIMEROP_UNQUALIFIED" + - " USER_UNQUALIFIED VERDICTOP_FINAL" + - " VERDICTOP_GETVERDICT VERDICTOP_SETVERDICT" + - " VERDICTOP_UNQUALIFIED WARNING_UNQUALIFIED"), - externalCommands: words("BeginControlPart EndControlPart BeginTestCase" + - " EndTestCase"), - multiLineStrings: true - }); -}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/ttcn/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/ttcn/index.html deleted file mode 100644 index f1ef811..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/ttcn/index.html +++ /dev/null @@ -1,118 +0,0 @@ -<!doctype html> - -<title>CodeMirror: TTCN mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="ttcn.js"></script> -<style type="text/css"> - .CodeMirror { - border-top: 1px solid black; - border-bottom: 1px solid black; - } -</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1> - <img id=logo src="../../doc/logo.png"> - </a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="http://en.wikipedia.org/wiki/TTCN">TTCN</a> - </ul> -</div> -<article> - <h2>TTCN example</h2> - <div> - <textarea id="ttcn-code"> -module Templates { - /* import types from ASN.1 */ - import from Types language "ASN.1:1997" all; - - /* During the conversion phase from ASN.1 to TTCN-3 */ - /* - the minus sign (Message-Type) within the identifiers will be replaced by underscore (Message_Type)*/ - /* - the ASN.1 identifiers matching a TTCN-3 keyword (objid) will be postfixed with an underscore (objid_)*/ - - // simple types - - template SenderID localObjid := objid {itu_t(0) identified_organization(4) etsi(0)}; - - // complex types - - /* ASN.1 Message-Type mapped to TTCN-3 Message_Type */ - template Message receiveMsg(template (present) Message_Type p_messageType) := { - header := p_messageType, - body := ? - } - - /* ASN.1 objid mapped to TTCN-3 objid_ */ - template Message sendInviteMsg := { - header := inviteType, - body := { - /* optional fields may be assigned by omit or may be ignored/skipped */ - description := "Invite Message", - data := 'FF'O, - objid_ := localObjid - } - } - - template Message sendAcceptMsg modifies sendInviteMsg := { - header := acceptType, - body := { - description := "Accept Message" - } - }; - - template Message sendErrorMsg modifies sendInviteMsg := { - header := errorType, - body := { - description := "Error Message" - } - }; - - template Message expectedErrorMsg := { - header := errorType, - body := ? - }; - - template Message expectedInviteMsg modifies expectedErrorMsg := { - header := inviteType - }; - - template Message expectedAcceptMsg modifies expectedErrorMsg := { - header := acceptType - }; - -} with { encode "BER:1997" } - </textarea> - </div> - - <script> - var ttcnEditor = CodeMirror.fromTextArea(document.getElementById("ttcn-code"), { - lineNumbers: true, - matchBrackets: true, - mode: "text/x-ttcn" - }); - ttcnEditor.setSize(600, 860); - var mac = CodeMirror.keyMap.default == CodeMirror.keyMap.macDefault; - CodeMirror.keyMap.default[(mac ? "Cmd" : "Ctrl") + "-Space"] = "autocomplete"; - </script> - <br/> - <p><strong>Language:</strong> Testing and Test Control Notation - (<a href="http://en.wikipedia.org/wiki/TTCN">TTCN</a>) - </p> - <p><strong>MIME types defined:</strong> <code>text/x-ttcn, - text/x-ttcn3, text/x-ttcnpp</code>.</p> - <br/> - <p>The development of this mode has been sponsored by <a href="http://www.ericsson.com/">Ericsson - </a>.</p> - <p>Coded by Asmelash Tsegay Gebretsadkan </p> -</article> - diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/ttcn/ttcn.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/ttcn/ttcn.js deleted file mode 100644 index 3051851..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/ttcn/ttcn.js +++ /dev/null @@ -1,283 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { - "use strict"; - - CodeMirror.defineMode("ttcn", function(config, parserConfig) { - var indentUnit = config.indentUnit, - keywords = parserConfig.keywords || {}, - builtin = parserConfig.builtin || {}, - timerOps = parserConfig.timerOps || {}, - portOps = parserConfig.portOps || {}, - configOps = parserConfig.configOps || {}, - verdictOps = parserConfig.verdictOps || {}, - sutOps = parserConfig.sutOps || {}, - functionOps = parserConfig.functionOps || {}, - - verdictConsts = parserConfig.verdictConsts || {}, - booleanConsts = parserConfig.booleanConsts || {}, - otherConsts = parserConfig.otherConsts || {}, - - types = parserConfig.types || {}, - visibilityModifiers = parserConfig.visibilityModifiers || {}, - templateMatch = parserConfig.templateMatch || {}, - multiLineStrings = parserConfig.multiLineStrings, - indentStatements = parserConfig.indentStatements !== false; - var isOperatorChar = /[+\-*&@=<>!\/]/; - var curPunc; - - function tokenBase(stream, state) { - var ch = stream.next(); - - if (ch == '"' || ch == "'") { - state.tokenize = tokenString(ch); - return state.tokenize(stream, state); - } - if (/[\[\]{}\(\),;\\:\?\.]/.test(ch)) { - curPunc = ch; - return "punctuation"; - } - if (ch == "#"){ - stream.skipToEnd(); - return "atom preprocessor"; - } - if (ch == "%"){ - stream.eatWhile(/\b/); - return "atom ttcn3Macros"; - } - if (/\d/.test(ch)) { - stream.eatWhile(/[\w\.]/); - return "number"; - } - if (ch == "/") { - if (stream.eat("*")) { - state.tokenize = tokenComment; - return tokenComment(stream, state); - } - if (stream.eat("/")) { - stream.skipToEnd(); - return "comment"; - } - } - if (isOperatorChar.test(ch)) { - if(ch == "@"){ - if(stream.match("try") || stream.match("catch") - || stream.match("lazy")){ - return "keyword"; - } - } - stream.eatWhile(isOperatorChar); - return "operator"; - } - stream.eatWhile(/[\w\$_\xa1-\uffff]/); - var cur = stream.current(); - - if (keywords.propertyIsEnumerable(cur)) return "keyword"; - if (builtin.propertyIsEnumerable(cur)) return "builtin"; - - if (timerOps.propertyIsEnumerable(cur)) return "def timerOps"; - if (configOps.propertyIsEnumerable(cur)) return "def configOps"; - if (verdictOps.propertyIsEnumerable(cur)) return "def verdictOps"; - if (portOps.propertyIsEnumerable(cur)) return "def portOps"; - if (sutOps.propertyIsEnumerable(cur)) return "def sutOps"; - if (functionOps.propertyIsEnumerable(cur)) return "def functionOps"; - - if (verdictConsts.propertyIsEnumerable(cur)) return "string verdictConsts"; - if (booleanConsts.propertyIsEnumerable(cur)) return "string booleanConsts"; - if (otherConsts.propertyIsEnumerable(cur)) return "string otherConsts"; - - if (types.propertyIsEnumerable(cur)) return "builtin types"; - if (visibilityModifiers.propertyIsEnumerable(cur)) - return "builtin visibilityModifiers"; - if (templateMatch.propertyIsEnumerable(cur)) return "atom templateMatch"; - - return "variable"; - } - - function tokenString(quote) { - return function(stream, state) { - var escaped = false, next, end = false; - while ((next = stream.next()) != null) { - if (next == quote && !escaped){ - var afterQuote = stream.peek(); - //look if the character after the quote is like the B in '10100010'B - if (afterQuote){ - afterQuote = afterQuote.toLowerCase(); - if(afterQuote == "b" || afterQuote == "h" || afterQuote == "o") - stream.next(); - } - end = true; break; - } - escaped = !escaped && next == "\\"; - } - if (end || !(escaped || multiLineStrings)) - state.tokenize = null; - return "string"; - }; - } - - function tokenComment(stream, state) { - var maybeEnd = false, ch; - while (ch = stream.next()) { - if (ch == "/" && maybeEnd) { - state.tokenize = null; - break; - } - maybeEnd = (ch == "*"); - } - return "comment"; - } - - function Context(indented, column, type, align, prev) { - this.indented = indented; - this.column = column; - this.type = type; - this.align = align; - this.prev = prev; - } - - function pushContext(state, col, type) { - var indent = state.indented; - if (state.context && state.context.type == "statement") - indent = state.context.indented; - return state.context = new Context(indent, col, type, null, state.context); - } - - function popContext(state) { - var t = state.context.type; - if (t == ")" || t == "]" || t == "}") - state.indented = state.context.indented; - return state.context = state.context.prev; - } - - //Interface - return { - startState: function(basecolumn) { - return { - tokenize: null, - context: new Context((basecolumn || 0) - indentUnit, 0, "top", false), - indented: 0, - startOfLine: true - }; - }, - - token: function(stream, state) { - var ctx = state.context; - if (stream.sol()) { - if (ctx.align == null) ctx.align = false; - state.indented = stream.indentation(); - state.startOfLine = true; - } - if (stream.eatSpace()) return null; - curPunc = null; - var style = (state.tokenize || tokenBase)(stream, state); - if (style == "comment") return style; - if (ctx.align == null) ctx.align = true; - - if ((curPunc == ";" || curPunc == ":" || curPunc == ",") - && ctx.type == "statement"){ - popContext(state); - } - else if (curPunc == "{") pushContext(state, stream.column(), "}"); - else if (curPunc == "[") pushContext(state, stream.column(), "]"); - else if (curPunc == "(") pushContext(state, stream.column(), ")"); - else if (curPunc == "}") { - while (ctx.type == "statement") ctx = popContext(state); - if (ctx.type == "}") ctx = popContext(state); - while (ctx.type == "statement") ctx = popContext(state); - } - else if (curPunc == ctx.type) popContext(state); - else if (indentStatements && - (((ctx.type == "}" || ctx.type == "top") && curPunc != ';') || - (ctx.type == "statement" && curPunc == "newstatement"))) - pushContext(state, stream.column(), "statement"); - - state.startOfLine = false; - - return style; - }, - - electricChars: "{}", - blockCommentStart: "/*", - blockCommentEnd: "*/", - lineComment: "//", - fold: "brace" - }; - }); - - function words(str) { - var obj = {}, words = str.split(" "); - for (var i = 0; i < words.length; ++i) obj[words[i]] = true; - return obj; - } - - function def(mimes, mode) { - if (typeof mimes == "string") mimes = [mimes]; - var words = []; - function add(obj) { - if (obj) for (var prop in obj) if (obj.hasOwnProperty(prop)) - words.push(prop); - } - - add(mode.keywords); - add(mode.builtin); - add(mode.timerOps); - add(mode.portOps); - - if (words.length) { - mode.helperType = mimes[0]; - CodeMirror.registerHelper("hintWords", mimes[0], words); - } - - for (var i = 0; i < mimes.length; ++i) - CodeMirror.defineMIME(mimes[i], mode); - } - - def(["text/x-ttcn", "text/x-ttcn3", "text/x-ttcnpp"], { - name: "ttcn", - keywords: words("activate address alive all alt altstep and and4b any" + - " break case component const continue control deactivate" + - " display do else encode enumerated except exception" + - " execute extends extension external for from function" + - " goto group if import in infinity inout interleave" + - " label language length log match message mixed mod" + - " modifies module modulepar mtc noblock not not4b nowait" + - " of on optional or or4b out override param pattern port" + - " procedure record recursive rem repeat return runs select" + - " self sender set signature system template testcase to" + - " type union value valueof var variant while with xor xor4b"), - builtin: words("bit2hex bit2int bit2oct bit2str char2int char2oct encvalue" + - " decomp decvalue float2int float2str hex2bit hex2int" + - " hex2oct hex2str int2bit int2char int2float int2hex" + - " int2oct int2str int2unichar isbound ischosen ispresent" + - " isvalue lengthof log2str oct2bit oct2char oct2hex oct2int" + - " oct2str regexp replace rnd sizeof str2bit str2float" + - " str2hex str2int str2oct substr unichar2int unichar2char" + - " enum2int"), - types: words("anytype bitstring boolean char charstring default float" + - " hexstring integer objid octetstring universal verdicttype timer"), - timerOps: words("read running start stop timeout"), - portOps: words("call catch check clear getcall getreply halt raise receive" + - " reply send trigger"), - configOps: words("create connect disconnect done kill killed map unmap"), - verdictOps: words("getverdict setverdict"), - sutOps: words("action"), - functionOps: words("apply derefers refers"), - - verdictConsts: words("error fail inconc none pass"), - booleanConsts: words("true false"), - otherConsts: words("null NULL omit"), - - visibilityModifiers: words("private public friend"), - templateMatch: words("complement ifpresent subset superset permutation"), - multiLineStrings: true - }); -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/turtle/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/turtle/index.html deleted file mode 100644 index a4962b6..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/turtle/index.html +++ /dev/null @@ -1,50 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Turtle mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="turtle.js"></script> -<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Turtle</a> - </ul> -</div> - -<article> -<h2>Turtle mode</h2> -<form><textarea id="code" name="code"> -@prefix foaf: <http://xmlns.com/foaf/0.1/> . -@prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> . -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . - -<http://purl.org/net/bsletten> - a foaf:Person; - foaf:interest <http://www.w3.org/2000/01/sw/>; - foaf:based_near [ - geo:lat "34.0736111" ; - geo:lon "-118.3994444" - ] - -</textarea></form> - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - mode: "text/turtle", - matchBrackets: true - }); - </script> - - <p><strong>MIME types defined:</strong> <code>text/turtle</code>.</p> - - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/turtle/turtle.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/turtle/turtle.js deleted file mode 100644 index 0988f0a..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/turtle/turtle.js +++ /dev/null @@ -1,162 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("turtle", function(config) { - var indentUnit = config.indentUnit; - var curPunc; - - function wordRegexp(words) { - return new RegExp("^(?:" + words.join("|") + ")$", "i"); - } - var ops = wordRegexp([]); - var keywords = wordRegexp(["@prefix", "@base", "a"]); - var operatorChars = /[*+\-<>=&|]/; - - function tokenBase(stream, state) { - var ch = stream.next(); - curPunc = null; - if (ch == "<" && !stream.match(/^[\s\u00a0=]/, false)) { - stream.match(/^[^\s\u00a0>]*>?/); - return "atom"; - } - else if (ch == "\"" || ch == "'") { - state.tokenize = tokenLiteral(ch); - return state.tokenize(stream, state); - } - else if (/[{}\(\),\.;\[\]]/.test(ch)) { - curPunc = ch; - return null; - } - else if (ch == "#") { - stream.skipToEnd(); - return "comment"; - } - else if (operatorChars.test(ch)) { - stream.eatWhile(operatorChars); - return null; - } - else if (ch == ":") { - return "operator"; - } else { - stream.eatWhile(/[_\w\d]/); - if(stream.peek() == ":") { - return "variable-3"; - } else { - var word = stream.current(); - - if(keywords.test(word)) { - return "meta"; - } - - if(ch >= "A" && ch <= "Z") { - return "comment"; - } else { - return "keyword"; - } - } - var word = stream.current(); - if (ops.test(word)) - return null; - else if (keywords.test(word)) - return "meta"; - else - return "variable"; - } - } - - function tokenLiteral(quote) { - return function(stream, state) { - var escaped = false, ch; - while ((ch = stream.next()) != null) { - if (ch == quote && !escaped) { - state.tokenize = tokenBase; - break; - } - escaped = !escaped && ch == "\\"; - } - return "string"; - }; - } - - function pushContext(state, type, col) { - state.context = {prev: state.context, indent: state.indent, col: col, type: type}; - } - function popContext(state) { - state.indent = state.context.indent; - state.context = state.context.prev; - } - - return { - startState: function() { - return {tokenize: tokenBase, - context: null, - indent: 0, - col: 0}; - }, - - token: function(stream, state) { - if (stream.sol()) { - if (state.context && state.context.align == null) state.context.align = false; - state.indent = stream.indentation(); - } - if (stream.eatSpace()) return null; - var style = state.tokenize(stream, state); - - if (style != "comment" && state.context && state.context.align == null && state.context.type != "pattern") { - state.context.align = true; - } - - if (curPunc == "(") pushContext(state, ")", stream.column()); - else if (curPunc == "[") pushContext(state, "]", stream.column()); - else if (curPunc == "{") pushContext(state, "}", stream.column()); - else if (/[\]\}\)]/.test(curPunc)) { - while (state.context && state.context.type == "pattern") popContext(state); - if (state.context && curPunc == state.context.type) popContext(state); - } - else if (curPunc == "." && state.context && state.context.type == "pattern") popContext(state); - else if (/atom|string|variable/.test(style) && state.context) { - if (/[\}\]]/.test(state.context.type)) - pushContext(state, "pattern", stream.column()); - else if (state.context.type == "pattern" && !state.context.align) { - state.context.align = true; - state.context.col = stream.column(); - } - } - - return style; - }, - - indent: function(state, textAfter) { - var firstChar = textAfter && textAfter.charAt(0); - var context = state.context; - if (/[\]\}]/.test(firstChar)) - while (context && context.type == "pattern") context = context.prev; - - var closing = context && firstChar == context.type; - if (!context) - return 0; - else if (context.type == "pattern") - return context.col; - else if (context.align) - return context.col + (closing ? 0 : 1); - else - return context.indent + (closing ? 0 : indentUnit); - }, - - lineComment: "#" - }; -}); - -CodeMirror.defineMIME("text/turtle", "turtle"); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/twig/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/twig/index.html deleted file mode 100644 index 02493a5..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/twig/index.html +++ /dev/null @@ -1,45 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Twig mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="twig.js"></script> -<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Twig</a> - </ul> -</div> - -<article> -<h2>Twig mode</h2> -<form><textarea id="code" name="code"> -{% extends "layout.twig" %} -{% block title %}CodeMirror: Twig mode{% endblock %} -{# this is a comment #} -{% block content %} - {% for foo in bar if foo.baz is divisible by(3) %} - Hello {{ foo.world }} - {% else %} - {% set msg = "Result not found" %} - {% include "empty.twig" with { message: msg } %} - {% endfor %} -{% endblock %} -</textarea></form> - <script> - var editor = - CodeMirror.fromTextArea(document.getElementById("code"), {mode: - {name: "twig", htmlMode: true}}); - </script> - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/twig/twig.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/twig/twig.js deleted file mode 100644 index 1f2854b..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/twig/twig.js +++ /dev/null @@ -1,141 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror"), require("../../addon/mode/multiplex")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror", "../../addon/mode/multiplex"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { - "use strict"; - - CodeMirror.defineMode("twig:inner", function() { - var keywords = ["and", "as", "autoescape", "endautoescape", "block", "do", "endblock", "else", "elseif", "extends", "for", "endfor", "embed", "endembed", "filter", "endfilter", "flush", "from", "if", "endif", "in", "is", "include", "import", "not", "or", "set", "spaceless", "endspaceless", "with", "endwith", "trans", "endtrans", "blocktrans", "endblocktrans", "macro", "endmacro", "use", "verbatim", "endverbatim"], - operator = /^[+\-*&%=<>!?|~^]/, - sign = /^[:\[\(\{]/, - atom = ["true", "false", "null", "empty", "defined", "divisibleby", "divisible by", "even", "odd", "iterable", "sameas", "same as"], - number = /^(\d[+\-\*\/])?\d+(\.\d+)?/; - - keywords = new RegExp("((" + keywords.join(")|(") + "))\\b"); - atom = new RegExp("((" + atom.join(")|(") + "))\\b"); - - function tokenBase (stream, state) { - var ch = stream.peek(); - - //Comment - if (state.incomment) { - if (!stream.skipTo("#}")) { - stream.skipToEnd(); - } else { - stream.eatWhile(/\#|}/); - state.incomment = false; - } - return "comment"; - //Tag - } else if (state.intag) { - //After operator - if (state.operator) { - state.operator = false; - if (stream.match(atom)) { - return "atom"; - } - if (stream.match(number)) { - return "number"; - } - } - //After sign - if (state.sign) { - state.sign = false; - if (stream.match(atom)) { - return "atom"; - } - if (stream.match(number)) { - return "number"; - } - } - - if (state.instring) { - if (ch == state.instring) { - state.instring = false; - } - stream.next(); - return "string"; - } else if (ch == "'" || ch == '"') { - state.instring = ch; - stream.next(); - return "string"; - } else if (stream.match(state.intag + "}") || stream.eat("-") && stream.match(state.intag + "}")) { - state.intag = false; - return "tag"; - } else if (stream.match(operator)) { - state.operator = true; - return "operator"; - } else if (stream.match(sign)) { - state.sign = true; - } else { - if (stream.eat(" ") || stream.sol()) { - if (stream.match(keywords)) { - return "keyword"; - } - if (stream.match(atom)) { - return "atom"; - } - if (stream.match(number)) { - return "number"; - } - if (stream.sol()) { - stream.next(); - } - } else { - stream.next(); - } - - } - return "variable"; - } else if (stream.eat("{")) { - if (ch = stream.eat("#")) { - state.incomment = true; - if (!stream.skipTo("#}")) { - stream.skipToEnd(); - } else { - stream.eatWhile(/\#|}/); - state.incomment = false; - } - return "comment"; - //Open tag - } else if (ch = stream.eat(/\{|%/)) { - //Cache close tag - state.intag = ch; - if (ch == "{") { - state.intag = "}"; - } - stream.eat("-"); - return "tag"; - } - } - stream.next(); - }; - - return { - startState: function () { - return {}; - }, - token: function (stream, state) { - return tokenBase(stream, state); - } - }; - }); - - CodeMirror.defineMode("twig", function(config, parserConfig) { - var twigInner = CodeMirror.getMode(config, "twig:inner"); - if (!parserConfig || !parserConfig.base) return twigInner; - return CodeMirror.multiplexingMode( - CodeMirror.getMode(config, parserConfig.base), { - open: /\{[{#%]/, close: /[}#%]\}/, mode: twigInner, parseDelimiters: true - } - ); - }); - CodeMirror.defineMIME("text/x-twig", "twig"); -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/vb/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/vb/index.html deleted file mode 100644 index adcc44f..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/vb/index.html +++ /dev/null @@ -1,102 +0,0 @@ -<!doctype html> - -<title>CodeMirror: VB.NET mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<link href="http://fonts.googleapis.com/css?family=Inconsolata" rel="stylesheet" type="text/css"> -<script src="../../lib/codemirror.js"></script> -<script src="vb.js"></script> -<script type="text/javascript" src="../../addon/runmode/runmode.js"></script> -<style> - .CodeMirror {border: 1px solid #aaa; height:210px; height: auto;} - .CodeMirror-scroll { overflow-x: auto; overflow-y: hidden;} - .CodeMirror pre { font-family: Inconsolata; font-size: 14px} - </style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">VB.NET</a> - </ul> -</div> - -<article> -<h2>VB.NET mode</h2> - -<script type="text/javascript"> -function test(golden, text) { - var ok = true; - var i = 0; - function callback(token, style, lineNo, pos){ - //console.log(String(token) + " " + String(style) + " " + String(lineNo) + " " + String(pos)); - var result = [String(token), String(style)]; - if (golden[i][0] != result[0] || golden[i][1] != result[1]){ - return "Error, expected: " + String(golden[i]) + ", got: " + String(result); - ok = false; - } - i++; - } - CodeMirror.runMode(text, "text/x-vb",callback); - - if (ok) return "Tests OK"; -} -function testTypes() { - var golden = [['Integer','keyword'],[' ','null'],['Float','keyword']] - var text = "Integer Float"; - return test(golden,text); -} -function testIf(){ - var golden = [['If','keyword'],[' ','null'],['True','keyword'],[' ','null'],['End','keyword'],[' ','null'],['If','keyword']]; - var text = 'If True End If'; - return test(golden, text); -} -function testDecl(){ - var golden = [['Dim','keyword'],[' ','null'],['x','variable'],[' ','null'],['as','keyword'],[' ','null'],['Integer','keyword']]; - var text = 'Dim x as Integer'; - return test(golden, text); -} -function testAll(){ - var result = ""; - - result += testTypes() + "\n"; - result += testIf() + "\n"; - result += testDecl() + "\n"; - return result; - -} -function initText(editor) { - var content = 'Class rocket\nPrivate quality as Double\nPublic Sub launch() as String\nif quality > 0.8\nlaunch = "Successful"\nElse\nlaunch = "Failed"\nEnd If\nEnd sub\nEnd class\n'; - editor.setValue(content); - for (var i =0; i< editor.lineCount(); i++) editor.indentLine(i); -} -function init() { - editor = CodeMirror.fromTextArea(document.getElementById("solution"), { - lineNumbers: true, - mode: "text/x-vb", - readOnly: false - }); - runTest(); -} -function runTest() { - document.getElementById('testresult').innerHTML = testAll(); - initText(editor); - -} -document.body.onload = init; -</script> - - <div id="edit"> - <textarea style="width:95%;height:200px;padding:5px;" name="solution" id="solution" ></textarea> - </div> - <pre id="testresult"></pre> - <p>MIME type defined: <code>text/x-vb</code>.</p> - -</article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/vb/vb.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/vb/vb.js deleted file mode 100644 index d78f91f..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/vb/vb.js +++ /dev/null @@ -1,276 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("vb", function(conf, parserConf) { - var ERRORCLASS = 'error'; - - function wordRegexp(words) { - return new RegExp("^((" + words.join(")|(") + "))\\b", "i"); - } - - var singleOperators = new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"); - var singleDelimiters = new RegExp('^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]'); - var doubleOperators = new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"); - var doubleDelimiters = new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"); - var tripleDelimiters = new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"); - var identifiers = new RegExp("^[_A-Za-z][_A-Za-z0-9]*"); - - var openingKeywords = ['class','module', 'sub','enum','select','while','if','function', 'get','set','property', 'try']; - var middleKeywords = ['else','elseif','case', 'catch']; - var endKeywords = ['next','loop']; - - var operatorKeywords = ['and', 'or', 'not', 'xor', 'in']; - var wordOperators = wordRegexp(operatorKeywords); - var commonKeywords = ['as', 'dim', 'break', 'continue','optional', 'then', 'until', - 'goto', 'byval','byref','new','handles','property', 'return', - 'const','private', 'protected', 'friend', 'public', 'shared', 'static', 'true','false']; - var commontypes = ['integer','string','double','decimal','boolean','short','char', 'float','single']; - - var keywords = wordRegexp(commonKeywords); - var types = wordRegexp(commontypes); - var stringPrefixes = '"'; - - var opening = wordRegexp(openingKeywords); - var middle = wordRegexp(middleKeywords); - var closing = wordRegexp(endKeywords); - var doubleClosing = wordRegexp(['end']); - var doOpening = wordRegexp(['do']); - - var indentInfo = null; - - CodeMirror.registerHelper("hintWords", "vb", openingKeywords.concat(middleKeywords).concat(endKeywords) - .concat(operatorKeywords).concat(commonKeywords).concat(commontypes)); - - function indent(_stream, state) { - state.currentIndent++; - } - - function dedent(_stream, state) { - state.currentIndent--; - } - // tokenizers - function tokenBase(stream, state) { - if (stream.eatSpace()) { - return null; - } - - var ch = stream.peek(); - - // Handle Comments - if (ch === "'") { - stream.skipToEnd(); - return 'comment'; - } - - - // Handle Number Literals - if (stream.match(/^((&H)|(&O))?[0-9\.a-f]/i, false)) { - var floatLiteral = false; - // Floats - if (stream.match(/^\d*\.\d+F?/i)) { floatLiteral = true; } - else if (stream.match(/^\d+\.\d*F?/)) { floatLiteral = true; } - else if (stream.match(/^\.\d+F?/)) { floatLiteral = true; } - - if (floatLiteral) { - // Float literals may be "imaginary" - stream.eat(/J/i); - return 'number'; - } - // Integers - var intLiteral = false; - // Hex - if (stream.match(/^&H[0-9a-f]+/i)) { intLiteral = true; } - // Octal - else if (stream.match(/^&O[0-7]+/i)) { intLiteral = true; } - // Decimal - else if (stream.match(/^[1-9]\d*F?/)) { - // Decimal literals may be "imaginary" - stream.eat(/J/i); - // TODO - Can you have imaginary longs? - intLiteral = true; - } - // Zero by itself with no other piece of number. - else if (stream.match(/^0(?![\dx])/i)) { intLiteral = true; } - if (intLiteral) { - // Integer literals may be "long" - stream.eat(/L/i); - return 'number'; - } - } - - // Handle Strings - if (stream.match(stringPrefixes)) { - state.tokenize = tokenStringFactory(stream.current()); - return state.tokenize(stream, state); - } - - // Handle operators and Delimiters - if (stream.match(tripleDelimiters) || stream.match(doubleDelimiters)) { - return null; - } - if (stream.match(doubleOperators) - || stream.match(singleOperators) - || stream.match(wordOperators)) { - return 'operator'; - } - if (stream.match(singleDelimiters)) { - return null; - } - if (stream.match(doOpening)) { - indent(stream,state); - state.doInCurrentLine = true; - return 'keyword'; - } - if (stream.match(opening)) { - if (! state.doInCurrentLine) - indent(stream,state); - else - state.doInCurrentLine = false; - return 'keyword'; - } - if (stream.match(middle)) { - return 'keyword'; - } - - if (stream.match(doubleClosing)) { - dedent(stream,state); - dedent(stream,state); - return 'keyword'; - } - if (stream.match(closing)) { - dedent(stream,state); - return 'keyword'; - } - - if (stream.match(types)) { - return 'keyword'; - } - - if (stream.match(keywords)) { - return 'keyword'; - } - - if (stream.match(identifiers)) { - return 'variable'; - } - - // Handle non-detected items - stream.next(); - return ERRORCLASS; - } - - function tokenStringFactory(delimiter) { - var singleline = delimiter.length == 1; - var OUTCLASS = 'string'; - - return function(stream, state) { - while (!stream.eol()) { - stream.eatWhile(/[^'"]/); - if (stream.match(delimiter)) { - state.tokenize = tokenBase; - return OUTCLASS; - } else { - stream.eat(/['"]/); - } - } - if (singleline) { - if (parserConf.singleLineStringErrors) { - return ERRORCLASS; - } else { - state.tokenize = tokenBase; - } - } - return OUTCLASS; - }; - } - - - function tokenLexer(stream, state) { - var style = state.tokenize(stream, state); - var current = stream.current(); - - // Handle '.' connected identifiers - if (current === '.') { - style = state.tokenize(stream, state); - current = stream.current(); - if (style === 'variable') { - return 'variable'; - } else { - return ERRORCLASS; - } - } - - - var delimiter_index = '[({'.indexOf(current); - if (delimiter_index !== -1) { - indent(stream, state ); - } - if (indentInfo === 'dedent') { - if (dedent(stream, state)) { - return ERRORCLASS; - } - } - delimiter_index = '])}'.indexOf(current); - if (delimiter_index !== -1) { - if (dedent(stream, state)) { - return ERRORCLASS; - } - } - - return style; - } - - var external = { - electricChars:"dDpPtTfFeE ", - startState: function() { - return { - tokenize: tokenBase, - lastToken: null, - currentIndent: 0, - nextLineIndent: 0, - doInCurrentLine: false - - - }; - }, - - token: function(stream, state) { - if (stream.sol()) { - state.currentIndent += state.nextLineIndent; - state.nextLineIndent = 0; - state.doInCurrentLine = 0; - } - var style = tokenLexer(stream, state); - - state.lastToken = {style:style, content: stream.current()}; - - - - return style; - }, - - indent: function(state, textAfter) { - var trueText = textAfter.replace(/^\s+|\s+$/g, '') ; - if (trueText.match(closing) || trueText.match(doubleClosing) || trueText.match(middle)) return conf.indentUnit*(state.currentIndent-1); - if(state.currentIndent < 0) return 0; - return state.currentIndent * conf.indentUnit; - }, - - lineComment: "'" - }; - return external; -}); - -CodeMirror.defineMIME("text/x-vb", "vb"); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/vbscript/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/vbscript/index.html deleted file mode 100644 index ad7532d..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/vbscript/index.html +++ /dev/null @@ -1,55 +0,0 @@ -<!doctype html> - -<title>CodeMirror: VBScript mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="vbscript.js"></script> -<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">VBScript</a> - </ul> -</div> - -<article> -<h2>VBScript mode</h2> - - -<div><textarea id="code" name="code"> -' Pete Guhl -' 03-04-2012 -' -' Basic VBScript support for codemirror2 - -Const ForReading = 1, ForWriting = 2, ForAppending = 8 - -Call Sub020_PostBroadcastToUrbanAirship(strUserName, strPassword, intTransmitID, strResponse) - -If Not IsNull(strResponse) AND Len(strResponse) = 0 Then - boolTransmitOkYN = False -Else - ' WScript.Echo "Oh Happy Day! Oh Happy DAY!" - boolTransmitOkYN = True -End If -</textarea></div> - - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - lineNumbers: true, - indentUnit: 4 - }); - </script> - - <p><strong>MIME types defined:</strong> <code>text/vbscript</code>.</p> - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/vbscript/vbscript.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/vbscript/vbscript.js deleted file mode 100644 index b66df22..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/vbscript/vbscript.js +++ /dev/null @@ -1,350 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -/* -For extra ASP classic objects, initialize CodeMirror instance with this option: - isASP: true - -E.G.: - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - lineNumbers: true, - isASP: true - }); -*/ - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("vbscript", function(conf, parserConf) { - var ERRORCLASS = 'error'; - - function wordRegexp(words) { - return new RegExp("^((" + words.join(")|(") + "))\\b", "i"); - } - - var singleOperators = new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"); - var doubleOperators = new RegExp("^((<>)|(<=)|(>=))"); - var singleDelimiters = new RegExp('^[\\.,]'); - var brakets = new RegExp('^[\\(\\)]'); - var identifiers = new RegExp("^[A-Za-z][_A-Za-z0-9]*"); - - var openingKeywords = ['class','sub','select','while','if','function', 'property', 'with', 'for']; - var middleKeywords = ['else','elseif','case']; - var endKeywords = ['next','loop','wend']; - - var wordOperators = wordRegexp(['and', 'or', 'not', 'xor', 'is', 'mod', 'eqv', 'imp']); - var commonkeywords = ['dim', 'redim', 'then', 'until', 'randomize', - 'byval','byref','new','property', 'exit', 'in', - 'const','private', 'public', - 'get','set','let', 'stop', 'on error resume next', 'on error goto 0', 'option explicit', 'call', 'me']; - - //This list was from: http://msdn.microsoft.com/en-us/library/f8tbc79x(v=vs.84).aspx - var atomWords = ['true', 'false', 'nothing', 'empty', 'null']; - //This list was from: http://msdn.microsoft.com/en-us/library/3ca8tfek(v=vs.84).aspx - var builtinFuncsWords = ['abs', 'array', 'asc', 'atn', 'cbool', 'cbyte', 'ccur', 'cdate', 'cdbl', 'chr', 'cint', 'clng', 'cos', 'csng', 'cstr', 'date', 'dateadd', 'datediff', 'datepart', - 'dateserial', 'datevalue', 'day', 'escape', 'eval', 'execute', 'exp', 'filter', 'formatcurrency', 'formatdatetime', 'formatnumber', 'formatpercent', 'getlocale', 'getobject', - 'getref', 'hex', 'hour', 'inputbox', 'instr', 'instrrev', 'int', 'fix', 'isarray', 'isdate', 'isempty', 'isnull', 'isnumeric', 'isobject', 'join', 'lbound', 'lcase', 'left', - 'len', 'loadpicture', 'log', 'ltrim', 'rtrim', 'trim', 'maths', 'mid', 'minute', 'month', 'monthname', 'msgbox', 'now', 'oct', 'replace', 'rgb', 'right', 'rnd', 'round', - 'scriptengine', 'scriptenginebuildversion', 'scriptenginemajorversion', 'scriptengineminorversion', 'second', 'setlocale', 'sgn', 'sin', 'space', 'split', 'sqr', 'strcomp', - 'string', 'strreverse', 'tan', 'time', 'timer', 'timeserial', 'timevalue', 'typename', 'ubound', 'ucase', 'unescape', 'vartype', 'weekday', 'weekdayname', 'year']; - - //This list was from: http://msdn.microsoft.com/en-us/library/ydz4cfk3(v=vs.84).aspx - var builtinConsts = ['vbBlack', 'vbRed', 'vbGreen', 'vbYellow', 'vbBlue', 'vbMagenta', 'vbCyan', 'vbWhite', 'vbBinaryCompare', 'vbTextCompare', - 'vbSunday', 'vbMonday', 'vbTuesday', 'vbWednesday', 'vbThursday', 'vbFriday', 'vbSaturday', 'vbUseSystemDayOfWeek', 'vbFirstJan1', 'vbFirstFourDays', 'vbFirstFullWeek', - 'vbGeneralDate', 'vbLongDate', 'vbShortDate', 'vbLongTime', 'vbShortTime', 'vbObjectError', - 'vbOKOnly', 'vbOKCancel', 'vbAbortRetryIgnore', 'vbYesNoCancel', 'vbYesNo', 'vbRetryCancel', 'vbCritical', 'vbQuestion', 'vbExclamation', 'vbInformation', 'vbDefaultButton1', 'vbDefaultButton2', - 'vbDefaultButton3', 'vbDefaultButton4', 'vbApplicationModal', 'vbSystemModal', 'vbOK', 'vbCancel', 'vbAbort', 'vbRetry', 'vbIgnore', 'vbYes', 'vbNo', - 'vbCr', 'VbCrLf', 'vbFormFeed', 'vbLf', 'vbNewLine', 'vbNullChar', 'vbNullString', 'vbTab', 'vbVerticalTab', 'vbUseDefault', 'vbTrue', 'vbFalse', - 'vbEmpty', 'vbNull', 'vbInteger', 'vbLong', 'vbSingle', 'vbDouble', 'vbCurrency', 'vbDate', 'vbString', 'vbObject', 'vbError', 'vbBoolean', 'vbVariant', 'vbDataObject', 'vbDecimal', 'vbByte', 'vbArray']; - //This list was from: http://msdn.microsoft.com/en-us/library/hkc375ea(v=vs.84).aspx - var builtinObjsWords = ['WScript', 'err', 'debug', 'RegExp']; - var knownProperties = ['description', 'firstindex', 'global', 'helpcontext', 'helpfile', 'ignorecase', 'length', 'number', 'pattern', 'source', 'value', 'count']; - var knownMethods = ['clear', 'execute', 'raise', 'replace', 'test', 'write', 'writeline', 'close', 'open', 'state', 'eof', 'update', 'addnew', 'end', 'createobject', 'quit']; - - var aspBuiltinObjsWords = ['server', 'response', 'request', 'session', 'application']; - var aspKnownProperties = ['buffer', 'cachecontrol', 'charset', 'contenttype', 'expires', 'expiresabsolute', 'isclientconnected', 'pics', 'status', //response - 'clientcertificate', 'cookies', 'form', 'querystring', 'servervariables', 'totalbytes', //request - 'contents', 'staticobjects', //application - 'codepage', 'lcid', 'sessionid', 'timeout', //session - 'scripttimeout']; //server - var aspKnownMethods = ['addheader', 'appendtolog', 'binarywrite', 'end', 'flush', 'redirect', //response - 'binaryread', //request - 'remove', 'removeall', 'lock', 'unlock', //application - 'abandon', //session - 'getlasterror', 'htmlencode', 'mappath', 'transfer', 'urlencode']; //server - - var knownWords = knownMethods.concat(knownProperties); - - builtinObjsWords = builtinObjsWords.concat(builtinConsts); - - if (conf.isASP){ - builtinObjsWords = builtinObjsWords.concat(aspBuiltinObjsWords); - knownWords = knownWords.concat(aspKnownMethods, aspKnownProperties); - }; - - var keywords = wordRegexp(commonkeywords); - var atoms = wordRegexp(atomWords); - var builtinFuncs = wordRegexp(builtinFuncsWords); - var builtinObjs = wordRegexp(builtinObjsWords); - var known = wordRegexp(knownWords); - var stringPrefixes = '"'; - - var opening = wordRegexp(openingKeywords); - var middle = wordRegexp(middleKeywords); - var closing = wordRegexp(endKeywords); - var doubleClosing = wordRegexp(['end']); - var doOpening = wordRegexp(['do']); - var noIndentWords = wordRegexp(['on error resume next', 'exit']); - var comment = wordRegexp(['rem']); - - - function indent(_stream, state) { - state.currentIndent++; - } - - function dedent(_stream, state) { - state.currentIndent--; - } - // tokenizers - function tokenBase(stream, state) { - if (stream.eatSpace()) { - return 'space'; - //return null; - } - - var ch = stream.peek(); - - // Handle Comments - if (ch === "'") { - stream.skipToEnd(); - return 'comment'; - } - if (stream.match(comment)){ - stream.skipToEnd(); - return 'comment'; - } - - - // Handle Number Literals - if (stream.match(/^((&H)|(&O))?[0-9\.]/i, false) && !stream.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i, false)) { - var floatLiteral = false; - // Floats - if (stream.match(/^\d*\.\d+/i)) { floatLiteral = true; } - else if (stream.match(/^\d+\.\d*/)) { floatLiteral = true; } - else if (stream.match(/^\.\d+/)) { floatLiteral = true; } - - if (floatLiteral) { - // Float literals may be "imaginary" - stream.eat(/J/i); - return 'number'; - } - // Integers - var intLiteral = false; - // Hex - if (stream.match(/^&H[0-9a-f]+/i)) { intLiteral = true; } - // Octal - else if (stream.match(/^&O[0-7]+/i)) { intLiteral = true; } - // Decimal - else if (stream.match(/^[1-9]\d*F?/)) { - // Decimal literals may be "imaginary" - stream.eat(/J/i); - // TODO - Can you have imaginary longs? - intLiteral = true; - } - // Zero by itself with no other piece of number. - else if (stream.match(/^0(?![\dx])/i)) { intLiteral = true; } - if (intLiteral) { - // Integer literals may be "long" - stream.eat(/L/i); - return 'number'; - } - } - - // Handle Strings - if (stream.match(stringPrefixes)) { - state.tokenize = tokenStringFactory(stream.current()); - return state.tokenize(stream, state); - } - - // Handle operators and Delimiters - if (stream.match(doubleOperators) - || stream.match(singleOperators) - || stream.match(wordOperators)) { - return 'operator'; - } - if (stream.match(singleDelimiters)) { - return null; - } - - if (stream.match(brakets)) { - return "bracket"; - } - - if (stream.match(noIndentWords)) { - state.doInCurrentLine = true; - - return 'keyword'; - } - - if (stream.match(doOpening)) { - indent(stream,state); - state.doInCurrentLine = true; - - return 'keyword'; - } - if (stream.match(opening)) { - if (! state.doInCurrentLine) - indent(stream,state); - else - state.doInCurrentLine = false; - - return 'keyword'; - } - if (stream.match(middle)) { - return 'keyword'; - } - - - if (stream.match(doubleClosing)) { - dedent(stream,state); - dedent(stream,state); - - return 'keyword'; - } - if (stream.match(closing)) { - if (! state.doInCurrentLine) - dedent(stream,state); - else - state.doInCurrentLine = false; - - return 'keyword'; - } - - if (stream.match(keywords)) { - return 'keyword'; - } - - if (stream.match(atoms)) { - return 'atom'; - } - - if (stream.match(known)) { - return 'variable-2'; - } - - if (stream.match(builtinFuncs)) { - return 'builtin'; - } - - if (stream.match(builtinObjs)){ - return 'variable-2'; - } - - if (stream.match(identifiers)) { - return 'variable'; - } - - // Handle non-detected items - stream.next(); - return ERRORCLASS; - } - - function tokenStringFactory(delimiter) { - var singleline = delimiter.length == 1; - var OUTCLASS = 'string'; - - return function(stream, state) { - while (!stream.eol()) { - stream.eatWhile(/[^'"]/); - if (stream.match(delimiter)) { - state.tokenize = tokenBase; - return OUTCLASS; - } else { - stream.eat(/['"]/); - } - } - if (singleline) { - if (parserConf.singleLineStringErrors) { - return ERRORCLASS; - } else { - state.tokenize = tokenBase; - } - } - return OUTCLASS; - }; - } - - - function tokenLexer(stream, state) { - var style = state.tokenize(stream, state); - var current = stream.current(); - - // Handle '.' connected identifiers - if (current === '.') { - style = state.tokenize(stream, state); - - current = stream.current(); - if (style && (style.substr(0, 8) === 'variable' || style==='builtin' || style==='keyword')){//|| knownWords.indexOf(current.substring(1)) > -1) { - if (style === 'builtin' || style === 'keyword') style='variable'; - if (knownWords.indexOf(current.substr(1)) > -1) style='variable-2'; - - return style; - } else { - return ERRORCLASS; - } - } - - return style; - } - - var external = { - electricChars:"dDpPtTfFeE ", - startState: function() { - return { - tokenize: tokenBase, - lastToken: null, - currentIndent: 0, - nextLineIndent: 0, - doInCurrentLine: false, - ignoreKeyword: false - - - }; - }, - - token: function(stream, state) { - if (stream.sol()) { - state.currentIndent += state.nextLineIndent; - state.nextLineIndent = 0; - state.doInCurrentLine = 0; - } - var style = tokenLexer(stream, state); - - state.lastToken = {style:style, content: stream.current()}; - - if (style==='space') style=null; - - return style; - }, - - indent: function(state, textAfter) { - var trueText = textAfter.replace(/^\s+|\s+$/g, '') ; - if (trueText.match(closing) || trueText.match(doubleClosing) || trueText.match(middle)) return conf.indentUnit*(state.currentIndent-1); - if(state.currentIndent < 0) return 0; - return state.currentIndent * conf.indentUnit; - } - - }; - return external; -}); - -CodeMirror.defineMIME("text/vbscript", "vbscript"); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/velocity/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/velocity/index.html deleted file mode 100644 index 7eba8f4..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/velocity/index.html +++ /dev/null @@ -1,120 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Velocity mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<link rel="stylesheet" href="../../theme/night.css"> -<script src="../../lib/codemirror.js"></script> -<script src="velocity.js"></script> -<style>.CodeMirror {border: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Velocity</a> - </ul> -</div> - -<article> -<h2>Velocity mode</h2> -<form><textarea id="code" name="code"> -## Velocity Code Demo -#* - based on PL/SQL mode by Peter Raganitsch, adapted to Velocity by Steve O'Hara ( http://www.pivotal-solutions.co.uk ) - August 2011 -*# - -#* - This is a multiline comment. - This is the second line -*# - -#[[ hello steve - This has invalid syntax that would normally need "poor man's escaping" like: - - #define() - - ${blah -]]# - -#include( "disclaimer.txt" "opinion.txt" ) -#include( $foo $bar ) - -#parse( "lecorbusier.vm" ) -#parse( $foo ) - -#evaluate( 'string with VTL #if(true)will be displayed#end' ) - -#define( $hello ) Hello $who #end #set( $who = "World!") $hello ## displays Hello World! - -#foreach( $customer in $customerList ) - - $foreach.count $customer.Name - - #if( $foo == ${bar}) - it's true! - #break - #{else} - it's not! - #stop - #end - - #if ($foreach.parent.hasNext) - $velocityCount - #end -#end - -$someObject.getValues("this is a string split - across lines") - -$someObject("This plus $something in the middle").method(7567).property - -#set($something = "Parseable string with '$quotes'!") - -#macro( tablerows $color $somelist ) - #foreach( $something in $somelist ) - <tr><td bgcolor=$color>$something</td></tr> - <tr><td bgcolor=$color>$bodyContent</td></tr> - #end -#end - -#tablerows("red" ["dadsdf","dsa"]) -#@tablerows("red" ["dadsdf","dsa"]) some body content #end - - Variable reference: #set( $monkey = $bill ) - String literal: #set( $monkey.Friend = 'monica' ) - Property reference: #set( $monkey.Blame = $whitehouse.Leak ) - Method reference: #set( $monkey.Plan = $spindoctor.weave($web) ) - Number literal: #set( $monkey.Number = 123 ) - Range operator: #set( $monkey.Numbers = [1..3] ) - Object list: #set( $monkey.Say = ["Not", $my, "fault"] ) - Object map: #set( $monkey.Map = {"banana" : "good", "roast beef" : "bad"}) - -The RHS can also be a simple arithmetic expression, such as: -Addition: #set( $value = $foo + 1 ) - Subtraction: #set( $value = $bar - 1 ) - Multiplication: #set( $value = $foo * $bar ) - Division: #set( $value = $foo / $bar ) - Remainder: #set( $value = $foo % $bar ) - -</textarea></form> - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - theme: "night", - lineNumbers: true, - indentUnit: 4, - mode: "text/velocity" - }); - </script> - - <p><strong>MIME types defined:</strong> <code>text/velocity</code>.</p> - - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/velocity/velocity.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/velocity/velocity.js deleted file mode 100644 index 12ee221..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/velocity/velocity.js +++ /dev/null @@ -1,201 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("velocity", function() { - function parseWords(str) { - var obj = {}, words = str.split(" "); - for (var i = 0; i < words.length; ++i) obj[words[i]] = true; - return obj; - } - - var keywords = parseWords("#end #else #break #stop #[[ #]] " + - "#{end} #{else} #{break} #{stop}"); - var functions = parseWords("#if #elseif #foreach #set #include #parse #macro #define #evaluate " + - "#{if} #{elseif} #{foreach} #{set} #{include} #{parse} #{macro} #{define} #{evaluate}"); - var specials = parseWords("$foreach.count $foreach.hasNext $foreach.first $foreach.last $foreach.topmost $foreach.parent.count $foreach.parent.hasNext $foreach.parent.first $foreach.parent.last $foreach.parent $velocityCount $!bodyContent $bodyContent"); - var isOperatorChar = /[+\-*&%=<>!?:\/|]/; - - function chain(stream, state, f) { - state.tokenize = f; - return f(stream, state); - } - function tokenBase(stream, state) { - var beforeParams = state.beforeParams; - state.beforeParams = false; - var ch = stream.next(); - // start of unparsed string? - if ((ch == "'") && !state.inString && state.inParams) { - state.lastTokenWasBuiltin = false; - return chain(stream, state, tokenString(ch)); - } - // start of parsed string? - else if ((ch == '"')) { - state.lastTokenWasBuiltin = false; - if (state.inString) { - state.inString = false; - return "string"; - } - else if (state.inParams) - return chain(stream, state, tokenString(ch)); - } - // is it one of the special signs []{}().,;? Seperator? - else if (/[\[\]{}\(\),;\.]/.test(ch)) { - if (ch == "(" && beforeParams) - state.inParams = true; - else if (ch == ")") { - state.inParams = false; - state.lastTokenWasBuiltin = true; - } - return null; - } - // start of a number value? - else if (/\d/.test(ch)) { - state.lastTokenWasBuiltin = false; - stream.eatWhile(/[\w\.]/); - return "number"; - } - // multi line comment? - else if (ch == "#" && stream.eat("*")) { - state.lastTokenWasBuiltin = false; - return chain(stream, state, tokenComment); - } - // unparsed content? - else if (ch == "#" && stream.match(/ *\[ *\[/)) { - state.lastTokenWasBuiltin = false; - return chain(stream, state, tokenUnparsed); - } - // single line comment? - else if (ch == "#" && stream.eat("#")) { - state.lastTokenWasBuiltin = false; - stream.skipToEnd(); - return "comment"; - } - // variable? - else if (ch == "$") { - stream.eatWhile(/[\w\d\$_\.{}]/); - // is it one of the specials? - if (specials && specials.propertyIsEnumerable(stream.current())) { - return "keyword"; - } - else { - state.lastTokenWasBuiltin = true; - state.beforeParams = true; - return "builtin"; - } - } - // is it a operator? - else if (isOperatorChar.test(ch)) { - state.lastTokenWasBuiltin = false; - stream.eatWhile(isOperatorChar); - return "operator"; - } - else { - // get the whole word - stream.eatWhile(/[\w\$_{}@]/); - var word = stream.current(); - // is it one of the listed keywords? - if (keywords && keywords.propertyIsEnumerable(word)) - return "keyword"; - // is it one of the listed functions? - if (functions && functions.propertyIsEnumerable(word) || - (stream.current().match(/^#@?[a-z0-9_]+ *$/i) && stream.peek()=="(") && - !(functions && functions.propertyIsEnumerable(word.toLowerCase()))) { - state.beforeParams = true; - state.lastTokenWasBuiltin = false; - return "keyword"; - } - if (state.inString) { - state.lastTokenWasBuiltin = false; - return "string"; - } - if (stream.pos > word.length && stream.string.charAt(stream.pos-word.length-1)=="." && state.lastTokenWasBuiltin) - return "builtin"; - // default: just a "word" - state.lastTokenWasBuiltin = false; - return null; - } - } - - function tokenString(quote) { - return function(stream, state) { - var escaped = false, next, end = false; - while ((next = stream.next()) != null) { - if ((next == quote) && !escaped) { - end = true; - break; - } - if (quote=='"' && stream.peek() == '$' && !escaped) { - state.inString = true; - end = true; - break; - } - escaped = !escaped && next == "\\"; - } - if (end) state.tokenize = tokenBase; - return "string"; - }; - } - - function tokenComment(stream, state) { - var maybeEnd = false, ch; - while (ch = stream.next()) { - if (ch == "#" && maybeEnd) { - state.tokenize = tokenBase; - break; - } - maybeEnd = (ch == "*"); - } - return "comment"; - } - - function tokenUnparsed(stream, state) { - var maybeEnd = 0, ch; - while (ch = stream.next()) { - if (ch == "#" && maybeEnd == 2) { - state.tokenize = tokenBase; - break; - } - if (ch == "]") - maybeEnd++; - else if (ch != " ") - maybeEnd = 0; - } - return "meta"; - } - // Interface - - return { - startState: function() { - return { - tokenize: tokenBase, - beforeParams: false, - inParams: false, - inString: false, - lastTokenWasBuiltin: false - }; - }, - - token: function(stream, state) { - if (stream.eatSpace()) return null; - return state.tokenize(stream, state); - }, - blockCommentStart: "#*", - blockCommentEnd: "*#", - lineComment: "##", - fold: "velocity" - }; -}); - -CodeMirror.defineMIME("text/velocity", "velocity"); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/verilog/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/verilog/index.html deleted file mode 100644 index 9c52722..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/verilog/index.html +++ /dev/null @@ -1,120 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Verilog/SystemVerilog mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../../addon/edit/matchbrackets.js"></script> -<script src="verilog.js"></script> -<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Verilog/SystemVerilog</a> - </ul> -</div> - -<article> -<h2>SystemVerilog mode</h2> - -<div><textarea id="code" name="code"> -// Literals -1'b0 -1'bx -1'bz -16'hDC78 -'hdeadbeef -'b0011xxzz -1234 -32'd5678 -3.4e6 --128.7 - -// Macro definition -`define BUS_WIDTH = 8; - -// Module definition -module block( - input clk, - input rst_n, - input [`BUS_WIDTH-1:0] data_in, - output [`BUS_WIDTH-1:0] data_out -); - - always @(posedge clk or negedge rst_n) begin - - if (~rst_n) begin - data_out <= 8'b0; - end else begin - data_out <= data_in; - end - - if (~rst_n) - data_out <= 8'b0; - else - data_out <= data_in; - - if (~rst_n) - begin - data_out <= 8'b0; - end - else - begin - data_out <= data_in; - end - - end - -endmodule - -// Class definition -class test; - - /** - * Sum two integers - */ - function int sum(int a, int b); - int result = a + b; - string msg = $sformatf("%d + %d = %d", a, b, result); - $display(msg); - return result; - endfunction - - task delay(int num_cycles); - repeat(num_cycles) #1; - endtask - -endclass - -</textarea></div> - -<script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - lineNumbers: true, - matchBrackets: true, - mode: { - name: "verilog", - noIndentKeywords: ["package"] - } - }); -</script> - -<p> -Syntax highlighting and indentation for the Verilog and SystemVerilog languages (IEEE 1800). -<h2>Configuration options:</h2> - <ul> - <li><strong>noIndentKeywords</strong> - List of keywords which should not cause indentation to increase. E.g. ["package", "module"]. Default: None</li> - </ul> -</p> - -<p><strong>MIME types defined:</strong> <code>text/x-verilog</code> and <code>text/x-systemverilog</code>.</p> -</article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/verilog/test.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/verilog/test.js deleted file mode 100644 index 8334fab..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/verilog/test.js +++ /dev/null @@ -1,273 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function() { - var mode = CodeMirror.getMode({indentUnit: 4}, "verilog"); - function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); } - - MT("binary_literals", - "[number 1'b0]", - "[number 1'b1]", - "[number 1'bx]", - "[number 1'bz]", - "[number 1'bX]", - "[number 1'bZ]", - "[number 1'B0]", - "[number 1'B1]", - "[number 1'Bx]", - "[number 1'Bz]", - "[number 1'BX]", - "[number 1'BZ]", - "[number 1'b0]", - "[number 1'b1]", - "[number 2'b01]", - "[number 2'bxz]", - "[number 2'b11]", - "[number 2'b10]", - "[number 2'b1Z]", - "[number 12'b0101_0101_0101]", - "[number 1'b 0]", - "[number 'b0101]" - ); - - MT("octal_literals", - "[number 3'o7]", - "[number 3'O7]", - "[number 3'so7]", - "[number 3'SO7]" - ); - - MT("decimal_literals", - "[number 0]", - "[number 1]", - "[number 7]", - "[number 123_456]", - "[number 'd33]", - "[number 8'd255]", - "[number 8'D255]", - "[number 8'sd255]", - "[number 8'SD255]", - "[number 32'd123]", - "[number 32 'd123]", - "[number 32 'd 123]" - ); - - MT("hex_literals", - "[number 4'h0]", - "[number 4'ha]", - "[number 4'hF]", - "[number 4'hx]", - "[number 4'hz]", - "[number 4'hX]", - "[number 4'hZ]", - "[number 32'hdc78]", - "[number 32'hDC78]", - "[number 32 'hDC78]", - "[number 32'h DC78]", - "[number 32 'h DC78]", - "[number 32'h44x7]", - "[number 32'hFFF?]" - ); - - MT("real_number_literals", - "[number 1.2]", - "[number 0.1]", - "[number 2394.26331]", - "[number 1.2E12]", - "[number 1.2e12]", - "[number 1.30e-2]", - "[number 0.1e-0]", - "[number 23E10]", - "[number 29E-2]", - "[number 236.123_763_e-12]" - ); - - MT("operators", - "[meta ^]" - ); - - MT("keywords", - "[keyword logic]", - "[keyword logic] [variable foo]", - "[keyword reg] [variable abc]" - ); - - MT("variables", - "[variable _leading_underscore]", - "[variable _if]", - "[number 12] [variable foo]", - "[variable foo] [number 14]" - ); - - MT("tick_defines", - "[def `FOO]", - "[def `foo]", - "[def `FOO_bar]" - ); - - MT("system_calls", - "[meta $display]", - "[meta $vpi_printf]" - ); - - MT("line_comment", "[comment // Hello world]"); - - // Alignment tests - MT("align_port_map_style1", - /** - * mod mod(.a(a), - * .b(b) - * ); - */ - "[variable mod] [variable mod][bracket (].[variable a][bracket (][variable a][bracket )],", - " .[variable b][bracket (][variable b][bracket )]", - " [bracket )];", - "" - ); - - MT("align_port_map_style2", - /** - * mod mod( - * .a(a), - * .b(b) - * ); - */ - "[variable mod] [variable mod][bracket (]", - " .[variable a][bracket (][variable a][bracket )],", - " .[variable b][bracket (][variable b][bracket )]", - "[bracket )];", - "" - ); - - // Indentation tests - MT("indent_single_statement_if", - "[keyword if] [bracket (][variable foo][bracket )]", - " [keyword break];", - "" - ); - - MT("no_indent_after_single_line_if", - "[keyword if] [bracket (][variable foo][bracket )] [keyword break];", - "" - ); - - MT("indent_after_if_begin_same_line", - "[keyword if] [bracket (][variable foo][bracket )] [keyword begin]", - " [keyword break];", - " [keyword break];", - "[keyword end]", - "" - ); - - MT("indent_after_if_begin_next_line", - "[keyword if] [bracket (][variable foo][bracket )]", - " [keyword begin]", - " [keyword break];", - " [keyword break];", - " [keyword end]", - "" - ); - - MT("indent_single_statement_if_else", - "[keyword if] [bracket (][variable foo][bracket )]", - " [keyword break];", - "[keyword else]", - " [keyword break];", - "" - ); - - MT("indent_if_else_begin_same_line", - "[keyword if] [bracket (][variable foo][bracket )] [keyword begin]", - " [keyword break];", - " [keyword break];", - "[keyword end] [keyword else] [keyword begin]", - " [keyword break];", - " [keyword break];", - "[keyword end]", - "" - ); - - MT("indent_if_else_begin_next_line", - "[keyword if] [bracket (][variable foo][bracket )]", - " [keyword begin]", - " [keyword break];", - " [keyword break];", - " [keyword end]", - "[keyword else]", - " [keyword begin]", - " [keyword break];", - " [keyword break];", - " [keyword end]", - "" - ); - - MT("indent_if_nested_without_begin", - "[keyword if] [bracket (][variable foo][bracket )]", - " [keyword if] [bracket (][variable foo][bracket )]", - " [keyword if] [bracket (][variable foo][bracket )]", - " [keyword break];", - "" - ); - - MT("indent_case", - "[keyword case] [bracket (][variable state][bracket )]", - " [variable FOO]:", - " [keyword break];", - " [variable BAR]:", - " [keyword break];", - "[keyword endcase]", - "" - ); - - MT("unindent_after_end_with_preceding_text", - "[keyword begin]", - " [keyword break]; [keyword end]", - "" - ); - - MT("export_function_one_line_does_not_indent", - "[keyword export] [string \"DPI-C\"] [keyword function] [variable helloFromSV];", - "" - ); - - MT("export_task_one_line_does_not_indent", - "[keyword export] [string \"DPI-C\"] [keyword task] [variable helloFromSV];", - "" - ); - - MT("export_function_two_lines_indents_properly", - "[keyword export]", - " [string \"DPI-C\"] [keyword function] [variable helloFromSV];", - "" - ); - - MT("export_task_two_lines_indents_properly", - "[keyword export]", - " [string \"DPI-C\"] [keyword task] [variable helloFromSV];", - "" - ); - - MT("import_function_one_line_does_not_indent", - "[keyword import] [string \"DPI-C\"] [keyword function] [variable helloFromC];", - "" - ); - - MT("import_task_one_line_does_not_indent", - "[keyword import] [string \"DPI-C\"] [keyword task] [variable helloFromC];", - "" - ); - - MT("import_package_single_line_does_not_indent", - "[keyword import] [variable p]::[variable x];", - "[keyword import] [variable p]::[variable y];", - "" - ); - - MT("covergroup_with_function_indents_properly", - "[keyword covergroup] [variable cg] [keyword with] [keyword function] [variable sample][bracket (][keyword bit] [variable b][bracket )];", - " [variable c] : [keyword coverpoint] [variable c];", - "[keyword endgroup]: [variable cg]", - "" - ); - -})(); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/verilog/verilog.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/verilog/verilog.js deleted file mode 100644 index 7513dce..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/verilog/verilog.js +++ /dev/null @@ -1,537 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("verilog", function(config, parserConfig) { - - var indentUnit = config.indentUnit, - statementIndentUnit = parserConfig.statementIndentUnit || indentUnit, - dontAlignCalls = parserConfig.dontAlignCalls, - noIndentKeywords = parserConfig.noIndentKeywords || [], - multiLineStrings = parserConfig.multiLineStrings, - hooks = parserConfig.hooks || {}; - - function words(str) { - var obj = {}, words = str.split(" "); - for (var i = 0; i < words.length; ++i) obj[words[i]] = true; - return obj; - } - - /** - * Keywords from IEEE 1800-2012 - */ - var keywords = words( - "accept_on alias always always_comb always_ff always_latch and assert assign assume automatic before begin bind " + - "bins binsof bit break buf bufif0 bufif1 byte case casex casez cell chandle checker class clocking cmos config " + - "const constraint context continue cover covergroup coverpoint cross deassign default defparam design disable " + - "dist do edge else end endcase endchecker endclass endclocking endconfig endfunction endgenerate endgroup " + - "endinterface endmodule endpackage endprimitive endprogram endproperty endspecify endsequence endtable endtask " + - "enum event eventually expect export extends extern final first_match for force foreach forever fork forkjoin " + - "function generate genvar global highz0 highz1 if iff ifnone ignore_bins illegal_bins implements implies import " + - "incdir include initial inout input inside instance int integer interconnect interface intersect join join_any " + - "join_none large let liblist library local localparam logic longint macromodule matches medium modport module " + - "nand negedge nettype new nexttime nmos nor noshowcancelled not notif0 notif1 null or output package packed " + - "parameter pmos posedge primitive priority program property protected pull0 pull1 pulldown pullup " + - "pulsestyle_ondetect pulsestyle_onevent pure rand randc randcase randsequence rcmos real realtime ref reg " + - "reject_on release repeat restrict return rnmos rpmos rtran rtranif0 rtranif1 s_always s_eventually s_nexttime " + - "s_until s_until_with scalared sequence shortint shortreal showcancelled signed small soft solve specify " + - "specparam static string strong strong0 strong1 struct super supply0 supply1 sync_accept_on sync_reject_on " + - "table tagged task this throughout time timeprecision timeunit tran tranif0 tranif1 tri tri0 tri1 triand trior " + - "trireg type typedef union unique unique0 unsigned until until_with untyped use uwire var vectored virtual void " + - "wait wait_order wand weak weak0 weak1 while wildcard wire with within wor xnor xor"); - - /** Operators from IEEE 1800-2012 - unary_operator ::= - + | - | ! | ~ | & | ~& | | | ~| | ^ | ~^ | ^~ - binary_operator ::= - + | - | * | / | % | == | != | === | !== | ==? | !=? | && | || | ** - | < | <= | > | >= | & | | | ^ | ^~ | ~^ | >> | << | >>> | <<< - | -> | <-> - inc_or_dec_operator ::= ++ | -- - unary_module_path_operator ::= - ! | ~ | & | ~& | | | ~| | ^ | ~^ | ^~ - binary_module_path_operator ::= - == | != | && | || | & | | | ^ | ^~ | ~^ - */ - var isOperatorChar = /[\+\-\*\/!~&|^%=?:]/; - var isBracketChar = /[\[\]{}()]/; - - var unsignedNumber = /\d[0-9_]*/; - var decimalLiteral = /\d*\s*'s?d\s*\d[0-9_]*/i; - var binaryLiteral = /\d*\s*'s?b\s*[xz01][xz01_]*/i; - var octLiteral = /\d*\s*'s?o\s*[xz0-7][xz0-7_]*/i; - var hexLiteral = /\d*\s*'s?h\s*[0-9a-fxz?][0-9a-fxz?_]*/i; - var realLiteral = /(\d[\d_]*(\.\d[\d_]*)?E-?[\d_]+)|(\d[\d_]*\.\d[\d_]*)/i; - - var closingBracketOrWord = /^((\w+)|[)}\]])/; - var closingBracket = /[)}\]]/; - - var curPunc; - var curKeyword; - - // Block openings which are closed by a matching keyword in the form of ("end" + keyword) - // E.g. "task" => "endtask" - var blockKeywords = words( - "case checker class clocking config function generate interface module package" + - "primitive program property specify sequence table task" - ); - - // Opening/closing pairs - var openClose = {}; - for (var keyword in blockKeywords) { - openClose[keyword] = "end" + keyword; - } - openClose["begin"] = "end"; - openClose["casex"] = "endcase"; - openClose["casez"] = "endcase"; - openClose["do" ] = "while"; - openClose["fork" ] = "join;join_any;join_none"; - openClose["covergroup"] = "endgroup"; - - for (var i in noIndentKeywords) { - var keyword = noIndentKeywords[i]; - if (openClose[keyword]) { - openClose[keyword] = undefined; - } - } - - // Keywords which open statements that are ended with a semi-colon - var statementKeywords = words("always always_comb always_ff always_latch assert assign assume else export for foreach forever if import initial repeat while"); - - function tokenBase(stream, state) { - var ch = stream.peek(), style; - if (hooks[ch] && (style = hooks[ch](stream, state)) != false) return style; - if (hooks.tokenBase && (style = hooks.tokenBase(stream, state)) != false) - return style; - - if (/[,;:\.]/.test(ch)) { - curPunc = stream.next(); - return null; - } - if (isBracketChar.test(ch)) { - curPunc = stream.next(); - return "bracket"; - } - // Macros (tick-defines) - if (ch == '`') { - stream.next(); - if (stream.eatWhile(/[\w\$_]/)) { - return "def"; - } else { - return null; - } - } - // System calls - if (ch == '$') { - stream.next(); - if (stream.eatWhile(/[\w\$_]/)) { - return "meta"; - } else { - return null; - } - } - // Time literals - if (ch == '#') { - stream.next(); - stream.eatWhile(/[\d_.]/); - return "def"; - } - // Strings - if (ch == '"') { - stream.next(); - state.tokenize = tokenString(ch); - return state.tokenize(stream, state); - } - // Comments - if (ch == "/") { - stream.next(); - if (stream.eat("*")) { - state.tokenize = tokenComment; - return tokenComment(stream, state); - } - if (stream.eat("/")) { - stream.skipToEnd(); - return "comment"; - } - stream.backUp(1); - } - - // Numeric literals - if (stream.match(realLiteral) || - stream.match(decimalLiteral) || - stream.match(binaryLiteral) || - stream.match(octLiteral) || - stream.match(hexLiteral) || - stream.match(unsignedNumber) || - stream.match(realLiteral)) { - return "number"; - } - - // Operators - if (stream.eatWhile(isOperatorChar)) { - return "meta"; - } - - // Keywords / plain variables - if (stream.eatWhile(/[\w\$_]/)) { - var cur = stream.current(); - if (keywords[cur]) { - if (openClose[cur]) { - curPunc = "newblock"; - } - if (statementKeywords[cur]) { - curPunc = "newstatement"; - } - curKeyword = cur; - return "keyword"; - } - return "variable"; - } - - stream.next(); - return null; - } - - function tokenString(quote) { - return function(stream, state) { - var escaped = false, next, end = false; - while ((next = stream.next()) != null) { - if (next == quote && !escaped) {end = true; break;} - escaped = !escaped && next == "\\"; - } - if (end || !(escaped || multiLineStrings)) - state.tokenize = tokenBase; - return "string"; - }; - } - - function tokenComment(stream, state) { - var maybeEnd = false, ch; - while (ch = stream.next()) { - if (ch == "/" && maybeEnd) { - state.tokenize = tokenBase; - break; - } - maybeEnd = (ch == "*"); - } - return "comment"; - } - - function Context(indented, column, type, align, prev) { - this.indented = indented; - this.column = column; - this.type = type; - this.align = align; - this.prev = prev; - } - function pushContext(state, col, type) { - var indent = state.indented; - var c = new Context(indent, col, type, null, state.context); - return state.context = c; - } - function popContext(state) { - var t = state.context.type; - if (t == ")" || t == "]" || t == "}") { - state.indented = state.context.indented; - } - return state.context = state.context.prev; - } - - function isClosing(text, contextClosing) { - if (text == contextClosing) { - return true; - } else { - // contextClosing may be multiple keywords separated by ; - var closingKeywords = contextClosing.split(";"); - for (var i in closingKeywords) { - if (text == closingKeywords[i]) { - return true; - } - } - return false; - } - } - - function buildElectricInputRegEx() { - // Reindentation should occur on any bracket char: {}()[] - // or on a match of any of the block closing keywords, at - // the end of a line - var allClosings = []; - for (var i in openClose) { - if (openClose[i]) { - var closings = openClose[i].split(";"); - for (var j in closings) { - allClosings.push(closings[j]); - } - } - } - var re = new RegExp("[{}()\\[\\]]|(" + allClosings.join("|") + ")$"); - return re; - } - - // Interface - return { - - // Regex to force current line to reindent - electricInput: buildElectricInputRegEx(), - - startState: function(basecolumn) { - var state = { - tokenize: null, - context: new Context((basecolumn || 0) - indentUnit, 0, "top", false), - indented: 0, - startOfLine: true - }; - if (hooks.startState) hooks.startState(state); - return state; - }, - - token: function(stream, state) { - var ctx = state.context; - if (stream.sol()) { - if (ctx.align == null) ctx.align = false; - state.indented = stream.indentation(); - state.startOfLine = true; - } - if (hooks.token) hooks.token(stream, state); - if (stream.eatSpace()) return null; - curPunc = null; - curKeyword = null; - var style = (state.tokenize || tokenBase)(stream, state); - if (style == "comment" || style == "meta" || style == "variable") return style; - if (ctx.align == null) ctx.align = true; - - if (curPunc == ctx.type) { - popContext(state); - } else if ((curPunc == ";" && ctx.type == "statement") || - (ctx.type && isClosing(curKeyword, ctx.type))) { - ctx = popContext(state); - while (ctx && ctx.type == "statement") ctx = popContext(state); - } else if (curPunc == "{") { - pushContext(state, stream.column(), "}"); - } else if (curPunc == "[") { - pushContext(state, stream.column(), "]"); - } else if (curPunc == "(") { - pushContext(state, stream.column(), ")"); - } else if (ctx && ctx.type == "endcase" && curPunc == ":") { - pushContext(state, stream.column(), "statement"); - } else if (curPunc == "newstatement") { - pushContext(state, stream.column(), "statement"); - } else if (curPunc == "newblock") { - if (curKeyword == "function" && ctx && (ctx.type == "statement" || ctx.type == "endgroup")) { - // The 'function' keyword can appear in some other contexts where it actually does not - // indicate a function (import/export DPI and covergroup definitions). - // Do nothing in this case - } else if (curKeyword == "task" && ctx && ctx.type == "statement") { - // Same thing for task - } else { - var close = openClose[curKeyword]; - pushContext(state, stream.column(), close); - } - } - - state.startOfLine = false; - return style; - }, - - indent: function(state, textAfter) { - if (state.tokenize != tokenBase && state.tokenize != null) return CodeMirror.Pass; - if (hooks.indent) { - var fromHook = hooks.indent(state); - if (fromHook >= 0) return fromHook; - } - var ctx = state.context, firstChar = textAfter && textAfter.charAt(0); - if (ctx.type == "statement" && firstChar == "}") ctx = ctx.prev; - var closing = false; - var possibleClosing = textAfter.match(closingBracketOrWord); - if (possibleClosing) - closing = isClosing(possibleClosing[0], ctx.type); - if (ctx.type == "statement") return ctx.indented + (firstChar == "{" ? 0 : statementIndentUnit); - else if (closingBracket.test(ctx.type) && ctx.align && !dontAlignCalls) return ctx.column + (closing ? 0 : 1); - else if (ctx.type == ")" && !closing) return ctx.indented + statementIndentUnit; - else return ctx.indented + (closing ? 0 : indentUnit); - }, - - blockCommentStart: "/*", - blockCommentEnd: "*/", - lineComment: "//" - }; -}); - - CodeMirror.defineMIME("text/x-verilog", { - name: "verilog" - }); - - CodeMirror.defineMIME("text/x-systemverilog", { - name: "verilog" - }); - - // TLVVerilog mode - - var tlvchScopePrefixes = { - ">": "property", "->": "property", "-": "hr", "|": "link", "?$": "qualifier", "?*": "qualifier", - "@-": "variable-3", "@": "variable-3", "?": "qualifier" - }; - - function tlvGenIndent(stream, state) { - var tlvindentUnit = 2; - var rtnIndent = -1, indentUnitRq = 0, curIndent = stream.indentation(); - switch (state.tlvCurCtlFlowChar) { - case "\\": - curIndent = 0; - break; - case "|": - if (state.tlvPrevPrevCtlFlowChar == "@") { - indentUnitRq = -2; //-2 new pipe rq after cur pipe - break; - } - if (tlvchScopePrefixes[state.tlvPrevCtlFlowChar]) - indentUnitRq = 1; // +1 new scope - break; - case "M": // m4 - if (state.tlvPrevPrevCtlFlowChar == "@") { - indentUnitRq = -2; //-2 new inst rq after pipe - break; - } - if (tlvchScopePrefixes[state.tlvPrevCtlFlowChar]) - indentUnitRq = 1; // +1 new scope - break; - case "@": - if (state.tlvPrevCtlFlowChar == "S") - indentUnitRq = -1; // new pipe stage after stmts - if (state.tlvPrevCtlFlowChar == "|") - indentUnitRq = 1; // 1st pipe stage - break; - case "S": - if (state.tlvPrevCtlFlowChar == "@") - indentUnitRq = 1; // flow in pipe stage - if (tlvchScopePrefixes[state.tlvPrevCtlFlowChar]) - indentUnitRq = 1; // +1 new scope - break; - } - var statementIndentUnit = tlvindentUnit; - rtnIndent = curIndent + (indentUnitRq*statementIndentUnit); - return rtnIndent >= 0 ? rtnIndent : curIndent; - } - - CodeMirror.defineMIME("text/x-tlv", { - name: "verilog", - hooks: { - "\\": function(stream, state) { - var vxIndent = 0, style = false; - var curPunc = stream.string; - if ((stream.sol()) && ((/\\SV/.test(stream.string)) || (/\\TLV/.test(stream.string)))) { - curPunc = (/\\TLV_version/.test(stream.string)) - ? "\\TLV_version" : stream.string; - stream.skipToEnd(); - if (curPunc == "\\SV" && state.vxCodeActive) {state.vxCodeActive = false;}; - if ((/\\TLV/.test(curPunc) && !state.vxCodeActive) - || (curPunc=="\\TLV_version" && state.vxCodeActive)) {state.vxCodeActive = true;}; - style = "keyword"; - state.tlvCurCtlFlowChar = state.tlvPrevPrevCtlFlowChar - = state.tlvPrevCtlFlowChar = ""; - if (state.vxCodeActive == true) { - state.tlvCurCtlFlowChar = "\\"; - vxIndent = tlvGenIndent(stream, state); - } - state.vxIndentRq = vxIndent; - } - return style; - }, - tokenBase: function(stream, state) { - var vxIndent = 0, style = false; - var tlvisOperatorChar = /[\[\]=:]/; - var tlvkpScopePrefixs = { - "**":"variable-2", "*":"variable-2", "$$":"variable", "$":"variable", - "^^":"attribute", "^":"attribute"}; - var ch = stream.peek(); - var vxCurCtlFlowCharValueAtStart = state.tlvCurCtlFlowChar; - if (state.vxCodeActive == true) { - if (/[\[\]{}\(\);\:]/.test(ch)) { - // bypass nesting and 1 char punc - style = "meta"; - stream.next(); - } else if (ch == "/") { - stream.next(); - if (stream.eat("/")) { - stream.skipToEnd(); - style = "comment"; - state.tlvCurCtlFlowChar = "S"; - } else { - stream.backUp(1); - } - } else if (ch == "@") { - // pipeline stage - style = tlvchScopePrefixes[ch]; - state.tlvCurCtlFlowChar = "@"; - stream.next(); - stream.eatWhile(/[\w\$_]/); - } else if (stream.match(/\b[mM]4+/, true)) { // match: function(pattern, consume, caseInsensitive) - // m4 pre proc - stream.skipTo("("); - style = "def"; - state.tlvCurCtlFlowChar = "M"; - } else if (ch == "!" && stream.sol()) { - // v stmt in tlv region - // state.tlvCurCtlFlowChar = "S"; - style = "comment"; - stream.next(); - } else if (tlvisOperatorChar.test(ch)) { - // operators - stream.eatWhile(tlvisOperatorChar); - style = "operator"; - } else if (ch == "#") { - // phy hier - state.tlvCurCtlFlowChar = (state.tlvCurCtlFlowChar == "") - ? ch : state.tlvCurCtlFlowChar; - stream.next(); - stream.eatWhile(/[+-]\d/); - style = "tag"; - } else if (tlvkpScopePrefixs.propertyIsEnumerable(ch)) { - // special TLV operators - style = tlvkpScopePrefixs[ch]; - state.tlvCurCtlFlowChar = state.tlvCurCtlFlowChar == "" ? "S" : state.tlvCurCtlFlowChar; // stmt - stream.next(); - stream.match(/[a-zA-Z_0-9]+/); - } else if (style = tlvchScopePrefixes[ch] || false) { - // special TLV operators - state.tlvCurCtlFlowChar = state.tlvCurCtlFlowChar == "" ? ch : state.tlvCurCtlFlowChar; - stream.next(); - stream.match(/[a-zA-Z_0-9]+/); - } - if (state.tlvCurCtlFlowChar != vxCurCtlFlowCharValueAtStart) { // flow change - vxIndent = tlvGenIndent(stream, state); - state.vxIndentRq = vxIndent; - } - } - return style; - }, - token: function(stream, state) { - if (state.vxCodeActive == true && stream.sol() && state.tlvCurCtlFlowChar != "") { - state.tlvPrevPrevCtlFlowChar = state.tlvPrevCtlFlowChar; - state.tlvPrevCtlFlowChar = state.tlvCurCtlFlowChar; - state.tlvCurCtlFlowChar = ""; - } - }, - indent: function(state) { - return (state.vxCodeActive == true) ? state.vxIndentRq : -1; - }, - startState: function(state) { - state.tlvCurCtlFlowChar = ""; - state.tlvPrevCtlFlowChar = ""; - state.tlvPrevPrevCtlFlowChar = ""; - state.vxCodeActive = true; - state.vxIndentRq = 0; - } - } - }); -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/vhdl/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/vhdl/index.html deleted file mode 100644 index 3051bc3..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/vhdl/index.html +++ /dev/null @@ -1,95 +0,0 @@ -<!doctype html> - -<title>CodeMirror: VHDL mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../../addon/edit/matchbrackets.js"></script> -<script src="vhdl.js"></script> -<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">VHDL</a> - </ul> -</div> - -<article> -<h2>VHDL mode</h2> - -<div><textarea id="code" name="code"> -LIBRARY ieee; -USE ieee.std_logic_1164.ALL; -USE ieee.numeric_std.ALL; - -ENTITY tb IS -END tb; - -ARCHITECTURE behavior OF tb IS - --Inputs - signal a : unsigned(2 downto 0) := (others => '0'); - signal b : unsigned(2 downto 0) := (others => '0'); - --Outputs - signal a_eq_b : std_logic; - signal a_le_b : std_logic; - signal a_gt_b : std_logic; - - signal i,j : integer; - -BEGIN - - -- Instantiate the Unit Under Test (UUT) - uut: entity work.comparator PORT MAP ( - a => a, - b => b, - a_eq_b => a_eq_b, - a_le_b => a_le_b, - a_gt_b => a_gt_b - ); - - -- Stimulus process - stim_proc: process - begin - for i in 0 to 8 loop - for j in 0 to 8 loop - a <= to_unsigned(i,3); --integer to unsigned type conversion - b <= to_unsigned(j,3); - wait for 10 ns; - end loop; - end loop; - end process; - -END; -</textarea></div> - -<script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - lineNumbers: true, - matchBrackets: true, - mode: { - name: "vhdl", - } - }); -</script> - -<p> -Syntax highlighting and indentation for the VHDL language. -<h2>Configuration options:</h2> - <ul> - <li><strong>atoms</strong> - List of atom words. Default: "null"</li> - <li><strong>hooks</strong> - List of meta hooks. Default: ["`", "$"]</li> - <li><strong>multiLineStrings</strong> - Whether multi-line strings are accepted. Default: false</li> - </ul> -</p> - -<p><strong>MIME types defined:</strong> <code>text/x-vhdl</code>.</p> -</article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/vhdl/vhdl.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/vhdl/vhdl.js deleted file mode 100644 index 97e086e..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/vhdl/vhdl.js +++ /dev/null @@ -1,189 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -// Originally written by Alf Nielsen, re-written by Michael Zhou -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -function words(str) { - var obj = {}, words = str.split(","); - for (var i = 0; i < words.length; ++i) { - var allCaps = words[i].toUpperCase(); - var firstCap = words[i].charAt(0).toUpperCase() + words[i].slice(1); - obj[words[i]] = true; - obj[allCaps] = true; - obj[firstCap] = true; - } - return obj; -} - -function metaHook(stream) { - stream.eatWhile(/[\w\$_]/); - return "meta"; -} - -CodeMirror.defineMode("vhdl", function(config, parserConfig) { - var indentUnit = config.indentUnit, - atoms = parserConfig.atoms || words("null"), - hooks = parserConfig.hooks || {"`": metaHook, "$": metaHook}, - multiLineStrings = parserConfig.multiLineStrings; - - var keywords = words("abs,access,after,alias,all,and,architecture,array,assert,attribute,begin,block," + - "body,buffer,bus,case,component,configuration,constant,disconnect,downto,else,elsif,end,end block,end case," + - "end component,end for,end generate,end if,end loop,end process,end record,end units,entity,exit,file,for," + - "function,generate,generic,generic map,group,guarded,if,impure,in,inertial,inout,is,label,library,linkage," + - "literal,loop,map,mod,nand,new,next,nor,null,of,on,open,or,others,out,package,package body,port,port map," + - "postponed,procedure,process,pure,range,record,register,reject,rem,report,return,rol,ror,select,severity,signal," + - "sla,sll,sra,srl,subtype,then,to,transport,type,unaffected,units,until,use,variable,wait,when,while,with,xnor,xor"); - - var blockKeywords = words("architecture,entity,begin,case,port,else,elsif,end,for,function,if"); - - var isOperatorChar = /[&|~><!\)\(*#%@+\/=?\:;}{,\.\^\-\[\]]/; - var curPunc; - - function tokenBase(stream, state) { - var ch = stream.next(); - if (hooks[ch]) { - var result = hooks[ch](stream, state); - if (result !== false) return result; - } - if (ch == '"') { - state.tokenize = tokenString2(ch); - return state.tokenize(stream, state); - } - if (ch == "'") { - state.tokenize = tokenString(ch); - return state.tokenize(stream, state); - } - if (/[\[\]{}\(\),;\:\.]/.test(ch)) { - curPunc = ch; - return null; - } - if (/[\d']/.test(ch)) { - stream.eatWhile(/[\w\.']/); - return "number"; - } - if (ch == "-") { - if (stream.eat("-")) { - stream.skipToEnd(); - return "comment"; - } - } - if (isOperatorChar.test(ch)) { - stream.eatWhile(isOperatorChar); - return "operator"; - } - stream.eatWhile(/[\w\$_]/); - var cur = stream.current(); - if (keywords.propertyIsEnumerable(cur.toLowerCase())) { - if (blockKeywords.propertyIsEnumerable(cur)) curPunc = "newstatement"; - return "keyword"; - } - if (atoms.propertyIsEnumerable(cur)) return "atom"; - return "variable"; - } - - function tokenString(quote) { - return function(stream, state) { - var escaped = false, next, end = false; - while ((next = stream.next()) != null) { - if (next == quote && !escaped) {end = true; break;} - escaped = !escaped && next == "--"; - } - if (end || !(escaped || multiLineStrings)) - state.tokenize = tokenBase; - return "string"; - }; - } - function tokenString2(quote) { - return function(stream, state) { - var escaped = false, next, end = false; - while ((next = stream.next()) != null) { - if (next == quote && !escaped) {end = true; break;} - escaped = !escaped && next == "--"; - } - if (end || !(escaped || multiLineStrings)) - state.tokenize = tokenBase; - return "string-2"; - }; - } - - function Context(indented, column, type, align, prev) { - this.indented = indented; - this.column = column; - this.type = type; - this.align = align; - this.prev = prev; - } - function pushContext(state, col, type) { - return state.context = new Context(state.indented, col, type, null, state.context); - } - function popContext(state) { - var t = state.context.type; - if (t == ")" || t == "]" || t == "}") - state.indented = state.context.indented; - return state.context = state.context.prev; - } - - // Interface - return { - startState: function(basecolumn) { - return { - tokenize: null, - context: new Context((basecolumn || 0) - indentUnit, 0, "top", false), - indented: 0, - startOfLine: true - }; - }, - - token: function(stream, state) { - var ctx = state.context; - if (stream.sol()) { - if (ctx.align == null) ctx.align = false; - state.indented = stream.indentation(); - state.startOfLine = true; - } - if (stream.eatSpace()) return null; - curPunc = null; - var style = (state.tokenize || tokenBase)(stream, state); - if (style == "comment" || style == "meta") return style; - if (ctx.align == null) ctx.align = true; - - if ((curPunc == ";" || curPunc == ":") && ctx.type == "statement") popContext(state); - else if (curPunc == "{") pushContext(state, stream.column(), "}"); - else if (curPunc == "[") pushContext(state, stream.column(), "]"); - else if (curPunc == "(") pushContext(state, stream.column(), ")"); - else if (curPunc == "}") { - while (ctx.type == "statement") ctx = popContext(state); - if (ctx.type == "}") ctx = popContext(state); - while (ctx.type == "statement") ctx = popContext(state); - } - else if (curPunc == ctx.type) popContext(state); - else if (ctx.type == "}" || ctx.type == "top" || (ctx.type == "statement" && curPunc == "newstatement")) - pushContext(state, stream.column(), "statement"); - state.startOfLine = false; - return style; - }, - - indent: function(state, textAfter) { - if (state.tokenize != tokenBase && state.tokenize != null) return 0; - var firstChar = textAfter && textAfter.charAt(0), ctx = state.context, closing = firstChar == ctx.type; - if (ctx.type == "statement") return ctx.indented + (firstChar == "{" ? 0 : indentUnit); - else if (ctx.align) return ctx.column + (closing ? 0 : 1); - else return ctx.indented + (closing ? 0 : indentUnit); - }, - - electricChars: "{}" - }; -}); - -CodeMirror.defineMIME("text/x-vhdl", "vhdl"); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/vue/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/vue/index.html deleted file mode 100644 index e0b45b9..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/vue/index.html +++ /dev/null @@ -1,69 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Vue.js mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../../addon/mode/overlay.js"></script> -<script src="../../addon/mode/simple.js"></script> -<script src="../../addon/selection/selection-pointer.js"></script> -<script src="../xml/xml.js"></script> -<script src="../javascript/javascript.js"></script> -<script src="../css/css.js"></script> -<script src="../coffeescript/coffeescript.js"></script> -<script src="../sass/sass.js"></script> -<script src="../pug/pug.js"></script> - -<script src="../handlebars/handlebars.js"></script> -<script src="../htmlmixed/htmlmixed.js"></script> -<script src="vue.js"></script> -<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Vue.js mode</a> - </ul> -</div> - -<article> -<h2>Vue.js mode</h2> -<form><textarea id="code" name="code"> -<template> - <div class="sass">Im am a {{mustache-like}} template</div> -</template> - -<script lang="coffee"> - module.exports = - props: ['one', 'two', 'three'] -</script> - -<style lang="sass"> -.sass - font-size: 18px -</style> - -</textarea></form> - <script> - // Define an extended mixed-mode that understands vbscript and - // leaves mustache/handlebars embedded templates in html mode - var mixedMode = { - name: "vue" - }; - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - mode: mixedMode, - selectionPointer: true - }); - </script> - - <p><strong>MIME types defined:</strong> <code>text/x-vue</code></p> - - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/vue/vue.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/vue/vue.js deleted file mode 100644 index f8089af..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/vue/vue.js +++ /dev/null @@ -1,69 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function (mod) { - "use strict"; - if (typeof exports === "object" && typeof module === "object") {// CommonJS - mod(require("../../lib/codemirror"), - require("../../addon/mode/overlay"), - require("../xml/xml"), - require("../javascript/javascript"), - require("../coffeescript/coffeescript"), - require("../css/css"), - require("../sass/sass"), - require("../stylus/stylus"), - require("../pug/pug"), - require("../handlebars/handlebars")); - } else if (typeof define === "function" && define.amd) { // AMD - define(["../../lib/codemirror", - "../../addon/mode/overlay", - "../xml/xml", - "../javascript/javascript", - "../coffeescript/coffeescript", - "../css/css", - "../sass/sass", - "../stylus/stylus", - "../pug/pug", - "../handlebars/handlebars"], mod); - } else { // Plain browser env - mod(CodeMirror); - } -})(function (CodeMirror) { - var tagLanguages = { - script: [ - ["lang", /coffee(script)?/, "coffeescript"], - ["type", /^(?:text|application)\/(?:x-)?coffee(?:script)?$/, "coffeescript"] - ], - style: [ - ["lang", /^stylus$/i, "stylus"], - ["lang", /^sass$/i, "sass"], - ["type", /^(text\/)?(x-)?styl(us)?$/i, "stylus"], - ["type", /^text\/sass/i, "sass"] - ], - template: [ - ["lang", /^vue-template$/i, "vue"], - ["lang", /^pug$/i, "pug"], - ["lang", /^handlebars$/i, "handlebars"], - ["type", /^(text\/)?(x-)?pug$/i, "pug"], - ["type", /^text\/x-handlebars-template$/i, "handlebars"], - [null, null, "vue-template"] - ] - }; - - CodeMirror.defineMode("vue-template", function (config, parserConfig) { - var mustacheOverlay = { - token: function (stream) { - if (stream.match(/^\{\{.*?\}\}/)) return "meta mustache"; - while (stream.next() && !stream.match("{{", false)) {} - return null; - } - }; - return CodeMirror.overlayMode(CodeMirror.getMode(config, parserConfig.backdrop || "text/html"), mustacheOverlay); - }); - - CodeMirror.defineMode("vue", function (config) { - return CodeMirror.getMode(config, {name: "htmlmixed", tags: tagLanguages}); - }, "htmlmixed", "xml", "javascript", "coffeescript", "css", "sass", "stylus", "pug", "handlebars"); - - CodeMirror.defineMIME("script/x-vue", "vue"); -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/webidl/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/webidl/index.html deleted file mode 100644 index 1d4112e..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/webidl/index.html +++ /dev/null @@ -1,71 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Web IDL mode</title> -<meta charset="utf-8"> -<link rel="stylesheet" href="../../doc/docs.css"> -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../../addon/edit/matchbrackets.js"></script> -<script src="webidl.js"></script> -<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> - -<div id="nav"> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id="logo" src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class="active" href="#">Web IDL</a> - </ul> -</div> - -<article> - <h2>Web IDL mode</h2> - - <div> -<textarea id="code" name="code"> -[NamedConstructor=Image(optional unsigned long width, optional unsigned long height)] -interface HTMLImageElement : HTMLElement { - attribute DOMString alt; - attribute DOMString src; - attribute DOMString srcset; - attribute DOMString sizes; - attribute DOMString? crossOrigin; - attribute DOMString useMap; - attribute boolean isMap; - attribute unsigned long width; - attribute unsigned long height; - readonly attribute unsigned long naturalWidth; - readonly attribute unsigned long naturalHeight; - readonly attribute boolean complete; - readonly attribute DOMString currentSrc; - - // also has obsolete members -}; - -partial interface HTMLImageElement { - attribute DOMString name; - attribute DOMString lowsrc; - attribute DOMString align; - attribute unsigned long hspace; - attribute unsigned long vspace; - attribute DOMString longDesc; - - [TreatNullAs=EmptyString] attribute DOMString border; -}; -</textarea> - </div> - - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - lineNumbers: true, - matchBrackets: true - }); - </script> - - <p><strong>MIME type defined:</strong> <code>text/x-webidl</code>.</p> -</article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/webidl/webidl.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/webidl/webidl.js deleted file mode 100644 index 8143336..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/webidl/webidl.js +++ /dev/null @@ -1,195 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -function wordRegexp(words) { - return new RegExp("^((" + words.join(")|(") + "))\\b"); -}; - -var builtinArray = [ - "Clamp", - "Constructor", - "EnforceRange", - "Exposed", - "ImplicitThis", - "Global", "PrimaryGlobal", - "LegacyArrayClass", - "LegacyUnenumerableNamedProperties", - "LenientThis", - "NamedConstructor", - "NewObject", - "NoInterfaceObject", - "OverrideBuiltins", - "PutForwards", - "Replaceable", - "SameObject", - "TreatNonObjectAsNull", - "TreatNullAs", - "EmptyString", - "Unforgeable", - "Unscopeable" -]; -var builtins = wordRegexp(builtinArray); - -var typeArray = [ - "unsigned", "short", "long", // UnsignedIntegerType - "unrestricted", "float", "double", // UnrestrictedFloatType - "boolean", "byte", "octet", // Rest of PrimitiveType - "Promise", // PromiseType - "ArrayBuffer", "DataView", "Int8Array", "Int16Array", "Int32Array", - "Uint8Array", "Uint16Array", "Uint32Array", "Uint8ClampedArray", - "Float32Array", "Float64Array", // BufferRelatedType - "ByteString", "DOMString", "USVString", "sequence", "object", "RegExp", - "Error", "DOMException", "FrozenArray", // Rest of NonAnyType - "any", // Rest of SingleType - "void" // Rest of ReturnType -]; -var types = wordRegexp(typeArray); - -var keywordArray = [ - "attribute", "callback", "const", "deleter", "dictionary", "enum", "getter", - "implements", "inherit", "interface", "iterable", "legacycaller", "maplike", - "partial", "required", "serializer", "setlike", "setter", "static", - "stringifier", "typedef", // ArgumentNameKeyword except - // "unrestricted" - "optional", "readonly", "or" -]; -var keywords = wordRegexp(keywordArray); - -var atomArray = [ - "true", "false", // BooleanLiteral - "Infinity", "NaN", // FloatLiteral - "null" // Rest of ConstValue -]; -var atoms = wordRegexp(atomArray); - -CodeMirror.registerHelper("hintWords", "webidl", - builtinArray.concat(typeArray).concat(keywordArray).concat(atomArray)); - -var startDefArray = ["callback", "dictionary", "enum", "interface"]; -var startDefs = wordRegexp(startDefArray); - -var endDefArray = ["typedef"]; -var endDefs = wordRegexp(endDefArray); - -var singleOperators = /^[:<=>?]/; -var integers = /^-?([1-9][0-9]*|0[Xx][0-9A-Fa-f]+|0[0-7]*)/; -var floats = /^-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)/; -var identifiers = /^_?[A-Za-z][0-9A-Z_a-z-]*/; -var identifiersEnd = /^_?[A-Za-z][0-9A-Z_a-z-]*(?=\s*;)/; -var strings = /^"[^"]*"/; -var multilineComments = /^\/\*.*?\*\//; -var multilineCommentsStart = /^\/\*.*/; -var multilineCommentsEnd = /^.*?\*\//; - -function readToken(stream, state) { - // whitespace - if (stream.eatSpace()) return null; - - // comment - if (state.inComment) { - if (stream.match(multilineCommentsEnd)) { - state.inComment = false; - return "comment"; - } - stream.skipToEnd(); - return "comment"; - } - if (stream.match("//")) { - stream.skipToEnd(); - return "comment"; - } - if (stream.match(multilineComments)) return "comment"; - if (stream.match(multilineCommentsStart)) { - state.inComment = true; - return "comment"; - } - - // integer and float - if (stream.match(/^-?[0-9\.]/, false)) { - if (stream.match(integers) || stream.match(floats)) return "number"; - } - - // string - if (stream.match(strings)) return "string"; - - // identifier - if (state.startDef && stream.match(identifiers)) return "def"; - - if (state.endDef && stream.match(identifiersEnd)) { - state.endDef = false; - return "def"; - } - - if (stream.match(keywords)) return "keyword"; - - if (stream.match(types)) { - var lastToken = state.lastToken; - var nextToken = (stream.match(/^\s*(.+?)\b/, false) || [])[1]; - - if (lastToken === ":" || lastToken === "implements" || - nextToken === "implements" || nextToken === "=") { - // Used as identifier - return "builtin"; - } else { - // Used as type - return "variable-3"; - } - } - - if (stream.match(builtins)) return "builtin"; - if (stream.match(atoms)) return "atom"; - if (stream.match(identifiers)) return "variable"; - - // other - if (stream.match(singleOperators)) return "operator"; - - // unrecognized - stream.next(); - return null; -}; - -CodeMirror.defineMode("webidl", function() { - return { - startState: function() { - return { - // Is in multiline comment - inComment: false, - // Last non-whitespace, matched token - lastToken: "", - // Next token is a definition - startDef: false, - // Last token of the statement is a definition - endDef: false - }; - }, - token: function(stream, state) { - var style = readToken(stream, state); - - if (style) { - var cur = stream.current(); - state.lastToken = cur; - if (style === "keyword") { - state.startDef = startDefs.test(cur); - state.endDef = state.endDef || endDefs.test(cur); - } else { - state.startDef = false; - } - } - - return style; - } - }; -}); - -CodeMirror.defineMIME("text/x-webidl", "webidl"); -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/xml/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/xml/index.html deleted file mode 100644 index c56b8b6..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/xml/index.html +++ /dev/null @@ -1,61 +0,0 @@ -<!doctype html> - -<title>CodeMirror: XML mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="xml.js"></script> -<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">XML</a> - </ul> -</div> - -<article> -<h2>XML mode</h2> -<form><textarea id="code" name="code"> -<html style="color: green"> - <!-- this is a comment --> - <head> - <title>HTML Example</title> - </head> - <body> - The indentation tries to be <em>somewhat &quot;do what - I mean&quot;</em>... but might not match your style. - </body> -</html> -</textarea></form> - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - mode: "text/html", - lineNumbers: true - }); - </script> - <p>The XML mode supports these configuration parameters:</p> - <dl> - <dt><code>htmlMode (boolean)</code></dt> - <dd>This switches the mode to parse HTML instead of XML. This - means attributes do not have to be quoted, and some elements - (such as <code>br</code>) do not require a closing tag.</dd> - <dt><code>matchClosing (boolean)</code></dt> - <dd>Controls whether the mode checks that close tags match the - corresponding opening tag, and highlights mismatches as errors. - Defaults to true.</dd> - <dt><code>alignCDATA (boolean)</code></dt> - <dd>Setting this to true will force the opening tag of CDATA - blocks to not be indented.</dd> - </dl> - - <p><strong>MIME types defined:</strong> <code>application/xml</code>, <code>text/html</code>.</p> - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/xml/test.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/xml/test.js deleted file mode 100644 index f48156b..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/xml/test.js +++ /dev/null @@ -1,51 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function() { - var mode = CodeMirror.getMode({indentUnit: 2}, "xml"), mname = "xml"; - function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1), mname); } - - MT("matching", - "[tag&bracket <][tag top][tag&bracket >]", - " text", - " [tag&bracket <][tag inner][tag&bracket />]", - "[tag&bracket </][tag top][tag&bracket >]"); - - MT("nonmatching", - "[tag&bracket <][tag top][tag&bracket >]", - " [tag&bracket <][tag inner][tag&bracket />]", - " [tag&bracket </][tag&error tip][tag&bracket&error >]"); - - MT("doctype", - "[meta <!doctype foobar>]", - "[tag&bracket <][tag top][tag&bracket />]"); - - MT("cdata", - "[tag&bracket <][tag top][tag&bracket >]", - " [atom <![CDATA[foo]", - "[atom barbazguh]]]]>]", - "[tag&bracket </][tag top][tag&bracket >]"); - - // HTML tests - mode = CodeMirror.getMode({indentUnit: 2}, "text/html"); - - MT("selfclose", - "[tag&bracket <][tag html][tag&bracket >]", - " [tag&bracket <][tag link] [attribute rel]=[string stylesheet] [attribute href]=[string \"/foobar\"][tag&bracket >]", - "[tag&bracket </][tag html][tag&bracket >]"); - - MT("list", - "[tag&bracket <][tag ol][tag&bracket >]", - " [tag&bracket <][tag li][tag&bracket >]one", - " [tag&bracket <][tag li][tag&bracket >]two", - "[tag&bracket </][tag ol][tag&bracket >]"); - - MT("valueless", - "[tag&bracket <][tag input] [attribute type]=[string checkbox] [attribute checked][tag&bracket />]"); - - MT("pThenArticle", - "[tag&bracket <][tag p][tag&bracket >]", - " foo", - "[tag&bracket <][tag article][tag&bracket >]bar"); - -})(); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/xml/xml.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/xml/xml.js deleted file mode 100644 index f987a3a..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/xml/xml.js +++ /dev/null @@ -1,394 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -var htmlConfig = { - autoSelfClosers: {'area': true, 'base': true, 'br': true, 'col': true, 'command': true, - 'embed': true, 'frame': true, 'hr': true, 'img': true, 'input': true, - 'keygen': true, 'link': true, 'meta': true, 'param': true, 'source': true, - 'track': true, 'wbr': true, 'menuitem': true}, - implicitlyClosed: {'dd': true, 'li': true, 'optgroup': true, 'option': true, 'p': true, - 'rp': true, 'rt': true, 'tbody': true, 'td': true, 'tfoot': true, - 'th': true, 'tr': true}, - contextGrabbers: { - 'dd': {'dd': true, 'dt': true}, - 'dt': {'dd': true, 'dt': true}, - 'li': {'li': true}, - 'option': {'option': true, 'optgroup': true}, - 'optgroup': {'optgroup': true}, - 'p': {'address': true, 'article': true, 'aside': true, 'blockquote': true, 'dir': true, - 'div': true, 'dl': true, 'fieldset': true, 'footer': true, 'form': true, - 'h1': true, 'h2': true, 'h3': true, 'h4': true, 'h5': true, 'h6': true, - 'header': true, 'hgroup': true, 'hr': true, 'menu': true, 'nav': true, 'ol': true, - 'p': true, 'pre': true, 'section': true, 'table': true, 'ul': true}, - 'rp': {'rp': true, 'rt': true}, - 'rt': {'rp': true, 'rt': true}, - 'tbody': {'tbody': true, 'tfoot': true}, - 'td': {'td': true, 'th': true}, - 'tfoot': {'tbody': true}, - 'th': {'td': true, 'th': true}, - 'thead': {'tbody': true, 'tfoot': true}, - 'tr': {'tr': true} - }, - doNotIndent: {"pre": true}, - allowUnquoted: true, - allowMissing: true, - caseFold: true -} - -var xmlConfig = { - autoSelfClosers: {}, - implicitlyClosed: {}, - contextGrabbers: {}, - doNotIndent: {}, - allowUnquoted: false, - allowMissing: false, - caseFold: false -} - -CodeMirror.defineMode("xml", function(editorConf, config_) { - var indentUnit = editorConf.indentUnit - var config = {} - var defaults = config_.htmlMode ? htmlConfig : xmlConfig - for (var prop in defaults) config[prop] = defaults[prop] - for (var prop in config_) config[prop] = config_[prop] - - // Return variables for tokenizers - var type, setStyle; - - function inText(stream, state) { - function chain(parser) { - state.tokenize = parser; - return parser(stream, state); - } - - var ch = stream.next(); - if (ch == "<") { - if (stream.eat("!")) { - if (stream.eat("[")) { - if (stream.match("CDATA[")) return chain(inBlock("atom", "]]>")); - else return null; - } else if (stream.match("--")) { - return chain(inBlock("comment", "-->")); - } else if (stream.match("DOCTYPE", true, true)) { - stream.eatWhile(/[\w\._\-]/); - return chain(doctype(1)); - } else { - return null; - } - } else if (stream.eat("?")) { - stream.eatWhile(/[\w\._\-]/); - state.tokenize = inBlock("meta", "?>"); - return "meta"; - } else { - type = stream.eat("/") ? "closeTag" : "openTag"; - state.tokenize = inTag; - return "tag bracket"; - } - } else if (ch == "&") { - var ok; - if (stream.eat("#")) { - if (stream.eat("x")) { - ok = stream.eatWhile(/[a-fA-F\d]/) && stream.eat(";"); - } else { - ok = stream.eatWhile(/[\d]/) && stream.eat(";"); - } - } else { - ok = stream.eatWhile(/[\w\.\-:]/) && stream.eat(";"); - } - return ok ? "atom" : "error"; - } else { - stream.eatWhile(/[^&<]/); - return null; - } - } - inText.isInText = true; - - function inTag(stream, state) { - var ch = stream.next(); - if (ch == ">" || (ch == "/" && stream.eat(">"))) { - state.tokenize = inText; - type = ch == ">" ? "endTag" : "selfcloseTag"; - return "tag bracket"; - } else if (ch == "=") { - type = "equals"; - return null; - } else if (ch == "<") { - state.tokenize = inText; - state.state = baseState; - state.tagName = state.tagStart = null; - var next = state.tokenize(stream, state); - return next ? next + " tag error" : "tag error"; - } else if (/[\'\"]/.test(ch)) { - state.tokenize = inAttribute(ch); - state.stringStartCol = stream.column(); - return state.tokenize(stream, state); - } else { - stream.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/); - return "word"; - } - } - - function inAttribute(quote) { - var closure = function(stream, state) { - while (!stream.eol()) { - if (stream.next() == quote) { - state.tokenize = inTag; - break; - } - } - return "string"; - }; - closure.isInAttribute = true; - return closure; - } - - function inBlock(style, terminator) { - return function(stream, state) { - while (!stream.eol()) { - if (stream.match(terminator)) { - state.tokenize = inText; - break; - } - stream.next(); - } - return style; - }; - } - function doctype(depth) { - return function(stream, state) { - var ch; - while ((ch = stream.next()) != null) { - if (ch == "<") { - state.tokenize = doctype(depth + 1); - return state.tokenize(stream, state); - } else if (ch == ">") { - if (depth == 1) { - state.tokenize = inText; - break; - } else { - state.tokenize = doctype(depth - 1); - return state.tokenize(stream, state); - } - } - } - return "meta"; - }; - } - - function Context(state, tagName, startOfLine) { - this.prev = state.context; - this.tagName = tagName; - this.indent = state.indented; - this.startOfLine = startOfLine; - if (config.doNotIndent.hasOwnProperty(tagName) || (state.context && state.context.noIndent)) - this.noIndent = true; - } - function popContext(state) { - if (state.context) state.context = state.context.prev; - } - function maybePopContext(state, nextTagName) { - var parentTagName; - while (true) { - if (!state.context) { - return; - } - parentTagName = state.context.tagName; - if (!config.contextGrabbers.hasOwnProperty(parentTagName) || - !config.contextGrabbers[parentTagName].hasOwnProperty(nextTagName)) { - return; - } - popContext(state); - } - } - - function baseState(type, stream, state) { - if (type == "openTag") { - state.tagStart = stream.column(); - return tagNameState; - } else if (type == "closeTag") { - return closeTagNameState; - } else { - return baseState; - } - } - function tagNameState(type, stream, state) { - if (type == "word") { - state.tagName = stream.current(); - setStyle = "tag"; - return attrState; - } else { - setStyle = "error"; - return tagNameState; - } - } - function closeTagNameState(type, stream, state) { - if (type == "word") { - var tagName = stream.current(); - if (state.context && state.context.tagName != tagName && - config.implicitlyClosed.hasOwnProperty(state.context.tagName)) - popContext(state); - if ((state.context && state.context.tagName == tagName) || config.matchClosing === false) { - setStyle = "tag"; - return closeState; - } else { - setStyle = "tag error"; - return closeStateErr; - } - } else { - setStyle = "error"; - return closeStateErr; - } - } - - function closeState(type, _stream, state) { - if (type != "endTag") { - setStyle = "error"; - return closeState; - } - popContext(state); - return baseState; - } - function closeStateErr(type, stream, state) { - setStyle = "error"; - return closeState(type, stream, state); - } - - function attrState(type, _stream, state) { - if (type == "word") { - setStyle = "attribute"; - return attrEqState; - } else if (type == "endTag" || type == "selfcloseTag") { - var tagName = state.tagName, tagStart = state.tagStart; - state.tagName = state.tagStart = null; - if (type == "selfcloseTag" || - config.autoSelfClosers.hasOwnProperty(tagName)) { - maybePopContext(state, tagName); - } else { - maybePopContext(state, tagName); - state.context = new Context(state, tagName, tagStart == state.indented); - } - return baseState; - } - setStyle = "error"; - return attrState; - } - function attrEqState(type, stream, state) { - if (type == "equals") return attrValueState; - if (!config.allowMissing) setStyle = "error"; - return attrState(type, stream, state); - } - function attrValueState(type, stream, state) { - if (type == "string") return attrContinuedState; - if (type == "word" && config.allowUnquoted) {setStyle = "string"; return attrState;} - setStyle = "error"; - return attrState(type, stream, state); - } - function attrContinuedState(type, stream, state) { - if (type == "string") return attrContinuedState; - return attrState(type, stream, state); - } - - return { - startState: function(baseIndent) { - var state = {tokenize: inText, - state: baseState, - indented: baseIndent || 0, - tagName: null, tagStart: null, - context: null} - if (baseIndent != null) state.baseIndent = baseIndent - return state - }, - - token: function(stream, state) { - if (!state.tagName && stream.sol()) - state.indented = stream.indentation(); - - if (stream.eatSpace()) return null; - type = null; - var style = state.tokenize(stream, state); - if ((style || type) && style != "comment") { - setStyle = null; - state.state = state.state(type || style, stream, state); - if (setStyle) - style = setStyle == "error" ? style + " error" : setStyle; - } - return style; - }, - - indent: function(state, textAfter, fullLine) { - var context = state.context; - // Indent multi-line strings (e.g. css). - if (state.tokenize.isInAttribute) { - if (state.tagStart == state.indented) - return state.stringStartCol + 1; - else - return state.indented + indentUnit; - } - if (context && context.noIndent) return CodeMirror.Pass; - if (state.tokenize != inTag && state.tokenize != inText) - return fullLine ? fullLine.match(/^(\s*)/)[0].length : 0; - // Indent the starts of attribute names. - if (state.tagName) { - if (config.multilineTagIndentPastTag !== false) - return state.tagStart + state.tagName.length + 2; - else - return state.tagStart + indentUnit * (config.multilineTagIndentFactor || 1); - } - if (config.alignCDATA && /<!\[CDATA\[/.test(textAfter)) return 0; - var tagAfter = textAfter && /^<(\/)?([\w_:\.-]*)/.exec(textAfter); - if (tagAfter && tagAfter[1]) { // Closing tag spotted - while (context) { - if (context.tagName == tagAfter[2]) { - context = context.prev; - break; - } else if (config.implicitlyClosed.hasOwnProperty(context.tagName)) { - context = context.prev; - } else { - break; - } - } - } else if (tagAfter) { // Opening tag spotted - while (context) { - var grabbers = config.contextGrabbers[context.tagName]; - if (grabbers && grabbers.hasOwnProperty(tagAfter[2])) - context = context.prev; - else - break; - } - } - while (context && context.prev && !context.startOfLine) - context = context.prev; - if (context) return context.indent + indentUnit; - else return state.baseIndent || 0; - }, - - electricInput: /<\/[\s\w:]+>$/, - blockCommentStart: "<!--", - blockCommentEnd: "-->", - - configuration: config.htmlMode ? "html" : "xml", - helperType: config.htmlMode ? "html" : "xml", - - skipAttribute: function(state) { - if (state.state == attrValueState) - state.state = attrState - } - }; -}); - -CodeMirror.defineMIME("text/xml", "xml"); -CodeMirror.defineMIME("application/xml", "xml"); -if (!CodeMirror.mimeModes.hasOwnProperty("text/html")) - CodeMirror.defineMIME("text/html", {name: "xml", htmlMode: true}); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/xquery/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/xquery/index.html deleted file mode 100644 index 7ac5aae..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/xquery/index.html +++ /dev/null @@ -1,210 +0,0 @@ -<!doctype html> - -<title>CodeMirror: XQuery mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<link rel="stylesheet" href="../../theme/xq-dark.css"> -<script src="../../lib/codemirror.js"></script> -<script src="xquery.js"></script> -<style type="text/css"> - .CodeMirror { - border-top: 1px solid black; border-bottom: 1px solid black; - height:400px; - } - </style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">XQuery</a> - </ul> -</div> - -<article> -<h2>XQuery mode</h2> - - -<div class="cm-s-default"> - <textarea id="code" name="code"> -xquery version "1.0-ml"; -(: this is - : a - "comment" :) -let $let := <x attr="value">"test"<func>function() $var {function()} {$var}</func></x> -let $joe:=1 -return element element { - attribute attribute { 1 }, - element test { 'a' }, - attribute foo { "bar" }, - fn:doc()[ foo/@bar eq $let ], - //x } - -(: a more 'evil' test :) -(: Modified Blakeley example (: with nested comment :) ... :) -declare private function local:declare() {()}; -declare private function local:private() {()}; -declare private function local:function() {()}; -declare private function local:local() {()}; -let $let := <let>let $let := "let"</let> -return element element { - attribute attribute { try { xdmp:version() } catch($e) { xdmp:log($e) } }, - attribute fn:doc { "bar" castable as xs:string }, - element text { text { "text" } }, - fn:doc()[ child::eq/(@bar | attribute::attribute) eq $let ], - //fn:doc -} - - - -xquery version "1.0-ml"; - -(: Copyright 2006-2010 Mark Logic Corporation. :) - -(: - : Licensed under the Apache License, Version 2.0 (the "License"); - : you may not use this file except in compliance with the License. - : You may obtain a copy of the License at - : - : http://www.apache.org/licenses/LICENSE-2.0 - : - : Unless required by applicable law or agreed to in writing, software - : distributed under the License is distributed on an "AS IS" BASIS, - : WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - : See the License for the specific language governing permissions and - : limitations under the License. - :) - -module namespace json = "http://marklogic.com/json"; -declare default function namespace "http://www.w3.org/2005/xpath-functions"; - -(: Need to backslash escape any double quotes, backslashes, and newlines :) -declare function json:escape($s as xs:string) as xs:string { - let $s := replace($s, "\\", "\\\\") - let $s := replace($s, """", "\\""") - let $s := replace($s, codepoints-to-string((13, 10)), "\\n") - let $s := replace($s, codepoints-to-string(13), "\\n") - let $s := replace($s, codepoints-to-string(10), "\\n") - return $s -}; - -declare function json:atomize($x as element()) as xs:string { - if (count($x/node()) = 0) then 'null' - else if ($x/@type = "number") then - let $castable := $x castable as xs:float or - $x castable as xs:double or - $x castable as xs:decimal - return - if ($castable) then xs:string($x) - else error(concat("Not a number: ", xdmp:describe($x))) - else if ($x/@type = "boolean") then - let $castable := $x castable as xs:boolean - return - if ($castable) then xs:string(xs:boolean($x)) - else error(concat("Not a boolean: ", xdmp:describe($x))) - else concat('"', json:escape($x), '"') -}; - -(: Print the thing that comes after the colon :) -declare function json:print-value($x as element()) as xs:string { - if (count($x/*) = 0) then - json:atomize($x) - else if ($x/@quote = "true") then - concat('"', json:escape(xdmp:quote($x/node())), '"') - else - string-join(('{', - string-join(for $i in $x/* return json:print-name-value($i), ","), - '}'), "") -}; - -(: Print the name and value both :) -declare function json:print-name-value($x as element()) as xs:string? { - let $name := name($x) - let $first-in-array := - count($x/preceding-sibling::*[name(.) = $name]) = 0 and - (count($x/following-sibling::*[name(.) = $name]) > 0 or $x/@array = "true") - let $later-in-array := count($x/preceding-sibling::*[name(.) = $name]) > 0 - return - - if ($later-in-array) then - () (: I was handled previously :) - else if ($first-in-array) then - string-join(('"', json:escape($name), '":[', - string-join((for $i in ($x, $x/following-sibling::*[name(.) = $name]) return json:print-value($i)), ","), - ']'), "") - else - string-join(('"', json:escape($name), '":', json:print-value($x)), "") -}; - -(:~ - Transforms an XML element into a JSON string representation. See http://json.org. - <p/> - Sample usage: - <pre> - xquery version "1.0-ml"; - import module namespace json="http://marklogic.com/json" at "json.xqy"; - json:serialize(&lt;foo&gt;&lt;bar&gt;kid&lt;/bar&gt;&lt;/foo&gt;) - </pre> - Sample transformations: - <pre> - &lt;e/&gt; becomes {"e":null} - &lt;e&gt;text&lt;/e&gt; becomes {"e":"text"} - &lt;e&gt;quote " escaping&lt;/e&gt; becomes {"e":"quote \" escaping"} - &lt;e&gt;backslash \ escaping&lt;/e&gt; becomes {"e":"backslash \\ escaping"} - &lt;e&gt;&lt;a&gt;text1&lt;/a&gt;&lt;b&gt;text2&lt;/b&gt;&lt;/e&gt; becomes {"e":{"a":"text1","b":"text2"}} - &lt;e&gt;&lt;a&gt;text1&lt;/a&gt;&lt;a&gt;text2&lt;/a&gt;&lt;/e&gt; becomes {"e":{"a":["text1","text2"]}} - &lt;e&gt;&lt;a array="true"&gt;text1&lt;/a&gt;&lt;/e&gt; becomes {"e":{"a":["text1"]}} - &lt;e&gt;&lt;a type="boolean"&gt;false&lt;/a&gt;&lt;/e&gt; becomes {"e":{"a":false}} - &lt;e&gt;&lt;a type="number"&gt;123.5&lt;/a&gt;&lt;/e&gt; becomes {"e":{"a":123.5}} - &lt;e quote="true"&gt;&lt;div attrib="value"/&gt;&lt;/e&gt; becomes {"e":"&lt;div attrib=\"value\"/&gt;"} - </pre> - <p/> - Namespace URIs are ignored. Namespace prefixes are included in the JSON name. - <p/> - Attributes are ignored, except for the special attribute @array="true" that - indicates the JSON serialization should write the node, even if single, as an - array, and the attribute @type that can be set to "boolean" or "number" to - dictate the value should be written as that type (unquoted). There's also - an @quote attribute that when set to true writes the inner content as text - rather than as structured JSON, useful for sending some XHTML over the - wire. - <p/> - Text nodes within mixed content are ignored. - - @param $x Element node to convert - @return String holding JSON serialized representation of $x - - @author Jason Hunter - @version 1.0.1 - - Ported to xquery 1.0-ml; double escaped backslashes in json:escape -:) -declare function json:serialize($x as element()) as xs:string { - string-join(('{', json:print-name-value($x), '}'), "") -}; - </textarea> -</div> - - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - lineNumbers: true, - matchBrackets: true, - theme: "xq-dark" - }); - </script> - - <p><strong>MIME types defined:</strong> <code>application/xquery</code>.</p> - - <p>Development of the CodeMirror XQuery mode was sponsored by - <a href="http://marklogic.com">MarkLogic</a> and developed by - <a href="https://twitter.com/mbrevoort">Mike Brevoort</a>. - </p> - - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/xquery/test.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/xquery/test.js deleted file mode 100644 index 1f148cd..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/xquery/test.js +++ /dev/null @@ -1,67 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -// Don't take these too seriously -- the expected results appear to be -// based on the results of actual runs without any serious manual -// verification. If a change you made causes them to fail, the test is -// as likely to wrong as the code. - -(function() { - var mode = CodeMirror.getMode({tabSize: 4}, "xquery"); - function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); } - - MT("eviltest", - "[keyword xquery] [keyword version] [variable "1][keyword .][atom 0][keyword -][variable ml"][def&variable ;] [comment (: this is : a \"comment\" :)]", - " [keyword let] [variable $let] [keyword :=] [variable <x] [variable attr][keyword =][variable "value">"test"<func>][def&variable ;function]() [variable $var] {[keyword function]()} {[variable $var]}[variable <][keyword /][variable func><][keyword /][variable x>]", - " [keyword let] [variable $joe][keyword :=][atom 1]", - " [keyword return] [keyword element] [variable element] {", - " [keyword attribute] [variable attribute] { [atom 1] },", - " [keyword element] [variable test] { [variable 'a'] }, [keyword attribute] [variable foo] { [variable "bar"] },", - " [def&variable fn:doc]()[[ [variable foo][keyword /][variable @bar] [keyword eq] [variable $let] ]],", - " [keyword //][variable x] } [comment (: a more 'evil' test :)]", - " [comment (: Modified Blakeley example (: with nested comment :) ... :)]", - " [keyword declare] [keyword private] [keyword function] [def&variable local:declare]() {()}[variable ;]", - " [keyword declare] [keyword private] [keyword function] [def&variable local:private]() {()}[variable ;]", - " [keyword declare] [keyword private] [keyword function] [def&variable local:function]() {()}[variable ;]", - " [keyword declare] [keyword private] [keyword function] [def&variable local:local]() {()}[variable ;]", - " [keyword let] [variable $let] [keyword :=] [variable <let>let] [variable $let] [keyword :=] [variable "let"<][keyword /let][variable >]", - " [keyword return] [keyword element] [variable element] {", - " [keyword attribute] [variable attribute] { [keyword try] { [def&variable xdmp:version]() } [keyword catch]([variable $e]) { [def&variable xdmp:log]([variable $e]) } },", - " [keyword attribute] [variable fn:doc] { [variable "bar"] [variable castable] [keyword as] [atom xs:string] },", - " [keyword element] [variable text] { [keyword text] { [variable "text"] } },", - " [def&variable fn:doc]()[[ [qualifier child::][variable eq][keyword /]([variable @bar] [keyword |] [qualifier attribute::][variable attribute]) [keyword eq] [variable $let] ]],", - " [keyword //][variable fn:doc]", - " }"); - - MT("testEmptySequenceKeyword", - "[string \"foo\"] [keyword instance] [keyword of] [keyword empty-sequence]()"); - - MT("testMultiAttr", - "[tag <p ][attribute a1]=[string \"foo\"] [attribute a2]=[string \"bar\"][tag >][variable hello] [variable world][tag </p>]"); - - MT("test namespaced variable", - "[keyword declare] [keyword namespace] [variable e] [keyword =] [string \"http://example.com/ANamespace\"][variable ;declare] [keyword variable] [variable $e:exampleComThisVarIsNotRecognized] [keyword as] [keyword element]([keyword *]) [variable external;]"); - - MT("test EQName variable", - "[keyword declare] [keyword variable] [variable $\"http://www.example.com/ns/my\":var] [keyword :=] [atom 12][variable ;]", - "[tag <out>]{[variable $\"http://www.example.com/ns/my\":var]}[tag </out>]"); - - MT("test EQName function", - "[keyword declare] [keyword function] [def&variable \"http://www.example.com/ns/my\":fn] ([variable $a] [keyword as] [atom xs:integer]) [keyword as] [atom xs:integer] {", - " [variable $a] [keyword +] [atom 2]", - "}[variable ;]", - "[tag <out>]{[def&variable \"http://www.example.com/ns/my\":fn]([atom 12])}[tag </out>]"); - - MT("test EQName function with single quotes", - "[keyword declare] [keyword function] [def&variable 'http://www.example.com/ns/my':fn] ([variable $a] [keyword as] [atom xs:integer]) [keyword as] [atom xs:integer] {", - " [variable $a] [keyword +] [atom 2]", - "}[variable ;]", - "[tag <out>]{[def&variable 'http://www.example.com/ns/my':fn]([atom 12])}[tag </out>]"); - - MT("testProcessingInstructions", - "[def&variable data]([comment&meta <?target content?>]) [keyword instance] [keyword of] [atom xs:string]"); - - MT("testQuoteEscapeDouble", - "[keyword let] [variable $rootfolder] [keyword :=] [string \"c:\\builds\\winnt\\HEAD\\qa\\scripts\\\"]", - "[keyword let] [variable $keysfolder] [keyword :=] [def&variable concat]([variable $rootfolder], [string \"keys\\\"])"); -})(); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/xquery/xquery.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/xquery/xquery.js deleted file mode 100644 index 75dcbee..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/xquery/xquery.js +++ /dev/null @@ -1,437 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("xquery", function() { - - // The keywords object is set to the result of this self executing - // function. Each keyword is a property of the keywords object whose - // value is {type: atype, style: astyle} - var keywords = function(){ - // convenience functions used to build keywords object - function kw(type) {return {type: type, style: "keyword"};} - var A = kw("keyword a") - , B = kw("keyword b") - , C = kw("keyword c") - , operator = kw("operator") - , atom = {type: "atom", style: "atom"} - , punctuation = {type: "punctuation", style: null} - , qualifier = {type: "axis_specifier", style: "qualifier"}; - - // kwObj is what is return from this function at the end - var kwObj = { - 'if': A, 'switch': A, 'while': A, 'for': A, - 'else': B, 'then': B, 'try': B, 'finally': B, 'catch': B, - 'element': C, 'attribute': C, 'let': C, 'implements': C, 'import': C, 'module': C, 'namespace': C, - 'return': C, 'super': C, 'this': C, 'throws': C, 'where': C, 'private': C, - ',': punctuation, - 'null': atom, 'fn:false()': atom, 'fn:true()': atom - }; - - // a list of 'basic' keywords. For each add a property to kwObj with the value of - // {type: basic[i], style: "keyword"} e.g. 'after' --> {type: "after", style: "keyword"} - var basic = ['after','ancestor','ancestor-or-self','and','as','ascending','assert','attribute','before', - 'by','case','cast','child','comment','declare','default','define','descendant','descendant-or-self', - 'descending','document','document-node','element','else','eq','every','except','external','following', - 'following-sibling','follows','for','function','if','import','in','instance','intersect','item', - 'let','module','namespace','node','node','of','only','or','order','parent','precedes','preceding', - 'preceding-sibling','processing-instruction','ref','return','returns','satisfies','schema','schema-element', - 'self','some','sortby','stable','text','then','to','treat','typeswitch','union','variable','version','where', - 'xquery', 'empty-sequence']; - for(var i=0, l=basic.length; i < l; i++) { kwObj[basic[i]] = kw(basic[i]);}; - - // a list of types. For each add a property to kwObj with the value of - // {type: "atom", style: "atom"} - var types = ['xs:string', 'xs:float', 'xs:decimal', 'xs:double', 'xs:integer', 'xs:boolean', 'xs:date', 'xs:dateTime', - 'xs:time', 'xs:duration', 'xs:dayTimeDuration', 'xs:time', 'xs:yearMonthDuration', 'numeric', 'xs:hexBinary', - 'xs:base64Binary', 'xs:anyURI', 'xs:QName', 'xs:byte','xs:boolean','xs:anyURI','xf:yearMonthDuration']; - for(var i=0, l=types.length; i < l; i++) { kwObj[types[i]] = atom;}; - - // each operator will add a property to kwObj with value of {type: "operator", style: "keyword"} - var operators = ['eq', 'ne', 'lt', 'le', 'gt', 'ge', ':=', '=', '>', '>=', '<', '<=', '.', '|', '?', 'and', 'or', 'div', 'idiv', 'mod', '*', '/', '+', '-']; - for(var i=0, l=operators.length; i < l; i++) { kwObj[operators[i]] = operator;}; - - // each axis_specifiers will add a property to kwObj with value of {type: "axis_specifier", style: "qualifier"} - var axis_specifiers = ["self::", "attribute::", "child::", "descendant::", "descendant-or-self::", "parent::", - "ancestor::", "ancestor-or-self::", "following::", "preceding::", "following-sibling::", "preceding-sibling::"]; - for(var i=0, l=axis_specifiers.length; i < l; i++) { kwObj[axis_specifiers[i]] = qualifier; }; - - return kwObj; - }(); - - function chain(stream, state, f) { - state.tokenize = f; - return f(stream, state); - } - - // the primary mode tokenizer - function tokenBase(stream, state) { - var ch = stream.next(), - mightBeFunction = false, - isEQName = isEQNameAhead(stream); - - // an XML tag (if not in some sub, chained tokenizer) - if (ch == "<") { - if(stream.match("!--", true)) - return chain(stream, state, tokenXMLComment); - - if(stream.match("![CDATA", false)) { - state.tokenize = tokenCDATA; - return "tag"; - } - - if(stream.match("?", false)) { - return chain(stream, state, tokenPreProcessing); - } - - var isclose = stream.eat("/"); - stream.eatSpace(); - var tagName = "", c; - while ((c = stream.eat(/[^\s\u00a0=<>\"\'\/?]/))) tagName += c; - - return chain(stream, state, tokenTag(tagName, isclose)); - } - // start code block - else if(ch == "{") { - pushStateStack(state,{ type: "codeblock"}); - return null; - } - // end code block - else if(ch == "}") { - popStateStack(state); - return null; - } - // if we're in an XML block - else if(isInXmlBlock(state)) { - if(ch == ">") - return "tag"; - else if(ch == "/" && stream.eat(">")) { - popStateStack(state); - return "tag"; - } - else - return "variable"; - } - // if a number - else if (/\d/.test(ch)) { - stream.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/); - return "atom"; - } - // comment start - else if (ch === "(" && stream.eat(":")) { - pushStateStack(state, { type: "comment"}); - return chain(stream, state, tokenComment); - } - // quoted string - else if ( !isEQName && (ch === '"' || ch === "'")) - return chain(stream, state, tokenString(ch)); - // variable - else if(ch === "$") { - return chain(stream, state, tokenVariable); - } - // assignment - else if(ch ===":" && stream.eat("=")) { - return "keyword"; - } - // open paren - else if(ch === "(") { - pushStateStack(state, { type: "paren"}); - return null; - } - // close paren - else if(ch === ")") { - popStateStack(state); - return null; - } - // open paren - else if(ch === "[") { - pushStateStack(state, { type: "bracket"}); - return null; - } - // close paren - else if(ch === "]") { - popStateStack(state); - return null; - } - else { - var known = keywords.propertyIsEnumerable(ch) && keywords[ch]; - - // if there's a EQName ahead, consume the rest of the string portion, it's likely a function - if(isEQName && ch === '\"') while(stream.next() !== '"'){} - if(isEQName && ch === '\'') while(stream.next() !== '\''){} - - // gobble up a word if the character is not known - if(!known) stream.eatWhile(/[\w\$_-]/); - - // gobble a colon in the case that is a lib func type call fn:doc - var foundColon = stream.eat(":"); - - // if there's not a second colon, gobble another word. Otherwise, it's probably an axis specifier - // which should get matched as a keyword - if(!stream.eat(":") && foundColon) { - stream.eatWhile(/[\w\$_-]/); - } - // if the next non whitespace character is an open paren, this is probably a function (if not a keyword of other sort) - if(stream.match(/^[ \t]*\(/, false)) { - mightBeFunction = true; - } - // is the word a keyword? - var word = stream.current(); - known = keywords.propertyIsEnumerable(word) && keywords[word]; - - // if we think it's a function call but not yet known, - // set style to variable for now for lack of something better - if(mightBeFunction && !known) known = {type: "function_call", style: "variable def"}; - - // if the previous word was element, attribute, axis specifier, this word should be the name of that - if(isInXmlConstructor(state)) { - popStateStack(state); - return "variable"; - } - // as previously checked, if the word is element,attribute, axis specifier, call it an "xmlconstructor" and - // push the stack so we know to look for it on the next word - if(word == "element" || word == "attribute" || known.type == "axis_specifier") pushStateStack(state, {type: "xmlconstructor"}); - - // if the word is known, return the details of that else just call this a generic 'word' - return known ? known.style : "variable"; - } - } - - // handle comments, including nested - function tokenComment(stream, state) { - var maybeEnd = false, maybeNested = false, nestedCount = 0, ch; - while (ch = stream.next()) { - if (ch == ")" && maybeEnd) { - if(nestedCount > 0) - nestedCount--; - else { - popStateStack(state); - break; - } - } - else if(ch == ":" && maybeNested) { - nestedCount++; - } - maybeEnd = (ch == ":"); - maybeNested = (ch == "("); - } - - return "comment"; - } - - // tokenizer for string literals - // optionally pass a tokenizer function to set state.tokenize back to when finished - function tokenString(quote, f) { - return function(stream, state) { - var ch; - - if(isInString(state) && stream.current() == quote) { - popStateStack(state); - if(f) state.tokenize = f; - return "string"; - } - - pushStateStack(state, { type: "string", name: quote, tokenize: tokenString(quote, f) }); - - // if we're in a string and in an XML block, allow an embedded code block - if(stream.match("{", false) && isInXmlAttributeBlock(state)) { - state.tokenize = tokenBase; - return "string"; - } - - - while (ch = stream.next()) { - if (ch == quote) { - popStateStack(state); - if(f) state.tokenize = f; - break; - } - else { - // if we're in a string and in an XML block, allow an embedded code block in an attribute - if(stream.match("{", false) && isInXmlAttributeBlock(state)) { - state.tokenize = tokenBase; - return "string"; - } - - } - } - - return "string"; - }; - } - - // tokenizer for variables - function tokenVariable(stream, state) { - var isVariableChar = /[\w\$_-]/; - - // a variable may start with a quoted EQName so if the next character is quote, consume to the next quote - if(stream.eat("\"")) { - while(stream.next() !== '\"'){}; - stream.eat(":"); - } else { - stream.eatWhile(isVariableChar); - if(!stream.match(":=", false)) stream.eat(":"); - } - stream.eatWhile(isVariableChar); - state.tokenize = tokenBase; - return "variable"; - } - - // tokenizer for XML tags - function tokenTag(name, isclose) { - return function(stream, state) { - stream.eatSpace(); - if(isclose && stream.eat(">")) { - popStateStack(state); - state.tokenize = tokenBase; - return "tag"; - } - // self closing tag without attributes? - if(!stream.eat("/")) - pushStateStack(state, { type: "tag", name: name, tokenize: tokenBase}); - if(!stream.eat(">")) { - state.tokenize = tokenAttribute; - return "tag"; - } - else { - state.tokenize = tokenBase; - } - return "tag"; - }; - } - - // tokenizer for XML attributes - function tokenAttribute(stream, state) { - var ch = stream.next(); - - if(ch == "/" && stream.eat(">")) { - if(isInXmlAttributeBlock(state)) popStateStack(state); - if(isInXmlBlock(state)) popStateStack(state); - return "tag"; - } - if(ch == ">") { - if(isInXmlAttributeBlock(state)) popStateStack(state); - return "tag"; - } - if(ch == "=") - return null; - // quoted string - if (ch == '"' || ch == "'") - return chain(stream, state, tokenString(ch, tokenAttribute)); - - if(!isInXmlAttributeBlock(state)) - pushStateStack(state, { type: "attribute", tokenize: tokenAttribute}); - - stream.eat(/[a-zA-Z_:]/); - stream.eatWhile(/[-a-zA-Z0-9_:.]/); - stream.eatSpace(); - - // the case where the attribute has not value and the tag was closed - if(stream.match(">", false) || stream.match("/", false)) { - popStateStack(state); - state.tokenize = tokenBase; - } - - return "attribute"; - } - - // handle comments, including nested - function tokenXMLComment(stream, state) { - var ch; - while (ch = stream.next()) { - if (ch == "-" && stream.match("->", true)) { - state.tokenize = tokenBase; - return "comment"; - } - } - } - - - // handle CDATA - function tokenCDATA(stream, state) { - var ch; - while (ch = stream.next()) { - if (ch == "]" && stream.match("]", true)) { - state.tokenize = tokenBase; - return "comment"; - } - } - } - - // handle preprocessing instructions - function tokenPreProcessing(stream, state) { - var ch; - while (ch = stream.next()) { - if (ch == "?" && stream.match(">", true)) { - state.tokenize = tokenBase; - return "comment meta"; - } - } - } - - - // functions to test the current context of the state - function isInXmlBlock(state) { return isIn(state, "tag"); } - function isInXmlAttributeBlock(state) { return isIn(state, "attribute"); } - function isInXmlConstructor(state) { return isIn(state, "xmlconstructor"); } - function isInString(state) { return isIn(state, "string"); } - - function isEQNameAhead(stream) { - // assume we've already eaten a quote (") - if(stream.current() === '"') - return stream.match(/^[^\"]+\"\:/, false); - else if(stream.current() === '\'') - return stream.match(/^[^\"]+\'\:/, false); - else - return false; - } - - function isIn(state, type) { - return (state.stack.length && state.stack[state.stack.length - 1].type == type); - } - - function pushStateStack(state, newState) { - state.stack.push(newState); - } - - function popStateStack(state) { - state.stack.pop(); - var reinstateTokenize = state.stack.length && state.stack[state.stack.length-1].tokenize; - state.tokenize = reinstateTokenize || tokenBase; - } - - // the interface for the mode API - return { - startState: function() { - return { - tokenize: tokenBase, - cc: [], - stack: [] - }; - }, - - token: function(stream, state) { - if (stream.eatSpace()) return null; - var style = state.tokenize(stream, state); - return style; - }, - - blockCommentStart: "(:", - blockCommentEnd: ":)" - - }; - -}); - -CodeMirror.defineMIME("application/xquery", "xquery"); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/yacas/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/yacas/index.html deleted file mode 100644 index 8e52caf..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/yacas/index.html +++ /dev/null @@ -1,87 +0,0 @@ -<!doctype html> - -<title>CodeMirror: yacas mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel=stylesheet href=../../lib/codemirror.css> -<script src=../../lib/codemirror.js></script> -<script src=../../addon/edit/matchbrackets.js></script> -<script src=yacas.js></script> -<style type=text/css> - .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;} -</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">yacas</a> - </ul> -</div> - -<article> -<h2>yacas mode</h2> - - -<textarea id="yacasCode"> -// example yacas code -Graph(edges_IsList) <-- [ - Local(v, e, f, t); - - vertices := {}; - - ForEach (e, edges) [ - If (IsList(e), e := Head(e)); - {f, t} := Tail(Listify(e)); - - DestructiveAppend(vertices, f); - DestructiveAppend(vertices, t); - ]; - - Graph(RemoveDuplicates(vertices), edges); -]; - -10 # IsGraph(Graph(vertices_IsList, edges_IsList)) <-- True; -20 # IsGraph(_x) <-- False; - -Edges(Graph(vertices_IsList, edges_IsList)) <-- edges; -Vertices(Graph(vertices_IsList, edges_IsList)) <-- vertices; - -AdjacencyList(g_IsGraph) <-- [ - Local(l, vertices, edges, e, op, f, t); - - l := Association'Create(); - - vertices := Vertices(g); - ForEach (v, vertices) - Association'Set(l, v, {}); - - edges := Edges(g); - - ForEach(e, edges) [ - If (IsList(e), e := Head(e)); - {op, f, t} := Listify(e); - DestructiveAppend(Association'Get(l, f), t); - If (String(op) = "<->", DestructiveAppend(Association'Get(l, t), f)); - ]; - - l; -]; -</textarea> - -<script> - var yacasEditor = CodeMirror.fromTextArea(document.getElementById('yacasCode'), { - mode: 'text/x-yacas', - lineNumbers: true, - matchBrackets: true - }); -</script> - -<p><strong>MIME types defined:</strong> <code>text/x-yacas</code> (yacas).</p> -</article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/yacas/yacas.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/yacas/yacas.js deleted file mode 100644 index 30bd60b..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/yacas/yacas.js +++ /dev/null @@ -1,204 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -// Yacas mode copyright (c) 2015 by Grzegorz Mazur -// Loosely based on mathematica mode by Calin Barbat - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode('yacas', function(_config, _parserConfig) { - - function words(str) { - var obj = {}, words = str.split(" "); - for (var i = 0; i < words.length; ++i) obj[words[i]] = true; - return obj; - } - - var bodiedOps = words("Assert BackQuote D Defun Deriv For ForEach FromFile " + - "FromString Function Integrate InverseTaylor Limit " + - "LocalSymbols Macro MacroRule MacroRulePattern " + - "NIntegrate Rule RulePattern Subst TD TExplicitSum " + - "TSum Taylor Taylor1 Taylor2 Taylor3 ToFile " + - "ToStdout ToString TraceRule Until While"); - - // patterns - var pFloatForm = "(?:(?:\\.\\d+|\\d+\\.\\d*|\\d+)(?:[eE][+-]?\\d+)?)"; - var pIdentifier = "(?:[a-zA-Z\\$'][a-zA-Z0-9\\$']*)"; - - // regular expressions - var reFloatForm = new RegExp(pFloatForm); - var reIdentifier = new RegExp(pIdentifier); - var rePattern = new RegExp(pIdentifier + "?_" + pIdentifier); - var reFunctionLike = new RegExp(pIdentifier + "\\s*\\("); - - function tokenBase(stream, state) { - var ch; - - // get next character - ch = stream.next(); - - // string - if (ch === '"') { - state.tokenize = tokenString; - return state.tokenize(stream, state); - } - - // comment - if (ch === '/') { - if (stream.eat('*')) { - state.tokenize = tokenComment; - return state.tokenize(stream, state); - } - if (stream.eat("/")) { - stream.skipToEnd(); - return "comment"; - } - } - - // go back one character - stream.backUp(1); - - // update scope info - var m = stream.match(/^(\w+)\s*\(/, false); - if (m !== null && bodiedOps.hasOwnProperty(m[1])) - state.scopes.push('bodied'); - - var scope = currentScope(state); - - if (scope === 'bodied' && ch === '[') - state.scopes.pop(); - - if (ch === '[' || ch === '{' || ch === '(') - state.scopes.push(ch); - - scope = currentScope(state); - - if (scope === '[' && ch === ']' || - scope === '{' && ch === '}' || - scope === '(' && ch === ')') - state.scopes.pop(); - - if (ch === ';') { - while (scope === 'bodied') { - state.scopes.pop(); - scope = currentScope(state); - } - } - - // look for ordered rules - if (stream.match(/\d+ *#/, true, false)) { - return 'qualifier'; - } - - // look for numbers - if (stream.match(reFloatForm, true, false)) { - return 'number'; - } - - // look for placeholders - if (stream.match(rePattern, true, false)) { - return 'variable-3'; - } - - // match all braces separately - if (stream.match(/(?:\[|\]|{|}|\(|\))/, true, false)) { - return 'bracket'; - } - - // literals looking like function calls - if (stream.match(reFunctionLike, true, false)) { - stream.backUp(1); - return 'variable'; - } - - // all other identifiers - if (stream.match(reIdentifier, true, false)) { - return 'variable-2'; - } - - // operators; note that operators like @@ or /; are matched separately for each symbol. - if (stream.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%)/, true, false)) { - return 'operator'; - } - - // everything else is an error - return 'error'; - } - - function tokenString(stream, state) { - var next, end = false, escaped = false; - while ((next = stream.next()) != null) { - if (next === '"' && !escaped) { - end = true; - break; - } - escaped = !escaped && next === '\\'; - } - if (end && !escaped) { - state.tokenize = tokenBase; - } - return 'string'; - }; - - function tokenComment(stream, state) { - var prev, next; - while((next = stream.next()) != null) { - if (prev === '*' && next === '/') { - state.tokenize = tokenBase; - break; - } - prev = next; - } - return 'comment'; - } - - function currentScope(state) { - var scope = null; - if (state.scopes.length > 0) - scope = state.scopes[state.scopes.length - 1]; - return scope; - } - - return { - startState: function() { - return { - tokenize: tokenBase, - scopes: [] - }; - }, - token: function(stream, state) { - if (stream.eatSpace()) return null; - return state.tokenize(stream, state); - }, - indent: function(state, textAfter) { - if (state.tokenize !== tokenBase && state.tokenize !== null) - return CodeMirror.Pass; - - var delta = 0; - if (textAfter === ']' || textAfter === '];' || - textAfter === '}' || textAfter === '};' || - textAfter === ');') - delta = -1; - - return (state.scopes.length + delta) * _config.indentUnit; - }, - electricChars: "{}[]();", - blockCommentStart: "/*", - blockCommentEnd: "*/", - lineComment: "//" - }; -}); - -CodeMirror.defineMIME('text/x-yacas', { - name: 'yacas' -}); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/yaml-frontmatter/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/yaml-frontmatter/index.html deleted file mode 100644 index 30cb294..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/yaml-frontmatter/index.html +++ /dev/null @@ -1,121 +0,0 @@ -<!doctype html> - -<title>CodeMirror: YAML front matter mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="../../addon/mode/overlay.js"></script> -<script src="../markdown/markdown.js"></script> -<script src="../gfm/gfm.js"></script> -<script src="../yaml/yaml.js"></script> -<script src="yaml-frontmatter.js"></script> -<style>.CodeMirror { border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">YAML-Frontmatter</a> - </ul> -</div> - -<article> -<h2>YAML front matter mode</h2> -<form><textarea id="code" name="code"> ---- -receipt: Oz-Ware Purchase Invoice -date: 2007-08-06 -customer: - given: Dorothy - family: Gale - -items: - - part_no: A4786 - descrip: Water Bucket (Filled) - price: 1.47 - quantity: 4 - - - part_no: E1628 - descrip: High Heeled "Ruby" Slippers - size: 8 - price: 100.27 - quantity: 1 - -bill-to: &id001 - street: | - 123 Tornado Alley - Suite 16 - city: East Centerville - state: KS - -ship-to: *id001 - -specialDelivery: > - Follow the Yellow Brick - Road to the Emerald City. - Pay no attention to the - man behind the curtain. ---- - -GitHub Flavored Markdown -======================== - -Everything from markdown plus GFM features: - -## URL autolinking - -Underscores_are_allowed_between_words. - -## Strikethrough text - -GFM adds syntax to strikethrough text, which is missing from standard Markdown. - -~~Mistaken text.~~ -~~**works with other formatting**~~ - -~~spans across -lines~~ - -## Fenced code blocks (and syntax highlighting) - -```javascript -for (var i = 0; i < items.length; i++) { - console.log(items[i], i); // log them -} -``` - -## Task Lists - -- [ ] Incomplete task list item -- [x] **Completed** task list item - -## A bit of GitHub spice - -* SHA: be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2 -* User@SHA ref: mojombo@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2 -* User/Project@SHA: mojombo/god@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2 -* \#Num: #1 -* User/#Num: mojombo#1 -* User/Project#Num: mojombo/god#1 - -See http://github.github.com/github-flavored-markdown/. -</textarea></form> - -<p>Defines a mode that parses -a <a href="http://jekyllrb.com/docs/frontmatter/">YAML frontmatter</a> -at the start of a file, switching to a base mode at the end of that. -Takes a mode configuration option <code>base</code> to configure the -base mode, which defaults to <code>"gfm"</code>.</p> - - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), {mode: "yaml-frontmatter"}); - </script> - - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/yaml-frontmatter/yaml-frontmatter.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/yaml-frontmatter/yaml-frontmatter.js deleted file mode 100644 index 5f49772..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/yaml-frontmatter/yaml-frontmatter.js +++ /dev/null @@ -1,68 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function (mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror"), require("../yaml/yaml")) - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror", "../yaml/yaml"], mod) - else // Plain browser env - mod(CodeMirror) -})(function (CodeMirror) { - - var START = 0, FRONTMATTER = 1, BODY = 2 - - // a mixed mode for Markdown text with an optional YAML front matter - CodeMirror.defineMode("yaml-frontmatter", function (config, parserConfig) { - var yamlMode = CodeMirror.getMode(config, "yaml") - var innerMode = CodeMirror.getMode(config, parserConfig && parserConfig.base || "gfm") - - function curMode(state) { - return state.state == BODY ? innerMode : yamlMode - } - - return { - startState: function () { - return { - state: START, - inner: CodeMirror.startState(yamlMode) - } - }, - copyState: function (state) { - return { - state: state.state, - inner: CodeMirror.copyState(curMode(state), state.inner) - } - }, - token: function (stream, state) { - if (state.state == START) { - if (stream.match(/---/, false)) { - state.state = FRONTMATTER - return yamlMode.token(stream, state.inner) - } else { - state.state = BODY - state.inner = CodeMirror.startState(innerMode) - return innerMode.token(stream, state.inner) - } - } else if (state.state == FRONTMATTER) { - var end = stream.sol() && stream.match(/---/, false) - var style = yamlMode.token(stream, state.inner) - if (end) { - state.state = BODY - state.inner = CodeMirror.startState(innerMode) - } - return style - } else { - return innerMode.token(stream, state.inner) - } - }, - innerMode: function (state) { - return {mode: curMode(state), state: state.inner} - }, - blankLine: function (state) { - var mode = curMode(state) - if (mode.blankLine) return mode.blankLine(state.inner) - } - } - }) -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/yaml/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/yaml/index.html deleted file mode 100644 index be9b632..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/yaml/index.html +++ /dev/null @@ -1,80 +0,0 @@ -<!doctype html> - -<title>CodeMirror: YAML mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="yaml.js"></script> -<style>.CodeMirror { border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">YAML</a> - </ul> -</div> - -<article> -<h2>YAML mode</h2> -<form><textarea id="code" name="code"> ---- # Favorite movies -- Casablanca -- North by Northwest -- The Man Who Wasn't There ---- # Shopping list -[milk, pumpkin pie, eggs, juice] ---- # Indented Blocks, common in YAML data files, use indentation and new lines to separate the key: value pairs - name: John Smith - age: 33 ---- # Inline Blocks, common in YAML data streams, use commas to separate the key: value pairs between braces -{name: John Smith, age: 33} ---- -receipt: Oz-Ware Purchase Invoice -date: 2007-08-06 -customer: - given: Dorothy - family: Gale - -items: - - part_no: A4786 - descrip: Water Bucket (Filled) - price: 1.47 - quantity: 4 - - - part_no: E1628 - descrip: High Heeled "Ruby" Slippers - size: 8 - price: 100.27 - quantity: 1 - -bill-to: &id001 - street: | - 123 Tornado Alley - Suite 16 - city: East Centerville - state: KS - -ship-to: *id001 - -specialDelivery: > - Follow the Yellow Brick - Road to the Emerald City. - Pay no attention to the - man behind the curtain. -... -</textarea></form> - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), {}); - </script> - - <p><strong>MIME types defined:</strong> <code>text/x-yaml</code>.</p> - - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/yaml/yaml.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/yaml/yaml.js deleted file mode 100644 index b7015e5..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/yaml/yaml.js +++ /dev/null @@ -1,117 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode("yaml", function() { - - var cons = ['true', 'false', 'on', 'off', 'yes', 'no']; - var keywordRegex = new RegExp("\\b(("+cons.join(")|(")+"))$", 'i'); - - return { - token: function(stream, state) { - var ch = stream.peek(); - var esc = state.escaped; - state.escaped = false; - /* comments */ - if (ch == "#" && (stream.pos == 0 || /\s/.test(stream.string.charAt(stream.pos - 1)))) { - stream.skipToEnd(); - return "comment"; - } - - if (stream.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/)) - return "string"; - - if (state.literal && stream.indentation() > state.keyCol) { - stream.skipToEnd(); return "string"; - } else if (state.literal) { state.literal = false; } - if (stream.sol()) { - state.keyCol = 0; - state.pair = false; - state.pairStart = false; - /* document start */ - if(stream.match(/---/)) { return "def"; } - /* document end */ - if (stream.match(/\.\.\./)) { return "def"; } - /* array list item */ - if (stream.match(/\s*-\s+/)) { return 'meta'; } - } - /* inline pairs/lists */ - if (stream.match(/^(\{|\}|\[|\])/)) { - if (ch == '{') - state.inlinePairs++; - else if (ch == '}') - state.inlinePairs--; - else if (ch == '[') - state.inlineList++; - else - state.inlineList--; - return 'meta'; - } - - /* list seperator */ - if (state.inlineList > 0 && !esc && ch == ',') { - stream.next(); - return 'meta'; - } - /* pairs seperator */ - if (state.inlinePairs > 0 && !esc && ch == ',') { - state.keyCol = 0; - state.pair = false; - state.pairStart = false; - stream.next(); - return 'meta'; - } - - /* start of value of a pair */ - if (state.pairStart) { - /* block literals */ - if (stream.match(/^\s*(\||\>)\s*/)) { state.literal = true; return 'meta'; }; - /* references */ - if (stream.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i)) { return 'variable-2'; } - /* numbers */ - if (state.inlinePairs == 0 && stream.match(/^\s*-?[0-9\.\,]+\s?$/)) { return 'number'; } - if (state.inlinePairs > 0 && stream.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/)) { return 'number'; } - /* keywords */ - if (stream.match(keywordRegex)) { return 'keyword'; } - } - - /* pairs (associative arrays) -> key */ - if (!state.pair && stream.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)) { - state.pair = true; - state.keyCol = stream.indentation(); - return "atom"; - } - if (state.pair && stream.match(/^:\s*/)) { state.pairStart = true; return 'meta'; } - - /* nothing found, continue */ - state.pairStart = false; - state.escaped = (ch == '\\'); - stream.next(); - return null; - }, - startState: function() { - return { - pair: false, - pairStart: false, - keyCol: 0, - inlinePairs: 0, - inlineList: 0, - literal: false, - escaped: false - }; - } - }; -}); - -CodeMirror.defineMIME("text/x-yaml", "yaml"); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/z80/index.html b/Mobile.Search.Web/Scripts/CodeMirror/mode/z80/index.html deleted file mode 100644 index a41b747..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/z80/index.html +++ /dev/null @@ -1,53 +0,0 @@ -<!doctype html> - -<title>CodeMirror: Z80 assembly mode</title> -<meta charset="utf-8"/> -<link rel=stylesheet href="../../doc/docs.css"> - -<link rel="stylesheet" href="../../lib/codemirror.css"> -<script src="../../lib/codemirror.js"></script> -<script src="z80.js"></script> -<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> -<div id=nav> - <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> - - <ul> - <li><a href="../../index.html">Home</a> - <li><a href="../../doc/manual.html">Manual</a> - <li><a href="https://github.com/codemirror/codemirror">Code</a> - </ul> - <ul> - <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">Z80 assembly</a> - </ul> -</div> - -<article> -<h2>Z80 assembly mode</h2> - - -<div><textarea id="code" name="code"> -#include "ti83plus.inc" -#define progStart $9D95 - .org progStart-2 - .db $BB,$6D - - bcall(_ClrLCDFull) - ld hl,0 - ld (CurCol),hl - ld hl,Message - bcall(_PutS) ; Displays the string - bcall(_NewLine) - ret -Message: - .db "Hello world!",0 -</textarea></div> - - <script> - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - lineNumbers: true - }); - </script> - - <p><strong>MIME types defined:</strong> <code>text/x-z80</code>, <code>text/x-ez80</code>.</p> - </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/z80/z80.js b/Mobile.Search.Web/Scripts/CodeMirror/mode/z80/z80.js deleted file mode 100644 index aae7021..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/z80/z80.js +++ /dev/null @@ -1,116 +0,0 @@ -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: http://codemirror.net/LICENSE - -(function(mod) { - if (typeof exports == "object" && typeof module == "object") // CommonJS - mod(require("../../lib/codemirror")); - else if (typeof define == "function" && define.amd) // AMD - define(["../../lib/codemirror"], mod); - else // Plain browser env - mod(CodeMirror); -})(function(CodeMirror) { -"use strict"; - -CodeMirror.defineMode('z80', function(_config, parserConfig) { - var ez80 = parserConfig.ez80; - var keywords1, keywords2; - if (ez80) { - keywords1 = /^(exx?|(ld|cp)([di]r?)?|[lp]ea|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|[de]i|halt|im|in([di]mr?|ir?|irx|2r?)|ot(dmr?|[id]rx|imr?)|out(0?|[di]r?|[di]2r?)|tst(io)?|slp)(\.([sl]?i)?[sl])?\b/i; - keywords2 = /^(((call|j[pr]|rst|ret[in]?)(\.([sl]?i)?[sl])?)|(rs|st)mix)\b/i; - } else { - keywords1 = /^(exx?|(ld|cp|in)([di]r?)?|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|rst|[de]i|halt|im|ot[di]r|out[di]?)\b/i; - keywords2 = /^(call|j[pr]|ret[in]?|b_?(call|jump))\b/i; - } - - var variables1 = /^(af?|bc?|c|de?|e|hl?|l|i[xy]?|r|sp)\b/i; - var variables2 = /^(n?[zc]|p[oe]?|m)\b/i; - var errors = /^([hl][xy]|i[xy][hl]|slia|sll)\b/i; - var numbers = /^([\da-f]+h|[0-7]+o|[01]+b|\d+d?)\b/i; - - return { - startState: function() { - return { - context: 0 - }; - }, - token: function(stream, state) { - if (!stream.column()) - state.context = 0; - - if (stream.eatSpace()) - return null; - - var w; - - if (stream.eatWhile(/\w/)) { - if (ez80 && stream.eat('.')) { - stream.eatWhile(/\w/); - } - w = stream.current(); - - if (stream.indentation()) { - if ((state.context == 1 || state.context == 4) && variables1.test(w)) { - state.context = 4; - return 'var2'; - } - - if (state.context == 2 && variables2.test(w)) { - state.context = 4; - return 'var3'; - } - - if (keywords1.test(w)) { - state.context = 1; - return 'keyword'; - } else if (keywords2.test(w)) { - state.context = 2; - return 'keyword'; - } else if (state.context == 4 && numbers.test(w)) { - return 'number'; - } - - if (errors.test(w)) - return 'error'; - } else if (stream.match(numbers)) { - return 'number'; - } else { - return null; - } - } else if (stream.eat(';')) { - stream.skipToEnd(); - return 'comment'; - } else if (stream.eat('"')) { - while (w = stream.next()) { - if (w == '"') - break; - - if (w == '\\') - stream.next(); - } - return 'string'; - } else if (stream.eat('\'')) { - if (stream.match(/\\?.'/)) - return 'number'; - } else if (stream.eat('.') || stream.sol() && stream.eat('#')) { - state.context = 5; - - if (stream.eatWhile(/\w/)) - return 'def'; - } else if (stream.eat('$')) { - if (stream.eatWhile(/[\da-f]/i)) - return 'number'; - } else if (stream.eat('%')) { - if (stream.eatWhile(/[01]/)) - return 'number'; - } else { - stream.next(); - } - return null; - } - }; -}); - -CodeMirror.defineMIME("text/x-z80", "z80"); -CodeMirror.defineMIME("text/x-ez80", { name: "z80", ez80: true }); - -}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/3024-day.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/3024-day.css deleted file mode 100644 index 7132655..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/3024-day.css +++ /dev/null @@ -1,41 +0,0 @@ -/* - - Name: 3024 day - Author: Jan T. Sott (http://github.com/idleberg) - - CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror) - Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) - -*/ - -.cm-s-3024-day.CodeMirror { background: #f7f7f7; color: #3a3432; } -.cm-s-3024-day div.CodeMirror-selected { background: #d6d5d4; } - -.cm-s-3024-day .CodeMirror-line::selection, .cm-s-3024-day .CodeMirror-line > span::selection, .cm-s-3024-day .CodeMirror-line > span > span::selection { background: #d6d5d4; } -.cm-s-3024-day .CodeMirror-line::-moz-selection, .cm-s-3024-day .CodeMirror-line > span::-moz-selection, .cm-s-3024-day .CodeMirror-line > span > span::selection { background: #d9d9d9; } - -.cm-s-3024-day .CodeMirror-gutters { background: #f7f7f7; border-right: 0px; } -.cm-s-3024-day .CodeMirror-guttermarker { color: #db2d20; } -.cm-s-3024-day .CodeMirror-guttermarker-subtle { color: #807d7c; } -.cm-s-3024-day .CodeMirror-linenumber { color: #807d7c; } - -.cm-s-3024-day .CodeMirror-cursor { border-left: 1px solid #5c5855; } - -.cm-s-3024-day span.cm-comment { color: #cdab53; } -.cm-s-3024-day span.cm-atom { color: #a16a94; } -.cm-s-3024-day span.cm-number { color: #a16a94; } - -.cm-s-3024-day span.cm-property, .cm-s-3024-day span.cm-attribute { color: #01a252; } -.cm-s-3024-day span.cm-keyword { color: #db2d20; } -.cm-s-3024-day span.cm-string { color: #fded02; } - -.cm-s-3024-day span.cm-variable { color: #01a252; } -.cm-s-3024-day span.cm-variable-2 { color: #01a0e4; } -.cm-s-3024-day span.cm-def { color: #e8bbd0; } -.cm-s-3024-day span.cm-bracket { color: #3a3432; } -.cm-s-3024-day span.cm-tag { color: #db2d20; } -.cm-s-3024-day span.cm-link { color: #a16a94; } -.cm-s-3024-day span.cm-error { background: #db2d20; color: #5c5855; } - -.cm-s-3024-day .CodeMirror-activeline-background { background: #e8f2ff; } -.cm-s-3024-day .CodeMirror-matchingbracket { text-decoration: underline; color: #a16a94 !important; } diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/3024-night.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/3024-night.css deleted file mode 100644 index adc5900..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/3024-night.css +++ /dev/null @@ -1,39 +0,0 @@ -/* - - Name: 3024 night - Author: Jan T. Sott (http://github.com/idleberg) - - CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror) - Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) - -*/ - -.cm-s-3024-night.CodeMirror { background: #090300; color: #d6d5d4; } -.cm-s-3024-night div.CodeMirror-selected { background: #3a3432; } -.cm-s-3024-night .CodeMirror-line::selection, .cm-s-3024-night .CodeMirror-line > span::selection, .cm-s-3024-night .CodeMirror-line > span > span::selection { background: rgba(58, 52, 50, .99); } -.cm-s-3024-night .CodeMirror-line::-moz-selection, .cm-s-3024-night .CodeMirror-line > span::-moz-selection, .cm-s-3024-night .CodeMirror-line > span > span::-moz-selection { background: rgba(58, 52, 50, .99); } -.cm-s-3024-night .CodeMirror-gutters { background: #090300; border-right: 0px; } -.cm-s-3024-night .CodeMirror-guttermarker { color: #db2d20; } -.cm-s-3024-night .CodeMirror-guttermarker-subtle { color: #5c5855; } -.cm-s-3024-night .CodeMirror-linenumber { color: #5c5855; } - -.cm-s-3024-night .CodeMirror-cursor { border-left: 1px solid #807d7c; } - -.cm-s-3024-night span.cm-comment { color: #cdab53; } -.cm-s-3024-night span.cm-atom { color: #a16a94; } -.cm-s-3024-night span.cm-number { color: #a16a94; } - -.cm-s-3024-night span.cm-property, .cm-s-3024-night span.cm-attribute { color: #01a252; } -.cm-s-3024-night span.cm-keyword { color: #db2d20; } -.cm-s-3024-night span.cm-string { color: #fded02; } - -.cm-s-3024-night span.cm-variable { color: #01a252; } -.cm-s-3024-night span.cm-variable-2 { color: #01a0e4; } -.cm-s-3024-night span.cm-def { color: #e8bbd0; } -.cm-s-3024-night span.cm-bracket { color: #d6d5d4; } -.cm-s-3024-night span.cm-tag { color: #db2d20; } -.cm-s-3024-night span.cm-link { color: #a16a94; } -.cm-s-3024-night span.cm-error { background: #db2d20; color: #807d7c; } - -.cm-s-3024-night .CodeMirror-activeline-background { background: #2F2F2F; } -.cm-s-3024-night .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/abcdef.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/abcdef.css deleted file mode 100644 index 7f9d788..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/abcdef.css +++ /dev/null @@ -1,32 +0,0 @@ -.cm-s-abcdef.CodeMirror { background: #0f0f0f; color: #defdef; } -.cm-s-abcdef div.CodeMirror-selected { background: #515151; } -.cm-s-abcdef .CodeMirror-line::selection, .cm-s-abcdef .CodeMirror-line > span::selection, .cm-s-abcdef .CodeMirror-line > span > span::selection { background: rgba(56, 56, 56, 0.99); } -.cm-s-abcdef .CodeMirror-line::-moz-selection, .cm-s-abcdef .CodeMirror-line > span::-moz-selection, .cm-s-abcdef .CodeMirror-line > span > span::-moz-selection { background: rgba(56, 56, 56, 0.99); } -.cm-s-abcdef .CodeMirror-gutters { background: #555; border-right: 2px solid #314151; } -.cm-s-abcdef .CodeMirror-guttermarker { color: #222; } -.cm-s-abcdef .CodeMirror-guttermarker-subtle { color: azure; } -.cm-s-abcdef .CodeMirror-linenumber { color: #FFFFFF; } -.cm-s-abcdef .CodeMirror-cursor { border-left: 1px solid #00FF00; } - -.cm-s-abcdef span.cm-keyword { color: darkgoldenrod; font-weight: bold; } -.cm-s-abcdef span.cm-atom { color: #77F; } -.cm-s-abcdef span.cm-number { color: violet; } -.cm-s-abcdef span.cm-def { color: #fffabc; } -.cm-s-abcdef span.cm-variable { color: #abcdef; } -.cm-s-abcdef span.cm-variable-2 { color: #cacbcc; } -.cm-s-abcdef span.cm-variable-3 { color: #def; } -.cm-s-abcdef span.cm-property { color: #fedcba; } -.cm-s-abcdef span.cm-operator { color: #ff0; } -.cm-s-abcdef span.cm-comment { color: #7a7b7c; font-style: italic;} -.cm-s-abcdef span.cm-string { color: #2b4; } -.cm-s-abcdef span.cm-meta { color: #C9F; } -.cm-s-abcdef span.cm-qualifier { color: #FFF700; } -.cm-s-abcdef span.cm-builtin { color: #30aabc; } -.cm-s-abcdef span.cm-bracket { color: #8a8a8a; } -.cm-s-abcdef span.cm-tag { color: #FFDD44; } -.cm-s-abcdef span.cm-attribute { color: #DDFF00; } -.cm-s-abcdef span.cm-error { color: #FF0000; } -.cm-s-abcdef span.cm-header { color: aquamarine; font-weight: bold; } -.cm-s-abcdef span.cm-link { color: blueviolet; } - -.cm-s-abcdef .CodeMirror-activeline-background { background: #314151; } diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/ambiance-mobile.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/ambiance-mobile.css deleted file mode 100644 index 88d332e..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/ambiance-mobile.css +++ /dev/null @@ -1,5 +0,0 @@ -.cm-s-ambiance.CodeMirror { - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; -} diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/ambiance.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/ambiance.css deleted file mode 100644 index bce3446..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/ambiance.css +++ /dev/null @@ -1,74 +0,0 @@ -/* ambiance theme for codemirror */ - -/* Color scheme */ - -.cm-s-ambiance .cm-header { color: blue; } -.cm-s-ambiance .cm-quote { color: #24C2C7; } - -.cm-s-ambiance .cm-keyword { color: #cda869; } -.cm-s-ambiance .cm-atom { color: #CF7EA9; } -.cm-s-ambiance .cm-number { color: #78CF8A; } -.cm-s-ambiance .cm-def { color: #aac6e3; } -.cm-s-ambiance .cm-variable { color: #ffb795; } -.cm-s-ambiance .cm-variable-2 { color: #eed1b3; } -.cm-s-ambiance .cm-variable-3 { color: #faded3; } -.cm-s-ambiance .cm-property { color: #eed1b3; } -.cm-s-ambiance .cm-operator { color: #fa8d6a; } -.cm-s-ambiance .cm-comment { color: #555; font-style:italic; } -.cm-s-ambiance .cm-string { color: #8f9d6a; } -.cm-s-ambiance .cm-string-2 { color: #9d937c; } -.cm-s-ambiance .cm-meta { color: #D2A8A1; } -.cm-s-ambiance .cm-qualifier { color: yellow; } -.cm-s-ambiance .cm-builtin { color: #9999cc; } -.cm-s-ambiance .cm-bracket { color: #24C2C7; } -.cm-s-ambiance .cm-tag { color: #fee4ff; } -.cm-s-ambiance .cm-attribute { color: #9B859D; } -.cm-s-ambiance .cm-hr { color: pink; } -.cm-s-ambiance .cm-link { color: #F4C20B; } -.cm-s-ambiance .cm-special { color: #FF9D00; } -.cm-s-ambiance .cm-error { color: #AF2018; } - -.cm-s-ambiance .CodeMirror-matchingbracket { color: #0f0; } -.cm-s-ambiance .CodeMirror-nonmatchingbracket { color: #f22; } - -.cm-s-ambiance div.CodeMirror-selected { background: rgba(255, 255, 255, 0.15); } -.cm-s-ambiance.CodeMirror-focused div.CodeMirror-selected { background: rgba(255, 255, 255, 0.10); } -.cm-s-ambiance .CodeMirror-line::selection, .cm-s-ambiance .CodeMirror-line > span::selection, .cm-s-ambiance .CodeMirror-line > span > span::selection { background: rgba(255, 255, 255, 0.10); } -.cm-s-ambiance .CodeMirror-line::-moz-selection, .cm-s-ambiance .CodeMirror-line > span::-moz-selection, .cm-s-ambiance .CodeMirror-line > span > span::-moz-selection { background: rgba(255, 255, 255, 0.10); } - -/* Editor styling */ - -.cm-s-ambiance.CodeMirror { - line-height: 1.40em; - color: #E6E1DC; - background-color: #202020; - -webkit-box-shadow: inset 0 0 10px black; - -moz-box-shadow: inset 0 0 10px black; - box-shadow: inset 0 0 10px black; -} - -.cm-s-ambiance .CodeMirror-gutters { - background: #3D3D3D; - border-right: 1px solid #4D4D4D; - box-shadow: 0 10px 20px black; -} - -.cm-s-ambiance .CodeMirror-linenumber { - text-shadow: 0px 1px 1px #4d4d4d; - color: #111; - padding: 0 5px; -} - -.cm-s-ambiance .CodeMirror-guttermarker { color: #aaa; } -.cm-s-ambiance .CodeMirror-guttermarker-subtle { color: #111; } - -.cm-s-ambiance .CodeMirror-cursor { border-left: 1px solid #7991E8; } - -.cm-s-ambiance .CodeMirror-activeline-background { - background: none repeat scroll 0% 0% rgba(255, 255, 255, 0.031); -} - -.cm-s-ambiance.CodeMirror, -.cm-s-ambiance .CodeMirror-gutters { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAQAAAAHUWYVAABFFUlEQVQYGbzBCeDVU/74/6fj9HIcx/FRHx9JCFmzMyGRURhLZIkUsoeRfUjS2FNDtr6WkMhO9sm+S8maJfu+Jcsg+/o/c+Z4z/t97/vezy3z+z8ekGlnYICG/o7gdk+wmSHZ1z4pJItqapjoKXWahm8NmV6eOTbWUOp6/6a/XIg6GQqmenJ2lDHyvCFZ2cBDbmtHA043VFhHwXxClWmeYAdLhV00Bd85go8VmaFCkbVkzlQENzfBDZ5gtN7HwF0KDrTwJ0dypSOzpaKCMwQHKTIreYIxlmhXTzTWkVm+LTynZhiSBT3RZQ7aGfjGEd3qyXQ1FDymqbKxpspERQN2MiRjNZlFFQXfCNFm9nM1zpAsoYjmtRTc5ajwuaXc5xrWskT97RaKzAGe5ARHhVUsDbjKklziiX5WROcJwSNCNI+9w1Jwv4Zb2r7lCMZ4oq5C0EdTx+2GzNuKpJ+iFf38JEWkHJn9DNF7mmBDITrWEg0VWL3pHU20tSZnuqWu+R3BtYa8XxV1HO7GyD32UkOpL/yDloINFTmvtId+nmAjxRw40VMwVKiwrKLE4bK5UOVntYwhOcSSXKrJHKPJedocpGjVz/ZMIbnYUPB10/eKCrs5apqpgVmWzBYWpmtKHecJPjaUuEgRDDaU0oZghCJ6zNMQ5ZhDYx05r5v2muQdM0EILtXUsaKiQX9WMEUotagQzFbUNN6NUPC2nm5pxEWGCjMc3GdJHjSU2kORLK/JGSrkfGEIjncU/CYUnOipoYemwj8tST9NsJmB7TUVXtbUtXATJVZXBMvYeTXJfobgJUPmGMP/yFaWonaa6BcFO3nqcIqCozSZoZoSr1g4zJOzuyGnxTEX3lUEJ7WcZgme8ddaWvWJo2AJR9DZU3CUIbhCSG6ybSwN6qtJVnCU2svDTP2ZInOw2cBTrqtQahtNZn9NcJ4l2NaSmSkkP1noZWnVwkLmdUPOwLZEwy2Z3S3R+4rIG9hcbpPXHFVWcQdZkn2FOta3cKWQnNRC5g1LsJah4GCzSVsKnCOY5OAFRTBekyyryeyilhFKva75r4Mc0aWanGEaThcy31s439KKxTzJYY5WTHPU1FtIHjQU3Oip4xlNzj/lBw23dYZVliQa7WAXf4shetcQfatI+jWRDBPmyNeW6A1P5kdDgyYJlba0BIM8BZu1JfrFwItyjcAMR3K0BWOIrtMEXyhyrlVEx3ui5dUBjmB/Q3CXW85R4mBD0s7B+4q5tKUjOlb9qqmhi5AZ6GFIC5HXtOobdYGlVdMVbNJ8toNTFcHxnoL+muBagcctjWnbNMuR00uI7nQESwg5q2qqrKWIfrNUmeQocY6HuyxJV02wj36w00yhpmUFenv4p6fUkZYqLyuinx2RGOjhCXYyJF84oiU00YMOOhhquNdfbOB7gU88pY4xJO8LVdp6/q2voeB4R04vIdhSE40xZObx1HGGJ/ja0LBthFInKaLPPFzuCaYaoj8JjPME8yoyxo6zlBqkiUZYgq00OYMswbWO5NGmq+xhipxHLRW29ARjNKXO0wRnear8XSg4XFPLKEPUS1GqvyLwiuBUoa7zpZ0l5xxFwWmWZC1H5h5FwU8eQ7K+g8UcVY6TMQreVQT/8uQ8Z+ALIXnSEa2pYZQneE9RZbSBNYXfWYJzW/h/4j4Dp1tYVcFIC5019Vyi4ThPqSFCzjGWaHQTBU8q6vrVwgxP9Lkm840imWKpcLCjYTtrKuwvsKSnrvHCXGkSMk9p6lhckfRpIeis+N2PiszT+mFLspyGleUhDwcLrZqmyeylxwjBcKHEapqkmyangyLZRVOijwOtCY5SsG5zL0OwlCJ4y5KznF3EUNDDrinwiyLZRzOXtlBbK5ITHFGLp8Q0R6ab6mS7enI2cFrxOyHvOCFaT1HThS1krjCwqWeurCkk+willhCC+RSZnRXBiZaC5RXRIZYKp2lyfrHwiKPKR0JDzrdU2EFgpidawlFDR6FgXUMNa+g1FY3bUQh2cLCwosRdnuQTS/S+JVrGLeWIvtQUvONJxlqSQYYKpwoN2kaocLjdVsis4Mk80ESF2YpSkzwldjHkjFCUutI/r+EHDU8oCs6yzL3PhWiEooZdFMkymlas4AcI3KmoMMNSQ3tHzjGWCrcJJdYyZC7QFGwjRL9p+MrRkAGWzIaWCn9W0F3TsK01c2ZvQw0byvxuQU0r1lM0qJO7wW0kRIMdDTtXEdzi4VIh+EoIHm0mWtAtpCixlabgn83fKTI7anJe9ST7WIK1DMGpQmYeA58ImV6ezOGOzK2Kgq01pd60cKWiUi9Lievb/0vIDPHQ05Kzt4ddPckQBQtoaurjyHnek/nKzpQLrVgKPjIkh2v4uyezpv+Xoo7fPFXaGFp1vaLKxQ4uUpQQS5VuQs7BCq4xRJv7fwpVvvFEB3j+620haOuocqMhWd6TTPAEx+mdFNGHdranFe95WrWmIvlY4F1Dle2ECgc6cto7SryuqGGGha0tFQ5V53migUKmg6XKAo4qS3mik+0OZpAhOLeZKicacgaYcyx5hypYQE02ZA4xi/pNhOQxR4klNKyqacj+mpxnLTnnGSo85++3ZCZq6lrZkXlGEX3o+C9FieccJbZWVFjC0Yo1FZnJhoYMFoI1hEZ9r6hwg75HwzBNhbZCdJEfJwTPGzJvaKImw1yYX1HDAmpXR+ZJQ/SmgqMNVQb5vgamGwLtt7VwvP7Qk1xpiM5x5Cyv93E06MZmgs0Nya2azIKOYKCGBQQW97RmhKNKF02JZqHEJ4o58qp7X5EcZmc56trXEqzjCBZ1MFGR87Ql2tSTs6CGxS05PTzRQorkbw7aKoKXFDXsYW42VJih/q+FP2BdTzDTwVqOYB13liM50vG7wy28qagyuIXMeQI/Oqq8bcn5wJI50xH00CRntyfpL1T4hydYpoXgNiFzoIUTDZnLNRzh4TBHwbYGDvZkxmlyJloyr6tRihpeUG94GnKtIznREF0tzJG/OOr73JBcrSh1k6WuTprgLU+mnSGnv6Zge0NNz+kTDdH8nuAuTdJDCNb21LCiIuqlYbqGzT3RAoZofQfjFazkqeNWdYaGvYTM001EW2oKPvVk1ldUGSgUtHFwjKM1h9jnFcmy5lChoLNaQMGGDsYbKixlaMBmmsx1QjCfflwTfO/gckW0ruZ3jugKR3R5W9hGUWqCgxuFgsuaCHorotGKzGaeZB9DMsaTnKCpMtwTvOzhYk0rdrArKCqcaWmVk1+F372ur1YkKxgatI8Qfe1gIX9wE9FgS8ESmuABIXnRUbCapcKe+nO7slClSZFzpV/LkLncEb1qiO42fS3R855Su2mCLh62t1SYZZYVmKwIHjREF2uihTzB20JOkz7dkxzYQnK0UOU494wh+VWRc6Un2kpTaVgLDFEkJ/uhzRcI0YKGgpGWOlocBU/a4fKoJ/pEaNV6jip3+Es9VXY078rGnmAdf7t9ylPXS34RBSuYPs1UecZTU78WanhBCHpZ5sAoTz0LGZKjPf9TRypqWEiTvOFglL1fCEY3wY/++rbk7C8bWebA6p6om6PgOL2kp44TFJlVNBXae2rqqdZztOJpT87GQsE9jqCPIe9VReZuQ/CIgacsyZdCpIScSYqcZk8r+nsyCzhyfhOqHGOIvrLknC8wTpFcaYiGC/RU1NRbUeUpocQOnkRpGOrIOcNRx+1uA0UrzhSSt+VyS3SJpnFWkzNDqOFGIWcfR86DnmARTQ1HKIL33ExPiemeOhYSSjzlSUZZuE4TveoJLnBUOFof6KiysCbnAEcZgcUNTDOwkqWu3RWtmGpZwlHhJENdZ3miGz0lJlsKnjbwqSHQjpxnFDlTLLwqJPMZMjd7KrzkSG7VsxXBZE+F8YZkb01Oe00yyRK9psh5SYh29ySPKBo2ylNht7ZkZnsKenjKNJu9PNEyZpaCHv4Kt6RQsLvAVp7M9kIimmCUwGeWqLMmGuIotYMmWNpSahkhZw9FqZsVnKJhsjAHvtHMsTM9fCI06Dx/u3vfUXCqfsKRc4oFY2jMsoo/7DJDwZ1CsIKnJu+J9ldkpmiCxQx1rWjI+T9FwcWWzOuaYH0Hj7klNRVWEQpmaqosakiGNTFHdjS/qnUdmf0NJW5xsL0HhimCCZZSRzmSPTXJQ4aaztAwtZnoabebJ+htCaZ7Cm535ByoqXKbX1WRc4Eh2MkRXWzImVc96Cj4VdOKVxR84VdQsIUM8Psoou2byVHyZFuq7O8otbSQ2UAoeEWTudATLGSpZzVLlXVkPU2Jc+27lsw2jmg5T5VhbeE3BT083K9WsTTkFU/Osi0rC5lRlpwRHUiesNS0sOvmqGML1aRbPAxTJD9ZKtxuob+hhl8cwYGWpJ8nub7t5p6coYbMovZ1BTdaKn1jYD6h4GFDNFyT/Kqe1XCXphXHOKLZmuRSRdBPEfVUXQzJm5YGPGGJdvAEr7hHNdGZnuBvrpciGmopOLf5N0uVMy0FfYToJk90uUCbJupaVpO53UJXR2bVpoU00V2KOo4zMFrBd0Jtz2pa0clT5Q5L8IpQ177mWQejPMEJhuQjS10ref6HHjdEhy1P1EYR7GtO0uSsKJQYLiTnG1rVScj5lyazpqWGl5uBbRWl7m6ixGOOnEsMJR7z8J0n6KMnCdxhiNYQCoZ6CmYLnO8omC3MkW3bktlPmEt/VQQHejL3+dOE5FlPdK/Mq8hZxxJtLyRrepLThYKbLZxkSb5W52vYxNOaOxUF0yxMUPwBTYqCzy01XayYK0sJyWBLqX0MwU5CzoymRzV0EjjeUeLgDpTo6ij42ZAzvD01dHUUTPLU96MdLbBME8nFBn7zJCMtJcZokn8YoqU0FS5WFKyniHobguMcmW8N0XkWZjkyN3hqOMtS08r+/xTBwpZSZ3qiVRX8SzMHHjfUNFjgHEPmY9PL3ykEzxkSre/1ZD6z/NuznuB0RcE1TWTm9zRgfUWVJiG6yrzgmWPXC8EAR4Wxhlad0ZbgQyEz3pG5RVEwwDJH2mgKpjcTiCOzn1lfUWANFbZ2BA8balnEweJC9J0iuaeZoI+ippFCztEKVvckR2iice1JvhVytrQwUAZpgsubCPaU7xUe9vWnaOpaSBEspalykhC9bUlOMpT42ZHca6hyrqKmw/wMR8H5ZmdFoBVJb03O4UL0tSNnvIeRmkrLWqrs78gcrEn2tpcboh0UPOW3UUR9PMk4T4nnNKWmCjlrefhCwxRNztfmIQVdDElvS4m1/WuOujoZCs5XVOjtKPGokJzsYCtFYoWonSPT21DheU/wWhM19FcElwqNGOsp9Q8N/cwXaiND1MmeL1Q5XROtYYgGeFq1aTMsoMmcrKjQrOFQTQ1fmBYhmW6o8Jkjc7iDJRTBIo5kgJD5yMEYA3srCg7VFKwiVJkmRCc5ohGOKhsYMn/XBLdo5taZjlb9YAlGWRimqbCsoY7HFAXLa5I1HPRxMMsQDHFkWtRNniqT9UEeNjcE7RUlrCJ4R2CSJuqlKHWvJXjAUNcITYkenuBRB84TbeepcqTj3zZyFJzgYQdHnqfgI0ddUwS6GqWpsKWhjq9cV0vBAEMN2znq+EBfIWT+pClYw5xsTlJU6GeIBsjGmmANTzJZiIYpgrM0Oa8ZMjd7NP87jxhqGOhJlnQtjuQpB+8aEE00wZFznSJPyHxgH3HkPOsJFvYk8zqCHzTs1BYOa4J3PFU+UVRZxlHDM4YavlNUuMoRveiZA2d7grMNc2g+RbSCEKzmgYsUmWmazFJyoiOZ4KnyhKOGRzWJa0+moyV4TVHDzn51Awtqaphfk/lRQ08FX1iiqxTB/kLwd0VynKfEvI6cd4XMV5bMhZ7gZUWVzYQ6Nm2BYzxJbw3bGthEUUMfgbGeorae6DxHtJoZ6alhZ0+ytiVoK1R4z5PTrOECT/SugseEOlb1MMNR4VRNcJy+V1Hg9ONClSZFZjdHlc6W6FBLdJja2MC5hhpu0DBYEY1TFGwiFAxRRCsYkiM9JRb0JNMVkW6CZYT/2EiTGWmo8k+h4FhDNE7BvppoTSFnmCV5xZKzvcCdDo7VVPnIU+I+Rc68juApC90MwcFCsJ5hDqxgScYKreruyQwTqrzoqDCmhWi4IbhB0Yrt3RGa6GfDv52rKXWhh28dyZaWUvcZeMTBaZoSGyiCtRU5J8iviioHaErs7Jkj61syVzTTgOcUOQ8buFBTYWdL5g3T4qlpe0+wvD63heAXRfCCIed9RbCsp2CiI7raUOYOTU13N8PNHvpaGvayo4a3LLT1lDrVEPT2zLUlheB1R+ZTRfKWJ+dcocLJfi11vyJ51lLqJ0WD7tRwryezjiV5W28uJO9qykzX8JDe2lHl/9oyBwa2UMfOngpXCixvKdXTk3wrsKmiVYdZIqsoWEERjbcUNDuiaQomGoIbFdEHmsyWnuR+IeriKDVLnlawlyNHKwKlSU631PKep8J4Q+ayjkSLKYLhalNHlYvttb6fHm0p6OApsZ4l2VfdqZkjuysy6ysKLlckf1KUutCTs39bmCgEyyoasIWlVaMF7mgmWtBT8Kol5xpH9IGllo8cJdopcvZ2sImlDmMIbtDk3KIpeNiS08lQw11NFPTwVFlPP6pJ2gvRfI7gQUfmNAtf6Gs0wQxDsKGlVBdF8rCa3jzdwMaGHOsItrZk7hAyOzpK9VS06j5F49b0VNGOOfKs3lDToMsMBe9ZWtHFEgxTJLs7qrygKZjUnmCYoeAqeU6jqWuLJup4WghOdvCYJnrSkSzoyRkm5M2StQwVltPkfCAk58tET/CSg+8MUecmotMEnhBKfWBIZsg2ihruMJQaoIm+tkTLKEqspMh00w95gvFCQRtDwTT1gVDDSEVdlwqZfxoQRbK0g+tbiBZxzKlpnpypejdDwTaeOvorMk/IJE10h9CqRe28hhLbe0pMsdSwv4ZbhKivo2BjDWfL8UKJgeavwlwb5KlwhyE4u4XkGE2ytZCznKLCDZZq42VzT8HLCrpruFbIfOIINmh/qCdZ1ZBc65kLHR1Bkyf5zn6pN3SvGKIlFNGplhrO9QSXanLOMQTLCa0YJCRrCZm/CZmrLTm7WzCK4GJDiWUdFeYx1LCFg3NMd0XmCuF3Y5rITLDUsYS9zoHVzwnJoYpSTQoObyEzr4cFBNqYTopoaU/wkyLZ2lPhX/5Y95ulxGTV7KjhWrOZgl8MyUUafjYraNjNU1N3IWcjT5WzWqjwtoarHSUObGYO3GCJZpsBlnJGPd6ZYLyl1GdCA2625IwwJDP8GUKymbzuyPlZlvTUsaUh5zFDhRWFzPKKZLAlWdcQbObgF9tOqOsmB1dqcqYJmWstFbZRRI9poolmqiLnU0POvxScpah2iSL5UJNzgScY5+AuIbpO0YD3NCW+dLMszFSdFCWGqG6eVq2uYVNDdICGD6W7EPRWZEY5gpsE9rUkS3mijzzJnm6UpUFXG1hCUeVoS5WfNcFpblELL2qqrCvMvRfd45oalvKU2tiQ6ePJOVMRXase9iTtLJztPxJKLWpo2CRDcJwn2sWSLKIO1WQWNTCvpVUvOZhgSC40JD0dOctaSqzkCRbXsKlb11Oip6PCJ0IwSJM31j3akRxlP7Rwn6aGaUL0qiLnJkvB3xWZ2+Q1TfCwpQH3G0o92UzmX4o/oJNQMMSQc547wVHhdk+VCw01DFYEnTxzZKAm74QmeNNR1w6WzEhNK15VJzuCdxQ53dRUDws5KvwgBMOEgpcVNe0hZI6RXT1Jd0cyj5nsaEAHgVmGaJIlWdsc5Ui2ElrRR6jrRAttNMEAIWrTDFubkZaok7/AkzfIwfuWVq0jHzuCK4QabtLUMVPB3kJ0oyHTSVFlqMALilJf2Rf8k5aaHtMfayocLBS8L89oKoxpJvnAkDPa0qp5DAUTHKWmCcnthlou8iCKaFFLHWcINd1nyIwXqrSxMNmSs6KmoL2QrKuWtlQ5V0120xQ5vRyZS1rgFkWwhiOwiuQbR0OOVhQM9iS3tiXp4RawRPMp5tDletOOBL95MpM01dZTBM9pkn5qF010rIeHFcFZhmSGpYpTsI6nwhqe5C9ynhlpp5ophuRb6WcJFldkVnVEwwxVfrVkvnWUuNLCg5bgboFHPDlDPDmnK7hUrWiIbjadDclujlZcaokOFup4Ri1kacV6jmrrK1hN9bGwpKEBQ4Q6DvIUXOmo6U5LqQM6EPyiKNjVkPnJkDPNEaxhiFay5ExW1NXVUGqcpYYdPcGiCq7z/TSlbhL4pplWXKd7NZO5QQFrefhRQW/NHOsqcIglc4UhWklR8K0QzbAw08CBDnpbgqXdeD/QUsM4RZXDFBW6WJKe/mFPdH0LtBgiq57wFLzlyQzz82qYx5D5WJP5yVJDW01BfyHnS6HKO/reZqId1WGa4Hkh2kWodJ8i6KoIPlAj2hPt76CzXsVR6koPRzWTfKqIentatYpQw2me4AA3y1Kind3SwoOKZDcFXTwl9tWU6mfgRk9d71sKtlNwrjnYw5tC5n5LdKiGry3JKNlHEd3oaMCFHrazBPMp/uNJ+V7IudcSbeOIdjUEdwl0VHCOZo5t6YluEuaC9mQeMgSfOyKnYGFHcIeQ84yQWbuJYJpZw5CzglDH7gKnWqqM9ZTaXcN0TeYhR84eQtJT76JJ1lREe7WnnvsMmRc9FQ7SBBM9mV3lCUdmHk/S2RAMt0QjFNFqQpWjDPQ01DXWUdDBkXziKPjGEP3VP+zIWU2t7im41FOloyWzn/L6dkUy3VLDaZ6appgDLHPjJEsyvJngWEPUyVBiAaHCTEXwrLvSEbV1e1gKJniicWorC1MUrVjB3uDhJE/wgSOzk1DXpk0k73qCM8xw2UvD5kJmDUfOomqMpWCkJRlvKXGmoeBm18USjVIk04SClxTB6YrgLAPLWYK9HLUt5cmc0vYES8GnTeRc6skZbQkWdxRsIcyBRzx1DbTk9FbU0caTPOgJHhJKnOGIVhQqvKmo0llRw9sabrZkDtdg3PqaKi9oatjY8B+G371paMg6+mZFNNtQ04mWBq3rYLOmtWWQp8KJnpy9DdFensyjdqZ+yY40VJlH8wcdLzC8PZnvHMFUTZUrDTkLyQaGus5X5LzpYAf3i+e/ZlhqGqWhh6Ou6xTR9Z6oi5AZZtp7Mj2EEm8oSpxiYZCHU/1fbGdNNNRRoZMhmilEb2gqHOEJDtXkHK/JnG6IrvbPCwV3NhONVdS1thBMs1T4QOBcTWa2IzhMk2nW5Kyn9tXUtpv9RsG2msxk+ZsQzRQacJncpgke0+T8y5Fzj8BiGo7XlJjaTIlpQs7KFjpqGnKuoyEPeIKnFMkZHvopgh81ySxNFWvJWcKRs70j2FOT012IllEEO1n4pD1513Yg2ssQPOThOkvyrqHUdEXOSEsihmBbTbKX1kLBPWqWkLOqJbjB3GBIZmoa8qWl4CG/iZ7oiA72ZL7TJNeZUY7kFQftDcHHluBzRbCegzMtrRjVQpX2lgoPKKLJAkcbMl01XK2p7yhL8pCBbQ3BN2avJgKvttcrWDK3CiUOVxQ8ZP+pqXKyIxnmBymCg5vJjNfkPK4+c8cIfK8ocVt7kmfd/I5SR1hKvCzUtb+lhgc00ZaO6CyhIQP1Uv4yIZjload72PXX0OIJvnFU+0Zf6MhsJwTfW0r0UwQfW4LNLZl5HK261JCZ4qnBaAreVAS3WrjV0LBnNDUNNDToCEeFfwgcb4gOEqLRhirWkexrCEYKVV711DLYEE1XBEsp5tpTGjorkomKYF9FDXv7fR3BGwbettSxnyL53MBPjsxDZjMh+VUW9NRxq1DhVk+FSxQcaGjV9Pawv6eGByw5qzoy7xk4RsOShqjJwWKe/1pEEfzkobeD/dQJmpqedcyBTy2sr4nGNRH0c0SPWTLrqAc0OQcb/gemKgqucQT7ySWKCn2EUotoCvpZct7RO2sy/QW0IWcXd7pQRQyZVwT2USRO87uhjioTLKV2brpMUcMQRbKH/N2T+UlTpaMls6cmc6CCNy3JdYYSUzzJQ4oSD3oKLncULOiJvjBEC2oqnCJkJluCYy2ZQ5so9YYlZ1VLlQU1mXEW1jZERwj/MUSRc24TdexlqLKfQBtDTScJUV8FszXBEY5ktpD5Ur9hYB4Nb1iikw3JoYpkKX+RodRKFt53MMuRnKSpY31PwYaGaILh3wxJGz9TkTPEETxoCWZrgvOlmyMzxFEwVJE5xZKzvyJ4WxEc16Gd4Xe3Weq4XH2jKRikqOkGQ87hQnC7wBmGYLAnesX3M+S87eFATauuN+Qcrh7xIxXJbUIdMw3JGE3ylCWzrieaqCn4zhGM19TQ3z1oH1AX+pWEqIc7wNGAkULBo/ZxRaV9NNyh4Br3rCHZzbzmSfawBL0dNRwpW1kK9mxPXR9povcdrGSZK9c2k0xwFGzjuniCtRSZCZ6ccZ7gaktmgAOtKbG/JnOkJrjcQTdFMsxRQ2cLY3WTIrlCw1eWKn8R6pvt4GFDso3QoL4a3nLk3G6JrtME3dSenpx7PNFTmga0EaJTLQ061sEeQoWXhSo9LTXsaSjoJQRXeZLtDclbCrYzfzHHeaKjHCVOUkQHO3JeEepr56mhiyaYYKjjNU+Fed1wS5VlhWSqI/hYUdDOkaxiKehoyOnrCV5yBHtbWFqTHCCwtpDcYolesVR5yUzTZBb3RNMd0d6WP+SvhuBmRcGxnuQzT95IC285cr41cLGQ6aJJhmi4TMGempxeimBRQw1tFKV+8jd6KuzoSTqqDxzRtpZkurvKEHxlqXKRIjjfUNNXQsNOsRScoWFLT+YeRZVD3GRN0MdQcKqQjHDMrdGGVu3iYJpQx3WGUvfbmxwFfR20WBq0oYY7LMFhhgYtr8jpaEnaOzjawWWaTP8mMr0t/EPDPoqcnxTBI5o58L7uoWnMrpoqPwgVrlAUWE+V+TQl9rawoyP6QGAlQw2TPRX+YSkxyBC8Z6jhHkXBgQL7WII3DVFnRfCrBfxewv9D6xsyjys4VkhWb9pUU627JllV0YDNHMku/ldNMMXDEo4aFnAkk4U6frNEU4XgZUPmEKHUl44KrzmYamjAbh0JFvGnaTLPu1s9jPCwjFpYiN7z1DTOk/nc07CfDFzmCf7i+bfNHXhDtLeBXzTBT5rkMvWOIxpl4EMh2LGJBu2syDnAEx2naEhHDWMMzPZEhygyS1mS5RTJr5ZkoKbEUoYqr2kqdDUE8ztK7OaIntJkFrIECwv8LJTaVx5XJE86go8dFeZ3FN3rjabCAYpoYEeC9zzJVULBbmZhDyd7ko09ydpNZ3nm2Kee4FPPXHnYEF1nqOFEC08LUVcDvYXkJHW8gTaKCk9YGOeIJhqiE4ToPEepdp7IWFjdwnWaufGMwJJCMtUTTBBK9BGCOy2tGGrJTHIwyEOzp6aPzNMOtlZkDvcEWpP5SVNhfkvDxhmSazTJXYrM9U1E0xwFVwqZQwzJxw6+kGGGUj2FglGGmnb1/G51udRSMNlTw6GGnCcUwVcOpmsqTHa06o72sw1RL02p9z0VbnMLOaIX3QKaYKSCFQzBKEUNHTSc48k53RH9wxGMtpQa5KjjW0W0n6XCCCG4yxNNdhQ4R4l1Ff+2sSd6UFHiIEOyqqFgT01mEUMD+joy75jPhOA+oVVLm309FR4yVOlp4RhLiScNmSmaYF5Pw0STrOIoWMSR2UkRXOMp+M4SHW8o8Zoi6OZgjKOaFar8zZDzkWzvKOjkKBjmCXby8JahhjXULY4KlzgKLvAwxVGhvyd4zxB1d9T0piazmKLCVZY5sKiD0y2ZSYrkUEPUbIk+dlQ4SJHTR50k1DPaUWIdTZW9NJwnJMOECgd7ou/MnppMJ02O1VT4Wsh85MnZzcFTngpXGKo84qmwgKbCL/orR/SzJ2crA+t6Mp94KvxJUeIbT3CQu1uIdlQEOzlKfS3UMcrTiFmOuroocrZrT2AcmamOKg8YomeEKm/rlT2sociMaybaUlFhuqHCM2qIJ+rg4EcDFymiDSxzaHdPcpE62pD5kyM5SBMoA1PaUtfIthS85ig1VPiPPYXgYEMNk4Qq7TXBgo7oT57gPUdwgCHzhIVFPFU6OYJzHAX9m5oNrVjeE61miDrqQ4VSa1oiURTsKHC0IfjNwU2WzK6eqK8jWln4g15TVBnqmDteCJ501PGAocJhhqjZdtBEB6lnhLreFJKxmlKbeGrqLiSThVIbCdGzloasa6lpMQXHCME2boLpJgT7yWaemu6wBONbqGNVRS0PKIL7LckbjmQtR7K8I5qtqel+T/ChJTNIKLjdUMNIRyvOEko9YYl2cwQveBikCNawJKcLBbc7+JM92mysNvd/Fqp8a0k6CNEe7cnZrxlW0wQXaXjaktnRwNOGZKYiONwS7a1JVheq3WgJHlQUGKHKmp4KAxXR/ULURcNgoa4zhKSLpZR3kxRRb0NmD0OFn+UCS7CzI1nbP6+o4x47QZE5xRCt3ZagnYcvmpYQktXdk5YKXTzBC57kKEe0VVuiSYqapssMS3C9p2CKkHOg8B8Pa8p5atrIw3qezIWanMGa5HRDNF6RM9wcacl0N+Q8Z8hsIkSnaIIdHRUOEebAPy1zbCkhM062FCJtif7PU+UtoVXzWKqM1PxXO8cfdruhFQ/a6x3JKYagvVDhQEtNiyiiSQ7OsuRsZUku0CRNDs4Sog6KKjsZgk2bYJqijgsEenoKeniinRXBn/U3lgpPdyDZynQx8IiioMnCep5Ky8mjGs6Wty0l1hUQTcNWswS3WRp2kCNZwJG8omG8JphPUaFbC8lEfabwP7VtM9yoaNCAjpR41VNhrD9LkbN722v0CoZMByFzhaW+MyzRYEWFDQwN2M4/JiT76PuljT3VU/A36eaIThb+R9oZGOAJ9tewkgGvqOMNRWYjT/Cwu99Q8LqDE4TgbLWxJ1jaDDAERsFOFrobgjUsBScaguXU8kKm2RL19tRypSHnHNlHiIZqgufs4opgQdVdwxBNNFBR6kVFqb8ogimOzB6a6HTzrlDHEpYaxjiiA4TMQobkDg2vejjfwJGWmnbVFAw3H3hq2NyQfG7hz4aC+w3BbwbesG0swYayvpAs6++Ri1Vfzx93mFChvyN5xVHTS+0p9aqCAxyZ6ZacZyw5+7uuQkFPR9DDk9NOiE7X1PCYJVjVUqq7JlrHwWALF5nfHNGjApdpqgzx5OwilDhCiDYTgnc9waGW4BdLNNUQvOtpzDOWHDH8D7TR/A/85KljEQu3NREc4Pl/6B1Hhc8Umb5CsKMmGC9EPcxoT2amwHNCmeOEnOPbklnMkbOgIvO5UMOpQrS9UGVdt6iH/fURjhI/WOpaW9OKLYRod6HCUEdOX000wpDZQ6hwg6LgZfOqo1RfT/CrJzjekXOGhpc1VW71ZLbXyyp+93ILbC1kPtIEYx0FIx1VDrLoVzXRKRYWk809yYlC9ImcrinxtabKnzRJk3lAU1OLEN1j2zrYzr2myHRXJFf4h4QKT1qSTzTB5+ZNTzTRkAxX8FcLV2uS8eoQQ2aAkFzvCM72sJIcJET3WPjRk5wi32uSS9rfZajpWEvj9hW42F4o5NytSXYy8IKHay10VYdrcl4SkqscrXpMwyGOgtkajheSxdQqmpxP1L3t4R5PqasFnrQEjytq6qgp9Y09Qx9o4S1FzhUCn1kyHSzBWLemoSGvOqLNhZyBjmCaAUYpMgt4Ck7wBBMMwWKWgjsUwTaGVsxWC1mYoKiyqqeGKYqonSIRQ3KIkHO0pmAxTdBHkbOvfllfr+AA+7gnc50huVKYK393FOyg7rbPO/izI7hE4CnHHHnJ0ogNPRUGeUpsrZZTBJcrovUcJe51BPsr6GkJdhCCsZ6aTtMEb2pqWkqeVtDXE/QVggsU/Nl86d9RMF3DxvZTA58agu810RWawCiSzzXBeU3MMW9oyJUedvNEvQyNu1f10BSMddR1vaLCYpYa/mGocLSiYDcLbQz8aMn5iyF4xBNMs1P0QEOV7o5gaWGuzSeLue4tt3ro7y4Tgm4G/mopdZgl6q0o6KzJWE3mMksNr3r+a6CbT8g5wZNzT9O7fi/zpaOmnz3BRoqos+tv9zMbdpxsqDBOEewtJLt7cg5wtKKbvldpSzRRCD43VFheCI7yZLppggMVBS/KMAdHODJvOwq2NQSbKKKPLdFWQs7Fqo+mpl01JXYRgq8dnGLhTiFzqmWsUMdpllZdbKlyvSdYxhI9YghOtxR8LgSLWHK62mGGVoxzBE8LNWzqH9CUesQzFy5RQzTc56mhi6fgXEWwpKfE5Z7M05ZgZUPmo6auiv8YKzDYwWBLMErIbKHJvOwIrvEdhOBcQ9JdU1NHQ7CXn2XIDFBKU2WAgcX9UAUzDXWd5alwuyJ41Z9rjKLCL4aCp4WarhPm2rH+SaHUYE001JDZ2ZAzXPjdMpZWvC9wmqIB2lLhQ01D5jO06hghWMndbM7yRJMsoCj1vYbnFQVrW9jak3OlEJ3s/96+p33dEPRV5GxiqaGjIthUU6FFEZyqCa5qJrpBdzSw95IUnOPIrCUUjRZQFrbw5PR0R1qiYx3cb6nrWUMrBmmiBQxVHtTew5ICP/ip6g4hed/Akob/32wvBHsIOX83cI8hGeNeNPCIkPmXe8fPKx84OMSRM1MTdXSwjCZ4S30jVGhvqTRak/OVhgGazHuOCud5onEO1lJr6ecVyaOK6H7zqlBlIaHE0oroCgfvGJIdPcmfLNGLjpz7hZwZQpUbFME0A1cIJa7VNORkgfsMBatbKgwwJM9bSvQXeNOvbIjelg6WWvo5kvbKaJJNHexkKNHL9xRyFlH8Ti2riB5wVPhUk7nGkJnoCe428LR/wRGdYIlmWebCyxou1rCk4g/ShugBDX0V0ZQWkh0dOVsagkM0yV6OoLd5ye+pRlsCr0n+KiQrGuq5yJDzrTAXHtLUMduTDBVKrSm3eHL+6ijxhFDX9Z5gVU/wliHYTMiMFpKLNMEywu80wd3meoFmt6VbRMPenhrOc6DVe4pgXU8DnnHakLOIIrlF4FZPIw6R+zxBP0dyq6OOZ4Q5sLKCcz084ok+VsMMyQhNZmmBgX5xIXOEJTmi7VsGTvMTNdHHhpzdbE8Du2oKxgvBqQKdDDnTFOylCFaxR1syz2iqrOI/FEpNc3C6f11/7+ASS6l2inq2ciTrCCzgyemrCL5SVPjQkdPZUmGy2c9Sw9FtR1sS30RmsKPCS4rkIC/2U0MduwucYolGaPjKEyhzmiPYXagyWbYz8LWBDdzRimAXzxx4z8K9hpzlhLq+NiQ97HuKorMUfK/OVvC2JfiHUPCQI/q7J2gjK+tTDNxkCc4TMssqCs4TGtLVwQihyoAWgj9bosU80XGW6Ac9TJGziaUh5+hnFcHOnlaM1iRn29NaqGENTTTSUHCH2tWTeV0osUhH6psuVLjRUmGWhm6OZEshGeNowABHcJ2Bpy2ZszRcKkRXd2QuKVEeXnbfaEq825FguqfgfE2whlChSRMdron+LATTPQ2Z369t4B9C5gs/ylzv+CMmepIDPclFQl13W0rspPd1JOcbghGOEutqCv5qacURQl3dDKyvyJlqKXGPgcM9FfawJAMVmdcspcYKOZc4GjDYkFlK05olNMHyHn4zFNykyOxt99RkHlfwmiHo60l2EKI+mhreEKp080Tbug08BVPcgoqC5zWt+NLDTZ7oNSF51N1qie7Va3uCCwyZbkINf/NED6jzOsBdZjFN8oqG3wxVunqCSYYKf3EdhJyf9YWGf7tRU2oH3VHgPr1fe5J9hOgHd7xQ0y7qBwXr23aGErP0cm64JVjZwsOGqL+mhNgZmhJLW2oY4UhedsyBgzrCKrq7BmcpNVhR6jBPq64Vgi+kn6XE68pp8J5/+0wRHGOpsKenQn9DZntPzjRLZpDAdD2fnSgkG9tmIXnUwQ6WVighs7Yi2MxQ0N3CqYaCXkJ0oyOztMDJjmSSpcpvlrk0RMMOjmArQ04PRV1DO1FwhCVaUVPpKUM03JK5SxPsIWRu8/CGHi8UHChiqGFDTbSRJWeYUDDcH6vJWUxR4k1FXbMUwV6e4AJFXS8oMqsZKqzvYQ9DDQdZckY4aGsIhtlubbd2r3j4QBMoTamdPZk7O/Bf62lacZwneNjQoGcdVU7zJOd7ghsUHOkosagic6cnWc8+4gg285R6zZP5s1/LUbCKIznTwK36PkdwlOrl4U1LwfdCCa+IrvFkmgw1PCAUXKWo0sURXWcI2muKJlgyFzhynCY4RBOsqCjoI1R5zREco0n2Vt09BQtYSizgKNHfUmUrQ5UOCh51BFcLmY7umhYqXKQomOop8bUnWNNQcIiBcYaC6xzMNOS8JQQfeqKBmmglB+97ok/lfk3ygaHSyZaCRTzRxQo6GzLfa2jWBPepw+UmT7SQEJyiyRkhBLMVOfcoMjcK0eZChfUNzFAUzCsEN5vP/X1uP/n/aoMX+K+nw/Hjr/9xOo7j7Pju61tLcgvJpTWXNbfN5jLpi6VfCOviTktKlFusQixdEKWmEBUKNaIpjZRSSOXSgzaaKLdabrm1/9nZ+/f+vd/vz/v9+Xy+zZ7PRorYoZqyLrCwQdEAixxVOEXNNnjX2nUSRlkqGmWowk8lxR50JPy9Bo6qJXaXwNvREBvnThPEPrewryLhcAnj5WE15Fqi8W7R1sAuEu86S4ENikItFN4xkv9Af4nXSnUVcLiA9xzesFpivRRVeFKtsMRaKBhuSbjOELnAUtlSQUpXgdfB4Z1oSbnFEetbQ0IrAe+Y+pqnDcEJFj6S8LDZzZHwY4e3XONNlARraomNEt2bkvGsosA3ioyHm+6jCMbI59wqt4eeara28IzEmyPgoRaUOEDhTVdEJhmCoTWfC0p8aNkCp0oYqih2iqGi4yXeMkOsn4LdLLnmKfh/YogjNsPebeFGR4m9BJHLzB61XQ3BtpISfS2FugsK9FAtLWX1dCRcrCnUp44CNzuCowUZmxSRgYaE6Za0W2u/E7CVXCiI/UOR8aAm1+OSyE3mOUcwyc1zBBeoX1kiKy0Zfxck1Gsyulti11i83QTBF5Kg3pDQThFMVHiPSlK+0cSedng/VaS8bOZbtsBcTcZAR8JP5KeqQ1OYKAi20njdNNRpgnsU//K+JnaXJaGTomr7aYIphoRn9aeShJWKEq9LcozSF7QleEfDI5LYm5bgVkFkRwVDBCVu0DDIkGupo8TZBq+/pMQURYErJQmPKGKjNDkWOLx7Jd5QizdUweIaKrlP7SwJDhZvONjLkOsBBX9UpGxnydhXkfBLQ8IxgojQbLFnJf81JytSljclYYyEFyx0kVBvKWOFJmONpshGAcsduQY5giVNCV51eOdJYo/pLhbvM0uDHSevNKRcrKZIqnCtJeEsO95RoqcgGK4ocZcho1tTYtcZvH41pNQ7vA0WrhIfOSraIIntIAi+NXWCErdbkvrWwjRLrt0NKUdL6KSOscTOdMSOUtBHwL6OLA0vNSdynaWQEnCpIvKaIrJJEbvHkmuNhn6OjM8VkSGSqn1uYJCGHnq9I3aLhNME3t6GjIkO7xrNFumpyTNX/NrwX7CrIRiqqWijI9JO4d1iieykyfiposQIQ8YjjsjlBh6oHWbwRjgYJQn2NgSnNycmJAk3NiXhx44Sxykihxm8ybUwT1OVKySc7vi3OXVkdBJ4AyXBeksDXG0IhgtYY0lY5ahCD0ehborIk5aUWRJviMA7Xt5kyRjonrXENkm8yYqgs8VzgrJmClK20uMM3jRJ0FiQICQF9hdETlLQWRIb5ki6WDfWRPobvO6a4GP5mcOrNzDFELtTkONLh9dXE8xypEg7z8A9jkhrQ6Fhjlg/QVktJXxt4WXzT/03Q8IaQWSqIuEvloQ2mqC9Jfi7wRul4RX3pSPlzpoVlmCtI2jvKHCFhjcM3sN6lqF6HxnKelLjXWbwrpR4xzuCrTUZx2qq9oAh8p6ixCUGr78g8oyjRAtB5CZFwi80VerVpI0h+IeBxa6Zg6kWvpDHaioYYuEsRbDC3eOmC2JvGYLeioxGknL2UATNJN6hmtj1DlpLvDVmocYbrGCVJKOrg4X6DgddLA203BKMFngdJJFtFd7vJLm6KEpc5yjQrkk7M80SGe34X24nSex1Ra5Omgb71JKyg8SrU3i/kARKwWpH0kOGhKkObyfd0ZGjvyXlAkVZ4xRbYJ2irFMkFY1SwyWxr2oo4zlNiV+7zmaweFpT4kR3kaDAFW6xpSqzJay05FtYR4HmZhc9UxKbbfF2V8RG1MBmSaE+kmC6JnaRXK9gsiXhJHl/U0qM0WTcbyhwkYIvFGwjSbjfwhiJt8ZSQU+Bd5+marPMOkVkD0muxYLIfEuhh60x/J92itguihJSEMySVPQnTewnEm+620rTQEMsOfo4/kP/0ARvWjitlpSX7GxBgcMEsd3EEeYWvdytd+Saawi6aCIj1CkGb6Aj9rwhx16Cf3vAwFy5pyLhVonXzy51FDpdEblbkdJbUcEPDEFzQ8qNmhzzLTmmKWKbFCXeEuRabp6rxbvAtLF442QjQ+wEA9eL1xSR7Q0JXzlSHjJ4exq89yR0laScJ/FW6z4a73pFMEfDiRZvuvijIt86RaSFOl01riV2mD1UEvxGk/Geg5aWwGki1zgKPG9J2U8PEg8qYvMsZeytiTRXBMslCU8JSlxi8EabjwUldlDNLfzTUmCgxWsjqWCOHavYAqsknKFIO0yQ61VL5AVFxk6WhEaCAkdJgt9aSkzXlKNX2jEa79waYuc7gq0N3GDJGCBhoiTXUEPsdknCUE1CK0fwsiaylSF2uiDyO4XX3pFhNd7R4itFGc0k/ElBZwWvq+GC6szVeEoS/MZ+qylwpKNKv9Z469UOjqCjwlusicyTxG6VpNxcQ8IncoR4RhLbR+NdpGGmJWOcIzJGUuKPGpQg8rrG21dOMqQssJQ4RxH5jaUqnZuQ0F4Q+cjxLwPtpZbIAk3QTJHQWBE5S1BokoVtDd6lhqr9UpHSUxMcIYl9pojsb8h4SBOsMQcqvOWC2E8EVehqiJ1hrrAEbQxeK0NGZ0Gkq+guSRgniM23bIHVkqwx4hiHd7smaOyglyIyQuM978j4VS08J/A2G1KeMBRo4fBaSNhKUEZfQewVQ/C1I+MgfbEleEzCUw7mKXI0M3hd1EESVji8x5uQ41nxs1q4RMJCCXs7Iq9acpxn22oSDnQ/sJTxsCbHIYZiLyhY05TY0ZLIOQrGaSJDDN4t8pVaIrsqqFdEegtizc1iTew5Q4ayBDMUsQMkXocaYkc0hZua412siZ1rSXlR460zRJ5SlHGe5j801RLMlJTxtaOM3Q1pvxJ45zUlWFD7rsAbpfEm1JHxG0eh8w2R7QQVzBUw28FhFp5QZzq8t2rx2joqulYTWSuJdTYfWwqMFMcovFmSyJPNyLhE4E10pHzYjOC3huArRa571ZsGajQpQx38SBP5pyZB6lMU3khDnp0MBV51BE9o2E+TY5Ml2E8S7C0o6w1xvCZjf0HkVEHCzFoyNmqC+9wdcqN+Tp7jSDheE9ws8Y5V0NJCn2bk2tqSY4okdrEhx1iDN8cSudwepWmAGXKcJXK65H9to8jYQRH7SBF01ESUJdd0TayVInaWhLkOjlXE5irKGOnI6GSWGCJa482zBI9rCr0jyTVcEuzriC1vcr6mwFGSiqy5zMwxBH/TJHwjSPhL8+01kaaSUuMFKTcLEvaUePcrSmwn8DZrgikWb7CGPxkSjhQwrRk57tctmxLsb9sZvL9LSlyuSLlWkqOjwduo8b6Uv1DkmudIeFF2dHCgxVtk8dpIvHpBxhEOdhKk7OLIUSdJ+cSRY57B+0DgGUUlNfpthTfGkauzxrvTsUUaCVhlKeteTXCoJDCa2NOKhOmC4G1H8JBd4OBZReSRGkqcb/CO1PyLJTLB4j1q8JYaIutEjSLX8YKM+a6phdMsdLFUoV5RTm9JSkuDN8WcIon0NZMNZWh1q8C7SJEwV5HxrmnnTrf3KoJBlmCYI2ilSLlfEvlE4011NNgjgthzEua0oKK7JLE7HZHlEl60BLMVFewg4EWNt0ThrVNEVkkiTwpKXSWJzdRENgvKGq4IhjsiezgSFtsfCUq8qki5S1LRQeYQQ4nemmCkImWMw3tFUoUBZk4NOeZYEp4XRKTGa6wJjrWNHBVJR4m3FCnbuD6aak2WsMTh3SZImGCIPKNgsDpVwnsa70K31lCFJZYcwwSMFcQulGTsZuEaSdBXkPGZhu0FsdUO73RHjq8MPGGIfaGIbVTk6iuI3GFgucHrIQkmWSJdBd7BBu+uOryWAhY7+Lki9rK5wtEQzWwvtbqGhIMFwWRJsElsY4m9IIg9L6lCX0VklaPAYkfkZEGDnOWowlBJjtMUkcGK4Lg6EtoZInMUBVYLgn0UsdmCyCz7gIGHFfk+k1QwTh5We7A9x+IdJ6CvIkEagms0hR50eH9UnTQJ+2oiKyVlLFUE+8gBGu8MQ3CppUHesnjTHN4QB/UGPhCTHLFPHMFrCqa73gqObUJGa03wgbhHkrCfpEpzNLE7JDS25FMKhlhKKWKfCgqstLCPu1zBXy0J2ztwjtixBu8UTRn9LVtkmCN2iyFhtME70JHRQ1KVZXqKI/KNIKYMCYs1GUMEKbM1bKOI9LDXC7zbHS+bt+1MTWS9odA9DtrYtpbImQJ2VHh/lisEwaHqUk1kjKTAKknkBEXkbkdMGwq0dnhzLJF3NJH3JVwrqOB4Sca2hti75nmJN0WzxS6UxDYoEpxpa4htVlRjkYE7DZGzJVU72uC9IyhQL4i8YfGWSYLLNcHXloyz7QhNifmKSE9JgfGmuyLhc403Xm9vqcp6gXe3xuuv8F6VJNxkyTHEkHG2g0aKXL0MsXc1bGfgas2//dCONXiNLCX+5mB7eZIl1kHh7ajwpikyzlUUWOVOsjSQlsS+M0R+pPje/dzBXRZGO0rMtgQrLLG9VSu9n6CMXS3BhwYmSoIBhsjNBmZbgusE9BCPCP5triU4VhNbJfE+swSP27aayE8tuTpYYjtrYjMVGZdp2NpS1s6aBnKSHDsbKuplKbHM4a0wMFd/5/DmGyKrJSUaW4IBrqUhx0vyfzTBBLPIUcnZdrAkNsKR0sWRspumSns6Ch0v/qqIbBYUWKvPU/CFoyrDJGwSNFhbA/MlzKqjrO80hRbpKx0Jewsi/STftwGSlKc1JZyAzx05dhLEdnfQvhZOqiHWWEAHC7+30FuRcZUgaO5gpaIK+xsiHRUsqaPElTV40xQZQ107Q9BZE1nryDVGU9ZSQ47bmhBpLcYpUt7S+xuK/FiT8qKjwXYw5ypS2iuCv7q1gtgjhuBuB8LCFY5cUuCNtsQOFcT+4Ih9JX+k8Ea6v0iCIRZOtCT0Et00JW5UeC85Cg0ScK0k411HcG1zKtre3SeITBRk7WfwDhEvaYLTHP9le0m8By0JDwn4TlLW/aJOvGHxdjYUes+ScZigCkYQdNdEOhkiezgShqkx8ueKjI8lDfK2oNiOFvrZH1hS+tk7NV7nOmLHicGWEgubkXKdwdtZknCLJXaCpkrjZBtLZFsDP9CdxWsSr05Sxl6CMmoFbCOgryX40uDtamB7SVmXW4Ihlgpmq+00tBKUUa83WbjLUNkzDmY7cow1JDygyPGlhgGKYKz4vcV7QBNbJIgM11TUqZaMdwTeSguH6rOaw1JRKzaaGyxVm2EJ/uCIrVWUcZUkcp2grMsEjK+DMwS59jQk3Kd6SEq1d0S6uVmO4Bc1lDXTUcHjluCXEq+1OlBDj1pi9zgiXxnKuE0SqTXwhqbETW6RggMEnGl/q49UT2iCzgJvRwVXS2K/d6+ZkyUl7jawSVLit46EwxVljDZwoSQ20sDBihztHfk2yA8NVZghiXwrYHQdfKAOtzsayjhY9bY0yE2CWEeJ9xfzO423xhL5syS2TFJofO2pboHob0nY4GiAgRrvGQEDa/FWSsoaaYl0syRsEt3kWoH3B01shCXhTUWe9w3Bt44SC9QCh3eShQctwbaK2ApLroGCMlZrYqvlY3qYhM0aXpFkPOuoqJ3Dm6fxXrGwVF9gCWZagjPqznfkuMKQ8DPTQRO8ZqG1hPGKEm9IgpGW4DZDgTNriTxvFiq+Lz+0cKfp4wj6OCK9JSnzNSn9LFU7UhKZZMnYwcJ8s8yRsECScK4j5UOB95HFO0CzhY4xJxuCix0lDlEUeMdS6EZBkTsUkZ4K74dugyTXS7aNgL8aqjDfkCE0ZbwkCXpaWCKhl8P7VD5jxykivSyxyZrYERbe168LYu9ZYh86IkscgVLE7tWPKmJv11CgoyJltMEbrohtVAQfO4ImltiHEroYEs7RxAarVpY8AwXMcMReFOTYWe5iiLRQxJ5Q8DtJ8LQhWOhIeFESPGsILhbNDRljNbHzNRlTFbk2S3L0NOS6V1KFJYKUbSTcIIhM0wQ/s2TM0SRMNcQmSap3jCH4yhJZKSkwyRHpYYgsFeQ4U7xoCB7VVOExhXepo9ABBsYbvGWKXPME3lyH95YioZ0gssQRWWbI+FaSMkXijZXwgiTlYdPdkNLaETxlyDVIwqeaEus0aTcYcg0RVOkpR3CSJqIddK+90JCxzsDVloyrFd5ZAr4TBKfaWa6boEA7C7s6EpYaeFPjveooY72mjIccLHJ9HUwVlDhKkmutJDJBwnp1rvulJZggKDRfbXAkvC/4l3ozQOG9a8lxjx0i7nV4jSXc7vhe3OwIxjgSHjdEhhsif9YkPGlus3iLFDnWOFhtCZbJg0UbQcIaR67JjthoCyMEZRwhiXWyxO5QxI6w5NhT4U1WsJvDO60J34fW9hwzwlKij6ZAW9ne4L0s8C6XeBMEkd/LQy1VucBRot6QMlbivaBhoBgjqGiCJNhsqVp/S2SsG6DIONCR0dXhvWbJ+MRRZJkkuEjgDXJjFQW6SSL7GXK8Z2CZg7cVsbWGoKmEpzQ5elpiy8Ryg7dMkLLUEauzeO86CuwlSOlgYLojZWeJ9xM3S1PWfEfKl5ISLQ0MEKR8YOB2QfCxJBjrKPCN4f9MkaSsqoVXJBmP7EpFZ9UQfOoOFwSzBN4MQ8LsGrymlipcJQhmy0GaQjPqCHaXRwuCZwRbqK2Fg9wlClZqYicrIgMdZfxTQ0c7TBIbrChxmuzoKG8XRaSrIhhiyNFJkrC7oIAWMEOQa5aBekPCRknCo4IKPrYkvCDI8aYmY7WFtprgekcJZ3oLIqssCSMtFbQTJKwXYy3BY5oCh2iKPCpJOE+zRdpYgi6O2KmOAgvVCYaU4ySRek1sgyFhJ403QFHiVEmJHwtybO1gs8Hr5+BETQX3War0qZngYGgtVZtoqd6vFSk/UwdZElYqyjrF4HXUeFspIi9IGKf4j92pKGAdCYMVsbcV3kRF0N+R8LUd5PCsIGWoxDtBkCI0nKofdJQxT+LtZflvuc8Q3CjwWkq8KwUpHzkK/NmSsclCL0nseQdj5FRH5CNHSgtLiW80Of5HU9Hhlsga9bnBq3fEVltKfO5IaSTmGjjc4J0otcP7QsJUSQM8pEj5/wCuUuC2DWz8AAAAAElFTkSuQmCC"); -} diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/base16-dark.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/base16-dark.css deleted file mode 100644 index 026a816..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/base16-dark.css +++ /dev/null @@ -1,38 +0,0 @@ -/* - - Name: Base16 Default Dark - Author: Chris Kempson (http://chriskempson.com) - - CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror) - Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) - -*/ - -.cm-s-base16-dark.CodeMirror { background: #151515; color: #e0e0e0; } -.cm-s-base16-dark div.CodeMirror-selected { background: #303030; } -.cm-s-base16-dark .CodeMirror-line::selection, .cm-s-base16-dark .CodeMirror-line > span::selection, .cm-s-base16-dark .CodeMirror-line > span > span::selection { background: rgba(48, 48, 48, .99); } -.cm-s-base16-dark .CodeMirror-line::-moz-selection, .cm-s-base16-dark .CodeMirror-line > span::-moz-selection, .cm-s-base16-dark .CodeMirror-line > span > span::-moz-selection { background: rgba(48, 48, 48, .99); } -.cm-s-base16-dark .CodeMirror-gutters { background: #151515; border-right: 0px; } -.cm-s-base16-dark .CodeMirror-guttermarker { color: #ac4142; } -.cm-s-base16-dark .CodeMirror-guttermarker-subtle { color: #505050; } -.cm-s-base16-dark .CodeMirror-linenumber { color: #505050; } -.cm-s-base16-dark .CodeMirror-cursor { border-left: 1px solid #b0b0b0; } - -.cm-s-base16-dark span.cm-comment { color: #8f5536; } -.cm-s-base16-dark span.cm-atom { color: #aa759f; } -.cm-s-base16-dark span.cm-number { color: #aa759f; } - -.cm-s-base16-dark span.cm-property, .cm-s-base16-dark span.cm-attribute { color: #90a959; } -.cm-s-base16-dark span.cm-keyword { color: #ac4142; } -.cm-s-base16-dark span.cm-string { color: #f4bf75; } - -.cm-s-base16-dark span.cm-variable { color: #90a959; } -.cm-s-base16-dark span.cm-variable-2 { color: #6a9fb5; } -.cm-s-base16-dark span.cm-def { color: #d28445; } -.cm-s-base16-dark span.cm-bracket { color: #e0e0e0; } -.cm-s-base16-dark span.cm-tag { color: #ac4142; } -.cm-s-base16-dark span.cm-link { color: #aa759f; } -.cm-s-base16-dark span.cm-error { background: #ac4142; color: #b0b0b0; } - -.cm-s-base16-dark .CodeMirror-activeline-background { background: #202020; } -.cm-s-base16-dark .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/base16-light.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/base16-light.css deleted file mode 100644 index 474e0ca..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/base16-light.css +++ /dev/null @@ -1,38 +0,0 @@ -/* - - Name: Base16 Default Light - Author: Chris Kempson (http://chriskempson.com) - - CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror) - Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) - -*/ - -.cm-s-base16-light.CodeMirror { background: #f5f5f5; color: #202020; } -.cm-s-base16-light div.CodeMirror-selected { background: #e0e0e0; } -.cm-s-base16-light .CodeMirror-line::selection, .cm-s-base16-light .CodeMirror-line > span::selection, .cm-s-base16-light .CodeMirror-line > span > span::selection { background: #e0e0e0; } -.cm-s-base16-light .CodeMirror-line::-moz-selection, .cm-s-base16-light .CodeMirror-line > span::-moz-selection, .cm-s-base16-light .CodeMirror-line > span > span::-moz-selection { background: #e0e0e0; } -.cm-s-base16-light .CodeMirror-gutters { background: #f5f5f5; border-right: 0px; } -.cm-s-base16-light .CodeMirror-guttermarker { color: #ac4142; } -.cm-s-base16-light .CodeMirror-guttermarker-subtle { color: #b0b0b0; } -.cm-s-base16-light .CodeMirror-linenumber { color: #b0b0b0; } -.cm-s-base16-light .CodeMirror-cursor { border-left: 1px solid #505050; } - -.cm-s-base16-light span.cm-comment { color: #8f5536; } -.cm-s-base16-light span.cm-atom { color: #aa759f; } -.cm-s-base16-light span.cm-number { color: #aa759f; } - -.cm-s-base16-light span.cm-property, .cm-s-base16-light span.cm-attribute { color: #90a959; } -.cm-s-base16-light span.cm-keyword { color: #ac4142; } -.cm-s-base16-light span.cm-string { color: #f4bf75; } - -.cm-s-base16-light span.cm-variable { color: #90a959; } -.cm-s-base16-light span.cm-variable-2 { color: #6a9fb5; } -.cm-s-base16-light span.cm-def { color: #d28445; } -.cm-s-base16-light span.cm-bracket { color: #202020; } -.cm-s-base16-light span.cm-tag { color: #ac4142; } -.cm-s-base16-light span.cm-link { color: #aa759f; } -.cm-s-base16-light span.cm-error { background: #ac4142; color: #505050; } - -.cm-s-base16-light .CodeMirror-activeline-background { background: #DDDCDC; } -.cm-s-base16-light .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/bespin.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/bespin.css deleted file mode 100644 index 60913ba..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/bespin.css +++ /dev/null @@ -1,34 +0,0 @@ -/* - - Name: Bespin - Author: Mozilla / Jan T. Sott - - CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror) - Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) - -*/ - -.cm-s-bespin.CodeMirror {background: #28211c; color: #9d9b97;} -.cm-s-bespin div.CodeMirror-selected {background: #36312e !important;} -.cm-s-bespin .CodeMirror-gutters {background: #28211c; border-right: 0px;} -.cm-s-bespin .CodeMirror-linenumber {color: #666666;} -.cm-s-bespin .CodeMirror-cursor {border-left: 1px solid #797977 !important;} - -.cm-s-bespin span.cm-comment {color: #937121;} -.cm-s-bespin span.cm-atom {color: #9b859d;} -.cm-s-bespin span.cm-number {color: #9b859d;} - -.cm-s-bespin span.cm-property, .cm-s-bespin span.cm-attribute {color: #54be0d;} -.cm-s-bespin span.cm-keyword {color: #cf6a4c;} -.cm-s-bespin span.cm-string {color: #f9ee98;} - -.cm-s-bespin span.cm-variable {color: #54be0d;} -.cm-s-bespin span.cm-variable-2 {color: #5ea6ea;} -.cm-s-bespin span.cm-def {color: #cf7d34;} -.cm-s-bespin span.cm-error {background: #cf6a4c; color: #797977;} -.cm-s-bespin span.cm-bracket {color: #9d9b97;} -.cm-s-bespin span.cm-tag {color: #cf6a4c;} -.cm-s-bespin span.cm-link {color: #9b859d;} - -.cm-s-bespin .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;} -.cm-s-bespin .CodeMirror-activeline-background { background: #404040; } diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/blackboard.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/blackboard.css deleted file mode 100644 index b6eaedb..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/blackboard.css +++ /dev/null @@ -1,32 +0,0 @@ -/* Port of TextMate's Blackboard theme */ - -.cm-s-blackboard.CodeMirror { background: #0C1021; color: #F8F8F8; } -.cm-s-blackboard div.CodeMirror-selected { background: #253B76; } -.cm-s-blackboard .CodeMirror-line::selection, .cm-s-blackboard .CodeMirror-line > span::selection, .cm-s-blackboard .CodeMirror-line > span > span::selection { background: rgba(37, 59, 118, .99); } -.cm-s-blackboard .CodeMirror-line::-moz-selection, .cm-s-blackboard .CodeMirror-line > span::-moz-selection, .cm-s-blackboard .CodeMirror-line > span > span::-moz-selection { background: rgba(37, 59, 118, .99); } -.cm-s-blackboard .CodeMirror-gutters { background: #0C1021; border-right: 0; } -.cm-s-blackboard .CodeMirror-guttermarker { color: #FBDE2D; } -.cm-s-blackboard .CodeMirror-guttermarker-subtle { color: #888; } -.cm-s-blackboard .CodeMirror-linenumber { color: #888; } -.cm-s-blackboard .CodeMirror-cursor { border-left: 1px solid #A7A7A7; } - -.cm-s-blackboard .cm-keyword { color: #FBDE2D; } -.cm-s-blackboard .cm-atom { color: #D8FA3C; } -.cm-s-blackboard .cm-number { color: #D8FA3C; } -.cm-s-blackboard .cm-def { color: #8DA6CE; } -.cm-s-blackboard .cm-variable { color: #FF6400; } -.cm-s-blackboard .cm-operator { color: #FBDE2D; } -.cm-s-blackboard .cm-comment { color: #AEAEAE; } -.cm-s-blackboard .cm-string { color: #61CE3C; } -.cm-s-blackboard .cm-string-2 { color: #61CE3C; } -.cm-s-blackboard .cm-meta { color: #D8FA3C; } -.cm-s-blackboard .cm-builtin { color: #8DA6CE; } -.cm-s-blackboard .cm-tag { color: #8DA6CE; } -.cm-s-blackboard .cm-attribute { color: #8DA6CE; } -.cm-s-blackboard .cm-header { color: #FF6400; } -.cm-s-blackboard .cm-hr { color: #AEAEAE; } -.cm-s-blackboard .cm-link { color: #8DA6CE; } -.cm-s-blackboard .cm-error { background: #9D1E15; color: #F8F8F8; } - -.cm-s-blackboard .CodeMirror-activeline-background { background: #3C3636; } -.cm-s-blackboard .CodeMirror-matchingbracket { outline:1px solid grey;color:white !important; } diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/cobalt.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/cobalt.css deleted file mode 100644 index d88223e..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/cobalt.css +++ /dev/null @@ -1,25 +0,0 @@ -.cm-s-cobalt.CodeMirror { background: #002240; color: white; } -.cm-s-cobalt div.CodeMirror-selected { background: #b36539; } -.cm-s-cobalt .CodeMirror-line::selection, .cm-s-cobalt .CodeMirror-line > span::selection, .cm-s-cobalt .CodeMirror-line > span > span::selection { background: rgba(179, 101, 57, .99); } -.cm-s-cobalt .CodeMirror-line::-moz-selection, .cm-s-cobalt .CodeMirror-line > span::-moz-selection, .cm-s-cobalt .CodeMirror-line > span > span::-moz-selection { background: rgba(179, 101, 57, .99); } -.cm-s-cobalt .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; } -.cm-s-cobalt .CodeMirror-guttermarker { color: #ffee80; } -.cm-s-cobalt .CodeMirror-guttermarker-subtle { color: #d0d0d0; } -.cm-s-cobalt .CodeMirror-linenumber { color: #d0d0d0; } -.cm-s-cobalt .CodeMirror-cursor { border-left: 1px solid white; } - -.cm-s-cobalt span.cm-comment { color: #08f; } -.cm-s-cobalt span.cm-atom { color: #845dc4; } -.cm-s-cobalt span.cm-number, .cm-s-cobalt span.cm-attribute { color: #ff80e1; } -.cm-s-cobalt span.cm-keyword { color: #ffee80; } -.cm-s-cobalt span.cm-string { color: #3ad900; } -.cm-s-cobalt span.cm-meta { color: #ff9d00; } -.cm-s-cobalt span.cm-variable-2, .cm-s-cobalt span.cm-tag { color: #9effff; } -.cm-s-cobalt span.cm-variable-3, .cm-s-cobalt span.cm-def { color: white; } -.cm-s-cobalt span.cm-bracket { color: #d8d8d8; } -.cm-s-cobalt span.cm-builtin, .cm-s-cobalt span.cm-special { color: #ff9e59; } -.cm-s-cobalt span.cm-link { color: #845dc4; } -.cm-s-cobalt span.cm-error { color: #9d1e15; } - -.cm-s-cobalt .CodeMirror-activeline-background { background: #002D57; } -.cm-s-cobalt .CodeMirror-matchingbracket { outline:1px solid grey;color:white !important; } diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/colorforth.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/colorforth.css deleted file mode 100644 index 606899f..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/colorforth.css +++ /dev/null @@ -1,33 +0,0 @@ -.cm-s-colorforth.CodeMirror { background: #000000; color: #f8f8f8; } -.cm-s-colorforth .CodeMirror-gutters { background: #0a001f; border-right: 1px solid #aaa; } -.cm-s-colorforth .CodeMirror-guttermarker { color: #FFBD40; } -.cm-s-colorforth .CodeMirror-guttermarker-subtle { color: #78846f; } -.cm-s-colorforth .CodeMirror-linenumber { color: #bababa; } -.cm-s-colorforth .CodeMirror-cursor { border-left: 1px solid white; } - -.cm-s-colorforth span.cm-comment { color: #ededed; } -.cm-s-colorforth span.cm-def { color: #ff1c1c; font-weight:bold; } -.cm-s-colorforth span.cm-keyword { color: #ffd900; } -.cm-s-colorforth span.cm-builtin { color: #00d95a; } -.cm-s-colorforth span.cm-variable { color: #73ff00; } -.cm-s-colorforth span.cm-string { color: #007bff; } -.cm-s-colorforth span.cm-number { color: #00c4ff; } -.cm-s-colorforth span.cm-atom { color: #606060; } - -.cm-s-colorforth span.cm-variable-2 { color: #EEE; } -.cm-s-colorforth span.cm-variable-3 { color: #DDD; } -.cm-s-colorforth span.cm-property {} -.cm-s-colorforth span.cm-operator {} - -.cm-s-colorforth span.cm-meta { color: yellow; } -.cm-s-colorforth span.cm-qualifier { color: #FFF700; } -.cm-s-colorforth span.cm-bracket { color: #cc7; } -.cm-s-colorforth span.cm-tag { color: #FFBD40; } -.cm-s-colorforth span.cm-attribute { color: #FFF700; } -.cm-s-colorforth span.cm-error { color: #f00; } - -.cm-s-colorforth div.CodeMirror-selected { background: #333d53; } - -.cm-s-colorforth span.cm-compilation { background: rgba(255, 255, 255, 0.12); } - -.cm-s-colorforth .CodeMirror-activeline-background { background: #253540; } diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/dracula.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/dracula.css deleted file mode 100644 index 57f979a..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/dracula.css +++ /dev/null @@ -1,41 +0,0 @@ -/* - - Name: dracula - Author: Michael Kaminsky (http://github.com/mkaminsky11) - - Original dracula color scheme by Zeno Rocha (https://github.com/zenorocha/dracula-theme) - -*/ - - -.cm-s-dracula.CodeMirror, .cm-s-dracula .CodeMirror-gutters { - background-color: #282a36 !important; - color: #f8f8f2 !important; - border: none; -} -.cm-s-dracula .CodeMirror-gutters { color: #282a36; } -.cm-s-dracula .CodeMirror-cursor { border-left: solid thin #f8f8f0; } -.cm-s-dracula .CodeMirror-linenumber { color: #6D8A88; } -.cm-s-dracula.CodeMirror-focused div.CodeMirror-selected { background: rgba(255, 255, 255, 0.10); } -.cm-s-dracula .CodeMirror-line::selection, .cm-s-dracula .CodeMirror-line > span::selection, .cm-s-dracula .CodeMirror-line > span > span::selection { background: rgba(255, 255, 255, 0.10); } -.cm-s-dracula .CodeMirror-line::-moz-selection, .cm-s-dracula .CodeMirror-line > span::-moz-selection, .cm-s-dracula .CodeMirror-line > span > span::-moz-selection { background: rgba(255, 255, 255, 0.10); } -.cm-s-dracula span.cm-comment { color: #6272a4; } -.cm-s-dracula span.cm-string, .cm-s-dracula span.cm-string-2 { color: #f1fa8c; } -.cm-s-dracula span.cm-number { color: #bd93f9; } -.cm-s-dracula span.cm-variable { color: #50fa7b; } -.cm-s-dracula span.cm-variable-2 { color: white; } -.cm-s-dracula span.cm-def { color: #ffb86c; } -.cm-s-dracula span.cm-keyword { color: #ff79c6; } -.cm-s-dracula span.cm-operator { color: #ff79c6; } -.cm-s-dracula span.cm-keyword { color: #ff79c6; } -.cm-s-dracula span.cm-atom { color: #bd93f9; } -.cm-s-dracula span.cm-meta { color: #f8f8f2; } -.cm-s-dracula span.cm-tag { color: #ff79c6; } -.cm-s-dracula span.cm-attribute { color: #50fa7b; } -.cm-s-dracula span.cm-qualifier { color: #50fa7b; } -.cm-s-dracula span.cm-property { color: #66d9ef; } -.cm-s-dracula span.cm-builtin { color: #50fa7b; } -.cm-s-dracula span.cm-variable-3 { color: #50fa7b; } - -.cm-s-dracula .CodeMirror-activeline-background { background: rgba(255,255,255,0.1); } -.cm-s-dracula .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/eclipse.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/eclipse.css deleted file mode 100644 index 1bde460..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/eclipse.css +++ /dev/null @@ -1,23 +0,0 @@ -.cm-s-eclipse span.cm-meta { color: #FF1717; } -.cm-s-eclipse span.cm-keyword { line-height: 1em; font-weight: bold; color: #7F0055; } -.cm-s-eclipse span.cm-atom { color: #219; } -.cm-s-eclipse span.cm-number { color: #164; } -.cm-s-eclipse span.cm-def { color: #00f; } -.cm-s-eclipse span.cm-variable { color: black; } -.cm-s-eclipse span.cm-variable-2 { color: #0000C0; } -.cm-s-eclipse span.cm-variable-3 { color: #0000C0; } -.cm-s-eclipse span.cm-property { color: black; } -.cm-s-eclipse span.cm-operator { color: black; } -.cm-s-eclipse span.cm-comment { color: #3F7F5F; } -.cm-s-eclipse span.cm-string { color: #2A00FF; } -.cm-s-eclipse span.cm-string-2 { color: #f50; } -.cm-s-eclipse span.cm-qualifier { color: #555; } -.cm-s-eclipse span.cm-builtin { color: #30a; } -.cm-s-eclipse span.cm-bracket { color: #cc7; } -.cm-s-eclipse span.cm-tag { color: #170; } -.cm-s-eclipse span.cm-attribute { color: #00c; } -.cm-s-eclipse span.cm-link { color: #219; } -.cm-s-eclipse span.cm-error { color: #f00; } - -.cm-s-eclipse .CodeMirror-activeline-background { background: #e8f2ff; } -.cm-s-eclipse .CodeMirror-matchingbracket { outline:1px solid grey; color:black !important; } diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/elegant.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/elegant.css deleted file mode 100644 index 45b3ea6..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/elegant.css +++ /dev/null @@ -1,13 +0,0 @@ -.cm-s-elegant span.cm-number, .cm-s-elegant span.cm-string, .cm-s-elegant span.cm-atom { color: #762; } -.cm-s-elegant span.cm-comment { color: #262; font-style: italic; line-height: 1em; } -.cm-s-elegant span.cm-meta { color: #555; font-style: italic; line-height: 1em; } -.cm-s-elegant span.cm-variable { color: black; } -.cm-s-elegant span.cm-variable-2 { color: #b11; } -.cm-s-elegant span.cm-qualifier { color: #555; } -.cm-s-elegant span.cm-keyword { color: #730; } -.cm-s-elegant span.cm-builtin { color: #30a; } -.cm-s-elegant span.cm-link { color: #762; } -.cm-s-elegant span.cm-error { background-color: #fdd; } - -.cm-s-elegant .CodeMirror-activeline-background { background: #e8f2ff; } -.cm-s-elegant .CodeMirror-matchingbracket { outline:1px solid grey; color:black !important; } diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/erlang-dark.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/erlang-dark.css deleted file mode 100644 index 65fe481..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/erlang-dark.css +++ /dev/null @@ -1,34 +0,0 @@ -.cm-s-erlang-dark.CodeMirror { background: #002240; color: white; } -.cm-s-erlang-dark div.CodeMirror-selected { background: #b36539; } -.cm-s-erlang-dark .CodeMirror-line::selection, .cm-s-erlang-dark .CodeMirror-line > span::selection, .cm-s-erlang-dark .CodeMirror-line > span > span::selection { background: rgba(179, 101, 57, .99); } -.cm-s-erlang-dark .CodeMirror-line::-moz-selection, .cm-s-erlang-dark .CodeMirror-line > span::-moz-selection, .cm-s-erlang-dark .CodeMirror-line > span > span::-moz-selection { background: rgba(179, 101, 57, .99); } -.cm-s-erlang-dark .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; } -.cm-s-erlang-dark .CodeMirror-guttermarker { color: white; } -.cm-s-erlang-dark .CodeMirror-guttermarker-subtle { color: #d0d0d0; } -.cm-s-erlang-dark .CodeMirror-linenumber { color: #d0d0d0; } -.cm-s-erlang-dark .CodeMirror-cursor { border-left: 1px solid white; } - -.cm-s-erlang-dark span.cm-quote { color: #ccc; } -.cm-s-erlang-dark span.cm-atom { color: #f133f1; } -.cm-s-erlang-dark span.cm-attribute { color: #ff80e1; } -.cm-s-erlang-dark span.cm-bracket { color: #ff9d00; } -.cm-s-erlang-dark span.cm-builtin { color: #eaa; } -.cm-s-erlang-dark span.cm-comment { color: #77f; } -.cm-s-erlang-dark span.cm-def { color: #e7a; } -.cm-s-erlang-dark span.cm-keyword { color: #ffee80; } -.cm-s-erlang-dark span.cm-meta { color: #50fefe; } -.cm-s-erlang-dark span.cm-number { color: #ffd0d0; } -.cm-s-erlang-dark span.cm-operator { color: #d55; } -.cm-s-erlang-dark span.cm-property { color: #ccc; } -.cm-s-erlang-dark span.cm-qualifier { color: #ccc; } -.cm-s-erlang-dark span.cm-special { color: #ffbbbb; } -.cm-s-erlang-dark span.cm-string { color: #3ad900; } -.cm-s-erlang-dark span.cm-string-2 { color: #ccc; } -.cm-s-erlang-dark span.cm-tag { color: #9effff; } -.cm-s-erlang-dark span.cm-variable { color: #50fe50; } -.cm-s-erlang-dark span.cm-variable-2 { color: #e0e; } -.cm-s-erlang-dark span.cm-variable-3 { color: #ccc; } -.cm-s-erlang-dark span.cm-error { color: #9d1e15; } - -.cm-s-erlang-dark .CodeMirror-activeline-background { background: #013461; } -.cm-s-erlang-dark .CodeMirror-matchingbracket { outline:1px solid grey; color:white !important; } diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/hopscotch.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/hopscotch.css deleted file mode 100644 index 7d05431..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/hopscotch.css +++ /dev/null @@ -1,34 +0,0 @@ -/* - - Name: Hopscotch - Author: Jan T. Sott - - CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror) - Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) - -*/ - -.cm-s-hopscotch.CodeMirror {background: #322931; color: #d5d3d5;} -.cm-s-hopscotch div.CodeMirror-selected {background: #433b42 !important;} -.cm-s-hopscotch .CodeMirror-gutters {background: #322931; border-right: 0px;} -.cm-s-hopscotch .CodeMirror-linenumber {color: #797379;} -.cm-s-hopscotch .CodeMirror-cursor {border-left: 1px solid #989498 !important;} - -.cm-s-hopscotch span.cm-comment {color: #b33508;} -.cm-s-hopscotch span.cm-atom {color: #c85e7c;} -.cm-s-hopscotch span.cm-number {color: #c85e7c;} - -.cm-s-hopscotch span.cm-property, .cm-s-hopscotch span.cm-attribute {color: #8fc13e;} -.cm-s-hopscotch span.cm-keyword {color: #dd464c;} -.cm-s-hopscotch span.cm-string {color: #fdcc59;} - -.cm-s-hopscotch span.cm-variable {color: #8fc13e;} -.cm-s-hopscotch span.cm-variable-2 {color: #1290bf;} -.cm-s-hopscotch span.cm-def {color: #fd8b19;} -.cm-s-hopscotch span.cm-error {background: #dd464c; color: #989498;} -.cm-s-hopscotch span.cm-bracket {color: #d5d3d5;} -.cm-s-hopscotch span.cm-tag {color: #dd464c;} -.cm-s-hopscotch span.cm-link {color: #c85e7c;} - -.cm-s-hopscotch .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;} -.cm-s-hopscotch .CodeMirror-activeline-background { background: #302020; } diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/icecoder.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/icecoder.css deleted file mode 100644 index ffebaf2..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/icecoder.css +++ /dev/null @@ -1,43 +0,0 @@ -/* -ICEcoder default theme by Matt Pass, used in code editor available at https://icecoder.net -*/ - -.cm-s-icecoder { color: #666; background: #1d1d1b; } - -.cm-s-icecoder span.cm-keyword { color: #eee; font-weight:bold; } /* off-white 1 */ -.cm-s-icecoder span.cm-atom { color: #e1c76e; } /* yellow */ -.cm-s-icecoder span.cm-number { color: #6cb5d9; } /* blue */ -.cm-s-icecoder span.cm-def { color: #b9ca4a; } /* green */ - -.cm-s-icecoder span.cm-variable { color: #6cb5d9; } /* blue */ -.cm-s-icecoder span.cm-variable-2 { color: #cc1e5c; } /* pink */ -.cm-s-icecoder span.cm-variable-3 { color: #f9602c; } /* orange */ - -.cm-s-icecoder span.cm-property { color: #eee; } /* off-white 1 */ -.cm-s-icecoder span.cm-operator { color: #9179bb; } /* purple */ -.cm-s-icecoder span.cm-comment { color: #97a3aa; } /* grey-blue */ - -.cm-s-icecoder span.cm-string { color: #b9ca4a; } /* green */ -.cm-s-icecoder span.cm-string-2 { color: #6cb5d9; } /* blue */ - -.cm-s-icecoder span.cm-meta { color: #555; } /* grey */ - -.cm-s-icecoder span.cm-qualifier { color: #555; } /* grey */ -.cm-s-icecoder span.cm-builtin { color: #214e7b; } /* bright blue */ -.cm-s-icecoder span.cm-bracket { color: #cc7; } /* grey-yellow */ - -.cm-s-icecoder span.cm-tag { color: #e8e8e8; } /* off-white 2 */ -.cm-s-icecoder span.cm-attribute { color: #099; } /* teal */ - -.cm-s-icecoder span.cm-header { color: #6a0d6a; } /* purple-pink */ -.cm-s-icecoder span.cm-quote { color: #186718; } /* dark green */ -.cm-s-icecoder span.cm-hr { color: #888; } /* mid-grey */ -.cm-s-icecoder span.cm-link { color: #e1c76e; } /* yellow */ -.cm-s-icecoder span.cm-error { color: #d00; } /* red */ - -.cm-s-icecoder .CodeMirror-cursor { border-left: 1px solid white; } -.cm-s-icecoder div.CodeMirror-selected { color: #fff; background: #037; } -.cm-s-icecoder .CodeMirror-gutters { background: #1d1d1b; min-width: 41px; border-right: 0; } -.cm-s-icecoder .CodeMirror-linenumber { color: #555; cursor: default; } -.cm-s-icecoder .CodeMirror-matchingbracket { color: #fff !important; background: #555 !important; } -.cm-s-icecoder .CodeMirror-activeline-background { background: #000; } diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/isotope.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/isotope.css deleted file mode 100644 index d0d6263..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/isotope.css +++ /dev/null @@ -1,34 +0,0 @@ -/* - - Name: Isotope - Author: David Desandro / Jan T. Sott - - CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror) - Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) - -*/ - -.cm-s-isotope.CodeMirror {background: #000000; color: #e0e0e0;} -.cm-s-isotope div.CodeMirror-selected {background: #404040 !important;} -.cm-s-isotope .CodeMirror-gutters {background: #000000; border-right: 0px;} -.cm-s-isotope .CodeMirror-linenumber {color: #808080;} -.cm-s-isotope .CodeMirror-cursor {border-left: 1px solid #c0c0c0 !important;} - -.cm-s-isotope span.cm-comment {color: #3300ff;} -.cm-s-isotope span.cm-atom {color: #cc00ff;} -.cm-s-isotope span.cm-number {color: #cc00ff;} - -.cm-s-isotope span.cm-property, .cm-s-isotope span.cm-attribute {color: #33ff00;} -.cm-s-isotope span.cm-keyword {color: #ff0000;} -.cm-s-isotope span.cm-string {color: #ff0099;} - -.cm-s-isotope span.cm-variable {color: #33ff00;} -.cm-s-isotope span.cm-variable-2 {color: #0066ff;} -.cm-s-isotope span.cm-def {color: #ff9900;} -.cm-s-isotope span.cm-error {background: #ff0000; color: #c0c0c0;} -.cm-s-isotope span.cm-bracket {color: #e0e0e0;} -.cm-s-isotope span.cm-tag {color: #ff0000;} -.cm-s-isotope span.cm-link {color: #cc00ff;} - -.cm-s-isotope .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;} -.cm-s-isotope .CodeMirror-activeline-background { background: #202020; } diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/lesser-dark.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/lesser-dark.css deleted file mode 100644 index 690c183..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/lesser-dark.css +++ /dev/null @@ -1,47 +0,0 @@ -/* -http://lesscss.org/ dark theme -Ported to CodeMirror by Peter Kroon -*/ -.cm-s-lesser-dark { - line-height: 1.3em; -} -.cm-s-lesser-dark.CodeMirror { background: #262626; color: #EBEFE7; text-shadow: 0 -1px 1px #262626; } -.cm-s-lesser-dark div.CodeMirror-selected { background: #45443B; } /* 33322B*/ -.cm-s-lesser-dark .CodeMirror-line::selection, .cm-s-lesser-dark .CodeMirror-line > span::selection, .cm-s-lesser-dark .CodeMirror-line > span > span::selection { background: rgba(69, 68, 59, .99); } -.cm-s-lesser-dark .CodeMirror-line::-moz-selection, .cm-s-lesser-dark .CodeMirror-line > span::-moz-selection, .cm-s-lesser-dark .CodeMirror-line > span > span::-moz-selection { background: rgba(69, 68, 59, .99); } -.cm-s-lesser-dark .CodeMirror-cursor { border-left: 1px solid white; } -.cm-s-lesser-dark pre { padding: 0 8px; }/*editable code holder*/ - -.cm-s-lesser-dark.CodeMirror span.CodeMirror-matchingbracket { color: #7EFC7E; }/*65FC65*/ - -.cm-s-lesser-dark .CodeMirror-gutters { background: #262626; border-right:1px solid #aaa; } -.cm-s-lesser-dark .CodeMirror-guttermarker { color: #599eff; } -.cm-s-lesser-dark .CodeMirror-guttermarker-subtle { color: #777; } -.cm-s-lesser-dark .CodeMirror-linenumber { color: #777; } - -.cm-s-lesser-dark span.cm-header { color: #a0a; } -.cm-s-lesser-dark span.cm-quote { color: #090; } -.cm-s-lesser-dark span.cm-keyword { color: #599eff; } -.cm-s-lesser-dark span.cm-atom { color: #C2B470; } -.cm-s-lesser-dark span.cm-number { color: #B35E4D; } -.cm-s-lesser-dark span.cm-def { color: white; } -.cm-s-lesser-dark span.cm-variable { color:#D9BF8C; } -.cm-s-lesser-dark span.cm-variable-2 { color: #669199; } -.cm-s-lesser-dark span.cm-variable-3 { color: white; } -.cm-s-lesser-dark span.cm-property { color: #92A75C; } -.cm-s-lesser-dark span.cm-operator { color: #92A75C; } -.cm-s-lesser-dark span.cm-comment { color: #666; } -.cm-s-lesser-dark span.cm-string { color: #BCD279; } -.cm-s-lesser-dark span.cm-string-2 { color: #f50; } -.cm-s-lesser-dark span.cm-meta { color: #738C73; } -.cm-s-lesser-dark span.cm-qualifier { color: #555; } -.cm-s-lesser-dark span.cm-builtin { color: #ff9e59; } -.cm-s-lesser-dark span.cm-bracket { color: #EBEFE7; } -.cm-s-lesser-dark span.cm-tag { color: #669199; } -.cm-s-lesser-dark span.cm-attribute { color: #00c; } -.cm-s-lesser-dark span.cm-hr { color: #999; } -.cm-s-lesser-dark span.cm-link { color: #00c; } -.cm-s-lesser-dark span.cm-error { color: #9d1e15; } - -.cm-s-lesser-dark .CodeMirror-activeline-background { background: #3C3A3A; } -.cm-s-lesser-dark .CodeMirror-matchingbracket { outline:1px solid grey; color:white !important; } diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/liquibyte.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/liquibyte.css deleted file mode 100644 index 9db8bde..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/liquibyte.css +++ /dev/null @@ -1,95 +0,0 @@ -.cm-s-liquibyte.CodeMirror { - background-color: #000; - color: #fff; - line-height: 1.2em; - font-size: 1em; -} -.cm-s-liquibyte .CodeMirror-focused .cm-matchhighlight { - text-decoration: underline; - text-decoration-color: #0f0; - text-decoration-style: wavy; -} -.cm-s-liquibyte .cm-trailingspace { - text-decoration: line-through; - text-decoration-color: #f00; - text-decoration-style: dotted; -} -.cm-s-liquibyte .cm-tab { - text-decoration: line-through; - text-decoration-color: #404040; - text-decoration-style: dotted; -} -.cm-s-liquibyte .CodeMirror-gutters { background-color: #262626; border-right: 1px solid #505050; padding-right: 0.8em; } -.cm-s-liquibyte .CodeMirror-gutter-elt div { font-size: 1.2em; } -.cm-s-liquibyte .CodeMirror-guttermarker { } -.cm-s-liquibyte .CodeMirror-guttermarker-subtle { } -.cm-s-liquibyte .CodeMirror-linenumber { color: #606060; padding-left: 0; } -.cm-s-liquibyte .CodeMirror-cursor { border-left: 1px solid #eee; } - -.cm-s-liquibyte span.cm-comment { color: #008000; } -.cm-s-liquibyte span.cm-def { color: #ffaf40; font-weight: bold; } -.cm-s-liquibyte span.cm-keyword { color: #c080ff; font-weight: bold; } -.cm-s-liquibyte span.cm-builtin { color: #ffaf40; font-weight: bold; } -.cm-s-liquibyte span.cm-variable { color: #5967ff; font-weight: bold; } -.cm-s-liquibyte span.cm-string { color: #ff8000; } -.cm-s-liquibyte span.cm-number { color: #0f0; font-weight: bold; } -.cm-s-liquibyte span.cm-atom { color: #bf3030; font-weight: bold; } - -.cm-s-liquibyte span.cm-variable-2 { color: #007f7f; font-weight: bold; } -.cm-s-liquibyte span.cm-variable-3 { color: #c080ff; font-weight: bold; } -.cm-s-liquibyte span.cm-property { color: #999; font-weight: bold; } -.cm-s-liquibyte span.cm-operator { color: #fff; } - -.cm-s-liquibyte span.cm-meta { color: #0f0; } -.cm-s-liquibyte span.cm-qualifier { color: #fff700; font-weight: bold; } -.cm-s-liquibyte span.cm-bracket { color: #cc7; } -.cm-s-liquibyte span.cm-tag { color: #ff0; font-weight: bold; } -.cm-s-liquibyte span.cm-attribute { color: #c080ff; font-weight: bold; } -.cm-s-liquibyte span.cm-error { color: #f00; } - -.cm-s-liquibyte div.CodeMirror-selected { background-color: rgba(255, 0, 0, 0.25); } - -.cm-s-liquibyte span.cm-compilation { background-color: rgba(255, 255, 255, 0.12); } - -.cm-s-liquibyte .CodeMirror-activeline-background { background-color: rgba(0, 255, 0, 0.15); } - -/* Default styles for common addons */ -.cm-s-liquibyte .CodeMirror span.CodeMirror-matchingbracket { color: #0f0; font-weight: bold; } -.cm-s-liquibyte .CodeMirror span.CodeMirror-nonmatchingbracket { color: #f00; font-weight: bold; } -.CodeMirror-matchingtag { background-color: rgba(150, 255, 0, .3); } -/* Scrollbars */ -/* Simple */ -.cm-s-liquibyte div.CodeMirror-simplescroll-horizontal div:hover, div.CodeMirror-simplescroll-vertical div:hover { - background-color: rgba(80, 80, 80, .7); -} -.cm-s-liquibyte div.CodeMirror-simplescroll-horizontal div, div.CodeMirror-simplescroll-vertical div { - background-color: rgba(80, 80, 80, .3); - border: 1px solid #404040; - border-radius: 5px; -} -.cm-s-liquibyte div.CodeMirror-simplescroll-vertical div { - border-top: 1px solid #404040; - border-bottom: 1px solid #404040; -} -.cm-s-liquibyte div.CodeMirror-simplescroll-horizontal div { - border-left: 1px solid #404040; - border-right: 1px solid #404040; -} -.cm-s-liquibyte div.CodeMirror-simplescroll-vertical { - background-color: #262626; -} -.cm-s-liquibyte div.CodeMirror-simplescroll-horizontal { - background-color: #262626; - border-top: 1px solid #404040; -} -/* Overlay */ -.cm-s-liquibyte div.CodeMirror-overlayscroll-horizontal div, div.CodeMirror-overlayscroll-vertical div { - background-color: #404040; - border-radius: 5px; -} -.cm-s-liquibyte div.CodeMirror-overlayscroll-vertical div { - border: 1px solid #404040; -} -.cm-s-liquibyte div.CodeMirror-overlayscroll-horizontal div { - border: 1px solid #404040; -} diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/material.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/material.css deleted file mode 100644 index 91ed6ce..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/material.css +++ /dev/null @@ -1,53 +0,0 @@ -/* - - Name: material - Author: Michael Kaminsky (http://github.com/mkaminsky11) - - Original material color scheme by Mattia Astorino (https://github.com/equinusocio/material-theme) - -*/ - -.cm-s-material { - background-color: #263238; - color: rgba(233, 237, 237, 1); -} -.cm-s-material .CodeMirror-gutters { - background: #263238; - color: rgb(83,127,126); - border: none; -} -.cm-s-material .CodeMirror-guttermarker, .cm-s-material .CodeMirror-guttermarker-subtle, .cm-s-material .CodeMirror-linenumber { color: rgb(83,127,126); } -.cm-s-material .CodeMirror-cursor { border-left: 1px solid #f8f8f0; } -.cm-s-material div.CodeMirror-selected { background: rgba(255, 255, 255, 0.15); } -.cm-s-material.CodeMirror-focused div.CodeMirror-selected { background: rgba(255, 255, 255, 0.10); } -.cm-s-material .CodeMirror-line::selection, .cm-s-material .CodeMirror-line > span::selection, .cm-s-material .CodeMirror-line > span > span::selection { background: rgba(255, 255, 255, 0.10); } -.cm-s-material .CodeMirror-line::-moz-selection, .cm-s-material .CodeMirror-line > span::-moz-selection, .cm-s-material .CodeMirror-line > span > span::-moz-selection { background: rgba(255, 255, 255, 0.10); } - -.cm-s-material .CodeMirror-activeline-background { background: rgba(0, 0, 0, 0); } -.cm-s-material .cm-keyword { color: rgba(199, 146, 234, 1); } -.cm-s-material .cm-operator { color: rgba(233, 237, 237, 1); } -.cm-s-material .cm-variable-2 { color: #80CBC4; } -.cm-s-material .cm-variable-3 { color: #82B1FF; } -.cm-s-material .cm-builtin { color: #DECB6B; } -.cm-s-material .cm-atom { color: #F77669; } -.cm-s-material .cm-number { color: #F77669; } -.cm-s-material .cm-def { color: rgba(233, 237, 237, 1); } -.cm-s-material .cm-string { color: #C3E88D; } -.cm-s-material .cm-string-2 { color: #80CBC4; } -.cm-s-material .cm-comment { color: #546E7A; } -.cm-s-material .cm-variable { color: #82B1FF; } -.cm-s-material .cm-tag { color: #80CBC4; } -.cm-s-material .cm-meta { color: #80CBC4; } -.cm-s-material .cm-attribute { color: #FFCB6B; } -.cm-s-material .cm-property { color: #80CBAE; } -.cm-s-material .cm-qualifier { color: #DECB6B; } -.cm-s-material .cm-variable-3 { color: #DECB6B; } -.cm-s-material .cm-tag { color: rgba(255, 83, 112, 1); } -.cm-s-material .cm-error { - color: rgba(255, 255, 255, 1.0); - background-color: #EC5F67; -} -.cm-s-material .CodeMirror-matchingbracket { - text-decoration: underline; - color: white !important; -} diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/mbo.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/mbo.css deleted file mode 100644 index e164fcf..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/mbo.css +++ /dev/null @@ -1,37 +0,0 @@ -/****************************************************************/ -/* Based on mbonaci's Brackets mbo theme */ -/* https://github.com/mbonaci/global/blob/master/Mbo.tmTheme */ -/* Create your own: http://tmtheme-editor.herokuapp.com */ -/****************************************************************/ - -.cm-s-mbo.CodeMirror { background: #2c2c2c; color: #ffffec; } -.cm-s-mbo div.CodeMirror-selected { background: #716C62; } -.cm-s-mbo .CodeMirror-line::selection, .cm-s-mbo .CodeMirror-line > span::selection, .cm-s-mbo .CodeMirror-line > span > span::selection { background: rgba(113, 108, 98, .99); } -.cm-s-mbo .CodeMirror-line::-moz-selection, .cm-s-mbo .CodeMirror-line > span::-moz-selection, .cm-s-mbo .CodeMirror-line > span > span::-moz-selection { background: rgba(113, 108, 98, .99); } -.cm-s-mbo .CodeMirror-gutters { background: #4e4e4e; border-right: 0px; } -.cm-s-mbo .CodeMirror-guttermarker { color: white; } -.cm-s-mbo .CodeMirror-guttermarker-subtle { color: grey; } -.cm-s-mbo .CodeMirror-linenumber { color: #dadada; } -.cm-s-mbo .CodeMirror-cursor { border-left: 1px solid #ffffec; } - -.cm-s-mbo span.cm-comment { color: #95958a; } -.cm-s-mbo span.cm-atom { color: #00a8c6; } -.cm-s-mbo span.cm-number { color: #00a8c6; } - -.cm-s-mbo span.cm-property, .cm-s-mbo span.cm-attribute { color: #9ddfe9; } -.cm-s-mbo span.cm-keyword { color: #ffb928; } -.cm-s-mbo span.cm-string { color: #ffcf6c; } -.cm-s-mbo span.cm-string.cm-property { color: #ffffec; } - -.cm-s-mbo span.cm-variable { color: #ffffec; } -.cm-s-mbo span.cm-variable-2 { color: #00a8c6; } -.cm-s-mbo span.cm-def { color: #ffffec; } -.cm-s-mbo span.cm-bracket { color: #fffffc; font-weight: bold; } -.cm-s-mbo span.cm-tag { color: #9ddfe9; } -.cm-s-mbo span.cm-link { color: #f54b07; } -.cm-s-mbo span.cm-error { border-bottom: #636363; color: #ffffec; } -.cm-s-mbo span.cm-qualifier { color: #ffffec; } - -.cm-s-mbo .CodeMirror-activeline-background { background: #494b41; } -.cm-s-mbo .CodeMirror-matchingbracket { color: #ffb928 !important; } -.cm-s-mbo .CodeMirror-matchingtag { background: rgba(255, 255, 255, .37); } diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/mdn-like.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/mdn-like.css deleted file mode 100644 index f325d45..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/mdn-like.css +++ /dev/null @@ -1,46 +0,0 @@ -/* - MDN-LIKE Theme - Mozilla - Ported to CodeMirror by Peter Kroon <plakroon@gmail.com> - Report bugs/issues here: https://github.com/codemirror/CodeMirror/issues - GitHub: @peterkroon - - The mdn-like theme is inspired on the displayed code examples at: https://developer.mozilla.org/en-US/docs/Web/CSS/animation - -*/ -.cm-s-mdn-like.CodeMirror { color: #999; background-color: #fff; } -.cm-s-mdn-like div.CodeMirror-selected { background: #cfc; } -.cm-s-mdn-like .CodeMirror-line::selection, .cm-s-mdn-like .CodeMirror-line > span::selection, .cm-s-mdn-like .CodeMirror-line > span > span::selection { background: #cfc; } -.cm-s-mdn-like .CodeMirror-line::-moz-selection, .cm-s-mdn-like .CodeMirror-line > span::-moz-selection, .cm-s-mdn-like .CodeMirror-line > span > span::-moz-selection { background: #cfc; } - -.cm-s-mdn-like .CodeMirror-gutters { background: #f8f8f8; border-left: 6px solid rgba(0,83,159,0.65); color: #333; } -.cm-s-mdn-like .CodeMirror-linenumber { color: #aaa; padding-left: 8px; } -.cm-s-mdn-like .CodeMirror-cursor { border-left: 2px solid #222; } - -.cm-s-mdn-like .cm-keyword { color: #6262FF; } -.cm-s-mdn-like .cm-atom { color: #F90; } -.cm-s-mdn-like .cm-number { color: #ca7841; } -.cm-s-mdn-like .cm-def { color: #8DA6CE; } -.cm-s-mdn-like span.cm-variable-2, .cm-s-mdn-like span.cm-tag { color: #690; } -.cm-s-mdn-like span.cm-variable-3, .cm-s-mdn-like span.cm-def { color: #07a; } - -.cm-s-mdn-like .cm-variable { color: #07a; } -.cm-s-mdn-like .cm-property { color: #905; } -.cm-s-mdn-like .cm-qualifier { color: #690; } - -.cm-s-mdn-like .cm-operator { color: #cda869; } -.cm-s-mdn-like .cm-comment { color:#777; font-weight:normal; } -.cm-s-mdn-like .cm-string { color:#07a; font-style:italic; } -.cm-s-mdn-like .cm-string-2 { color:#bd6b18; } /*?*/ -.cm-s-mdn-like .cm-meta { color: #000; } /*?*/ -.cm-s-mdn-like .cm-builtin { color: #9B7536; } /*?*/ -.cm-s-mdn-like .cm-tag { color: #997643; } -.cm-s-mdn-like .cm-attribute { color: #d6bb6d; } /*?*/ -.cm-s-mdn-like .cm-header { color: #FF6400; } -.cm-s-mdn-like .cm-hr { color: #AEAEAE; } -.cm-s-mdn-like .cm-link { color:#ad9361; font-style:italic; text-decoration:none; } -.cm-s-mdn-like .cm-error { border-bottom: 1px solid red; } - -div.cm-s-mdn-like .CodeMirror-activeline-background { background: #efefff; } -div.cm-s-mdn-like span.CodeMirror-matchingbracket { outline:1px solid grey; color: inherit; } - -.cm-s-mdn-like.CodeMirror { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFcAAAAyCAYAAAAp8UeFAAAHvklEQVR42s2b63bcNgyEQZCSHCdt2vd/0tWF7I+Q6XgMXiTtuvU5Pl57ZQKkKHzEAOtF5KeIJBGJ8uvL599FRFREZhFx8DeXv8trn68RuGaC8TRfo3SNp9dlDDHedyLyTUTeRWStXKPZrjtpZxaRw5hPqozRs1N8/enzIiQRWcCgy4MUA0f+XWliDhyL8Lfyvx7ei/Ae3iQFHyw7U/59pQVIMEEPEz0G7XiwdRjzSfC3UTtz9vchIntxvry5iMgfIhJoEflOz2CQr3F5h/HfeFe+GTdLaKcu9L8LTeQb/R/7GgbsfKedyNdoHsN31uRPWrfZ5wsj/NzzRQHuToIdU3ahwnsKPxXCjJITuOsi7XLc7SG/v5GdALs7wf8JjTFiB5+QvTEfRyGOfX3Lrx8wxyQi3sNq46O7QahQiCsRFgqddjBouVEHOKDgXAQHD9gJCr5sMKkEdjwsarG/ww3BMHBU7OBjXnzdyY7SfCxf5/z6ATccrwlKuwC/jhznnPF4CgVzhhVf4xp2EixcBActO75iZ8/fM9zAs2OMzKdslgXWJ9XG8PQoOAMA5fGcsvORgv0doBXyHrCwfLJAOwo71QLNkb8n2Pl6EWiR7OCibtkPaz4Kc/0NNAze2gju3zOwekALDaCFPI5vjPFmgGY5AZqyGEvH1x7QfIb8YtxMnA/b+QQ0aQDAwc6JMFg8CbQZ4qoYEEHbRwNojuK3EHwd7VALSgq+MNDKzfT58T8qdpADrgW0GmgcAS1lhzztJmkAzcPNOQbsWEALBDSlMKUG0Eq4CLAQWvEVQ9WU57gZJwZtgPO3r9oBTQ9WO8TjqXINx8R0EYpiZEUWOF3FxkbJkgU9B2f41YBrIj5ZfsQa0M5kTgiAAqM3ShXLgu8XMqcrQBvJ0CL5pnTsfMB13oB8athpAq2XOQmcGmoACCLydx7nToa23ATaSIY2ichfOdPTGxlasXMLaL0MLZAOwAKIM+y8CmicobGdCcbbK9DzN+yYGVoNNI5iUKTMyYOjPse4A8SM1MmcXgU0toOq1yO/v8FOxlASyc7TgeYaAMBJHcY1CcCwGI/TK4AmDbDyKYBBtFUkRwto8gygiQEaByFgJ00BH2M8JWwQS1nafDXQCidWyOI8AcjDCSjCLk8ngObuAm3JAHAdubAmOaK06V8MNEsKPJOhobSprwQa6gD7DclRQdqcwL4zxqgBrQcabUiBLclRDKAlWp+etPkBaNMA0AKlrHwTdEByZAA4GM+SNluSY6wAzcMNewxmgig5Ks0nkrSpBvSaQHMdKTBAnLojOdYyGpQ254602ZILPdTD1hdlggdIm74jbTp8vDwF5ZYUeLWGJpWsh6XNyXgcYwVoJQTEhhTYkxzZjiU5npU2TaB979TQehlaAVq4kaGpiPwwwLkYUuBbQwocyQTv1tA0+1UFWoJF3iv1oq+qoSk8EQdJmwHkziIF7oOZk14EGitibAdjLYYK78H5vZOhtWpoI0ATGHs0Q8OMb4Ey+2bU2UYztCtA0wFAs7TplGLRVQCcqaFdGSPCeTI1QNIC52iWNzof6Uib7xjEp07mNNoUYmVosVItHrHzRlLgBn9LFyRHaQCtVUMbtTNhoXWiTOO9k/V8BdAc1Oq0ArSQs6/5SU0hckNy9NnXqQY0PGYo5dWJ7nINaN6o958FWin27aBaWRka1r5myvLOAm0j30eBJqCxHLReVclxhxOEN2JfDWjxBtAC7MIH1fVaGdoOp4qJYDgKtKPSFNID2gSnGldrCqkFZ+5UeQXQBIRrSwocbdZYQT/2LwRahBPBXoHrB8nxaGROST62DKUbQOMMzZIC9abkuELfQzQALWTnDNAm8KHWFOJgJ5+SHIvTPcmx1xQyZRhNL5Qci689aXMEaN/uNIWkEwDAvFpOZmgsBaaGnbs1NPa1Jm32gBZAIh1pCtG7TSH4aE0y1uVY4uqoFPisGlpP2rSA5qTecWn5agK6BzSpgAyD+wFaqhnYoSZ1Vwr8CmlTQbrcO3ZaX0NAEyMbYaAlyquFoLKK3SPby9CeVUPThrSJmkCAE0CrKUQadi4DrdSlWhmah0YL9z9vClH59YGbHx1J8VZTyAjQepJjmXwAKTDQI3omc3p1U4gDUf6RfcdYfrUp5ClAi2J3Ba6UOXGo+K+bQrjjssitG2SJzshaLwMtXgRagUNpYYoVkMSBLM+9GGiJZMvduG6DRZ4qc04DMPtQQxOjEtACmhO7K1AbNbQDEggZyJwscFpAGwENhoBeUwh3bWolhe8BTYVKxQEWrSUn/uhcM5KhvUu/+eQu0Lzhi+VrK0PrZZNDQKs9cpYUuFYgMVpD4/NxenJTiMCNqdUEUf1qZWjppLT5qSkkUZbCwkbZMSuVnu80hfSkzRbQeqCZSAh6huR4VtoM2gHAlLf72smuWgE+VV7XpE25Ab2WFDgyhnSuKbs4GuGzCjR+tIoUuMFg3kgcWKLTwRqanJQ2W00hAsenfaApRC42hbCvK1SlE0HtE9BGgneJO+ELamitD1YjjOYnNYVcraGhtKkW0EqVVeDx733I2NH581k1NNxNLG0i0IJ8/NjVaOZ0tYZ2Vtr0Xv7tPV3hkWp9EFkgS/J0vosngTaSoaG06WHi+xObQkaAdlbanP8B2+2l0f90LmUAAAAASUVORK5CYII=); } diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/midnight.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/midnight.css deleted file mode 100644 index e41f105..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/midnight.css +++ /dev/null @@ -1,45 +0,0 @@ -/* Based on the theme at http://bonsaiden.github.com/JavaScript-Garden */ - -/*<!--match-->*/ -.cm-s-midnight span.CodeMirror-matchhighlight { background: #494949; } -.cm-s-midnight.CodeMirror-focused span.CodeMirror-matchhighlight { background: #314D67 !important; } - -/*<!--activeline-->*/ -.cm-s-midnight .CodeMirror-activeline-background { background: #253540; } - -.cm-s-midnight.CodeMirror { - background: #0F192A; - color: #D1EDFF; -} - -.cm-s-midnight.CodeMirror { border-top: 1px solid black; border-bottom: 1px solid black; } - -.cm-s-midnight div.CodeMirror-selected { background: #314D67; } -.cm-s-midnight .CodeMirror-line::selection, .cm-s-midnight .CodeMirror-line > span::selection, .cm-s-midnight .CodeMirror-line > span > span::selection { background: rgba(49, 77, 103, .99); } -.cm-s-midnight .CodeMirror-line::-moz-selection, .cm-s-midnight .CodeMirror-line > span::-moz-selection, .cm-s-midnight .CodeMirror-line > span > span::-moz-selection { background: rgba(49, 77, 103, .99); } -.cm-s-midnight .CodeMirror-gutters { background: #0F192A; border-right: 1px solid; } -.cm-s-midnight .CodeMirror-guttermarker { color: white; } -.cm-s-midnight .CodeMirror-guttermarker-subtle { color: #d0d0d0; } -.cm-s-midnight .CodeMirror-linenumber { color: #D0D0D0; } -.cm-s-midnight .CodeMirror-cursor { border-left: 1px solid #F8F8F0; } - -.cm-s-midnight span.cm-comment { color: #428BDD; } -.cm-s-midnight span.cm-atom { color: #AE81FF; } -.cm-s-midnight span.cm-number { color: #D1EDFF; } - -.cm-s-midnight span.cm-property, .cm-s-midnight span.cm-attribute { color: #A6E22E; } -.cm-s-midnight span.cm-keyword { color: #E83737; } -.cm-s-midnight span.cm-string { color: #1DC116; } - -.cm-s-midnight span.cm-variable { color: #FFAA3E; } -.cm-s-midnight span.cm-variable-2 { color: #FFAA3E; } -.cm-s-midnight span.cm-def { color: #4DD; } -.cm-s-midnight span.cm-bracket { color: #D1EDFF; } -.cm-s-midnight span.cm-tag { color: #449; } -.cm-s-midnight span.cm-link { color: #AE81FF; } -.cm-s-midnight span.cm-error { background: #F92672; color: #F8F8F0; } - -.cm-s-midnight .CodeMirror-matchingbracket { - text-decoration: underline; - color: white !important; -} diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/monokai.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/monokai.css deleted file mode 100644 index 7c8a4c5..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/monokai.css +++ /dev/null @@ -1,36 +0,0 @@ -/* Based on Sublime Text's Monokai theme */ - -.cm-s-monokai.CodeMirror { background: #272822; color: #f8f8f2; } -.cm-s-monokai div.CodeMirror-selected { background: #49483E; } -.cm-s-monokai .CodeMirror-line::selection, .cm-s-monokai .CodeMirror-line > span::selection, .cm-s-monokai .CodeMirror-line > span > span::selection { background: rgba(73, 72, 62, .99); } -.cm-s-monokai .CodeMirror-line::-moz-selection, .cm-s-monokai .CodeMirror-line > span::-moz-selection, .cm-s-monokai .CodeMirror-line > span > span::-moz-selection { background: rgba(73, 72, 62, .99); } -.cm-s-monokai .CodeMirror-gutters { background: #272822; border-right: 0px; } -.cm-s-monokai .CodeMirror-guttermarker { color: white; } -.cm-s-monokai .CodeMirror-guttermarker-subtle { color: #d0d0d0; } -.cm-s-monokai .CodeMirror-linenumber { color: #d0d0d0; } -.cm-s-monokai .CodeMirror-cursor { border-left: 1px solid #f8f8f0; } - -.cm-s-monokai span.cm-comment { color: #75715e; } -.cm-s-monokai span.cm-atom { color: #ae81ff; } -.cm-s-monokai span.cm-number { color: #ae81ff; } - -.cm-s-monokai span.cm-property, .cm-s-monokai span.cm-attribute { color: #a6e22e; } -.cm-s-monokai span.cm-keyword { color: #f92672; } -.cm-s-monokai span.cm-builtin { color: #66d9ef; } -.cm-s-monokai span.cm-string { color: #e6db74; } - -.cm-s-monokai span.cm-variable { color: #f8f8f2; } -.cm-s-monokai span.cm-variable-2 { color: #9effff; } -.cm-s-monokai span.cm-variable-3 { color: #66d9ef; } -.cm-s-monokai span.cm-def { color: #fd971f; } -.cm-s-monokai span.cm-bracket { color: #f8f8f2; } -.cm-s-monokai span.cm-tag { color: #f92672; } -.cm-s-monokai span.cm-header { color: #ae81ff; } -.cm-s-monokai span.cm-link { color: #ae81ff; } -.cm-s-monokai span.cm-error { background: #f92672; color: #f8f8f0; } - -.cm-s-monokai .CodeMirror-activeline-background { background: #373831; } -.cm-s-monokai .CodeMirror-matchingbracket { - text-decoration: underline; - color: white !important; -} diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/neat.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/neat.css deleted file mode 100644 index 4267b1a..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/neat.css +++ /dev/null @@ -1,12 +0,0 @@ -.cm-s-neat span.cm-comment { color: #a86; } -.cm-s-neat span.cm-keyword { line-height: 1em; font-weight: bold; color: blue; } -.cm-s-neat span.cm-string { color: #a22; } -.cm-s-neat span.cm-builtin { line-height: 1em; font-weight: bold; color: #077; } -.cm-s-neat span.cm-special { line-height: 1em; font-weight: bold; color: #0aa; } -.cm-s-neat span.cm-variable { color: black; } -.cm-s-neat span.cm-number, .cm-s-neat span.cm-atom { color: #3a3; } -.cm-s-neat span.cm-meta { color: #555; } -.cm-s-neat span.cm-link { color: #3a3; } - -.cm-s-neat .CodeMirror-activeline-background { background: #e8f2ff; } -.cm-s-neat .CodeMirror-matchingbracket { outline:1px solid grey; color:black !important; } diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/neo.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/neo.css deleted file mode 100644 index b28d5c6..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/neo.css +++ /dev/null @@ -1,43 +0,0 @@ -/* neo theme for codemirror */ - -/* Color scheme */ - -.cm-s-neo.CodeMirror { - background-color:#ffffff; - color:#2e383c; - line-height:1.4375; -} -.cm-s-neo .cm-comment { color:#75787b; } -.cm-s-neo .cm-keyword, .cm-s-neo .cm-property { color:#1d75b3; } -.cm-s-neo .cm-atom,.cm-s-neo .cm-number { color:#75438a; } -.cm-s-neo .cm-node,.cm-s-neo .cm-tag { color:#9c3328; } -.cm-s-neo .cm-string { color:#b35e14; } -.cm-s-neo .cm-variable,.cm-s-neo .cm-qualifier { color:#047d65; } - - -/* Editor styling */ - -.cm-s-neo pre { - padding:0; -} - -.cm-s-neo .CodeMirror-gutters { - border:none; - border-right:10px solid transparent; - background-color:transparent; -} - -.cm-s-neo .CodeMirror-linenumber { - padding:0; - color:#e0e2e5; -} - -.cm-s-neo .CodeMirror-guttermarker { color: #1d75b3; } -.cm-s-neo .CodeMirror-guttermarker-subtle { color: #e0e2e5; } - -.cm-s-neo .CodeMirror-cursor { - width: auto; - border: 0; - background: rgba(155,157,162,0.37); - z-index: 1; -} diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/night.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/night.css deleted file mode 100644 index fd4e561..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/night.css +++ /dev/null @@ -1,27 +0,0 @@ -/* Loosely based on the Midnight Textmate theme */ - -.cm-s-night.CodeMirror { background: #0a001f; color: #f8f8f8; } -.cm-s-night div.CodeMirror-selected { background: #447; } -.cm-s-night .CodeMirror-line::selection, .cm-s-night .CodeMirror-line > span::selection, .cm-s-night .CodeMirror-line > span > span::selection { background: rgba(68, 68, 119, .99); } -.cm-s-night .CodeMirror-line::-moz-selection, .cm-s-night .CodeMirror-line > span::-moz-selection, .cm-s-night .CodeMirror-line > span > span::-moz-selection { background: rgba(68, 68, 119, .99); } -.cm-s-night .CodeMirror-gutters { background: #0a001f; border-right: 1px solid #aaa; } -.cm-s-night .CodeMirror-guttermarker { color: white; } -.cm-s-night .CodeMirror-guttermarker-subtle { color: #bbb; } -.cm-s-night .CodeMirror-linenumber { color: #f8f8f8; } -.cm-s-night .CodeMirror-cursor { border-left: 1px solid white; } - -.cm-s-night span.cm-comment { color: #8900d1; } -.cm-s-night span.cm-atom { color: #845dc4; } -.cm-s-night span.cm-number, .cm-s-night span.cm-attribute { color: #ffd500; } -.cm-s-night span.cm-keyword { color: #599eff; } -.cm-s-night span.cm-string { color: #37f14a; } -.cm-s-night span.cm-meta { color: #7678e2; } -.cm-s-night span.cm-variable-2, .cm-s-night span.cm-tag { color: #99b2ff; } -.cm-s-night span.cm-variable-3, .cm-s-night span.cm-def { color: white; } -.cm-s-night span.cm-bracket { color: #8da6ce; } -.cm-s-night span.cm-builtin, .cm-s-night span.cm-special { color: #ff9e59; } -.cm-s-night span.cm-link { color: #845dc4; } -.cm-s-night span.cm-error { color: #9d1e15; } - -.cm-s-night .CodeMirror-activeline-background { background: #1C005A; } -.cm-s-night .CodeMirror-matchingbracket { outline:1px solid grey; color:white !important; } diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/panda-syntax.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/panda-syntax.css deleted file mode 100644 index 8c0c754..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/panda-syntax.css +++ /dev/null @@ -1,85 +0,0 @@ -/* - Name: Panda Syntax - Author: Siamak Mokhtari (http://github.com/siamak/) - CodeMirror template by Siamak Mokhtari (https://github.com/siamak/atom-panda-syntax) -*/ -.cm-s-panda-syntax { - background: #292A2B; - color: #E6E6E6; - line-height: 1.5; - font-family: 'Operator Mono', 'Source Sans Pro', Menlo, Monaco, Consolas, Courier New, monospace; -} -.cm-s-panda-syntax .CodeMirror-cursor { border-color: #ff2c6d; } -.cm-s-panda-syntax .CodeMirror-activeline-background { - background: rgba(99, 123, 156, 0.1); -} -.cm-s-panda-syntax .CodeMirror-selected { - background: #FFF; -} -.cm-s-panda-syntax .cm-comment { - font-style: italic; - color: #676B79; -} -.cm-s-panda-syntax .cm-operator { - color: #f3f3f3; -} -.cm-s-panda-syntax .cm-string { - color: #19F9D8; -} -.cm-s-panda-syntax .cm-string-2 { - color: #FFB86C; -} - -.cm-s-panda-syntax .cm-tag { - color: #ff2c6d; -} -.cm-s-panda-syntax .cm-meta { - color: #b084eb; -} - -.cm-s-panda-syntax .cm-number { - color: #FFB86C; -} -.cm-s-panda-syntax .cm-atom { - color: #ff2c6d; -} -.cm-s-panda-syntax .cm-keyword { - color: #FF75B5; -} -.cm-s-panda-syntax .cm-variable { - color: #ffb86c; -} -.cm-s-panda-syntax .cm-variable-2 { - color: #ff9ac1; -} -.cm-s-panda-syntax .cm-variable-3 { - color: #ff9ac1; -} - -.cm-s-panda-syntax .cm-def { - color: #e6e6e6; -} -.cm-s-panda-syntax .cm-property { - color: #f3f3f3; -} -.cm-s-panda-syntax .cm-unit { - color: #ffb86c; -} - -.cm-s-panda-syntax .cm-attribute { - color: #ffb86c; -} - -.cm-s-panda-syntax .CodeMirror-matchingbracket { - border-bottom: 1px dotted #19F9D8; - padding-bottom: 2px; - color: #e6e6e6; -} -.CodeMirror-gutters { - background: #292a2b; - border-right-color: rgba(255, 255, 255, 0.1); -} -.CodeMirror-linenumber { - color: #e6e6e6; - opacity: 0.6; -} diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/paraiso-dark.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/paraiso-dark.css deleted file mode 100644 index aa9d207..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/paraiso-dark.css +++ /dev/null @@ -1,38 +0,0 @@ -/* - - Name: Paraíso (Dark) - Author: Jan T. Sott - - Color scheme by Jan T. Sott (https://github.com/idleberg/Paraiso-CodeMirror) - Inspired by the art of Rubens LP (http://www.rubenslp.com.br) - -*/ - -.cm-s-paraiso-dark.CodeMirror { background: #2f1e2e; color: #b9b6b0; } -.cm-s-paraiso-dark div.CodeMirror-selected { background: #41323f; } -.cm-s-paraiso-dark .CodeMirror-line::selection, .cm-s-paraiso-dark .CodeMirror-line > span::selection, .cm-s-paraiso-dark .CodeMirror-line > span > span::selection { background: rgba(65, 50, 63, .99); } -.cm-s-paraiso-dark .CodeMirror-line::-moz-selection, .cm-s-paraiso-dark .CodeMirror-line > span::-moz-selection, .cm-s-paraiso-dark .CodeMirror-line > span > span::-moz-selection { background: rgba(65, 50, 63, .99); } -.cm-s-paraiso-dark .CodeMirror-gutters { background: #2f1e2e; border-right: 0px; } -.cm-s-paraiso-dark .CodeMirror-guttermarker { color: #ef6155; } -.cm-s-paraiso-dark .CodeMirror-guttermarker-subtle { color: #776e71; } -.cm-s-paraiso-dark .CodeMirror-linenumber { color: #776e71; } -.cm-s-paraiso-dark .CodeMirror-cursor { border-left: 1px solid #8d8687; } - -.cm-s-paraiso-dark span.cm-comment { color: #e96ba8; } -.cm-s-paraiso-dark span.cm-atom { color: #815ba4; } -.cm-s-paraiso-dark span.cm-number { color: #815ba4; } - -.cm-s-paraiso-dark span.cm-property, .cm-s-paraiso-dark span.cm-attribute { color: #48b685; } -.cm-s-paraiso-dark span.cm-keyword { color: #ef6155; } -.cm-s-paraiso-dark span.cm-string { color: #fec418; } - -.cm-s-paraiso-dark span.cm-variable { color: #48b685; } -.cm-s-paraiso-dark span.cm-variable-2 { color: #06b6ef; } -.cm-s-paraiso-dark span.cm-def { color: #f99b15; } -.cm-s-paraiso-dark span.cm-bracket { color: #b9b6b0; } -.cm-s-paraiso-dark span.cm-tag { color: #ef6155; } -.cm-s-paraiso-dark span.cm-link { color: #815ba4; } -.cm-s-paraiso-dark span.cm-error { background: #ef6155; color: #8d8687; } - -.cm-s-paraiso-dark .CodeMirror-activeline-background { background: #4D344A; } -.cm-s-paraiso-dark .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/paraiso-light.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/paraiso-light.css deleted file mode 100644 index ae0c755..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/paraiso-light.css +++ /dev/null @@ -1,38 +0,0 @@ -/* - - Name: Paraíso (Light) - Author: Jan T. Sott - - Color scheme by Jan T. Sott (https://github.com/idleberg/Paraiso-CodeMirror) - Inspired by the art of Rubens LP (http://www.rubenslp.com.br) - -*/ - -.cm-s-paraiso-light.CodeMirror { background: #e7e9db; color: #41323f; } -.cm-s-paraiso-light div.CodeMirror-selected { background: #b9b6b0; } -.cm-s-paraiso-light .CodeMirror-line::selection, .cm-s-paraiso-light .CodeMirror-line > span::selection, .cm-s-paraiso-light .CodeMirror-line > span > span::selection { background: #b9b6b0; } -.cm-s-paraiso-light .CodeMirror-line::-moz-selection, .cm-s-paraiso-light .CodeMirror-line > span::-moz-selection, .cm-s-paraiso-light .CodeMirror-line > span > span::-moz-selection { background: #b9b6b0; } -.cm-s-paraiso-light .CodeMirror-gutters { background: #e7e9db; border-right: 0px; } -.cm-s-paraiso-light .CodeMirror-guttermarker { color: black; } -.cm-s-paraiso-light .CodeMirror-guttermarker-subtle { color: #8d8687; } -.cm-s-paraiso-light .CodeMirror-linenumber { color: #8d8687; } -.cm-s-paraiso-light .CodeMirror-cursor { border-left: 1px solid #776e71; } - -.cm-s-paraiso-light span.cm-comment { color: #e96ba8; } -.cm-s-paraiso-light span.cm-atom { color: #815ba4; } -.cm-s-paraiso-light span.cm-number { color: #815ba4; } - -.cm-s-paraiso-light span.cm-property, .cm-s-paraiso-light span.cm-attribute { color: #48b685; } -.cm-s-paraiso-light span.cm-keyword { color: #ef6155; } -.cm-s-paraiso-light span.cm-string { color: #fec418; } - -.cm-s-paraiso-light span.cm-variable { color: #48b685; } -.cm-s-paraiso-light span.cm-variable-2 { color: #06b6ef; } -.cm-s-paraiso-light span.cm-def { color: #f99b15; } -.cm-s-paraiso-light span.cm-bracket { color: #41323f; } -.cm-s-paraiso-light span.cm-tag { color: #ef6155; } -.cm-s-paraiso-light span.cm-link { color: #815ba4; } -.cm-s-paraiso-light span.cm-error { background: #ef6155; color: #776e71; } - -.cm-s-paraiso-light .CodeMirror-activeline-background { background: #CFD1C4; } -.cm-s-paraiso-light .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/pastel-on-dark.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/pastel-on-dark.css deleted file mode 100644 index 2603d36..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/pastel-on-dark.css +++ /dev/null @@ -1,52 +0,0 @@ -/** - * Pastel On Dark theme ported from ACE editor - * @license MIT - * @copyright AtomicPages LLC 2014 - * @author Dennis Thompson, AtomicPages LLC - * @version 1.1 - * @source https://github.com/atomicpages/codemirror-pastel-on-dark-theme - */ - -.cm-s-pastel-on-dark.CodeMirror { - background: #2c2827; - color: #8F938F; - line-height: 1.5; -} -.cm-s-pastel-on-dark div.CodeMirror-selected { background: rgba(221,240,255,0.2); } -.cm-s-pastel-on-dark .CodeMirror-line::selection, .cm-s-pastel-on-dark .CodeMirror-line > span::selection, .cm-s-pastel-on-dark .CodeMirror-line > span > span::selection { background: rgba(221,240,255,0.2); } -.cm-s-pastel-on-dark .CodeMirror-line::-moz-selection, .cm-s-pastel-on-dark .CodeMirror-line > span::-moz-selection, .cm-s-pastel-on-dark .CodeMirror-line > span > span::-moz-selection { background: rgba(221,240,255,0.2); } - -.cm-s-pastel-on-dark .CodeMirror-gutters { - background: #34302f; - border-right: 0px; - padding: 0 3px; -} -.cm-s-pastel-on-dark .CodeMirror-guttermarker { color: white; } -.cm-s-pastel-on-dark .CodeMirror-guttermarker-subtle { color: #8F938F; } -.cm-s-pastel-on-dark .CodeMirror-linenumber { color: #8F938F; } -.cm-s-pastel-on-dark .CodeMirror-cursor { border-left: 1px solid #A7A7A7; } -.cm-s-pastel-on-dark span.cm-comment { color: #A6C6FF; } -.cm-s-pastel-on-dark span.cm-atom { color: #DE8E30; } -.cm-s-pastel-on-dark span.cm-number { color: #CCCCCC; } -.cm-s-pastel-on-dark span.cm-property { color: #8F938F; } -.cm-s-pastel-on-dark span.cm-attribute { color: #a6e22e; } -.cm-s-pastel-on-dark span.cm-keyword { color: #AEB2F8; } -.cm-s-pastel-on-dark span.cm-string { color: #66A968; } -.cm-s-pastel-on-dark span.cm-variable { color: #AEB2F8; } -.cm-s-pastel-on-dark span.cm-variable-2 { color: #BEBF55; } -.cm-s-pastel-on-dark span.cm-variable-3 { color: #DE8E30; } -.cm-s-pastel-on-dark span.cm-def { color: #757aD8; } -.cm-s-pastel-on-dark span.cm-bracket { color: #f8f8f2; } -.cm-s-pastel-on-dark span.cm-tag { color: #C1C144; } -.cm-s-pastel-on-dark span.cm-link { color: #ae81ff; } -.cm-s-pastel-on-dark span.cm-qualifier,.cm-s-pastel-on-dark span.cm-builtin { color: #C1C144; } -.cm-s-pastel-on-dark span.cm-error { - background: #757aD8; - color: #f8f8f0; -} -.cm-s-pastel-on-dark .CodeMirror-activeline-background { background: rgba(255, 255, 255, 0.031); } -.cm-s-pastel-on-dark .CodeMirror-matchingbracket { - border: 1px solid rgba(255,255,255,0.25); - color: #8F938F !important; - margin: -1px -1px 0 -1px; -} diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/railscasts.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/railscasts.css deleted file mode 100644 index aeff044..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/railscasts.css +++ /dev/null @@ -1,34 +0,0 @@ -/* - - Name: Railscasts - Author: Ryan Bates (http://railscasts.com) - - CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror) - Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) - -*/ - -.cm-s-railscasts.CodeMirror {background: #2b2b2b; color: #f4f1ed;} -.cm-s-railscasts div.CodeMirror-selected {background: #272935 !important;} -.cm-s-railscasts .CodeMirror-gutters {background: #2b2b2b; border-right: 0px;} -.cm-s-railscasts .CodeMirror-linenumber {color: #5a647e;} -.cm-s-railscasts .CodeMirror-cursor {border-left: 1px solid #d4cfc9 !important;} - -.cm-s-railscasts span.cm-comment {color: #bc9458;} -.cm-s-railscasts span.cm-atom {color: #b6b3eb;} -.cm-s-railscasts span.cm-number {color: #b6b3eb;} - -.cm-s-railscasts span.cm-property, .cm-s-railscasts span.cm-attribute {color: #a5c261;} -.cm-s-railscasts span.cm-keyword {color: #da4939;} -.cm-s-railscasts span.cm-string {color: #ffc66d;} - -.cm-s-railscasts span.cm-variable {color: #a5c261;} -.cm-s-railscasts span.cm-variable-2 {color: #6d9cbe;} -.cm-s-railscasts span.cm-def {color: #cc7833;} -.cm-s-railscasts span.cm-error {background: #da4939; color: #d4cfc9;} -.cm-s-railscasts span.cm-bracket {color: #f4f1ed;} -.cm-s-railscasts span.cm-tag {color: #da4939;} -.cm-s-railscasts span.cm-link {color: #b6b3eb;} - -.cm-s-railscasts .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;} -.cm-s-railscasts .CodeMirror-activeline-background { background: #303040; } diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/rubyblue.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/rubyblue.css deleted file mode 100644 index 76d33e7..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/rubyblue.css +++ /dev/null @@ -1,25 +0,0 @@ -.cm-s-rubyblue.CodeMirror { background: #112435; color: white; } -.cm-s-rubyblue div.CodeMirror-selected { background: #38566F; } -.cm-s-rubyblue .CodeMirror-line::selection, .cm-s-rubyblue .CodeMirror-line > span::selection, .cm-s-rubyblue .CodeMirror-line > span > span::selection { background: rgba(56, 86, 111, 0.99); } -.cm-s-rubyblue .CodeMirror-line::-moz-selection, .cm-s-rubyblue .CodeMirror-line > span::-moz-selection, .cm-s-rubyblue .CodeMirror-line > span > span::-moz-selection { background: rgba(56, 86, 111, 0.99); } -.cm-s-rubyblue .CodeMirror-gutters { background: #1F4661; border-right: 7px solid #3E7087; } -.cm-s-rubyblue .CodeMirror-guttermarker { color: white; } -.cm-s-rubyblue .CodeMirror-guttermarker-subtle { color: #3E7087; } -.cm-s-rubyblue .CodeMirror-linenumber { color: white; } -.cm-s-rubyblue .CodeMirror-cursor { border-left: 1px solid white; } - -.cm-s-rubyblue span.cm-comment { color: #999; font-style:italic; line-height: 1em; } -.cm-s-rubyblue span.cm-atom { color: #F4C20B; } -.cm-s-rubyblue span.cm-number, .cm-s-rubyblue span.cm-attribute { color: #82C6E0; } -.cm-s-rubyblue span.cm-keyword { color: #F0F; } -.cm-s-rubyblue span.cm-string { color: #F08047; } -.cm-s-rubyblue span.cm-meta { color: #F0F; } -.cm-s-rubyblue span.cm-variable-2, .cm-s-rubyblue span.cm-tag { color: #7BD827; } -.cm-s-rubyblue span.cm-variable-3, .cm-s-rubyblue span.cm-def { color: white; } -.cm-s-rubyblue span.cm-bracket { color: #F0F; } -.cm-s-rubyblue span.cm-link { color: #F4C20B; } -.cm-s-rubyblue span.CodeMirror-matchingbracket { color:#F0F !important; } -.cm-s-rubyblue span.cm-builtin, .cm-s-rubyblue span.cm-special { color: #FF9D00; } -.cm-s-rubyblue span.cm-error { color: #AF2018; } - -.cm-s-rubyblue .CodeMirror-activeline-background { background: #173047; } diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/seti.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/seti.css deleted file mode 100644 index 6632d3f..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/seti.css +++ /dev/null @@ -1,44 +0,0 @@ -/* - - Name: seti - Author: Michael Kaminsky (http://github.com/mkaminsky11) - - Original seti color scheme by Jesse Weed (https://github.com/jesseweed/seti-syntax) - -*/ - - -.cm-s-seti.CodeMirror { - background-color: #151718 !important; - color: #CFD2D1 !important; - border: none; -} -.cm-s-seti .CodeMirror-gutters { - color: #404b53; - background-color: #0E1112; - border: none; -} -.cm-s-seti .CodeMirror-cursor { border-left: solid thin #f8f8f0; } -.cm-s-seti .CodeMirror-linenumber { color: #6D8A88; } -.cm-s-seti.CodeMirror-focused div.CodeMirror-selected { background: rgba(255, 255, 255, 0.10); } -.cm-s-seti .CodeMirror-line::selection, .cm-s-seti .CodeMirror-line > span::selection, .cm-s-seti .CodeMirror-line > span > span::selection { background: rgba(255, 255, 255, 0.10); } -.cm-s-seti .CodeMirror-line::-moz-selection, .cm-s-seti .CodeMirror-line > span::-moz-selection, .cm-s-seti .CodeMirror-line > span > span::-moz-selection { background: rgba(255, 255, 255, 0.10); } -.cm-s-seti span.cm-comment { color: #41535b; } -.cm-s-seti span.cm-string, .cm-s-seti span.cm-string-2 { color: #55b5db; } -.cm-s-seti span.cm-number { color: #cd3f45; } -.cm-s-seti span.cm-variable { color: #55b5db; } -.cm-s-seti span.cm-variable-2 { color: #a074c4; } -.cm-s-seti span.cm-def { color: #55b5db; } -.cm-s-seti span.cm-keyword { color: #ff79c6; } -.cm-s-seti span.cm-operator { color: #9fca56; } -.cm-s-seti span.cm-keyword { color: #e6cd69; } -.cm-s-seti span.cm-atom { color: #cd3f45; } -.cm-s-seti span.cm-meta { color: #55b5db; } -.cm-s-seti span.cm-tag { color: #55b5db; } -.cm-s-seti span.cm-attribute { color: #9fca56; } -.cm-s-seti span.cm-qualifier { color: #9fca56; } -.cm-s-seti span.cm-property { color: #a074c4; } -.cm-s-seti span.cm-variable-3 { color: #9fca56; } -.cm-s-seti span.cm-builtin { color: #9fca56; } -.cm-s-seti .CodeMirror-activeline-background { background: #101213; } -.cm-s-seti .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/solarized.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/solarized.css deleted file mode 100644 index 1f39c7e..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/solarized.css +++ /dev/null @@ -1,169 +0,0 @@ -/* -Solarized theme for code-mirror -http://ethanschoonover.com/solarized -*/ - -/* -Solarized color palette -http://ethanschoonover.com/solarized/img/solarized-palette.png -*/ - -.solarized.base03 { color: #002b36; } -.solarized.base02 { color: #073642; } -.solarized.base01 { color: #586e75; } -.solarized.base00 { color: #657b83; } -.solarized.base0 { color: #839496; } -.solarized.base1 { color: #93a1a1; } -.solarized.base2 { color: #eee8d5; } -.solarized.base3 { color: #fdf6e3; } -.solarized.solar-yellow { color: #b58900; } -.solarized.solar-orange { color: #cb4b16; } -.solarized.solar-red { color: #dc322f; } -.solarized.solar-magenta { color: #d33682; } -.solarized.solar-violet { color: #6c71c4; } -.solarized.solar-blue { color: #268bd2; } -.solarized.solar-cyan { color: #2aa198; } -.solarized.solar-green { color: #859900; } - -/* Color scheme for code-mirror */ - -.cm-s-solarized { - line-height: 1.45em; - color-profile: sRGB; - rendering-intent: auto; -} -.cm-s-solarized.cm-s-dark { - color: #839496; - background-color: #002b36; - text-shadow: #002b36 0 1px; -} -.cm-s-solarized.cm-s-light { - background-color: #fdf6e3; - color: #657b83; - text-shadow: #eee8d5 0 1px; -} - -.cm-s-solarized .CodeMirror-widget { - text-shadow: none; -} - -.cm-s-solarized .cm-header { color: #586e75; } -.cm-s-solarized .cm-quote { color: #93a1a1; } - -.cm-s-solarized .cm-keyword { color: #cb4b16; } -.cm-s-solarized .cm-atom { color: #d33682; } -.cm-s-solarized .cm-number { color: #d33682; } -.cm-s-solarized .cm-def { color: #2aa198; } - -.cm-s-solarized .cm-variable { color: #839496; } -.cm-s-solarized .cm-variable-2 { color: #b58900; } -.cm-s-solarized .cm-variable-3 { color: #6c71c4; } - -.cm-s-solarized .cm-property { color: #2aa198; } -.cm-s-solarized .cm-operator { color: #6c71c4; } - -.cm-s-solarized .cm-comment { color: #586e75; font-style:italic; } - -.cm-s-solarized .cm-string { color: #859900; } -.cm-s-solarized .cm-string-2 { color: #b58900; } - -.cm-s-solarized .cm-meta { color: #859900; } -.cm-s-solarized .cm-qualifier { color: #b58900; } -.cm-s-solarized .cm-builtin { color: #d33682; } -.cm-s-solarized .cm-bracket { color: #cb4b16; } -.cm-s-solarized .CodeMirror-matchingbracket { color: #859900; } -.cm-s-solarized .CodeMirror-nonmatchingbracket { color: #dc322f; } -.cm-s-solarized .cm-tag { color: #93a1a1; } -.cm-s-solarized .cm-attribute { color: #2aa198; } -.cm-s-solarized .cm-hr { - color: transparent; - border-top: 1px solid #586e75; - display: block; -} -.cm-s-solarized .cm-link { color: #93a1a1; cursor: pointer; } -.cm-s-solarized .cm-special { color: #6c71c4; } -.cm-s-solarized .cm-em { - color: #999; - text-decoration: underline; - text-decoration-style: dotted; -} -.cm-s-solarized .cm-strong { color: #eee; } -.cm-s-solarized .cm-error, -.cm-s-solarized .cm-invalidchar { - color: #586e75; - border-bottom: 1px dotted #dc322f; -} - -.cm-s-solarized.cm-s-dark div.CodeMirror-selected { background: #073642; } -.cm-s-solarized.cm-s-dark.CodeMirror ::selection { background: rgba(7, 54, 66, 0.99); } -.cm-s-solarized.cm-s-dark .CodeMirror-line::-moz-selection, .cm-s-dark .CodeMirror-line > span::-moz-selection, .cm-s-dark .CodeMirror-line > span > span::-moz-selection { background: rgba(7, 54, 66, 0.99); } - -.cm-s-solarized.cm-s-light div.CodeMirror-selected { background: #eee8d5; } -.cm-s-solarized.cm-s-light .CodeMirror-line::selection, .cm-s-light .CodeMirror-line > span::selection, .cm-s-light .CodeMirror-line > span > span::selection { background: #eee8d5; } -.cm-s-solarized.cm-s-light .CodeMirror-line::-moz-selection, .cm-s-ligh .CodeMirror-line > span::-moz-selection, .cm-s-ligh .CodeMirror-line > span > span::-moz-selection { background: #eee8d5; } - -/* Editor styling */ - - - -/* Little shadow on the view-port of the buffer view */ -.cm-s-solarized.CodeMirror { - -moz-box-shadow: inset 7px 0 12px -6px #000; - -webkit-box-shadow: inset 7px 0 12px -6px #000; - box-shadow: inset 7px 0 12px -6px #000; -} - -/* Remove gutter border */ -.cm-s-solarized .CodeMirror-gutters { - border-right: 0; -} - -/* Gutter colors and line number styling based of color scheme (dark / light) */ - -/* Dark */ -.cm-s-solarized.cm-s-dark .CodeMirror-gutters { - background-color: #073642; -} - -.cm-s-solarized.cm-s-dark .CodeMirror-linenumber { - color: #586e75; - text-shadow: #021014 0 -1px; -} - -/* Light */ -.cm-s-solarized.cm-s-light .CodeMirror-gutters { - background-color: #eee8d5; -} - -.cm-s-solarized.cm-s-light .CodeMirror-linenumber { - color: #839496; -} - -/* Common */ -.cm-s-solarized .CodeMirror-linenumber { - padding: 0 5px; -} -.cm-s-solarized .CodeMirror-guttermarker-subtle { color: #586e75; } -.cm-s-solarized.cm-s-dark .CodeMirror-guttermarker { color: #ddd; } -.cm-s-solarized.cm-s-light .CodeMirror-guttermarker { color: #cb4b16; } - -.cm-s-solarized .CodeMirror-gutter .CodeMirror-gutter-text { - color: #586e75; -} - -/* Cursor */ -.cm-s-solarized .CodeMirror-cursor { border-left: 1px solid #819090; } - -/* Fat cursor */ -.cm-s-solarized.cm-s-light.cm-fat-cursor .CodeMirror-cursor { background: #77ee77; } -.cm-s-solarized.cm-s-light .cm-animate-fat-cursor { background-color: #77ee77; } -.cm-s-solarized.cm-s-dark.cm-fat-cursor .CodeMirror-cursor { background: #586e75; } -.cm-s-solarized.cm-s-dark .cm-animate-fat-cursor { background-color: #586e75; } - -/* Active line */ -.cm-s-solarized.cm-s-dark .CodeMirror-activeline-background { - background: rgba(255, 255, 255, 0.06); -} -.cm-s-solarized.cm-s-light .CodeMirror-activeline-background { - background: rgba(0, 0, 0, 0.06); -} diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/the-matrix.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/the-matrix.css deleted file mode 100644 index 3912a8d..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/the-matrix.css +++ /dev/null @@ -1,30 +0,0 @@ -.cm-s-the-matrix.CodeMirror { background: #000000; color: #00FF00; } -.cm-s-the-matrix div.CodeMirror-selected { background: #2D2D2D; } -.cm-s-the-matrix .CodeMirror-line::selection, .cm-s-the-matrix .CodeMirror-line > span::selection, .cm-s-the-matrix .CodeMirror-line > span > span::selection { background: rgba(45, 45, 45, 0.99); } -.cm-s-the-matrix .CodeMirror-line::-moz-selection, .cm-s-the-matrix .CodeMirror-line > span::-moz-selection, .cm-s-the-matrix .CodeMirror-line > span > span::-moz-selection { background: rgba(45, 45, 45, 0.99); } -.cm-s-the-matrix .CodeMirror-gutters { background: #060; border-right: 2px solid #00FF00; } -.cm-s-the-matrix .CodeMirror-guttermarker { color: #0f0; } -.cm-s-the-matrix .CodeMirror-guttermarker-subtle { color: white; } -.cm-s-the-matrix .CodeMirror-linenumber { color: #FFFFFF; } -.cm-s-the-matrix .CodeMirror-cursor { border-left: 1px solid #00FF00; } - -.cm-s-the-matrix span.cm-keyword { color: #008803; font-weight: bold; } -.cm-s-the-matrix span.cm-atom { color: #3FF; } -.cm-s-the-matrix span.cm-number { color: #FFB94F; } -.cm-s-the-matrix span.cm-def { color: #99C; } -.cm-s-the-matrix span.cm-variable { color: #F6C; } -.cm-s-the-matrix span.cm-variable-2 { color: #C6F; } -.cm-s-the-matrix span.cm-variable-3 { color: #96F; } -.cm-s-the-matrix span.cm-property { color: #62FFA0; } -.cm-s-the-matrix span.cm-operator { color: #999; } -.cm-s-the-matrix span.cm-comment { color: #CCCCCC; } -.cm-s-the-matrix span.cm-string { color: #39C; } -.cm-s-the-matrix span.cm-meta { color: #C9F; } -.cm-s-the-matrix span.cm-qualifier { color: #FFF700; } -.cm-s-the-matrix span.cm-builtin { color: #30a; } -.cm-s-the-matrix span.cm-bracket { color: #cc7; } -.cm-s-the-matrix span.cm-tag { color: #FFBD40; } -.cm-s-the-matrix span.cm-attribute { color: #FFF700; } -.cm-s-the-matrix span.cm-error { color: #FF0000; } - -.cm-s-the-matrix .CodeMirror-activeline-background { background: #040; } diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/tomorrow-night-bright.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/tomorrow-night-bright.css deleted file mode 100644 index b6dd4a9..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/tomorrow-night-bright.css +++ /dev/null @@ -1,35 +0,0 @@ -/* - - Name: Tomorrow Night - Bright - Author: Chris Kempson - - Port done by Gerard Braad <me@gbraad.nl> - -*/ - -.cm-s-tomorrow-night-bright.CodeMirror { background: #000000; color: #eaeaea; } -.cm-s-tomorrow-night-bright div.CodeMirror-selected { background: #424242; } -.cm-s-tomorrow-night-bright .CodeMirror-gutters { background: #000000; border-right: 0px; } -.cm-s-tomorrow-night-bright .CodeMirror-guttermarker { color: #e78c45; } -.cm-s-tomorrow-night-bright .CodeMirror-guttermarker-subtle { color: #777; } -.cm-s-tomorrow-night-bright .CodeMirror-linenumber { color: #424242; } -.cm-s-tomorrow-night-bright .CodeMirror-cursor { border-left: 1px solid #6A6A6A; } - -.cm-s-tomorrow-night-bright span.cm-comment { color: #d27b53; } -.cm-s-tomorrow-night-bright span.cm-atom { color: #a16a94; } -.cm-s-tomorrow-night-bright span.cm-number { color: #a16a94; } - -.cm-s-tomorrow-night-bright span.cm-property, .cm-s-tomorrow-night-bright span.cm-attribute { color: #99cc99; } -.cm-s-tomorrow-night-bright span.cm-keyword { color: #d54e53; } -.cm-s-tomorrow-night-bright span.cm-string { color: #e7c547; } - -.cm-s-tomorrow-night-bright span.cm-variable { color: #b9ca4a; } -.cm-s-tomorrow-night-bright span.cm-variable-2 { color: #7aa6da; } -.cm-s-tomorrow-night-bright span.cm-def { color: #e78c45; } -.cm-s-tomorrow-night-bright span.cm-bracket { color: #eaeaea; } -.cm-s-tomorrow-night-bright span.cm-tag { color: #d54e53; } -.cm-s-tomorrow-night-bright span.cm-link { color: #a16a94; } -.cm-s-tomorrow-night-bright span.cm-error { background: #d54e53; color: #6A6A6A; } - -.cm-s-tomorrow-night-bright .CodeMirror-activeline-background { background: #2a2a2a; } -.cm-s-tomorrow-night-bright .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/tomorrow-night-eighties.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/tomorrow-night-eighties.css deleted file mode 100644 index 2a9debc..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/tomorrow-night-eighties.css +++ /dev/null @@ -1,38 +0,0 @@ -/* - - Name: Tomorrow Night - Eighties - Author: Chris Kempson - - CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror) - Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) - -*/ - -.cm-s-tomorrow-night-eighties.CodeMirror { background: #000000; color: #CCCCCC; } -.cm-s-tomorrow-night-eighties div.CodeMirror-selected { background: #2D2D2D; } -.cm-s-tomorrow-night-eighties .CodeMirror-line::selection, .cm-s-tomorrow-night-eighties .CodeMirror-line > span::selection, .cm-s-tomorrow-night-eighties .CodeMirror-line > span > span::selection { background: rgba(45, 45, 45, 0.99); } -.cm-s-tomorrow-night-eighties .CodeMirror-line::-moz-selection, .cm-s-tomorrow-night-eighties .CodeMirror-line > span::-moz-selection, .cm-s-tomorrow-night-eighties .CodeMirror-line > span > span::-moz-selection { background: rgba(45, 45, 45, 0.99); } -.cm-s-tomorrow-night-eighties .CodeMirror-gutters { background: #000000; border-right: 0px; } -.cm-s-tomorrow-night-eighties .CodeMirror-guttermarker { color: #f2777a; } -.cm-s-tomorrow-night-eighties .CodeMirror-guttermarker-subtle { color: #777; } -.cm-s-tomorrow-night-eighties .CodeMirror-linenumber { color: #515151; } -.cm-s-tomorrow-night-eighties .CodeMirror-cursor { border-left: 1px solid #6A6A6A; } - -.cm-s-tomorrow-night-eighties span.cm-comment { color: #d27b53; } -.cm-s-tomorrow-night-eighties span.cm-atom { color: #a16a94; } -.cm-s-tomorrow-night-eighties span.cm-number { color: #a16a94; } - -.cm-s-tomorrow-night-eighties span.cm-property, .cm-s-tomorrow-night-eighties span.cm-attribute { color: #99cc99; } -.cm-s-tomorrow-night-eighties span.cm-keyword { color: #f2777a; } -.cm-s-tomorrow-night-eighties span.cm-string { color: #ffcc66; } - -.cm-s-tomorrow-night-eighties span.cm-variable { color: #99cc99; } -.cm-s-tomorrow-night-eighties span.cm-variable-2 { color: #6699cc; } -.cm-s-tomorrow-night-eighties span.cm-def { color: #f99157; } -.cm-s-tomorrow-night-eighties span.cm-bracket { color: #CCCCCC; } -.cm-s-tomorrow-night-eighties span.cm-tag { color: #f2777a; } -.cm-s-tomorrow-night-eighties span.cm-link { color: #a16a94; } -.cm-s-tomorrow-night-eighties span.cm-error { background: #f2777a; color: #6A6A6A; } - -.cm-s-tomorrow-night-eighties .CodeMirror-activeline-background { background: #343600; } -.cm-s-tomorrow-night-eighties .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/ttcn.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/ttcn.css deleted file mode 100644 index b3d4656..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/ttcn.css +++ /dev/null @@ -1,64 +0,0 @@ -.cm-s-ttcn .cm-quote { color: #090; } -.cm-s-ttcn .cm-negative { color: #d44; } -.cm-s-ttcn .cm-positive { color: #292; } -.cm-s-ttcn .cm-header, .cm-strong { font-weight: bold; } -.cm-s-ttcn .cm-em { font-style: italic; } -.cm-s-ttcn .cm-link { text-decoration: underline; } -.cm-s-ttcn .cm-strikethrough { text-decoration: line-through; } -.cm-s-ttcn .cm-header { color: #00f; font-weight: bold; } - -.cm-s-ttcn .cm-atom { color: #219; } -.cm-s-ttcn .cm-attribute { color: #00c; } -.cm-s-ttcn .cm-bracket { color: #997; } -.cm-s-ttcn .cm-comment { color: #333333; } -.cm-s-ttcn .cm-def { color: #00f; } -.cm-s-ttcn .cm-em { font-style: italic; } -.cm-s-ttcn .cm-error { color: #f00; } -.cm-s-ttcn .cm-hr { color: #999; } -.cm-s-ttcn .cm-invalidchar { color: #f00; } -.cm-s-ttcn .cm-keyword { font-weight:bold; } -.cm-s-ttcn .cm-link { color: #00c; text-decoration: underline; } -.cm-s-ttcn .cm-meta { color: #555; } -.cm-s-ttcn .cm-negative { color: #d44; } -.cm-s-ttcn .cm-positive { color: #292; } -.cm-s-ttcn .cm-qualifier { color: #555; } -.cm-s-ttcn .cm-strikethrough { text-decoration: line-through; } -.cm-s-ttcn .cm-string { color: #006400; } -.cm-s-ttcn .cm-string-2 { color: #f50; } -.cm-s-ttcn .cm-strong { font-weight: bold; } -.cm-s-ttcn .cm-tag { color: #170; } -.cm-s-ttcn .cm-variable { color: #8B2252; } -.cm-s-ttcn .cm-variable-2 { color: #05a; } -.cm-s-ttcn .cm-variable-3 { color: #085; } - -.cm-s-ttcn .cm-invalidchar { color: #f00; } - -/* ASN */ -.cm-s-ttcn .cm-accessTypes, -.cm-s-ttcn .cm-compareTypes { color: #27408B; } -.cm-s-ttcn .cm-cmipVerbs { color: #8B2252; } -.cm-s-ttcn .cm-modifier { color:#D2691E; } -.cm-s-ttcn .cm-status { color:#8B4545; } -.cm-s-ttcn .cm-storage { color:#A020F0; } -.cm-s-ttcn .cm-tags { color:#006400; } - -/* CFG */ -.cm-s-ttcn .cm-externalCommands { color: #8B4545; font-weight:bold; } -.cm-s-ttcn .cm-fileNCtrlMaskOptions, -.cm-s-ttcn .cm-sectionTitle { color: #2E8B57; font-weight:bold; } - -/* TTCN */ -.cm-s-ttcn .cm-booleanConsts, -.cm-s-ttcn .cm-otherConsts, -.cm-s-ttcn .cm-verdictConsts { color: #006400; } -.cm-s-ttcn .cm-configOps, -.cm-s-ttcn .cm-functionOps, -.cm-s-ttcn .cm-portOps, -.cm-s-ttcn .cm-sutOps, -.cm-s-ttcn .cm-timerOps, -.cm-s-ttcn .cm-verdictOps { color: #0000FF; } -.cm-s-ttcn .cm-preprocessor, -.cm-s-ttcn .cm-templateMatch, -.cm-s-ttcn .cm-ttcn3Macros { color: #27408B; } -.cm-s-ttcn .cm-types { color: #A52A2A; font-weight:bold; } -.cm-s-ttcn .cm-visibilityModifiers { font-weight:bold; } diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/twilight.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/twilight.css deleted file mode 100644 index d342b89..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/twilight.css +++ /dev/null @@ -1,32 +0,0 @@ -.cm-s-twilight.CodeMirror { background: #141414; color: #f7f7f7; } /**/ -.cm-s-twilight div.CodeMirror-selected { background: #323232; } /**/ -.cm-s-twilight .CodeMirror-line::selection, .cm-s-twilight .CodeMirror-line > span::selection, .cm-s-twilight .CodeMirror-line > span > span::selection { background: rgba(50, 50, 50, 0.99); } -.cm-s-twilight .CodeMirror-line::-moz-selection, .cm-s-twilight .CodeMirror-line > span::-moz-selection, .cm-s-twilight .CodeMirror-line > span > span::-moz-selection { background: rgba(50, 50, 50, 0.99); } - -.cm-s-twilight .CodeMirror-gutters { background: #222; border-right: 1px solid #aaa; } -.cm-s-twilight .CodeMirror-guttermarker { color: white; } -.cm-s-twilight .CodeMirror-guttermarker-subtle { color: #aaa; } -.cm-s-twilight .CodeMirror-linenumber { color: #aaa; } -.cm-s-twilight .CodeMirror-cursor { border-left: 1px solid white; } - -.cm-s-twilight .cm-keyword { color: #f9ee98; } /**/ -.cm-s-twilight .cm-atom { color: #FC0; } -.cm-s-twilight .cm-number { color: #ca7841; } /**/ -.cm-s-twilight .cm-def { color: #8DA6CE; } -.cm-s-twilight span.cm-variable-2, .cm-s-twilight span.cm-tag { color: #607392; } /**/ -.cm-s-twilight span.cm-variable-3, .cm-s-twilight span.cm-def { color: #607392; } /**/ -.cm-s-twilight .cm-operator { color: #cda869; } /**/ -.cm-s-twilight .cm-comment { color:#777; font-style:italic; font-weight:normal; } /**/ -.cm-s-twilight .cm-string { color:#8f9d6a; font-style:italic; } /**/ -.cm-s-twilight .cm-string-2 { color:#bd6b18; } /*?*/ -.cm-s-twilight .cm-meta { background-color:#141414; color:#f7f7f7; } /*?*/ -.cm-s-twilight .cm-builtin { color: #cda869; } /*?*/ -.cm-s-twilight .cm-tag { color: #997643; } /**/ -.cm-s-twilight .cm-attribute { color: #d6bb6d; } /*?*/ -.cm-s-twilight .cm-header { color: #FF6400; } -.cm-s-twilight .cm-hr { color: #AEAEAE; } -.cm-s-twilight .cm-link { color:#ad9361; font-style:italic; text-decoration:none; } /**/ -.cm-s-twilight .cm-error { border-bottom: 1px solid red; } - -.cm-s-twilight .CodeMirror-activeline-background { background: #27282E; } -.cm-s-twilight .CodeMirror-matchingbracket { outline:1px solid grey; color:white !important; } diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/vibrant-ink.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/vibrant-ink.css deleted file mode 100644 index ac4ec6d..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/vibrant-ink.css +++ /dev/null @@ -1,34 +0,0 @@ -/* Taken from the popular Visual Studio Vibrant Ink Schema */ - -.cm-s-vibrant-ink.CodeMirror { background: black; color: white; } -.cm-s-vibrant-ink div.CodeMirror-selected { background: #35493c; } -.cm-s-vibrant-ink .CodeMirror-line::selection, .cm-s-vibrant-ink .CodeMirror-line > span::selection, .cm-s-vibrant-ink .CodeMirror-line > span > span::selection { background: rgba(53, 73, 60, 0.99); } -.cm-s-vibrant-ink .CodeMirror-line::-moz-selection, .cm-s-vibrant-ink .CodeMirror-line > span::-moz-selection, .cm-s-vibrant-ink .CodeMirror-line > span > span::-moz-selection { background: rgba(53, 73, 60, 0.99); } - -.cm-s-vibrant-ink .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; } -.cm-s-vibrant-ink .CodeMirror-guttermarker { color: white; } -.cm-s-vibrant-ink .CodeMirror-guttermarker-subtle { color: #d0d0d0; } -.cm-s-vibrant-ink .CodeMirror-linenumber { color: #d0d0d0; } -.cm-s-vibrant-ink .CodeMirror-cursor { border-left: 1px solid white; } - -.cm-s-vibrant-ink .cm-keyword { color: #CC7832; } -.cm-s-vibrant-ink .cm-atom { color: #FC0; } -.cm-s-vibrant-ink .cm-number { color: #FFEE98; } -.cm-s-vibrant-ink .cm-def { color: #8DA6CE; } -.cm-s-vibrant-ink span.cm-variable-2, .cm-s-vibrant span.cm-tag { color: #FFC66D; } -.cm-s-vibrant-ink span.cm-variable-3, .cm-s-vibrant span.cm-def { color: #FFC66D; } -.cm-s-vibrant-ink .cm-operator { color: #888; } -.cm-s-vibrant-ink .cm-comment { color: gray; font-weight: bold; } -.cm-s-vibrant-ink .cm-string { color: #A5C25C; } -.cm-s-vibrant-ink .cm-string-2 { color: red; } -.cm-s-vibrant-ink .cm-meta { color: #D8FA3C; } -.cm-s-vibrant-ink .cm-builtin { color: #8DA6CE; } -.cm-s-vibrant-ink .cm-tag { color: #8DA6CE; } -.cm-s-vibrant-ink .cm-attribute { color: #8DA6CE; } -.cm-s-vibrant-ink .cm-header { color: #FF6400; } -.cm-s-vibrant-ink .cm-hr { color: #AEAEAE; } -.cm-s-vibrant-ink .cm-link { color: blue; } -.cm-s-vibrant-ink .cm-error { border-bottom: 1px solid red; } - -.cm-s-vibrant-ink .CodeMirror-activeline-background { background: #27282E; } -.cm-s-vibrant-ink .CodeMirror-matchingbracket { outline:1px solid grey; color:white !important; } diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/xq-dark.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/xq-dark.css deleted file mode 100644 index e3bd960..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/xq-dark.css +++ /dev/null @@ -1,53 +0,0 @@ -/* -Copyright (C) 2011 by MarkLogic Corporation -Author: Mike Brevoort <mike@brevoort.com> - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -*/ -.cm-s-xq-dark.CodeMirror { background: #0a001f; color: #f8f8f8; } -.cm-s-xq-dark div.CodeMirror-selected { background: #27007A; } -.cm-s-xq-dark .CodeMirror-line::selection, .cm-s-xq-dark .CodeMirror-line > span::selection, .cm-s-xq-dark .CodeMirror-line > span > span::selection { background: rgba(39, 0, 122, 0.99); } -.cm-s-xq-dark .CodeMirror-line::-moz-selection, .cm-s-xq-dark .CodeMirror-line > span::-moz-selection, .cm-s-xq-dark .CodeMirror-line > span > span::-moz-selection { background: rgba(39, 0, 122, 0.99); } -.cm-s-xq-dark .CodeMirror-gutters { background: #0a001f; border-right: 1px solid #aaa; } -.cm-s-xq-dark .CodeMirror-guttermarker { color: #FFBD40; } -.cm-s-xq-dark .CodeMirror-guttermarker-subtle { color: #f8f8f8; } -.cm-s-xq-dark .CodeMirror-linenumber { color: #f8f8f8; } -.cm-s-xq-dark .CodeMirror-cursor { border-left: 1px solid white; } - -.cm-s-xq-dark span.cm-keyword { color: #FFBD40; } -.cm-s-xq-dark span.cm-atom { color: #6C8CD5; } -.cm-s-xq-dark span.cm-number { color: #164; } -.cm-s-xq-dark span.cm-def { color: #FFF; text-decoration:underline; } -.cm-s-xq-dark span.cm-variable { color: #FFF; } -.cm-s-xq-dark span.cm-variable-2 { color: #EEE; } -.cm-s-xq-dark span.cm-variable-3 { color: #DDD; } -.cm-s-xq-dark span.cm-property {} -.cm-s-xq-dark span.cm-operator {} -.cm-s-xq-dark span.cm-comment { color: gray; } -.cm-s-xq-dark span.cm-string { color: #9FEE00; } -.cm-s-xq-dark span.cm-meta { color: yellow; } -.cm-s-xq-dark span.cm-qualifier { color: #FFF700; } -.cm-s-xq-dark span.cm-builtin { color: #30a; } -.cm-s-xq-dark span.cm-bracket { color: #cc7; } -.cm-s-xq-dark span.cm-tag { color: #FFBD40; } -.cm-s-xq-dark span.cm-attribute { color: #FFF700; } -.cm-s-xq-dark span.cm-error { color: #f00; } - -.cm-s-xq-dark .CodeMirror-activeline-background { background: #27282E; } -.cm-s-xq-dark .CodeMirror-matchingbracket { outline:1px solid grey; color:white !important; } diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/xq-light.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/xq-light.css deleted file mode 100644 index 8d2fcb6..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/xq-light.css +++ /dev/null @@ -1,43 +0,0 @@ -/* -Copyright (C) 2011 by MarkLogic Corporation -Author: Mike Brevoort <mike@brevoort.com> - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -*/ -.cm-s-xq-light span.cm-keyword { line-height: 1em; font-weight: bold; color: #5A5CAD; } -.cm-s-xq-light span.cm-atom { color: #6C8CD5; } -.cm-s-xq-light span.cm-number { color: #164; } -.cm-s-xq-light span.cm-def { text-decoration:underline; } -.cm-s-xq-light span.cm-variable { color: black; } -.cm-s-xq-light span.cm-variable-2 { color:black; } -.cm-s-xq-light span.cm-variable-3 { color: black; } -.cm-s-xq-light span.cm-property {} -.cm-s-xq-light span.cm-operator {} -.cm-s-xq-light span.cm-comment { color: #0080FF; font-style: italic; } -.cm-s-xq-light span.cm-string { color: red; } -.cm-s-xq-light span.cm-meta { color: yellow; } -.cm-s-xq-light span.cm-qualifier { color: grey; } -.cm-s-xq-light span.cm-builtin { color: #7EA656; } -.cm-s-xq-light span.cm-bracket { color: #cc7; } -.cm-s-xq-light span.cm-tag { color: #3F7F7F; } -.cm-s-xq-light span.cm-attribute { color: #7F007F; } -.cm-s-xq-light span.cm-error { color: #f00; } - -.cm-s-xq-light .CodeMirror-activeline-background { background: #e8f2ff; } -.cm-s-xq-light .CodeMirror-matchingbracket { outline:1px solid grey;color:black !important;background:yellow; } diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/yeti.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/yeti.css deleted file mode 100644 index c70d4d2..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/yeti.css +++ /dev/null @@ -1,44 +0,0 @@ -/* - - Name: yeti - Author: Michael Kaminsky (http://github.com/mkaminsky11) - - Original yeti color scheme by Jesse Weed (https://github.com/jesseweed/yeti-syntax) - -*/ - - -.cm-s-yeti.CodeMirror { - background-color: #ECEAE8 !important; - color: #d1c9c0 !important; - border: none; -} - -.cm-s-yeti .CodeMirror-gutters { - color: #adaba6; - background-color: #E5E1DB; - border: none; -} -.cm-s-yeti .CodeMirror-cursor { border-left: solid thin #d1c9c0; } -.cm-s-yeti .CodeMirror-linenumber { color: #adaba6; } -.cm-s-yeti.CodeMirror-focused div.CodeMirror-selected { background: #DCD8D2; } -.cm-s-yeti .CodeMirror-line::selection, .cm-s-yeti .CodeMirror-line > span::selection, .cm-s-yeti .CodeMirror-line > span > span::selection { background: #DCD8D2; } -.cm-s-yeti .CodeMirror-line::-moz-selection, .cm-s-yeti .CodeMirror-line > span::-moz-selection, .cm-s-yeti .CodeMirror-line > span > span::-moz-selection { background: #DCD8D2; } -.cm-s-yeti span.cm-comment { color: #d4c8be; } -.cm-s-yeti span.cm-string, .cm-s-yeti span.cm-string-2 { color: #96c0d8; } -.cm-s-yeti span.cm-number { color: #a074c4; } -.cm-s-yeti span.cm-variable { color: #55b5db; } -.cm-s-yeti span.cm-variable-2 { color: #a074c4; } -.cm-s-yeti span.cm-def { color: #55b5db; } -.cm-s-yeti span.cm-operator { color: #9fb96e; } -.cm-s-yeti span.cm-keyword { color: #9fb96e; } -.cm-s-yeti span.cm-atom { color: #a074c4; } -.cm-s-yeti span.cm-meta { color: #96c0d8; } -.cm-s-yeti span.cm-tag { color: #96c0d8; } -.cm-s-yeti span.cm-attribute { color: #9fb96e; } -.cm-s-yeti span.cm-qualifier { color: #96c0d8; } -.cm-s-yeti span.cm-property { color: #a074c4; } -.cm-s-yeti span.cm-builtin { color: #a074c4; } -.cm-s-yeti span.cm-variable-3 { color: #96c0d8; } -.cm-s-yeti .CodeMirror-activeline-background { background: #E7E4E0; } -.cm-s-yeti .CodeMirror-matchingbracket { text-decoration: underline; } diff --git a/Mobile.Search.Web/Scripts/CodeMirror/theme/zenburn.css b/Mobile.Search.Web/Scripts/CodeMirror/theme/zenburn.css deleted file mode 100644 index 781c40a..0000000 --- a/Mobile.Search.Web/Scripts/CodeMirror/theme/zenburn.css +++ /dev/null @@ -1,37 +0,0 @@ -/** - * " - * Using Zenburn color palette from the Emacs Zenburn Theme - * https://github.com/bbatsov/zenburn-emacs/blob/master/zenburn-theme.el - * - * Also using parts of https://github.com/xavi/coderay-lighttable-theme - * " - * From: https://github.com/wisenomad/zenburn-lighttable-theme/blob/master/zenburn.css - */ - -.cm-s-zenburn .CodeMirror-gutters { background: #3f3f3f !important; } -.cm-s-zenburn .CodeMirror-foldgutter-open, .CodeMirror-foldgutter-folded { color: #999; } -.cm-s-zenburn .CodeMirror-cursor { border-left: 1px solid white; } -.cm-s-zenburn { background-color: #3f3f3f; color: #dcdccc; } -.cm-s-zenburn span.cm-builtin { color: #dcdccc; font-weight: bold; } -.cm-s-zenburn span.cm-comment { color: #7f9f7f; } -.cm-s-zenburn span.cm-keyword { color: #f0dfaf; font-weight: bold; } -.cm-s-zenburn span.cm-atom { color: #bfebbf; } -.cm-s-zenburn span.cm-def { color: #dcdccc; } -.cm-s-zenburn span.cm-variable { color: #dfaf8f; } -.cm-s-zenburn span.cm-variable-2 { color: #dcdccc; } -.cm-s-zenburn span.cm-string { color: #cc9393; } -.cm-s-zenburn span.cm-string-2 { color: #cc9393; } -.cm-s-zenburn span.cm-number { color: #dcdccc; } -.cm-s-zenburn span.cm-tag { color: #93e0e3; } -.cm-s-zenburn span.cm-property { color: #dfaf8f; } -.cm-s-zenburn span.cm-attribute { color: #dfaf8f; } -.cm-s-zenburn span.cm-qualifier { color: #7cb8bb; } -.cm-s-zenburn span.cm-meta { color: #f0dfaf; } -.cm-s-zenburn span.cm-header { color: #f0efd0; } -.cm-s-zenburn span.cm-operator { color: #f0efd0; } -.cm-s-zenburn span.CodeMirror-matchingbracket { box-sizing: border-box; background: transparent; border-bottom: 1px solid; } -.cm-s-zenburn span.CodeMirror-nonmatchingbracket { border-bottom: 1px solid; background: none; } -.cm-s-zenburn .CodeMirror-activeline { background: #000000; } -.cm-s-zenburn .CodeMirror-activeline-background { background: #000000; } -.cm-s-zenburn div.CodeMirror-selected { background: #545454; } -.cm-s-zenburn .CodeMirror-focused div.CodeMirror-selected { background: #4f4f4f; } diff --git a/Mobile.Search.Web/Scripts/_references.js b/Mobile.Search.Web/Scripts/_references.js deleted file mode 100644 index 4843eef..0000000 Binary files a/Mobile.Search.Web/Scripts/_references.js and /dev/null differ diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/froala_editor.css b/Mobile.Search.Web/Scripts/froala-editor/css/froala_editor.css deleted file mode 100644 index f69161f..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/froala_editor.css +++ /dev/null @@ -1,1262 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after { - clear: both; - display: block; - content: ""; - height: 0; -} -.hide-by-clipping { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - border: 0; -} -.fr-element, -.fr-element:focus { - outline: 0px solid transparent; -} -.fr-box.fr-basic .fr-element { - color: #000000; - padding: 16px; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - overflow-x: auto; - min-height: 52px; -} -.fr-box.fr-basic.fr-rtl .fr-element { - text-align: right; -} -.fr-element { - background: transparent; - position: relative; - z-index: 2; - -webkit-user-select: auto; -} -.fr-element a { - user-select: auto; - -o-user-select: auto; - -moz-user-select: auto; - -khtml-user-select: auto; - -webkit-user-select: auto; - -ms-user-select: auto; -} -.fr-element.fr-disabled { - user-select: none; - -o-user-select: none; - -moz-user-select: none; - -khtml-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; -} -.fr-element [contenteditable="true"] { - outline: 0px solid transparent; -} -.fr-box a.fr-floating-btn { - -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); - -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); - border-radius: 100%; - -moz-border-radius: 100%; - -webkit-border-radius: 100%; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; - height: 32px; - width: 32px; - background: #ffffff; - color: #1e88e5; - -webkit-transition: background 0.2s ease 0s, color 0.2s ease 0s, transform 0.2s ease 0s; - -moz-transition: background 0.2s ease 0s, color 0.2s ease 0s, transform 0.2s ease 0s; - -ms-transition: background 0.2s ease 0s, color 0.2s ease 0s, transform 0.2s ease 0s; - -o-transition: background 0.2s ease 0s, color 0.2s ease 0s, transform 0.2s ease 0s; - outline: none; - left: 0; - top: 0; - line-height: 32px; - -webkit-transform: scale(0); - -moz-transform: scale(0); - -ms-transform: scale(0); - -o-transform: scale(0); - text-align: center; - display: block; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - border: none; -} -.fr-box a.fr-floating-btn svg { - -webkit-transition: transform 0.2s ease 0s; - -moz-transition: transform 0.2s ease 0s; - -ms-transition: transform 0.2s ease 0s; - -o-transition: transform 0.2s ease 0s; - fill: #1e88e5; -} -.fr-box a.fr-floating-btn i, -.fr-box a.fr-floating-btn svg { - font-size: 14px; - line-height: 32px; -} -.fr-box a.fr-floating-btn.fr-btn + .fr-btn { - margin-left: 10px; -} -.fr-box a.fr-floating-btn:hover { - background: #ebebeb; - cursor: pointer; -} -.fr-box a.fr-floating-btn:hover svg { - fill: #1e88e5; -} -.fr-box .fr-visible a.fr-floating-btn { - -webkit-transform: scale(1); - -moz-transform: scale(1); - -ms-transform: scale(1); - -o-transform: scale(1); -} -iframe.fr-iframe { - width: 100%; - border: none; - position: relative; - display: block; - z-index: 2; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} -.fr-wrapper { - position: relative; - z-index: 1; -} -.fr-wrapper::after { - clear: both; - display: block; - content: ""; - height: 0; -} -.fr-wrapper .fr-placeholder { - position: absolute; - font-size: 12px; - color: #aaaaaa; - z-index: 1; - display: none; - top: 0; - left: 0; - right: 0; - overflow: hidden; -} -.fr-wrapper.show-placeholder .fr-placeholder { - display: block; -} -.fr-wrapper ::-moz-selection { - background: #b5d6fd; - color: #000000; -} -.fr-wrapper ::selection { - background: #b5d6fd; - color: #000000; -} -.fr-box.fr-basic .fr-wrapper { - background: #ffffff; - border: 0px; - border-top: 0; - top: 0; - left: 0; -} -.fr-box.fr-basic.fr-top .fr-wrapper { - border-top: 0; - border-radius: 0 0 2px 2px; - -moz-border-radius: 0 0 2px 2px; - -webkit-border-radius: 0 0 2px 2px; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; - -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); - -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); -} -.fr-box.fr-basic.fr-bottom .fr-wrapper { - border-bottom: 0; - border-radius: 2px 2px 0 0; - -moz-border-radius: 2px 2px 0 0; - -webkit-border-radius: 2px 2px 0 0; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; - -webkit-box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.12), 0 -1px 1px 1px rgba(0, 0, 0, 0.16); - -moz-box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.12), 0 -1px 1px 1px rgba(0, 0, 0, 0.16); - box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.12), 0 -1px 1px 1px rgba(0, 0, 0, 0.16); -} -.fr-tooltip { - position: absolute; - top: 0; - left: 0; - padding: 0 8px; - border-radius: 2px; - -moz-border-radius: 2px; - -webkit-border-radius: 2px; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; - -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 2px 2px 1px rgba(0, 0, 0, 0.14); - -moz-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 2px 2px 1px rgba(0, 0, 0, 0.14); - box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 2px 2px 1px rgba(0, 0, 0, 0.14); - background: #222222; - color: #ffffff; - font-size: 11px; - line-height: 22px; - font-family: Arial, Helvetica, sans-serif; - -webkit-transition: opacity 0.2s ease 0s; - -moz-transition: opacity 0.2s ease 0s; - -ms-transition: opacity 0.2s ease 0s; - -o-transition: opacity 0.2s ease 0s; - -webkit-opacity: 0; - -moz-opacity: 0; - opacity: 0; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; - left: -3000px; - user-select: none; - -o-user-select: none; - -moz-user-select: none; - -khtml-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; - z-index: 2147483647; - text-rendering: optimizelegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} -.fr-tooltip.fr-visible { - -webkit-opacity: 1; - -moz-opacity: 1; - opacity: 1; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; -} -.fr-toolbar .fr-command.fr-btn, -.fr-popup .fr-command.fr-btn { - background: transparent; - color: #222222; - -moz-outline: 0; - outline: 0; - border: 0; - line-height: 1; - cursor: pointer; - text-align: left; - margin: 0px 2px; - -webkit-transition: background 0.2s ease 0s; - -moz-transition: background 0.2s ease 0s; - -ms-transition: background 0.2s ease 0s; - -o-transition: background 0.2s ease 0s; - border-radius: 0; - -moz-border-radius: 0; - -webkit-border-radius: 0; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; - z-index: 2; - position: relative; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - text-decoration: none; - user-select: none; - -o-user-select: none; - -moz-user-select: none; - -khtml-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; - float: left; - padding: 0; - width: 38px; - height: 38px; -} -.fr-toolbar .fr-command.fr-btn::-moz-focus-inner, -.fr-popup .fr-command.fr-btn::-moz-focus-inner { - border: 0; - padding: 0; -} -.fr-toolbar .fr-command.fr-btn.fr-btn-text, -.fr-popup .fr-command.fr-btn.fr-btn-text { - width: auto; -} -.fr-toolbar .fr-command.fr-btn i, -.fr-popup .fr-command.fr-btn i, -.fr-toolbar .fr-command.fr-btn svg, -.fr-popup .fr-command.fr-btn svg { - display: block; - font-size: 14px; - width: 14px; - margin: 12px 12px; - text-align: center; - float: none; -} -.fr-toolbar .fr-command.fr-btn span.fr-sr-only, -.fr-popup .fr-command.fr-btn span.fr-sr-only { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - border: 0; -} -.fr-toolbar .fr-command.fr-btn span, -.fr-popup .fr-command.fr-btn span { - font-size: 14px; - display: block; - line-height: 17px; - min-width: 34px; - float: left; - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - height: 17px; - font-weight: bold; - padding: 0 2px; -} -.fr-toolbar .fr-command.fr-btn img, -.fr-popup .fr-command.fr-btn img { - margin: 12px 12px; - width: 14px; -} -.fr-toolbar .fr-command.fr-btn.fr-active, -.fr-popup .fr-command.fr-btn.fr-active { - color: #1e88e5; - background: transparent; -} -.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-selection, -.fr-popup .fr-command.fr-btn.fr-dropdown.fr-selection { - width: auto; -} -.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-selection span, -.fr-popup .fr-command.fr-btn.fr-dropdown.fr-selection span { - font-weight: normal; -} -.fr-toolbar .fr-command.fr-btn.fr-dropdown i, -.fr-popup .fr-command.fr-btn.fr-dropdown i, -.fr-toolbar .fr-command.fr-btn.fr-dropdown span, -.fr-popup .fr-command.fr-btn.fr-dropdown span, -.fr-toolbar .fr-command.fr-btn.fr-dropdown img, -.fr-popup .fr-command.fr-btn.fr-dropdown img, -.fr-toolbar .fr-command.fr-btn.fr-dropdown svg, -.fr-popup .fr-command.fr-btn.fr-dropdown svg { - margin-left: 8px; - margin-right: 16px; -} -.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active, -.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active { - color: #222222; - background: #d6d6d6; -} -.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:hover, -.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:hover, -.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:focus, -.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:focus { - background: #d6d6d6 !important; - color: #222222 !important; -} -.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:hover::after, -.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:hover::after, -.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:focus::after, -.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:focus::after { - border-top-color: #222222 !important; -} -.fr-toolbar .fr-command.fr-btn.fr-dropdown::after, -.fr-popup .fr-command.fr-btn.fr-dropdown::after { - position: absolute; - width: 0; - height: 0; - border-left: 4px solid transparent; - border-right: 4px solid transparent; - border-top: 4px solid #222222; - right: 4px; - top: 17px; - content: ""; -} -.fr-toolbar .fr-command.fr-btn.fr-disabled, -.fr-popup .fr-command.fr-btn.fr-disabled { - color: #bdbdbd; - cursor: default; -} -.fr-toolbar .fr-command.fr-btn.fr-disabled::after, -.fr-popup .fr-command.fr-btn.fr-disabled::after { - border-top-color: #bdbdbd !important; -} -.fr-toolbar .fr-command.fr-btn.fr-hidden, -.fr-popup .fr-command.fr-btn.fr-hidden { - display: none; -} -.fr-toolbar.fr-disabled .fr-btn, -.fr-popup.fr-disabled .fr-btn, -.fr-toolbar.fr-disabled .fr-btn.fr-active, -.fr-popup.fr-disabled .fr-btn.fr-active { - color: #bdbdbd; -} -.fr-toolbar.fr-disabled .fr-btn.fr-dropdown::after, -.fr-popup.fr-disabled .fr-btn.fr-dropdown::after, -.fr-toolbar.fr-disabled .fr-btn.fr-active.fr-dropdown::after, -.fr-popup.fr-disabled .fr-btn.fr-active.fr-dropdown::after { - border-top-color: #bdbdbd; -} -.fr-toolbar.fr-rtl .fr-command.fr-btn, -.fr-popup.fr-rtl .fr-command.fr-btn { - float: right; -} -.fr-toolbar.fr-inline .fr-command.fr-btn:not(.fr-hidden) { - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - float: none; -} -.fr-desktop .fr-command:hover, -.fr-desktop .fr-command:focus { - outline: 0; - color: #222222; - background: #ebebeb; -} -.fr-desktop .fr-command:hover::after, -.fr-desktop .fr-command:focus::after { - border-top-color: #222222 !important; -} -.fr-desktop .fr-command.fr-selected { - color: #222222; - background: #d6d6d6; -} -.fr-desktop .fr-command.fr-active:hover, -.fr-desktop .fr-command.fr-active:focus { - color: #1e88e5; - background: #ebebeb; -} -.fr-desktop .fr-command.fr-active.fr-selected { - color: #1e88e5; - background: #d6d6d6; -} -.fr-desktop .fr-command.fr-disabled:hover, -.fr-desktop .fr-command.fr-disabled:focus, -.fr-desktop .fr-command.fr-disabled.fr-selected { - background: transparent; -} -.fr-desktop.fr-disabled .fr-command:hover, -.fr-desktop.fr-disabled .fr-command:focus, -.fr-desktop.fr-disabled .fr-command.fr-selected { - background: transparent; -} -.fr-toolbar.fr-mobile .fr-command.fr-blink, -.fr-popup.fr-mobile .fr-command.fr-blink { - background: transparent; -} -.fr-command.fr-btn + .fr-dropdown-menu { - display: inline-block; - position: absolute; - right: auto; - bottom: auto; - height: auto; - z-index: 4; - -webkit-overflow-scrolling: touch; - overflow: hidden; - zoom: 1; - border-radius: 0 0 2px 2px; - -moz-border-radius: 0 0 2px 2px; - -webkit-border-radius: 0 0 2px 2px; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; -} -.fr-command.fr-btn + .fr-dropdown-menu.test-height .fr-dropdown-wrapper { - -webkit-transition: none; - -moz-transition: none; - -ms-transition: none; - -o-transition: none; - height: auto; - max-height: 275px; -} -.fr-command.fr-btn + .fr-dropdown-menu .fr-dropdown-wrapper { - background: #ffffff; - padding: 0; - margin: auto; - display: inline-block; - text-align: left; - position: relative; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - -webkit-transition: max-height 0.2s ease 0s; - -moz-transition: max-height 0.2s ease 0s; - -ms-transition: max-height 0.2s ease 0s; - -o-transition: max-height 0.2s ease 0s; - margin-top: 0; - float: left; - max-height: 0; - height: 0; - margin-top: 0 !important; -} -.fr-command.fr-btn + .fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content { - overflow: auto; - position: relative; - max-height: 275px; -} -.fr-command.fr-btn + .fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list { - list-style-type: none; - margin: 0; - padding: 0; -} -.fr-command.fr-btn + .fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li { - padding: 0; - margin: 0; - font-size: 15px; -} -.fr-command.fr-btn + .fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a { - padding: 0 24px; - line-height: 200%; - display: block; - cursor: pointer; - white-space: nowrap; - color: inherit; - text-decoration: none; -} -.fr-command.fr-btn + .fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-active { - background: #d6d6d6; -} -.fr-command.fr-btn + .fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-disabled { - color: #bdbdbd; - cursor: default; -} -.fr-command.fr-btn:not(.fr-active) + .fr-dropdown-menu { - left: -3000px !important; -} -.fr-command.fr-btn.fr-active + .fr-dropdown-menu { - display: inline-block; - -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 2px 2px 1px rgba(0, 0, 0, 0.14); - -moz-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 2px 2px 1px rgba(0, 0, 0, 0.14); - box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 2px 2px 1px rgba(0, 0, 0, 0.14); -} -.fr-command.fr-btn.fr-active + .fr-dropdown-menu .fr-dropdown-wrapper { - height: auto; - max-height: 275px; -} -.fr-bottom > .fr-command.fr-btn + .fr-dropdown-menu { - border-radius: 2px 2px 0 0; - -moz-border-radius: 2px 2px 0 0; - -webkit-border-radius: 2px 2px 0 0; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; -} -.fr-toolbar.fr-rtl .fr-dropdown-wrapper, -.fr-popup.fr-rtl .fr-dropdown-wrapper { - text-align: right !important; -} -body.prevent-scroll { - overflow: hidden; -} -body.prevent-scroll.fr-mobile { - position: fixed; - -webkit-overflow-scrolling: touch; -} -.fr-modal { - color: #222222; - font-family: Arial, Helvetica, sans-serif; - position: fixed; - overflow-x: auto; - overflow-y: scroll; - top: 0; - left: 0; - bottom: 0; - right: 0; - width: 100%; - z-index: 2147483640; - text-rendering: optimizelegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - text-align: center; - line-height: 1.2; -} -.fr-modal.fr-middle .fr-modal-wrapper { - margin-top: 0; - margin-bottom: 0; - margin-left: auto; - margin-right: auto; - top: 50%; - left: 50%; - -webkit-transform: translate(-50%, -50%); - -moz-transform: translate(-50%, -50%); - -ms-transform: translate(-50%, -50%); - -o-transform: translate(-50%, -50%); - position: absolute; -} -.fr-modal .fr-modal-wrapper { - border-radius: 2px; - -moz-border-radius: 2px; - -webkit-border-radius: 2px; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; - margin: 20px auto; - display: inline-block; - background: #ffffff; - min-width: 300px; - -webkit-box-shadow: 0 5px 8px rgba(0, 0, 0, 0.19), 0 4px 3px 1px rgba(0, 0, 0, 0.14); - -moz-box-shadow: 0 5px 8px rgba(0, 0, 0, 0.19), 0 4px 3px 1px rgba(0, 0, 0, 0.14); - box-shadow: 0 5px 8px rgba(0, 0, 0, 0.19), 0 4px 3px 1px rgba(0, 0, 0, 0.14); - border: 0px; - border-top: 5px solid #222222; - overflow: hidden; - width: 90%; - position: relative; -} -@media (min-width: 768px) and (max-width: 991px) { - .fr-modal .fr-modal-wrapper { - margin: 30px auto; - width: 70%; - } -} -@media (min-width: 992px) { - .fr-modal .fr-modal-wrapper { - margin: 50px auto; - width: 600px; - } -} -.fr-modal .fr-modal-wrapper .fr-modal-head { - background: #ffffff; - -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 2px 2px 1px rgba(0, 0, 0, 0.14); - -moz-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 2px 2px 1px rgba(0, 0, 0, 0.14); - box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 2px 2px 1px rgba(0, 0, 0, 0.14); - border-bottom: 0px; - overflow: hidden; - position: absolute; - width: 100%; - min-height: 42px; - z-index: 3; - -webkit-transition: height 0.2s ease 0s; - -moz-transition: height 0.2s ease 0s; - -ms-transition: height 0.2s ease 0s; - -o-transition: height 0.2s ease 0s; -} -.fr-modal .fr-modal-wrapper .fr-modal-head .fr-modal-close { - padding: 12px; - width: 20px; - font-size: 16px; - cursor: pointer; - line-height: 18px; - color: #222222; - -webkit-box-sizing: content-box; - -moz-box-sizing: content-box; - box-sizing: content-box; - position: absolute; - top: 0; - right: 0; - -webkit-transition: color 0.2s ease 0s; - -moz-transition: color 0.2s ease 0s; - -ms-transition: color 0.2s ease 0s; - -o-transition: color 0.2s ease 0s; -} -.fr-modal .fr-modal-wrapper .fr-modal-head h4 { - font-size: 18px; - padding: 12px 10px; - margin: 0; - font-weight: 400; - line-height: 18px; - display: inline-block; - float: left; -} -.fr-modal .fr-modal-wrapper div.fr-modal-body { - height: 100%; - min-height: 150px; - overflow-y: scroll; - padding-bottom: 10px; -} -.fr-modal .fr-modal-wrapper div.fr-modal-body:focus { - outline: 0; -} -.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command { - height: 36px; - line-height: 1; - color: #1e88e5; - padding: 10px; - cursor: pointer; - text-decoration: none; - border: none; - background: none; - font-size: 16px; - outline: none; - -webkit-transition: background 0.2s ease 0s; - -moz-transition: background 0.2s ease 0s; - -ms-transition: background 0.2s ease 0s; - -o-transition: background 0.2s ease 0s; - border-radius: 2px; - -moz-border-radius: 2px; - -webkit-border-radius: 2px; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; -} -.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command + button { - margin-left: 24px; -} -.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:hover, -.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:focus { - background: #ebebeb; - color: #1e88e5; -} -.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:active { - background: #d6d6d6; - color: #1e88e5; -} -.fr-modal .fr-modal-wrapper div.fr-modal-body button::-moz-focus-inner { - border: 0; -} -.fr-desktop .fr-modal-wrapper .fr-modal-head i:hover { - background: #ebebeb; -} -.fr-overlay { - position: fixed; - top: 0; - bottom: 0; - left: 0; - right: 0; - background: #000000; - -webkit-opacity: 0.5; - -moz-opacity: 0.5; - opacity: 0.5; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; - z-index: 2147483639; -} -.fr-popup { - position: absolute; - display: none; - color: #222222; - background: #ffffff; - -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); - -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); - border-radius: 2px; - -moz-border-radius: 2px; - -webkit-border-radius: 2px; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; - font-family: Arial, Helvetica, sans-serif; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - user-select: none; - -o-user-select: none; - -moz-user-select: none; - -khtml-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; - margin-top: 10px; - z-index: 2147483635; - text-align: left; - border: 0px; - border-top: 5px solid #222222; - text-rendering: optimizelegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - line-height: 1.2; -} -.fr-popup .fr-input-focus { - background: #f5f5f5; -} -.fr-popup.fr-above { - margin-top: -10px; - border-top: 0; - border-bottom: 5px solid #222222; - -webkit-box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.12), 0 -1px 1px 1px rgba(0, 0, 0, 0.16); - -moz-box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.12), 0 -1px 1px 1px rgba(0, 0, 0, 0.16); - box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.12), 0 -1px 1px 1px rgba(0, 0, 0, 0.16); -} -.fr-popup.fr-active { - display: block; -} -.fr-popup.fr-hidden { - -webkit-opacity: 0; - -moz-opacity: 0; - opacity: 0; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; -} -.fr-popup.fr-empty { - display: none !important; -} -.fr-popup .fr-hs { - display: block !important; -} -.fr-popup .fr-hs.fr-hidden { - display: none !important; -} -.fr-popup .fr-input-line { - position: relative; - padding: 8px 0; -} -.fr-popup .fr-input-line input[type="text"], -.fr-popup .fr-input-line textarea { - width: 100%; - margin: 0px 0 1px 0; - border: none; - border-bottom: solid 1px #bdbdbd; - color: #222222; - font-size: 14px; - padding: 6px 0 2px; - background: rgba(0, 0, 0, 0); - position: relative; - z-index: 2; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} -.fr-popup .fr-input-line input[type="text"]:focus, -.fr-popup .fr-input-line textarea:focus { - border-bottom: solid 2px #1e88e5; - margin-bottom: 0px; -} -.fr-popup .fr-input-line input + label, -.fr-popup .fr-input-line textarea + label { - position: absolute; - top: 0; - left: 0; - font-size: 12px; - color: rgba(0, 0, 0, 0); - -webkit-transition: color 0.2s ease 0s; - -moz-transition: color 0.2s ease 0s; - -ms-transition: color 0.2s ease 0s; - -o-transition: color 0.2s ease 0s; - z-index: 3; - width: 100%; - display: block; - background: #ffffff; -} -.fr-popup .fr-input-line input.fr-not-empty:focus + label, -.fr-popup .fr-input-line textarea.fr-not-empty:focus + label { - color: #1e88e5; -} -.fr-popup .fr-input-line input.fr-not-empty + label, -.fr-popup .fr-input-line textarea.fr-not-empty + label { - color: #808080; -} -.fr-popup input, -.fr-popup textarea { - user-select: text; - -o-user-select: text; - -moz-user-select: text; - -khtml-user-select: text; - -webkit-user-select: text; - -ms-user-select: text; - border-radius: 0; - -moz-border-radius: 0; - -webkit-border-radius: 0; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; - outline: none; -} -.fr-popup textarea { - resize: none; -} -.fr-popup .fr-buttons { - -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); - -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); - padding: 0 2px; - white-space: nowrap; - line-height: 0; - border-bottom: 0px; -} -.fr-popup .fr-buttons::after { - clear: both; - display: block; - content: ""; - height: 0; -} -.fr-popup .fr-buttons .fr-btn { - display: inline-block; - float: none; -} -.fr-popup .fr-buttons .fr-btn i { - float: left; -} -.fr-popup .fr-buttons .fr-separator { - display: inline-block; - float: none; -} -.fr-popup .fr-layer { - width: 225px; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - margin: 10px; - display: none; -} -@media (min-width: 768px) { - .fr-popup .fr-layer { - width: 300px; - } -} -.fr-popup .fr-layer.fr-active { - display: inline-block; -} -.fr-popup .fr-action-buttons { - z-index: 7; - height: 36px; - text-align: right; -} -.fr-popup .fr-action-buttons button.fr-command { - height: 36px; - line-height: 1; - color: #1e88e5; - padding: 10px; - cursor: pointer; - text-decoration: none; - border: none; - background: none; - font-size: 16px; - outline: none; - -webkit-transition: background 0.2s ease 0s; - -moz-transition: background 0.2s ease 0s; - -ms-transition: background 0.2s ease 0s; - -o-transition: background 0.2s ease 0s; - border-radius: 2px; - -moz-border-radius: 2px; - -webkit-border-radius: 2px; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; -} -.fr-popup .fr-action-buttons button.fr-command + button { - margin-left: 24px; -} -.fr-popup .fr-action-buttons button.fr-command:hover, -.fr-popup .fr-action-buttons button.fr-command:focus { - background: #ebebeb; - color: #1e88e5; -} -.fr-popup .fr-action-buttons button.fr-command:active { - background: #d6d6d6; - color: #1e88e5; -} -.fr-popup .fr-action-buttons button::-moz-focus-inner { - border: 0; -} -.fr-popup .fr-checkbox { - position: relative; - display: inline-block; - width: 16px; - height: 16px; - line-height: 1; - -webkit-box-sizing: content-box; - -moz-box-sizing: content-box; - box-sizing: content-box; - vertical-align: middle; -} -.fr-popup .fr-checkbox svg { - margin-left: 2px; - margin-top: 2px; - display: none; - width: 10px; - height: 10px; -} -.fr-popup .fr-checkbox span { - border: solid 1px #222222; - border-radius: 2px; - -moz-border-radius: 2px; - -webkit-border-radius: 2px; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; - width: 16px; - height: 16px; - display: inline-block; - position: relative; - z-index: 1; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - -webkit-transition: background 0.2s ease 0s, border-color 0.2s ease 0s; - -moz-transition: background 0.2s ease 0s, border-color 0.2s ease 0s; - -ms-transition: background 0.2s ease 0s, border-color 0.2s ease 0s; - -o-transition: background 0.2s ease 0s, border-color 0.2s ease 0s; -} -.fr-popup .fr-checkbox input { - position: absolute; - z-index: 2; - -webkit-opacity: 0; - -moz-opacity: 0; - opacity: 0; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; - border: 0 none; - cursor: pointer; - height: 16px; - margin: 0; - padding: 0; - width: 16px; - top: 1px; - left: 1px; -} -.fr-popup .fr-checkbox input:checked + span { - background: #1e88e5; - border-color: #1e88e5; -} -.fr-popup .fr-checkbox input:checked + span svg { - display: block; -} -.fr-popup .fr-checkbox input:focus + span { - border-color: #1e88e5; -} -.fr-popup .fr-checkbox-line { - font-size: 14px; - line-height: 1.4px; - margin-top: 10px; -} -.fr-popup .fr-checkbox-line label { - cursor: pointer; - margin: 0 5px; - vertical-align: middle; -} -.fr-popup.fr-rtl { - direction: rtl; - text-align: right; -} -.fr-popup.fr-rtl .fr-action-buttons { - text-align: left; -} -.fr-popup.fr-rtl .fr-input-line input + label, -.fr-popup.fr-rtl .fr-input-line textarea + label { - left: auto; - right: 0; -} -.fr-popup.fr-rtl .fr-buttons .fr-separator.fr-vs { - float: right; -} -.fr-popup .fr-arrow { - width: 0; - height: 0; - border-left: 5px solid transparent; - border-right: 5px solid transparent; - border-bottom: 5px solid #222222; - position: absolute; - top: -9px; - left: 50%; - margin-left: -5px; - display: inline-block; -} -.fr-popup.fr-above .fr-arrow { - top: auto; - bottom: -9px; - border-bottom: 0; - border-top: 5px solid #222222; -} -.fr-text-edit-layer { - width: 250px; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - display: block !important; -} -.fr-toolbar { - color: #222222; - background: #ffffff; - position: relative; - z-index: 4; - font-family: Arial, Helvetica, sans-serif; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - user-select: none; - -o-user-select: none; - -moz-user-select: none; - -khtml-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; - padding: 0 2px; - border-radius: 2px; - -moz-border-radius: 2px; - -webkit-border-radius: 2px; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; - -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); - -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); - text-align: left; - border: 0px; - border-top: 5px solid #222222; - text-rendering: optimizelegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - line-height: 1.2; -} -.fr-toolbar::after { - clear: both; - display: block; - content: ""; - height: 0; -} -.fr-toolbar.fr-rtl { - text-align: right; -} -.fr-toolbar.fr-inline { - display: none; - white-space: nowrap; - position: absolute; - margin-top: 10px; -} -.fr-toolbar.fr-inline .fr-arrow { - width: 0; - height: 0; - border-left: 5px solid transparent; - border-right: 5px solid transparent; - border-bottom: 5px solid #222222; - position: absolute; - top: -9px; - left: 50%; - margin-left: -5px; - display: inline-block; -} -.fr-toolbar.fr-inline.fr-above { - margin-top: -10px; - -webkit-box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.12), 0 -1px 1px 1px rgba(0, 0, 0, 0.16); - -moz-box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.12), 0 -1px 1px 1px rgba(0, 0, 0, 0.16); - box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.12), 0 -1px 1px 1px rgba(0, 0, 0, 0.16); - border-bottom: 5px solid #222222; - border-top: 0; -} -.fr-toolbar.fr-inline.fr-above .fr-arrow { - top: auto; - bottom: -9px; - border-bottom: 0; - border-top-color: inherit; - border-top-style: solid; - border-top-width: 5px; -} -.fr-toolbar.fr-top { - top: 0; - border-radius: 2px 2px 0 0; - -moz-border-radius: 2px 2px 0 0; - -webkit-border-radius: 2px 2px 0 0; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; - -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); - -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); -} -.fr-toolbar.fr-bottom { - bottom: 0; - border-radius: 0 0 2px 2px; - -moz-border-radius: 0 0 2px 2px; - -webkit-border-radius: 0 0 2px 2px; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; - -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); - -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); -} -.fr-separator { - background: #ebebeb; - display: block; - vertical-align: top; - float: left; -} -.fr-separator + .fr-separator { - display: none; -} -.fr-separator.fr-vs { - height: 34px; - width: 1px; - margin: 2px; -} -.fr-separator.fr-hs { - clear: both; - height: 1px; - width: calc(100% - (2 * 2px)); - margin: 0 2px; -} -.fr-separator.fr-hidden { - display: none !important; -} -.fr-rtl .fr-separator { - float: right; -} -.fr-toolbar.fr-inline .fr-separator.fr-hs { - float: none; -} -.fr-toolbar.fr-inline .fr-separator.fr-vs { - float: none; - display: inline-block; -} -.fr-visibility-helper { - display: none; - margin-left: 0px !important; -} -@media (min-width: 768px) { - .fr-visibility-helper { - margin-left: 1px !important; - } -} -@media (min-width: 992px) { - .fr-visibility-helper { - margin-left: 2px !important; - } -} -@media (min-width: 1200px) { - .fr-visibility-helper { - margin-left: 3px !important; - } -} -.fr-opacity-0 { - -webkit-opacity: 0; - -moz-opacity: 0; - opacity: 0; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; -} -.fr-box { - position: relative; -} -/** - * Postion sticky hacks. - */ -.fr-sticky { - position: -webkit-sticky; - position: -moz-sticky; - position: -ms-sticky; - position: -o-sticky; - position: sticky; -} -.fr-sticky-off { - position: relative; -} -.fr-sticky-on { - position: fixed; -} -.fr-sticky-on.fr-sticky-ios { - position: absolute; - left: 0; - right: 0; - width: auto !important; -} -.fr-sticky-dummy { - display: none; -} -.fr-sticky-on + .fr-sticky-dummy, -.fr-sticky-box > .fr-sticky-dummy { - display: block; -} -span.fr-sr-only { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - border: 0; -} diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/froala_editor.min.css b/Mobile.Search.Web/Scripts/froala-editor/css/froala_editor.min.css deleted file mode 100644 index 1696bef..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/froala_editor.min.css +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.fr-element,.fr-element:focus{outline:0 solid transparent}.fr-box.fr-basic .fr-element{color:#000;padding:16px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;overflow-x:auto;min-height:52px}.fr-box.fr-basic.fr-rtl .fr-element{text-align:right}.fr-element{background:0 0;position:relative;z-index:2;-webkit-user-select:auto}.fr-element a{user-select:auto;-o-user-select:auto;-moz-user-select:auto;-khtml-user-select:auto;-webkit-user-select:auto;-ms-user-select:auto}.fr-element.fr-disabled{user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none}.fr-element [contenteditable=true]{outline:0 solid transparent}.fr-box a.fr-floating-btn{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);border-radius:100%;-moz-border-radius:100%;-webkit-border-radius:100%;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;height:32px;width:32px;background:#fff;color:#1e88e5;-webkit-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;-moz-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;-ms-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;-o-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;outline:0;left:0;top:0;line-height:32px;-webkit-transform:scale(0);-moz-transform:scale(0);-ms-transform:scale(0);-o-transform:scale(0);text-align:center;display:block;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border:0}.fr-box a.fr-floating-btn svg{-webkit-transition:transform .2s ease 0s;-moz-transition:transform .2s ease 0s;-ms-transition:transform .2s ease 0s;-o-transition:transform .2s ease 0s;fill:#1e88e5}.fr-box a.fr-floating-btn i,.fr-box a.fr-floating-btn svg{font-size:14px;line-height:32px}.fr-box a.fr-floating-btn.fr-btn+.fr-btn{margin-left:10px}.fr-box a.fr-floating-btn:hover{background:#ebebeb;cursor:pointer}.fr-box a.fr-floating-btn:hover svg{fill:#1e88e5}.fr-box .fr-visible a.fr-floating-btn{-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1)}iframe.fr-iframe{width:100%;border:0;position:relative;display:block;z-index:2;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.fr-wrapper{position:relative;z-index:1}.fr-wrapper::after{clear:both;display:block;content:"";height:0}.fr-wrapper .fr-placeholder{position:absolute;font-size:12px;color:#aaa;z-index:1;display:none;top:0;left:0;right:0;overflow:hidden}.fr-wrapper.show-placeholder .fr-placeholder{display:block}.fr-wrapper ::-moz-selection{background:#b5d6fd;color:#000}.fr-wrapper ::selection{background:#b5d6fd;color:#000}.fr-box.fr-basic .fr-wrapper{background:#fff;border:0;border-top:0;top:0;left:0}.fr-box.fr-basic.fr-top .fr-wrapper{border-top:0;border-radius:0 0 2px 2px;-moz-border-radius:0 0 2px 2px;-webkit-border-radius:0 0 2px 2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.fr-box.fr-basic.fr-bottom .fr-wrapper{border-bottom:0;border-radius:2px 2px 0 0;-moz-border-radius:2px 2px 0 0;-webkit-border-radius:2px 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16)}.fr-tooltip{position:absolute;top:0;left:0;padding:0 8px;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);-moz-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);background:#222;color:#fff;font-size:11px;line-height:22px;font-family:Arial,Helvetica,sans-serif;-webkit-transition:opacity .2s ease 0s;-moz-transition:opacity .2s ease 0s;-ms-transition:opacity .2s ease 0s;-o-transition:opacity .2s ease 0s;-webkit-opacity:0;-moz-opacity:0;opacity:0;-ms-filter:"alpha(Opacity=0)";left:-3000px;user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;z-index:2147483647;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fr-tooltip.fr-visible{-webkit-opacity:1;-moz-opacity:1;opacity:1;-ms-filter:"alpha(Opacity=0)"}.fr-toolbar .fr-command.fr-btn,.fr-popup .fr-command.fr-btn{background:0 0;color:#222;-moz-outline:0;outline:0;border:0;line-height:1;cursor:pointer;text-align:left;margin:0 2px;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s;border-radius:0;-moz-border-radius:0;-webkit-border-radius:0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;z-index:2;position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;text-decoration:none;user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;float:left;padding:0;width:38px;height:38px}.fr-toolbar .fr-command.fr-btn::-moz-focus-inner,.fr-popup .fr-command.fr-btn::-moz-focus-inner{border:0;padding:0}.fr-toolbar .fr-command.fr-btn.fr-btn-text,.fr-popup .fr-command.fr-btn.fr-btn-text{width:auto}.fr-toolbar .fr-command.fr-btn i,.fr-popup .fr-command.fr-btn i,.fr-toolbar .fr-command.fr-btn svg,.fr-popup .fr-command.fr-btn svg{display:block;font-size:14px;width:14px;margin:12px;text-align:center;float:none}.fr-toolbar .fr-command.fr-btn span.fr-sr-only,.fr-popup .fr-command.fr-btn span.fr-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.fr-toolbar .fr-command.fr-btn span,.fr-popup .fr-command.fr-btn span{font-size:14px;display:block;line-height:17px;min-width:34px;float:left;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;height:17px;font-weight:700;padding:0 2px}.fr-toolbar .fr-command.fr-btn img,.fr-popup .fr-command.fr-btn img{margin:12px;width:14px}.fr-toolbar .fr-command.fr-btn.fr-active,.fr-popup .fr-command.fr-btn.fr-active{color:#1e88e5;background:0 0}.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-selection,.fr-popup .fr-command.fr-btn.fr-dropdown.fr-selection{width:auto}.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-selection span,.fr-popup .fr-command.fr-btn.fr-dropdown.fr-selection span{font-weight:400}.fr-toolbar .fr-command.fr-btn.fr-dropdown i,.fr-popup .fr-command.fr-btn.fr-dropdown i,.fr-toolbar .fr-command.fr-btn.fr-dropdown span,.fr-popup .fr-command.fr-btn.fr-dropdown span,.fr-toolbar .fr-command.fr-btn.fr-dropdown img,.fr-popup .fr-command.fr-btn.fr-dropdown img,.fr-toolbar .fr-command.fr-btn.fr-dropdown svg,.fr-popup .fr-command.fr-btn.fr-dropdown svg{margin-left:8px;margin-right:16px}.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active,.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active{color:#222;background:#d6d6d6}.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:hover,.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:hover,.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:focus,.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:focus{background:#d6d6d6!important;color:#222!important}.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:hover::after,.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:hover::after,.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:focus::after,.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:focus::after{border-top-color:#222!important}.fr-toolbar .fr-command.fr-btn.fr-dropdown::after,.fr-popup .fr-command.fr-btn.fr-dropdown::after{position:absolute;width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid #222;right:4px;top:17px;content:""}.fr-toolbar .fr-command.fr-btn.fr-disabled,.fr-popup .fr-command.fr-btn.fr-disabled{color:#bdbdbd;cursor:default}.fr-toolbar .fr-command.fr-btn.fr-disabled::after,.fr-popup .fr-command.fr-btn.fr-disabled::after{border-top-color:#bdbdbd!important}.fr-toolbar .fr-command.fr-btn.fr-hidden,.fr-popup .fr-command.fr-btn.fr-hidden{display:none}.fr-toolbar.fr-disabled .fr-btn,.fr-popup.fr-disabled .fr-btn,.fr-toolbar.fr-disabled .fr-btn.fr-active,.fr-popup.fr-disabled .fr-btn.fr-active{color:#bdbdbd}.fr-toolbar.fr-disabled .fr-btn.fr-dropdown::after,.fr-popup.fr-disabled .fr-btn.fr-dropdown::after,.fr-toolbar.fr-disabled .fr-btn.fr-active.fr-dropdown::after,.fr-popup.fr-disabled .fr-btn.fr-active.fr-dropdown::after{border-top-color:#bdbdbd}.fr-toolbar.fr-rtl .fr-command.fr-btn,.fr-popup.fr-rtl .fr-command.fr-btn{float:right}.fr-toolbar.fr-inline .fr-command.fr-btn:not(.fr-hidden){display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;float:none}.fr-desktop .fr-command:hover,.fr-desktop .fr-command:focus{outline:0;color:#222;background:#ebebeb}.fr-desktop .fr-command:hover::after,.fr-desktop .fr-command:focus::after{border-top-color:#222!important}.fr-desktop .fr-command.fr-selected{color:#222;background:#d6d6d6}.fr-desktop .fr-command.fr-active:hover,.fr-desktop .fr-command.fr-active:focus{color:#1e88e5;background:#ebebeb}.fr-desktop .fr-command.fr-active.fr-selected{color:#1e88e5;background:#d6d6d6}.fr-desktop .fr-command.fr-disabled:hover,.fr-desktop .fr-command.fr-disabled:focus,.fr-desktop .fr-command.fr-disabled.fr-selected{background:0 0}.fr-desktop.fr-disabled .fr-command:hover,.fr-desktop.fr-disabled .fr-command:focus,.fr-desktop.fr-disabled .fr-command.fr-selected{background:0 0}.fr-toolbar.fr-mobile .fr-command.fr-blink,.fr-popup.fr-mobile .fr-command.fr-blink{background:0 0}.fr-command.fr-btn+.fr-dropdown-menu{display:inline-block;position:absolute;right:auto;bottom:auto;height:auto;z-index:4;-webkit-overflow-scrolling:touch;overflow:hidden;zoom:1;border-radius:0 0 2px 2px;-moz-border-radius:0 0 2px 2px;-webkit-border-radius:0 0 2px 2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.fr-command.fr-btn+.fr-dropdown-menu.test-height .fr-dropdown-wrapper{-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;height:auto;max-height:275px}.fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper{background:#fff;padding:0;margin:auto;display:inline-block;text-align:left;position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:max-height .2s ease 0s;-moz-transition:max-height .2s ease 0s;-ms-transition:max-height .2s ease 0s;-o-transition:max-height .2s ease 0s;margin-top:0;float:left;max-height:0;height:0;margin-top:0!important}.fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content{overflow:auto;position:relative;max-height:275px}.fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list{list-style-type:none;margin:0;padding:0}.fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li{padding:0;margin:0;font-size:15px}.fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a{padding:0 24px;line-height:200%;display:block;cursor:pointer;white-space:nowrap;color:inherit;text-decoration:none}.fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-active{background:#d6d6d6}.fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-disabled{color:#bdbdbd;cursor:default}.fr-command.fr-btn:not(.fr-active)+.fr-dropdown-menu{left:-3000px!important}.fr-command.fr-btn.fr-active+.fr-dropdown-menu{display:inline-block;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);-moz-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14)}.fr-command.fr-btn.fr-active+.fr-dropdown-menu .fr-dropdown-wrapper{height:auto;max-height:275px}.fr-bottom>.fr-command.fr-btn+.fr-dropdown-menu{border-radius:2px 2px 0 0;-moz-border-radius:2px 2px 0 0;-webkit-border-radius:2px 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.fr-toolbar.fr-rtl .fr-dropdown-wrapper,.fr-popup.fr-rtl .fr-dropdown-wrapper{text-align:right!important}body.prevent-scroll{overflow:hidden}body.prevent-scroll.fr-mobile{position:fixed;-webkit-overflow-scrolling:touch}.fr-modal{color:#222;font-family:Arial,Helvetica,sans-serif;position:fixed;overflow-x:auto;overflow-y:scroll;top:0;left:0;bottom:0;right:0;width:100%;z-index:2147483640;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:center;line-height:1.2}.fr-modal.fr-middle .fr-modal-wrapper{margin-top:0;margin-bottom:0;margin-left:auto;margin-right:auto;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);-o-transform:translate(-50%,-50%);position:absolute}.fr-modal .fr-modal-wrapper{border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;margin:20px auto;display:inline-block;background:#fff;min-width:300px;-webkit-box-shadow:0 5px 8px rgba(0,0,0,.19),0 4px 3px 1px rgba(0,0,0,.14);-moz-box-shadow:0 5px 8px rgba(0,0,0,.19),0 4px 3px 1px rgba(0,0,0,.14);box-shadow:0 5px 8px rgba(0,0,0,.19),0 4px 3px 1px rgba(0,0,0,.14);border:0;border-top:5px solid #222;overflow:hidden;width:90%;position:relative}@media (min-width:768px) and (max-width:991px){.fr-modal .fr-modal-wrapper{margin:30px auto;width:70%}}@media (min-width:992px){.fr-modal .fr-modal-wrapper{margin:50px auto;width:600px}}.fr-modal .fr-modal-wrapper .fr-modal-head{background:#fff;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);-moz-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);border-bottom:0;overflow:hidden;position:absolute;width:100%;min-height:42px;z-index:3;-webkit-transition:height .2s ease 0s;-moz-transition:height .2s ease 0s;-ms-transition:height .2s ease 0s;-o-transition:height .2s ease 0s}.fr-modal .fr-modal-wrapper .fr-modal-head .fr-modal-close{padding:12px;width:20px;font-size:16px;cursor:pointer;line-height:18px;color:#222;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;position:absolute;top:0;right:0;-webkit-transition:color .2s ease 0s;-moz-transition:color .2s ease 0s;-ms-transition:color .2s ease 0s;-o-transition:color .2s ease 0s}.fr-modal .fr-modal-wrapper .fr-modal-head h4{font-size:18px;padding:12px 10px;margin:0;font-weight:400;line-height:18px;display:inline-block;float:left}.fr-modal .fr-modal-wrapper div.fr-modal-body{height:100%;min-height:150px;overflow-y:scroll;padding-bottom:10px}.fr-modal .fr-modal-wrapper div.fr-modal-body:focus{outline:0}.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command{height:36px;line-height:1;color:#1e88e5;padding:10px;cursor:pointer;text-decoration:none;border:0;background:0 0;font-size:16px;outline:0;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command+button{margin-left:24px}.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:hover,.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:focus{background:#ebebeb;color:#1e88e5}.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:active{background:#d6d6d6;color:#1e88e5}.fr-modal .fr-modal-wrapper div.fr-modal-body button::-moz-focus-inner{border:0}.fr-desktop .fr-modal-wrapper .fr-modal-head i:hover{background:#ebebeb}.fr-overlay{position:fixed;top:0;bottom:0;left:0;right:0;background:#000;-webkit-opacity:.5;-moz-opacity:.5;opacity:.5;-ms-filter:"alpha(Opacity=0)";z-index:2147483639}.fr-popup{position:absolute;display:none;color:#222;background:#fff;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;font-family:Arial,Helvetica,sans-serif;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;margin-top:10px;z-index:2147483635;text-align:left;border:0;border-top:5px solid #222;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.2}.fr-popup .fr-input-focus{background:#f5f5f5}.fr-popup.fr-above{margin-top:-10px;border-top:0;border-bottom:5px solid #222;-webkit-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16)}.fr-popup.fr-active{display:block}.fr-popup.fr-hidden{-webkit-opacity:0;-moz-opacity:0;opacity:0;-ms-filter:"alpha(Opacity=0)"}.fr-popup.fr-empty{display:none!important}.fr-popup .fr-hs{display:block!important}.fr-popup .fr-hs.fr-hidden{display:none!important}.fr-popup .fr-input-line{position:relative;padding:8px 0}.fr-popup .fr-input-line input[type=text],.fr-popup .fr-input-line textarea{width:100%;margin:0 0 1px;border:0;border-bottom:solid 1px #bdbdbd;color:#222;font-size:14px;padding:6px 0 2px;background:rgba(0,0,0,0);position:relative;z-index:2;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.fr-popup .fr-input-line input[type=text]:focus,.fr-popup .fr-input-line textarea:focus{border-bottom:solid 2px #1e88e5;margin-bottom:0}.fr-popup .fr-input-line input+label,.fr-popup .fr-input-line textarea+label{position:absolute;top:0;left:0;font-size:12px;color:rgba(0,0,0,0);-webkit-transition:color .2s ease 0s;-moz-transition:color .2s ease 0s;-ms-transition:color .2s ease 0s;-o-transition:color .2s ease 0s;z-index:3;width:100%;display:block;background:#fff}.fr-popup .fr-input-line input.fr-not-empty:focus+label,.fr-popup .fr-input-line textarea.fr-not-empty:focus+label{color:#1e88e5}.fr-popup .fr-input-line input.fr-not-empty+label,.fr-popup .fr-input-line textarea.fr-not-empty+label{color:gray}.fr-popup input,.fr-popup textarea{user-select:text;-o-user-select:text;-moz-user-select:text;-khtml-user-select:text;-webkit-user-select:text;-ms-user-select:text;border-radius:0;-moz-border-radius:0;-webkit-border-radius:0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;outline:0}.fr-popup textarea{resize:none}.fr-popup .fr-buttons{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);padding:0 2px;white-space:nowrap;line-height:0;border-bottom:0}.fr-popup .fr-buttons::after{clear:both;display:block;content:"";height:0}.fr-popup .fr-buttons .fr-btn{display:inline-block;float:none}.fr-popup .fr-buttons .fr-btn i{float:left}.fr-popup .fr-buttons .fr-separator{display:inline-block;float:none}.fr-popup .fr-layer{width:225px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:10px;display:none}@media (min-width:768px){.fr-popup .fr-layer{width:300px}}.fr-popup .fr-layer.fr-active{display:inline-block}.fr-popup .fr-action-buttons{z-index:7;height:36px;text-align:right}.fr-popup .fr-action-buttons button.fr-command{height:36px;line-height:1;color:#1e88e5;padding:10px;cursor:pointer;text-decoration:none;border:0;background:0 0;font-size:16px;outline:0;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.fr-popup .fr-action-buttons button.fr-command+button{margin-left:24px}.fr-popup .fr-action-buttons button.fr-command:hover,.fr-popup .fr-action-buttons button.fr-command:focus{background:#ebebeb;color:#1e88e5}.fr-popup .fr-action-buttons button.fr-command:active{background:#d6d6d6;color:#1e88e5}.fr-popup .fr-action-buttons button::-moz-focus-inner{border:0}.fr-popup .fr-checkbox{position:relative;display:inline-block;width:16px;height:16px;line-height:1;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;vertical-align:middle}.fr-popup .fr-checkbox svg{margin-left:2px;margin-top:2px;display:none;width:10px;height:10px}.fr-popup .fr-checkbox span{border:solid 1px #222;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;width:16px;height:16px;display:inline-block;position:relative;z-index:1;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:background .2s ease 0s,border-color .2s ease 0s;-moz-transition:background .2s ease 0s,border-color .2s ease 0s;-ms-transition:background .2s ease 0s,border-color .2s ease 0s;-o-transition:background .2s ease 0s,border-color .2s ease 0s}.fr-popup .fr-checkbox input{position:absolute;z-index:2;-webkit-opacity:0;-moz-opacity:0;opacity:0;-ms-filter:"alpha(Opacity=0)";border:0 none;cursor:pointer;height:16px;margin:0;padding:0;width:16px;top:1px;left:1px}.fr-popup .fr-checkbox input:checked+span{background:#1e88e5;border-color:#1e88e5}.fr-popup .fr-checkbox input:checked+span svg{display:block}.fr-popup .fr-checkbox input:focus+span{border-color:#1e88e5}.fr-popup .fr-checkbox-line{font-size:14px;line-height:1.4px;margin-top:10px}.fr-popup .fr-checkbox-line label{cursor:pointer;margin:0 5px;vertical-align:middle}.fr-popup.fr-rtl{direction:rtl;text-align:right}.fr-popup.fr-rtl .fr-action-buttons{text-align:left}.fr-popup.fr-rtl .fr-input-line input+label,.fr-popup.fr-rtl .fr-input-line textarea+label{left:auto;right:0}.fr-popup.fr-rtl .fr-buttons .fr-separator.fr-vs{float:right}.fr-popup .fr-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid #222;position:absolute;top:-9px;left:50%;margin-left:-5px;display:inline-block}.fr-popup.fr-above .fr-arrow{top:auto;bottom:-9px;border-bottom:0;border-top:5px solid #222}.fr-text-edit-layer{width:250px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block!important}.fr-toolbar{color:#222;background:#fff;position:relative;z-index:4;font-family:Arial,Helvetica,sans-serif;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;padding:0 2px;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);text-align:left;border:0;border-top:5px solid #222;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.2}.fr-toolbar::after{clear:both;display:block;content:"";height:0}.fr-toolbar.fr-rtl{text-align:right}.fr-toolbar.fr-inline{display:none;white-space:nowrap;position:absolute;margin-top:10px}.fr-toolbar.fr-inline .fr-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid #222;position:absolute;top:-9px;left:50%;margin-left:-5px;display:inline-block}.fr-toolbar.fr-inline.fr-above{margin-top:-10px;-webkit-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);border-bottom:5px solid #222;border-top:0}.fr-toolbar.fr-inline.fr-above .fr-arrow{top:auto;bottom:-9px;border-bottom:0;border-top-color:inherit;border-top-style:solid;border-top-width:5px}.fr-toolbar.fr-top{top:0;border-radius:2px 2px 0 0;-moz-border-radius:2px 2px 0 0;-webkit-border-radius:2px 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.fr-toolbar.fr-bottom{bottom:0;border-radius:0 0 2px 2px;-moz-border-radius:0 0 2px 2px;-webkit-border-radius:0 0 2px 2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.fr-separator{background:#ebebeb;display:block;vertical-align:top;float:left}.fr-separator+.fr-separator{display:none}.fr-separator.fr-vs{height:34px;width:1px;margin:2px}.fr-separator.fr-hs{clear:both;height:1px;width:calc(100% - (2 * 2px));margin:0 2px}.fr-separator.fr-hidden{display:none!important}.fr-rtl .fr-separator{float:right}.fr-toolbar.fr-inline .fr-separator.fr-hs{float:none}.fr-toolbar.fr-inline .fr-separator.fr-vs{float:none;display:inline-block}.fr-visibility-helper{display:none;margin-left:0!important}@media (min-width:768px){.fr-visibility-helper{margin-left:1px!important}}@media (min-width:992px){.fr-visibility-helper{margin-left:2px!important}}@media (min-width:1200px){.fr-visibility-helper{margin-left:3px!important}}.fr-opacity-0{-webkit-opacity:0;-moz-opacity:0;opacity:0;-ms-filter:"alpha(Opacity=0)"}.fr-box{position:relative}.fr-sticky{position:-webkit-sticky;position:-moz-sticky;position:-ms-sticky;position:-o-sticky;position:sticky}.fr-sticky-off{position:relative}.fr-sticky-on{position:fixed}.fr-sticky-on.fr-sticky-ios{position:absolute;left:0;right:0;width:auto!important}.fr-sticky-dummy{display:none}.fr-sticky-on+.fr-sticky-dummy,.fr-sticky-box>.fr-sticky-dummy{display:block}span.fr-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0} \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/froala_style.css b/Mobile.Search.Web/Scripts/froala-editor/css/froala_style.css deleted file mode 100644 index 161b6b7..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/froala_style.css +++ /dev/null @@ -1,408 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after { - clear: both; - display: block; - content: ""; - height: 0; -} -.hide-by-clipping { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - border: 0; -} -img.fr-rounded, -.fr-img-caption.fr-rounded img { - border-radius: 10px; - -moz-border-radius: 10px; - -webkit-border-radius: 10px; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; -} -img.fr-bordered, -.fr-img-caption.fr-bordered img { - border: solid 5px #CCC; -} -img.fr-bordered { - -webkit-box-sizing: content-box; - -moz-box-sizing: content-box; - box-sizing: content-box; -} -.fr-img-caption.fr-bordered img { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} -img.fr-shadow, -.fr-img-caption.fr-shadow img { - -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); - -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); -} -.fr-view span[style~="color:"] a { - color: inherit; -} -.fr-view strong { - font-weight: 700; -} -.fr-view table { - border: none; - border-collapse: collapse; - empty-cells: show; - max-width: 100%; -} -.fr-view table.fr-dashed-borders td, -.fr-view table.fr-dashed-borders th { - border-style: dashed; -} -.fr-view table.fr-alternate-rows tbody tr:nth-child(2n) { - background: #f5f5f5; -} -.fr-view table td, -.fr-view table th { - border: 1px solid #dddddd; -} -.fr-view table td:empty, -.fr-view table th:empty { - height: 20px; -} -.fr-view table td.fr-highlighted, -.fr-view table th.fr-highlighted { - border: 1px double red; -} -.fr-view table td.fr-thick, -.fr-view table th.fr-thick { - border-width: 2px; -} -.fr-view table th { - background: #e6e6e6; -} -.fr-view hr { - clear: both; - user-select: none; - -o-user-select: none; - -moz-user-select: none; - -khtml-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; - page-break-after: always; -} -.fr-view .fr-file { - position: relative; -} -.fr-view .fr-file::after { - position: relative; - content: "\1F4CE"; - font-weight: normal; -} -.fr-view pre { - white-space: pre-wrap; - word-wrap: break-word; -} -.fr-view[dir="rtl"] blockquote { - border-left: none; - border-right: solid 2px #5e35b1; - margin-right: 0; - padding-right: 5px; - padding-left: 0px; -} -.fr-view[dir="rtl"] blockquote blockquote { - border-color: #00bcd4; -} -.fr-view[dir="rtl"] blockquote blockquote blockquote { - border-color: #43a047; -} -.fr-view blockquote { - border-left: solid 2px #5e35b1; - margin-left: 0; - padding-left: 5px; - color: #5e35b1; -} -.fr-view blockquote blockquote { - border-color: #00bcd4; - color: #00bcd4; -} -.fr-view blockquote blockquote blockquote { - border-color: #43a047; - color: #43a047; -} -.fr-view span.fr-emoticon { - font-weight: normal; - font-family: "Apple Color Emoji", "Segoe UI Emoji", "NotoColorEmoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols"; - display: inline; - line-height: 0; -} -.fr-view span.fr-emoticon.fr-emoticon-img { - background-repeat: no-repeat !important; - font-size: inherit; - height: 1em; - width: 1em; - min-height: 20px; - min-width: 20px; - display: inline-block; - margin: -0.1em 0.1em 0.1em; - line-height: 1; - vertical-align: middle; -} -.fr-view .fr-text-gray { - color: #AAA !important; -} -.fr-view .fr-text-bordered { - border-top: solid 1px #222; - border-bottom: solid 1px #222; - padding: 10px 0; -} -.fr-view .fr-text-spaced { - letter-spacing: 1px; -} -.fr-view .fr-text-uppercase { - text-transform: uppercase; -} -.fr-view img { - position: relative; - max-width: 100%; -} -.fr-view img.fr-dib { - margin: 5px auto; - display: block; - float: none; - vertical-align: top; -} -.fr-view img.fr-dib.fr-fil { - margin-left: 0; - text-align: left; -} -.fr-view img.fr-dib.fr-fir { - margin-right: 0; - text-align: right; -} -.fr-view img.fr-dii { - display: inline-block; - float: none; - vertical-align: bottom; - margin-left: 5px; - margin-right: 5px; - max-width: calc(100% - (2 * 5px)); -} -.fr-view img.fr-dii.fr-fil { - float: left; - margin: 5px 5px 5px 0; - max-width: calc(100% - 5px); -} -.fr-view img.fr-dii.fr-fir { - float: right; - margin: 5px 0 5px 5px; - max-width: calc(100% - 5px); -} -.fr-view span.fr-img-caption { - position: relative; - max-width: 100%; -} -.fr-view span.fr-img-caption.fr-dib { - margin: 5px auto; - display: block; - float: none; - vertical-align: top; -} -.fr-view span.fr-img-caption.fr-dib.fr-fil { - margin-left: 0; - text-align: left; -} -.fr-view span.fr-img-caption.fr-dib.fr-fir { - margin-right: 0; - text-align: right; -} -.fr-view span.fr-img-caption.fr-dii { - display: inline-block; - float: none; - vertical-align: bottom; - margin-left: 5px; - margin-right: 5px; - max-width: calc(100% - (2 * 5px)); -} -.fr-view span.fr-img-caption.fr-dii.fr-fil { - float: left; - margin: 5px 5px 5px 0; - max-width: calc(100% - 5px); -} -.fr-view span.fr-img-caption.fr-dii.fr-fir { - float: right; - margin: 5px 0 5px 5px; - max-width: calc(100% - 5px); -} -.fr-view .fr-video { - text-align: center; - position: relative; -} -.fr-view .fr-video > * { - -webkit-box-sizing: content-box; - -moz-box-sizing: content-box; - box-sizing: content-box; - max-width: 100%; - border: none; -} -.fr-view .fr-video.fr-dvb { - display: block; - clear: both; -} -.fr-view .fr-video.fr-dvb.fr-fvl { - text-align: left; -} -.fr-view .fr-video.fr-dvb.fr-fvr { - text-align: right; -} -.fr-view .fr-video.fr-dvi { - display: inline-block; -} -.fr-view .fr-video.fr-dvi.fr-fvl { - float: left; -} -.fr-view .fr-video.fr-dvi.fr-fvr { - float: right; -} -.fr-view a.fr-strong { - font-weight: 700; -} -.fr-view a.fr-green { - color: green; -} -.fr-view .fr-img-caption { - text-align: center; -} -.fr-view .fr-img-caption .fr-img-wrap { - padding: 0px; - display: inline-block; - margin: auto; - text-align: center; - width: 100%; -} -.fr-view .fr-img-caption .fr-img-wrap img { - display: block; - margin: auto; - width: 100%; -} -.fr-view .fr-img-caption .fr-img-wrap > span { - margin: auto; - display: block; - padding: 5px 5px 10px; - font-size: 14px; - font-weight: initial; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - -webkit-opacity: 0.9; - -moz-opacity: 0.9; - opacity: 0.9; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; - width: 100%; - text-align: center; -} -.fr-view button.fr-rounded, -.fr-view input.fr-rounded, -.fr-view textarea.fr-rounded { - border-radius: 10px; - -moz-border-radius: 10px; - -webkit-border-radius: 10px; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; -} -.fr-view button.fr-large, -.fr-view input.fr-large, -.fr-view textarea.fr-large { - font-size: 24px; -} -/** - * Image style. - */ -a.fr-view.fr-strong { - font-weight: 700; -} -a.fr-view.fr-green { - color: green; -} -/** - * Link style. - */ -img.fr-view { - position: relative; - max-width: 100%; -} -img.fr-view.fr-dib { - margin: 5px auto; - display: block; - float: none; - vertical-align: top; -} -img.fr-view.fr-dib.fr-fil { - margin-left: 0; - text-align: left; -} -img.fr-view.fr-dib.fr-fir { - margin-right: 0; - text-align: right; -} -img.fr-view.fr-dii { - display: inline-block; - float: none; - vertical-align: bottom; - margin-left: 5px; - margin-right: 5px; - max-width: calc(100% - (2 * 5px)); -} -img.fr-view.fr-dii.fr-fil { - float: left; - margin: 5px 5px 5px 0; - max-width: calc(100% - 5px); -} -img.fr-view.fr-dii.fr-fir { - float: right; - margin: 5px 0 5px 5px; - max-width: calc(100% - 5px); -} -span.fr-img-caption.fr-view { - position: relative; - max-width: 100%; -} -span.fr-img-caption.fr-view.fr-dib { - margin: 5px auto; - display: block; - float: none; - vertical-align: top; -} -span.fr-img-caption.fr-view.fr-dib.fr-fil { - margin-left: 0; - text-align: left; -} -span.fr-img-caption.fr-view.fr-dib.fr-fir { - margin-right: 0; - text-align: right; -} -span.fr-img-caption.fr-view.fr-dii { - display: inline-block; - float: none; - vertical-align: bottom; - margin-left: 5px; - margin-right: 5px; - max-width: calc(100% - (2 * 5px)); -} -span.fr-img-caption.fr-view.fr-dii.fr-fil { - float: left; - margin: 5px 5px 5px 0; - max-width: calc(100% - 5px); -} -span.fr-img-caption.fr-view.fr-dii.fr-fir { - float: right; - margin: 5px 0 5px 5px; - max-width: calc(100% - 5px); -} diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/froala_style.min.css b/Mobile.Search.Web/Scripts/froala-editor/css/froala_style.min.css deleted file mode 100644 index fa30165..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/froala_style.min.css +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}img.fr-rounded,.fr-img-caption.fr-rounded img{border-radius:10px;-moz-border-radius:10px;-webkit-border-radius:10px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}img.fr-bordered,.fr-img-caption.fr-bordered img{border:solid 5px #CCC}img.fr-bordered{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.fr-img-caption.fr-bordered img{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}img.fr-shadow,.fr-img-caption.fr-shadow img{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.fr-view span[style~="color:"] a{color:inherit}.fr-view strong{font-weight:700}.fr-view table{border:0;border-collapse:collapse;empty-cells:show;max-width:100%}.fr-view table.fr-dashed-borders td,.fr-view table.fr-dashed-borders th{border-style:dashed}.fr-view table.fr-alternate-rows tbody tr:nth-child(2n){background:#f5f5f5}.fr-view table td,.fr-view table th{border:1px solid #ddd}.fr-view table td:empty,.fr-view table th:empty{height:20px}.fr-view table td.fr-highlighted,.fr-view table th.fr-highlighted{border:1px double red}.fr-view table td.fr-thick,.fr-view table th.fr-thick{border-width:2px}.fr-view table th{background:#e6e6e6}.fr-view hr{clear:both;user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;page-break-after:always}.fr-view .fr-file{position:relative}.fr-view .fr-file::after{position:relative;content:"\1F4CE";font-weight:400}.fr-view pre{white-space:pre-wrap;word-wrap:break-word}.fr-view[dir=rtl] blockquote{border-left:0;border-right:solid 2px #5e35b1;margin-right:0;padding-right:5px;padding-left:0}.fr-view[dir=rtl] blockquote blockquote{border-color:#00bcd4}.fr-view[dir=rtl] blockquote blockquote blockquote{border-color:#43a047}.fr-view blockquote{border-left:solid 2px #5e35b1;margin-left:0;padding-left:5px;color:#5e35b1}.fr-view blockquote blockquote{border-color:#00bcd4;color:#00bcd4}.fr-view blockquote blockquote blockquote{border-color:#43a047;color:#43a047}.fr-view span.fr-emoticon{font-weight:400;font-family:"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;display:inline;line-height:0}.fr-view span.fr-emoticon.fr-emoticon-img{background-repeat:no-repeat!important;font-size:inherit;height:1em;width:1em;min-height:20px;min-width:20px;display:inline-block;margin:-.1em .1em .1em;line-height:1;vertical-align:middle}.fr-view .fr-text-gray{color:#AAA!important}.fr-view .fr-text-bordered{border-top:solid 1px #222;border-bottom:solid 1px #222;padding:10px 0}.fr-view .fr-text-spaced{letter-spacing:1px}.fr-view .fr-text-uppercase{text-transform:uppercase}.fr-view img{position:relative;max-width:100%}.fr-view img.fr-dib{margin:5px auto;display:block;float:none;vertical-align:top}.fr-view img.fr-dib.fr-fil{margin-left:0;text-align:left}.fr-view img.fr-dib.fr-fir{margin-right:0;text-align:right}.fr-view img.fr-dii{display:inline-block;float:none;vertical-align:bottom;margin-left:5px;margin-right:5px;max-width:calc(100% - (2 * 5px))}.fr-view img.fr-dii.fr-fil{float:left;margin:5px 5px 5px 0;max-width:calc(100% - 5px)}.fr-view img.fr-dii.fr-fir{float:right;margin:5px 0 5px 5px;max-width:calc(100% - 5px)}.fr-view span.fr-img-caption{position:relative;max-width:100%}.fr-view span.fr-img-caption.fr-dib{margin:5px auto;display:block;float:none;vertical-align:top}.fr-view span.fr-img-caption.fr-dib.fr-fil{margin-left:0;text-align:left}.fr-view span.fr-img-caption.fr-dib.fr-fir{margin-right:0;text-align:right}.fr-view span.fr-img-caption.fr-dii{display:inline-block;float:none;vertical-align:bottom;margin-left:5px;margin-right:5px;max-width:calc(100% - (2 * 5px))}.fr-view span.fr-img-caption.fr-dii.fr-fil{float:left;margin:5px 5px 5px 0;max-width:calc(100% - 5px)}.fr-view span.fr-img-caption.fr-dii.fr-fir{float:right;margin:5px 0 5px 5px;max-width:calc(100% - 5px)}.fr-view .fr-video{text-align:center;position:relative}.fr-view .fr-video>*{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;max-width:100%;border:0}.fr-view .fr-video.fr-dvb{display:block;clear:both}.fr-view .fr-video.fr-dvb.fr-fvl{text-align:left}.fr-view .fr-video.fr-dvb.fr-fvr{text-align:right}.fr-view .fr-video.fr-dvi{display:inline-block}.fr-view .fr-video.fr-dvi.fr-fvl{float:left}.fr-view .fr-video.fr-dvi.fr-fvr{float:right}.fr-view a.fr-strong{font-weight:700}.fr-view a.fr-green{color:green}.fr-view .fr-img-caption{text-align:center}.fr-view .fr-img-caption .fr-img-wrap{padding:0;display:inline-block;margin:auto;text-align:center;width:100%}.fr-view .fr-img-caption .fr-img-wrap img{display:block;margin:auto;width:100%}.fr-view .fr-img-caption .fr-img-wrap>span{margin:auto;display:block;padding:5px 5px 10px;font-size:14px;font-weight:initial;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-opacity:.9;-moz-opacity:.9;opacity:.9;-ms-filter:"alpha(Opacity=0)";width:100%;text-align:center}.fr-view button.fr-rounded,.fr-view input.fr-rounded,.fr-view textarea.fr-rounded{border-radius:10px;-moz-border-radius:10px;-webkit-border-radius:10px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.fr-view button.fr-large,.fr-view input.fr-large,.fr-view textarea.fr-large{font-size:24px}a.fr-view.fr-strong{font-weight:700}a.fr-view.fr-green{color:green}img.fr-view{position:relative;max-width:100%}img.fr-view.fr-dib{margin:5px auto;display:block;float:none;vertical-align:top}img.fr-view.fr-dib.fr-fil{margin-left:0;text-align:left}img.fr-view.fr-dib.fr-fir{margin-right:0;text-align:right}img.fr-view.fr-dii{display:inline-block;float:none;vertical-align:bottom;margin-left:5px;margin-right:5px;max-width:calc(100% - (2 * 5px))}img.fr-view.fr-dii.fr-fil{float:left;margin:5px 5px 5px 0;max-width:calc(100% - 5px)}img.fr-view.fr-dii.fr-fir{float:right;margin:5px 0 5px 5px;max-width:calc(100% - 5px)}span.fr-img-caption.fr-view{position:relative;max-width:100%}span.fr-img-caption.fr-view.fr-dib{margin:5px auto;display:block;float:none;vertical-align:top}span.fr-img-caption.fr-view.fr-dib.fr-fil{margin-left:0;text-align:left}span.fr-img-caption.fr-view.fr-dib.fr-fir{margin-right:0;text-align:right}span.fr-img-caption.fr-view.fr-dii{display:inline-block;float:none;vertical-align:bottom;margin-left:5px;margin-right:5px;max-width:calc(100% - (2 * 5px))}span.fr-img-caption.fr-view.fr-dii.fr-fil{float:left;margin:5px 5px 5px 0;max-width:calc(100% - 5px)}span.fr-img-caption.fr-view.fr-dii.fr-fir{float:right;margin:5px 0 5px 5px;max-width:calc(100% - 5px)} \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/char_counter.css b/Mobile.Search.Web/Scripts/froala-editor/css/plugins/char_counter.css deleted file mode 100644 index 70e72b7..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/char_counter.css +++ /dev/null @@ -1,57 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after { - clear: both; - display: block; - content: ""; - height: 0; -} -.hide-by-clipping { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - border: 0; -} -.fr-box .fr-counter { - position: absolute; - bottom: 0px; - padding: 5px; - right: 0px; - color: #cccccc; - content: attr(data-chars); - font-size: 15px; - font-family: "Times New Roman", Georgia, Serif; - z-index: 1; - background: #ffffff; - border-top: solid 1px #ebebeb; - border-left: solid 1px #ebebeb; - border-radius: 2px 0 0 0; - -moz-border-radius: 2px 0 0 0; - -webkit-border-radius: 2px 0 0 0; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; -} -.fr-box.fr-rtl .fr-counter { - left: 0px; - right: auto; - border-left: none; - border-right: solid 1px #ebebeb; - border-radius: 0 2px 0 0; - -moz-border-radius: 0 2px 0 0; - -webkit-border-radius: 0 2px 0 0; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; -} -.fr-box.fr-code-view .fr-counter { - display: none; -} diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/char_counter.min.css b/Mobile.Search.Web/Scripts/froala-editor/css/plugins/char_counter.min.css deleted file mode 100644 index 858a65a..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/char_counter.min.css +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.fr-box .fr-counter{position:absolute;bottom:0;padding:5px;right:0;color:#ccc;content:attr(data-chars);font-size:15px;font-family:"Times New Roman",Georgia,Serif;z-index:1;background:#fff;border-top:solid 1px #ebebeb;border-left:solid 1px #ebebeb;border-radius:2px 0 0;-moz-border-radius:2px 0 0;-webkit-border-radius:2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.fr-box.fr-rtl .fr-counter{left:0;right:auto;border-left:0;border-right:solid 1px #ebebeb;border-radius:0 2px 0 0;-moz-border-radius:0 2px 0 0;-webkit-border-radius:0 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.fr-box.fr-code-view .fr-counter{display:none} \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/code_view.css b/Mobile.Search.Web/Scripts/froala-editor/css/plugins/code_view.css deleted file mode 100644 index 937c610..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/code_view.css +++ /dev/null @@ -1,112 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after { - clear: both; - display: block; - content: ""; - height: 0; -} -.hide-by-clipping { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - border: 0; -} -textarea.fr-code { - display: none; - width: 100%; - resize: none; - -moz-resize: none; - -webkit-resize: none; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - border: none; - padding: 10px; - margin: 0px; - font-family: "Courier New", monospace; - font-size: 14px; - background: #ffffff; - color: #000000; - outline: none; -} -.fr-box.fr-rtl textarea.fr-code { - direction: rtl; -} -.fr-box .CodeMirror { - display: none; -} -.fr-box.fr-code-view textarea.fr-code { - display: block; -} -.fr-box.fr-code-view.fr-inline { - -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); - -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); -} -.fr-box.fr-code-view .fr-element, -.fr-box.fr-code-view .fr-placeholder, -.fr-box.fr-code-view .fr-iframe { - display: none; -} -.fr-box.fr-code-view .CodeMirror { - display: block; -} -.fr-box.fr-inline.fr-code-view .fr-command.fr-btn.html-switch { - display: block; -} -.fr-box.fr-inline .fr-command.fr-btn.html-switch { - position: absolute; - top: 0; - right: 0; - -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); - -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); - display: none; - background: #ffffff; - color: #222222; - -moz-outline: 0; - outline: 0; - border: 0; - line-height: 1; - cursor: pointer; - text-align: left; - padding: 12px 12px; - -webkit-transition: background 0.2s ease 0s; - -moz-transition: background 0.2s ease 0s; - -ms-transition: background 0.2s ease 0s; - -o-transition: background 0.2s ease 0s; - border-radius: 0; - -moz-border-radius: 0; - -webkit-border-radius: 0; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; - z-index: 2; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - text-decoration: none; - user-select: none; - -o-user-select: none; - -moz-user-select: none; - -khtml-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; -} -.fr-box.fr-inline .fr-command.fr-btn.html-switch i { - font-size: 14px; - width: 14px; - text-align: center; -} -.fr-box.fr-inline .fr-command.fr-btn.html-switch.fr-desktop:hover { - background: #ebebeb; -} diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/code_view.min.css b/Mobile.Search.Web/Scripts/froala-editor/css/plugins/code_view.min.css deleted file mode 100644 index 2a37c3c..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/code_view.min.css +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}textarea.fr-code{display:none;width:100%;resize:none;-moz-resize:none;-webkit-resize:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border:0;padding:10px;margin:0;font-family:"Courier New",monospace;font-size:14px;background:#fff;color:#000;outline:0}.fr-box.fr-rtl textarea.fr-code{direction:rtl}.fr-box .CodeMirror{display:none}.fr-box.fr-code-view textarea.fr-code{display:block}.fr-box.fr-code-view.fr-inline{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.fr-box.fr-code-view .fr-element,.fr-box.fr-code-view .fr-placeholder,.fr-box.fr-code-view .fr-iframe{display:none}.fr-box.fr-code-view .CodeMirror{display:block}.fr-box.fr-inline.fr-code-view .fr-command.fr-btn.html-switch{display:block}.fr-box.fr-inline .fr-command.fr-btn.html-switch{position:absolute;top:0;right:0;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);display:none;background:#fff;color:#222;-moz-outline:0;outline:0;border:0;line-height:1;cursor:pointer;text-align:left;padding:12px;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s;border-radius:0;-moz-border-radius:0;-webkit-border-radius:0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;z-index:2;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;text-decoration:none;user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none}.fr-box.fr-inline .fr-command.fr-btn.html-switch i{font-size:14px;width:14px;text-align:center}.fr-box.fr-inline .fr-command.fr-btn.html-switch.fr-desktop:hover{background:#ebebeb} \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/colors.css b/Mobile.Search.Web/Scripts/froala-editor/css/plugins/colors.css deleted file mode 100644 index 00a5c4d..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/colors.css +++ /dev/null @@ -1,155 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after { - clear: both; - display: block; - content: ""; - height: 0; -} -.hide-by-clipping { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - border: 0; -} -.fr-popup .fr-colors-tabs { - -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); - -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); - margin-bottom: 5px; - line-height: 16px; - margin-left: -2px; - margin-right: -2px; -} -.fr-popup .fr-colors-tabs .fr-colors-tab { - display: inline-block; - width: 50%; - cursor: pointer; - text-align: center; - color: #222222; - font-size: 13px; - padding: 8px 0; - position: relative; -} -.fr-popup .fr-colors-tabs .fr-colors-tab:hover, -.fr-popup .fr-colors-tabs .fr-colors-tab:focus { - color: #1e88e5; -} -.fr-popup .fr-colors-tabs .fr-colors-tab[data-param1="background"]::after { - position: absolute; - bottom: 0; - left: 0; - width: 100%; - height: 2px; - background: #1e88e5; - content: ''; - -webkit-transition: transform 0.2s ease 0s; - -moz-transition: transform 0.2s ease 0s; - -ms-transition: transform 0.2s ease 0s; - -o-transition: transform 0.2s ease 0s; -} -.fr-popup .fr-colors-tabs .fr-colors-tab.fr-selected-tab { - color: #1e88e5; -} -.fr-popup .fr-colors-tabs .fr-colors-tab.fr-selected-tab[data-param1="text"] ~ [data-param1="background"]::after { - -webkit-transform: translate3d(-100%, 0, 0); - -moz-transform: translate3d(-100%, 0, 0); - -ms-transform: translate3d(-100%, 0, 0); - -o-transform: translate3d(-100%, 0, 0); -} -.fr-popup .fr-color-hex-layer { - width: 100%; - margin: 0px; - padding: 10px; -} -.fr-popup .fr-color-hex-layer .fr-input-line { - float: left; - width: calc(100% - 50px); - padding: 8px 0 0; -} -.fr-popup .fr-color-hex-layer .fr-action-buttons { - float: right; - width: 50px; -} -.fr-popup .fr-color-hex-layer .fr-action-buttons button { - background-color: #1e88e5; - color: #FFF; - border-radius: 2px; - -moz-border-radius: 2px; - -webkit-border-radius: 2px; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; - font-size: 13px; - height: 32px; -} -.fr-popup .fr-color-hex-layer .fr-action-buttons button:hover { - background-color: #166dba; - color: #FFF; -} -.fr-popup .fr-separator + .fr-colors-tabs { - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; - margin-left: 2px; - margin-right: 2px; -} -.fr-popup .fr-color-set { - line-height: 0; - display: none; -} -.fr-popup .fr-color-set.fr-selected-set { - display: block; -} -.fr-popup .fr-color-set > span { - display: inline-block; - width: 32px; - height: 32px; - position: relative; - z-index: 1; -} -.fr-popup .fr-color-set > span > i, -.fr-popup .fr-color-set > span > svg { - text-align: center; - line-height: 32px; - height: 32px; - width: 32px; - font-size: 13px; - position: absolute; - bottom: 0; - cursor: default; - left: 0; -} -.fr-popup .fr-color-set > span .fr-selected-color { - color: #ffffff; - font-family: FontAwesome; - font-size: 13px; - font-weight: 400; - line-height: 32px; - position: absolute; - top: 0; - bottom: 0; - right: 0; - left: 0; - text-align: center; - cursor: default; -} -.fr-popup .fr-color-set > span:hover, -.fr-popup .fr-color-set > span:focus { - outline: 1px solid #222222; - z-index: 2; -} -.fr-rtl .fr-popup .fr-colors-tabs .fr-colors-tab.fr-selected-tab[data-param1="text"] ~ [data-param1="background"]::after { - -webkit-transform: translate3d(100%, 0, 0); - -moz-transform: translate3d(100%, 0, 0); - -ms-transform: translate3d(100%, 0, 0); - -o-transform: translate3d(100%, 0, 0); -} diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/colors.min.css b/Mobile.Search.Web/Scripts/froala-editor/css/plugins/colors.min.css deleted file mode 100644 index a35fedc..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/colors.min.css +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.fr-popup .fr-colors-tabs{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);margin-bottom:5px;line-height:16px;margin-left:-2px;margin-right:-2px}.fr-popup .fr-colors-tabs .fr-colors-tab{display:inline-block;width:50%;cursor:pointer;text-align:center;color:#222;font-size:13px;padding:8px 0;position:relative}.fr-popup .fr-colors-tabs .fr-colors-tab:hover,.fr-popup .fr-colors-tabs .fr-colors-tab:focus{color:#1e88e5}.fr-popup .fr-colors-tabs .fr-colors-tab[data-param1=background]::after{position:absolute;bottom:0;left:0;width:100%;height:2px;background:#1e88e5;content:'';-webkit-transition:transform .2s ease 0s;-moz-transition:transform .2s ease 0s;-ms-transition:transform .2s ease 0s;-o-transition:transform .2s ease 0s}.fr-popup .fr-colors-tabs .fr-colors-tab.fr-selected-tab{color:#1e88e5}.fr-popup .fr-colors-tabs .fr-colors-tab.fr-selected-tab[data-param1=text]~[data-param1=background]::after{-webkit-transform:translate3d(-100%,0,0);-moz-transform:translate3d(-100%,0,0);-ms-transform:translate3d(-100%,0,0);-o-transform:translate3d(-100%,0,0)}.fr-popup .fr-color-hex-layer{width:100%;margin:0;padding:10px}.fr-popup .fr-color-hex-layer .fr-input-line{float:left;width:calc(100% - 50px);padding:8px 0 0}.fr-popup .fr-color-hex-layer .fr-action-buttons{float:right;width:50px}.fr-popup .fr-color-hex-layer .fr-action-buttons button{background-color:#1e88e5;color:#FFF;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;font-size:13px;height:32px}.fr-popup .fr-color-hex-layer .fr-action-buttons button:hover{background-color:#166dba;color:#FFF}.fr-popup .fr-separator+.fr-colors-tabs{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;margin-left:2px;margin-right:2px}.fr-popup .fr-color-set{line-height:0;display:none}.fr-popup .fr-color-set.fr-selected-set{display:block}.fr-popup .fr-color-set>span{display:inline-block;width:32px;height:32px;position:relative;z-index:1}.fr-popup .fr-color-set>span>i,.fr-popup .fr-color-set>span>svg{text-align:center;line-height:32px;height:32px;width:32px;font-size:13px;position:absolute;bottom:0;cursor:default;left:0}.fr-popup .fr-color-set>span .fr-selected-color{color:#fff;font-family:FontAwesome;font-size:13px;font-weight:400;line-height:32px;position:absolute;top:0;bottom:0;right:0;left:0;text-align:center;cursor:default}.fr-popup .fr-color-set>span:hover,.fr-popup .fr-color-set>span:focus{outline:1px solid #222;z-index:2}.fr-rtl .fr-popup .fr-colors-tabs .fr-colors-tab.fr-selected-tab[data-param1=text]~[data-param1=background]::after{-webkit-transform:translate3d(100%,0,0);-moz-transform:translate3d(100%,0,0);-ms-transform:translate3d(100%,0,0);-o-transform:translate3d(100%,0,0)} \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/draggable.css b/Mobile.Search.Web/Scripts/froala-editor/css/plugins/draggable.css deleted file mode 100644 index e45c417..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/draggable.css +++ /dev/null @@ -1,43 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after { - clear: both; - display: block; - content: ""; - height: 0; -} -.hide-by-clipping { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - border: 0; -} -.fr-drag-helper { - background: #1e88e5; - height: 2px; - margin-top: -1px; - -webkit-opacity: 0.2; - -moz-opacity: 0.2; - opacity: 0.2; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; - position: absolute; - z-index: 2147483640; - display: none; -} -.fr-drag-helper.fr-visible { - display: block; -} -.fr-dragging { - -webkit-opacity: 0.4; - -moz-opacity: 0.4; - opacity: 0.4; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; -} diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/draggable.min.css b/Mobile.Search.Web/Scripts/froala-editor/css/plugins/draggable.min.css deleted file mode 100644 index 0227fbb..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/draggable.min.css +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.fr-drag-helper{background:#1e88e5;height:2px;margin-top:-1px;-webkit-opacity:.2;-moz-opacity:.2;opacity:.2;-ms-filter:"alpha(Opacity=0)";position:absolute;z-index:2147483640;display:none}.fr-drag-helper.fr-visible{display:block}.fr-dragging{-webkit-opacity:.4;-moz-opacity:.4;opacity:.4;-ms-filter:"alpha(Opacity=0)"} \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/emoticons.css b/Mobile.Search.Web/Scripts/froala-editor/css/plugins/emoticons.css deleted file mode 100644 index e987a8b..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/emoticons.css +++ /dev/null @@ -1,42 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after { - clear: both; - display: block; - content: ""; - height: 0; -} -.hide-by-clipping { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - border: 0; -} -.fr-popup .fr-emoticon { - display: inline-block; - font-size: 20px; - width: 20px; - padding: 5px; - line-height: 1; - cursor: default; - font-weight: normal; - font-family: "Apple Color Emoji", "Segoe UI Emoji", "NotoColorEmoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols"; - -webkit-box-sizing: content-box; - -moz-box-sizing: content-box; - box-sizing: content-box; -} -.fr-popup .fr-emoticon img { - height: 20px; -} -.fr-popup .fr-link:focus { - outline: 0; - background: #ebebeb; -} diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/emoticons.min.css b/Mobile.Search.Web/Scripts/froala-editor/css/plugins/emoticons.min.css deleted file mode 100644 index 0df9ea2..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/emoticons.min.css +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.fr-popup .fr-emoticon{display:inline-block;font-size:20px;width:20px;padding:5px;line-height:1;cursor:default;font-weight:400;font-family:"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.fr-popup .fr-emoticon img{height:20px}.fr-popup .fr-link:focus{outline:0;background:#ebebeb} \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/file.css b/Mobile.Search.Web/Scripts/froala-editor/css/plugins/file.css deleted file mode 100644 index b2c6c08..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/file.css +++ /dev/null @@ -1,146 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after { - clear: both; - display: block; - content: ""; - height: 0; -} -.hide-by-clipping { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - border: 0; -} -.fr-popup .fr-file-upload-layer { - border: dashed 2px #bdbdbd; - padding: 25px 0; - position: relative; - font-size: 14px; - letter-spacing: 1px; - line-height: 140%; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - text-align: center; -} -.fr-popup .fr-file-upload-layer:hover { - background: #ebebeb; -} -.fr-popup .fr-file-upload-layer.fr-drop { - background: #ebebeb; - border-color: #1e88e5; -} -.fr-popup .fr-file-upload-layer .fr-form { - -webkit-opacity: 0; - -moz-opacity: 0; - opacity: 0; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; - position: absolute; - top: 0; - bottom: 0; - left: 0; - right: 0; - z-index: 2147483640; - overflow: hidden; - margin: 0 !important; - padding: 0 !important; - width: 100% !important; -} -.fr-popup .fr-file-upload-layer .fr-form input { - cursor: pointer; - position: absolute; - right: 0px; - top: 0px; - bottom: 0px; - width: 500%; - height: 100%; - margin: 0px; - font-size: 400px; -} -.fr-popup .fr-file-progress-bar-layer { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} -.fr-popup .fr-file-progress-bar-layer > h3 { - font-size: 16px; - margin: 10px 0; - font-weight: normal; -} -.fr-popup .fr-file-progress-bar-layer > div.fr-action-buttons { - display: none; -} -.fr-popup .fr-file-progress-bar-layer > div.fr-loader { - background: #bcdbf7; - height: 10px; - width: 100%; - margin-top: 20px; - overflow: hidden; - position: relative; -} -.fr-popup .fr-file-progress-bar-layer > div.fr-loader span { - display: block; - height: 100%; - width: 0%; - background: #1e88e5; - -webkit-transition: width 0.2s ease 0s; - -moz-transition: width 0.2s ease 0s; - -ms-transition: width 0.2s ease 0s; - -o-transition: width 0.2s ease 0s; -} -.fr-popup .fr-file-progress-bar-layer > div.fr-loader.fr-indeterminate span { - width: 30% !important; - position: absolute; - top: 0; - -webkit-animation: loading 2s linear infinite; - -moz-animation: loading 2s linear infinite; - -o-animation: loading 2s linear infinite; - animation: loading 2s linear infinite; -} -.fr-popup .fr-file-progress-bar-layer.fr-error > div.fr-loader { - display: none; -} -.fr-popup .fr-file-progress-bar-layer.fr-error > div.fr-action-buttons { - display: block; -} -@keyframes loading { - from { - left: -25%; - } - to { - left: 100%; - } -} -@-webkit-keyframes loading { - from { - left: -25%; - } - to { - left: 100%; - } -} -@-moz-keyframes loading { - from { - left: -25%; - } - to { - left: 100%; - } -} -@-o-keyframes loading { - from { - left: -25%; - } - to { - left: 100%; - } -} diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/file.min.css b/Mobile.Search.Web/Scripts/froala-editor/css/plugins/file.min.css deleted file mode 100644 index e072e07..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/file.min.css +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.fr-popup .fr-file-upload-layer{border:dashed 2px #bdbdbd;padding:25px 0;position:relative;font-size:14px;letter-spacing:1px;line-height:140%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;text-align:center}.fr-popup .fr-file-upload-layer:hover{background:#ebebeb}.fr-popup .fr-file-upload-layer.fr-drop{background:#ebebeb;border-color:#1e88e5}.fr-popup .fr-file-upload-layer .fr-form{-webkit-opacity:0;-moz-opacity:0;opacity:0;-ms-filter:"alpha(Opacity=0)";position:absolute;top:0;bottom:0;left:0;right:0;z-index:2147483640;overflow:hidden;margin:0!important;padding:0!important;width:100%!important}.fr-popup .fr-file-upload-layer .fr-form input{cursor:pointer;position:absolute;right:0;top:0;bottom:0;width:500%;height:100%;margin:0;font-size:400px}.fr-popup .fr-file-progress-bar-layer{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.fr-popup .fr-file-progress-bar-layer>h3{font-size:16px;margin:10px 0;font-weight:400}.fr-popup .fr-file-progress-bar-layer>div.fr-action-buttons{display:none}.fr-popup .fr-file-progress-bar-layer>div.fr-loader{background:#bcdbf7;height:10px;width:100%;margin-top:20px;overflow:hidden;position:relative}.fr-popup .fr-file-progress-bar-layer>div.fr-loader span{display:block;height:100%;width:0;background:#1e88e5;-webkit-transition:width .2s ease 0s;-moz-transition:width .2s ease 0s;-ms-transition:width .2s ease 0s;-o-transition:width .2s ease 0s}.fr-popup .fr-file-progress-bar-layer>div.fr-loader.fr-indeterminate span{width:30%!important;position:absolute;top:0;-webkit-animation:loading 2s linear infinite;-moz-animation:loading 2s linear infinite;-o-animation:loading 2s linear infinite;animation:loading 2s linear infinite}.fr-popup .fr-file-progress-bar-layer.fr-error>div.fr-loader{display:none}.fr-popup .fr-file-progress-bar-layer.fr-error>div.fr-action-buttons{display:block}@keyframes loading{from{left:-25%}to{left:100%}}@-webkit-keyframes loading{from{left:-25%}to{left:100%}}@-moz-keyframes loading{from{left:-25%}to{left:100%}}@-o-keyframes loading{from{left:-25%}to{left:100%}} \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/fullscreen.css b/Mobile.Search.Web/Scripts/froala-editor/css/plugins/fullscreen.css deleted file mode 100644 index 78ffeb9..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/fullscreen.css +++ /dev/null @@ -1,28 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -body.fr-fullscreen { - overflow: hidden; - height: 100%; - width: 100%; - position: fixed; -} -.fr-box.fr-fullscreen { - margin: 0 !important; - position: fixed; - top: 0; - left: 0; - bottom: 0; - right: 0; - z-index: 2147483630 !important; - width: auto !important; -} -.fr-box.fr-fullscreen .fr-toolbar.fr-top { - top: 0 !important; -} -.fr-box.fr-fullscreen .fr-toolbar.fr-bottom { - bottom: 0 !important; -} diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/fullscreen.min.css b/Mobile.Search.Web/Scripts/froala-editor/css/plugins/fullscreen.min.css deleted file mode 100644 index 022f9d5..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/fullscreen.min.css +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -body.fr-fullscreen{overflow:hidden;height:100%;width:100%;position:fixed}.fr-box.fr-fullscreen{margin:0!important;position:fixed;top:0;left:0;bottom:0;right:0;z-index:2147483630!important;width:auto!important}.fr-box.fr-fullscreen .fr-toolbar.fr-top{top:0!important}.fr-box.fr-fullscreen .fr-toolbar.fr-bottom{bottom:0!important} \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/help.css b/Mobile.Search.Web/Scripts/froala-editor/css/plugins/help.css deleted file mode 100644 index e91e3e3..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/help.css +++ /dev/null @@ -1,52 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after { - clear: both; - display: block; - content: ""; - height: 0; -} -.hide-by-clipping { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - border: 0; -} -.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal { - text-align: left; - padding: 20px 20px 10px; -} -.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table { - border-collapse: collapse; - font-size: 14px; - line-height: 1.5; - width: 100%; -} -.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table + table { - margin-top: 20px; -} -.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tr { - border: 0; -} -.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table th, -.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table td { - padding: 6px 0 4px; -} -.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tbody tr { - border-bottom: solid 1px #ebebeb; -} -.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tbody td:first-child { - width: 60%; - color: #646464; -} -.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tbody td:nth-child(n+2) { - letter-spacing: 0.5px; -} diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/help.min.css b/Mobile.Search.Web/Scripts/froala-editor/css/plugins/help.min.css deleted file mode 100644 index 8eac233..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/help.min.css +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal{text-align:left;padding:20px 20px 10px}.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table{border-collapse:collapse;font-size:14px;line-height:1.5;width:100%}.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table+table{margin-top:20px}.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tr{border:0}.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table th,.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table td{padding:6px 0 4px}.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tbody tr{border-bottom:solid 1px #ebebeb}.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tbody td:first-child{width:60%;color:#646464}.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tbody td:nth-child(n+2){letter-spacing:.5px} \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/image.css b/Mobile.Search.Web/Scripts/froala-editor/css/plugins/image.css deleted file mode 100644 index 9313de2..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/image.css +++ /dev/null @@ -1,244 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after { - clear: both; - display: block; - content: ""; - height: 0; -} -.hide-by-clipping { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - border: 0; -} -.fr-element img { - cursor: pointer; -} -.fr-image-resizer { - position: absolute; - border: solid 1px #1e88e5; - display: none; - user-select: none; - -o-user-select: none; - -moz-user-select: none; - -khtml-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; - -webkit-box-sizing: content-box; - -moz-box-sizing: content-box; - box-sizing: content-box; -} -.fr-image-resizer.fr-active { - display: block; -} -.fr-image-resizer .fr-handler { - display: block; - position: absolute; - background: #1e88e5; - border: solid 1px #ffffff; - z-index: 4; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} -.fr-image-resizer .fr-handler.fr-hnw { - cursor: nw-resize; -} -.fr-image-resizer .fr-handler.fr-hne { - cursor: ne-resize; -} -.fr-image-resizer .fr-handler.fr-hsw { - cursor: sw-resize; -} -.fr-image-resizer .fr-handler.fr-hse { - cursor: se-resize; -} -.fr-image-resizer .fr-handler { - width: 12px; - height: 12px; -} -.fr-image-resizer .fr-handler.fr-hnw { - left: -6px; - top: -6px; -} -.fr-image-resizer .fr-handler.fr-hne { - right: -6px; - top: -6px; -} -.fr-image-resizer .fr-handler.fr-hsw { - left: -6px; - bottom: -6px; -} -.fr-image-resizer .fr-handler.fr-hse { - right: -6px; - bottom: -6px; -} -@media (min-width: 1200px) { - .fr-image-resizer .fr-handler { - width: 10px; - height: 10px; - } - .fr-image-resizer .fr-handler.fr-hnw { - left: -5px; - top: -5px; - } - .fr-image-resizer .fr-handler.fr-hne { - right: -5px; - top: -5px; - } - .fr-image-resizer .fr-handler.fr-hsw { - left: -5px; - bottom: -5px; - } - .fr-image-resizer .fr-handler.fr-hse { - right: -5px; - bottom: -5px; - } -} -.fr-image-overlay { - position: fixed; - top: 0; - left: 0; - bottom: 0; - right: 0; - z-index: 2147483640; - display: none; -} -.fr-popup .fr-image-upload-layer { - border: dashed 2px #bdbdbd; - padding: 25px 0; - position: relative; - font-size: 14px; - letter-spacing: 1px; - line-height: 140%; - text-align: center; -} -.fr-popup .fr-image-upload-layer:hover { - background: #ebebeb; -} -.fr-popup .fr-image-upload-layer.fr-drop { - background: #ebebeb; - border-color: #1e88e5; -} -.fr-popup .fr-image-upload-layer .fr-form { - -webkit-opacity: 0; - -moz-opacity: 0; - opacity: 0; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; - position: absolute; - top: 0; - bottom: 0; - left: 0; - right: 0; - z-index: 2147483640; - overflow: hidden; - margin: 0 !important; - padding: 0 !important; - width: 100% !important; -} -.fr-popup .fr-image-upload-layer .fr-form input { - cursor: pointer; - position: absolute; - right: 0px; - top: 0px; - bottom: 0px; - width: 500%; - height: 100%; - margin: 0px; - font-size: 400px; -} -.fr-popup .fr-image-progress-bar-layer > h3 { - font-size: 16px; - margin: 10px 0; - font-weight: normal; -} -.fr-popup .fr-image-progress-bar-layer > div.fr-action-buttons { - display: none; -} -.fr-popup .fr-image-progress-bar-layer > div.fr-loader { - background: #bcdbf7; - height: 10px; - width: 100%; - margin-top: 20px; - overflow: hidden; - position: relative; -} -.fr-popup .fr-image-progress-bar-layer > div.fr-loader span { - display: block; - height: 100%; - width: 0%; - background: #1e88e5; - -webkit-transition: width 0.2s ease 0s; - -moz-transition: width 0.2s ease 0s; - -ms-transition: width 0.2s ease 0s; - -o-transition: width 0.2s ease 0s; -} -.fr-popup .fr-image-progress-bar-layer > div.fr-loader.fr-indeterminate span { - width: 30% !important; - position: absolute; - top: 0; - -webkit-animation: loading 2s linear infinite; - -moz-animation: loading 2s linear infinite; - -o-animation: loading 2s linear infinite; - animation: loading 2s linear infinite; -} -.fr-popup .fr-image-progress-bar-layer.fr-error > div.fr-loader { - display: none; -} -.fr-popup .fr-image-progress-bar-layer.fr-error > div.fr-action-buttons { - display: block; -} -.fr-image-size-layer .fr-image-group .fr-input-line { - width: calc(50% - 5px); - display: inline-block; -} -.fr-image-size-layer .fr-image-group .fr-input-line + .fr-input-line { - margin-left: 10px; -} -.fr-uploading { - -webkit-opacity: 0.4; - -moz-opacity: 0.4; - opacity: 0.4; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; -} -@keyframes loading { - from { - left: -25%; - } - to { - left: 100%; - } -} -@-webkit-keyframes loading { - from { - left: -25%; - } - to { - left: 100%; - } -} -@-moz-keyframes loading { - from { - left: -25%; - } - to { - left: 100%; - } -} -@-o-keyframes loading { - from { - left: -25%; - } - to { - left: 100%; - } -} diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/image.min.css b/Mobile.Search.Web/Scripts/froala-editor/css/plugins/image.min.css deleted file mode 100644 index f6a8526..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/image.min.css +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.fr-element img{cursor:pointer}.fr-image-resizer{position:absolute;border:solid 1px #1e88e5;display:none;user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.fr-image-resizer.fr-active{display:block}.fr-image-resizer .fr-handler{display:block;position:absolute;background:#1e88e5;border:solid 1px #fff;z-index:4;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.fr-image-resizer .fr-handler.fr-hnw{cursor:nw-resize}.fr-image-resizer .fr-handler.fr-hne{cursor:ne-resize}.fr-image-resizer .fr-handler.fr-hsw{cursor:sw-resize}.fr-image-resizer .fr-handler.fr-hse{cursor:se-resize}.fr-image-resizer .fr-handler{width:12px;height:12px}.fr-image-resizer .fr-handler.fr-hnw{left:-6px;top:-6px}.fr-image-resizer .fr-handler.fr-hne{right:-6px;top:-6px}.fr-image-resizer .fr-handler.fr-hsw{left:-6px;bottom:-6px}.fr-image-resizer .fr-handler.fr-hse{right:-6px;bottom:-6px}@media (min-width:1200px){.fr-image-resizer .fr-handler{width:10px;height:10px}.fr-image-resizer .fr-handler.fr-hnw{left:-5px;top:-5px}.fr-image-resizer .fr-handler.fr-hne{right:-5px;top:-5px}.fr-image-resizer .fr-handler.fr-hsw{left:-5px;bottom:-5px}.fr-image-resizer .fr-handler.fr-hse{right:-5px;bottom:-5px}}.fr-image-overlay{position:fixed;top:0;left:0;bottom:0;right:0;z-index:2147483640;display:none}.fr-popup .fr-image-upload-layer{border:dashed 2px #bdbdbd;padding:25px 0;position:relative;font-size:14px;letter-spacing:1px;line-height:140%;text-align:center}.fr-popup .fr-image-upload-layer:hover{background:#ebebeb}.fr-popup .fr-image-upload-layer.fr-drop{background:#ebebeb;border-color:#1e88e5}.fr-popup .fr-image-upload-layer .fr-form{-webkit-opacity:0;-moz-opacity:0;opacity:0;-ms-filter:"alpha(Opacity=0)";position:absolute;top:0;bottom:0;left:0;right:0;z-index:2147483640;overflow:hidden;margin:0!important;padding:0!important;width:100%!important}.fr-popup .fr-image-upload-layer .fr-form input{cursor:pointer;position:absolute;right:0;top:0;bottom:0;width:500%;height:100%;margin:0;font-size:400px}.fr-popup .fr-image-progress-bar-layer>h3{font-size:16px;margin:10px 0;font-weight:400}.fr-popup .fr-image-progress-bar-layer>div.fr-action-buttons{display:none}.fr-popup .fr-image-progress-bar-layer>div.fr-loader{background:#bcdbf7;height:10px;width:100%;margin-top:20px;overflow:hidden;position:relative}.fr-popup .fr-image-progress-bar-layer>div.fr-loader span{display:block;height:100%;width:0;background:#1e88e5;-webkit-transition:width .2s ease 0s;-moz-transition:width .2s ease 0s;-ms-transition:width .2s ease 0s;-o-transition:width .2s ease 0s}.fr-popup .fr-image-progress-bar-layer>div.fr-loader.fr-indeterminate span{width:30%!important;position:absolute;top:0;-webkit-animation:loading 2s linear infinite;-moz-animation:loading 2s linear infinite;-o-animation:loading 2s linear infinite;animation:loading 2s linear infinite}.fr-popup .fr-image-progress-bar-layer.fr-error>div.fr-loader{display:none}.fr-popup .fr-image-progress-bar-layer.fr-error>div.fr-action-buttons{display:block}.fr-image-size-layer .fr-image-group .fr-input-line{width:calc(50% - 5px);display:inline-block}.fr-image-size-layer .fr-image-group .fr-input-line+.fr-input-line{margin-left:10px}.fr-uploading{-webkit-opacity:.4;-moz-opacity:.4;opacity:.4;-ms-filter:"alpha(Opacity=0)"}@keyframes loading{from{left:-25%}to{left:100%}}@-webkit-keyframes loading{from{left:-25%}to{left:100%}}@-moz-keyframes loading{from{left:-25%}to{left:100%}}@-o-keyframes loading{from{left:-25%}to{left:100%}} \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/image_manager.css b/Mobile.Search.Web/Scripts/froala-editor/css/plugins/image_manager.css deleted file mode 100644 index ea0facc..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/image_manager.css +++ /dev/null @@ -1,266 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after { - clear: both; - display: block; - content: ""; - height: 0; -} -.hide-by-clipping { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - border: 0; -} -.fr-modal-head .fr-modal-head-line::after { - clear: both; - display: block; - content: ""; - height: 0; -} -.fr-modal-head .fr-modal-head-line i.fr-modal-more { - float: left; - opacity: 1; - -webkit-transition: padding 0.2s ease 0s, width 0.2s ease 0s, opacity 0.2s ease 0s; - -moz-transition: padding 0.2s ease 0s, width 0.2s ease 0s, opacity 0.2s ease 0s; - -ms-transition: padding 0.2s ease 0s, width 0.2s ease 0s, opacity 0.2s ease 0s; - -o-transition: padding 0.2s ease 0s, width 0.2s ease 0s, opacity 0.2s ease 0s; - padding: 12px; -} -.fr-modal-head .fr-modal-head-line i.fr-modal-more.fr-not-available { - opacity: 0; - width: 0; - padding: 12px 0; -} -.fr-modal-head .fr-modal-tags { - display: none; - text-align: left; -} -.fr-modal-head .fr-modal-tags a { - display: inline-block; - opacity: 0; - padding: 6px 8px; - margin: 8px 0 8px 8px; - text-decoration: none; - border-radius: 2px; - -moz-border-radius: 2px; - -webkit-border-radius: 2px; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; - color: #1e88e5; - -webkit-transition: opacity 0.2s ease 0s, background 0.2s ease 0s; - -moz-transition: opacity 0.2s ease 0s, background 0.2s ease 0s; - -ms-transition: opacity 0.2s ease 0s, background 0.2s ease 0s; - -o-transition: opacity 0.2s ease 0s, background 0.2s ease 0s; - cursor: pointer; -} -.fr-modal-head .fr-modal-tags a:focus { - outline: none; -} -.fr-modal-head .fr-modal-tags a.fr-selected-tag { - background: #d6d6d6; -} -div.fr-modal-body .fr-preloader { - display: block; - margin: 50px auto; -} -div.fr-modal-body div.fr-image-list { - text-align: center; - margin: 0 10px; - padding: 0; -} -div.fr-modal-body div.fr-image-list::after { - clear: both; - display: block; - content: ""; - height: 0; -} -div.fr-modal-body div.fr-image-list .fr-list-column { - float: left; - width: calc((100% - 10px) / 2); -} -@media (min-width: 768px) and (max-width: 1199px) { - div.fr-modal-body div.fr-image-list .fr-list-column { - width: calc((100% - 20px) / 3); - } -} -@media (min-width: 1200px) { - div.fr-modal-body div.fr-image-list .fr-list-column { - width: calc((100% - 30px) / 4); - } -} -div.fr-modal-body div.fr-image-list .fr-list-column + .fr-list-column { - margin-left: 10px; -} -div.fr-modal-body div.fr-image-list div.fr-image-container { - position: relative; - width: 100%; - display: block; - -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); - -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); - border-radius: 2px; - -moz-border-radius: 2px; - -webkit-border-radius: 2px; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; - overflow: hidden; -} -div.fr-modal-body div.fr-image-list div.fr-image-container:first-child { - margin-top: 10px; -} -div.fr-modal-body div.fr-image-list div.fr-image-container + div { - margin-top: 10px; -} -div.fr-modal-body div.fr-image-list div.fr-image-container.fr-image-deleting::after { - position: absolute; - -webkit-opacity: 0.5; - -moz-opacity: 0.5; - opacity: 0.5; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; - -webkit-transition: opacity 0.2s ease 0s; - -moz-transition: opacity 0.2s ease 0s; - -ms-transition: opacity 0.2s ease 0s; - -o-transition: opacity 0.2s ease 0s; - background: #000000; - content: ""; - top: 0; - left: 0; - bottom: 0; - right: 0; - z-index: 2; -} -div.fr-modal-body div.fr-image-list div.fr-image-container.fr-image-deleting::before { - content: attr(data-deleting); - color: #ffffff; - top: 0; - left: 0; - bottom: 0; - right: 0; - margin: auto; - position: absolute; - z-index: 3; - font-size: 15px; - height: 20px; -} -div.fr-modal-body div.fr-image-list div.fr-image-container.fr-empty { - height: 95px; - background: #cccccc; - z-index: 1; -} -div.fr-modal-body div.fr-image-list div.fr-image-container.fr-empty::after { - position: absolute; - margin: auto; - top: 0; - bottom: 0; - left: 0; - right: 0; - content: attr(data-loading); - display: inline-block; - height: 20px; -} -div.fr-modal-body div.fr-image-list div.fr-image-container img { - width: 100%; - vertical-align: middle; - position: relative; - z-index: 2; - -webkit-opacity: 1; - -moz-opacity: 1; - opacity: 1; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; - -webkit-transition: opacity 0.2s ease 0s, filter 0.2s ease 0s; - -moz-transition: opacity 0.2s ease 0s, filter 0.2s ease 0s; - -ms-transition: opacity 0.2s ease 0s, filter 0.2s ease 0s; - -o-transition: opacity 0.2s ease 0s, filter 0.2s ease 0s; - -webkit-transform: translateZ(0); - -moz-transform: translateZ(0); - -ms-transform: translateZ(0); - -o-transform: translateZ(0); -} -div.fr-modal-body div.fr-image-list div.fr-image-container.fr-mobile-selected img { - -webkit-opacity: 0.75; - -moz-opacity: 0.75; - opacity: 0.75; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; -} -div.fr-modal-body div.fr-image-list div.fr-image-container.fr-mobile-selected .fr-delete-img, -div.fr-modal-body div.fr-image-list div.fr-image-container.fr-mobile-selected .fr-insert-img { - display: inline-block; -} -div.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img, -div.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img { - display: none; - top: 50%; - border-radius: 100%; - -moz-border-radius: 100%; - -webkit-border-radius: 100%; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; - -webkit-transition: background 0.2s ease 0s, color 0.2s ease 0s; - -moz-transition: background 0.2s ease 0s, color 0.2s ease 0s; - -ms-transition: background 0.2s ease 0s, color 0.2s ease 0s; - -o-transition: background 0.2s ease 0s, color 0.2s ease 0s; - -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); - -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); - position: absolute; - cursor: pointer; - margin: 0; - width: 36px; - height: 36px; - line-height: 36px; - text-decoration: none; - z-index: 3; -} -div.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img { - background: #b8312f; - color: #ffffff; - left: 50%; - -webkit-transform: translateY(-50%) translateX(25%); - -moz-transform: translateY(-50%) translateX(25%); - -ms-transform: translateY(-50%) translateX(25%); - -o-transform: translateY(-50%) translateX(25%); -} -div.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img { - background: #ffffff; - color: #1e88e5; - left: 50%; - -webkit-transform: translateY(-50%) translateX(-125%); - -moz-transform: translateY(-50%) translateX(-125%); - -ms-transform: translateY(-50%) translateX(-125%); - -o-transform: translateY(-50%) translateX(-125%); -} -.fr-desktop .fr-modal-wrapper .fr-modal-head .fr-modal-tags a:hover { - background: #ebebeb; -} -.fr-desktop .fr-modal-wrapper .fr-modal-head .fr-modal-tags a.fr-selected-tag { - background: #d6d6d6; -} -.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container:hover img { - -webkit-opacity: 0.75; - -moz-opacity: 0.75; - opacity: 0.75; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; -} -.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container:hover .fr-delete-img, -.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container:hover .fr-insert-img { - display: inline-block; -} -.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img:hover { - background: #bf4644; - color: #ffffff; -} -.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img:hover { - background: #ebebeb; -} diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/image_manager.min.css b/Mobile.Search.Web/Scripts/froala-editor/css/plugins/image_manager.min.css deleted file mode 100644 index b5498ae..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/image_manager.min.css +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.fr-modal-head .fr-modal-head-line::after{clear:both;display:block;content:"";height:0}.fr-modal-head .fr-modal-head-line i.fr-modal-more{float:left;opacity:1;-webkit-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s;-moz-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s;-ms-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s;-o-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s;padding:12px}.fr-modal-head .fr-modal-head-line i.fr-modal-more.fr-not-available{opacity:0;width:0;padding:12px 0}.fr-modal-head .fr-modal-tags{display:none;text-align:left}.fr-modal-head .fr-modal-tags a{display:inline-block;opacity:0;padding:6px 8px;margin:8px 0 8px 8px;text-decoration:none;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;color:#1e88e5;-webkit-transition:opacity .2s ease 0s,background .2s ease 0s;-moz-transition:opacity .2s ease 0s,background .2s ease 0s;-ms-transition:opacity .2s ease 0s,background .2s ease 0s;-o-transition:opacity .2s ease 0s,background .2s ease 0s;cursor:pointer}.fr-modal-head .fr-modal-tags a:focus{outline:0}.fr-modal-head .fr-modal-tags a.fr-selected-tag{background:#d6d6d6}div.fr-modal-body .fr-preloader{display:block;margin:50px auto}div.fr-modal-body div.fr-image-list{text-align:center;margin:0 10px;padding:0}div.fr-modal-body div.fr-image-list::after{clear:both;display:block;content:"";height:0}div.fr-modal-body div.fr-image-list .fr-list-column{float:left;width:calc((100% - 10px) / 2)}@media (min-width:768px) and (max-width:1199px){div.fr-modal-body div.fr-image-list .fr-list-column{width:calc((100% - 20px) / 3)}}@media (min-width:1200px){div.fr-modal-body div.fr-image-list .fr-list-column{width:calc((100% - 30px) / 4)}}div.fr-modal-body div.fr-image-list .fr-list-column+.fr-list-column{margin-left:10px}div.fr-modal-body div.fr-image-list div.fr-image-container{position:relative;width:100%;display:block;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;overflow:hidden}div.fr-modal-body div.fr-image-list div.fr-image-container:first-child{margin-top:10px}div.fr-modal-body div.fr-image-list div.fr-image-container+div{margin-top:10px}div.fr-modal-body div.fr-image-list div.fr-image-container.fr-image-deleting::after{position:absolute;-webkit-opacity:.5;-moz-opacity:.5;opacity:.5;-ms-filter:"alpha(Opacity=0)";-webkit-transition:opacity .2s ease 0s;-moz-transition:opacity .2s ease 0s;-ms-transition:opacity .2s ease 0s;-o-transition:opacity .2s ease 0s;background:#000;content:"";top:0;left:0;bottom:0;right:0;z-index:2}div.fr-modal-body div.fr-image-list div.fr-image-container.fr-image-deleting::before{content:attr(data-deleting);color:#fff;top:0;left:0;bottom:0;right:0;margin:auto;position:absolute;z-index:3;font-size:15px;height:20px}div.fr-modal-body div.fr-image-list div.fr-image-container.fr-empty{height:95px;background:#ccc;z-index:1}div.fr-modal-body div.fr-image-list div.fr-image-container.fr-empty::after{position:absolute;margin:auto;top:0;bottom:0;left:0;right:0;content:attr(data-loading);display:inline-block;height:20px}div.fr-modal-body div.fr-image-list div.fr-image-container img{width:100%;vertical-align:middle;position:relative;z-index:2;-webkit-opacity:1;-moz-opacity:1;opacity:1;-ms-filter:"alpha(Opacity=0)";-webkit-transition:opacity .2s ease 0s,filter .2s ease 0s;-moz-transition:opacity .2s ease 0s,filter .2s ease 0s;-ms-transition:opacity .2s ease 0s,filter .2s ease 0s;-o-transition:opacity .2s ease 0s,filter .2s ease 0s;-webkit-transform:translateZ(0);-moz-transform:translateZ(0);-ms-transform:translateZ(0);-o-transform:translateZ(0)}div.fr-modal-body div.fr-image-list div.fr-image-container.fr-mobile-selected img{-webkit-opacity:.75;-moz-opacity:.75;opacity:.75;-ms-filter:"alpha(Opacity=0)"}div.fr-modal-body div.fr-image-list div.fr-image-container.fr-mobile-selected .fr-delete-img,div.fr-modal-body div.fr-image-list div.fr-image-container.fr-mobile-selected .fr-insert-img{display:inline-block}div.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img,div.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img{display:none;top:50%;border-radius:100%;-moz-border-radius:100%;-webkit-border-radius:100%;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-transition:background .2s ease 0s,color .2s ease 0s;-moz-transition:background .2s ease 0s,color .2s ease 0s;-ms-transition:background .2s ease 0s,color .2s ease 0s;-o-transition:background .2s ease 0s,color .2s ease 0s;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);position:absolute;cursor:pointer;margin:0;width:36px;height:36px;line-height:36px;text-decoration:none;z-index:3}div.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img{background:#b8312f;color:#fff;left:50%;-webkit-transform:translateY(-50%) translateX(25%);-moz-transform:translateY(-50%) translateX(25%);-ms-transform:translateY(-50%) translateX(25%);-o-transform:translateY(-50%) translateX(25%)}div.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img{background:#fff;color:#1e88e5;left:50%;-webkit-transform:translateY(-50%) translateX(-125%);-moz-transform:translateY(-50%) translateX(-125%);-ms-transform:translateY(-50%) translateX(-125%);-o-transform:translateY(-50%) translateX(-125%)}.fr-desktop .fr-modal-wrapper .fr-modal-head .fr-modal-tags a:hover{background:#ebebeb}.fr-desktop .fr-modal-wrapper .fr-modal-head .fr-modal-tags a.fr-selected-tag{background:#d6d6d6}.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container:hover img{-webkit-opacity:.75;-moz-opacity:.75;opacity:.75;-ms-filter:"alpha(Opacity=0)"}.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container:hover .fr-delete-img,.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container:hover .fr-insert-img{display:inline-block}.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img:hover{background:#bf4644;color:#fff}.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img:hover{background:#ebebeb} \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/line_breaker.css b/Mobile.Search.Web/Scripts/froala-editor/css/plugins/line_breaker.css deleted file mode 100644 index 6fd3945..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/line_breaker.css +++ /dev/null @@ -1,37 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after { - clear: both; - display: block; - content: ""; - height: 0; -} -.hide-by-clipping { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - border: 0; -} -.fr-line-breaker { - cursor: text; - border-top: 1px solid #1e88e5; - position: fixed; - z-index: 2; - display: none; -} -.fr-line-breaker.fr-visible { - display: block; -} -.fr-line-breaker a.fr-floating-btn { - position: absolute; - left: calc(50% - (32px / 2)); - top: -16px; -} diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/line_breaker.min.css b/Mobile.Search.Web/Scripts/froala-editor/css/plugins/line_breaker.min.css deleted file mode 100644 index 6f65c87..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/line_breaker.min.css +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.fr-line-breaker{cursor:text;border-top:1px solid #1e88e5;position:fixed;z-index:2;display:none}.fr-line-breaker.fr-visible{display:block}.fr-line-breaker a.fr-floating-btn{position:absolute;left:calc(50% - (32px / 2));top:-16px} \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/quick_insert.css b/Mobile.Search.Web/Scripts/froala-editor/css/plugins/quick_insert.css deleted file mode 100644 index a2e7ed4..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/quick_insert.css +++ /dev/null @@ -1,70 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after { - clear: both; - display: block; - content: ""; - height: 0; -} -.hide-by-clipping { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - border: 0; -} -.fr-quick-insert { - position: absolute; - z-index: 2147483639; - white-space: nowrap; - padding-right: 5px; - margin-left: -5px; - -webkit-box-sizing: content-box; - -moz-box-sizing: content-box; - box-sizing: content-box; -} -.fr-quick-insert.fr-on a.fr-floating-btn svg { - -webkit-transform: rotate(135deg); - -moz-transform: rotate(135deg); - -ms-transform: rotate(135deg); - -o-transform: rotate(135deg); -} -.fr-quick-insert.fr-hidden { - display: none; -} -.fr-qi-helper { - position: absolute; - z-index: 3; - padding-left: 16px; - white-space: nowrap; -} -.fr-qi-helper a.fr-btn.fr-floating-btn { - text-align: center; - display: inline-block; - color: #222222; - -webkit-opacity: 0; - -moz-opacity: 0; - opacity: 0; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; - -webkit-transform: scale(0); - -moz-transform: scale(0); - -ms-transform: scale(0); - -o-transform: scale(0); -} -.fr-qi-helper a.fr-btn.fr-floating-btn.fr-size-1 { - -webkit-opacity: 1; - -moz-opacity: 1; - opacity: 1; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; - -webkit-transform: scale(1); - -moz-transform: scale(1); - -ms-transform: scale(1); - -o-transform: scale(1); -} diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/quick_insert.min.css b/Mobile.Search.Web/Scripts/froala-editor/css/plugins/quick_insert.min.css deleted file mode 100644 index 8954fc3..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/quick_insert.min.css +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.fr-quick-insert{position:absolute;z-index:2147483639;white-space:nowrap;padding-right:5px;margin-left:-5px;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.fr-quick-insert.fr-on a.fr-floating-btn svg{-webkit-transform:rotate(135deg);-moz-transform:rotate(135deg);-ms-transform:rotate(135deg);-o-transform:rotate(135deg)}.fr-quick-insert.fr-hidden{display:none}.fr-qi-helper{position:absolute;z-index:3;padding-left:16px;white-space:nowrap}.fr-qi-helper a.fr-btn.fr-floating-btn{text-align:center;display:inline-block;color:#222;-webkit-opacity:0;-moz-opacity:0;opacity:0;-ms-filter:"alpha(Opacity=0)";-webkit-transform:scale(0);-moz-transform:scale(0);-ms-transform:scale(0);-o-transform:scale(0)}.fr-qi-helper a.fr-btn.fr-floating-btn.fr-size-1{-webkit-opacity:1;-moz-opacity:1;opacity:1;-ms-filter:"alpha(Opacity=0)";-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1)} \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/special_characters.css b/Mobile.Search.Web/Scripts/froala-editor/css/plugins/special_characters.css deleted file mode 100644 index 9de0c96..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/special_characters.css +++ /dev/null @@ -1,51 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after { - clear: both; - display: block; - content: ""; - height: 0; -} -.hide-by-clipping { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - border: 0; -} -.fr-modal .fr-modal-wrapper .fr-modal-body .fr-special-characters-modal { - text-align: left; - padding: 20px 20px 10px; -} -.fr-modal .fr-modal-wrapper .fr-modal-body .fr-special-characters-modal .fr-special-characters-list { - margin-bottom: 20px; -} -.fr-modal .fr-modal-wrapper .fr-modal-body .fr-special-characters-modal .fr-special-characters-title { - font-weight: bold; - font-size: 14px; - padding: 6px 0 4px; - margin: 0 0 5px; -} -.fr-modal .fr-modal-wrapper .fr-modal-body .fr-special-characters-modal .fr-special-character { - display: inline-block; - font-size: 16px; - width: 20px; - height: 20px; - padding: 5px; - line-height: 20px; - cursor: default; - font-weight: normal; - -webkit-box-sizing: content-box; - -moz-box-sizing: content-box; - box-sizing: content-box; - text-align: center; - border: 1px solid #cccccc; - margin: -1px 0 0 -1px; -} diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/special_characters.min.css b/Mobile.Search.Web/Scripts/froala-editor/css/plugins/special_characters.min.css deleted file mode 100644 index bfcd36e..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/special_characters.min.css +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.fr-modal .fr-modal-wrapper .fr-modal-body .fr-special-characters-modal{text-align:left;padding:20px 20px 10px}.fr-modal .fr-modal-wrapper .fr-modal-body .fr-special-characters-modal .fr-special-characters-list{margin-bottom:20px}.fr-modal .fr-modal-wrapper .fr-modal-body .fr-special-characters-modal .fr-special-characters-title{font-weight:700;font-size:14px;padding:6px 0 4px;margin:0 0 5px}.fr-modal .fr-modal-wrapper .fr-modal-body .fr-special-characters-modal .fr-special-character{display:inline-block;font-size:16px;width:20px;height:20px;padding:5px;line-height:20px;cursor:default;font-weight:400;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;text-align:center;border:1px solid #ccc;margin:-1px 0 0 -1px} \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/table.css b/Mobile.Search.Web/Scripts/froala-editor/css/plugins/table.css deleted file mode 100644 index 4ee5fae..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/table.css +++ /dev/null @@ -1,181 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after { - clear: both; - display: block; - content: ""; - height: 0; -} -.hide-by-clipping { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - border: 0; -} -.fr-element table td.fr-selected-cell, -.fr-element table th.fr-selected-cell { - border: 1px double #1e88e5; -} -.fr-element table tr { - user-select: none; - -o-user-select: none; - -moz-user-select: none; - -khtml-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; -} -.fr-element table td, -.fr-element table th { - user-select: text; - -o-user-select: text; - -moz-user-select: text; - -khtml-user-select: text; - -webkit-user-select: text; - -ms-user-select: text; -} -.fr-element .fr-no-selection table td, -.fr-element .fr-no-selection table th { - user-select: none; - -o-user-select: none; - -moz-user-select: none; - -khtml-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; -} -.fr-table-resizer { - cursor: col-resize; - position: absolute; - z-index: 3; - display: none; -} -.fr-table-resizer.fr-moving { - z-index: 2; -} -.fr-table-resizer div { - -webkit-opacity: 0; - -moz-opacity: 0; - opacity: 0; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; - border-right: 1px solid #1e88e5; -} -.fr-no-selection { - user-select: none; - -o-user-select: none; - -moz-user-select: none; - -khtml-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; -} -.fr-popup .fr-table-colors-hex-layer { - width: 100%; - margin: 0px; - padding: 10px; -} -.fr-popup .fr-table-colors-hex-layer .fr-input-line { - float: left; - width: calc(100% - 50px); - padding: 8px 0 0; -} -.fr-popup .fr-table-colors-hex-layer .fr-action-buttons { - float: right; - width: 50px; -} -.fr-popup .fr-table-colors-hex-layer .fr-action-buttons button { - background-color: #1e88e5; - color: #FFF; - border-radius: 2px; - -moz-border-radius: 2px; - -webkit-border-radius: 2px; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; - font-size: 13px; - height: 32px; -} -.fr-popup .fr-table-colors-hex-layer .fr-action-buttons button:hover { - background-color: #166dba; - color: #FFF; -} -.fr-popup .fr-table-size .fr-table-size-info { - text-align: center; - font-size: 14px; - padding: 8px; -} -.fr-popup .fr-table-size .fr-select-table-size { - line-height: 0; - padding: 0 5px 5px; - white-space: nowrap; -} -.fr-popup .fr-table-size .fr-select-table-size > span { - display: inline-block; - padding: 0px 4px 4px 0; - background: transparent; -} -.fr-popup .fr-table-size .fr-select-table-size > span > span { - display: inline-block; - width: 18px; - height: 18px; - border: 1px solid #dddddd; -} -.fr-popup .fr-table-size .fr-select-table-size > span.hover { - background: transparent; -} -.fr-popup .fr-table-size .fr-select-table-size > span.hover > span { - background: rgba(30, 136, 229, 0.3); - border: solid 1px #1e88e5; -} -.fr-popup .fr-table-size .fr-select-table-size .new-line::after { - clear: both; - display: block; - content: ""; - height: 0; -} -.fr-popup.fr-above .fr-table-size .fr-select-table-size > span { - display: inline-block !important; -} -.fr-popup .fr-table-colors-buttons { - margin-bottom: 5px; -} -.fr-popup .fr-table-colors { - line-height: 0; - display: block; -} -.fr-popup .fr-table-colors > span { - display: inline-block; - width: 32px; - height: 32px; - position: relative; - z-index: 1; -} -.fr-popup .fr-table-colors > span > i { - text-align: center; - line-height: 32px; - height: 32px; - width: 32px; - font-size: 13px; - position: absolute; - bottom: 0; - cursor: default; - left: 0; -} -.fr-popup .fr-table-colors > span:focus { - outline: 1px solid #222222; - z-index: 2; -} -.fr-popup.fr-desktop .fr-table-size .fr-select-table-size > span > span { - width: 12px; - height: 12px; -} -.fr-insert-helper { - position: absolute; - z-index: 9999; - white-space: nowrap; -} diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/table.min.css b/Mobile.Search.Web/Scripts/froala-editor/css/plugins/table.min.css deleted file mode 100644 index 88615dd..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/table.min.css +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.fr-element table td.fr-selected-cell,.fr-element table th.fr-selected-cell{border:1px double #1e88e5}.fr-element table tr{user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none}.fr-element table td,.fr-element table th{user-select:text;-o-user-select:text;-moz-user-select:text;-khtml-user-select:text;-webkit-user-select:text;-ms-user-select:text}.fr-element .fr-no-selection table td,.fr-element .fr-no-selection table th{user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none}.fr-table-resizer{cursor:col-resize;position:absolute;z-index:3;display:none}.fr-table-resizer.fr-moving{z-index:2}.fr-table-resizer div{-webkit-opacity:0;-moz-opacity:0;opacity:0;-ms-filter:"alpha(Opacity=0)";border-right:1px solid #1e88e5}.fr-no-selection{user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none}.fr-popup .fr-table-colors-hex-layer{width:100%;margin:0;padding:10px}.fr-popup .fr-table-colors-hex-layer .fr-input-line{float:left;width:calc(100% - 50px);padding:8px 0 0}.fr-popup .fr-table-colors-hex-layer .fr-action-buttons{float:right;width:50px}.fr-popup .fr-table-colors-hex-layer .fr-action-buttons button{background-color:#1e88e5;color:#FFF;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;font-size:13px;height:32px}.fr-popup .fr-table-colors-hex-layer .fr-action-buttons button:hover{background-color:#166dba;color:#FFF}.fr-popup .fr-table-size .fr-table-size-info{text-align:center;font-size:14px;padding:8px}.fr-popup .fr-table-size .fr-select-table-size{line-height:0;padding:0 5px 5px;white-space:nowrap}.fr-popup .fr-table-size .fr-select-table-size>span{display:inline-block;padding:0 4px 4px 0;background:0 0}.fr-popup .fr-table-size .fr-select-table-size>span>span{display:inline-block;width:18px;height:18px;border:1px solid #ddd}.fr-popup .fr-table-size .fr-select-table-size>span.hover{background:0 0}.fr-popup .fr-table-size .fr-select-table-size>span.hover>span{background:rgba(30,136,229,.3);border:solid 1px #1e88e5}.fr-popup .fr-table-size .fr-select-table-size .new-line::after{clear:both;display:block;content:"";height:0}.fr-popup.fr-above .fr-table-size .fr-select-table-size>span{display:inline-block!important}.fr-popup .fr-table-colors-buttons{margin-bottom:5px}.fr-popup .fr-table-colors{line-height:0;display:block}.fr-popup .fr-table-colors>span{display:inline-block;width:32px;height:32px;position:relative;z-index:1}.fr-popup .fr-table-colors>span>i{text-align:center;line-height:32px;height:32px;width:32px;font-size:13px;position:absolute;bottom:0;cursor:default;left:0}.fr-popup .fr-table-colors>span:focus{outline:1px solid #222;z-index:2}.fr-popup.fr-desktop .fr-table-size .fr-select-table-size>span>span{width:12px;height:12px}.fr-insert-helper{position:absolute;z-index:9999;white-space:nowrap} \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/video.css b/Mobile.Search.Web/Scripts/froala-editor/css/plugins/video.css deleted file mode 100644 index d24f25f..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/video.css +++ /dev/null @@ -1,231 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after { - clear: both; - display: block; - content: ""; - height: 0; -} -.hide-by-clipping { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - border: 0; -} -.fr-element .fr-video { - user-select: none; - -o-user-select: none; - -moz-user-select: none; - -khtml-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; -} -.fr-element .fr-video::after { - position: absolute; - content: ''; - z-index: 1; - top: 0; - left: 0; - right: 0; - bottom: 0; - cursor: pointer; - display: block; - background: rgba(0, 0, 0, 0); -} -.fr-element .fr-video.fr-active > * { - z-index: 2; - position: relative; -} -.fr-element .fr-video > * { - -webkit-box-sizing: content-box; - -moz-box-sizing: content-box; - box-sizing: content-box; - max-width: 100%; - border: none; -} -.fr-box .fr-video-resizer { - position: absolute; - border: solid 1px #1e88e5; - display: none; - user-select: none; - -o-user-select: none; - -moz-user-select: none; - -khtml-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; -} -.fr-box .fr-video-resizer.fr-active { - display: block; -} -.fr-box .fr-video-resizer .fr-handler { - display: block; - position: absolute; - background: #1e88e5; - border: solid 1px #ffffff; - z-index: 4; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} -.fr-box .fr-video-resizer .fr-handler.fr-hnw { - cursor: nw-resize; -} -.fr-box .fr-video-resizer .fr-handler.fr-hne { - cursor: ne-resize; -} -.fr-box .fr-video-resizer .fr-handler.fr-hsw { - cursor: sw-resize; -} -.fr-box .fr-video-resizer .fr-handler.fr-hse { - cursor: se-resize; -} -.fr-box .fr-video-resizer .fr-handler { - width: 12px; - height: 12px; -} -.fr-box .fr-video-resizer .fr-handler.fr-hnw { - left: -6px; - top: -6px; -} -.fr-box .fr-video-resizer .fr-handler.fr-hne { - right: -6px; - top: -6px; -} -.fr-box .fr-video-resizer .fr-handler.fr-hsw { - left: -6px; - bottom: -6px; -} -.fr-box .fr-video-resizer .fr-handler.fr-hse { - right: -6px; - bottom: -6px; -} -@media (min-width: 1200px) { - .fr-box .fr-video-resizer .fr-handler { - width: 10px; - height: 10px; - } - .fr-box .fr-video-resizer .fr-handler.fr-hnw { - left: -5px; - top: -5px; - } - .fr-box .fr-video-resizer .fr-handler.fr-hne { - right: -5px; - top: -5px; - } - .fr-box .fr-video-resizer .fr-handler.fr-hsw { - left: -5px; - bottom: -5px; - } - .fr-box .fr-video-resizer .fr-handler.fr-hse { - right: -5px; - bottom: -5px; - } -} -.fr-popup .fr-video-size-layer .fr-video-group .fr-input-line { - width: calc(50% - 5px); - display: inline-block; -} -.fr-popup .fr-video-size-layer .fr-video-group .fr-input-line + .fr-input-line { - margin-left: 10px; -} -.fr-popup .fr-video-upload-layer { - border: dashed 2px #bdbdbd; - padding: 25px 0; - position: relative; - font-size: 14px; - letter-spacing: 1px; - line-height: 140%; - text-align: center; -} -.fr-popup .fr-video-upload-layer:hover { - background: #ebebeb; -} -.fr-popup .fr-video-upload-layer.fr-drop { - background: #ebebeb; - border-color: #1e88e5; -} -.fr-popup .fr-video-upload-layer .fr-form { - -webkit-opacity: 0; - -moz-opacity: 0; - opacity: 0; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; - position: absolute; - top: 0; - bottom: 0; - left: 0; - right: 0; - z-index: 2147483640; - overflow: hidden; - margin: 0 !important; - padding: 0 !important; - width: 100% !important; -} -.fr-popup .fr-video-upload-layer .fr-form input { - cursor: pointer; - position: absolute; - right: 0px; - top: 0px; - bottom: 0px; - width: 500%; - height: 100%; - margin: 0px; - font-size: 400px; -} -.fr-popup .fr-video-progress-bar-layer > h3 { - font-size: 16px; - margin: 10px 0; - font-weight: normal; -} -.fr-popup .fr-video-progress-bar-layer > div.fr-action-buttons { - display: none; -} -.fr-popup .fr-video-progress-bar-layer > div.fr-loader { - background: #bcdbf7; - height: 10px; - width: 100%; - margin-top: 20px; - overflow: hidden; - position: relative; -} -.fr-popup .fr-video-progress-bar-layer > div.fr-loader span { - display: block; - height: 100%; - width: 0%; - background: #1e88e5; - -webkit-transition: width 0.2s ease 0s; - -moz-transition: width 0.2s ease 0s; - -ms-transition: width 0.2s ease 0s; - -o-transition: width 0.2s ease 0s; -} -.fr-popup .fr-video-progress-bar-layer > div.fr-loader.fr-indeterminate span { - width: 30% !important; - position: absolute; - top: 0; - -webkit-animation: loading 2s linear infinite; - -moz-animation: loading 2s linear infinite; - -o-animation: loading 2s linear infinite; - animation: loading 2s linear infinite; -} -.fr-popup .fr-video-progress-bar-layer.fr-error > div.fr-loader { - display: none; -} -.fr-popup .fr-video-progress-bar-layer.fr-error > div.fr-action-buttons { - display: block; -} -.fr-video-overlay { - position: fixed; - top: 0; - left: 0; - bottom: 0; - right: 0; - z-index: 2147483640; - display: none; -} diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/video.min.css b/Mobile.Search.Web/Scripts/froala-editor/css/plugins/video.min.css deleted file mode 100644 index bf6ec5c..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/plugins/video.min.css +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.fr-element .fr-video{user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none}.fr-element .fr-video::after{position:absolute;content:'';z-index:1;top:0;left:0;right:0;bottom:0;cursor:pointer;display:block;background:rgba(0,0,0,0)}.fr-element .fr-video.fr-active>*{z-index:2;position:relative}.fr-element .fr-video>*{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;max-width:100%;border:0}.fr-box .fr-video-resizer{position:absolute;border:solid 1px #1e88e5;display:none;user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none}.fr-box .fr-video-resizer.fr-active{display:block}.fr-box .fr-video-resizer .fr-handler{display:block;position:absolute;background:#1e88e5;border:solid 1px #fff;z-index:4;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.fr-box .fr-video-resizer .fr-handler.fr-hnw{cursor:nw-resize}.fr-box .fr-video-resizer .fr-handler.fr-hne{cursor:ne-resize}.fr-box .fr-video-resizer .fr-handler.fr-hsw{cursor:sw-resize}.fr-box .fr-video-resizer .fr-handler.fr-hse{cursor:se-resize}.fr-box .fr-video-resizer .fr-handler{width:12px;height:12px}.fr-box .fr-video-resizer .fr-handler.fr-hnw{left:-6px;top:-6px}.fr-box .fr-video-resizer .fr-handler.fr-hne{right:-6px;top:-6px}.fr-box .fr-video-resizer .fr-handler.fr-hsw{left:-6px;bottom:-6px}.fr-box .fr-video-resizer .fr-handler.fr-hse{right:-6px;bottom:-6px}@media (min-width:1200px){.fr-box .fr-video-resizer .fr-handler{width:10px;height:10px}.fr-box .fr-video-resizer .fr-handler.fr-hnw{left:-5px;top:-5px}.fr-box .fr-video-resizer .fr-handler.fr-hne{right:-5px;top:-5px}.fr-box .fr-video-resizer .fr-handler.fr-hsw{left:-5px;bottom:-5px}.fr-box .fr-video-resizer .fr-handler.fr-hse{right:-5px;bottom:-5px}}.fr-popup .fr-video-size-layer .fr-video-group .fr-input-line{width:calc(50% - 5px);display:inline-block}.fr-popup .fr-video-size-layer .fr-video-group .fr-input-line+.fr-input-line{margin-left:10px}.fr-popup .fr-video-upload-layer{border:dashed 2px #bdbdbd;padding:25px 0;position:relative;font-size:14px;letter-spacing:1px;line-height:140%;text-align:center}.fr-popup .fr-video-upload-layer:hover{background:#ebebeb}.fr-popup .fr-video-upload-layer.fr-drop{background:#ebebeb;border-color:#1e88e5}.fr-popup .fr-video-upload-layer .fr-form{-webkit-opacity:0;-moz-opacity:0;opacity:0;-ms-filter:"alpha(Opacity=0)";position:absolute;top:0;bottom:0;left:0;right:0;z-index:2147483640;overflow:hidden;margin:0!important;padding:0!important;width:100%!important}.fr-popup .fr-video-upload-layer .fr-form input{cursor:pointer;position:absolute;right:0;top:0;bottom:0;width:500%;height:100%;margin:0;font-size:400px}.fr-popup .fr-video-progress-bar-layer>h3{font-size:16px;margin:10px 0;font-weight:400}.fr-popup .fr-video-progress-bar-layer>div.fr-action-buttons{display:none}.fr-popup .fr-video-progress-bar-layer>div.fr-loader{background:#bcdbf7;height:10px;width:100%;margin-top:20px;overflow:hidden;position:relative}.fr-popup .fr-video-progress-bar-layer>div.fr-loader span{display:block;height:100%;width:0;background:#1e88e5;-webkit-transition:width .2s ease 0s;-moz-transition:width .2s ease 0s;-ms-transition:width .2s ease 0s;-o-transition:width .2s ease 0s}.fr-popup .fr-video-progress-bar-layer>div.fr-loader.fr-indeterminate span{width:30%!important;position:absolute;top:0;-webkit-animation:loading 2s linear infinite;-moz-animation:loading 2s linear infinite;-o-animation:loading 2s linear infinite;animation:loading 2s linear infinite}.fr-popup .fr-video-progress-bar-layer.fr-error>div.fr-loader{display:none}.fr-popup .fr-video-progress-bar-layer.fr-error>div.fr-action-buttons{display:block}.fr-video-overlay{position:fixed;top:0;left:0;bottom:0;right:0;z-index:2147483640;display:none} \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/themes/dark.min.css b/Mobile.Search.Web/Scripts/froala-editor/css/themes/dark.min.css deleted file mode 100644 index 1ef9317..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/themes/dark.min.css +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.dark-theme.fr-box.fr-basic .fr-element{color:#000;padding:16px;overflow-x:auto;min-height:52px}.dark-theme .fr-element{-webkit-user-select:auto}.dark-theme.fr-box a.fr-floating-btn{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);height:32px;width:32px;background:#353535;color:#42a5f5;-webkit-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;-moz-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;-ms-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;-o-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;left:0;top:0;line-height:32px;border:0}.dark-theme.fr-box a.fr-floating-btn svg{-webkit-transition:transform .2s ease 0s;-moz-transition:transform .2s ease 0s;-ms-transition:transform .2s ease 0s;-o-transition:transform .2s ease 0s;fill:#42a5f5}.dark-theme.fr-box a.fr-floating-btn i,.dark-theme.fr-box a.fr-floating-btn svg{font-size:14px;line-height:32px}.dark-theme.fr-box a.fr-floating-btn:hover{background:#3d3d3d}.dark-theme.fr-box a.fr-floating-btn:hover svg{fill:#42a5f5}.dark-theme .fr-wrapper .fr-placeholder{font-size:12px;color:#aaa;top:0;left:0;right:0}.dark-theme .fr-wrapper ::-moz-selection{background:#b5d6fd;color:#000}.dark-theme .fr-wrapper ::selection{background:#b5d6fd;color:#000}.dark-theme.fr-box.fr-basic .fr-wrapper{background:#fff;border:0;border-top:0;top:0;left:0}.dark-theme.fr-box.fr-basic.fr-top .fr-wrapper{border-top:0;border-radius:0 0 2px 2px;-moz-border-radius:0 0 2px 2px;-webkit-border-radius:0 0 2px 2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.dark-theme.fr-box.fr-basic.fr-bottom .fr-wrapper{border-bottom:0;border-radius:2px 2px 0 0;-moz-border-radius:2px 2px 0 0;-webkit-border-radius:2px 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16)}.dark-theme .fr-sticky-on.fr-sticky-ios{left:0;right:0}.dark-theme.fr-box .fr-counter{color:#aaa;background:#fff;border-top:solid 1px #ebebeb;border-left:solid 1px #ebebeb;border-radius:2px 0 0;-moz-border-radius:2px 0 0;-webkit-border-radius:2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.dark-theme.fr-box.fr-rtl .fr-counter{right:auto;border-right:solid 1px #ebebeb;border-radius:0 2px 0 0;-moz-border-radius:0 2px 0 0;-webkit-border-radius:0 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.dark-theme textarea.fr-code{background:#fff;color:#000}.dark-theme.fr-box.fr-code-view.fr-inline{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.dark-theme.fr-box.fr-inline .fr-command.fr-btn.html-switch{top:0;right:0;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);background:#fff;color:#fff;-moz-outline:0;outline:0;border:0;padding:12px;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s}.dark-theme.fr-box.fr-inline .fr-command.fr-btn.html-switch i{font-size:14px;width:14px}.dark-theme.fr-box.fr-inline .fr-command.fr-btn.html-switch.fr-desktop:hover{background:#3d3d3d}.dark-theme.fr-popup .fr-colors-tabs{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.dark-theme.fr-popup .fr-colors-tabs .fr-colors-tab{color:#fff;padding:8px 0}.dark-theme.fr-popup .fr-colors-tabs .fr-colors-tab:hover,.dark-theme.fr-popup .fr-colors-tabs .fr-colors-tab:focus{color:#42a5f5}.dark-theme.fr-popup .fr-colors-tabs .fr-colors-tab[data-param1=background]::after{bottom:0;left:0;background:#42a5f5;-webkit-transition:transform .2s ease 0s;-moz-transition:transform .2s ease 0s;-ms-transition:transform .2s ease 0s;-o-transition:transform .2s ease 0s}.dark-theme.fr-popup .fr-colors-tabs .fr-colors-tab.fr-selected-tab{color:#42a5f5}.dark-theme.fr-popup .fr-color-hex-layer .fr-input-line{padding:8px 0 0}.dark-theme.fr-popup .fr-color-hex-layer .fr-action-buttons button{background-color:#42a5f5;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.dark-theme.fr-popup .fr-color-hex-layer .fr-action-buttons button:hover{background-color:#128ef2}.dark-theme.fr-popup .fr-color-set{line-height:0}.dark-theme.fr-popup .fr-color-set>span>i,.dark-theme.fr-popup .fr-color-set>span>svg{bottom:0;left:0}.dark-theme.fr-popup .fr-color-set>span .fr-selected-color{color:#fff;font-weight:400;top:0;bottom:0;right:0;left:0}.dark-theme.fr-popup .fr-color-set>span:hover,.dark-theme.fr-popup .fr-color-set>span:focus{outline:1px solid #fff}.dark-theme .fr-drag-helper{background:#42a5f5;z-index:2147483640}.dark-theme.fr-popup .fr-link:focus{outline:0;background:#3d3d3d}.dark-theme.fr-popup .fr-file-upload-layer{border:dashed 2px gray;padding:25px 0}.dark-theme.fr-popup .fr-file-upload-layer:hover{background:#3d3d3d}.dark-theme.fr-popup .fr-file-upload-layer.fr-drop{background:#3d3d3d;border-color:#42a5f5}.dark-theme.fr-popup .fr-file-upload-layer .fr-form{top:0;bottom:0;left:0;right:0;z-index:2147483640}.dark-theme.fr-popup .fr-file-progress-bar-layer>h3{margin:10px 0}.dark-theme.fr-popup .fr-file-progress-bar-layer>div.fr-loader{background:#c6e4fc}.dark-theme.fr-popup .fr-file-progress-bar-layer>div.fr-loader span{background:#42a5f5;-webkit-transition:width .2s ease 0s;-moz-transition:width .2s ease 0s;-ms-transition:width .2s ease 0s;-o-transition:width .2s ease 0s}.dark-theme.fr-popup .fr-file-progress-bar-layer>div.fr-loader.fr-indeterminate span{top:0}.dark-theme.fr-box.fr-fullscreen{top:0;left:0;bottom:0;right:0}.dark-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tr{border:0}.dark-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tbody tr{border-bottom:solid 1px #595959}.dark-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tbody td:first-child{color:#fff}.dark-theme .fr-image-resizer{border:solid 1px #42a5f5}.dark-theme .fr-image-resizer .fr-handler{background:#42a5f5;border:solid 1px #fff}.dark-theme .fr-image-resizer .fr-handler{width:12px;height:12px}.dark-theme .fr-image-resizer .fr-handler.fr-hnw{left:-6px;top:-6px}.dark-theme .fr-image-resizer .fr-handler.fr-hne{right:-6px;top:-6px}.dark-theme .fr-image-resizer .fr-handler.fr-hsw{left:-6px;bottom:-6px}.dark-theme .fr-image-resizer .fr-handler.fr-hse{right:-6px;bottom:-6px}@media (min-width:1200px){.dark-theme .fr-image-resizer .fr-handler{width:10px;height:10px}.dark-theme .fr-image-resizer .fr-handler.fr-hnw{left:-5px;top:-5px}.dark-theme .fr-image-resizer .fr-handler.fr-hne{right:-5px;top:-5px}.dark-theme .fr-image-resizer .fr-handler.fr-hsw{left:-5px;bottom:-5px}.dark-theme .fr-image-resizer .fr-handler.fr-hse{right:-5px;bottom:-5px}}.dark-theme.fr-image-overlay{top:0;left:0;bottom:0;right:0;z-index:2147483640}.dark-theme.fr-popup .fr-image-upload-layer{border:dashed 2px gray;padding:25px 0}.dark-theme.fr-popup .fr-image-upload-layer:hover{background:#3d3d3d}.dark-theme.fr-popup .fr-image-upload-layer.fr-drop{background:#3d3d3d;border-color:#42a5f5}.dark-theme.fr-popup .fr-image-upload-layer .fr-form{top:0;bottom:0;left:0;right:0;z-index:2147483640}.dark-theme.fr-popup .fr-image-progress-bar-layer>h3{margin:10px 0}.dark-theme.fr-popup .fr-image-progress-bar-layer>div.fr-loader{background:#c6e4fc}.dark-theme.fr-popup .fr-image-progress-bar-layer>div.fr-loader span{background:#42a5f5;-webkit-transition:width .2s ease 0s;-moz-transition:width .2s ease 0s;-ms-transition:width .2s ease 0s;-o-transition:width .2s ease 0s}.dark-theme.fr-popup .fr-image-progress-bar-layer>div.fr-loader.fr-indeterminate span{top:0}.dark-theme.fr-modal-head .fr-modal-head-line i.fr-modal-more{-webkit-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s;-moz-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s;-ms-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s;-o-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s}.dark-theme.fr-modal-head .fr-modal-head-line i.fr-modal-more.fr-not-available{opacity:0;width:0;padding:12px 0}.dark-theme.fr-modal-head .fr-modal-tags a{opacity:0;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;color:#42a5f5;-webkit-transition:opacity .2s ease 0s,background .2s ease 0s;-moz-transition:opacity .2s ease 0s,background .2s ease 0s;-ms-transition:opacity .2s ease 0s,background .2s ease 0s;-o-transition:opacity .2s ease 0s,background .2s ease 0s}.dark-theme.fr-modal-head .fr-modal-tags a.fr-selected-tag{background:#2e2e2e}.dark-themediv.fr-modal-body .fr-preloader{margin:50px auto}.dark-themediv.fr-modal-body div.fr-image-list{padding:0}.dark-themediv.fr-modal-body div.fr-image-list div.fr-image-container{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.dark-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-image-deleting::after{-webkit-transition:opacity .2s ease 0s;-moz-transition:opacity .2s ease 0s;-ms-transition:opacity .2s ease 0s;-o-transition:opacity .2s ease 0s;background:#000;top:0;left:0;bottom:0;right:0}.dark-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-image-deleting::before{color:#fff;top:0;left:0;bottom:0;right:0;margin:auto}.dark-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-empty{background:#aaa}.dark-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-empty::after{margin:auto;top:0;bottom:0;left:0;right:0}.dark-themediv.fr-modal-body div.fr-image-list div.fr-image-container img{-webkit-transition:opacity .2s ease 0s,filter .2s ease 0s;-moz-transition:opacity .2s ease 0s,filter .2s ease 0s;-ms-transition:opacity .2s ease 0s,filter .2s ease 0s;-o-transition:opacity .2s ease 0s,filter .2s ease 0s}.dark-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img,.dark-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img{-webkit-transition:background .2s ease 0s,color .2s ease 0s;-moz-transition:background .2s ease 0s,color .2s ease 0s;-ms-transition:background .2s ease 0s,color .2s ease 0s;-o-transition:background .2s ease 0s,color .2s ease 0s;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);margin:0}.dark-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img{background:#b8312f;color:#fff}.dark-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img{background:#353535;color:#42a5f5}.dark-theme.dark-theme.fr-desktop .fr-modal-wrapper .fr-modal-head .fr-modal-tags a:hover{background:#3d3d3d}.dark-theme.dark-theme.fr-desktop .fr-modal-wrapper .fr-modal-head .fr-modal-tags a.fr-selected-tag{background:#2e2e2e}.dark-theme.dark-theme.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img:hover{background:#bf4644;color:#fff}.dark-theme.dark-theme.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img:hover{background:#3d3d3d}.dark-theme .fr-line-breaker{border-top:1px solid #42a5f5}.dark-theme .fr-line-breaker a.fr-floating-btn{left:calc(50% - (32px / 2));top:-16px}.dark-theme .fr-qi-helper{padding-left:16px}.dark-theme .fr-qi-helper a.fr-btn.fr-floating-btn{color:#fff}.dark-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-special-characters-modal .fr-special-character{border:1px solid #aaa}.dark-theme .fr-element table td.fr-selected-cell,.dark-theme .fr-element table th.fr-selected-cell{border:1px double #42a5f5}.dark-theme .fr-table-resizer div{border-right:1px solid #42a5f5}.dark-theme.fr-popup .fr-table-colors-hex-layer .fr-input-line{padding:8px 0 0}.dark-theme.fr-popup .fr-table-colors-hex-layer .fr-action-buttons button{background-color:#42a5f5;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.dark-theme.fr-popup .fr-table-colors-hex-layer .fr-action-buttons button:hover{background-color:#128ef2}.dark-theme.fr-popup .fr-table-size .fr-select-table-size{line-height:0}.dark-theme.fr-popup .fr-table-size .fr-select-table-size>span{padding:0 4px 4px 0}.dark-theme.fr-popup .fr-table-size .fr-select-table-size>span>span{border:1px solid #ddd}.dark-theme.fr-popup .fr-table-size .fr-select-table-size>span.hover>span{background:rgba(66,165,245,.3);border:solid 1px #42a5f5}.dark-theme.fr-popup .fr-table-colors{line-height:0}.dark-theme.fr-popup .fr-table-colors>span>i{bottom:0;left:0}.dark-theme.fr-popup .fr-table-colors>span:focus{outline:1px solid #fff}.dark-theme .fr-element .fr-video::after{top:0;left:0;right:0;bottom:0}.dark-theme.fr-box .fr-video-resizer{border:solid 1px #42a5f5}.dark-theme.fr-box .fr-video-resizer .fr-handler{background:#42a5f5;border:solid 1px #fff}.dark-theme.fr-box .fr-video-resizer .fr-handler{width:12px;height:12px}.dark-theme.fr-box .fr-video-resizer .fr-handler.fr-hnw{left:-6px;top:-6px}.dark-theme.fr-box .fr-video-resizer .fr-handler.fr-hne{right:-6px;top:-6px}.dark-theme.fr-box .fr-video-resizer .fr-handler.fr-hsw{left:-6px;bottom:-6px}.dark-theme.fr-box .fr-video-resizer .fr-handler.fr-hse{right:-6px;bottom:-6px}@media (min-width:1200px){.dark-theme.fr-box .fr-video-resizer .fr-handler{width:10px;height:10px}.dark-theme.fr-box .fr-video-resizer .fr-handler.fr-hnw{left:-5px;top:-5px}.dark-theme.fr-box .fr-video-resizer .fr-handler.fr-hne{right:-5px;top:-5px}.dark-theme.fr-box .fr-video-resizer .fr-handler.fr-hsw{left:-5px;bottom:-5px}.dark-theme.fr-box .fr-video-resizer .fr-handler.fr-hse{right:-5px;bottom:-5px}}.dark-theme.fr-popup .fr-video-upload-layer{border:dashed 2px gray;padding:25px 0}.dark-theme.fr-popup .fr-video-upload-layer:hover{background:#3d3d3d}.dark-theme.fr-popup .fr-video-upload-layer.fr-drop{background:#3d3d3d;border-color:#42a5f5}.dark-theme.fr-popup .fr-video-upload-layer .fr-form{top:0;bottom:0;left:0;right:0;z-index:2147483640}.dark-theme.fr-popup .fr-video-progress-bar-layer>h3{margin:10px 0}.dark-theme.fr-popup .fr-video-progress-bar-layer>div.fr-loader{background:#c6e4fc}.dark-theme.fr-popup .fr-video-progress-bar-layer>div.fr-loader span{background:#42a5f5;-webkit-transition:width .2s ease 0s;-moz-transition:width .2s ease 0s;-ms-transition:width .2s ease 0s;-o-transition:width .2s ease 0s}.dark-theme.fr-popup .fr-video-progress-bar-layer>div.fr-loader.fr-indeterminate span{top:0}.dark-theme.fr-video-overlay{top:0;left:0;bottom:0;right:0;z-index:2147483640}.dark-theme .fr-view span[style~="color:"] a{color:inherit}.dark-theme .fr-view strong{font-weight:700}.dark-theme .fr-view table.fr-alternate-rows tbody tr:nth-child(2n){background:#d3d3d3}.dark-theme .fr-view table td,.dark-theme .fr-view table th{border:1px solid #ddd}.dark-theme .fr-view table th{background:#e6e6e6}.dark-theme .fr-view[dir=rtl] blockquote{border-right:solid 2px #5e35b1;margin-right:0}.dark-theme .fr-view[dir=rtl] blockquote blockquote{border-color:#00bcd4}.dark-theme .fr-view[dir=rtl] blockquote blockquote blockquote{border-color:#43a047}.dark-theme .fr-view blockquote{border-left:solid 2px #5e35b1;margin-left:0;color:#5e35b1}.dark-theme .fr-view blockquote blockquote{border-color:#00bcd4;color:#00bcd4}.dark-theme .fr-view blockquote blockquote blockquote{border-color:#43a047;color:#43a047}.dark-theme .fr-view span.fr-emoticon{line-height:0}.dark-theme .fr-view span.fr-emoticon.fr-emoticon-img{font-size:inherit}.dark-theme .fr-view .fr-text-bordered{padding:10px 0}.dark-theme .fr-view .fr-img-caption .fr-img-wrap{margin:auto}.dark-theme .fr-view .fr-img-caption .fr-img-wrap img{margin:auto}.dark-theme .fr-view .fr-img-caption .fr-img-wrap>span{margin:auto}.dark-theme .fr-element .fr-embedly::after{top:0;left:0;right:0;bottom:0}.dark-theme.fr-box .fr-embedly-resizer{border:solid 1px #42a5f5}.dark-theme .examples-variante>a{font-size:14px;font-family:Arial,Helvetica,sans-serif}.dark-theme .sc-cm-holder>.sc-cm{border-top:5px solid #222!important}.dark-theme .sc-cm__item_dropdown:hover>a,.dark-theme .sc-cm a:hover{background-color:#3d3d3d!important}.dark-theme .sc-cm__item_active>a,.dark-theme .sc-cm__item_active>a:hover,.dark-theme .sc-cm a:active,.dark-theme .sc-cm a:focus{background-color:#2e2e2e!important}.dark-theme .sc-cm-holder>.sc-cm:before{background-color:#3d3d3d!important}.dark-theme .fr-tooltip{top:0;left:0;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);-moz-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);background:#222;color:#fff;font-size:11px;line-height:22px;font-family:Arial,Helvetica,sans-serif;-webkit-transition:opacity .2s ease 0s;-moz-transition:opacity .2s ease 0s;-ms-transition:opacity .2s ease 0s;-o-transition:opacity .2s ease 0s}.dark-theme.fr-toolbar .fr-command.fr-btn,.dark-theme.fr-popup .fr-command.fr-btn{color:#fff;-moz-outline:0;outline:0;border:0;margin:0 2px;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s;padding:0;width:38px;height:38px}.dark-theme.fr-toolbar .fr-command.fr-btn::-moz-focus-inner,.dark-theme.fr-popup .fr-command.fr-btn::-moz-focus-inner{border:0}.dark-theme.fr-toolbar .fr-command.fr-btn.fr-btn-text,.dark-theme.fr-popup .fr-command.fr-btn.fr-btn-text{width:auto}.dark-theme.fr-toolbar .fr-command.fr-btn i,.dark-theme.fr-popup .fr-command.fr-btn i,.dark-theme.fr-toolbar .fr-command.fr-btn svg,.dark-theme.fr-popup .fr-command.fr-btn svg{font-size:14px;width:14px;margin:12px}.dark-theme.fr-toolbar .fr-command.fr-btn span,.dark-theme.fr-popup .fr-command.fr-btn span{font-size:14px;line-height:17px;min-width:34px;height:17px;padding:0 2px}.dark-theme.fr-toolbar .fr-command.fr-btn img,.dark-theme.fr-popup .fr-command.fr-btn img{margin:12px;width:14px}.dark-theme.fr-toolbar .fr-command.fr-btn.fr-active,.dark-theme.fr-popup .fr-command.fr-btn.fr-active{color:#42a5f5;background:0 0}.dark-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-selection,.dark-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-selection{width:auto}.dark-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown i,.dark-theme.fr-popup .fr-command.fr-btn.fr-dropdown i,.dark-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown span,.dark-theme.fr-popup .fr-command.fr-btn.fr-dropdown span,.dark-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown img,.dark-theme.fr-popup .fr-command.fr-btn.fr-dropdown img,.dark-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown svg,.dark-theme.fr-popup .fr-command.fr-btn.fr-dropdown svg{margin-left:8px;margin-right:16px}.dark-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active,.dark-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active{color:#fff;background:#2e2e2e}.dark-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:hover,.dark-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:hover,.dark-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:focus,.dark-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:focus{background:#2e2e2e!important;color:#fff!important}.dark-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:hover::after,.dark-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:hover::after,.dark-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:focus::after,.dark-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:focus::after{border-top-color:#fff!important}.dark-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown::after,.dark-theme.fr-popup .fr-command.fr-btn.fr-dropdown::after{width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid #fff;right:4px;top:17px}.dark-theme.fr-toolbar .fr-command.fr-btn.fr-disabled,.dark-theme.fr-popup .fr-command.fr-btn.fr-disabled{color:gray}.dark-theme.fr-toolbar .fr-command.fr-btn.fr-disabled::after,.dark-theme.fr-popup .fr-command.fr-btn.fr-disabled::after{border-top-color:gray!important}.dark-theme.fr-toolbar.fr-disabled .fr-btn,.dark-theme.fr-popup.fr-disabled .fr-btn,.dark-theme.fr-toolbar.fr-disabled .fr-btn.fr-active,.dark-theme.fr-popup.fr-disabled .fr-btn.fr-active{color:gray}.dark-theme.fr-toolbar.fr-disabled .fr-btn.fr-dropdown::after,.dark-theme.fr-popup.fr-disabled .fr-btn.fr-dropdown::after,.dark-theme.fr-toolbar.fr-disabled .fr-btn.fr-active.fr-dropdown::after,.dark-theme.fr-popup.fr-disabled .fr-btn.fr-active.fr-dropdown::after{border-top-color:gray}.dark-theme.fr-desktop .fr-command:hover,.dark-theme.fr-desktop .fr-command:focus{outline:0;color:#fff;background:#3d3d3d}.dark-theme.fr-desktop .fr-command:hover::after,.dark-theme.fr-desktop .fr-command:focus::after{border-top-color:#fff!important}.dark-theme.fr-desktop .fr-command.fr-selected{color:#fff;background:#2e2e2e}.dark-theme.fr-desktop .fr-command.fr-active:hover,.dark-theme.fr-desktop .fr-command.fr-active:focus{color:#42a5f5;background:#3d3d3d}.dark-theme.fr-desktop .fr-command.fr-active.fr-selected{color:#42a5f5;background:#2e2e2e}.dark-theme.fr-toolbar.fr-mobile .fr-command.fr-blink,.dark-theme.fr-popup.fr-mobile .fr-command.fr-blink{background:0 0}.dark-theme .fr-command.fr-btn+.fr-dropdown-menu{right:auto;bottom:auto;height:auto;border-radius:0 0 2px 2px;-moz-border-radius:0 0 2px 2px;-webkit-border-radius:0 0 2px 2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.dark-theme .fr-command.fr-btn+.fr-dropdown-menu.test-height .fr-dropdown-wrapper{height:auto;max-height:275px}.dark-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper{background:#353535;padding:0;margin:auto;-webkit-transition:max-height .2s ease 0s;-moz-transition:max-height .2s ease 0s;-ms-transition:max-height .2s ease 0s;-o-transition:max-height .2s ease 0s;margin-top:0;max-height:0;height:0}.dark-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content{overflow:auto;max-height:275px}.dark-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list{margin:0;padding:0}.dark-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li{padding:0;margin:0}.dark-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a{color:inherit}.dark-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-active{background:#2e2e2e}.dark-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-disabled{color:gray}.dark-theme .fr-command.fr-btn.fr-active+.fr-dropdown-menu{-webkit-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);-moz-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14)}.dark-theme .fr-command.fr-btn.fr-active+.fr-dropdown-menu .fr-dropdown-wrapper{height:auto;max-height:275px}.dark-theme .fr-bottom>.fr-command.fr-btn+.fr-dropdown-menu{border-radius:2px 2px 0 0;-moz-border-radius:2px 2px 0 0;-webkit-border-radius:2px 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.dark-theme.fr-modal{color:#fff;font-family:Arial,Helvetica,sans-serif;overflow-x:auto;top:0;left:0;bottom:0;right:0;z-index:2147483640}.dark-theme.fr-modal.fr-middle .fr-modal-wrapper{margin-top:0;margin-bottom:0;margin-left:auto;margin-right:auto}.dark-theme.fr-modal .fr-modal-wrapper{border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;margin:20px auto;background:#353535;-webkit-box-shadow:0 5px 8px rgba(0,0,0,.19),0 4px 3px 1px rgba(0,0,0,.14);-moz-box-shadow:0 5px 8px rgba(0,0,0,.19),0 4px 3px 1px rgba(0,0,0,.14);box-shadow:0 5px 8px rgba(0,0,0,.19),0 4px 3px 1px rgba(0,0,0,.14);border:0;border-top:5px solid #222}@media (min-width:768px) and (max-width:991px){.dark-theme.fr-modal .fr-modal-wrapper{margin:30px auto}}@media (min-width:992px){.dark-theme.fr-modal .fr-modal-wrapper{margin:50px auto}}.dark-theme.fr-modal .fr-modal-wrapper .fr-modal-head{background:#353535;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);-moz-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);border-bottom:0;-webkit-transition:height .2s ease 0s;-moz-transition:height .2s ease 0s;-ms-transition:height .2s ease 0s;-o-transition:height .2s ease 0s}.dark-theme.fr-modal .fr-modal-wrapper .fr-modal-head .fr-modal-close{color:#fff;top:0;right:0;-webkit-transition:color .2s ease 0s;-moz-transition:color .2s ease 0s;-ms-transition:color .2s ease 0s;-o-transition:color .2s ease 0s}.dark-theme.fr-modal .fr-modal-wrapper .fr-modal-head h4{margin:0;font-weight:400}.dark-theme.fr-modal .fr-modal-wrapper div.fr-modal-body:focus{outline:0}.dark-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command{color:#42a5f5;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.dark-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:hover,.dark-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:focus{background:#3d3d3d;color:#42a5f5}.dark-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:active{background:#2e2e2e;color:#42a5f5}.dark-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button::-moz-focus-inner{border:0}.dark-theme.dark-theme.fr-desktop .fr-modal-wrapper .fr-modal-head i:hover{background:#3d3d3d}.dark-theme.fr-overlay{top:0;bottom:0;left:0;right:0;background:#000}.dark-theme.fr-popup{color:#fff;background:#353535;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;font-family:Arial,Helvetica,sans-serif;border:0;border-top:5px solid #222}.dark-theme.fr-popup .fr-input-focus{background:#363636}.dark-theme.fr-popup.fr-above{border-top:0;border-bottom:5px solid #222;-webkit-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16)}.dark-theme.fr-popup .fr-input-line{padding:8px 0}.dark-theme.fr-popup .fr-input-line input[type=text],.dark-theme.fr-popup .fr-input-line textarea{margin:0 0 1px;border-bottom:solid 1px #bdbdbd;color:#fff}.dark-theme.fr-popup .fr-input-line input[type=text]:focus,.dark-theme.fr-popup .fr-input-line textarea:focus{border-bottom:solid 2px #42a5f5}.dark-theme.fr-popup .fr-input-line input+label,.dark-theme.fr-popup .fr-input-line textarea+label{top:0;left:0;-webkit-transition:color .2s ease 0s;-moz-transition:color .2s ease 0s;-ms-transition:color .2s ease 0s;-o-transition:color .2s ease 0s;background:#353535}.dark-theme.fr-popup .fr-input-line input.fr-not-empty:focus+label,.dark-theme.fr-popup .fr-input-line textarea.fr-not-empty:focus+label{color:#42a5f5}.dark-theme.fr-popup .fr-input-line input.fr-not-empty+label,.dark-theme.fr-popup .fr-input-line textarea.fr-not-empty+label{color:gray}.dark-theme.fr-popup .fr-buttons{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);padding:0 2px;line-height:0;border-bottom:0}.dark-theme.fr-popup .fr-layer{width:225px}@media (min-width:768px){.dark-theme.fr-popup .fr-layer{width:300px}}.dark-theme.fr-popup .fr-action-buttons button.fr-command{color:#42a5f5;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.dark-theme.fr-popup .fr-action-buttons button.fr-command:hover,.dark-theme.fr-popup .fr-action-buttons button.fr-command:focus{background:#3d3d3d;color:#42a5f5}.dark-theme.fr-popup .fr-action-buttons button.fr-command:active{background:#2e2e2e;color:#42a5f5}.dark-theme.fr-popup .fr-action-buttons button::-moz-focus-inner{border:0}.dark-theme.fr-popup .fr-checkbox span{border:solid 1px #fff;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-transition:background .2s ease 0s,border-color .2s ease 0s;-moz-transition:background .2s ease 0s,border-color .2s ease 0s;-ms-transition:background .2s ease 0s,border-color .2s ease 0s;-o-transition:background .2s ease 0s,border-color .2s ease 0s}.dark-theme.fr-popup .fr-checkbox input{margin:0;padding:0}.dark-theme.fr-popup .fr-checkbox input:checked+span{background:#42a5f5;border-color:#42a5f5}.dark-theme.fr-popup .fr-checkbox input:focus+span{border-color:#42a5f5}.dark-theme.fr-popup.fr-rtl .fr-input-line input+label,.dark-theme.fr-popup.fr-rtl .fr-input-line textarea+label{left:auto;right:0}.dark-theme.fr-popup .fr-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid #222;top:-9px;margin-left:-5px}.dark-theme.fr-popup.fr-above .fr-arrow{top:auto;bottom:-9px;border-bottom:0;border-top:5px solid #222}.dark-theme.fr-toolbar{color:#fff;background:#353535;font-family:Arial,Helvetica,sans-serif;padding:0 2px;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);border:0;border-top:5px solid #222}.dark-theme.fr-toolbar.fr-inline .fr-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid #222;top:-9px;margin-left:-5px}.dark-theme.fr-toolbar.fr-inline.fr-above{-webkit-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);border-bottom:5px solid #222;border-top:0}.dark-theme.fr-toolbar.fr-inline.fr-above .fr-arrow{top:auto;bottom:-9px;border-bottom:0;border-top-color:inherit;border-top-width:5px}.dark-theme.fr-toolbar.fr-top{top:0;border-radius:2px 2px 0 0;-moz-border-radius:2px 2px 0 0;-webkit-border-radius:2px 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.dark-theme.fr-toolbar.fr-bottom{bottom:0;border-radius:0 0 2px 2px;-moz-border-radius:0 0 2px 2px;-webkit-border-radius:0 0 2px 2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.dark-theme .fr-separator{background:#595959}.dark-theme .fr-separator.fr-vs{height:34px;width:1px;margin:2px}.dark-theme .fr-separator.fr-hs{height:1px;width:calc(100% - (2 * 2px));margin:0 2px} \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/themes/gray.min.css b/Mobile.Search.Web/Scripts/froala-editor/css/themes/gray.min.css deleted file mode 100644 index 5e90edb..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/themes/gray.min.css +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.gray-theme.fr-box.fr-basic .fr-element{color:#000;padding:16px;overflow-x:auto;min-height:52px}.gray-theme .fr-element{-webkit-user-select:auto}.gray-theme.fr-box a.fr-floating-btn{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);height:32px;width:32px;background:#fff;color:#0097a7;-webkit-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;-moz-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;-ms-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;-o-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;left:0;top:0;line-height:32px;border:0}.gray-theme.fr-box a.fr-floating-btn svg{-webkit-transition:transform .2s ease 0s;-moz-transition:transform .2s ease 0s;-ms-transition:transform .2s ease 0s;-o-transition:transform .2s ease 0s;fill:#0097a7}.gray-theme.fr-box a.fr-floating-btn i,.gray-theme.fr-box a.fr-floating-btn svg{font-size:14px;line-height:32px}.gray-theme.fr-box a.fr-floating-btn:hover{background:#e6e6e6}.gray-theme.fr-box a.fr-floating-btn:hover svg{fill:#0097a7}.gray-theme .fr-wrapper .fr-placeholder{font-size:12px;color:#aaa;top:0;left:0;right:0}.gray-theme .fr-wrapper ::-moz-selection{background:#b5d6fd;color:#000}.gray-theme .fr-wrapper ::selection{background:#b5d6fd;color:#000}.gray-theme.fr-box.fr-basic .fr-wrapper{background:#fff;border:0;border-top:0;top:0;left:0}.gray-theme.fr-box.fr-basic.fr-top .fr-wrapper{border-top:0;border-radius:0 0 2px 2px;-moz-border-radius:0 0 2px 2px;-webkit-border-radius:0 0 2px 2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.gray-theme.fr-box.fr-basic.fr-bottom .fr-wrapper{border-bottom:0;border-radius:2px 2px 0 0;-moz-border-radius:2px 2px 0 0;-webkit-border-radius:2px 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16)}.gray-theme .fr-sticky-on.fr-sticky-ios{left:0;right:0}.gray-theme.fr-box .fr-counter{color:#ccc;background:#fff;border-top:solid 1px #ebebeb;border-left:solid 1px #ebebeb;border-radius:2px 0 0;-moz-border-radius:2px 0 0;-webkit-border-radius:2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.gray-theme.fr-box.fr-rtl .fr-counter{right:auto;border-right:solid 1px #ebebeb;border-radius:0 2px 0 0;-moz-border-radius:0 2px 0 0;-webkit-border-radius:0 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.gray-theme textarea.fr-code{background:#fff;color:#000}.gray-theme.fr-box.fr-code-view.fr-inline{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.gray-theme.fr-box.fr-inline .fr-command.fr-btn.html-switch{top:0;right:0;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);background:#fff;color:#37474f;-moz-outline:0;outline:0;border:0;padding:12px;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s}.gray-theme.fr-box.fr-inline .fr-command.fr-btn.html-switch i{font-size:14px;width:14px}.gray-theme.fr-box.fr-inline .fr-command.fr-btn.html-switch.fr-desktop:hover{background:#e6e6e6}.gray-theme.fr-popup .fr-colors-tabs{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.gray-theme.fr-popup .fr-colors-tabs .fr-colors-tab{color:#37474f;padding:8px 0}.gray-theme.fr-popup .fr-colors-tabs .fr-colors-tab:hover,.gray-theme.fr-popup .fr-colors-tabs .fr-colors-tab:focus{color:#0097a7}.gray-theme.fr-popup .fr-colors-tabs .fr-colors-tab[data-param1=background]::after{bottom:0;left:0;background:#0097a7;-webkit-transition:transform .2s ease 0s;-moz-transition:transform .2s ease 0s;-ms-transition:transform .2s ease 0s;-o-transition:transform .2s ease 0s}.gray-theme.fr-popup .fr-colors-tabs .fr-colors-tab.fr-selected-tab{color:#0097a7}.gray-theme.fr-popup .fr-color-hex-layer .fr-input-line{padding:8px 0 0}.gray-theme.fr-popup .fr-color-hex-layer .fr-action-buttons button{background-color:#0097a7;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.gray-theme.fr-popup .fr-color-hex-layer .fr-action-buttons button:hover{background-color:#006974}.gray-theme.fr-popup .fr-color-set{line-height:0}.gray-theme.fr-popup .fr-color-set>span>i,.gray-theme.fr-popup .fr-color-set>span>svg{bottom:0;left:0}.gray-theme.fr-popup .fr-color-set>span .fr-selected-color{color:#fff;font-weight:400;top:0;bottom:0;right:0;left:0}.gray-theme.fr-popup .fr-color-set>span:hover,.gray-theme.fr-popup .fr-color-set>span:focus{outline:1px solid #37474f}.gray-theme .fr-drag-helper{background:#0097a7;z-index:2147483640}.gray-theme.fr-popup .fr-link:focus{outline:0;background:#e6e6e6}.gray-theme.fr-popup .fr-file-upload-layer{border:dashed 2px #b7bdc0;padding:25px 0}.gray-theme.fr-popup .fr-file-upload-layer:hover{background:#e6e6e6}.gray-theme.fr-popup .fr-file-upload-layer.fr-drop{background:#e6e6e6;border-color:#0097a7}.gray-theme.fr-popup .fr-file-upload-layer .fr-form{top:0;bottom:0;left:0;right:0;z-index:2147483640}.gray-theme.fr-popup .fr-file-progress-bar-layer>h3{margin:10px 0}.gray-theme.fr-popup .fr-file-progress-bar-layer>div.fr-loader{background:#b3e0e5}.gray-theme.fr-popup .fr-file-progress-bar-layer>div.fr-loader span{background:#0097a7;-webkit-transition:width .2s ease 0s;-moz-transition:width .2s ease 0s;-ms-transition:width .2s ease 0s;-o-transition:width .2s ease 0s}.gray-theme.fr-popup .fr-file-progress-bar-layer>div.fr-loader.fr-indeterminate span{top:0}.gray-theme.fr-box.fr-fullscreen{top:0;left:0;bottom:0;right:0}.gray-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tr{border:0}.gray-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tbody tr{border-bottom:solid 1px #ebebeb}.gray-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tbody td:first-child{color:#737e84}.gray-theme .fr-image-resizer{border:solid 1px #0097a7}.gray-theme .fr-image-resizer .fr-handler{background:#0097a7;border:solid 1px #fff}.gray-theme .fr-image-resizer .fr-handler{width:12px;height:12px}.gray-theme .fr-image-resizer .fr-handler.fr-hnw{left:-6px;top:-6px}.gray-theme .fr-image-resizer .fr-handler.fr-hne{right:-6px;top:-6px}.gray-theme .fr-image-resizer .fr-handler.fr-hsw{left:-6px;bottom:-6px}.gray-theme .fr-image-resizer .fr-handler.fr-hse{right:-6px;bottom:-6px}@media (min-width:1200px){.gray-theme .fr-image-resizer .fr-handler{width:10px;height:10px}.gray-theme .fr-image-resizer .fr-handler.fr-hnw{left:-5px;top:-5px}.gray-theme .fr-image-resizer .fr-handler.fr-hne{right:-5px;top:-5px}.gray-theme .fr-image-resizer .fr-handler.fr-hsw{left:-5px;bottom:-5px}.gray-theme .fr-image-resizer .fr-handler.fr-hse{right:-5px;bottom:-5px}}.gray-theme.fr-image-overlay{top:0;left:0;bottom:0;right:0;z-index:2147483640}.gray-theme.fr-popup .fr-image-upload-layer{border:dashed 2px #b7bdc0;padding:25px 0}.gray-theme.fr-popup .fr-image-upload-layer:hover{background:#e6e6e6}.gray-theme.fr-popup .fr-image-upload-layer.fr-drop{background:#e6e6e6;border-color:#0097a7}.gray-theme.fr-popup .fr-image-upload-layer .fr-form{top:0;bottom:0;left:0;right:0;z-index:2147483640}.gray-theme.fr-popup .fr-image-progress-bar-layer>h3{margin:10px 0}.gray-theme.fr-popup .fr-image-progress-bar-layer>div.fr-loader{background:#b3e0e5}.gray-theme.fr-popup .fr-image-progress-bar-layer>div.fr-loader span{background:#0097a7;-webkit-transition:width .2s ease 0s;-moz-transition:width .2s ease 0s;-ms-transition:width .2s ease 0s;-o-transition:width .2s ease 0s}.gray-theme.fr-popup .fr-image-progress-bar-layer>div.fr-loader.fr-indeterminate span{top:0}.gray-theme.fr-modal-head .fr-modal-head-line i.fr-modal-more{-webkit-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s;-moz-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s;-ms-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s;-o-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s}.gray-theme.fr-modal-head .fr-modal-head-line i.fr-modal-more.fr-not-available{opacity:0;width:0;padding:12px 0}.gray-theme.fr-modal-head .fr-modal-tags a{opacity:0;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;color:#0097a7;-webkit-transition:opacity .2s ease 0s,background .2s ease 0s;-moz-transition:opacity .2s ease 0s,background .2s ease 0s;-ms-transition:opacity .2s ease 0s,background .2s ease 0s;-o-transition:opacity .2s ease 0s,background .2s ease 0s}.gray-theme.fr-modal-head .fr-modal-tags a.fr-selected-tag{background:#d6d6d6}.gray-themediv.fr-modal-body .fr-preloader{margin:50px auto}.gray-themediv.fr-modal-body div.fr-image-list{padding:0}.gray-themediv.fr-modal-body div.fr-image-list div.fr-image-container{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.gray-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-image-deleting::after{-webkit-transition:opacity .2s ease 0s;-moz-transition:opacity .2s ease 0s;-ms-transition:opacity .2s ease 0s;-o-transition:opacity .2s ease 0s;background:#000;top:0;left:0;bottom:0;right:0}.gray-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-image-deleting::before{color:#fff;top:0;left:0;bottom:0;right:0;margin:auto}.gray-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-empty{background:#ccc}.gray-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-empty::after{margin:auto;top:0;bottom:0;left:0;right:0}.gray-themediv.fr-modal-body div.fr-image-list div.fr-image-container img{-webkit-transition:opacity .2s ease 0s,filter .2s ease 0s;-moz-transition:opacity .2s ease 0s,filter .2s ease 0s;-ms-transition:opacity .2s ease 0s,filter .2s ease 0s;-o-transition:opacity .2s ease 0s,filter .2s ease 0s}.gray-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img,.gray-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img{-webkit-transition:background .2s ease 0s,color .2s ease 0s;-moz-transition:background .2s ease 0s,color .2s ease 0s;-ms-transition:background .2s ease 0s,color .2s ease 0s;-o-transition:background .2s ease 0s,color .2s ease 0s;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);margin:0}.gray-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img{background:#b8312f;color:#fff}.gray-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img{background:#f5f5f5;color:#0097a7}.gray-theme.gray-theme.fr-desktop .fr-modal-wrapper .fr-modal-head .fr-modal-tags a:hover{background:#e6e6e6}.gray-theme.gray-theme.fr-desktop .fr-modal-wrapper .fr-modal-head .fr-modal-tags a.fr-selected-tag{background:#d6d6d6}.gray-theme.gray-theme.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img:hover{background:#bf4644;color:#fff}.gray-theme.gray-theme.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img:hover{background:#e6e6e6}.gray-theme .fr-line-breaker{border-top:1px solid #0097a7}.gray-theme .fr-line-breaker a.fr-floating-btn{left:calc(50% - (32px / 2));top:-16px}.gray-theme .fr-qi-helper{padding-left:16px}.gray-theme .fr-qi-helper a.fr-btn.fr-floating-btn{color:#37474f}.gray-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-special-characters-modal .fr-special-character{border:1px solid #ccc}.gray-theme .fr-element table td.fr-selected-cell,.gray-theme .fr-element table th.fr-selected-cell{border:1px double #0097a7}.gray-theme .fr-table-resizer div{border-right:1px solid #0097a7}.gray-theme.fr-popup .fr-table-colors-hex-layer .fr-input-line{padding:8px 0 0}.gray-theme.fr-popup .fr-table-colors-hex-layer .fr-action-buttons button{background-color:#0097a7;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.gray-theme.fr-popup .fr-table-colors-hex-layer .fr-action-buttons button:hover{background-color:#006974}.gray-theme.fr-popup .fr-table-size .fr-select-table-size{line-height:0}.gray-theme.fr-popup .fr-table-size .fr-select-table-size>span{padding:0 4px 4px 0}.gray-theme.fr-popup .fr-table-size .fr-select-table-size>span>span{border:1px solid #ddd}.gray-theme.fr-popup .fr-table-size .fr-select-table-size>span.hover>span{background:rgba(0,151,167,.3);border:solid 1px #0097a7}.gray-theme.fr-popup .fr-table-colors{line-height:0}.gray-theme.fr-popup .fr-table-colors>span>i{bottom:0;left:0}.gray-theme.fr-popup .fr-table-colors>span:focus{outline:1px solid #37474f}.gray-theme .fr-element .fr-video::after{top:0;left:0;right:0;bottom:0}.gray-theme.fr-box .fr-video-resizer{border:solid 1px #0097a7}.gray-theme.fr-box .fr-video-resizer .fr-handler{background:#0097a7;border:solid 1px #fff}.gray-theme.fr-box .fr-video-resizer .fr-handler{width:12px;height:12px}.gray-theme.fr-box .fr-video-resizer .fr-handler.fr-hnw{left:-6px;top:-6px}.gray-theme.fr-box .fr-video-resizer .fr-handler.fr-hne{right:-6px;top:-6px}.gray-theme.fr-box .fr-video-resizer .fr-handler.fr-hsw{left:-6px;bottom:-6px}.gray-theme.fr-box .fr-video-resizer .fr-handler.fr-hse{right:-6px;bottom:-6px}@media (min-width:1200px){.gray-theme.fr-box .fr-video-resizer .fr-handler{width:10px;height:10px}.gray-theme.fr-box .fr-video-resizer .fr-handler.fr-hnw{left:-5px;top:-5px}.gray-theme.fr-box .fr-video-resizer .fr-handler.fr-hne{right:-5px;top:-5px}.gray-theme.fr-box .fr-video-resizer .fr-handler.fr-hsw{left:-5px;bottom:-5px}.gray-theme.fr-box .fr-video-resizer .fr-handler.fr-hse{right:-5px;bottom:-5px}}.gray-theme.fr-popup .fr-video-upload-layer{border:dashed 2px #b7bdc0;padding:25px 0}.gray-theme.fr-popup .fr-video-upload-layer:hover{background:#e6e6e6}.gray-theme.fr-popup .fr-video-upload-layer.fr-drop{background:#e6e6e6;border-color:#0097a7}.gray-theme.fr-popup .fr-video-upload-layer .fr-form{top:0;bottom:0;left:0;right:0;z-index:2147483640}.gray-theme.fr-popup .fr-video-progress-bar-layer>h3{margin:10px 0}.gray-theme.fr-popup .fr-video-progress-bar-layer>div.fr-loader{background:#b3e0e5}.gray-theme.fr-popup .fr-video-progress-bar-layer>div.fr-loader span{background:#0097a7;-webkit-transition:width .2s ease 0s;-moz-transition:width .2s ease 0s;-ms-transition:width .2s ease 0s;-o-transition:width .2s ease 0s}.gray-theme.fr-popup .fr-video-progress-bar-layer>div.fr-loader.fr-indeterminate span{top:0}.gray-theme.fr-video-overlay{top:0;left:0;bottom:0;right:0;z-index:2147483640}.gray-theme .fr-view span[style~="color:"] a{color:inherit}.gray-theme .fr-view strong{font-weight:700}.gray-theme .fr-view table.fr-alternate-rows tbody tr:nth-child(2n){background:#f5f5f5}.gray-theme .fr-view table td,.gray-theme .fr-view table th{border:1px solid #ddd}.gray-theme .fr-view table th{background:#e6e6e6}.gray-theme .fr-view[dir=rtl] blockquote{border-right:solid 2px #5e35b1;margin-right:0}.gray-theme .fr-view[dir=rtl] blockquote blockquote{border-color:#00bcd4}.gray-theme .fr-view[dir=rtl] blockquote blockquote blockquote{border-color:#43a047}.gray-theme .fr-view blockquote{border-left:solid 2px #5e35b1;margin-left:0;color:#5e35b1}.gray-theme .fr-view blockquote blockquote{border-color:#00bcd4;color:#00bcd4}.gray-theme .fr-view blockquote blockquote blockquote{border-color:#43a047;color:#43a047}.gray-theme .fr-view span.fr-emoticon{line-height:0}.gray-theme .fr-view span.fr-emoticon.fr-emoticon-img{font-size:inherit}.gray-theme .fr-view .fr-text-bordered{padding:10px 0}.gray-theme .fr-view .fr-img-caption .fr-img-wrap{margin:auto}.gray-theme .fr-view .fr-img-caption .fr-img-wrap img{margin:auto}.gray-theme .fr-view .fr-img-caption .fr-img-wrap>span{margin:auto}.gray-theme .fr-element .fr-embedly::after{top:0;left:0;right:0;bottom:0}.gray-theme.fr-box .fr-embedly-resizer{border:solid 1px #0097a7}.gray-theme .examples-variante>a{font-size:14px;font-family:Arial,Helvetica,sans-serif}.gray-theme .sc-cm-holder>.sc-cm{border-top:5px solid #bdbdbd!important}.gray-theme .sc-cm__item_dropdown:hover>a,.gray-theme .sc-cm a:hover{background-color:#e6e6e6!important}.gray-theme .sc-cm__item_active>a,.gray-theme .sc-cm__item_active>a:hover,.gray-theme .sc-cm a:active,.gray-theme .sc-cm a:focus{background-color:#d6d6d6!important}.gray-theme .sc-cm-holder>.sc-cm:before{background-color:#e6e6e6!important}.gray-theme .fr-tooltip{top:0;left:0;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);-moz-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);background:#222;color:#fff;font-size:11px;line-height:22px;font-family:Arial,Helvetica,sans-serif;-webkit-transition:opacity .2s ease 0s;-moz-transition:opacity .2s ease 0s;-ms-transition:opacity .2s ease 0s;-o-transition:opacity .2s ease 0s}.gray-theme.fr-toolbar .fr-command.fr-btn,.gray-theme.fr-popup .fr-command.fr-btn{color:#37474f;-moz-outline:0;outline:0;border:0;margin:0 2px;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s;padding:0;width:38px;height:38px}.gray-theme.fr-toolbar .fr-command.fr-btn::-moz-focus-inner,.gray-theme.fr-popup .fr-command.fr-btn::-moz-focus-inner{border:0}.gray-theme.fr-toolbar .fr-command.fr-btn.fr-btn-text,.gray-theme.fr-popup .fr-command.fr-btn.fr-btn-text{width:auto}.gray-theme.fr-toolbar .fr-command.fr-btn i,.gray-theme.fr-popup .fr-command.fr-btn i,.gray-theme.fr-toolbar .fr-command.fr-btn svg,.gray-theme.fr-popup .fr-command.fr-btn svg{font-size:14px;width:14px;margin:12px}.gray-theme.fr-toolbar .fr-command.fr-btn span,.gray-theme.fr-popup .fr-command.fr-btn span{font-size:14px;line-height:17px;min-width:34px;height:17px;padding:0 2px}.gray-theme.fr-toolbar .fr-command.fr-btn img,.gray-theme.fr-popup .fr-command.fr-btn img{margin:12px;width:14px}.gray-theme.fr-toolbar .fr-command.fr-btn.fr-active,.gray-theme.fr-popup .fr-command.fr-btn.fr-active{color:#0097a7;background:0 0}.gray-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-selection,.gray-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-selection{width:auto}.gray-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown i,.gray-theme.fr-popup .fr-command.fr-btn.fr-dropdown i,.gray-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown span,.gray-theme.fr-popup .fr-command.fr-btn.fr-dropdown span,.gray-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown img,.gray-theme.fr-popup .fr-command.fr-btn.fr-dropdown img,.gray-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown svg,.gray-theme.fr-popup .fr-command.fr-btn.fr-dropdown svg{margin-left:8px;margin-right:16px}.gray-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active,.gray-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active{color:#37474f;background:#d6d6d6}.gray-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:hover,.gray-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:hover,.gray-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:focus,.gray-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:focus{background:#d6d6d6!important;color:#37474f!important}.gray-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:hover::after,.gray-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:hover::after,.gray-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:focus::after,.gray-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:focus::after{border-top-color:#37474f!important}.gray-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown::after,.gray-theme.fr-popup .fr-command.fr-btn.fr-dropdown::after{width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid #37474f;right:4px;top:17px}.gray-theme.fr-toolbar .fr-command.fr-btn.fr-disabled,.gray-theme.fr-popup .fr-command.fr-btn.fr-disabled{color:#b7bdc0}.gray-theme.fr-toolbar .fr-command.fr-btn.fr-disabled::after,.gray-theme.fr-popup .fr-command.fr-btn.fr-disabled::after{border-top-color:#b7bdc0!important}.gray-theme.fr-toolbar.fr-disabled .fr-btn,.gray-theme.fr-popup.fr-disabled .fr-btn,.gray-theme.fr-toolbar.fr-disabled .fr-btn.fr-active,.gray-theme.fr-popup.fr-disabled .fr-btn.fr-active{color:#b7bdc0}.gray-theme.fr-toolbar.fr-disabled .fr-btn.fr-dropdown::after,.gray-theme.fr-popup.fr-disabled .fr-btn.fr-dropdown::after,.gray-theme.fr-toolbar.fr-disabled .fr-btn.fr-active.fr-dropdown::after,.gray-theme.fr-popup.fr-disabled .fr-btn.fr-active.fr-dropdown::after{border-top-color:#b7bdc0}.gray-theme.fr-desktop .fr-command:hover,.gray-theme.fr-desktop .fr-command:focus{outline:0;color:#37474f;background:#e6e6e6}.gray-theme.fr-desktop .fr-command:hover::after,.gray-theme.fr-desktop .fr-command:focus::after{border-top-color:#37474f!important}.gray-theme.fr-desktop .fr-command.fr-selected{color:#37474f;background:#d6d6d6}.gray-theme.fr-desktop .fr-command.fr-active:hover,.gray-theme.fr-desktop .fr-command.fr-active:focus{color:#0097a7;background:#e6e6e6}.gray-theme.fr-desktop .fr-command.fr-active.fr-selected{color:#0097a7;background:#d6d6d6}.gray-theme.fr-toolbar.fr-mobile .fr-command.fr-blink,.gray-theme.fr-popup.fr-mobile .fr-command.fr-blink{background:0 0}.gray-theme .fr-command.fr-btn+.fr-dropdown-menu{right:auto;bottom:auto;height:auto;border-radius:0 0 2px 2px;-moz-border-radius:0 0 2px 2px;-webkit-border-radius:0 0 2px 2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.gray-theme .fr-command.fr-btn+.fr-dropdown-menu.test-height .fr-dropdown-wrapper{height:auto;max-height:275px}.gray-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper{background:#f5f5f5;padding:0;margin:auto;-webkit-transition:max-height .2s ease 0s;-moz-transition:max-height .2s ease 0s;-ms-transition:max-height .2s ease 0s;-o-transition:max-height .2s ease 0s;margin-top:0;max-height:0;height:0}.gray-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content{overflow:auto;max-height:275px}.gray-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list{margin:0;padding:0}.gray-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li{padding:0;margin:0}.gray-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a{color:inherit}.gray-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-active{background:#d6d6d6}.gray-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-disabled{color:#b7bdc0}.gray-theme .fr-command.fr-btn.fr-active+.fr-dropdown-menu{-webkit-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);-moz-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14)}.gray-theme .fr-command.fr-btn.fr-active+.fr-dropdown-menu .fr-dropdown-wrapper{height:auto;max-height:275px}.gray-theme .fr-bottom>.fr-command.fr-btn+.fr-dropdown-menu{border-radius:2px 2px 0 0;-moz-border-radius:2px 2px 0 0;-webkit-border-radius:2px 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.gray-theme.fr-modal{color:#37474f;font-family:Arial,Helvetica,sans-serif;overflow-x:auto;top:0;left:0;bottom:0;right:0;z-index:2147483640}.gray-theme.fr-modal.fr-middle .fr-modal-wrapper{margin-top:0;margin-bottom:0;margin-left:auto;margin-right:auto}.gray-theme.fr-modal .fr-modal-wrapper{border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;margin:20px auto;background:#fff;-webkit-box-shadow:0 5px 8px rgba(0,0,0,.19),0 4px 3px 1px rgba(0,0,0,.14);-moz-box-shadow:0 5px 8px rgba(0,0,0,.19),0 4px 3px 1px rgba(0,0,0,.14);box-shadow:0 5px 8px rgba(0,0,0,.19),0 4px 3px 1px rgba(0,0,0,.14);border:0;border-top:5px solid #bdbdbd}@media (min-width:768px) and (max-width:991px){.gray-theme.fr-modal .fr-modal-wrapper{margin:30px auto}}@media (min-width:992px){.gray-theme.fr-modal .fr-modal-wrapper{margin:50px auto}}.gray-theme.fr-modal .fr-modal-wrapper .fr-modal-head{background:#f5f5f5;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);-moz-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);border-bottom:0;-webkit-transition:height .2s ease 0s;-moz-transition:height .2s ease 0s;-ms-transition:height .2s ease 0s;-o-transition:height .2s ease 0s}.gray-theme.fr-modal .fr-modal-wrapper .fr-modal-head .fr-modal-close{color:#37474f;top:0;right:0;-webkit-transition:color .2s ease 0s;-moz-transition:color .2s ease 0s;-ms-transition:color .2s ease 0s;-o-transition:color .2s ease 0s}.gray-theme.fr-modal .fr-modal-wrapper .fr-modal-head h4{margin:0;font-weight:400}.gray-theme.fr-modal .fr-modal-wrapper div.fr-modal-body:focus{outline:0}.gray-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command{color:#0097a7;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.gray-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:hover,.gray-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:focus{background:#e6e6e6;color:#0097a7}.gray-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:active{background:#d6d6d6;color:#0097a7}.gray-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button::-moz-focus-inner{border:0}.gray-theme.gray-theme.fr-desktop .fr-modal-wrapper .fr-modal-head i:hover{background:#e6e6e6}.gray-theme.fr-overlay{top:0;bottom:0;left:0;right:0;background:#000}.gray-theme.fr-popup{color:#37474f;background:#f5f5f5;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;font-family:Arial,Helvetica,sans-serif;border:0;border-top:5px solid #bdbdbd}.gray-theme.fr-popup .fr-input-focus{background:#ebebeb}.gray-theme.fr-popup.fr-above{border-top:0;border-bottom:5px solid #bdbdbd;-webkit-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16)}.gray-theme.fr-popup .fr-input-line{padding:8px 0}.gray-theme.fr-popup .fr-input-line input[type=text],.gray-theme.fr-popup .fr-input-line textarea{margin:0 0 1px;border-bottom:solid 1px #bdbdbd;color:#37474f}.gray-theme.fr-popup .fr-input-line input[type=text]:focus,.gray-theme.fr-popup .fr-input-line textarea:focus{border-bottom:solid 2px #0097a7}.gray-theme.fr-popup .fr-input-line input+label,.gray-theme.fr-popup .fr-input-line textarea+label{top:0;left:0;-webkit-transition:color .2s ease 0s;-moz-transition:color .2s ease 0s;-ms-transition:color .2s ease 0s;-o-transition:color .2s ease 0s;background:#f5f5f5}.gray-theme.fr-popup .fr-input-line input.fr-not-empty:focus+label,.gray-theme.fr-popup .fr-input-line textarea.fr-not-empty:focus+label{color:#0097a7}.gray-theme.fr-popup .fr-input-line input.fr-not-empty+label,.gray-theme.fr-popup .fr-input-line textarea.fr-not-empty+label{color:gray}.gray-theme.fr-popup .fr-buttons{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);padding:0 2px;line-height:0;border-bottom:0}.gray-theme.fr-popup .fr-layer{width:225px}@media (min-width:768px){.gray-theme.fr-popup .fr-layer{width:300px}}.gray-theme.fr-popup .fr-action-buttons button.fr-command{color:#0097a7;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.gray-theme.fr-popup .fr-action-buttons button.fr-command:hover,.gray-theme.fr-popup .fr-action-buttons button.fr-command:focus{background:#e6e6e6;color:#0097a7}.gray-theme.fr-popup .fr-action-buttons button.fr-command:active{background:#d6d6d6;color:#0097a7}.gray-theme.fr-popup .fr-action-buttons button::-moz-focus-inner{border:0}.gray-theme.fr-popup .fr-checkbox span{border:solid 1px #37474f;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-transition:background .2s ease 0s,border-color .2s ease 0s;-moz-transition:background .2s ease 0s,border-color .2s ease 0s;-ms-transition:background .2s ease 0s,border-color .2s ease 0s;-o-transition:background .2s ease 0s,border-color .2s ease 0s}.gray-theme.fr-popup .fr-checkbox input{margin:0;padding:0}.gray-theme.fr-popup .fr-checkbox input:checked+span{background:#0097a7;border-color:#0097a7}.gray-theme.fr-popup .fr-checkbox input:focus+span{border-color:#0097a7}.gray-theme.fr-popup.fr-rtl .fr-input-line input+label,.gray-theme.fr-popup.fr-rtl .fr-input-line textarea+label{left:auto;right:0}.gray-theme.fr-popup .fr-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid #bdbdbd;top:-9px;margin-left:-5px}.gray-theme.fr-popup.fr-above .fr-arrow{top:auto;bottom:-9px;border-bottom:0;border-top:5px solid #bdbdbd}.gray-theme.fr-toolbar{color:#37474f;background:#f5f5f5;font-family:Arial,Helvetica,sans-serif;padding:0 2px;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);border:0;border-top:5px solid #bdbdbd}.gray-theme.fr-toolbar.fr-inline .fr-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid #bdbdbd;top:-9px;margin-left:-5px}.gray-theme.fr-toolbar.fr-inline.fr-above{-webkit-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);border-bottom:5px solid #bdbdbd;border-top:0}.gray-theme.fr-toolbar.fr-inline.fr-above .fr-arrow{top:auto;bottom:-9px;border-bottom:0;border-top-color:inherit;border-top-width:5px}.gray-theme.fr-toolbar.fr-top{top:0;border-radius:2px 2px 0 0;-moz-border-radius:2px 2px 0 0;-webkit-border-radius:2px 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.gray-theme.fr-toolbar.fr-bottom{bottom:0;border-radius:0 0 2px 2px;-moz-border-radius:0 0 2px 2px;-webkit-border-radius:0 0 2px 2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.gray-theme .fr-separator{background:#ebebeb}.gray-theme .fr-separator.fr-vs{height:34px;width:1px;margin:2px}.gray-theme .fr-separator.fr-hs{height:1px;width:calc(100% - (2 * 2px));margin:0 2px} \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/themes/red.css b/Mobile.Search.Web/Scripts/froala-editor/css/themes/red.css deleted file mode 100644 index e3b76c4..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/themes/red.css +++ /dev/null @@ -1,1281 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after { - clear: both; - display: block; - content: ""; - height: 0; -} -.hide-by-clipping { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - border: 0; -} -.red-theme.fr-box.fr-basic .fr-element { - color: #000000; - padding: 16px; - overflow-x: auto; - min-height: 52px; -} -.red-theme .fr-element { - -webkit-user-select: auto; -} -.red-theme.fr-box a.fr-floating-btn { - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; - height: 32px; - width: 32px; - background: #ffffff; - color: #ffca28; - -webkit-transition: background 0.2s ease 0s, color 0.2s ease 0s, transform 0.2s ease 0s; - -moz-transition: background 0.2s ease 0s, color 0.2s ease 0s, transform 0.2s ease 0s; - -ms-transition: background 0.2s ease 0s, color 0.2s ease 0s, transform 0.2s ease 0s; - -o-transition: background 0.2s ease 0s, color 0.2s ease 0s, transform 0.2s ease 0s; - left: 0; - top: 0; - line-height: 32px; - border: solid 1px #cccccc; -} -.red-theme.fr-box a.fr-floating-btn svg { - -webkit-transition: transform 0.2s ease 0s; - -moz-transition: transform 0.2s ease 0s; - -ms-transition: transform 0.2s ease 0s; - -o-transition: transform 0.2s ease 0s; - fill: #ffca28; -} -.red-theme.fr-box a.fr-floating-btn i, -.red-theme.fr-box a.fr-floating-btn svg { - font-size: 14px; - line-height: 32px; -} -.red-theme.fr-box a.fr-floating-btn:hover { - background: #ebebeb; -} -.red-theme.fr-box a.fr-floating-btn:hover svg { - fill: #ffca28; -} -.red-theme .fr-wrapper .fr-placeholder { - font-size: 12px; - color: #aaaaaa; - top: 0; - left: 0; - right: 0; -} -.red-theme .fr-wrapper ::-moz-selection { - background: #b5d6fd; - color: #000000; -} -.red-theme .fr-wrapper ::selection { - background: #b5d6fd; - color: #000000; -} -.red-theme.fr-box.fr-basic .fr-wrapper { - background: #ffffff; - border: solid 1px #671b1a; - border-top: 0; - top: 0; - left: 0; -} -.red-theme.fr-box.fr-basic.fr-top .fr-wrapper { - border-top: 0; - border-radius: 0 0 2px 2px; - -moz-border-radius: 0 0 2px 2px; - -webkit-border-radius: 0 0 2px 2px; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; -} -.red-theme.fr-box.fr-basic.fr-bottom .fr-wrapper { - border-bottom: 0; - border-radius: 2px 2px 0 0; - -moz-border-radius: 2px 2px 0 0; - -webkit-border-radius: 2px 2px 0 0; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; -} -.red-theme .fr-sticky-on.fr-sticky-ios { - left: 0; - right: 0; -} -.red-theme.fr-box .fr-counter { - color: #cccccc; - background: #ffffff; - border-top: solid 1px #ebebeb; - border-left: solid 1px #ebebeb; - border-radius: 2px 0 0 0; - -moz-border-radius: 2px 0 0 0; - -webkit-border-radius: 2px 0 0 0; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; -} -.red-theme.fr-box.fr-rtl .fr-counter { - right: auto; - border-right: solid 1px #ebebeb; - border-radius: 0 2px 0 0; - -moz-border-radius: 0 2px 0 0; - -webkit-border-radius: 0 2px 0 0; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; -} -.red-theme textarea.fr-code { - background: #ffffff; - color: #000000; -} -.red-theme.fr-box.fr-code-view.fr-inline { - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; -} -.red-theme.fr-box.fr-inline .fr-command.fr-btn.html-switch { - top: 0; - right: 0; - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; - background: #ffffff; - color: #ffffff; - -moz-outline: 0; - outline: 0; - border: 0; - padding: 12px 12px; - -webkit-transition: background 0.2s ease 0s; - -moz-transition: background 0.2s ease 0s; - -ms-transition: background 0.2s ease 0s; - -o-transition: background 0.2s ease 0s; -} -.red-theme.fr-box.fr-inline .fr-command.fr-btn.html-switch i { - font-size: 14px; - width: 14px; -} -.red-theme.fr-box.fr-inline .fr-command.fr-btn.html-switch.fr-desktop:hover { - background: #c65a59; -} -.red-theme.fr-popup .fr-colors-tabs { - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; -} -.red-theme.fr-popup .fr-colors-tabs .fr-colors-tab { - color: #ffffff; - padding: 8px 0; -} -.red-theme.fr-popup .fr-colors-tabs .fr-colors-tab:hover, -.red-theme.fr-popup .fr-colors-tabs .fr-colors-tab:focus { - color: #ffca28; -} -.red-theme.fr-popup .fr-colors-tabs .fr-colors-tab[data-param1="background"]::after { - bottom: 0; - left: 0; - background: #ffca28; - -webkit-transition: transform 0.2s ease 0s; - -moz-transition: transform 0.2s ease 0s; - -ms-transition: transform 0.2s ease 0s; - -o-transition: transform 0.2s ease 0s; -} -.red-theme.fr-popup .fr-colors-tabs .fr-colors-tab.fr-selected-tab { - color: #ffca28; -} -.red-theme.fr-popup .fr-color-hex-layer .fr-input-line { - padding: 8px 0 0; -} -.red-theme.fr-popup .fr-color-hex-layer .fr-action-buttons button { - background-color: #ffca28; - border-radius: 2px; - -moz-border-radius: 2px; - -webkit-border-radius: 2px; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; -} -.red-theme.fr-popup .fr-color-hex-layer .fr-action-buttons button:hover { - background-color: #f4b800; -} -.red-theme.fr-popup .fr-color-set { - line-height: 0; -} -.red-theme.fr-popup .fr-color-set > span > i, -.red-theme.fr-popup .fr-color-set > span > svg { - bottom: 0; - left: 0; -} -.red-theme.fr-popup .fr-color-set > span .fr-selected-color { - color: #ffffff; - font-weight: 400; - top: 0; - bottom: 0; - right: 0; - left: 0; -} -.red-theme.fr-popup .fr-color-set > span:hover, -.red-theme.fr-popup .fr-color-set > span:focus { - outline: 1px solid #ffffff; -} -.red-theme .fr-drag-helper { - background: #ffca28; - z-index: 2147483640; -} -.red-theme.fr-popup .fr-link:focus { - outline: 0; - background: #c65a59; -} -.red-theme.fr-popup .fr-file-upload-layer { - border: dashed 2px #edc9c9; - padding: 25px 0; -} -.red-theme.fr-popup .fr-file-upload-layer:hover { - background: #c65a59; -} -.red-theme.fr-popup .fr-file-upload-layer.fr-drop { - background: #c65a59; - border-color: #ffca28; -} -.red-theme.fr-popup .fr-file-upload-layer .fr-form { - top: 0; - bottom: 0; - left: 0; - right: 0; - z-index: 2147483640; -} -.red-theme.fr-popup .fr-file-progress-bar-layer > h3 { - margin: 10px 0; -} -.red-theme.fr-popup .fr-file-progress-bar-layer > div.fr-loader { - background: #ffefbf; -} -.red-theme.fr-popup .fr-file-progress-bar-layer > div.fr-loader span { - background: #ffca28; - -webkit-transition: width 0.2s ease 0s; - -moz-transition: width 0.2s ease 0s; - -ms-transition: width 0.2s ease 0s; - -o-transition: width 0.2s ease 0s; -} -.red-theme.fr-popup .fr-file-progress-bar-layer > div.fr-loader.fr-indeterminate span { - top: 0; -} -.red-theme.fr-box.fr-fullscreen { - top: 0; - left: 0; - bottom: 0; - right: 0; -} -.red-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tr { - border: 0; -} -.red-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tbody tr { - border-bottom: solid 1px rgba(255, 255, 255, 0.3); -} -.red-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tbody td:first-child { - color: #ffffff; -} -.red-theme .fr-image-resizer { - border: solid 1px #ffca28; -} -.red-theme .fr-image-resizer .fr-handler { - background: #ffca28; - border: solid 1px #ffffff; -} -.red-theme .fr-image-resizer .fr-handler { - width: 12px; - height: 12px; -} -.red-theme .fr-image-resizer .fr-handler.fr-hnw { - left: -6px; - top: -6px; -} -.red-theme .fr-image-resizer .fr-handler.fr-hne { - right: -6px; - top: -6px; -} -.red-theme .fr-image-resizer .fr-handler.fr-hsw { - left: -6px; - bottom: -6px; -} -.red-theme .fr-image-resizer .fr-handler.fr-hse { - right: -6px; - bottom: -6px; -} -@media (min-width: 1200px) { - .red-theme .fr-image-resizer .fr-handler { - width: 10px; - height: 10px; - } - .red-theme .fr-image-resizer .fr-handler.fr-hnw { - left: -5px; - top: -5px; - } - .red-theme .fr-image-resizer .fr-handler.fr-hne { - right: -5px; - top: -5px; - } - .red-theme .fr-image-resizer .fr-handler.fr-hsw { - left: -5px; - bottom: -5px; - } - .red-theme .fr-image-resizer .fr-handler.fr-hse { - right: -5px; - bottom: -5px; - } -} -.red-theme.fr-image-overlay { - top: 0; - left: 0; - bottom: 0; - right: 0; - z-index: 2147483640; -} -.red-theme.fr-popup .fr-image-upload-layer { - border: dashed 2px #edc9c9; - padding: 25px 0; -} -.red-theme.fr-popup .fr-image-upload-layer:hover { - background: #c65a59; -} -.red-theme.fr-popup .fr-image-upload-layer.fr-drop { - background: #c65a59; - border-color: #ffca28; -} -.red-theme.fr-popup .fr-image-upload-layer .fr-form { - top: 0; - bottom: 0; - left: 0; - right: 0; - z-index: 2147483640; -} -.red-theme.fr-popup .fr-image-progress-bar-layer > h3 { - margin: 10px 0; -} -.red-theme.fr-popup .fr-image-progress-bar-layer > div.fr-loader { - background: #ffefbf; -} -.red-theme.fr-popup .fr-image-progress-bar-layer > div.fr-loader span { - background: #ffca28; - -webkit-transition: width 0.2s ease 0s; - -moz-transition: width 0.2s ease 0s; - -ms-transition: width 0.2s ease 0s; - -o-transition: width 0.2s ease 0s; -} -.red-theme.fr-popup .fr-image-progress-bar-layer > div.fr-loader.fr-indeterminate span { - top: 0; -} -.red-theme.fr-modal-head .fr-modal-head-line i.fr-modal-more { - -webkit-transition: padding 0.2s ease 0s, width 0.2s ease 0s, opacity 0.2s ease 0s; - -moz-transition: padding 0.2s ease 0s, width 0.2s ease 0s, opacity 0.2s ease 0s; - -ms-transition: padding 0.2s ease 0s, width 0.2s ease 0s, opacity 0.2s ease 0s; - -o-transition: padding 0.2s ease 0s, width 0.2s ease 0s, opacity 0.2s ease 0s; -} -.red-theme.fr-modal-head .fr-modal-head-line i.fr-modal-more.fr-not-available { - opacity: 0; - width: 0; - padding: 12px 0; -} -.red-theme.fr-modal-head .fr-modal-tags a { - opacity: 0; - border-radius: 2px; - -moz-border-radius: 2px; - -webkit-border-radius: 2px; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; - color: #ffca28; - -webkit-transition: opacity 0.2s ease 0s, background 0.2s ease 0s; - -moz-transition: opacity 0.2s ease 0s, background 0.2s ease 0s; - -ms-transition: opacity 0.2s ease 0s, background 0.2s ease 0s; - -o-transition: opacity 0.2s ease 0s, background 0.2s ease 0s; -} -.red-theme.fr-modal-head .fr-modal-tags a.fr-selected-tag { - background: #d48382; -} -.red-themediv.fr-modal-body .fr-preloader { - margin: 50px auto; -} -.red-themediv.fr-modal-body div.fr-image-list { - padding: 0; -} -.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container { - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; - border-radius: 2px; - -moz-border-radius: 2px; - -webkit-border-radius: 2px; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; -} -.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-image-deleting::after { - -webkit-transition: opacity 0.2s ease 0s; - -moz-transition: opacity 0.2s ease 0s; - -ms-transition: opacity 0.2s ease 0s; - -o-transition: opacity 0.2s ease 0s; - background: #000000; - top: 0; - left: 0; - bottom: 0; - right: 0; -} -.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-image-deleting::before { - color: #ffffff; - top: 0; - left: 0; - bottom: 0; - right: 0; - margin: auto; -} -.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-empty { - background: #cccccc; -} -.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-empty::after { - margin: auto; - top: 0; - bottom: 0; - left: 0; - right: 0; -} -.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container img { - -webkit-transition: opacity 0.2s ease 0s, filter 0.2s ease 0s; - -moz-transition: opacity 0.2s ease 0s, filter 0.2s ease 0s; - -ms-transition: opacity 0.2s ease 0s, filter 0.2s ease 0s; - -o-transition: opacity 0.2s ease 0s, filter 0.2s ease 0s; -} -.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img, -.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img { - -webkit-transition: background 0.2s ease 0s, color 0.2s ease 0s; - -moz-transition: background 0.2s ease 0s, color 0.2s ease 0s; - -ms-transition: background 0.2s ease 0s, color 0.2s ease 0s; - -o-transition: background 0.2s ease 0s, color 0.2s ease 0s; - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; - margin: 0; -} -.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img { - background: #b8312f; - color: #ffffff; -} -.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img { - background: #b8312f; - color: #ffca28; -} -.red-theme.red-theme.fr-desktop .fr-modal-wrapper .fr-modal-head .fr-modal-tags a:hover { - background: #c65a59; -} -.red-theme.red-theme.fr-desktop .fr-modal-wrapper .fr-modal-head .fr-modal-tags a.fr-selected-tag { - background: #d48382; -} -.red-theme.red-theme.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img:hover { - background: #bf4644; - color: #ffffff; -} -.red-theme.red-theme.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img:hover { - background: #c65a59; -} -.red-theme .fr-line-breaker { - border-top: 1px solid #ffca28; -} -.red-theme .fr-line-breaker a.fr-floating-btn { - left: calc(50% - (32px / 2)); - top: -16px; -} -.red-theme .fr-qi-helper { - padding-left: 16px; -} -.red-theme .fr-qi-helper a.fr-btn.fr-floating-btn { - color: #ffffff; -} -.red-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-special-characters-modal .fr-special-character { - border: 1px solid #cccccc; -} -.red-theme .fr-element table td.fr-selected-cell, -.red-theme .fr-element table th.fr-selected-cell { - border: 1px double #ffca28; -} -.red-theme .fr-table-resizer div { - border-right: 1px solid #ffca28; -} -.red-theme.fr-popup .fr-table-colors-hex-layer .fr-input-line { - padding: 8px 0 0; -} -.red-theme.fr-popup .fr-table-colors-hex-layer .fr-action-buttons button { - background-color: #ffca28; - border-radius: 2px; - -moz-border-radius: 2px; - -webkit-border-radius: 2px; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; -} -.red-theme.fr-popup .fr-table-colors-hex-layer .fr-action-buttons button:hover { - background-color: #f4b800; -} -.red-theme.fr-popup .fr-table-size .fr-select-table-size { - line-height: 0; -} -.red-theme.fr-popup .fr-table-size .fr-select-table-size > span { - padding: 0px 4px 4px 0; -} -.red-theme.fr-popup .fr-table-size .fr-select-table-size > span > span { - border: 1px solid #dddddd; -} -.red-theme.fr-popup .fr-table-size .fr-select-table-size > span.hover > span { - background: rgba(255, 202, 40, 0.3); - border: solid 1px #ffca28; -} -.red-theme.fr-popup .fr-table-colors { - line-height: 0; -} -.red-theme.fr-popup .fr-table-colors > span > i { - bottom: 0; - left: 0; -} -.red-theme.fr-popup .fr-table-colors > span:focus { - outline: 1px solid #ffffff; -} -.red-theme .fr-element .fr-video::after { - top: 0; - left: 0; - right: 0; - bottom: 0; -} -.red-theme.fr-box .fr-video-resizer { - border: solid 1px #ffca28; -} -.red-theme.fr-box .fr-video-resizer .fr-handler { - background: #ffca28; - border: solid 1px #ffffff; -} -.red-theme.fr-box .fr-video-resizer .fr-handler { - width: 12px; - height: 12px; -} -.red-theme.fr-box .fr-video-resizer .fr-handler.fr-hnw { - left: -6px; - top: -6px; -} -.red-theme.fr-box .fr-video-resizer .fr-handler.fr-hne { - right: -6px; - top: -6px; -} -.red-theme.fr-box .fr-video-resizer .fr-handler.fr-hsw { - left: -6px; - bottom: -6px; -} -.red-theme.fr-box .fr-video-resizer .fr-handler.fr-hse { - right: -6px; - bottom: -6px; -} -@media (min-width: 1200px) { - .red-theme.fr-box .fr-video-resizer .fr-handler { - width: 10px; - height: 10px; - } - .red-theme.fr-box .fr-video-resizer .fr-handler.fr-hnw { - left: -5px; - top: -5px; - } - .red-theme.fr-box .fr-video-resizer .fr-handler.fr-hne { - right: -5px; - top: -5px; - } - .red-theme.fr-box .fr-video-resizer .fr-handler.fr-hsw { - left: -5px; - bottom: -5px; - } - .red-theme.fr-box .fr-video-resizer .fr-handler.fr-hse { - right: -5px; - bottom: -5px; - } -} -.red-theme.fr-popup .fr-video-upload-layer { - border: dashed 2px #edc9c9; - padding: 25px 0; -} -.red-theme.fr-popup .fr-video-upload-layer:hover { - background: #c65a59; -} -.red-theme.fr-popup .fr-video-upload-layer.fr-drop { - background: #c65a59; - border-color: #ffca28; -} -.red-theme.fr-popup .fr-video-upload-layer .fr-form { - top: 0; - bottom: 0; - left: 0; - right: 0; - z-index: 2147483640; -} -.red-theme.fr-popup .fr-video-progress-bar-layer > h3 { - margin: 10px 0; -} -.red-theme.fr-popup .fr-video-progress-bar-layer > div.fr-loader { - background: #ffefbf; -} -.red-theme.fr-popup .fr-video-progress-bar-layer > div.fr-loader span { - background: #ffca28; - -webkit-transition: width 0.2s ease 0s; - -moz-transition: width 0.2s ease 0s; - -ms-transition: width 0.2s ease 0s; - -o-transition: width 0.2s ease 0s; -} -.red-theme.fr-popup .fr-video-progress-bar-layer > div.fr-loader.fr-indeterminate span { - top: 0; -} -.red-theme.fr-video-overlay { - top: 0; - left: 0; - bottom: 0; - right: 0; - z-index: 2147483640; -} -.red-theme .fr-view span[style~="color:"] a { - color: inherit; -} -.red-theme .fr-view strong { - font-weight: 700; -} -.red-theme .fr-view table.fr-alternate-rows tbody tr:nth-child(2n) { - background: #f5f5f5; -} -.red-theme .fr-view table td, -.red-theme .fr-view table th { - border: 1px solid #dddddd; -} -.red-theme .fr-view table th { - background: #e6e6e6; -} -.red-theme .fr-view[dir="rtl"] blockquote { - border-right: solid 2px #5e35b1; - margin-right: 0; -} -.red-theme .fr-view[dir="rtl"] blockquote blockquote { - border-color: #00bcd4; -} -.red-theme .fr-view[dir="rtl"] blockquote blockquote blockquote { - border-color: #43a047; -} -.red-theme .fr-view blockquote { - border-left: solid 2px #5e35b1; - margin-left: 0; - color: #5e35b1; -} -.red-theme .fr-view blockquote blockquote { - border-color: #00bcd4; - color: #00bcd4; -} -.red-theme .fr-view blockquote blockquote blockquote { - border-color: #43a047; - color: #43a047; -} -.red-theme .fr-view span.fr-emoticon { - line-height: 0; -} -.red-theme .fr-view span.fr-emoticon.fr-emoticon-img { - font-size: inherit; -} -.red-theme .fr-view .fr-text-bordered { - padding: 10px 0; -} -.red-theme .fr-view .fr-img-caption .fr-img-wrap { - margin: auto; -} -.red-theme .fr-view .fr-img-caption .fr-img-wrap img { - margin: auto; -} -.red-theme .fr-view .fr-img-caption .fr-img-wrap > span { - margin: auto; -} -.red-theme .fr-element .fr-embedly::after { - top: 0; - left: 0; - right: 0; - bottom: 0; -} -.red-theme.fr-box .fr-embedly-resizer { - border: solid 1px #ffca28; -} -.red-theme .examples-variante > a { - font-size: 14px; - font-family: Arial, Helvetica, sans-serif; -} -.red-theme .sc-cm-holder > .sc-cm { - border-top: 5px solid #671b1a !important; -} -.red-theme .sc-cm__item_dropdown:hover > a, -.red-theme .sc-cm a:hover { - background-color: #c65a59 !important; -} -.red-theme .sc-cm__item_active > a, -.red-theme .sc-cm__item_active > a:hover, -.red-theme .sc-cm a:active, -.red-theme .sc-cm a:focus { - background-color: #d48382 !important; -} -.red-theme .sc-cm-holder > .sc-cm:before { - background-color: #c65a59 !important; -} -.red-theme .fr-tooltip { - top: 0; - left: 0; - border-radius: 2px; - -moz-border-radius: 2px; - -webkit-border-radius: 2px; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; - background: #222222; - color: #ffffff; - font-size: 11px; - line-height: 22px; - font-family: Arial, Helvetica, sans-serif; - -webkit-transition: opacity 0.2s ease 0s; - -moz-transition: opacity 0.2s ease 0s; - -ms-transition: opacity 0.2s ease 0s; - -o-transition: opacity 0.2s ease 0s; -} -.red-theme.fr-toolbar .fr-command.fr-btn, -.red-theme.fr-popup .fr-command.fr-btn { - color: #ffffff; - -moz-outline: 0; - outline: 0; - border: 0; - margin: 0px 2px; - -webkit-transition: background 0.2s ease 0s; - -moz-transition: background 0.2s ease 0s; - -ms-transition: background 0.2s ease 0s; - -o-transition: background 0.2s ease 0s; - padding: 0; - width: 38px; - height: 38px; -} -.red-theme.fr-toolbar .fr-command.fr-btn::-moz-focus-inner, -.red-theme.fr-popup .fr-command.fr-btn::-moz-focus-inner { - border: 0; -} -.red-theme.fr-toolbar .fr-command.fr-btn.fr-btn-text, -.red-theme.fr-popup .fr-command.fr-btn.fr-btn-text { - width: auto; -} -.red-theme.fr-toolbar .fr-command.fr-btn i, -.red-theme.fr-popup .fr-command.fr-btn i, -.red-theme.fr-toolbar .fr-command.fr-btn svg, -.red-theme.fr-popup .fr-command.fr-btn svg { - font-size: 14px; - width: 14px; - margin: 12px 12px; -} -.red-theme.fr-toolbar .fr-command.fr-btn span, -.red-theme.fr-popup .fr-command.fr-btn span { - font-size: 14px; - line-height: 17px; - min-width: 34px; - height: 17px; - padding: 0 2px; -} -.red-theme.fr-toolbar .fr-command.fr-btn img, -.red-theme.fr-popup .fr-command.fr-btn img { - margin: 12px 12px; - width: 14px; -} -.red-theme.fr-toolbar .fr-command.fr-btn.fr-active, -.red-theme.fr-popup .fr-command.fr-btn.fr-active { - color: #ffca28; - background: transparent; -} -.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-selection, -.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-selection { - width: auto; -} -.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown i, -.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown i, -.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown span, -.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown span, -.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown img, -.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown img, -.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown svg, -.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown svg { - margin-left: 8px; - margin-right: 16px; -} -.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active, -.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active { - color: #ffffff; - background: #d48382; -} -.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:hover, -.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:hover, -.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:focus, -.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:focus { - background: #d48382 !important; - color: #ffffff !important; -} -.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:hover::after, -.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:hover::after, -.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:focus::after, -.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:focus::after { - border-top-color: #ffffff !important; -} -.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown::after, -.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown::after { - width: 0; - height: 0; - border-left: 4px solid transparent; - border-right: 4px solid transparent; - border-top: 4px solid #ffffff; - right: 4px; - top: 17px; -} -.red-theme.fr-toolbar .fr-command.fr-btn.fr-disabled, -.red-theme.fr-popup .fr-command.fr-btn.fr-disabled { - color: #edc9c9; -} -.red-theme.fr-toolbar .fr-command.fr-btn.fr-disabled::after, -.red-theme.fr-popup .fr-command.fr-btn.fr-disabled::after { - border-top-color: #edc9c9 !important; -} -.red-theme.fr-toolbar.fr-disabled .fr-btn, -.red-theme.fr-popup.fr-disabled .fr-btn, -.red-theme.fr-toolbar.fr-disabled .fr-btn.fr-active, -.red-theme.fr-popup.fr-disabled .fr-btn.fr-active { - color: #edc9c9; -} -.red-theme.fr-toolbar.fr-disabled .fr-btn.fr-dropdown::after, -.red-theme.fr-popup.fr-disabled .fr-btn.fr-dropdown::after, -.red-theme.fr-toolbar.fr-disabled .fr-btn.fr-active.fr-dropdown::after, -.red-theme.fr-popup.fr-disabled .fr-btn.fr-active.fr-dropdown::after { - border-top-color: #edc9c9; -} -.red-theme.fr-desktop .fr-command:hover, -.red-theme.fr-desktop .fr-command:focus { - outline: 0; - color: #ffffff; - background: #c65a59; -} -.red-theme.fr-desktop .fr-command:hover::after, -.red-theme.fr-desktop .fr-command:focus::after { - border-top-color: #ffffff !important; -} -.red-theme.fr-desktop .fr-command.fr-selected { - color: #ffffff; - background: #d48382; -} -.red-theme.fr-desktop .fr-command.fr-active:hover, -.red-theme.fr-desktop .fr-command.fr-active:focus { - color: #ffca28; - background: #c65a59; -} -.red-theme.fr-desktop .fr-command.fr-active.fr-selected { - color: #ffca28; - background: #d48382; -} -.red-theme.fr-toolbar.fr-mobile .fr-command.fr-blink, -.red-theme.fr-popup.fr-mobile .fr-command.fr-blink { - background: transparent; -} -.red-theme .fr-command.fr-btn + .fr-dropdown-menu { - right: auto; - bottom: auto; - height: auto; - border-radius: 0 0 2px 2px; - -moz-border-radius: 0 0 2px 2px; - -webkit-border-radius: 0 0 2px 2px; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; -} -.red-theme .fr-command.fr-btn + .fr-dropdown-menu.test-height .fr-dropdown-wrapper { - height: auto; - max-height: 275px; -} -.red-theme .fr-command.fr-btn + .fr-dropdown-menu .fr-dropdown-wrapper { - background: #b8312f; - padding: 0; - margin: auto; - -webkit-transition: max-height 0.2s ease 0s; - -moz-transition: max-height 0.2s ease 0s; - -ms-transition: max-height 0.2s ease 0s; - -o-transition: max-height 0.2s ease 0s; - margin-top: 0; - max-height: 0; - height: 0; -} -.red-theme .fr-command.fr-btn + .fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content { - overflow: auto; - max-height: 275px; -} -.red-theme .fr-command.fr-btn + .fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list { - margin: 0; - padding: 0; -} -.red-theme .fr-command.fr-btn + .fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li { - padding: 0; - margin: 0; -} -.red-theme .fr-command.fr-btn + .fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a { - color: inherit; -} -.red-theme .fr-command.fr-btn + .fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-active { - background: #d48382; -} -.red-theme .fr-command.fr-btn + .fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-disabled { - color: #edc9c9; -} -.red-theme .fr-command.fr-btn.fr-active + .fr-dropdown-menu { - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; -} -.red-theme .fr-command.fr-btn.fr-active + .fr-dropdown-menu .fr-dropdown-wrapper { - height: auto; - max-height: 275px; -} -.red-theme .fr-bottom > .fr-command.fr-btn + .fr-dropdown-menu { - border-radius: 2px 2px 0 0; - -moz-border-radius: 2px 2px 0 0; - -webkit-border-radius: 2px 2px 0 0; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; -} -.red-theme.fr-modal { - color: #ffffff; - font-family: Arial, Helvetica, sans-serif; - overflow-x: auto; - top: 0; - left: 0; - bottom: 0; - right: 0; - z-index: 2147483640; -} -.red-theme.fr-modal.fr-middle .fr-modal-wrapper { - margin-top: 0; - margin-bottom: 0; - margin-left: auto; - margin-right: auto; -} -.red-theme.fr-modal .fr-modal-wrapper { - border-radius: 2px; - -moz-border-radius: 2px; - -webkit-border-radius: 2px; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; - margin: 20px auto; - background: #b8312f; - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; - border: solid 1px #671b1a; - border-top: 5px solid #671b1a; -} -@media (min-width: 768px) and (max-width: 991px) { - .red-theme.fr-modal .fr-modal-wrapper { - margin: 30px auto; - } -} -@media (min-width: 992px) { - .red-theme.fr-modal .fr-modal-wrapper { - margin: 50px auto; - } -} -.red-theme.fr-modal .fr-modal-wrapper .fr-modal-head { - background: #b8312f; - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; - border-bottom: solid 1px #671b1a; - -webkit-transition: height 0.2s ease 0s; - -moz-transition: height 0.2s ease 0s; - -ms-transition: height 0.2s ease 0s; - -o-transition: height 0.2s ease 0s; -} -.red-theme.fr-modal .fr-modal-wrapper .fr-modal-head .fr-modal-close { - color: #ffffff; - top: 0; - right: 0; - -webkit-transition: color 0.2s ease 0s; - -moz-transition: color 0.2s ease 0s; - -ms-transition: color 0.2s ease 0s; - -o-transition: color 0.2s ease 0s; -} -.red-theme.fr-modal .fr-modal-wrapper .fr-modal-head h4 { - margin: 0; - font-weight: 400; -} -.red-theme.fr-modal .fr-modal-wrapper div.fr-modal-body:focus { - outline: 0; -} -.red-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command { - color: #ffca28; - -webkit-transition: background 0.2s ease 0s; - -moz-transition: background 0.2s ease 0s; - -ms-transition: background 0.2s ease 0s; - -o-transition: background 0.2s ease 0s; - border-radius: 2px; - -moz-border-radius: 2px; - -webkit-border-radius: 2px; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; -} -.red-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:hover, -.red-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:focus { - background: #c65a59; - color: #ffca28; -} -.red-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:active { - background: #d48382; - color: #ffca28; -} -.red-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button::-moz-focus-inner { - border: 0; -} -.red-theme.red-theme.fr-desktop .fr-modal-wrapper .fr-modal-head i:hover { - background: #c65a59; -} -.red-theme.fr-overlay { - top: 0; - bottom: 0; - left: 0; - right: 0; - background: #000000; -} -.red-theme.fr-popup { - color: #ffffff; - background: #b8312f; - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; - border-radius: 2px; - -moz-border-radius: 2px; - -webkit-border-radius: 2px; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; - font-family: Arial, Helvetica, sans-serif; - border: solid 1px #671b1a; - border-top: 5px solid #671b1a; -} -.red-theme.fr-popup .fr-input-focus { - background: #bf4644; -} -.red-theme.fr-popup.fr-above { - border-top: 0; - border-bottom: 5px solid #671b1a; - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; -} -.red-theme.fr-popup .fr-input-line { - padding: 8px 0; -} -.red-theme.fr-popup .fr-input-line input[type="text"], -.red-theme.fr-popup .fr-input-line textarea { - margin: 0px 0 1px 0; - border-bottom: solid 1px #bdbdbd; - color: #ffffff; -} -.red-theme.fr-popup .fr-input-line input[type="text"]:focus, -.red-theme.fr-popup .fr-input-line textarea:focus { - border-bottom: solid 2px #ffca28; -} -.red-theme.fr-popup .fr-input-line input + label, -.red-theme.fr-popup .fr-input-line textarea + label { - top: 0; - left: 0; - -webkit-transition: color 0.2s ease 0s; - -moz-transition: color 0.2s ease 0s; - -ms-transition: color 0.2s ease 0s; - -o-transition: color 0.2s ease 0s; - background: #b8312f; -} -.red-theme.fr-popup .fr-input-line input.fr-not-empty:focus + label, -.red-theme.fr-popup .fr-input-line textarea.fr-not-empty:focus + label { - color: #ffca28; -} -.red-theme.fr-popup .fr-input-line input.fr-not-empty + label, -.red-theme.fr-popup .fr-input-line textarea.fr-not-empty + label { - color: #808080; -} -.red-theme.fr-popup .fr-buttons { - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; - padding: 0 2px; - line-height: 0; - border-bottom: solid 1px #671b1a; -} -.red-theme.fr-popup .fr-layer { - width: 225px; -} -@media (min-width: 768px) { - .red-theme.fr-popup .fr-layer { - width: 300px; - } -} -.red-theme.fr-popup .fr-action-buttons button.fr-command { - color: #ffca28; - -webkit-transition: background 0.2s ease 0s; - -moz-transition: background 0.2s ease 0s; - -ms-transition: background 0.2s ease 0s; - -o-transition: background 0.2s ease 0s; - border-radius: 2px; - -moz-border-radius: 2px; - -webkit-border-radius: 2px; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; -} -.red-theme.fr-popup .fr-action-buttons button.fr-command:hover, -.red-theme.fr-popup .fr-action-buttons button.fr-command:focus { - background: #c65a59; - color: #ffca28; -} -.red-theme.fr-popup .fr-action-buttons button.fr-command:active { - background: #d48382; - color: #ffca28; -} -.red-theme.fr-popup .fr-action-buttons button::-moz-focus-inner { - border: 0; -} -.red-theme.fr-popup .fr-checkbox span { - border: solid 1px #ffffff; - border-radius: 2px; - -moz-border-radius: 2px; - -webkit-border-radius: 2px; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; - -webkit-transition: background 0.2s ease 0s, border-color 0.2s ease 0s; - -moz-transition: background 0.2s ease 0s, border-color 0.2s ease 0s; - -ms-transition: background 0.2s ease 0s, border-color 0.2s ease 0s; - -o-transition: background 0.2s ease 0s, border-color 0.2s ease 0s; -} -.red-theme.fr-popup .fr-checkbox input { - margin: 0; - padding: 0; -} -.red-theme.fr-popup .fr-checkbox input:checked + span { - background: #ffca28; - border-color: #ffca28; -} -.red-theme.fr-popup .fr-checkbox input:focus + span { - border-color: #ffca28; -} -.red-theme.fr-popup.fr-rtl .fr-input-line input + label, -.red-theme.fr-popup.fr-rtl .fr-input-line textarea + label { - left: auto; - right: 0; -} -.red-theme.fr-popup .fr-arrow { - width: 0; - height: 0; - border-left: 5px solid transparent; - border-right: 5px solid transparent; - border-bottom: 5px solid #671b1a; - top: -9px; - margin-left: -5px; -} -.red-theme.fr-popup.fr-above .fr-arrow { - top: auto; - bottom: -9px; - border-bottom: 0; - border-top: 5px solid #671b1a; -} -.red-theme.fr-toolbar { - color: #ffffff; - background: #b8312f; - font-family: Arial, Helvetica, sans-serif; - padding: 0 2px; - border-radius: 2px; - -moz-border-radius: 2px; - -webkit-border-radius: 2px; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; - border: solid 1px #671b1a; - border-top: 5px solid #671b1a; -} -.red-theme.fr-toolbar.fr-inline .fr-arrow { - width: 0; - height: 0; - border-left: 5px solid transparent; - border-right: 5px solid transparent; - border-bottom: 5px solid #671b1a; - top: -9px; - margin-left: -5px; -} -.red-theme.fr-toolbar.fr-inline.fr-above { - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; - border-bottom: 5px solid #671b1a; - border-top: 0; -} -.red-theme.fr-toolbar.fr-inline.fr-above .fr-arrow { - top: auto; - bottom: -9px; - border-bottom: 0; - border-top-color: inherit; - border-top-width: 5px; -} -.red-theme.fr-toolbar.fr-top { - top: 0; - border-radius: 2px 2px 0 0; - -moz-border-radius: 2px 2px 0 0; - -webkit-border-radius: 2px 2px 0 0; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; -} -.red-theme.fr-toolbar.fr-bottom { - bottom: 0; - border-radius: 0 0 2px 2px; - -moz-border-radius: 0 0 2px 2px; - -webkit-border-radius: 0 0 2px 2px; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; -} -.red-theme .fr-separator { - background: rgba(255, 255, 255, 0.3); -} -.red-theme .fr-separator.fr-vs { - height: 34px; - width: 1px; - margin: 2px; -} -.red-theme .fr-separator.fr-hs { - height: 1px; - width: calc(100% - (2 * 2px)); - margin: 0 2px; -} diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/themes/red.min.css b/Mobile.Search.Web/Scripts/froala-editor/css/themes/red.min.css deleted file mode 100644 index 2ca37f6..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/themes/red.min.css +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.red-theme.fr-box.fr-basic .fr-element{color:#000;padding:16px;overflow-x:auto;min-height:52px}.red-theme .fr-element{-webkit-user-select:auto}.red-theme.fr-box a.fr-floating-btn{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;height:32px;width:32px;background:#fff;color:#ffca28;-webkit-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;-moz-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;-ms-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;-o-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;left:0;top:0;line-height:32px;border:solid 1px #ccc}.red-theme.fr-box a.fr-floating-btn svg{-webkit-transition:transform .2s ease 0s;-moz-transition:transform .2s ease 0s;-ms-transition:transform .2s ease 0s;-o-transition:transform .2s ease 0s;fill:#ffca28}.red-theme.fr-box a.fr-floating-btn i,.red-theme.fr-box a.fr-floating-btn svg{font-size:14px;line-height:32px}.red-theme.fr-box a.fr-floating-btn:hover{background:#ebebeb}.red-theme.fr-box a.fr-floating-btn:hover svg{fill:#ffca28}.red-theme .fr-wrapper .fr-placeholder{font-size:12px;color:#aaa;top:0;left:0;right:0}.red-theme .fr-wrapper ::-moz-selection{background:#b5d6fd;color:#000}.red-theme .fr-wrapper ::selection{background:#b5d6fd;color:#000}.red-theme.fr-box.fr-basic .fr-wrapper{background:#fff;border:solid 1px #671b1a;border-top:0;top:0;left:0}.red-theme.fr-box.fr-basic.fr-top .fr-wrapper{border-top:0;border-radius:0 0 2px 2px;-moz-border-radius:0 0 2px 2px;-webkit-border-radius:0 0 2px 2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.red-theme.fr-box.fr-basic.fr-bottom .fr-wrapper{border-bottom:0;border-radius:2px 2px 0 0;-moz-border-radius:2px 2px 0 0;-webkit-border-radius:2px 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.red-theme .fr-sticky-on.fr-sticky-ios{left:0;right:0}.red-theme.fr-box .fr-counter{color:#ccc;background:#fff;border-top:solid 1px #ebebeb;border-left:solid 1px #ebebeb;border-radius:2px 0 0;-moz-border-radius:2px 0 0;-webkit-border-radius:2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.red-theme.fr-box.fr-rtl .fr-counter{right:auto;border-right:solid 1px #ebebeb;border-radius:0 2px 0 0;-moz-border-radius:0 2px 0 0;-webkit-border-radius:0 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.red-theme textarea.fr-code{background:#fff;color:#000}.red-theme.fr-box.fr-code-view.fr-inline{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.red-theme.fr-box.fr-inline .fr-command.fr-btn.html-switch{top:0;right:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background:#fff;color:#fff;-moz-outline:0;outline:0;border:0;padding:12px;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s}.red-theme.fr-box.fr-inline .fr-command.fr-btn.html-switch i{font-size:14px;width:14px}.red-theme.fr-box.fr-inline .fr-command.fr-btn.html-switch.fr-desktop:hover{background:#c65a59}.red-theme.fr-popup .fr-colors-tabs{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.red-theme.fr-popup .fr-colors-tabs .fr-colors-tab{color:#fff;padding:8px 0}.red-theme.fr-popup .fr-colors-tabs .fr-colors-tab:hover,.red-theme.fr-popup .fr-colors-tabs .fr-colors-tab:focus{color:#ffca28}.red-theme.fr-popup .fr-colors-tabs .fr-colors-tab[data-param1=background]::after{bottom:0;left:0;background:#ffca28;-webkit-transition:transform .2s ease 0s;-moz-transition:transform .2s ease 0s;-ms-transition:transform .2s ease 0s;-o-transition:transform .2s ease 0s}.red-theme.fr-popup .fr-colors-tabs .fr-colors-tab.fr-selected-tab{color:#ffca28}.red-theme.fr-popup .fr-color-hex-layer .fr-input-line{padding:8px 0 0}.red-theme.fr-popup .fr-color-hex-layer .fr-action-buttons button{background-color:#ffca28;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.red-theme.fr-popup .fr-color-hex-layer .fr-action-buttons button:hover{background-color:#f4b800}.red-theme.fr-popup .fr-color-set{line-height:0}.red-theme.fr-popup .fr-color-set>span>i,.red-theme.fr-popup .fr-color-set>span>svg{bottom:0;left:0}.red-theme.fr-popup .fr-color-set>span .fr-selected-color{color:#fff;font-weight:400;top:0;bottom:0;right:0;left:0}.red-theme.fr-popup .fr-color-set>span:hover,.red-theme.fr-popup .fr-color-set>span:focus{outline:1px solid #fff}.red-theme .fr-drag-helper{background:#ffca28;z-index:2147483640}.red-theme.fr-popup .fr-link:focus{outline:0;background:#c65a59}.red-theme.fr-popup .fr-file-upload-layer{border:dashed 2px #edc9c9;padding:25px 0}.red-theme.fr-popup .fr-file-upload-layer:hover{background:#c65a59}.red-theme.fr-popup .fr-file-upload-layer.fr-drop{background:#c65a59;border-color:#ffca28}.red-theme.fr-popup .fr-file-upload-layer .fr-form{top:0;bottom:0;left:0;right:0;z-index:2147483640}.red-theme.fr-popup .fr-file-progress-bar-layer>h3{margin:10px 0}.red-theme.fr-popup .fr-file-progress-bar-layer>div.fr-loader{background:#ffefbf}.red-theme.fr-popup .fr-file-progress-bar-layer>div.fr-loader span{background:#ffca28;-webkit-transition:width .2s ease 0s;-moz-transition:width .2s ease 0s;-ms-transition:width .2s ease 0s;-o-transition:width .2s ease 0s}.red-theme.fr-popup .fr-file-progress-bar-layer>div.fr-loader.fr-indeterminate span{top:0}.red-theme.fr-box.fr-fullscreen{top:0;left:0;bottom:0;right:0}.red-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tr{border:0}.red-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tbody tr{border-bottom:solid 1px rgba(255,255,255,.3)}.red-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tbody td:first-child{color:#fff}.red-theme .fr-image-resizer{border:solid 1px #ffca28}.red-theme .fr-image-resizer .fr-handler{background:#ffca28;border:solid 1px #fff}.red-theme .fr-image-resizer .fr-handler{width:12px;height:12px}.red-theme .fr-image-resizer .fr-handler.fr-hnw{left:-6px;top:-6px}.red-theme .fr-image-resizer .fr-handler.fr-hne{right:-6px;top:-6px}.red-theme .fr-image-resizer .fr-handler.fr-hsw{left:-6px;bottom:-6px}.red-theme .fr-image-resizer .fr-handler.fr-hse{right:-6px;bottom:-6px}@media (min-width:1200px){.red-theme .fr-image-resizer .fr-handler{width:10px;height:10px}.red-theme .fr-image-resizer .fr-handler.fr-hnw{left:-5px;top:-5px}.red-theme .fr-image-resizer .fr-handler.fr-hne{right:-5px;top:-5px}.red-theme .fr-image-resizer .fr-handler.fr-hsw{left:-5px;bottom:-5px}.red-theme .fr-image-resizer .fr-handler.fr-hse{right:-5px;bottom:-5px}}.red-theme.fr-image-overlay{top:0;left:0;bottom:0;right:0;z-index:2147483640}.red-theme.fr-popup .fr-image-upload-layer{border:dashed 2px #edc9c9;padding:25px 0}.red-theme.fr-popup .fr-image-upload-layer:hover{background:#c65a59}.red-theme.fr-popup .fr-image-upload-layer.fr-drop{background:#c65a59;border-color:#ffca28}.red-theme.fr-popup .fr-image-upload-layer .fr-form{top:0;bottom:0;left:0;right:0;z-index:2147483640}.red-theme.fr-popup .fr-image-progress-bar-layer>h3{margin:10px 0}.red-theme.fr-popup .fr-image-progress-bar-layer>div.fr-loader{background:#ffefbf}.red-theme.fr-popup .fr-image-progress-bar-layer>div.fr-loader span{background:#ffca28;-webkit-transition:width .2s ease 0s;-moz-transition:width .2s ease 0s;-ms-transition:width .2s ease 0s;-o-transition:width .2s ease 0s}.red-theme.fr-popup .fr-image-progress-bar-layer>div.fr-loader.fr-indeterminate span{top:0}.red-theme.fr-modal-head .fr-modal-head-line i.fr-modal-more{-webkit-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s;-moz-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s;-ms-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s;-o-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s}.red-theme.fr-modal-head .fr-modal-head-line i.fr-modal-more.fr-not-available{opacity:0;width:0;padding:12px 0}.red-theme.fr-modal-head .fr-modal-tags a{opacity:0;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;color:#ffca28;-webkit-transition:opacity .2s ease 0s,background .2s ease 0s;-moz-transition:opacity .2s ease 0s,background .2s ease 0s;-ms-transition:opacity .2s ease 0s,background .2s ease 0s;-o-transition:opacity .2s ease 0s,background .2s ease 0s}.red-theme.fr-modal-head .fr-modal-tags a.fr-selected-tag{background:#d48382}.red-themediv.fr-modal-body .fr-preloader{margin:50px auto}.red-themediv.fr-modal-body div.fr-image-list{padding:0}.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-image-deleting::after{-webkit-transition:opacity .2s ease 0s;-moz-transition:opacity .2s ease 0s;-ms-transition:opacity .2s ease 0s;-o-transition:opacity .2s ease 0s;background:#000;top:0;left:0;bottom:0;right:0}.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-image-deleting::before{color:#fff;top:0;left:0;bottom:0;right:0;margin:auto}.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-empty{background:#ccc}.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-empty::after{margin:auto;top:0;bottom:0;left:0;right:0}.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container img{-webkit-transition:opacity .2s ease 0s,filter .2s ease 0s;-moz-transition:opacity .2s ease 0s,filter .2s ease 0s;-ms-transition:opacity .2s ease 0s,filter .2s ease 0s;-o-transition:opacity .2s ease 0s,filter .2s ease 0s}.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img,.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img{-webkit-transition:background .2s ease 0s,color .2s ease 0s;-moz-transition:background .2s ease 0s,color .2s ease 0s;-ms-transition:background .2s ease 0s,color .2s ease 0s;-o-transition:background .2s ease 0s,color .2s ease 0s;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;margin:0}.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img{background:#b8312f;color:#fff}.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img{background:#b8312f;color:#ffca28}.red-theme.red-theme.fr-desktop .fr-modal-wrapper .fr-modal-head .fr-modal-tags a:hover{background:#c65a59}.red-theme.red-theme.fr-desktop .fr-modal-wrapper .fr-modal-head .fr-modal-tags a.fr-selected-tag{background:#d48382}.red-theme.red-theme.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img:hover{background:#bf4644;color:#fff}.red-theme.red-theme.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img:hover{background:#c65a59}.red-theme .fr-line-breaker{border-top:1px solid #ffca28}.red-theme .fr-line-breaker a.fr-floating-btn{left:calc(50% - (32px / 2));top:-16px}.red-theme .fr-qi-helper{padding-left:16px}.red-theme .fr-qi-helper a.fr-btn.fr-floating-btn{color:#fff}.red-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-special-characters-modal .fr-special-character{border:1px solid #ccc}.red-theme .fr-element table td.fr-selected-cell,.red-theme .fr-element table th.fr-selected-cell{border:1px double #ffca28}.red-theme .fr-table-resizer div{border-right:1px solid #ffca28}.red-theme.fr-popup .fr-table-colors-hex-layer .fr-input-line{padding:8px 0 0}.red-theme.fr-popup .fr-table-colors-hex-layer .fr-action-buttons button{background-color:#ffca28;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.red-theme.fr-popup .fr-table-colors-hex-layer .fr-action-buttons button:hover{background-color:#f4b800}.red-theme.fr-popup .fr-table-size .fr-select-table-size{line-height:0}.red-theme.fr-popup .fr-table-size .fr-select-table-size>span{padding:0 4px 4px 0}.red-theme.fr-popup .fr-table-size .fr-select-table-size>span>span{border:1px solid #ddd}.red-theme.fr-popup .fr-table-size .fr-select-table-size>span.hover>span{background:rgba(255,202,40,.3);border:solid 1px #ffca28}.red-theme.fr-popup .fr-table-colors{line-height:0}.red-theme.fr-popup .fr-table-colors>span>i{bottom:0;left:0}.red-theme.fr-popup .fr-table-colors>span:focus{outline:1px solid #fff}.red-theme .fr-element .fr-video::after{top:0;left:0;right:0;bottom:0}.red-theme.fr-box .fr-video-resizer{border:solid 1px #ffca28}.red-theme.fr-box .fr-video-resizer .fr-handler{background:#ffca28;border:solid 1px #fff}.red-theme.fr-box .fr-video-resizer .fr-handler{width:12px;height:12px}.red-theme.fr-box .fr-video-resizer .fr-handler.fr-hnw{left:-6px;top:-6px}.red-theme.fr-box .fr-video-resizer .fr-handler.fr-hne{right:-6px;top:-6px}.red-theme.fr-box .fr-video-resizer .fr-handler.fr-hsw{left:-6px;bottom:-6px}.red-theme.fr-box .fr-video-resizer .fr-handler.fr-hse{right:-6px;bottom:-6px}@media (min-width:1200px){.red-theme.fr-box .fr-video-resizer .fr-handler{width:10px;height:10px}.red-theme.fr-box .fr-video-resizer .fr-handler.fr-hnw{left:-5px;top:-5px}.red-theme.fr-box .fr-video-resizer .fr-handler.fr-hne{right:-5px;top:-5px}.red-theme.fr-box .fr-video-resizer .fr-handler.fr-hsw{left:-5px;bottom:-5px}.red-theme.fr-box .fr-video-resizer .fr-handler.fr-hse{right:-5px;bottom:-5px}}.red-theme.fr-popup .fr-video-upload-layer{border:dashed 2px #edc9c9;padding:25px 0}.red-theme.fr-popup .fr-video-upload-layer:hover{background:#c65a59}.red-theme.fr-popup .fr-video-upload-layer.fr-drop{background:#c65a59;border-color:#ffca28}.red-theme.fr-popup .fr-video-upload-layer .fr-form{top:0;bottom:0;left:0;right:0;z-index:2147483640}.red-theme.fr-popup .fr-video-progress-bar-layer>h3{margin:10px 0}.red-theme.fr-popup .fr-video-progress-bar-layer>div.fr-loader{background:#ffefbf}.red-theme.fr-popup .fr-video-progress-bar-layer>div.fr-loader span{background:#ffca28;-webkit-transition:width .2s ease 0s;-moz-transition:width .2s ease 0s;-ms-transition:width .2s ease 0s;-o-transition:width .2s ease 0s}.red-theme.fr-popup .fr-video-progress-bar-layer>div.fr-loader.fr-indeterminate span{top:0}.red-theme.fr-video-overlay{top:0;left:0;bottom:0;right:0;z-index:2147483640}.red-theme .fr-view span[style~="color:"] a{color:inherit}.red-theme .fr-view strong{font-weight:700}.red-theme .fr-view table.fr-alternate-rows tbody tr:nth-child(2n){background:#f5f5f5}.red-theme .fr-view table td,.red-theme .fr-view table th{border:1px solid #ddd}.red-theme .fr-view table th{background:#e6e6e6}.red-theme .fr-view[dir=rtl] blockquote{border-right:solid 2px #5e35b1;margin-right:0}.red-theme .fr-view[dir=rtl] blockquote blockquote{border-color:#00bcd4}.red-theme .fr-view[dir=rtl] blockquote blockquote blockquote{border-color:#43a047}.red-theme .fr-view blockquote{border-left:solid 2px #5e35b1;margin-left:0;color:#5e35b1}.red-theme .fr-view blockquote blockquote{border-color:#00bcd4;color:#00bcd4}.red-theme .fr-view blockquote blockquote blockquote{border-color:#43a047;color:#43a047}.red-theme .fr-view span.fr-emoticon{line-height:0}.red-theme .fr-view span.fr-emoticon.fr-emoticon-img{font-size:inherit}.red-theme .fr-view .fr-text-bordered{padding:10px 0}.red-theme .fr-view .fr-img-caption .fr-img-wrap{margin:auto}.red-theme .fr-view .fr-img-caption .fr-img-wrap img{margin:auto}.red-theme .fr-view .fr-img-caption .fr-img-wrap>span{margin:auto}.red-theme .fr-element .fr-embedly::after{top:0;left:0;right:0;bottom:0}.red-theme.fr-box .fr-embedly-resizer{border:solid 1px #ffca28}.red-theme .examples-variante>a{font-size:14px;font-family:Arial,Helvetica,sans-serif}.red-theme .sc-cm-holder>.sc-cm{border-top:5px solid #671b1a!important}.red-theme .sc-cm__item_dropdown:hover>a,.red-theme .sc-cm a:hover{background-color:#c65a59!important}.red-theme .sc-cm__item_active>a,.red-theme .sc-cm__item_active>a:hover,.red-theme .sc-cm a:active,.red-theme .sc-cm a:focus{background-color:#d48382!important}.red-theme .sc-cm-holder>.sc-cm:before{background-color:#c65a59!important}.red-theme .fr-tooltip{top:0;left:0;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background:#222;color:#fff;font-size:11px;line-height:22px;font-family:Arial,Helvetica,sans-serif;-webkit-transition:opacity .2s ease 0s;-moz-transition:opacity .2s ease 0s;-ms-transition:opacity .2s ease 0s;-o-transition:opacity .2s ease 0s}.red-theme.fr-toolbar .fr-command.fr-btn,.red-theme.fr-popup .fr-command.fr-btn{color:#fff;-moz-outline:0;outline:0;border:0;margin:0 2px;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s;padding:0;width:38px;height:38px}.red-theme.fr-toolbar .fr-command.fr-btn::-moz-focus-inner,.red-theme.fr-popup .fr-command.fr-btn::-moz-focus-inner{border:0}.red-theme.fr-toolbar .fr-command.fr-btn.fr-btn-text,.red-theme.fr-popup .fr-command.fr-btn.fr-btn-text{width:auto}.red-theme.fr-toolbar .fr-command.fr-btn i,.red-theme.fr-popup .fr-command.fr-btn i,.red-theme.fr-toolbar .fr-command.fr-btn svg,.red-theme.fr-popup .fr-command.fr-btn svg{font-size:14px;width:14px;margin:12px}.red-theme.fr-toolbar .fr-command.fr-btn span,.red-theme.fr-popup .fr-command.fr-btn span{font-size:14px;line-height:17px;min-width:34px;height:17px;padding:0 2px}.red-theme.fr-toolbar .fr-command.fr-btn img,.red-theme.fr-popup .fr-command.fr-btn img{margin:12px;width:14px}.red-theme.fr-toolbar .fr-command.fr-btn.fr-active,.red-theme.fr-popup .fr-command.fr-btn.fr-active{color:#ffca28;background:0 0}.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-selection,.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-selection{width:auto}.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown i,.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown i,.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown span,.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown span,.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown img,.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown img,.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown svg,.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown svg{margin-left:8px;margin-right:16px}.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active,.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active{color:#fff;background:#d48382}.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:hover,.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:hover,.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:focus,.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:focus{background:#d48382!important;color:#fff!important}.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:hover::after,.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:hover::after,.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:focus::after,.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:focus::after{border-top-color:#fff!important}.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown::after,.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown::after{width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid #fff;right:4px;top:17px}.red-theme.fr-toolbar .fr-command.fr-btn.fr-disabled,.red-theme.fr-popup .fr-command.fr-btn.fr-disabled{color:#edc9c9}.red-theme.fr-toolbar .fr-command.fr-btn.fr-disabled::after,.red-theme.fr-popup .fr-command.fr-btn.fr-disabled::after{border-top-color:#edc9c9!important}.red-theme.fr-toolbar.fr-disabled .fr-btn,.red-theme.fr-popup.fr-disabled .fr-btn,.red-theme.fr-toolbar.fr-disabled .fr-btn.fr-active,.red-theme.fr-popup.fr-disabled .fr-btn.fr-active{color:#edc9c9}.red-theme.fr-toolbar.fr-disabled .fr-btn.fr-dropdown::after,.red-theme.fr-popup.fr-disabled .fr-btn.fr-dropdown::after,.red-theme.fr-toolbar.fr-disabled .fr-btn.fr-active.fr-dropdown::after,.red-theme.fr-popup.fr-disabled .fr-btn.fr-active.fr-dropdown::after{border-top-color:#edc9c9}.red-theme.fr-desktop .fr-command:hover,.red-theme.fr-desktop .fr-command:focus{outline:0;color:#fff;background:#c65a59}.red-theme.fr-desktop .fr-command:hover::after,.red-theme.fr-desktop .fr-command:focus::after{border-top-color:#fff!important}.red-theme.fr-desktop .fr-command.fr-selected{color:#fff;background:#d48382}.red-theme.fr-desktop .fr-command.fr-active:hover,.red-theme.fr-desktop .fr-command.fr-active:focus{color:#ffca28;background:#c65a59}.red-theme.fr-desktop .fr-command.fr-active.fr-selected{color:#ffca28;background:#d48382}.red-theme.fr-toolbar.fr-mobile .fr-command.fr-blink,.red-theme.fr-popup.fr-mobile .fr-command.fr-blink{background:0 0}.red-theme .fr-command.fr-btn+.fr-dropdown-menu{right:auto;bottom:auto;height:auto;border-radius:0 0 2px 2px;-moz-border-radius:0 0 2px 2px;-webkit-border-radius:0 0 2px 2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.red-theme .fr-command.fr-btn+.fr-dropdown-menu.test-height .fr-dropdown-wrapper{height:auto;max-height:275px}.red-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper{background:#b8312f;padding:0;margin:auto;-webkit-transition:max-height .2s ease 0s;-moz-transition:max-height .2s ease 0s;-ms-transition:max-height .2s ease 0s;-o-transition:max-height .2s ease 0s;margin-top:0;max-height:0;height:0}.red-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content{overflow:auto;max-height:275px}.red-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list{margin:0;padding:0}.red-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li{padding:0;margin:0}.red-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a{color:inherit}.red-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-active{background:#d48382}.red-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-disabled{color:#edc9c9}.red-theme .fr-command.fr-btn.fr-active+.fr-dropdown-menu{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.red-theme .fr-command.fr-btn.fr-active+.fr-dropdown-menu .fr-dropdown-wrapper{height:auto;max-height:275px}.red-theme .fr-bottom>.fr-command.fr-btn+.fr-dropdown-menu{border-radius:2px 2px 0 0;-moz-border-radius:2px 2px 0 0;-webkit-border-radius:2px 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.red-theme.fr-modal{color:#fff;font-family:Arial,Helvetica,sans-serif;overflow-x:auto;top:0;left:0;bottom:0;right:0;z-index:2147483640}.red-theme.fr-modal.fr-middle .fr-modal-wrapper{margin-top:0;margin-bottom:0;margin-left:auto;margin-right:auto}.red-theme.fr-modal .fr-modal-wrapper{border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;margin:20px auto;background:#b8312f;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;border:solid 1px #671b1a;border-top:5px solid #671b1a}@media (min-width:768px) and (max-width:991px){.red-theme.fr-modal .fr-modal-wrapper{margin:30px auto}}@media (min-width:992px){.red-theme.fr-modal .fr-modal-wrapper{margin:50px auto}}.red-theme.fr-modal .fr-modal-wrapper .fr-modal-head{background:#b8312f;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;border-bottom:solid 1px #671b1a;-webkit-transition:height .2s ease 0s;-moz-transition:height .2s ease 0s;-ms-transition:height .2s ease 0s;-o-transition:height .2s ease 0s}.red-theme.fr-modal .fr-modal-wrapper .fr-modal-head .fr-modal-close{color:#fff;top:0;right:0;-webkit-transition:color .2s ease 0s;-moz-transition:color .2s ease 0s;-ms-transition:color .2s ease 0s;-o-transition:color .2s ease 0s}.red-theme.fr-modal .fr-modal-wrapper .fr-modal-head h4{margin:0;font-weight:400}.red-theme.fr-modal .fr-modal-wrapper div.fr-modal-body:focus{outline:0}.red-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command{color:#ffca28;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.red-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:hover,.red-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:focus{background:#c65a59;color:#ffca28}.red-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:active{background:#d48382;color:#ffca28}.red-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button::-moz-focus-inner{border:0}.red-theme.red-theme.fr-desktop .fr-modal-wrapper .fr-modal-head i:hover{background:#c65a59}.red-theme.fr-overlay{top:0;bottom:0;left:0;right:0;background:#000}.red-theme.fr-popup{color:#fff;background:#b8312f;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;font-family:Arial,Helvetica,sans-serif;border:solid 1px #671b1a;border-top:5px solid #671b1a}.red-theme.fr-popup .fr-input-focus{background:#bf4644}.red-theme.fr-popup.fr-above{border-top:0;border-bottom:5px solid #671b1a;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.red-theme.fr-popup .fr-input-line{padding:8px 0}.red-theme.fr-popup .fr-input-line input[type=text],.red-theme.fr-popup .fr-input-line textarea{margin:0 0 1px;border-bottom:solid 1px #bdbdbd;color:#fff}.red-theme.fr-popup .fr-input-line input[type=text]:focus,.red-theme.fr-popup .fr-input-line textarea:focus{border-bottom:solid 2px #ffca28}.red-theme.fr-popup .fr-input-line input+label,.red-theme.fr-popup .fr-input-line textarea+label{top:0;left:0;-webkit-transition:color .2s ease 0s;-moz-transition:color .2s ease 0s;-ms-transition:color .2s ease 0s;-o-transition:color .2s ease 0s;background:#b8312f}.red-theme.fr-popup .fr-input-line input.fr-not-empty:focus+label,.red-theme.fr-popup .fr-input-line textarea.fr-not-empty:focus+label{color:#ffca28}.red-theme.fr-popup .fr-input-line input.fr-not-empty+label,.red-theme.fr-popup .fr-input-line textarea.fr-not-empty+label{color:gray}.red-theme.fr-popup .fr-buttons{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;padding:0 2px;line-height:0;border-bottom:solid 1px #671b1a}.red-theme.fr-popup .fr-layer{width:225px}@media (min-width:768px){.red-theme.fr-popup .fr-layer{width:300px}}.red-theme.fr-popup .fr-action-buttons button.fr-command{color:#ffca28;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.red-theme.fr-popup .fr-action-buttons button.fr-command:hover,.red-theme.fr-popup .fr-action-buttons button.fr-command:focus{background:#c65a59;color:#ffca28}.red-theme.fr-popup .fr-action-buttons button.fr-command:active{background:#d48382;color:#ffca28}.red-theme.fr-popup .fr-action-buttons button::-moz-focus-inner{border:0}.red-theme.fr-popup .fr-checkbox span{border:solid 1px #fff;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-transition:background .2s ease 0s,border-color .2s ease 0s;-moz-transition:background .2s ease 0s,border-color .2s ease 0s;-ms-transition:background .2s ease 0s,border-color .2s ease 0s;-o-transition:background .2s ease 0s,border-color .2s ease 0s}.red-theme.fr-popup .fr-checkbox input{margin:0;padding:0}.red-theme.fr-popup .fr-checkbox input:checked+span{background:#ffca28;border-color:#ffca28}.red-theme.fr-popup .fr-checkbox input:focus+span{border-color:#ffca28}.red-theme.fr-popup.fr-rtl .fr-input-line input+label,.red-theme.fr-popup.fr-rtl .fr-input-line textarea+label{left:auto;right:0}.red-theme.fr-popup .fr-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid #671b1a;top:-9px;margin-left:-5px}.red-theme.fr-popup.fr-above .fr-arrow{top:auto;bottom:-9px;border-bottom:0;border-top:5px solid #671b1a}.red-theme.fr-toolbar{color:#fff;background:#b8312f;font-family:Arial,Helvetica,sans-serif;padding:0 2px;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;border:solid 1px #671b1a;border-top:5px solid #671b1a}.red-theme.fr-toolbar.fr-inline .fr-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid #671b1a;top:-9px;margin-left:-5px}.red-theme.fr-toolbar.fr-inline.fr-above{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;border-bottom:5px solid #671b1a;border-top:0}.red-theme.fr-toolbar.fr-inline.fr-above .fr-arrow{top:auto;bottom:-9px;border-bottom:0;border-top-color:inherit;border-top-width:5px}.red-theme.fr-toolbar.fr-top{top:0;border-radius:2px 2px 0 0;-moz-border-radius:2px 2px 0 0;-webkit-border-radius:2px 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.red-theme.fr-toolbar.fr-bottom{bottom:0;border-radius:0 0 2px 2px;-moz-border-radius:0 0 2px 2px;-webkit-border-radius:0 0 2px 2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.red-theme .fr-separator{background:rgba(255,255,255,.3)}.red-theme .fr-separator.fr-vs{height:34px;width:1px;margin:2px}.red-theme .fr-separator.fr-hs{height:1px;width:calc(100% - (2 * 2px));margin:0 2px} \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/themes/royal.min.css b/Mobile.Search.Web/Scripts/froala-editor/css/themes/royal.min.css deleted file mode 100644 index 037c009..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/themes/royal.min.css +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.royal-theme.fr-box.fr-basic .fr-element{color:#000;padding:16px;overflow-x:auto;min-height:52px}.royal-theme .fr-element{-webkit-user-select:auto}.royal-theme.fr-box a.fr-floating-btn{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);height:32px;width:32px;background:#fff;color:#553982;-webkit-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;-moz-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;-ms-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;-o-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;left:0;top:0;line-height:32px;border:0}.royal-theme.fr-box a.fr-floating-btn svg{-webkit-transition:transform .2s ease 0s;-moz-transition:transform .2s ease 0s;-ms-transition:transform .2s ease 0s;-o-transition:transform .2s ease 0s;fill:#553982}.royal-theme.fr-box a.fr-floating-btn i,.royal-theme.fr-box a.fr-floating-btn svg{font-size:14px;line-height:32px}.royal-theme.fr-box a.fr-floating-btn:hover{background:#9365b8}.royal-theme.fr-box a.fr-floating-btn:hover svg{fill:#fff}.royal-theme .fr-wrapper .fr-placeholder{font-size:12px;color:#aaa;top:0;left:0;right:0}.royal-theme .fr-wrapper ::-moz-selection{background:#b5d6fd;color:#000}.royal-theme .fr-wrapper ::selection{background:#b5d6fd;color:#000}.royal-theme.fr-box.fr-basic .fr-wrapper{background:#fff;border:0;border-top:0;top:0;left:0}.royal-theme.fr-box.fr-basic.fr-top .fr-wrapper{border-top:0;border-radius:0 0 2px 2px;-moz-border-radius:0 0 2px 2px;-webkit-border-radius:0 0 2px 2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.royal-theme.fr-box.fr-basic.fr-bottom .fr-wrapper{border-bottom:0;border-radius:2px 2px 0 0;-moz-border-radius:2px 2px 0 0;-webkit-border-radius:2px 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16)}.royal-theme .fr-sticky-on.fr-sticky-ios{left:0;right:0}.royal-theme.fr-box .fr-counter{color:#ccc;background:#fff;border-top:solid 1px #ebebeb;border-left:solid 1px #ebebeb;border-radius:2px 0 0;-moz-border-radius:2px 0 0;-webkit-border-radius:2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.royal-theme.fr-box.fr-rtl .fr-counter{right:auto;border-right:solid 1px #ebebeb;border-radius:0 2px 0 0;-moz-border-radius:0 2px 0 0;-webkit-border-radius:0 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.royal-theme textarea.fr-code{background:#fff;color:#000}.royal-theme.fr-box.fr-code-view.fr-inline{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.royal-theme.fr-box.fr-inline .fr-command.fr-btn.html-switch{top:0;right:0;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);background:#fff;color:#553982;-moz-outline:0;outline:0;border:0;padding:12px;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s}.royal-theme.fr-box.fr-inline .fr-command.fr-btn.html-switch i{font-size:14px;width:14px}.royal-theme.fr-box.fr-inline .fr-command.fr-btn.html-switch.fr-desktop:hover{background:#ebebeb}.royal-theme.fr-popup .fr-colors-tabs{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.royal-theme.fr-popup .fr-colors-tabs .fr-colors-tab{color:#553982;padding:8px 0}.royal-theme.fr-popup .fr-colors-tabs .fr-colors-tab:hover,.royal-theme.fr-popup .fr-colors-tabs .fr-colors-tab:focus{color:#553982}.royal-theme.fr-popup .fr-colors-tabs .fr-colors-tab[data-param1=background]::after{bottom:0;left:0;background:#553982;-webkit-transition:transform .2s ease 0s;-moz-transition:transform .2s ease 0s;-ms-transition:transform .2s ease 0s;-o-transition:transform .2s ease 0s}.royal-theme.fr-popup .fr-colors-tabs .fr-colors-tab.fr-selected-tab{color:#553982}.royal-theme.fr-popup .fr-color-hex-layer .fr-input-line{padding:8px 0 0}.royal-theme.fr-popup .fr-color-hex-layer .fr-action-buttons button{background-color:#553982;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.royal-theme.fr-popup .fr-color-hex-layer .fr-action-buttons button:hover{background-color:#3e295f}.royal-theme.fr-popup .fr-color-set{line-height:0}.royal-theme.fr-popup .fr-color-set>span>i,.royal-theme.fr-popup .fr-color-set>span>svg{bottom:0;left:0}.royal-theme.fr-popup .fr-color-set>span .fr-selected-color{color:#fff;font-weight:400;top:0;bottom:0;right:0;left:0}.royal-theme.fr-popup .fr-color-set>span:hover,.royal-theme.fr-popup .fr-color-set>span:focus{outline:1px solid #553982}.royal-theme .fr-drag-helper{background:#553982;z-index:2147483640}.royal-theme.fr-popup .fr-link:focus{outline:0;background:#ebebeb}.royal-theme.fr-popup .fr-file-upload-layer{border:dashed 2px #b7bdc0;padding:25px 0}.royal-theme.fr-popup .fr-file-upload-layer:hover{background:#ebebeb}.royal-theme.fr-popup .fr-file-upload-layer.fr-drop{background:#ebebeb;border-color:#553982}.royal-theme.fr-popup .fr-file-upload-layer .fr-form{top:0;bottom:0;left:0;right:0;z-index:2147483640}.royal-theme.fr-popup .fr-file-progress-bar-layer>h3{margin:10px 0}.royal-theme.fr-popup .fr-file-progress-bar-layer>div.fr-loader{background:#ccc4da}.royal-theme.fr-popup .fr-file-progress-bar-layer>div.fr-loader span{background:#553982;-webkit-transition:width .2s ease 0s;-moz-transition:width .2s ease 0s;-ms-transition:width .2s ease 0s;-o-transition:width .2s ease 0s}.royal-theme.fr-popup .fr-file-progress-bar-layer>div.fr-loader.fr-indeterminate span{top:0}.royal-theme.fr-box.fr-fullscreen{top:0;left:0;bottom:0;right:0}.royal-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tr{border:0}.royal-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tbody tr{border-bottom:solid 1px #ebebeb}.royal-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tbody td:first-child{color:#8874a8}.royal-theme .fr-image-resizer{border:solid 1px #553982}.royal-theme .fr-image-resizer .fr-handler{background:#553982;border:solid 1px #fff}.royal-theme .fr-image-resizer .fr-handler{width:12px;height:12px}.royal-theme .fr-image-resizer .fr-handler.fr-hnw{left:-6px;top:-6px}.royal-theme .fr-image-resizer .fr-handler.fr-hne{right:-6px;top:-6px}.royal-theme .fr-image-resizer .fr-handler.fr-hsw{left:-6px;bottom:-6px}.royal-theme .fr-image-resizer .fr-handler.fr-hse{right:-6px;bottom:-6px}@media (min-width:1200px){.royal-theme .fr-image-resizer .fr-handler{width:10px;height:10px}.royal-theme .fr-image-resizer .fr-handler.fr-hnw{left:-5px;top:-5px}.royal-theme .fr-image-resizer .fr-handler.fr-hne{right:-5px;top:-5px}.royal-theme .fr-image-resizer .fr-handler.fr-hsw{left:-5px;bottom:-5px}.royal-theme .fr-image-resizer .fr-handler.fr-hse{right:-5px;bottom:-5px}}.royal-theme.fr-image-overlay{top:0;left:0;bottom:0;right:0;z-index:2147483640}.royal-theme.fr-popup .fr-image-upload-layer{border:dashed 2px #b7bdc0;padding:25px 0}.royal-theme.fr-popup .fr-image-upload-layer:hover{background:#ebebeb}.royal-theme.fr-popup .fr-image-upload-layer.fr-drop{background:#ebebeb;border-color:#553982}.royal-theme.fr-popup .fr-image-upload-layer .fr-form{top:0;bottom:0;left:0;right:0;z-index:2147483640}.royal-theme.fr-popup .fr-image-progress-bar-layer>h3{margin:10px 0}.royal-theme.fr-popup .fr-image-progress-bar-layer>div.fr-loader{background:#ccc4da}.royal-theme.fr-popup .fr-image-progress-bar-layer>div.fr-loader span{background:#553982;-webkit-transition:width .2s ease 0s;-moz-transition:width .2s ease 0s;-ms-transition:width .2s ease 0s;-o-transition:width .2s ease 0s}.royal-theme.fr-popup .fr-image-progress-bar-layer>div.fr-loader.fr-indeterminate span{top:0}.royal-theme.fr-modal-head .fr-modal-head-line i.fr-modal-more{-webkit-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s;-moz-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s;-ms-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s;-o-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s}.royal-theme.fr-modal-head .fr-modal-head-line i.fr-modal-more.fr-not-available{opacity:0;width:0;padding:12px 0}.royal-theme.fr-modal-head .fr-modal-tags a{opacity:0;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;color:#553982;-webkit-transition:opacity .2s ease 0s,background .2s ease 0s;-moz-transition:opacity .2s ease 0s,background .2s ease 0s;-ms-transition:opacity .2s ease 0s,background .2s ease 0s;-o-transition:opacity .2s ease 0s,background .2s ease 0s}.royal-theme.fr-modal-head .fr-modal-tags a.fr-selected-tag{background:#d6d6d6}.royal-themediv.fr-modal-body .fr-preloader{margin:50px auto}.royal-themediv.fr-modal-body div.fr-image-list{padding:0}.royal-themediv.fr-modal-body div.fr-image-list div.fr-image-container{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.royal-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-image-deleting::after{-webkit-transition:opacity .2s ease 0s;-moz-transition:opacity .2s ease 0s;-ms-transition:opacity .2s ease 0s;-o-transition:opacity .2s ease 0s;background:#000;top:0;left:0;bottom:0;right:0}.royal-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-image-deleting::before{color:#fff;top:0;left:0;bottom:0;right:0;margin:auto}.royal-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-empty{background:#ccc}.royal-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-empty::after{margin:auto;top:0;bottom:0;left:0;right:0}.royal-themediv.fr-modal-body div.fr-image-list div.fr-image-container img{-webkit-transition:opacity .2s ease 0s,filter .2s ease 0s;-moz-transition:opacity .2s ease 0s,filter .2s ease 0s;-ms-transition:opacity .2s ease 0s,filter .2s ease 0s;-o-transition:opacity .2s ease 0s,filter .2s ease 0s}.royal-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img,.royal-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img{-webkit-transition:background .2s ease 0s,color .2s ease 0s;-moz-transition:background .2s ease 0s,color .2s ease 0s;-ms-transition:background .2s ease 0s,color .2s ease 0s;-o-transition:background .2s ease 0s,color .2s ease 0s;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);margin:0}.royal-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img{background:#b8312f;color:#fff}.royal-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img{background:#fff;color:#553982}.royal-theme.royal-theme.fr-desktop .fr-modal-wrapper .fr-modal-head .fr-modal-tags a:hover{background:#ebebeb}.royal-theme.royal-theme.fr-desktop .fr-modal-wrapper .fr-modal-head .fr-modal-tags a.fr-selected-tag{background:#d6d6d6}.royal-theme.royal-theme.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img:hover{background:#bf4644;color:#fff}.royal-theme.royal-theme.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img:hover{background:#ebebeb}.royal-theme .fr-line-breaker{border-top:1px solid #553982}.royal-theme .fr-line-breaker a.fr-floating-btn{left:calc(50% - (32px / 2));top:-16px}.royal-theme .fr-qi-helper{padding-left:16px}.royal-theme .fr-qi-helper a.fr-btn.fr-floating-btn{color:#553982}.royal-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-special-characters-modal .fr-special-character{border:1px solid #ccc}.royal-theme .fr-element table td.fr-selected-cell,.royal-theme .fr-element table th.fr-selected-cell{border:1px double #553982}.royal-theme .fr-table-resizer div{border-right:1px solid #553982}.royal-theme.fr-popup .fr-table-colors-hex-layer .fr-input-line{padding:8px 0 0}.royal-theme.fr-popup .fr-table-colors-hex-layer .fr-action-buttons button{background-color:#553982;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.royal-theme.fr-popup .fr-table-colors-hex-layer .fr-action-buttons button:hover{background-color:#3e295f}.royal-theme.fr-popup .fr-table-size .fr-select-table-size{line-height:0}.royal-theme.fr-popup .fr-table-size .fr-select-table-size>span{padding:0 4px 4px 0}.royal-theme.fr-popup .fr-table-size .fr-select-table-size>span>span{border:1px solid #ddd}.royal-theme.fr-popup .fr-table-size .fr-select-table-size>span.hover>span{background:rgba(85,57,130,.3);border:solid 1px #553982}.royal-theme.fr-popup .fr-table-colors{line-height:0}.royal-theme.fr-popup .fr-table-colors>span>i{bottom:0;left:0}.royal-theme.fr-popup .fr-table-colors>span:focus{outline:1px solid #553982}.royal-theme .fr-element .fr-video::after{top:0;left:0;right:0;bottom:0}.royal-theme.fr-box .fr-video-resizer{border:solid 1px #553982}.royal-theme.fr-box .fr-video-resizer .fr-handler{background:#553982;border:solid 1px #fff}.royal-theme.fr-box .fr-video-resizer .fr-handler{width:12px;height:12px}.royal-theme.fr-box .fr-video-resizer .fr-handler.fr-hnw{left:-6px;top:-6px}.royal-theme.fr-box .fr-video-resizer .fr-handler.fr-hne{right:-6px;top:-6px}.royal-theme.fr-box .fr-video-resizer .fr-handler.fr-hsw{left:-6px;bottom:-6px}.royal-theme.fr-box .fr-video-resizer .fr-handler.fr-hse{right:-6px;bottom:-6px}@media (min-width:1200px){.royal-theme.fr-box .fr-video-resizer .fr-handler{width:10px;height:10px}.royal-theme.fr-box .fr-video-resizer .fr-handler.fr-hnw{left:-5px;top:-5px}.royal-theme.fr-box .fr-video-resizer .fr-handler.fr-hne{right:-5px;top:-5px}.royal-theme.fr-box .fr-video-resizer .fr-handler.fr-hsw{left:-5px;bottom:-5px}.royal-theme.fr-box .fr-video-resizer .fr-handler.fr-hse{right:-5px;bottom:-5px}}.royal-theme.fr-popup .fr-video-upload-layer{border:dashed 2px #b7bdc0;padding:25px 0}.royal-theme.fr-popup .fr-video-upload-layer:hover{background:#ebebeb}.royal-theme.fr-popup .fr-video-upload-layer.fr-drop{background:#ebebeb;border-color:#553982}.royal-theme.fr-popup .fr-video-upload-layer .fr-form{top:0;bottom:0;left:0;right:0;z-index:2147483640}.royal-theme.fr-popup .fr-video-progress-bar-layer>h3{margin:10px 0}.royal-theme.fr-popup .fr-video-progress-bar-layer>div.fr-loader{background:#ccc4da}.royal-theme.fr-popup .fr-video-progress-bar-layer>div.fr-loader span{background:#553982;-webkit-transition:width .2s ease 0s;-moz-transition:width .2s ease 0s;-ms-transition:width .2s ease 0s;-o-transition:width .2s ease 0s}.royal-theme.fr-popup .fr-video-progress-bar-layer>div.fr-loader.fr-indeterminate span{top:0}.royal-theme.fr-video-overlay{top:0;left:0;bottom:0;right:0;z-index:2147483640}.royal-theme .fr-view span[style~="color:"] a{color:inherit}.royal-theme .fr-view strong{font-weight:700}.royal-theme .fr-view table.fr-alternate-rows tbody tr:nth-child(2n){background:#f5f5f5}.royal-theme .fr-view table td,.royal-theme .fr-view table th{border:1px solid #ddd}.royal-theme .fr-view table th{background:#e6e6e6}.royal-theme .fr-view[dir=rtl] blockquote{border-right:solid 2px #5e35b1;margin-right:0}.royal-theme .fr-view[dir=rtl] blockquote blockquote{border-color:#00bcd4}.royal-theme .fr-view[dir=rtl] blockquote blockquote blockquote{border-color:#43a047}.royal-theme .fr-view blockquote{border-left:solid 2px #5e35b1;margin-left:0;color:#5e35b1}.royal-theme .fr-view blockquote blockquote{border-color:#00bcd4;color:#00bcd4}.royal-theme .fr-view blockquote blockquote blockquote{border-color:#43a047;color:#43a047}.royal-theme .fr-view span.fr-emoticon{line-height:0}.royal-theme .fr-view span.fr-emoticon.fr-emoticon-img{font-size:inherit}.royal-theme .fr-view .fr-text-bordered{padding:10px 0}.royal-theme .fr-view .fr-img-caption .fr-img-wrap{margin:auto}.royal-theme .fr-view .fr-img-caption .fr-img-wrap img{margin:auto}.royal-theme .fr-view .fr-img-caption .fr-img-wrap>span{margin:auto}.royal-theme .fr-element .fr-embedly::after{top:0;left:0;right:0;bottom:0}.royal-theme.fr-box .fr-embedly-resizer{border:solid 1px #553982}.royal-theme .examples-variante>a{font-size:14px;font-family:Arial,Helvetica,sans-serif}.royal-theme .sc-cm-holder>.sc-cm{border-top:5px solid #553982!important}.royal-theme .sc-cm__item_dropdown:hover>a,.royal-theme .sc-cm a:hover{background-color:#ebebeb!important}.royal-theme .sc-cm__item_active>a,.royal-theme .sc-cm__item_active>a:hover,.royal-theme .sc-cm a:active,.royal-theme .sc-cm a:focus{background-color:#d6d6d6!important}.royal-theme .sc-cm-holder>.sc-cm:before{background-color:#ebebeb!important}.royal-theme .fr-tooltip{top:0;left:0;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);-moz-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);background:#222;color:#fff;font-size:11px;line-height:22px;font-family:Arial,Helvetica,sans-serif;-webkit-transition:opacity .2s ease 0s;-moz-transition:opacity .2s ease 0s;-ms-transition:opacity .2s ease 0s;-o-transition:opacity .2s ease 0s}.royal-theme.fr-toolbar .fr-command.fr-btn,.royal-theme.fr-popup .fr-command.fr-btn{color:#553982;-moz-outline:0;outline:0;border:0;margin:0 2px;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s;padding:0;width:38px;height:38px}.royal-theme.fr-toolbar .fr-command.fr-btn::-moz-focus-inner,.royal-theme.fr-popup .fr-command.fr-btn::-moz-focus-inner{border:0}.royal-theme.fr-toolbar .fr-command.fr-btn.fr-btn-text,.royal-theme.fr-popup .fr-command.fr-btn.fr-btn-text{width:auto}.royal-theme.fr-toolbar .fr-command.fr-btn i,.royal-theme.fr-popup .fr-command.fr-btn i,.royal-theme.fr-toolbar .fr-command.fr-btn svg,.royal-theme.fr-popup .fr-command.fr-btn svg{font-size:14px;width:14px;margin:12px}.royal-theme.fr-toolbar .fr-command.fr-btn span,.royal-theme.fr-popup .fr-command.fr-btn span{font-size:14px;line-height:17px;min-width:34px;height:17px;padding:0 2px}.royal-theme.fr-toolbar .fr-command.fr-btn img,.royal-theme.fr-popup .fr-command.fr-btn img{margin:12px;width:14px}.royal-theme.fr-toolbar .fr-command.fr-btn.fr-active,.royal-theme.fr-popup .fr-command.fr-btn.fr-active{color:#fff;background:#9365b8}.royal-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-selection,.royal-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-selection{width:auto}.royal-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown i,.royal-theme.fr-popup .fr-command.fr-btn.fr-dropdown i,.royal-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown span,.royal-theme.fr-popup .fr-command.fr-btn.fr-dropdown span,.royal-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown img,.royal-theme.fr-popup .fr-command.fr-btn.fr-dropdown img,.royal-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown svg,.royal-theme.fr-popup .fr-command.fr-btn.fr-dropdown svg{margin-left:8px;margin-right:16px}.royal-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active,.royal-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active{color:#553982;background:#d6d6d6}.royal-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:hover,.royal-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:hover,.royal-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:focus,.royal-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:focus{background:#d6d6d6!important;color:#553982!important}.royal-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:hover::after,.royal-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:hover::after,.royal-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:focus::after,.royal-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:focus::after{border-top-color:#553982!important}.royal-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown::after,.royal-theme.fr-popup .fr-command.fr-btn.fr-dropdown::after{width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid #553982;right:4px;top:17px}.royal-theme.fr-toolbar .fr-command.fr-btn.fr-disabled,.royal-theme.fr-popup .fr-command.fr-btn.fr-disabled{color:#b7bdc0}.royal-theme.fr-toolbar .fr-command.fr-btn.fr-disabled::after,.royal-theme.fr-popup .fr-command.fr-btn.fr-disabled::after{border-top-color:#b7bdc0!important}.royal-theme.fr-toolbar.fr-disabled .fr-btn,.royal-theme.fr-popup.fr-disabled .fr-btn,.royal-theme.fr-toolbar.fr-disabled .fr-btn.fr-active,.royal-theme.fr-popup.fr-disabled .fr-btn.fr-active{color:#b7bdc0}.royal-theme.fr-toolbar.fr-disabled .fr-btn.fr-dropdown::after,.royal-theme.fr-popup.fr-disabled .fr-btn.fr-dropdown::after,.royal-theme.fr-toolbar.fr-disabled .fr-btn.fr-active.fr-dropdown::after,.royal-theme.fr-popup.fr-disabled .fr-btn.fr-active.fr-dropdown::after{border-top-color:#b7bdc0}.royal-theme.fr-desktop .fr-command:hover,.royal-theme.fr-desktop .fr-command:focus{outline:0;color:#553982;background:#ebebeb}.royal-theme.fr-desktop .fr-command:hover::after,.royal-theme.fr-desktop .fr-command:focus::after{border-top-color:#553982!important}.royal-theme.fr-desktop .fr-command.fr-selected{color:#553982;background:#d6d6d6}.royal-theme.fr-desktop .fr-command.fr-active:hover,.royal-theme.fr-desktop .fr-command.fr-active:focus{color:#553982;background:#ebebeb}.royal-theme.fr-desktop .fr-command.fr-active.fr-selected{color:#553982;background:#d6d6d6}.royal-theme.fr-toolbar.fr-mobile .fr-command.fr-blink,.royal-theme.fr-popup.fr-mobile .fr-command.fr-blink{background:#9365b8}.royal-theme .fr-command.fr-btn+.fr-dropdown-menu{right:auto;bottom:auto;height:auto;border-radius:0 0 2px 2px;-moz-border-radius:0 0 2px 2px;-webkit-border-radius:0 0 2px 2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.royal-theme .fr-command.fr-btn+.fr-dropdown-menu.test-height .fr-dropdown-wrapper{height:auto;max-height:275px}.royal-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper{background:#fff;padding:0;margin:auto;-webkit-transition:max-height .2s ease 0s;-moz-transition:max-height .2s ease 0s;-ms-transition:max-height .2s ease 0s;-o-transition:max-height .2s ease 0s;margin-top:0;max-height:0;height:0}.royal-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content{overflow:auto;max-height:275px}.royal-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list{margin:0;padding:0}.royal-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li{padding:0;margin:0}.royal-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a{color:inherit}.royal-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-active{background:#d6d6d6}.royal-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-disabled{color:#b7bdc0}.royal-theme .fr-command.fr-btn.fr-active+.fr-dropdown-menu{-webkit-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);-moz-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14)}.royal-theme .fr-command.fr-btn.fr-active+.fr-dropdown-menu .fr-dropdown-wrapper{height:auto;max-height:275px}.royal-theme .fr-bottom>.fr-command.fr-btn+.fr-dropdown-menu{border-radius:2px 2px 0 0;-moz-border-radius:2px 2px 0 0;-webkit-border-radius:2px 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.royal-theme.fr-modal{color:#553982;font-family:Arial,Helvetica,sans-serif;overflow-x:auto;top:0;left:0;bottom:0;right:0;z-index:2147483640}.royal-theme.fr-modal.fr-middle .fr-modal-wrapper{margin-top:0;margin-bottom:0;margin-left:auto;margin-right:auto}.royal-theme.fr-modal .fr-modal-wrapper{border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;margin:20px auto;background:#fff;-webkit-box-shadow:0 5px 8px rgba(0,0,0,.19),0 4px 3px 1px rgba(0,0,0,.14);-moz-box-shadow:0 5px 8px rgba(0,0,0,.19),0 4px 3px 1px rgba(0,0,0,.14);box-shadow:0 5px 8px rgba(0,0,0,.19),0 4px 3px 1px rgba(0,0,0,.14);border:0;border-top:5px solid #553982}@media (min-width:768px) and (max-width:991px){.royal-theme.fr-modal .fr-modal-wrapper{margin:30px auto}}@media (min-width:992px){.royal-theme.fr-modal .fr-modal-wrapper{margin:50px auto}}.royal-theme.fr-modal .fr-modal-wrapper .fr-modal-head{background:#fff;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);-moz-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);border-bottom:0;-webkit-transition:height .2s ease 0s;-moz-transition:height .2s ease 0s;-ms-transition:height .2s ease 0s;-o-transition:height .2s ease 0s}.royal-theme.fr-modal .fr-modal-wrapper .fr-modal-head .fr-modal-close{color:#553982;top:0;right:0;-webkit-transition:color .2s ease 0s;-moz-transition:color .2s ease 0s;-ms-transition:color .2s ease 0s;-o-transition:color .2s ease 0s}.royal-theme.fr-modal .fr-modal-wrapper .fr-modal-head h4{margin:0;font-weight:400}.royal-theme.fr-modal .fr-modal-wrapper div.fr-modal-body:focus{outline:0}.royal-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command{color:#553982;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.royal-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:hover,.royal-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:focus{background:#ebebeb;color:#553982}.royal-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:active{background:#d6d6d6;color:#553982}.royal-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button::-moz-focus-inner{border:0}.royal-theme.royal-theme.fr-desktop .fr-modal-wrapper .fr-modal-head i:hover{background:#ebebeb}.royal-theme.fr-overlay{top:0;bottom:0;left:0;right:0;background:#000}.royal-theme.fr-popup{color:#553982;background:#fff;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;font-family:Arial,Helvetica,sans-serif;border:0;border-top:5px solid #553982}.royal-theme.fr-popup .fr-input-focus{background:#f5f5f5}.royal-theme.fr-popup.fr-above{border-top:0;border-bottom:5px solid #553982;-webkit-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16)}.royal-theme.fr-popup .fr-input-line{padding:8px 0}.royal-theme.fr-popup .fr-input-line input[type=text],.royal-theme.fr-popup .fr-input-line textarea{margin:0 0 1px;border-bottom:solid 1px #bdbdbd;color:#553982}.royal-theme.fr-popup .fr-input-line input[type=text]:focus,.royal-theme.fr-popup .fr-input-line textarea:focus{border-bottom:solid 2px #553982}.royal-theme.fr-popup .fr-input-line input+label,.royal-theme.fr-popup .fr-input-line textarea+label{top:0;left:0;-webkit-transition:color .2s ease 0s;-moz-transition:color .2s ease 0s;-ms-transition:color .2s ease 0s;-o-transition:color .2s ease 0s;background:#fff}.royal-theme.fr-popup .fr-input-line input.fr-not-empty:focus+label,.royal-theme.fr-popup .fr-input-line textarea.fr-not-empty:focus+label{color:#553982}.royal-theme.fr-popup .fr-input-line input.fr-not-empty+label,.royal-theme.fr-popup .fr-input-line textarea.fr-not-empty+label{color:gray}.royal-theme.fr-popup .fr-buttons{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);padding:0 2px;line-height:0;border-bottom:0}.royal-theme.fr-popup .fr-layer{width:225px}@media (min-width:768px){.royal-theme.fr-popup .fr-layer{width:300px}}.royal-theme.fr-popup .fr-action-buttons button.fr-command{color:#553982;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.royal-theme.fr-popup .fr-action-buttons button.fr-command:hover,.royal-theme.fr-popup .fr-action-buttons button.fr-command:focus{background:#ebebeb;color:#553982}.royal-theme.fr-popup .fr-action-buttons button.fr-command:active{background:#d6d6d6;color:#553982}.royal-theme.fr-popup .fr-action-buttons button::-moz-focus-inner{border:0}.royal-theme.fr-popup .fr-checkbox span{border:solid 1px #553982;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-transition:background .2s ease 0s,border-color .2s ease 0s;-moz-transition:background .2s ease 0s,border-color .2s ease 0s;-ms-transition:background .2s ease 0s,border-color .2s ease 0s;-o-transition:background .2s ease 0s,border-color .2s ease 0s}.royal-theme.fr-popup .fr-checkbox input{margin:0;padding:0}.royal-theme.fr-popup .fr-checkbox input:checked+span{background:#553982;border-color:#553982}.royal-theme.fr-popup .fr-checkbox input:focus+span{border-color:#553982}.royal-theme.fr-popup.fr-rtl .fr-input-line input+label,.royal-theme.fr-popup.fr-rtl .fr-input-line textarea+label{left:auto;right:0}.royal-theme.fr-popup .fr-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid #553982;top:-9px;margin-left:-5px}.royal-theme.fr-popup.fr-above .fr-arrow{top:auto;bottom:-9px;border-bottom:0;border-top:5px solid #553982}.royal-theme.fr-toolbar{color:#553982;background:#fff;font-family:Arial,Helvetica,sans-serif;padding:0 2px;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);border:0;border-top:5px solid #553982}.royal-theme.fr-toolbar.fr-inline .fr-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid #553982;top:-9px;margin-left:-5px}.royal-theme.fr-toolbar.fr-inline.fr-above{-webkit-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);border-bottom:5px solid #553982;border-top:0}.royal-theme.fr-toolbar.fr-inline.fr-above .fr-arrow{top:auto;bottom:-9px;border-bottom:0;border-top-color:inherit;border-top-width:5px}.royal-theme.fr-toolbar.fr-top{top:0;border-radius:2px 2px 0 0;-moz-border-radius:2px 2px 0 0;-webkit-border-radius:2px 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.royal-theme.fr-toolbar.fr-bottom{bottom:0;border-radius:0 0 2px 2px;-moz-border-radius:0 0 2px 2px;-webkit-border-radius:0 0 2px 2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.royal-theme .fr-separator{background:#ebebeb}.royal-theme .fr-separator.fr-vs{height:34px;width:1px;margin:2px}.royal-theme .fr-separator.fr-hs{height:1px;width:calc(100% - (2 * 2px));margin:0 2px} \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/third_party/embedly.css b/Mobile.Search.Web/Scripts/froala-editor/css/third_party/embedly.css deleted file mode 100644 index 5c496f6..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/third_party/embedly.css +++ /dev/null @@ -1,64 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after { - clear: both; - display: block; - content: ""; - height: 0; -} -.hide-by-clipping { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - border: 0; -} -.fr-element .fr-embedly { - user-select: none; - -o-user-select: none; - -moz-user-select: none; - -khtml-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; - position: relative; -} -.fr-element .fr-embedly::after { - position: absolute; - content: ''; - z-index: 1; - top: 0; - left: 0; - right: 0; - bottom: 0; - cursor: pointer; - display: block; - background: rgba(0, 0, 0, 0); -} -.fr-element .fr-embedly > * { - -webkit-box-sizing: content-box; - -moz-box-sizing: content-box; - box-sizing: content-box; - max-width: 100%; - border: none; -} -.fr-box .fr-embedly-resizer { - position: absolute; - border: solid 1px #1e88e5; - display: none; - user-select: none; - -o-user-select: none; - -moz-user-select: none; - -khtml-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; -} -.fr-box .fr-embedly-resizer.fr-active { - display: block; -} diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/third_party/embedly.min.css b/Mobile.Search.Web/Scripts/froala-editor/css/third_party/embedly.min.css deleted file mode 100644 index 63d9b14..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/third_party/embedly.min.css +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.fr-element .fr-embedly{user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;position:relative}.fr-element .fr-embedly::after{position:absolute;content:'';z-index:1;top:0;left:0;right:0;bottom:0;cursor:pointer;display:block;background:rgba(0,0,0,0)}.fr-element .fr-embedly>*{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;max-width:100%;border:0}.fr-box .fr-embedly-resizer{position:absolute;border:solid 1px #1e88e5;display:none;user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none}.fr-box .fr-embedly-resizer.fr-active{display:block} \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/third_party/spell_checker.css b/Mobile.Search.Web/Scripts/froala-editor/css/third_party/spell_checker.css deleted file mode 100644 index 85e60f3..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/third_party/spell_checker.css +++ /dev/null @@ -1,72 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after { - clear: both; - display: block; - content: ""; - height: 0; -} -.hide-by-clipping { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - border: 0; -} -.examples-variante > a { - font-size: 14px; - font-family: Arial, Helvetica, sans-serif; -} -.sc-cm-holder > .sc-cm { - border-top: 5px solid #222222 !important; - padding: 0px !important; - line-height: 200% !important; - -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); - -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); -} -.sc-cm .sc-cm__item.examples-variante.sc-cm__item_active > a > i { - display: none !important; -} -.sc-cm .sc-cm__item.examples-variante > a > i { - display: none !important; -} -.sc-cm__item_dropdown .i-icon { - display: none !important; -} -.sc-cm__item_dropdown .i-icon::before { - display: none !important; -} -.sc-cm::before { - display: none !important; -} -div.sc-cm-holder.sc-cm_show > ul > li.sc-cm__item.sc-cm__item_dropdown.sc-cm__item_arrow > div > ul { - border-style: none !important; - padding: 0px !important; -} -.sc-cm__item_dropdown:hover > a, -.sc-cm a:hover { - background-color: #ebebeb !important; -} -.sc-cm__item_active > a, -.sc-cm__item_active > a:hover, -.sc-cm a:active, -.sc-cm a:focus { - background-color: #d6d6d6 !important; -} -.sc-cm__item > a { - line-height: 200% !important; -} -.sc-cm-holder > .sc-cm:before { - background-color: #ebebeb !important; -} -.sc-cm-holder { - display: none; -} diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/third_party/spell_checker.min.css b/Mobile.Search.Web/Scripts/froala-editor/css/third_party/spell_checker.min.css deleted file mode 100644 index bfaacde..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/css/third_party/spell_checker.min.css +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.examples-variante>a{font-size:14px;font-family:Arial,Helvetica,sans-serif}.sc-cm-holder>.sc-cm{border-top:5px solid #222!important;padding:0!important;line-height:200%!important;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.sc-cm .sc-cm__item.examples-variante.sc-cm__item_active>a>i{display:none!important}.sc-cm .sc-cm__item.examples-variante>a>i{display:none!important}.sc-cm__item_dropdown .i-icon{display:none!important}.sc-cm__item_dropdown .i-icon::before{display:none!important}.sc-cm::before{display:none!important}div.sc-cm-holder.sc-cm_show>ul>li.sc-cm__item.sc-cm__item_dropdown.sc-cm__item_arrow>div>ul{border-style:none!important;padding:0!important}.sc-cm__item_dropdown:hover>a,.sc-cm a:hover{background-color:#ebebeb!important}.sc-cm__item_active>a,.sc-cm__item_active>a:hover,.sc-cm a:active,.sc-cm a:focus{background-color:#d6d6d6!important}.sc-cm__item>a{line-height:200%!important}.sc-cm-holder>.sc-cm:before{background-color:#ebebeb!important}.sc-cm-holder{display:none} \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/index.html b/Mobile.Search.Web/Scripts/froala-editor/index.html deleted file mode 100644 index 0dd9332..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/index.html +++ /dev/null @@ -1,313 +0,0 @@ -<!DOCTYPE html> -<html> - -<head> - <meta charset="utf-8"> - <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0" /> - <title>Froala Editor Examples</title> - - <style> - body { - line-height: 1.5; - font-family: sans-serif; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - } - - section { - width: 90%; - margin: auto; - padding-top: 30px; - } - - #data-list { - -webkit-column-gap: 30px; - /* Chrome, Safari, Opera */ - -moz-column-gap: 30px; - /* Firefox */ - column-gap: 30px; - -webkit-column-count: 4; - /* Chrome, Safari, Opera */ - -moz-column-count: 4; - /* Firefox */ - column-count: 4; - } - - #data-list>div { - page-break-inside: avoid; - } - - #data-list>div:after { - content: ""; - display: block; - height: 20px; - } - - h1 { - font-size: 36px; - font-weight: 300; - text-align: center; - } - - h2 { - margin: 0; - color: #252525; - border-left: 3px solid #0098f7; - padding-left: 10px; - font-weight: 400; - } - - ul { - padding-left: 5px; - } - - ul li { - list-style: none; - font-size: 16px; - } - - ul li a { - text-decoration: none; - color: #515151; - } - - </style> -</head> - -<body> - <section> - <h1>Froala Editor Examples</h1> - - <br/> - - <div id="data-list"> - <div> - <h2>Popular</h2> - <ul> - <li><a href="./html/popular/full.html" title="Full Featured">Full Featured</a></li> - <li><a href="./html/popular/toolbar_inline.html" title="Inline Editor">Inline Editor</a></li> - <li><a href="./html/popular/two_instances.html" title="Multiple Editor Instances">Multiple Editor Instances</a></li> - <li><a href="./html/popular/textarea.html" title="Textarea Editor">Textarea Editor</a></li> - <li><a href="./html/popular/full_page.html" title="Full Page">Full Page</a></li> - <li><a href="./html/popular/iframe.html" title="Iframe">Iframe</a></li> - <li><a href="./html/popular/disable_edit.html" title="Non-editable Zones">Non-editable Zones</a></li> - <li><a href="./html/popular/z_index.html" title="Z-index">Z-index</a></li> - <li><a href="./html/popular/init_on_click.html" title="Init on Click">Init on Click</a></li> - <li><a href="./html/popular/toolbar_buttons.html" title="Change Toolbar Buttons">Change Toolbar Buttons</a></li> - <li><a href="./html/popular/disable_paragraphs.html" title="Disable Paragraphs">Disable Paragraphs</a></li> - </ul> - </div> - - <div> - <h2>3rd Party Integration</h2> - <ul> - <li><a href="./html/3rd-party/aviary/index.html" title="Bootstrap Grid">Aviary Integration</a></li> - <li><a href="./html/3rd-party/bootstrap/grid.html" title="Bootstrap Grid">Bootstrap Grid</a></li> - <li><a href="./html/3rd-party/bootstrap/lists.html" title="Bootstrap List Group">Bootstrap List Group</a></li> - <li><a href="./html/3rd-party/bootstrap/modal.html" title="Bootstrap Modal">Bootstrap Modal</a></li> - <li><a href="./html/3rd-party/jquery/mobile.html" title="jQuery Mobile">jQuery Mobile</a></li> - <li><a href="./html/3rd-party/jquery/ui_modal.html" title="jQuery UI Modal">jQuery UI Modal</a></li> - <li><a href="./html/3rd-party/at.js.html" title="At.JS">At.JS</a></li> - <li><a href="./html/3rd-party/code-mirror.html" title="Code Mirror">Code Mirror</a></li> - <li><a href="./html/3rd-party/require_js/index.html" title="Require JS">Require JS</a></li> - <li><a href="./html/3rd-party/spell-checker/spell-checker.html" title="Spell Checker">Spell Checker</a></li> - </ul> - </div> - - <div> - <h2>API</h2> - <ul> - <li><a href="./html/api/init_destroy.html" title="Init / Destroy Editor">Init / Destroy Editor</a></li> - <li><a href="./html/api/get_html.html" title="Get HTML">Get Edited HTML</a></li> - <li><a href="./html/api/insert_html.html" title="Insert HTML">Insert HTML</a></li> - <li><a href="./html/api/selection.html" title="Save / Restore Selection">Save / Restore Selection</a></li> - <li><a href="./html/api/live_content_preview.html" title="Live Content Preview">Live Content Preview</a></li> - <li><a href="./html/api/live_code_preview.html" title="Live Code Preview">Live Code Preview</a></li> - </ul> - </div> - - <div> - <h2>International</h2> - <ul> - <li><a href="./html/international/direction_rtl.html" title="Editor Direction RTL">Editor Direction RTL</a></li> - <li><a href="./html/international/language.html" title="Change Language">Change Language</a></li> - <li><a href="./html/international/rtl_ltr_buttons.html" title="RTL / LTR Buttons">RTL / LTR Buttons</a></li> - </ul> - </div> - - <div> - <h2>Buttons</h2> - <ul> - <li><a href="./html/buttons/custom_buttons.html" title="Custom Buttons">Custom Buttons</a></li> - <li><a href="./html/buttons/custom_dropdown.html" title="Custom Dropdown">Custom Dropdown</a></li> - <li><a href="./html/buttons/external_button.html" title="External Button">External Button</a></li> - <li><a href="./html/buttons/subscript_superscript.html" title="Subscript and Superscript">Subscript and Superscript</a></li> - </ul> - </div> - - <div> - <h2>Events</h2> - <ul> - <li><a href="./html/events/blur_focus.html" title="Blur / Focus">Blur / Focus</a></li> - <li><a href="./html/events/content_changed.html" title="Content Changed">Content Changed</a></li> - <li><a href="./html/events/drop.html" title="Drop">Drop</a></li> - <li><a href="./html/events/image_removed.html" title="Image Removed">Image Removed</a></li> - <li><a href="./html/events/initialized_destroy.html" title="Initialized / Destroy">Initialized / Destroy</a></li> - </ul> - </div> - - <div> - <h2>Images</h2> - <ul> - <li><a href="./html/image/custom_button.html" title="Custom Image Button">Custom Image Button</a></li> - <li><a href="./html/image/image_styles.html" title="Image Styles">Image Styles</a></li> - <li><a href="./html/image/default_width.html" title="Default Width">Default Width</a></li> - <li><a href="./html/image/insert_base64.html" title="Insert as Base64">Insert as Base64</a></li> - </ul> - </div> - - <div> - <h2>Init inside iframe</h2> - <ul> - <li><a href="./html/init_inside_iframe/basic.html" title="Basic Editor inside iframe">Basic Editor</a></li> - <li><a href="./html/init_inside_iframe/inline.html" title="Inline Editor inside iframe">Inline Editor</a></li> - </ul> - </div> - - <div> - <h2>Init on click</h2> - <ul> - <li><a href="./html/init_on_click/basic.html" title="Basic Editor">Basic Editor</a></li> - <li><a href="./html/init_on_click/inline.html" title="Inline Editor">Inline Editor</a></li> - <li><a href="./html/init_on_click/two_editors.html" title="2 Editors">2 Editors</a></li> - </ul> - </div> - - <div> - <h2>Initialization</h2> - <ul> - <li><a href="./html/initialization/init_on_click.html" title="Init on click">Init on Click</a></li> - <li><a href="./html/initialization/init_on_button.html" title="Init on Button">Init on Button</a></li> - <li><a href="./html/initialization/init_on_link.html" title="Init on Link">Init on Link</a></li> - <li><a href="./html/initialization/init_on_image.html" title="Init on Image">Init on Image</a></li> - <li><a href="./html/initialization/init_on_h1.html" title="Init on H1">Init on H1</a></li> - <li><a href="./html/initialization/initialized_event.html" title="Initialized Event">Initialized Event</a></li> - <li><a href="./html/initialization/edit_in_popup.html" title="Edit in Popup">Edit in Popup</a></li> - </ul> - </div> - - <div> - <h2>Links</h2> - <ul> - <li><a href="./html/link/link_styles.html" title="Link Styles">Link Styles</a></li> - <li><a href="./html/link/predefined_links.html" title="Predefined Links">Predefined Links</a></li> - <li><a href="./html/link/custom_validation.html" title="Custom Link Validation">Custom Link Validation</a></li> - </ul> - </div> - - <div> - <h2>Plugins</h2> - <ul> - <li><a href="./html/plugins/line_breaker.html" title="Line Breaker">Line Breaker</a></li> - <li><a href="./html/plugins/quick_insert.html" title="Quick Insert">Quick Insert</a></li> - <li><a href="./html/plugins/char_counter.html" title="Char Counter">Char Counter</a></li> - <li><a href="./html/plugins/full_screen.html" title="Full Screen">Full Screen</a></li> - </ul> - </div> - - <div> - <h2>Popups</h2> - <ul> - <li><a href="./html/popups/colors.html" title="Custom Color Picker">Custom Color Picker</a></li> - <li><a href="./html/popups/emoticons.html" title="Custom Emoticons">Custom Emoticons</a></li> - <li><a href="./html/popups/custom.html" title="Custom Popup">Custom Popup</a></li> - </ul> - </div> - - <div> - <h2>Styling</h2> - <ul> - <li><a href="./html/styling/font_family.html" title="Font Family">Font Family</a></li> - <li><a href="./html/styling/inline.html" title="Inline Styling">Inline Styling</a></li> - <li><a href="./html/styling/paragraph.html" title="Paragraph Styling">Paragraph Styling</a></li> - <li><a href="./html/styling/placeholder.html" title="Placeholder">Placeholder</a></li> - <li><a href="./html/styling/height.html" title="Predefined Height">Predefined Height</a></li> - <li><a href="./html/styling/adjustable_height.html" title="Auto-Adjustable Height">Auto-Adjustable Height</a></li> - <li><a href="./html/styling/width.html" title="Predefined Width">Predefined Width</a></li> - </ul> - </div> - - <div> - <h2>Themes</h2> - <ul> - <li><a href="./html/themes/dark.html" title="Dark Theme">Dark Theme</a></li> - <li><a href="./html/themes/gray.html" title="Gray Theme">Gray Theme</a></li> - <li><a href="./html/themes/red.html" title="Red Theme">Red Theme</a></li> - <li><a href="./html/themes/royal.html" title="Royal Theme">Royal Theme</a></li> - </ul> - </div> - - <div> - <h2>Table</h2> - <ul> - <li><a href="./html/table/nested.html" title="Nested Tables">Nested Tables</a></li> - <li><a href="./html/table/resize.html" title="Resize Table">Resize Table</a></li> - <li><a href="./html/table/insert_helper.html" title="Table Insert Helper">Table Insert Helper</a></li> - <li><a href="./html/table/style.html" title="Table Style">Table Style</a></li> - <li><a href="./html/table/cell_style.html" title="Table Cell Style">Table Cell Style</a></li> - </ul> - </div> - - <div> - <h2>Toolbar</h2> - <ul> - <li><a href="./html/toolbar/inline.html" title="Inline Toolbar">Inline Toolbar</a></li> - <li><a href="./html/toolbar/sticky.html" title="Sticky Toolbar">Sticky Toolbar</a></li> - <li><a href="./html/toolbar/buttons.html" title="Change Toolbar Buttons">Change Toolbar Buttons</a></li> - <li><a href="./html/toolbar/external.html" title="External Shared Toolbar">External Shared Toolbar</a></li> - <li><a href="./html/toolbar/external_inline.html" title="External Shared Inline Toolbar">External Shared Inline Toolbar</a></li> - <li><a href="./html/toolbar/bottom.html" title="Toolbar Bottom">Toolbar Bottom</a></li> - <li><a href="./html/toolbar/offset.html" title="Toolbar with Offset">Toolbar with Offset</a></li> - <li><a href="./html/toolbar/bottom_offset.html" title="Toolbar Bottom">Toolbar Bottom with Offset</a></li> - <li><a href="./html/toolbar/show_selection.html" title="Show Selection Details">Show Selection Details</a></li> - <li><a href="./html/toolbar/inline_selection.html" title="Inline Toolbar without Selection">Inline Toolbar without Selection</a></li> - </ul> - </div> - - <div> - <h2>Paragraph Modes</h2> - <ul> - <li><a href="./html/paragraph_modes/enter_br.html" title="Enter BR">Enter BR</a></li> - <li><a href="./html/paragraph_modes/enter_div.html" title="Enter DIV">Enter DIV</a></li> - <li><a href="./html/paragraph_modes/enter_p.html" title="Enter P">Enter P</a></li> - </ul> - </div> - - <div> - <h2>Misc</h2> - <ul> - <li><a href="./html/misc/scrollable_container.html" title="Scrollable Container">Scrollable Container</a></li> - <li><a href="./html/misc/scrollable_container_inline.html" title="Scrollable Container Inline Editor">Scrollable Container Inline</a></li> - </ul> - </div> - - <div> - <h2>Typing</h2> - <ul> - <li><a href="./html/typing/tab.html" title="TAB Key">TAB Key</a></li> - <li><a href="./html/typing/shortcuts.html" title="Shortcuts">Shortcuts</a></li> - <li><a href="./html/typing/keep_format.html" title="Keep Format on Delete">Keep Format on Delete</a></li> - </ul> - </div> - - <div> - <h2>Paste</h2> - <ul> - <li><a href="./html/paste/plain.html" title="Plain Paste">Plain Paste</a></li> - <li><a href="./html/paste/attrs.html" title="Allowed / Denied Attributes">Allowed / Denied Attributes</a></li> - <li><a href="./html/paste/tags.html" title="Allowed / Denied Tags">Allowed / Denied Tags</a></li> - </ul> - </div> - </div> - </section> -</body> diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/languages/ar.js b/Mobile.Search.Web/Scripts/froala-editor/js/languages/ar.js deleted file mode 100644 index 5f96125..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/languages/ar.js +++ /dev/null @@ -1,318 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = function( root, jQuery ) { - if ( jQuery === undefined ) { - // require('jQuery') returns a factory that requires window to - // build a jQuery instance, we normalize how we use modules - // that require this pattern but the window provided is a noop - // if it's defined (how jquery works) - if ( typeof window !== 'undefined' ) { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - return factory(jQuery); - }; - } else { - // Browser globals - factory(window.jQuery); - } -}(function ($) { -/** - * Arabic - */ - -$.FE.LANGUAGE['ar'] = { - translation: { - // Place holder - "Type something": "\u0627\u0643\u062a\u0628 \u0634\u064a\u0626\u0627", - - // Basic formatting - "Bold": "\u063a\u0627\u0645\u0642", - "Italic": "\u0645\u0627\u0626\u0644", - "Underline": "\u062a\u0633\u0637\u064a\u0631", - "Strikethrough": "\u064a\u062a\u0648\u0633\u0637 \u062e\u0637", - - // Main buttons - "Insert": "\u0625\u062f\u0631\u0627\u062c", - "Delete": "\u062d\u0630\u0641", - "Cancel": "\u0625\u0644\u063a\u0627\u0621", - "OK": "\u0645\u0648\u0627\u0641\u0642", - "Back": "\u0638\u0647\u0631", - "Remove": "\u0625\u0632\u0627\u0644\u0629", - "More": "\u0623\u0643\u062b\u0631", - "Update": "\u0627\u0644\u062a\u062d\u062f\u064a\u062b", - "Style": "\u0623\u0633\u0644\u0648\u0628", - - // Font - "Font Family": "\u0639\u0627\u0626\u0644\u0629 \u0627\u0644\u062e\u0637", - "Font Size": "\u062d\u062c\u0645 \u0627\u0644\u062e\u0637", - - // Colors - "Colors": "\u0627\u0644\u0623\u0644\u0648\u0627\u0646", - "Background": "\u0627\u0644\u062e\u0644\u0641\u064a\u0629", - "Text": "\u0627\u0644\u0646\u0635", - "HEX Color": "عرافة اللون", - - // Paragraphs - "Paragraph Format": "\u062a\u0646\u0633\u064a\u0642 \u0627\u0644\u0641\u0642\u0631\u0629", - "Normal": "\u0637\u0628\u064a\u0639\u064a", - "Code": "\u0643\u0648\u062f", - "Heading 1": "\u0627\u0644\u0639\u0646\u0627\u0648\u064a\u0646 1", - "Heading 2": "\u0627\u0644\u0639\u0646\u0627\u0648\u064a\u0646 2", - "Heading 3": "\u0627\u0644\u0639\u0646\u0627\u0648\u064a\u0646 3", - "Heading 4": "\u0627\u0644\u0639\u0646\u0627\u0648\u064a\u0646 4", - - // Style - "Paragraph Style": "\u0646\u0645\u0637 \u0627\u0644\u0641\u0642\u0631\u0629", - "Inline Style": "\u0627\u0644\u0646\u0645\u0637 \u0627\u0644\u0645\u0636\u0645\u0646", - - // Alignment - "Align": "\u0645\u062d\u0627\u0630\u0627\u0629", - "Align Left": "\u0645\u062d\u0627\u0630\u0627\u0629 \u0627\u0644\u0646\u0635 \u0644\u0644\u064a\u0633\u0627\u0631", - "Align Center": "\u062a\u0648\u0633\u064a\u0637", - "Align Right": "\u0645\u062d\u0627\u0630\u0627\u0629 \u0627\u0644\u0646\u0635 \u0644\u0644\u064a\u0645\u064a\u0646", - "Align Justify": "\u0636\u0628\u0637", - "None": "\u0644\u0627 \u0634\u064a\u0621", - - // Lists - "Ordered List": "\u0642\u0627\u0626\u0645\u0629 \u0645\u0631\u062a\u0628\u0629", - "Unordered List": "\u0642\u0627\u0626\u0645\u0629 \u063a\u064a\u0631 \u0645\u0631\u062a\u0628\u0629", - - // Indent - "Decrease Indent": "\u0627\u0646\u062e\u0641\u0627\u0636 \u0627\u0644\u0645\u0633\u0627\u0641\u0629 \u0627\u0644\u0628\u0627\u062f\u0626\u0629", - "Increase Indent": "\u0632\u064a\u0627\u062f\u0629 \u0627\u0644\u0645\u0633\u0627\u0641\u0629 \u0627\u0644\u0628\u0627\u062f\u0626\u0629", - - // Links - "Insert Link": "\u0625\u062f\u0631\u0627\u062c \u0631\u0627\u0628\u0637", - "Open in new tab": "\u0641\u062a\u062d \u0641\u064a \u0639\u0644\u0627\u0645\u0629 \u062a\u0628\u0648\u064a\u0628 \u062c\u062f\u064a\u062f\u0629", - "Open Link": "\u0627\u0641\u062a\u062d \u0627\u0644\u0631\u0627\u0628\u0637", - "Edit Link": "\u0627\u0631\u062a\u0628\u0627\u0637 \u062a\u062d\u0631\u064a\u0631", - "Unlink": "\u062d\u0630\u0641 \u0627\u0644\u0631\u0627\u0628\u0637", - "Choose Link": "\u0627\u062e\u062a\u064a\u0627\u0631 \u0635\u0644\u0629", - - // Images - "Insert Image": "\u0625\u062f\u0631\u0627\u062c \u0635\u0648\u0631\u0629", - "Upload Image": "\u062a\u062d\u0645\u064a\u0644 \u0635\u0648\u0631\u0629", - "By URL": "\u0628\u0648\u0627\u0633\u0637\u0629 URL", - "Browse": "\u062a\u0635\u0641\u062d", - "Drop image": "\u0625\u0633\u0642\u0627\u0637 \u0635\u0648\u0631\u0629", - "or click": "\u0623\u0648 \u0627\u0646\u0642\u0631 \u0641\u0648\u0642", - "Manage Images": "\u0625\u062f\u0627\u0631\u0629 \u0627\u0644\u0635\u0648\u0631", - "Loading": "\u062a\u062d\u0645\u064a\u0644", - "Deleting": "\u062d\u0630\u0641", - "Tags": "\u0627\u0644\u0643\u0644\u0645\u0627\u062a", - "Are you sure? Image will be deleted.": "\u0647\u0644 \u0623\u0646\u062a \u0645\u062a\u0623\u0643\u062f\u061f \u0633\u064a\u062a\u0645 \u062d\u0630\u0641 \u0627\u0644\u0635\u0648\u0631\u0629\u002e", - "Replace": "\u0627\u0633\u062a\u0628\u062f\u0627\u0644", - "Uploading": "\u062a\u062d\u0645\u064a\u0644", - "Loading image": "\u0635\u0648\u0631\u0629 \u062a\u062d\u0645\u064a\u0644", - "Display": "\u0639\u0631\u0636", - "Inline": "\u0641\u064a \u062e\u0637", - "Break Text": "\u0646\u0635 \u0627\u0633\u062a\u0631\u0627\u062d\u0629", - "Alternate Text": "\u0646\u0635 \u0628\u062f\u064a\u0644", - "Change Size": "\u062a\u063a\u064a\u064a\u0631 \u062d\u062c\u0645", - "Width": "\u0639\u0631\u0636", - "Height": "\u0627\u0631\u062a\u0641\u0627\u0639", - "Something went wrong. Please try again.": ".\u062d\u062f\u062b \u062e\u0637\u0623 \u0645\u0627. \u062d\u0627\u0648\u0644 \u0645\u0631\u0629 \u0627\u062e\u0631\u0649", - "Image Caption": "تعليق على الصورة", - "Advanced Edit": "تعديل متقدم", - - // Video - "Insert Video": "\u0625\u062f\u0631\u0627\u062c \u0641\u064a\u062f\u064a\u0648", - "Embedded Code": "\u0627\u0644\u062a\u0639\u0644\u064a\u0645\u0627\u062a \u0627\u0644\u0628\u0631\u0645\u062c\u064a\u0629 \u0627\u0644\u0645\u0636\u0645\u0646\u0629", - "Paste in a video URL": "لصق في عنوان ورل للفيديو", - "Drop video": "انخفاض الفيديو", - "Your browser does not support HTML5 video.": "متصفحك لا يدعم فيديو HTML5.", - "Upload Video": "رفع فيديو", - - // Tables - "Insert Table": "\u0625\u062f\u0631\u0627\u062c \u062c\u062f\u0648\u0644", - "Table Header": "\u0631\u0623\u0633 \u0627\u0644\u062c\u062f\u0648\u0644", - "Remove Table": "\u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u062c\u062f\u0648\u0644", - "Table Style": "\u0646\u0645\u0637 \u0627\u0644\u062c\u062f\u0648\u0644", - "Horizontal Align": "\u0645\u062d\u0627\u0630\u0627\u0629 \u0623\u0641\u0642\u064a\u0629", - "Row": "\u0635\u0641", - "Insert row above": "\u0625\u062f\u0631\u0627\u062c \u0635\u0641 \u0644\u0644\u0623\u0639\u0644\u0649", - "Insert row below": "\u0625\u062f\u0631\u0627\u062c \u0635\u0641 \u0644\u0644\u0623\u0633\u0641\u0644", - "Delete row": "\u062d\u0630\u0641 \u0635\u0641", - "Column": "\u0639\u0645\u0648\u062f", - "Insert column before": "\u0625\u062f\u0631\u0627\u062c \u0639\u0645\u0648\u062f \u0644\u0644\u064a\u0633\u0627\u0631", - "Insert column after": "\u0625\u062f\u0631\u0627\u062c \u0639\u0645\u0648\u062f \u0644\u0644\u064a\u0645\u064a\u0646", - "Delete column": "\u062d\u0630\u0641 \u0639\u0645\u0648\u062f", - "Cell": "\u062e\u0644\u064a\u0629", - "Merge cells": "\u062f\u0645\u062c \u062e\u0644\u0627\u064a\u0627", - "Horizontal split": "\u0627\u0646\u0642\u0633\u0627\u0645 \u0623\u0641\u0642\u064a", - "Vertical split": "\u0627\u0644\u0627\u0646\u0642\u0633\u0627\u0645 \u0627\u0644\u0639\u0645\u0648\u062f\u064a", - "Cell Background": "\u062e\u0644\u0641\u064a\u0629 \u0627\u0644\u062e\u0644\u064a\u0629", - "Vertical Align": "\u0645\u062d\u0627\u0630\u0627\u0629 \u0639\u0645\u0648\u062f\u064a\u0629", - "Top": "\u0623\u0639\u0644\u0649", - "Middle": "\u0648\u0633\u0637", - "Bottom": "\u0623\u0633\u0641\u0644", - "Align Top": "\u0645\u062d\u0627\u0630\u0627\u0629 \u0623\u0639\u0644\u0649", - "Align Middle": "\u0645\u062d\u0627\u0630\u0627\u0629 \u0648\u0633\u0637", - "Align Bottom": "\u0645\u062d\u0627\u0630\u0627\u0629 \u0627\u0644\u0623\u0633\u0641\u0644", - "Cell Style": "\u0646\u0645\u0637 \u0627\u0644\u062e\u0644\u064a\u0629", - - // Files - "Upload File": "\u062a\u062d\u0645\u064a\u0644 \u0627\u0644\u0645\u0644\u0641", - "Drop file": "\u0627\u0646\u062e\u0641\u0627\u0636 \u0627\u0644\u0645\u0644\u0641", - - // Emoticons - "Emoticons": "\u0627\u0644\u0645\u0634\u0627\u0639\u0631", - "Grinning face": "\u064a\u0643\u0634\u0631 \u0648\u062c\u0647\u0647", - "Grinning face with smiling eyes": "\u0645\u0628\u062a\u0633\u0645\u0627 \u0648\u062c\u0647 \u0645\u0639 \u064a\u0628\u062a\u0633\u0645 \u0627\u0644\u0639\u064a\u0646", - "Face with tears of joy": "\u0648\u062c\u0647 \u0645\u0639 \u062f\u0645\u0648\u0639 \u0627\u0644\u0641\u0631\u062d", - "Smiling face with open mouth": "\u0627\u0644\u0648\u062c\u0647 \u0627\u0644\u0645\u0628\u062a\u0633\u0645 \u0645\u0639 \u0641\u062a\u062d \u0627\u0644\u0641\u0645", - "Smiling face with open mouth and smiling eyes": "\u0627\u0644\u0648\u062c\u0647 \u0627\u0644\u0645\u0628\u062a\u0633\u0645 \u0645\u0639 \u0641\u062a\u062d \u0627\u0644\u0641\u0645 \u0648\u0627\u0644\u0639\u064a\u0646\u064a\u0646 \u064a\u0628\u062a\u0633\u0645", - "Smiling face with open mouth and cold sweat": "\u0627\u0644\u0648\u062c\u0647 \u0627\u0644\u0645\u0628\u062a\u0633\u0645 \u0645\u0639 \u0641\u062a\u062d \u0627\u0644\u0641\u0645 \u0648\u0627\u0644\u0639\u0631\u0642 \u0627\u0644\u0628\u0627\u0631\u062f", - "Smiling face with open mouth and tightly-closed eyes": "\u0627\u0644\u0648\u062c\u0647 \u0627\u0644\u0645\u0628\u062a\u0633\u0645 \u0645\u0639 \u0641\u062a\u062d \u0627\u0644\u0641\u0645 \u0648\u0627\u0644\u0639\u064a\u0646\u064a\u0646 \u0645\u063a\u0644\u0642\u0629 \u0628\u0625\u062d\u0643\u0627\u0645", - "Smiling face with halo": "\u0627\u0644\u0648\u062c\u0647 \u0627\u0644\u0645\u0628\u062a\u0633\u0645 \u0645\u0639 \u0647\u0627\u0644\u0629", - "Smiling face with horns": "\u0627\u0644\u0648\u062c\u0647 \u0627\u0644\u0645\u0628\u062a\u0633\u0645 \u0628\u0642\u0631\u0648\u0646", - "Winking face": "\u0627\u0644\u063a\u0645\u0632 \u0648\u062c\u0647", - "Smiling face with smiling eyes": "\u064a\u0628\u062a\u0633\u0645 \u0648\u062c\u0647 \u0645\u0639 \u0639\u064a\u0648\u0646 \u062a\u0628\u062a\u0633\u0645", - "Face savoring delicious food": "\u064a\u0648\u0627\u062c\u0647 \u0644\u0630\u064a\u0630 \u0627\u0644\u0645\u0630\u0627\u0642 \u0644\u0630\u064a\u0630 \u0627\u0644\u0637\u0639\u0627\u0645", - "Relieved face": "\u0648\u062c\u0647 \u0628\u0627\u0644\u0627\u0631\u062a\u064a\u0627\u062d", - "Smiling face with heart-shaped eyes": "\u0627\u0644\u0648\u062c\u0647 \u0627\u0644\u0645\u0628\u062a\u0633\u0645 \u0628\u0639\u064a\u0646\u064a\u0646 \u0639\u0644\u0649 \u0634\u0643\u0644 \u0642\u0644\u0628", - "Smiling face with sunglasses": "\u0627\u0644\u0648\u062c\u0647 \u0627\u0644\u0645\u0628\u062a\u0633\u0645 \u0645\u0639 \u0627\u0644\u0646\u0638\u0627\u0631\u0627\u062a \u0627\u0644\u0634\u0645\u0633\u064a\u0629", - "Smirking face": "\u0633\u0645\u064a\u0631\u0643\u064a\u0646\u062c \u0627\u0644\u0648\u062c\u0647", - "Neutral face": "\u0645\u062d\u0627\u064a\u062f \u0627\u0644\u0648\u062c\u0647", - "Expressionless face": "\u0648\u062c\u0647 \u0627\u0644\u062a\u0639\u0627\u0628\u064a\u0631", - "Unamused face": "\u0644\u0627 \u0645\u0633\u0644\u064a\u0627 \u0627\u0644\u0648\u062c\u0647", - "Face with cold sweat": "\u0648\u062c\u0647 \u0645\u0639 \u0639\u0631\u0642 \u0628\u0627\u0631\u062f", - "Pensive face": "\u0648\u062c\u0647 \u0645\u062a\u0623\u0645\u0644", - "Confused face": "\u0648\u062c\u0647 \u0627\u0644\u062e\u0644\u0637", - "Confounded face": "\u0648\u062c\u0647 \u0645\u0631\u062a\u0628\u0643", - "Kissing face": "\u062a\u0642\u0628\u064a\u0644 \u0627\u0644\u0648\u062c\u0647", - "Face throwing a kiss": "\u0645\u0648\u0627\u062c\u0647\u0629 \u0631\u0645\u064a \u0642\u0628\u0644\u0629", - "Kissing face with smiling eyes": "\u062a\u0642\u0628\u064a\u0644 \u0648\u062c\u0647 \u0645\u0639 \u0639\u064a\u0648\u0646 \u062a\u0628\u062a\u0633\u0645", - "Kissing face with closed eyes": "\u062a\u0642\u0628\u064a\u0644 \u0648\u062c\u0647 \u0645\u0639 \u0639\u064a\u0648\u0646 \u0645\u063a\u0644\u0642\u0629", - "Face with stuck out tongue": "\u0627\u0644\u0648\u062c\u0647 \u0645\u0639 \u062a\u0645\u0633\u0643 \u0628\u0647\u0627 \u0627\u0644\u0644\u0633\u0627\u0646", - "Face with stuck out tongue and winking eye": "\u0627\u0644\u0648\u062c\u0647 \u0645\u0639 \u062a\u0645\u0633\u0643 \u0628\u0647\u0627 \u0627\u0644\u0644\u0633\u0627\u0646 \u0648\u0627\u0644\u0639\u064a\u0646 \u0627\u0644\u062a\u063a\u0627\u0636\u064a", - "Face with stuck out tongue and tightly-closed eyes": "\u0627\u0644\u0648\u062c\u0647 \u0645\u0639 \u062a\u0645\u0633\u0643 \u0628\u0647\u0627 \u0627\u0644\u0644\u0633\u0627\u0646 \u0648\u0627\u0644\u0639\u064a\u0648\u0646 \u0645\u063a\u0644\u0642\u0629 \u0628\u0623\u062d\u0643\u0627\u0645\u002d", - "Disappointed face": "\u0648\u062c\u0647\u0627 \u062e\u064a\u0628\u0629 \u0623\u0645\u0644", - "Worried face": "\u0648\u062c\u0647\u0627 \u0627\u0644\u0642\u0644\u0642\u0648\u0646", - "Angry face": "\u0648\u062c\u0647 \u063a\u0627\u0636\u0628", - "Pouting face": "\u0627\u0644\u0639\u0628\u0648\u0633 \u0648\u062c\u0647", - "Crying face": "\u0627\u0644\u0628\u0643\u0627\u0621 \u0627\u0644\u0648\u062c\u0647", - "Persevering face": "\u0627\u0644\u0645\u062b\u0627\u0628\u0631\u0629 \u0648\u062c\u0647\u0647", - "Face with look of triumph": "\u0648\u0627\u062c\u0647 \u0645\u0639 \u0646\u0638\u0631\u0629 \u0627\u0646\u062a\u0635\u0627\u0631", - "Disappointed but relieved face": "\u0628\u062e\u064a\u0628\u0629 \u0623\u0645\u0644 \u0648\u0644\u0643\u0646 \u064a\u0639\u0641\u0649 \u0648\u062c\u0647", - "Frowning face with open mouth": "\u0645\u0642\u0637\u0628 \u0627\u0644\u0648\u062c\u0647 \u0645\u0639 \u0641\u062a\u062d \u0627\u0644\u0641\u0645", - "Anguished face": "\u0627\u0644\u0648\u062c\u0647 \u0627\u0644\u0645\u0624\u0644\u0645", - "Fearful face": "\u0627\u0644\u0648\u062c\u0647 \u0627\u0644\u0645\u062e\u064a\u0641", - "Weary face": "\u0648\u062c\u0647\u0627 \u0628\u0627\u0644\u0636\u062c\u0631", - "Sleepy face": "\u0648\u062c\u0647 \u0646\u0639\u0633\u0627\u0646", - "Tired face": "\u0648\u062c\u0647 \u0645\u062a\u0639\u0628", - "Grimacing face": "\u0648\u062e\u0631\u062c \u0633\u064a\u0633 \u0627\u0644\u0648\u062c\u0647", - "Loudly crying face": "\u0627\u0644\u0628\u0643\u0627\u0621 \u0628\u0635\u0648\u062a \u0639\u0627\u0644 \u0648\u062c\u0647\u0647", - "Face with open mouth": "\u0648\u0627\u062c\u0647 \u0645\u0639 \u0641\u062a\u062d \u0627\u0644\u0641\u0645", - "Hushed face": "\u0648\u062c\u0647\u0627 \u0627\u0644\u062a\u0643\u062a\u0645", - "Face with open mouth and cold sweat": "\u0648\u0627\u062c\u0647 \u0645\u0639 \u0641\u062a\u062d \u0627\u0644\u0641\u0645 \u0648\u0627\u0644\u0639\u0631\u0642 \u0627\u0644\u0628\u0627\u0631\u062f", - "Face screaming in fear": "\u0648\u0627\u062c\u0647 \u064a\u0635\u0631\u062e \u0641\u064a \u062e\u0648\u0641", - "Astonished face": "\u0648\u062c\u0647\u0627 \u062f\u0647\u0634", - "Flushed face": "\u0627\u062d\u0645\u0631\u0627\u0631 \u0627\u0644\u0648\u062c\u0647", - "Sleeping face": "\u0627\u0644\u0646\u0648\u0645 \u0627\u0644\u0648\u062c\u0647", - "Dizzy face": "\u0648\u062c\u0647\u0627 \u0628\u0627\u0644\u062f\u0648\u0627\u0631", - "Face without mouth": "\u0648\u0627\u062c\u0647 \u062f\u0648\u0646 \u0627\u0644\u0641\u0645", - "Face with medical mask": "\u0648\u0627\u062c\u0647 \u0645\u0639 \u0642\u0646\u0627\u0639 \u0627\u0644\u0637\u0628\u064a\u0629", - - // Line breaker - "Break": "\u0627\u0644\u0627\u0646\u0642\u0633\u0627\u0645", - - // Math - "Subscript": "\u0645\u0646\u062e\u0641\u0636", - "Superscript": "\u062d\u0631\u0641 \u0641\u0648\u0642\u064a", - - // Full screen - "Fullscreen": "\u0643\u0627\u0645\u0644 \u0627\u0644\u0634\u0627\u0634\u0629", - - // Horizontal line - "Insert Horizontal Line": "\u0625\u062f\u0631\u0627\u062c \u062e\u0637 \u0623\u0641\u0642\u064a", - - // Clear formatting - "Clear Formatting": "\u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u062a\u0646\u0633\u064a\u0642", - - // Undo, redo - "Undo": "\u062a\u0631\u0627\u062c\u0639", - "Redo": "\u0625\u0639\u0627\u062f\u0629", - - // Select all - "Select All": "\u062a\u062d\u062f\u064a\u062f \u0627\u0644\u0643\u0644", - - // Code view - "Code View": "\u0639\u0631\u0636 \u0627\u0644\u062a\u0639\u0644\u064a\u0645\u0627\u062a \u0627\u0644\u0628\u0631\u0645\u062c\u064a\u0629", - - // Quote - "Quote": "\u0627\u0642\u062a\u0628\u0633", - "Increase": "\u0632\u064a\u0627\u062f\u0629", - "Decrease": "\u0627\u0646\u062e\u0641\u0627\u0636", - - // Quick Insert - "Quick Insert": "\u0625\u062f\u0631\u0627\u062c \u0633\u0631\u064a\u0639", - - // Spcial Characters - "Special Characters": "أحرف خاصة", - "Latin": "لاتينية", - "Greek": "الإغريقي", - "Cyrillic": "السيريلية", - "Punctuation": "علامات ترقيم", - "Currency": "دقة", - "Arrows": "السهام", - "Math": "الرياضيات", - "Misc": "متفرقات", - - // Print. - "Print": "طباعة", - - // Spell Checker. - "Spell Checker": "مدقق املائي", - - // Help - "Help": "مساعدة", - "Shortcuts": "اختصارات", - "Inline Editor": "محرر مضمنة", - "Show the editor": "عرض المحرر", - "Common actions": "الإجراءات المشتركة", - "Copy": "نسخ", - "Cut": "يقطع", - "Paste": "معجون", - "Basic Formatting": "التنسيق الأساسي", - "Increase quote level": "زيادة مستوى الاقتباس", - "Decrease quote level": "انخفاض مستوى الاقتباس", - "Image / Video": "صورة / فيديو", - "Resize larger": "تغيير حجم أكبر", - "Resize smaller": "تغيير حجم أصغر", - "Table": "الطاولة", - "Select table cell": "حدد خلية الجدول", - "Extend selection one cell": "توسيع اختيار خلية واحدة", - "Extend selection one row": "تمديد اختيار صف واحد", - "Navigation": "التنقل", - "Focus popup / toolbar": "التركيز المنبثقة / شريط الأدوات", - "Return focus to previous position": "عودة التركيز إلى الموقف السابق", - - // Embed.ly - "Embed URL": "تضمين عنوان ورل", - "Paste in a URL to embed": "الصق في عنوان ورل لتضمينه", - - // Word Paste. - "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "المحتوى الذي تم لصقه قادم من وثيقة كلمة ميكروسوفت. هل تريد الاحتفاظ بالتنسيق أو تنظيفه؟", - "Keep": "احتفظ", - "Clean": "نظيف", - "Word Paste Detected": "تم اكتشاف معجون الكلمات" - }, - direction: "rtl" -}; - -})); diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/languages/bs.js b/Mobile.Search.Web/Scripts/froala-editor/js/languages/bs.js deleted file mode 100644 index 07ad5c4..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/languages/bs.js +++ /dev/null @@ -1,318 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = function( root, jQuery ) { - if ( jQuery === undefined ) { - // require('jQuery') returns a factory that requires window to - // build a jQuery instance, we normalize how we use modules - // that require this pattern but the window provided is a noop - // if it's defined (how jquery works) - if ( typeof window !== 'undefined' ) { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - return factory(jQuery); - }; - } else { - // Browser globals - factory(window.jQuery); - } -}(function ($) { -/** - * Bosnian - */ - -$.FE.LANGUAGE['bs'] = { - translation: { - // Place holder - "Type something": "Ukucajte ne\u0161tp", - - // Basic formatting - "Bold": "Bold", - "Italic": "Italic", - "Underline": "Podvu\u010deno", - "Strikethrough": "Precrtano", - - // Main buttons - "Insert": "Umetni", - "Delete": "Obri\u0161i", - "Cancel": "Otka\u017ei", - "OK": "U redu", - "Back": "Natrag", - "Remove": "Ukloni", - "More": "Vi\u0161e", - "Update": "A\u017euriranje", - "Style": "Stil", - - // Font - "Font Family": "Odaberi font", - "Font Size": "Veli\u010dina fonta", - - // Colors - "Colors": "Boje", - "Background": "Pozadine", - "Text": "Teksta", - "HEX Color": "Hex boje", - - // Paragraphs - "Paragraph Format": "Paragraf formatu", - "Normal": "Normalno", - "Code": "Izvorni kod", - "Heading 1": "Naslov 1", - "Heading 2": "Naslov 2", - "Heading 3": "Naslov 3", - "Heading 4": "Naslov 4", - - // Style - "Paragraph Style": "Paragraf stil", - "Inline Style": "Inline stil", - - // Alignment - "Alignment": "Poravnanje", - "Align Left": "Poravnaj lijevo", - "Align Center": "Poravnaj po sredini", - "Align Right": "Poravnaj desno", - "Align Justify": "Obostrano poravnanje", - "None": "Nijedan", - - // Lists - "Ordered List": "Ure\u0111ena lista", - "Unordered List": "Nesre\u0111ene lista", - - // Indent - "Decrease Indent": "Smanjenje alineja", - "Increase Indent": "Pove\u0107anje alineja", - - // Links - "Insert Link": "Umetni link", - "Open in new tab": "Otvori u novom prozoru", - "Open Link": "Otvori link", - "Edit Link": "Uredi link", - "Unlink": "Ukloni link", - "Choose Link": "Izabrati link", - - // Images - "Insert Image": "Umetni sliku", - "Upload Image": "Upload sliku", - "By URL": "Preko URL", - "Browse": "Pregledaj", - "Drop image": "Izbaci sliku", - "or click": "ili odaberi", - "Manage Images": "Upravljanje ilustracijama", - "Loading": "Koji tovari", - "Deleting": "Brisanje", - "Tags": "Oznake", - "Are you sure? Image will be deleted.": "Da li ste sigurni da \u017eelite da obri\u0161ete ovu ilustraciju?", - "Replace": "Zamijenite", - "Uploading": "Uploading", - "Loading image": "Koji tovari sliku", - "Display": "Prikaz", - "Inline": "Inline", - "Break Text": "Break tekst", - "Alternate Text": "Alternativna tekst", - "Change Size": "Promijeni veli\u010dinu", - "Width": "\u0161irina", - "Height": "Visina", - "Something went wrong. Please try again.": "Ne\u0161to je po\u0161lo po zlu. Molimo vas da poku\u0161ate ponovo.", - "Image Caption": "Caption slika", - "Advanced Edit": "Napredna izmjena", - - // Video - "Insert Video": "Umetni video", - "Embedded Code": "Embedded kod", - "Paste in a video URL": "Nalepite u video url", - "Drop video": "Drop video", - "Your browser does not support HTML5 video.": "Vaš pretraživač ne podržava html5 video.", - "Upload Video": "Otpremite video", - - // Tables - "Insert Table": "Umetni tabelu", - "Table Header": "Tabelu zaglavlja", - "Remove Table": "Uklonite tabelu", - "Table Style": "Tabela stil", - "Horizontal Align": "Horizontalno poravnaj", - "Row": "Red", - "Insert row above": "Umetni red iznad", - "Insert row below": "Umetni red ispod", - "Delete row": "Obri\u0161i red", - "Column": "Kolona", - "Insert column before": "Umetni kolonu prije", - "Insert column after": "Umetni kolonu poslije", - "Delete column": "Obri\u0161i kolonu", - "Cell": "\u0106elija", - "Merge cells": "Spoji \u0107elija", - "Horizontal split": "Horizontalno razdvajanje polja", - "Vertical split": "Vertikalno razdvajanje polja", - "Cell Background": "\u0106elija pozadini", - "Vertical Align": "Vertikalni poravnaj", - "Top": "Vrh", - "Middle": "Srednji", - "Bottom": "Dno", - "Align Top": "Poravnaj vrh", - "Align Middle": "Poravnaj srednji", - "Align Bottom": "Poravnaj dno", - "Cell Style": "\u0106elija stil", - - // Files - "Upload File": "Upload datoteke", - "Drop file": "Drop datoteke", - - // Emoticons - "Emoticons": "Emotikona", - "Grinning face": "Cere\u0107i lice", - "Grinning face with smiling eyes": "Cere\u0107i lice nasmijana o\u010dima", - "Face with tears of joy": "Lice sa suze radosnice", - "Smiling face with open mouth": "Nasmijana lica s otvorenih usta", - "Smiling face with open mouth and smiling eyes": "Nasmijana lica s otvorenih usta i nasmijana o\u010di", - "Smiling face with open mouth and cold sweat": "Nasmijana lica s otvorenih usta i hladan znoj", - "Smiling face with open mouth and tightly-closed eyes": "Nasmijana lica s otvorenih usta i \u010dvrsto-zatvorenih o\u010diju", - "Smiling face with halo": "Nasmijana lica sa halo", - "Smiling face with horns": "Nasmijana lica s rogovima", - "Winking face": "Namigivanje lice", - "Smiling face with smiling eyes": "Nasmijana lica sa nasmijana o\u010dima", - "Face savoring delicious food": "Suo\u010davaju u\u017eivaju\u0107i ukusna hrana", - "Relieved face": "Laknulo lice", - "Smiling face with heart-shaped eyes": "Nasmijana lica sa obliku srca o\u010di", - "Smiling face with sunglasses": "Nasmijana lica sa sun\u010dane nao\u010dare", - "Smirking face": "Namr\u0161tena lica", - "Neutral face": "Neutral lice", - "Expressionless face": "Bezizra\u017eajno lice", - "Unamused face": "Nije zabavno lice", - "Face with cold sweat": "Lice s hladnim znojem", - "Pensive face": "Zami\u0161ljen lice", - "Confused face": "Zbunjen lice", - "Confounded face": "Uzbu\u0111en lice", - "Kissing face": "Ljubakanje lice", - "Face throwing a kiss": "Suo\u010davaju bacanje poljubac", - "Kissing face with smiling eyes": "Ljubljenje lice nasmijana o\u010dima", - "Kissing face with closed eyes": "Ljubljenje lice sa zatvorenim o\u010dima", - "Face with stuck out tongue": "Lice sa ispru\u017eio jezik", - "Face with stuck out tongue and winking eye": "Lice sa ispru\u017eio jezik i trep\u0107u\u0107e \u0107e oko", - "Face with stuck out tongue and tightly-closed eyes": "Lice sa ispru\u017eio jezik i \u010dvrsto zatvorene o\u010di", - "Disappointed face": "Razo\u010daran lice", - "Worried face": "Zabrinuti lice", - "Angry face": "Ljut lice", - "Pouting face": "Napu\u0107enim lice", - "Crying face": "Plakanje lice", - "Persevering face": "Istrajan lice", - "Face with look of triumph": "Lice s pogledom trijumfa", - "Disappointed but relieved face": "Razo\u010daran, ali olak\u0161anje lice", - "Frowning face with open mouth": "Namr\u0161tiv\u0161i lice s otvorenih usta", - "Anguished face": "Bolnom lice", - "Fearful face": "Pla\u0161ljiv lice", - "Weary face": "Umoran lice", - "Sleepy face": "Pospan lice", - "Tired face": "Umorno lice", - "Grimacing face": "Grimase lice", - "Loudly crying face": "Glasno pla\u010de lice", - "Face with open mouth": "Lice s otvorenih usta", - "Hushed face": "Smiren lice", - "Face with open mouth and cold sweat": "Lice s otvorenih usta i hladan znoj", - "Face screaming in fear": "Suo\u010davaju vri\u0161ti u strahu", - "Astonished face": "Zapanjen lice", - "Flushed face": "Rumeno lice", - "Sleeping face": "Usnulo lice", - "Dizzy face": "O\u0161amu\u0107en lice", - "Face without mouth": "Lice bez usta", - "Face with medical mask": "Lice sa medicinskom maskom", - - // Line breaker - "Break": "Slomiti", - - // Math - "Subscript": "Potpisan", - "Superscript": "Natpis", - - // Full screen - "Fullscreen": "Preko cijelog zaslona", - - // Horizontal line - "Insert Horizontal Line": "Umetni vodoravna liniju", - - // Clear formatting - "Clear Formatting": "Izbrisati formatiranje", - - // Undo, redo - "Undo": "Korak nazad", - "Redo": "Korak naprijed", - - // Select all - "Select All": "Ozna\u010di sve", - - // Code view - "Code View": "Kod pogled", - - // Quote - "Quote": "Citat", - "Increase": "Pove\u0107ati", - "Decrease": "Smanjenje", - - // Quick Insert - "Quick Insert": "Brzo umetak", - - // Spcial Characters - "Special Characters": "Posebni znakovi", - "Latin": "Latin", - "Greek": "Greek", - "Cyrillic": "Ćirilično", - "Punctuation": "Interpunkcija", - "Currency": "Valuta", - "Arrows": "Strelice", - "Math": "Matematika", - "Misc": "Misc", - - // Print. - "Print": "Print", - - // Spell Checker. - "Spell Checker": "Proveru pravopisa", - - // Help - "Help": "Pomoć", - "Shortcuts": "Prečice", - "Inline Editor": "Inline editor", - "Show the editor": "Pokaži urednika", - "Common actions": "Zajedničke akcije", - "Copy": "Kopiraj", - "Cut": "Cut", - "Paste": "Paste", - "Basic Formatting": "Osnovno oblikovanje", - "Increase quote level": "Povećati cijeni", - "Decrease quote level": "Smanjiti nivo ponude", - "Image / Video": "Slika / video", - "Resize larger": "Veće veličine", - "Resize smaller": "Manja promjena veličine", - "Table": "Stol", - "Select table cell": "Izaberite ćeliju tablice", - "Extend selection one cell": "Produžiti izbor jedne ćelije", - "Extend selection one row": "Produžiti izbor jedan red", - "Navigation": "Navigacija", - "Focus popup / toolbar": "Focus popup / toolbar", - "Return focus to previous position": "Vratite fokus na prethodnu poziciju", - - // Embed.ly - "Embed URL": "Ugraditi url", - "Paste in a URL to embed": "Paste u URL adresu za ugradnju", - - // Word Paste. - "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Nalepeni sadržaj dolazi iz Microsoft Word dokumenta. da li želite da zadržite format ili da ga očistite?", - "Keep": "Zadržati", - "Clean": "Čist", - "Word Paste Detected": "Otkrivena je slovna reč" - }, - direction: "ltr" -}; - -})); diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/languages/cs.js b/Mobile.Search.Web/Scripts/froala-editor/js/languages/cs.js deleted file mode 100644 index 69b0986..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/languages/cs.js +++ /dev/null @@ -1,318 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = function( root, jQuery ) { - if ( jQuery === undefined ) { - // require('jQuery') returns a factory that requires window to - // build a jQuery instance, we normalize how we use modules - // that require this pattern but the window provided is a noop - // if it's defined (how jquery works) - if ( typeof window !== 'undefined' ) { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - return factory(jQuery); - }; - } else { - // Browser globals - factory(window.jQuery); - } -}(function ($) { -/** - * Czech - */ - -$.FE.LANGUAGE['cs'] = { - translation: { - // Place holder - "Type something": "Napi\u0161te n\u011bco", - - // Basic formatting - "Bold": "Tu\u010dn\u00e9", - "Italic": "Kurz\u00edva", - "Underline": "Podtr\u017een\u00e9", - "Strikethrough": "P\u0159e\u0161krtnut\u00e9", - - // Main buttons - "Insert": "Vlo\u017eit", - "Delete": "Vymazat", - "Cancel": "Zru\u0161it", - "OK": "OK", - "Back": "Zp\u011bt", - "Remove": "Odstranit", - "More": "V\u00edce", - "Update": "Aktualizovat", - "Style": "Styl", - - // Font - "Font Family": "Typ p\u00edsma", - "Font Size": "Velikost p\u00edsma", - - // Colors - "Colors": "Barvy", - "Background": "Pozad\u00ed", - "Text": "P\u00edsmo", - "HEX Color": "Hex Barvy", - - // Paragraphs - "Paragraph Format": "Form\u00e1t odstavec", - "Normal": "Norm\u00e1ln\u00ed", - "Code": "K\u00f3d", - "Heading 1": "Nadpis 1", - "Heading 2": "Nadpis 2", - "Heading 3": "Nadpis 3", - "Heading 4": "Nadpis 4", - - // Style - "Paragraph Style": "Odstavec styl", - "Inline Style": "Inline styl", - - // Alignment - "Align": "Zarovn\u00e1n\u00ed", - "Align Left": "Zarovnat vlevo", - "Align Center": "Zarovnat na st\u0159ed", - "Align Right": "Zarovnat vpravo", - "Align Justify": "Zarovnat do bloku", - "None": "Nikdo", - - // Lists - "Ordered List": "\u010c\u00edslovan\u00fd seznam", - "Unordered List": "Ne\u010d\u00edslovan\u00fd seznam", - - // Indent - "Decrease Indent": "Zmen\u0161it odsazen\u00ed", - "Increase Indent": "Zv\u011bt\u0161it odsazen\u00ed", - - // Links - "Insert Link": "Vlo\u017eit odkaz", - "Open in new tab": "Otev\u0159\u00edt v nov\u00e9 z\u00e1lo\u017ece", - "Open Link": "Otev\u0159\u00edt odkaz", - "Edit Link": "Upravit odkaz", - "Unlink": "Odstranit odkaz", - "Choose Link": "Zvolte odkaz", - - // Images - "Insert Image": "Vlo\u017eit obr\u00e1zek", - "Upload Image": "Nahr\u00e1t obr\u00e1zek", - "By URL": "Podle URL", - "Browse": "Proch\u00e1zet", - "Drop image": "P\u0159et\u00e1hn\u011bte sem obr\u00e1zek", - "or click": "nebo zde klepn\u011bte", - "Manage Images": "Spr\u00e1va obr\u00e1zk\u016f", - "Loading": "Nakl\u00e1d\u00e1n\u00ed", - "Deleting": "Odstran\u011bn\u00ed", - "Tags": "Zna\u010dky", - "Are you sure? Image will be deleted.": "Ur\u010dit\u011b? Obr\u00e1zek bude smaz\u00e1n.", - "Replace": "Nahradit", - "Uploading": "Nahr\u00e1v\u00e1n\u00ed", - "Loading image": "Obr\u00e1zek se na\u010d\u00edt\u00e1", - "Display": "Zobrazit", - "Inline": "Inline", - "Break Text": "P\u0159est\u00e1vka textu", - "Alternate Text": "Alternativn\u00ed textu", - "Change Size": "Zm\u011bnit velikost", - "Width": "\u0160\u00ed\u0159ka", - "Height": "V\u00fd\u0161ka", - "Something went wrong. Please try again.": "N\u011bco se pokazilo. Pros\u00edm zkuste to znovu.", - "Image Caption": "Obrázek titulku", - "Advanced Edit": "Pokročilá úprava", - - // Video - "Insert Video": "Vlo\u017eit video", - "Embedded Code": "Vlo\u017een\u00fd k\u00f3d", - "Paste in a video URL": "Vložit adresu URL videa", - "Drop video": "Drop video", - "Your browser does not support HTML5 video.": "Váš prohlížeč nepodporuje video html5.", - "Upload Video": "Nahrát video", - - // Tables - "Insert Table": "Vlo\u017eit tabulku", - "Table Header": "Hlavi\u010dka tabulky", - "Remove Table": "Odstranit tabulku", - "Table Style": "Styl tabulky", - "Horizontal Align": "Horizont\u00e1ln\u00ed zarovn\u00e1n\u00ed", - "Row": "\u0158\u00e1dek", - "Insert row above": "Vlo\u017eit \u0159\u00e1dek nad", - "Insert row below": "Vlo\u017eit \u0159\u00e1dek pod", - "Delete row": "Smazat \u0159\u00e1dek", - "Column": "Sloupec", - "Insert column before": "Vlo\u017eit sloupec vlevo", - "Insert column after": "Vlo\u017eit sloupec vpravo", - "Delete column": "Smazat sloupec", - "Cell": "Bu\u0148ka", - "Merge cells": "Slou\u010dit bu\u0148ky", - "Horizontal split": "Horizont\u00e1ln\u00ed rozd\u011blen\u00ed", - "Vertical split": "Vertik\u00e1ln\u00ed rozd\u011blen\u00ed", - "Cell Background": "Bu\u0148ka pozad\u00ed", - "Vertical Align": "Vertik\u00e1ln\u00ed zarovn\u00e1n\u00ed", - "Top": "Vrchol", - "Middle": "St\u0159ed", - "Bottom": "Spodn\u00ed", - "Align Top": "Zarovnat vrchol", - "Align Middle": "Zarovnat st\u0159ed", - "Align Bottom": "Zarovnat spodn\u00ed", - "Cell Style": "Styl bu\u0148ky", - - // Files - "Upload File": "Nahr\u00e1t soubor", - "Drop file": "P\u0159et\u00e1hn\u011bte sem soubor", - - // Emoticons - "Emoticons": "Emotikony", - "Grinning face": "S \u00fasm\u011bvem tv\u00e1\u0159", - "Grinning face with smiling eyes": "S \u00fasm\u011bvem obli\u010dej s o\u010dima s \u00fasm\u011bvem", - "Face with tears of joy": "tv\u00e1\u0159 se slzami radosti", - "Smiling face with open mouth": "Usm\u00edvaj\u00edc\u00ed se obli\u010dej s otev\u0159en\u00fdmi \u00fasty", - "Smiling face with open mouth and smiling eyes": "Usm\u00edvaj\u00edc\u00ed se obli\u010dej s otev\u0159en\u00fdmi \u00fasty a o\u010dima s \u00fasm\u011bvem", - "Smiling face with open mouth and cold sweat": "Usm\u00edvaj\u00edc\u00ed se tv\u00e1\u0159 s otev\u0159en\u00fdmi \u00fasty a studen\u00fd pot", - "Smiling face with open mouth and tightly-closed eyes": "Usm\u00edvaj\u00edc\u00ed se tv\u00e1\u0159 s otev\u0159en\u00fdmi \u00fasty a t\u011bsn\u011b zav\u0159en\u00e9 o\u010di", - "Smiling face with halo": "Usm\u00edvaj\u00edc\u00ed se obli\u010dej s halo", - "Smiling face with horns": "Usm\u00edvaj\u00edc\u00ed se obli\u010dej s rohy", - "Winking face": "Mrk\u00e1n\u00ed tv\u00e1\u0159", - "Smiling face with smiling eyes": "Usm\u00edvaj\u00edc\u00ed se obli\u010dej s o\u010dima s \u00fasm\u011bvem", - "Face savoring delicious food": "Tv\u00e1\u0159 vychutn\u00e1val chutn\u00e9 j\u00eddlo", - "Relieved face": "Ulevilo tv\u00e1\u0159", - "Smiling face with heart-shaped eyes": "Usm\u00edvaj\u00edc\u00ed se tv\u00e1\u0159 ve tvaru srdce o\u010dima", - "Smiling face with sunglasses": "Usm\u00edvaj\u00edc\u00ed se tv\u00e1\u0159 se slune\u010dn\u00edmi br\u00fdlemi", - "Smirking face": "Uculoval tv\u00e1\u0159", - "Neutral face": "Neutr\u00e1ln\u00ed tv\u00e1\u0159", - "Expressionless face": "Bezv\u00fdrazn\u00fd obli\u010dej", - "Unamused face": "Ne pobaven\u00fd tv\u00e1\u0159", - "Face with cold sweat": "Tv\u00e1\u0159 se studen\u00fdm potem", - "Pensive face": "Zamy\u0161len\u00fd obli\u010dej", - "Confused face": "Zmaten\u00fd tv\u00e1\u0159", - "Confounded face": "Na\u0161tvan\u00fd tv\u00e1\u0159", - "Kissing face": "L\u00edb\u00e1n\u00ed tv\u00e1\u0159", - "Face throwing a kiss": "Tv\u00e1\u0159 h\u00e1zet polibek", - "Kissing face with smiling eyes": "L\u00edb\u00e1n\u00ed obli\u010dej s o\u010dima s \u00fasm\u011bvem", - "Kissing face with closed eyes": "L\u00edb\u00e1n\u00ed tv\u00e1\u0159 se zav\u0159en\u00fdma o\u010dima", - "Face with stuck out tongue": "Tv\u00e1\u0159 s tr\u010dely jazyk", - "Face with stuck out tongue and winking eye": "Tv\u00e1\u0159 s tr\u010dely jazykem a mrkat o\u010dima", - "Face with stuck out tongue and tightly-closed eyes": "Suo\u010diti s tr\u010dely jazykem t\u011bsn\u011b zav\u0159en\u00e9 vidikovce", - "Disappointed face": "Zklaman\u00fd tv\u00e1\u0159", - "Worried face": "Boj\u00ed\u0161 se tv\u00e1\u0159", - "Angry face": "Rozzloben\u00fd tv\u00e1\u0159", - "Pouting face": "Na\u0161pulen\u00e9 tv\u00e1\u0159", - "Crying face": "Pl\u00e1\u010d tv\u00e1\u0159", - "Persevering face": "Vytrval\u00fdm tv\u00e1\u0159", - "Face with look of triumph": "Tv\u00e1\u0159 s v\u00fdrazem triumfu", - "Disappointed but relieved face": "Zklaman\u00fd ale ulevilo tv\u00e1\u0159", - "Frowning face with open mouth": "Zamra\u010dil se obli\u010dej s otev\u0159en\u00fdmi \u00fasty", - "Anguished face": "\u00fazkostn\u00e9 tv\u00e1\u0159", - "Fearful face": "Stra\u0161n\u00fd tv\u00e1\u0159", - "Weary face": "Unaven\u00fd tv\u00e1\u0159", - "Sleepy face": "Ospal\u00fd tv\u00e1\u0159", - "Tired face": "Unaven\u00fd tv\u00e1\u0159", - "Grimacing face": "\u0161klebil tv\u00e1\u0159", - "Loudly crying face": "Hlasit\u011b pl\u00e1\u010de tv\u00e1\u0159", - "Face with open mouth": "Obli\u010dej s otev\u0159en\u00fdmi \u00fasty", - "Hushed face": "Tlumen\u00fd tv\u00e1\u0159", - "Face with open mouth and cold sweat": "Obli\u010dej s otev\u0159en\u00fdmi \u00fasty a studen\u00fd pot", - "Face screaming in fear": "Tv\u00e1\u0159 k\u0159i\u010d\u00ed ve strachu", - "Astonished face": "V \u00fa\u017easu tv\u00e1\u0159", - "Flushed face": "Zarudnut\u00ed v obli\u010deji", - "Sleeping face": "Sp\u00edc\u00ed tv\u00e1\u0159", - "Dizzy face": "Z\u00e1vrat\u011b tv\u00e1\u0159", - "Face without mouth": "Tv\u00e1\u0159 bez \u00fast", - "Face with medical mask": "Tv\u00e1\u0159 s l\u00e9ka\u0159sk\u00fdm maskou", - - // Line breaker - "Break": "P\u0159eru\u0161en\u00ed", - - // Math - "Subscript": "Doln\u00ed index", - "Superscript": "Horn\u00ed index", - - // Full screen - "Fullscreen": "Cel\u00e1 obrazovka", - - // Horizontal line - "Insert Horizontal Line": "Vlo\u017eit vodorovnou \u010d\u00e1ru", - - // Clear formatting - "Clear Formatting": "Vymazat form\u00e1tov\u00e1n\u00ed", - - // Undo, redo - "Undo": "Zp\u011bt", - "Redo": "Znovu", - - // Select all - "Select All": "Vybrat v\u0161e", - - // Code view - "Code View": "Zobrazen\u00ed k\u00f3d", - - // Quote - "Quote": "Cit\u00e1t", - "Increase": "Nav\u00fd\u0161it", - "Decrease": "Sn\u00ed\u017een\u00ed", - - // Quick Insert - "Quick Insert": "Rychl\u00e1 vlo\u017eka", - - // Spcial Characters - "Special Characters": "Speciální znaky", - "Latin": "Latinský", - "Greek": "Řecký", - "Cyrillic": "Cyrilice", - "Punctuation": "Interpunkce", - "Currency": "Měna", - "Arrows": "Šipky", - "Math": "Matematika", - "Misc": "Misc", - - // Print. - "Print": "Tisk", - - // Spell Checker. - "Spell Checker": "Kontrola pravopisu", - - // Help - "Help": "Pomoc", - "Shortcuts": "Zkratky", - "Inline Editor": "Inline editor", - "Show the editor": "Zobrazit editor", - "Common actions": "Společné akce", - "Copy": "Kopírovat", - "Cut": "Střih", - "Paste": "Vložit", - "Basic Formatting": "Základní formátování", - "Increase quote level": "Zvýšení cenové hladiny", - "Decrease quote level": "Snížit úroveň cenové nabídky", - "Image / Video": "Obraz / video", - "Resize larger": "Změna velikosti větší", - "Resize smaller": "Změnit velikost menší", - "Table": "Stůl", - "Select table cell": "Vyberte buňku tabulky", - "Extend selection one cell": "Rozšířit výběr o jednu buňku", - "Extend selection one row": "Rozšířit výběr o jeden řádek", - "Navigation": "Navigace", - "Focus popup / toolbar": "Popup / panel nástrojů zaostření", - "Return focus to previous position": "Návrat na předchozí pozici", - - // Embed.ly - "Embed URL": "Vložte url", - "Paste in a URL to embed": "Vložit adresu URL, kterou chcete vložit", - - // Word Paste. - "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Vložený obsah pochází z dokumentu Microsoft Word. chcete formát uchovat nebo jej vyčistit?", - "Keep": "Držet", - "Clean": "Čistý", - "Word Paste Detected": "Slovní vložka zjištěna" - }, - direction: "ltr" -}; - -})); diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/languages/da.js b/Mobile.Search.Web/Scripts/froala-editor/js/languages/da.js deleted file mode 100644 index b6a8655..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/languages/da.js +++ /dev/null @@ -1,318 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = function( root, jQuery ) { - if ( jQuery === undefined ) { - // require('jQuery') returns a factory that requires window to - // build a jQuery instance, we normalize how we use modules - // that require this pattern but the window provided is a noop - // if it's defined (how jquery works) - if ( typeof window !== 'undefined' ) { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - return factory(jQuery); - }; - } else { - // Browser globals - factory(window.jQuery); - } -}(function ($) { -/** - * Danish - */ - -$.FE.LANGUAGE['da'] = { - translation: { - // Place holder - "Type something": "Skriv noget", - - // Basic formatting - "Bold": "Fed", - "Italic": "Kursiv", - "Underline": "Understreg", - "Strikethrough": "Gennemstreg", - - // Main buttons - "Insert": "Inds\u00e6t", - "Delete": "Slet", - "Cancel": "Fortryd", - "OK": "Ok", - "Back": "Tilbage", - "Remove": "Fjern", - "More": "Mere", - "Update": "Opdatering", - "Style": "Stil", - - // Font - "Font Family": "Skrifttype", - "Font Size": "Skriftst\u00f8rrelse", - - // Colors - "Colors": "Farver", - "Background": "Baggrunds", - "Text": "Tekst", - "HEX Color": "Hex farve", - - // Paragraphs - "Paragraph Format": "S\u00e6tning format", - "Normal": "Normal", - "Code": "Code", - "Heading 1": "Overskrift 1", - "Heading 2": "Overskrift 2", - "Heading 3": "Overskrift 3", - "Heading 4": "Overskrift 4", - - // Style - "Paragraph Style": "S\u00e6tning stil", - "Inline Style": "Inline stil", - - // Alignment - "Align": "Tilpasning", - "Align Left": "Venstrejusteret", - "Align Center": "Centreret", - "Align Right": "H\u00f8jrejusteret", - "Align Justify": "Justering", - "None": "Intet", - - // Lists - "Ordered List": "Ordnet liste", - "Unordered List": "Uordnet liste", - - // Indent - "Decrease Indent": "Mindske indrykning", - "Increase Indent": "For\u00f8ge indrykning", - - // Links - "Insert Link": "Inds\u00e6t link", - "Open in new tab": "\u00c5bn i ny fane", - "Open Link": "\u00c5bn link", - "Edit Link": "Rediger link", - "Unlink": "Fjern link", - "Choose Link": "V\u00e6lg link", - - // Images - "Insert Image": "Inds\u00e6t billede", - "Upload Image": "Upload billede", - "By URL": "Af URL", - "Browse": "Gennemse", - "Drop image": "Tr\u00e6k billedet herind", - "or click": "eller klik", - "Manage Images": "Administrer billeder", - "Loading": "Lastning", - "Deleting": "Sletning", - "Tags": "Tags", - "Are you sure? Image will be deleted.": "Er du sikker? Billede vil blive slettet.", - "Replace": "Udskift", - "Uploading": "Upload", - "Loading image": "Lastning billede", - "Display": "Udstilling", - "Inline": "Inline", - "Break Text": "Afbrydelse tekst", - "Alternate Text": "Suppleant tekst", - "Change Size": "Skift st\u00f8rrelse", - "Width": "Bredde", - "Height": "H\u00f8jde", - "Something went wrong. Please try again.": "Noget gik galt. Pr\u00f8v igen.", - "Image Caption": "Billedtekst", - "Advanced Edit": "Avanceret redigering", - - // Video - "Insert Video": "Inds\u00e6t video", - "Embedded Code": "Embedded kode", - "Paste in a video URL": "Indsæt i en video url", - "Drop video": "Slip video", - "Your browser does not support HTML5 video.": "Din browser understøtter ikke html5 video.", - "Upload Video": "Upload video", - - // Tables - "Insert Table": "Inds\u00e6t tabel", - "Table Header": "Tabel header", - "Remove Table": "Fjern tabel", - "Table Style": "Tabel stil", - "Horizontal Align": "Vandret tilpasning", - "Row": "R\u00e6kke", - "Insert row above": "Inds\u00e6t r\u00e6kke over", - "Insert row below": "Inds\u00e6t r\u00e6kke under", - "Delete row": "Slet r\u00e6kke", - "Column": "Kolonne", - "Insert column before": "Inds\u00e6t kolonne f\u00f8r", - "Insert column after": "Inds\u00e6t kolonne efter", - "Delete column": "Slet kolonne", - "Cell": "Celle", - "Merge cells": "Flet celler", - "Horizontal split": "Vandret split", - "Vertical split": "Lodret split", - "Cell Background": "Celle baggrund", - "Vertical Align": "Lodret tilpasning", - "Top": "Top", - "Middle": "Midten", - "Bottom": "Bund", - "Align Top": "Tilpasse top", - "Align Middle": "Tilpasse midten", - "Align Bottom": "Tilpasse bund", - "Cell Style": "Celle stil", - - // Files - "Upload File": "Upload fil", - "Drop file": "Drop fil", - - // Emoticons - "Emoticons": "Hum\u00f8rikoner", - "Grinning face": "Grinende ansigt", - "Grinning face with smiling eyes": "Grinende ansigt med smilende \u00f8jne", - "Face with tears of joy": "Ansigt med gl\u00e6dest\u00e5rer", - "Smiling face with open mouth": "Smilende ansigt med \u00e5ben mund", - "Smiling face with open mouth and smiling eyes": "Smilende ansigt med \u00e5ben mund og smilende \u00f8jne", - "Smiling face with open mouth and cold sweat": "Smilende ansigt med \u00e5ben mund og koldsved", - "Smiling face with open mouth and tightly-closed eyes": "Smilende ansigt med \u00e5ben mund og stramt-lukkede \u00f8jne", - "Smiling face with halo": "Smilende ansigt med halo", - "Smiling face with horns": "Smilende ansigt med horn", - "Winking face": "Blinkede ansigt", - "Smiling face with smiling eyes": "Smilende ansigt med smilende \u00f8jne", - "Face savoring delicious food": "Ansigt savoring l\u00e6kker mad", - "Relieved face": "Lettet ansigt", - "Smiling face with heart-shaped eyes": "Smilende ansigt med hjerteformede \u00f8jne", - "Smiling face with sunglasses": "Smilende ansigt med solbriller", - "Smirking face": "Smilende ansigt", - "Neutral face": "Neutral ansigt", - "Expressionless face": "Udtryksl\u00f8se ansigt", - "Unamused face": "Ikke morede ansigt", - "Face with cold sweat": "Ansigt med koldsved", - "Pensive face": "Eftert\u00e6nksom ansigt", - "Confused face": "Forvirret ansigt", - "Confounded face": "Forvirrede ansigt", - "Kissing face": "Kysse ansigt", - "Face throwing a kiss": "Ansigt smide et kys", - "Kissing face with smiling eyes": "Kysse ansigt med smilende \u00f8jne", - "Kissing face with closed eyes": "Kysse ansigt med lukkede \u00f8jne", - "Face with stuck out tongue": "Ansigt med stak ud tungen", - "Face with stuck out tongue and winking eye": "Ansigt med stak ud tungen og blinkede \u00f8je", - "Face with stuck out tongue and tightly-closed eyes": "Ansigt med stak ud tungen og stramt lukkede \u00f8jne", - "Disappointed face": "Skuffet ansigt", - "Worried face": "Bekymret ansigt", - "Angry face": "Vred ansigt", - "Pouting face": "Sk\u00e6gtorsk ansigt", - "Crying face": "Gr\u00e6der ansigt", - "Persevering face": "Udholdende ansigt", - "Face with look of triumph": "Ansigt med udseendet af triumf", - "Disappointed but relieved face": "Skuffet, men lettet ansigt", - "Frowning face with open mouth": "Rynkede panden ansigt med \u00e5ben mund", - "Anguished face": "Forpinte ansigt", - "Fearful face": "Frygt ansigt", - "Weary face": "Tr\u00e6tte ansigt", - "Sleepy face": "S\u00f8vnig ansigt", - "Tired face": "Tr\u00e6t ansigt", - "Grimacing face": "Grimasser ansigt", - "Loudly crying face": "H\u00f8jlydt grædende ansigt", - "Face with open mouth": "Ansigt med \u00e5ben mund", - "Hushed face": "Tyst ansigt", - "Face with open mouth and cold sweat": "Ansigt med \u00e5ben mund og koldsved", - "Face screaming in fear": "Ansigt skrigende i fryg", - "Astonished face": "Forundret ansigt", - "Flushed face": "Blussende ansigt", - "Sleeping face": "Sovende ansigt", - "Dizzy face": "Svimmel ansigt", - "Face without mouth": "Ansigt uden mund", - "Face with medical mask": "Ansigt med medicinsk maske", - - // Line breaker - "Break": "Afbrydelse", - - // Math - "Subscript": "S\u00e6nket skrift", - "Superscript": "H\u00e6vet skrift", - - // Full screen - "Fullscreen": "Fuld sk\u00e6rm", - - // Horizontal line - "Insert Horizontal Line": "Inds\u00e6t vandret linie", - - // Clear formatting - "Clear Formatting": "Fjern formatering", - - // Undo, redo - "Undo": "Fortryd", - "Redo": "Genopret", - - // Select all - "Select All": "V\u00e6lg alle", - - // Code view - "Code View": "Kode visning", - - // Quote - "Quote": "Citat", - "Increase": "For\u00f8ge", - "Decrease": "Mindsk", - - // Quick Insert - "Quick Insert": "Hurtig indsats", - - // Spcial Characters - "Special Characters": "Specialtegn", - "Latin": "Latin", - "Greek": "Græsk", - "Cyrillic": "Kyrillisk", - "Punctuation": "Tegnsætning", - "Currency": "Betalingsmiddel", - "Arrows": "Pile", - "Math": "Matematik", - "Misc": "Misc", - - // Print. - "Print": "Print", - - // Spell Checker. - "Spell Checker": "Stavekontrol", - - // Help - "Help": "Hjælp", - "Shortcuts": "Genveje", - "Inline Editor": "Inline editor", - "Show the editor": "Vis redaktøren", - "Common actions": "Fælles handlinger", - "Copy": "Kopi", - "Cut": "Skære", - "Paste": "Sæt ind", - "Basic Formatting": "Grundlæggende formatering", - "Increase quote level": "Øge tilbudsniveau", - "Decrease quote level": "Sænk citeringsniveauet", - "Image / Video": "Billede / video", - "Resize larger": "Ændre størrelse større", - "Resize smaller": "Ændre størrelsen mindre", - "Table": "Tabel", - "Select table cell": "Vælg tabel celle", - "Extend selection one cell": "Udvide valget en celle", - "Extend selection one row": "Udvide markeringen en række", - "Navigation": "Navigation", - "Focus popup / toolbar": "Fokus popup / værktøjslinje", - "Return focus to previous position": "Returnere fokus til tidligere position", - - // Embed.ly - "Embed URL": "Integrere url", - "Paste in a URL to embed": "Indsæt i en URL for at indlejre", - - // Word Paste. - "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Det indsatte indhold kommer fra et Microsoft Word-dokument. Vil du beholde formateringen eller fjerne det?", - "Keep": "Beholde", - "Clean": "Fjerne", - "Word Paste Detected": "Indsættelse fra Word er detekteret" - }, - direction: "ltr" -}; - -})); diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/languages/de.js b/Mobile.Search.Web/Scripts/froala-editor/js/languages/de.js deleted file mode 100644 index 19c52dd..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/languages/de.js +++ /dev/null @@ -1,318 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = function( root, jQuery ) { - if ( jQuery === undefined ) { - // require('jQuery') returns a factory that requires window to - // build a jQuery instance, we normalize how we use modules - // that require this pattern but the window provided is a noop - // if it's defined (how jquery works) - if ( typeof window !== 'undefined' ) { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - return factory(jQuery); - }; - } else { - // Browser globals - factory(window.jQuery); - } -}(function ($) { -/** - * German - */ - -$.FE.LANGUAGE['de'] = { - translation: { - // Place holder - "Type something": "Hier tippen", - - // Basic formatting - "Bold": "Fett", - "Italic": "Kursiv", - "Underline": "Unterstrichen", - "Strikethrough": "Durchgestrichen", - - // Main buttons - "Insert": "Einfügen", - "Delete": "Löschen", - "Cancel": "Abbrechen", - "OK": "OK", - "Back": "Zurück", - "Remove": "Entfernen", - "More": "Mehr", - "Update": "Aktualisieren", - "Style": "Stil", - - // Font - "Font Family": "Schriftart", - "Font Size": "Schriftgröße", - - // Colors - "Colors": "Farben", - "Background": "Hintergrund", - "Text": "Text", - "HEX Color": "Hexadezimaler Farbwert", - - // Paragraphs - "Paragraph Format": "Formatierung", - "Normal": "Normal", - "Code": "Quelltext", - "Heading 1": "Überschrift 1", - "Heading 2": "Überschrift 2", - "Heading 3": "Überschrift 3", - "Heading 4": "Überschrift 4", - - // Style - "Paragraph Style": "Absatzformatierung", - "Inline Style": "Inlineformatierung", - - // Alignment - "Align": "Ausrichtung", - "Align Left": "Linksbündig ausrichten", - "Align Center": "Zentriert ausrichten", - "Align Right": "Rechtsbündig ausrichten", - "Align Justify": "Blocksatz", - "None": "Keine", - - // Lists - "Ordered List": "Nummerierte Liste", - "Unordered List": "Unnummerierte Liste", - - // Indent - "Decrease Indent": "Einzug verkleinern", - "Increase Indent": "Einzug vergrößern", - - // Links - "Insert Link": "Link einfügen", - "Open in new tab": "In neuem Tab öffnen", - "Open Link": "Link öffnen", - "Edit Link": "Link bearbeiten", - "Unlink": "Link entfernen", - "Choose Link": "Einen Link auswählen", - - // Images - "Insert Image": "Bild einfügen", - "Upload Image": "Bild hochladen", - "By URL": "Von URL", - "Browse": "Durchsuchen", - "Drop image": "Bild hineinziehen", - "or click": "oder hier klicken", - "Manage Images": "Bilder verwalten", - "Loading": "Laden", - "Deleting": "Löschen", - "Tags": "Tags", - "Are you sure? Image will be deleted.": "Wollen Sie das Bild wirklich löschen?", - "Replace": "Ersetzen", - "Uploading": "Hochladen", - "Loading image": "Das Bild wird geladen", - "Display": "Textausrichtung", - "Inline": "Mit Text in einer Zeile", - "Break Text": "Text umbrechen", - "Alternate Text": "Alternativtext", - "Change Size": "Größe ändern", - "Width": "Breite", - "Height": "Höhe", - "Something went wrong. Please try again.": "Etwas ist schief gelaufen. Bitte versuchen Sie es erneut.", - "Image Caption": "Bildbeschreibung", - "Advanced Edit": "Erweiterte Bearbeitung", - - // Video - "Insert Video": "Video einfügen", - "Embedded Code": "Eingebetteter Code", - "Paste in a video URL": "Fügen Sie die Video-URL ein", - "Drop video": "Video hineinziehen", - "Your browser does not support HTML5 video.": "Ihr Browser unterstützt keine HTML5-Videos.", - "Upload Video": "Video hochladen", - - // Tables - "Insert Table": "Tabelle einfügen", - "Table Header": "Tabellenkopf", - "Remove Table": "Tabelle entfernen", - "Table Style": "Tabellenformatierung", - "Horizontal Align": "Horizontale Ausrichtung", - "Row": "Zeile", - "Insert row above": "Neue Zeile davor einfügen", - "Insert row below": "Neue Zeile danach einfügen", - "Delete row": "Zeile löschen", - "Column": "Spalte", - "Insert column before": "Neue Spalte davor einfügen", - "Insert column after": "Neue Spalte danach einfügen", - "Delete column": "Spalte löschen", - "Cell": "Zelle", - "Merge cells": "Zellen verbinden", - "Horizontal split": "Horizontal teilen", - "Vertical split": "Vertikal teilen", - "Cell Background": "Zellenfarbe", - "Vertical Align": "Vertikale Ausrichtung", - "Top": "Oben", - "Middle": "Zentriert", - "Bottom": "Unten", - "Align Top": "Oben ausrichten", - "Align Middle": "Zentriert ausrichten", - "Align Bottom": "Unten ausrichten", - "Cell Style": "Zellen-Stil", - - // Files - "Upload File": "Datei hochladen", - "Drop file": "Datei hineinziehen", - - // Emoticons - "Emoticons": "Emoticons", - "Grinning face": "Grinsendes Gesicht", - "Grinning face with smiling eyes": "Grinsend Gesicht mit lächelnden Augen", - "Face with tears of joy": "Gesicht mit Tränen der Freude", - "Smiling face with open mouth": "Lächelndes Gesicht mit offenem Mund", - "Smiling face with open mouth and smiling eyes": "Lächelndes Gesicht mit offenem Mund und lächelnden Augen", - "Smiling face with open mouth and cold sweat": "Lächelndes Gesicht mit offenem Mund und kaltem Schweiß", - "Smiling face with open mouth and tightly-closed eyes": "Lächelndes Gesicht mit offenem Mund und fest geschlossenen Augen", - "Smiling face with halo": "Lächeln Gesicht mit Heiligenschein", - "Smiling face with horns": "Lächeln Gesicht mit Hörnern", - "Winking face": "Zwinkerndes Gesicht", - "Smiling face with smiling eyes": "Lächelndes Gesicht mit lächelnden Augen", - "Face savoring delicious food": "Gesicht leckeres Essen genießend", - "Relieved face": "Erleichtertes Gesicht", - "Smiling face with heart-shaped eyes": "Lächelndes Gesicht mit herzförmigen Augen", - "Smiling face with sunglasses": "Lächelndes Gesicht mit Sonnenbrille", - "Smirking face": "Grinsendes Gesicht", - "Neutral face": "Neutrales Gesicht", - "Expressionless face": "Ausdrucksloses Gesicht", - "Unamused face": "Genervtes Gesicht", - "Face with cold sweat": "Gesicht mit kaltem Schweiß", - "Pensive face": "Nachdenkliches Gesicht", - "Confused face": "Verwirrtes Gesicht", - "Confounded face": "Elendes Gesicht", - "Kissing face": "Küssendes Gesicht", - "Face throwing a kiss": "Gesicht wirft einen Kuss", - "Kissing face with smiling eyes": "Küssendes Gesicht mit lächelnden Augen", - "Kissing face with closed eyes": "Küssendes Gesicht mit geschlossenen Augen", - "Face with stuck out tongue": "Gesicht mit herausgestreckter Zunge", - "Face with stuck out tongue and winking eye": "Gesicht mit herausgestreckter Zunge und zwinkerndem Auge", - "Face with stuck out tongue and tightly-closed eyes": "Gesicht mit herausgestreckter Zunge und fest geschlossenen Augen", - "Disappointed face": "Enttäuschtes Gesicht", - "Worried face": "Besorgtes Gesicht", - "Angry face": "Verärgertes Gesicht", - "Pouting face": "Schmollendes Gesicht", - "Crying face": "Weinendes Gesicht", - "Persevering face": "Ausharrendes Gesicht", - "Face with look of triumph": "Gesicht mit triumphierenden Blick", - "Disappointed but relieved face": "Enttäuschtes, aber erleichtertes Gesicht", - "Frowning face with open mouth": "Entsetztes Gesicht mit offenem Mund", - "Anguished face": "Gequältes Gesicht", - "Fearful face": "Angstvolles Gesicht", - "Weary face": "Müdes Gesicht", - "Sleepy face": "Schläfriges Gesicht", - "Tired face": "Gähnendes Gesicht", - "Grimacing face": "Grimassenschneidendes Gesicht", - "Loudly crying face": "Laut weinendes Gesicht", - "Face with open mouth": "Gesicht mit offenem Mund", - "Hushed face": "Besorgtes Gesicht mit offenem Mund", - "Face with open mouth and cold sweat": "Gesicht mit offenem Mund und kaltem Schweiß", - "Face screaming in fear": "Vor Angst schreiendes Gesicht", - "Astonished face": "Erstauntes Gesicht", - "Flushed face": "Gerötetes Gesicht", - "Sleeping face": "Schlafendes Gesicht", - "Dizzy face": "Schwindliges Gesicht", - "Face without mouth": "Gesicht ohne Mund", - "Face with medical mask": "Gesicht mit Mundschutz", - - // Line breaker - "Break": "Zeilenumbruch", - - // Math - "Subscript": "Tiefgestellt", - "Superscript": "Hochgestellt", - - // Full screen - "Fullscreen": "Vollbild", - - // Horizontal line - "Insert Horizontal Line": "Horizontale Linie einfügen", - - // Clear formatting - "Clear Formatting": "Formatierung löschen", - - // Undo, redo - "Undo": "Rückgängig", - "Redo": "Wiederholen", - - // Select all - "Select All": "Alles auswählen", - - // Code view - "Code View": "Code-Ansicht", - - // Quote - "Quote": "Zitieren", - "Increase": "Vergrößern", - "Decrease": "Verkleinern", - - // Quick Insert - "Quick Insert": "Schnell einfügen", - - // Spcial Characters - "Special Characters": "Sonderzeichen", - "Latin": "Lateinisch", - "Greek": "Griechisch", - "Cyrillic": "Kyrillisch", - "Punctuation": "Satzzeichen", - "Currency": "Währung", - "Arrows": "Pfeile", - "Math": "Mathematik", - "Misc": "Sonstige", - - // Print. - "Print": "Drucken", - - // Spell Checker. - "Spell Checker": "Rechtschreibprüfung", - - // Help - "Help": "Hilfe", - "Shortcuts": "Verknüpfungen", - "Inline Editor": "Inline-Editor", - "Show the editor": "Editor anzeigen", - "Common actions": "Häufig verwendete Befehle", - "Copy": "Kopieren", - "Cut": "Ausschneiden", - "Paste": "Einfügen", - "Basic Formatting": "Grundformatierung", - "Increase quote level": "Zitatniveau erhöhen", - "Decrease quote level": "Zitatniveau verringern", - "Image / Video": "Bild / Video", - "Resize larger": "Vergrößern", - "Resize smaller": "Verkleinern", - "Table": "Tabelle", - "Select table cell": "Tabellenzelle auswählen", - "Extend selection one cell": "Erweitere Auswahl um eine Zelle", - "Extend selection one row": "Erweitere Auswahl um eine Zeile", - "Navigation": "Navigation", - "Focus popup / toolbar": "Fokus-Popup / Symbolleiste", - "Return focus to previous position": "Fokus auf vorherige Position", - - // Embed.ly - "Embed URL": "URL einbetten", - "Paste in a URL to embed": "URL einfügen um sie einzubetten", - - // Word Paste. - "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Der eingefügte Inhalt kommt aus einem Microsoft Word-Dokument. Möchten Sie die Formatierungen behalten oder verwerfen?", - "Keep": "Behalten", - "Clean": "Bereinigen", - "Word Paste Detected": "Aus Word einfügen" - }, - direction: "ltr" -}; - -})); diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/languages/en_ca.js b/Mobile.Search.Web/Scripts/froala-editor/js/languages/en_ca.js deleted file mode 100644 index 8044fd8..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/languages/en_ca.js +++ /dev/null @@ -1,262 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = function( root, jQuery ) { - if ( jQuery === undefined ) { - // require('jQuery') returns a factory that requires window to - // build a jQuery instance, we normalize how we use modules - // that require this pattern but the window provided is a noop - // if it's defined (how jquery works) - if ( typeof window !== 'undefined' ) { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - return factory(jQuery); - }; - } else { - // Browser globals - factory(window.jQuery); - } -}(function ($) { -/** - * English spoken in Canada - */ - -$.FE.LANGUAGE['en_ca'] = { - translation: { - // Place holder - "Type something": "Type something", - - // Basic formatting - "Bold": "Bold", - "Italic": "Italic", - "Underline": "Underline", - "Strikethrough": "Strikethrough", - - // Main buttons - "Insert": "Insert", - "Delete": "Delete", - "Cancel": "Cancel", - "OK": "OK", - "Back": "Back", - "Remove": "Remove", - "More": "More", - "Update": "Update", - "Style": "Style", - - // Font - "Font Family": "Font Family", - "Font Size": "Font Size", - - // Colors - "Colors": "Colours", - "Background": "Background", - "Text": "Text", - "HEX Color": "HEX Colour", - - // Paragraphs - "Paragraph Format": "Paragraph Format", - "Normal": "Normal", - "Code": "Code", - "Heading 1": "Heading 1", - "Heading 2": "Heading 2", - "Heading 3": "Heading 3", - "Heading 4": "Heading 4", - - // Style - "Paragraph Style": "Paragraph Style", - "Inline Style": "Inline Style", - - // Alignment - "Align": "Align", - "Align Left": "Align Left", - "Align Center": "Align Centre", - "Align Right": "Alight Right", - "Align Justify": "Align Justify", - "None": "None", - - // Lists - "Ordered List": "Ordered List", - "Unordered List": "Unordered List", - - // Indent - "Decrease Indent": "Decrease Indent", - "Increase Indent": "Increase Indent", - - // Links - "Insert Link": "Insert Link", - "Open in new tab": "Open in new tab", - "Open Link": "Open Link", - "Edit Link": "Edit Link", - "Unlink": "Unlink", - "Choose Link": "Choose Link", - - // Images - "Insert Image": "Insert Image", - "Upload Image": "Upload Image", - "By URL": "By URL", - "Browse": "Browse", - "Drop image": "Drop image", - "or click": "or click", - "Manage Images": "Manage Images", - "Loading": "Loading", - "Deleting": "Deleting", - "Tags": "Tags", - "Are you sure? Image will be deleted.": "Are you sure? Image will be deleted.", - "Replace": "Replace", - "Uploading": "Uploading", - "Loading image": "Loading image", - "Display": "Display", - "Inline": "Inline", - "Break Text": "Break Text", - "Alternate Text": "Alternate Text", - "Change Size": "Change Size", - "Width": "Width", - "Height": "Height", - "Something went wrong. Please try again.": "Something went wrong. Please try again.", - "Image Caption": "Image Caption", - "Advanced Edit": "Advanced Edit", - - // Video - "Insert Video": "Insert Video", - "Embedded Code": "Embedded Code", - "Paste in a video URL": "Paste in a video URL", - "Drop video": "Drop video", - "Your browser does not support HTML5 video.": "Your browser does not support HTML5 video.", - "Upload Video": "Upload Video", - - // Tables - "Insert Table": "Insert Table", - "Table Header": "Table Header", - "Remove Table": "Remove Table", - "Table Style": "Table Style", - "Horizontal Align": "Horizontal Align", - "Row": "Row", - "Insert row above": "Insert row above", - "Insert row below": "Insert row below", - "Delete row": "Delete row", - "Column": "Column", - "Insert column before": "Insert column before", - "Insert column after": "Insert column after", - "Delete column": "Delete column", - "Cell": "Cell", - "Merge cells": "Merge cells", - "Horizontal split": "Horizontal split", - "Vertical split": "Vertical split", - "Cell Background": "Cell Background", - "Vertical Align": "Vertical Align", - "Top": "Top", - "Middle": "Middle", - "Bottom": "Bottom", - "Align Top": "Align Top", - "Align Middle": "Align Middle", - "Align Bottom": "Align Bottom", - "Cell Style": "Cell Style", - - // Files - "Upload File": "Upload File", - "Drop file": "Drop file", - - // Emoticons - "Emoticons": "Emoticons", - - // Line breaker - "Break": "Break", - - // Math - "Subscript": "Subscript", - "Superscript": "Superscript", - - // Full screen - "Fullscreen": "Fullscreen", - - // Horizontal line - "Insert Horizontal Line": "Insert Horizontal Line", - - // Clear formatting - "Clear Formatting": "Cell Formatting", - - // Undo, redo - "Undo": "Undo", - "Redo": "Redo", - - // Select all - "Select All": "Select All", - - // Code view - "Code View": "Code View", - - // Quote - "Quote": "Quote", - "Increase": "Increase", - "Decrease": "Decrease", - - // Quick Insert - "Quick Insert": "Quick Insert", - - // Spcial Characters - "Special Characters": "Special Characters", - "Latin": "Latin", - "Greek": "Greek", - "Cyrillic": "Cyrillic", - "Punctuation": "Punctuation", - "Currency": "Currency", - "Arrows": "Arrows", - "Math": "Math", - "Misc": "Misc", - - // Print. - "Print": "Print", - - // Spell Checker. - "Spell Checker": "Spell Checker", - - // Help - "Help": "Help", - "Shortcuts": "Shortcuts", - "Inline Editor": "Inline Editor", - "Show the editor": "Show the editor", - "Common actions": "Common actions", - "Copy": "Copy", - "Cut": "Cut", - "Paste": "Paste", - "Basic Formatting": "Basic Formatting", - "Increase quote level": "Increase quote level", - "Decrease quote level": "Decrease quote level", - "Image / Video": "Image / Video", - "Resize larger": "Resize larger", - "Resize smaller": "Resize smaller", - "Table": "Table", - "Select table cell": "Select table cell", - "Extend selection one cell": "Extend selection one cell", - "Extend selection one row": "Extend selection one row", - "Navigation": "Navigation", - "Focus popup / toolbar": "Focus popup / toolbar", - "Return focus to previous position": "Return focus to previous position", - - // Embed.ly - "Embed URL": "Embed URL", - "Paste in a URL to embed": "Paste in a URL to embed", - - // Word Paste. - "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?", - "Keep": "Keep", - "Clean": "Clean", - "Word Paste Detected": "Word Paste Detected" - }, - direction: "ltr" -}; - -})); diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/languages/en_gb.js b/Mobile.Search.Web/Scripts/froala-editor/js/languages/en_gb.js deleted file mode 100644 index 9722aaf..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/languages/en_gb.js +++ /dev/null @@ -1,262 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = function( root, jQuery ) { - if ( jQuery === undefined ) { - // require('jQuery') returns a factory that requires window to - // build a jQuery instance, we normalize how we use modules - // that require this pattern but the window provided is a noop - // if it's defined (how jquery works) - if ( typeof window !== 'undefined' ) { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - return factory(jQuery); - }; - } else { - // Browser globals - factory(window.jQuery); - } -}(function ($) { -/** - * English spoken in Great Britain - */ - -$.FE.LANGUAGE['en_gb'] = { - translation: { - // Place holder - "Type something": "Type something", - - // Basic formatting - "Bold": "Bold", - "Italic": "Italic", - "Underline": "Underline", - "Strikethrough": "Strikethrough", - - // Main buttons - "Insert": "Insert", - "Delete": "Delete", - "Cancel": "Cancel", - "OK": "OK", - "Back": "Back", - "Remove": "Remove", - "More": "More", - "Update": "Update", - "Style": "Style", - - // Font - "Font Family": "Font Family", - "Font Size": "Font Size", - - // Colors - "Colors": "Colours", - "Background": "Background", - "Text": "Text", - "HEX Color": "HEX Colour", - - // Paragraphs - "Paragraph Format": "Paragraph Format", - "Normal": "Normal", - "Code": "Code", - "Heading 1": "Heading 1", - "Heading 2": "Heading 2", - "Heading 3": "Heading 3", - "Heading 4": "Heading 4", - - // Style - "Paragraph Style": "Paragraph Style", - "Inline Style": "Inline Style", - - // Alignment - "Align": "Align", - "Align Left": "Align Left", - "Align Center": "Align Centre", - "Align Right": "Alight Right", - "Align Justify": "Align Justify", - "None": "None", - - // Lists - "Ordered List": "Ordered List", - "Unordered List": "Unordered List", - - // Indent - "Decrease Indent": "Decrease Indent", - "Increase Indent": "Increase Indent", - - // Links - "Insert Link": "Insert Link", - "Open in new tab": "Open in new tab", - "Open Link": "Open Link", - "Edit Link": "Edit Link", - "Unlink": "Unlink", - "Choose Link": "Choose Link", - - // Images - "Insert Image": "Insert Image", - "Upload Image": "Upload Image", - "By URL": "By URL", - "Browse": "Browse", - "Drop image": "Drop image", - "or click": "or click", - "Manage Images": "Manage Images", - "Loading": "Loading", - "Deleting": "Deleting", - "Tags": "Tags", - "Are you sure? Image will be deleted.": "Are you sure? Image will be deleted.", - "Replace": "Replace", - "Uploading": "Uploading", - "Loading image": "Loading image", - "Display": "Display", - "Inline": "Inline", - "Break Text": "Break Text", - "Alternate Text": "Alternate Text", - "Change Size": "Change Size", - "Width": "Width", - "Height": "Height", - "Something went wrong. Please try again.": "Something went wrong. Please try again.", - "Image Caption": "Image Caption", - "Advanced Edit": "Advanced Edit", - - // Video - "Insert Video": "Insert Video", - "Embedded Code": "Embedded Code", - "Paste in a video URL": "Paste in a video URL", - "Drop video": "Drop video", - "Your browser does not support HTML5 video.": "Your browser does not support HTML5 video.", - "Upload Video": "Upload Video", - - // Tables - "Insert Table": "Insert Table", - "Table Header": "Table Header", - "Remove Table": "Remove Table", - "Table Style": "Table Style", - "Horizontal Align": "Horizontal Align", - "Row": "Row", - "Insert row above": "Insert row above", - "Insert row below": "Insert row below", - "Delete row": "Delete row", - "Column": "Column", - "Insert column before": "Insert column before", - "Insert column after": "Insert column after", - "Delete column": "Delete column", - "Cell": "Cell", - "Merge cells": "Merge cells", - "Horizontal split": "Horizontal split", - "Vertical split": "Vertical split", - "Cell Background": "Cell Background", - "Vertical Align": "Vertical Align", - "Top": "Top", - "Middle": "Middle", - "Bottom": "Bottom", - "Align Top": "Align Top", - "Align Middle": "Align Middle", - "Align Bottom": "Align Bottom", - "Cell Style": "Cell Style", - - // Files - "Upload File": "Upload File", - "Drop file": "Drop file", - - // Emoticons - "Emoticons": "Emoticons", - - // Line breaker - "Break": "Break", - - // Math - "Subscript": "Subscript", - "Superscript": "Superscript", - - // Full screen - "Fullscreen": "Fullscreen", - - // Horizontal line - "Insert Horizontal Line": "Insert Horizontal Line", - - // Clear formatting - "Clear Formatting": "Cell Formatting", - - // Undo, redo - "Undo": "Undo", - "Redo": "Redo", - - // Select all - "Select All": "Select All", - - // Code view - "Code View": "Code View", - - // Quote - "Quote": "Quote", - "Increase": "Increase", - "Decrease": "Decrease", - - // Quick Insert - "Quick Insert": "Quick Insert", - - // Spcial Characters - "Special Characters": "Special Characters", - "Latin": "Latin", - "Greek": "Greek", - "Cyrillic": "Cyrillic", - "Punctuation": "Punctuation", - "Currency": "Currency", - "Arrows": "Arrows", - "Math": "Math", - "Misc": "Misc", - - // Print. - "Print": "Print", - - // Spell Checker. - "Spell Checker": "Spell Checker", - - // Help - "Help": "Help", - "Shortcuts": "Shortcuts", - "Inline Editor": "Inline Editor", - "Show the editor": "Show the editor", - "Common actions": "Common actions", - "Copy": "Copy", - "Cut": "Cut", - "Paste": "Paste", - "Basic Formatting": "Basic Formatting", - "Increase quote level": "Increase quote level", - "Decrease quote level": "Decrease quote level", - "Image / Video": "Image / Video", - "Resize larger": "Resize larger", - "Resize smaller": "Resize smaller", - "Table": "Table", - "Select table cell": "Select table cell", - "Extend selection one cell": "Extend selection one cell", - "Extend selection one row": "Extend selection one row", - "Navigation": "Navigation", - "Focus popup / toolbar": "Focus popup / toolbar", - "Return focus to previous position": "Return focus to previous position", - - // Embed.ly - "Embed URL": "Embed URL", - "Paste in a URL to embed": "Paste in a URL to embed", - - // Word Paste. - "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?", - "Keep": "Keep", - "Clean": "Clean", - "Word Paste Detected": "Word Paste Detected" - }, - direction: "ltr" -}; - -})); diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/languages/es.js b/Mobile.Search.Web/Scripts/froala-editor/js/languages/es.js deleted file mode 100644 index 9046cad..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/languages/es.js +++ /dev/null @@ -1,318 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = function( root, jQuery ) { - if ( jQuery === undefined ) { - // require('jQuery') returns a factory that requires window to - // build a jQuery instance, we normalize how we use modules - // that require this pattern but the window provided is a noop - // if it's defined (how jquery works) - if ( typeof window !== 'undefined' ) { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - return factory(jQuery); - }; - } else { - // Browser globals - factory(window.jQuery); - } -}(function ($) { -/** - * Spanish - */ - -$.FE.LANGUAGE['es'] = { - translation: { - // Place holder - "Type something": "Escriba algo", - - // Basic formatting - "Bold": "Negrita", - "Italic": "It\u00e1lica", - "Underline": "Subrayado", - "Strikethrough": "Tachado", - - // Main buttons - "Insert": "Insertar", - "Delete": "Borrar", - "Cancel": "Cancelar", - "OK": "Ok", - "Back": "Atr\u00e1s", - "Remove": "Quitar", - "More": "M\u00e1s", - "Update": "Actualizaci\u00f3n", - "Style": "Estilo", - - // Font - "Font Family": "Familia de fuentes", - "Font Size": "Tama\u00f1o de fuente", - - // Colors - "Colors": "Colores", - "Background": "Fondo", - "Text": "Texto", - "HEX Color": "Color hexadecimal", - - // Paragraphs - "Paragraph Format": "Formato de p\u00e1rrafo", - "Normal": "Normal", - "Code": "C\u00f3digo", - "Heading 1": "Encabezado 1", - "Heading 2": "Encabezado 2", - "Heading 3": "Encabezado 3", - "Heading 4": "Encabezado 4", - - // Style - "Paragraph Style": "Estilo de p\u00e1rrafo", - "Inline Style": "Estilo en l\u00ednea", - - // Alignment - "Align": "Alinear", - "Align Left": "Alinear a la izquierda", - "Align Center": "Alinear al centro", - "Align Right": "Alinear a la derecha", - "Align Justify": "Justificar", - "None": "Ninguno", - - // Lists - "Ordered List": "Lista ordenada", - "Unordered List": "Lista desordenada", - - // Indent - "Decrease Indent": "Reducir sangr\u00eda", - "Increase Indent": "Aumentar sangr\u00eda", - - // Links - "Insert Link": "Insertar enlace", - "Open in new tab": "Abrir en una nueva pesta\u00F1a", - "Open Link": "Abrir enlace", - "Edit Link": "Editar enlace", - "Unlink": "Quitar enlace", - "Choose Link": "Elegir enlace", - - // Images - "Insert Image": "Insertar imagen", - "Upload Image": "Cargar imagen", - "By URL": "Por URL", - "Browse": "Examinar", - "Drop image": "Soltar la imagen", - "or click": "o haga clic en", - "Manage Images": "Administrar im\u00e1genes", - "Loading": "Cargando", - "Deleting": "Borrado", - "Tags": "Etiquetas", - "Are you sure? Image will be deleted.": "\u00bfEst\u00e1 seguro? Imagen ser\u00e1 borrada.", - "Replace": "Reemplazar", - "Uploading": "Carga", - "Loading image": "Cargando imagen", - "Display": "Mostrar", - "Inline": "En l\u00ednea", - "Break Text": "Romper texto", - "Alternate Text": "Texto alternativo", - "Change Size": "Cambiar tama\u00f1o", - "Width": "Ancho", - "Height": "Altura", - "Something went wrong. Please try again.": "Algo sali\u00f3 mal. Por favor, vuelva a intentarlo.", - "Image Caption": "Captura de imagen", - "Advanced Edit": "Edición avanzada", - - // Video - "Insert Video": "Insertar video", - "Embedded Code": "C\u00f3digo incrustado", - "Paste in a video URL": "Pegar en una URL de video", - "Drop video": "Soltar video", - "Your browser does not support HTML5 video.": "Su navegador no es compatible con video html5.", - "Upload Video": "Subir video", - - // Tables - "Insert Table": "Insertar tabla", - "Table Header": "Encabezado de la tabla", - "Remove Table": "Retire la tabla", - "Table Style": "Estilo de tabla", - "Horizontal Align": "Alinear horizontal", - "Row": "Fila", - "Insert row above": "Insertar fila antes", - "Insert row below": "Insertar fila despu\u00e9s", - "Delete row": "Eliminar fila", - "Column": "Columna", - "Insert column before": "Insertar columna antes", - "Insert column after": "Insertar columna despu\u00e9s", - "Delete column": "Eliminar columna", - "Cell": "Celda", - "Merge cells": "Combinar celdas", - "Horizontal split": "Divisi\u00f3n horizontal", - "Vertical split": "Divisi\u00f3n vertical", - "Cell Background": "Fondo de la celda", - "Vertical Align": "Alinear vertical", - "Top": "Cima", - "Middle": "Medio", - "Bottom": "Del fondo", - "Align Top": "Alinear a la parte superior", - "Align Middle": "Alinear media", - "Align Bottom": "Alinear abajo", - "Cell Style": "Estilo de celda", - - // Files - "Upload File": "Subir archivo", - "Drop file": "Soltar archivo", - - // Emoticons - "Emoticons": "Emoticones", - "Grinning face": "Sonriendo cara", - "Grinning face with smiling eyes": "Sonriendo cara con ojos sonrientes", - "Face with tears of joy": "Cara con l\u00e1grimas de alegr\u00eda", - "Smiling face with open mouth": "Cara sonriente con la boca abierta", - "Smiling face with open mouth and smiling eyes": "Cara sonriente con la boca abierta y los ojos sonrientes", - "Smiling face with open mouth and cold sweat": "Cara sonriente con la boca abierta y el sudor fr\u00edo", - "Smiling face with open mouth and tightly-closed eyes": "Cara sonriente con la boca abierta y los ojos fuertemente cerrados", - "Smiling face with halo": "Cara sonriente con halo", - "Smiling face with horns": "Cara sonriente con cuernos", - "Winking face": "Gui\u00f1o de la cara", - "Smiling face with smiling eyes": "Cara sonriente con ojos sonrientes", - "Face savoring delicious food": "Care saborear una deliciosa comida", - "Relieved face": "Cara Aliviado", - "Smiling face with heart-shaped eyes": "Cara sonriente con los ojos en forma de coraz\u00f3n", - "Smiling face with sunglasses": "Cara sonriente con gafas de sol", - "Smirking face": "Sonriendo cara", - "Neutral face": "Cara neutral", - "Expressionless face": "Rostro inexpresivo", - "Unamused face": "Cara no divertido", - "Face with cold sweat": "Cara con sudor fr\u00edo", - "Pensive face": "Rostro pensativo", - "Confused face": "Cara confusa", - "Confounded face": "Cara Averg\u00fc\u00e9ncense", - "Kissing face": "Besar la cara", - "Face throwing a kiss": "Cara lanzando un beso", - "Kissing face with smiling eyes": "Besar a cara con ojos sonrientes", - "Kissing face with closed eyes": "Besar a cara con los ojos cerrados", - "Face with stuck out tongue": "Cara con la lengua pegada", - "Face with stuck out tongue and winking eye": "Cara con pegado a la lengua y los ojos gui\u00f1o", - "Face with stuck out tongue and tightly-closed eyes": "Cara con la lengua pegada a y los ojos fuertemente cerrados", - "Disappointed face": "Cara decepcionado", - "Worried face": "Cara de preocupaci\u00f3n", - "Angry face": "Cara enojada", - "Pouting face": "Que pone mala cara", - "Crying face": "Cara llorando", - "Persevering face": "Perseverar cara", - "Face with look of triumph": "Cara con expresi\u00f3n de triunfo", - "Disappointed but relieved face": "Decepcionado pero el rostro aliviado", - "Frowning face with open mouth": "Con el ce\u00f1o fruncido la cara con la boca abierta", - "Anguished face": "Rostro angustiado", - "Fearful face": "Cara Temeroso", - "Weary face": "Rostro cansado", - "Sleepy face": "Rostro so\u00f1oliento", - "Tired face": "Rostro cansado", - "Grimacing face": "Haciendo una mueca cara", - "Loudly crying face": "Llorando en voz alta la cara", - "Face with open mouth": "Cara con la boca abierta", - "Hushed face": "Cara callada", - "Face with open mouth and cold sweat": "Cara con la boca abierta y el sudor frío", - "Face screaming in fear": "Cara gritando de miedo", - "Astonished face": "Cara asombrosa", - "Flushed face": "Cara enrojecida", - "Sleeping face": "Rostro dormido", - "Dizzy face": "Cara Mareado", - "Face without mouth": "Cara sin boca", - "Face with medical mask": "Cara con la m\u00e1scara m\u00e9dica", - - // Line breaker - "Break": "Romper", - - // Math - "Subscript": "Sub\u00edndice", - "Superscript": "Super\u00edndice", - - // Full screen - "Fullscreen": "Pantalla completa", - - // Horizontal line - "Insert Horizontal Line": "Insertar l\u00ednea horizontal", - - // Clear formatting - "Clear Formatting": "Quitar el formato", - - // Undo, redo - "Undo": "Deshacer", - "Redo": "Rehacer", - - // Select all - "Select All": "Seleccionar todo", - - // Code view - "Code View": "Vista de c\u00f3digo", - - // Quote - "Quote": "Cita", - "Increase": "Aumentar", - "Decrease": "Disminuci\u00f3n", - - // Quick Insert - "Quick Insert": "Inserci\u00f3n r\u00e1pida", - - // Spcial Characters - "Special Characters": "Caracteres especiales", - "Latin": "Latín", - "Greek": "Griego", - "Cyrillic": "Cirílico", - "Punctuation": "Puntuación", - "Currency": "Moneda", - "Arrows": "Flechas", - "Math": "Mates", - "Misc": "Misc", - - // Print. - "Print": "Impresión", - - // Spell Checker. - "Spell Checker": "Corrector ortográfico", - - // Help - "Help": "Ayuda", - "Shortcuts": "Atajos", - "Inline Editor": "Editor en línea", - "Show the editor": "Mostrar al editor", - "Common actions": "Acciones comunes", - "Copy": "Dupdo", - "Cut": "Cortar", - "Paste": "Pegar", - "Basic Formatting": "Formato básico", - "Increase quote level": "Aumentar el nivel de cotización", - "Decrease quote level": "Disminuir el nivel de cotización", - "Image / Video": "Imagen / video", - "Resize larger": "Redimensionar más grande", - "Resize smaller": "Redimensionar más pequeño", - "Table": "Mesa", - "Select table cell": "Celda de tabla select", - "Extend selection one cell": "Ampliar la selección una celda", - "Extend selection one row": "Ampliar la selección una fila", - "Navigation": "Navegación", - "Focus popup / toolbar": "Focus popup / toolbar", - "Return focus to previous position": "Volver al foco a la posición anterior", - - // Embed.ly - "Embed URL": "URL de inserción", - "Paste in a URL to embed": "Pegar en una url para incrustar", - - // Word Paste. - "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "El contenido pegado viene de un documento de Microsoft Word. ¿Quieres mantener el formato o limpiarlo?", - "Keep": "Guardar", - "Clean": "Limpiar", - "Word Paste Detected": "Palabra detectada" - }, - direction: "ltr" -}; - -})); diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/languages/et.js b/Mobile.Search.Web/Scripts/froala-editor/js/languages/et.js deleted file mode 100644 index 5bd15cb..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/languages/et.js +++ /dev/null @@ -1,318 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = function( root, jQuery ) { - if ( jQuery === undefined ) { - // require('jQuery') returns a factory that requires window to - // build a jQuery instance, we normalize how we use modules - // that require this pattern but the window provided is a noop - // if it's defined (how jquery works) - if ( typeof window !== 'undefined' ) { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - return factory(jQuery); - }; - } else { - // Browser globals - factory(window.jQuery); - } -}(function ($) { -/** - * Estonian - */ - -$.FE.LANGUAGE['et'] = { - translation: { - // Place holder - "Type something": "Kirjuta midagi", - - // Basic formatting - "Bold": "Rasvane", - "Italic": "Kursiiv", - "Underline": "Allajoonitud", - "Strikethrough": "L\u00e4bikriipsutatud", - - // Main buttons - "Insert": "Lisa", - "Delete": "Kustuta", - "Cancel": "T\u00fchista", - "OK": "OK", - "Back": "Tagasi", - "Remove": "Eemaldama", - "More": "Rohkem", - "Update": "Ajakohastama", - "Style": "Stiil", - - // Font - "Font Family": "Fondi perekond", - "Font Size": "Fondi suurus", - - // Colors - "Colors": "V\u00e4rvid", - "Background": "Taust", - "Text": "Tekst", - "HEX Color": "Hex värvi", - - // Paragraphs - "Paragraph Format": "Paragrahv formaat", - "Normal": "Normaalne", - "Code": "Kood", - "Heading 1": "P\u00e4is 1", - "Heading 2": "P\u00e4is 2", - "Heading 3": "P\u00e4is 3", - "Heading 4": "P\u00e4is 4", - - // Style - "Paragraph Style": "Paragrahv stiil", - "Inline Style": "J\u00e4rjekorras stiil", - - // Alignment - "Align": "Joonda", - "Align Left": "Joonda vasakule", - "Align Center": "Joonda keskele", - "Align Right": "Joonda paremale", - "Align Justify": "R\u00f6\u00f6pjoondus", - "None": "Mitte \u00fckski", - - // Lists - "Ordered List": "Tellitud nimekirja", - "Unordered List": "Tavalise nimekirja", - - // Indent - "Decrease Indent": "V\u00e4henemine taane", - "Increase Indent": "Suurenda taanet", - - // Links - "Insert Link": "Lisa link", - "Open in new tab": "Ava uues sakis", - "Open Link": "Avatud link", - "Edit Link": "Muuda link", - "Unlink": "Eemalda link", - "Choose Link": "Vali link", - - // Images - "Insert Image": "Lisa pilt", - "Upload Image": "Laadige pilt", - "By URL": "Poolt URL", - "Browse": "sirvida", - "Drop image": "Aseta pilt", - "or click": "v\u00f5i kliki", - "Manage Images": "Halda pilte", - "Loading": "Laadimine", - "Deleting": "Kustutamine", - "Tags": "Sildid", - "Are you sure? Image will be deleted.": "Oled sa kindel? Pilt kustutatakse.", - "Replace": "Asendama", - "Uploading": "Laadimise pilti", - "Loading image": "Laadimise pilti", - "Display": "Kuvama", - "Inline": "J\u00e4rjekorras", - "Break Text": "Murdma teksti", - "Alternate Text": "Asendusliikme teksti", - "Change Size": "Muuda suurust", - "Width": "Laius", - "Height": "K\u00f5rgus", - "Something went wrong. Please try again.": "Midagi l\u00e4ks valesti. Palun proovi uuesti.", - "Image Caption": "Pildi pealkiri", - "Advanced Edit": "Täiustatud redigeerimine", - - // Video - "Insert Video": "Lisa video", - "Embedded Code": "Varjatud koodi", - "Paste in a video URL": "Kleebi video URL-i", - "Drop video": "Tilk videot", - "Your browser does not support HTML5 video.": "Teie brauser ei toeta html5-videot.", - "Upload Video": "Video üleslaadimine", - - // Tables - "Insert Table": "Sisesta tabel", - "Table Header": "Tabel p\u00e4ise kaudu", - "Remove Table": "Eemalda tabel", - "Table Style": "Tabel stiili", - "Horizontal Align": "Horisontaalne joonda", - "Row": "Rida", - "Insert row above": "Sisesta rida \u00fcles", - "Insert row below": "Sisesta rida alla", - "Delete row": "Kustuta rida", - "Column": "Veerg", - "Insert column before": "Sisesta veerg ette", - "Insert column after": "Sisesta veerg j\u00e4rele", - "Delete column": "Kustuta veerg", - "Cell": "Lahter", - "Merge cells": "\u00fchenda lahtrid", - "Horizontal split": "Poolita horisontaalselt", - "Vertical split": "Poolita vertikaalselt", - "Cell Background": "Lahter tausta", - "Vertical Align": "Vertikaalne joonda", - "Top": "\u00fclemine", - "Middle": "Keskmine", - "Bottom": "P\u00f5hi", - "Align Top": "Joonda \u00fclemine", - "Align Middle": "Joonda keskmine", - "Align Bottom": "Joonda P\u00f5hi", - "Cell Style": "Lahter stiili", - - // Files - "Upload File": "Lae fail \u00fcles", - "Drop file": "Aseta fail", - - // Emoticons - "Emoticons": "Emotikonid", - "Grinning face": "Irvitas n\u00e4kku", - "Grinning face with smiling eyes": "Irvitas n\u00e4kku naeratavad silmad", - "Face with tears of joy": "N\u00e4gu r\u00f5\u00f5mupisaratega", - "Smiling face with open mouth": "Naeratav n\u00e4gu avatud suuga", - "Smiling face with open mouth and smiling eyes": "Naeratav n\u00e4gu avatud suu ja naeratavad silmad", - "Smiling face with open mouth and cold sweat": "Naeratav n\u00e4gu avatud suu ja k\u00fclm higi", - "Smiling face with open mouth and tightly-closed eyes": "Naeratav n\u00e4gu avatud suu ja tihedalt suletud silmad", - "Smiling face with halo": "Naeratav n\u00e4gu halo", - "Smiling face with horns": "Naeratav n\u00e4gu sarved", - "Winking face": "Pilgutab n\u00e4gu", - "Smiling face with smiling eyes": "Naeratav n\u00e4gu naeratab silmad", - "Face savoring delicious food": "N\u00e4gu nautides maitsvat toitu", - "Relieved face": "P\u00e4\u00e4stetud n\u00e4gu", - "Smiling face with heart-shaped eyes": "Naeratav n\u00e4gu s\u00fcdajas silmad", - "Smiling face with sunglasses": "Naeratav n\u00e4gu p\u00e4ikeseprillid", - "Smirking face": "Muigama n\u00e4gu ", - "Neutral face": "Neutraalne n\u00e4gu", - "Expressionless face": "Ilmetu n\u00e4gu", - "Unamused face": "Morn n\u00e4gu", - "Face with cold sweat": "N\u00e4gu k\u00fclma higiga", - "Pensive face": "M\u00f5tlik n\u00e4gu", - "Confused face": "Segaduses n\u00e4gu", - "Confounded face": "Segas n\u00e4gu", - "Kissing face": "Suudlevad n\u00e4gu", - "Face throwing a kiss": "N\u00e4gu viskamine suudlus", - "Kissing face with smiling eyes": "Suudlevad n\u00e4gu naeratab silmad", - "Kissing face with closed eyes": "Suudlevad n\u00e4gu, silmad kinni", - "Face with stuck out tongue": "N\u00e4gu ummikus v\u00e4lja keele", - "Face with stuck out tongue and winking eye": "N\u00e4gu ummikus v\u00e4lja keele ja silma pilgutav silma", - "Face with stuck out tongue and tightly-closed eyes": "N\u00e4gu ummikus v\u00e4lja keele ja silmad tihedalt suletuna", - "Disappointed face": "Pettunud n\u00e4gu", - "Worried face": "Mures n\u00e4gu", - "Angry face": "Vihane n\u00e4gu", - "Pouting face": "Tursik n\u00e4gu", - "Crying face": "Nutt n\u00e4gu", - "Persevering face": "Püsiv n\u00e4gu", - "Face with look of triumph": "N\u00e4gu ilme triumf", - "Disappointed but relieved face": "Pettunud kuid vabastati n\u00e4gu", - "Frowning face with open mouth": "Kulmukortsutav n\u00e4gu avatud suuga", - "Anguished face": "Ahastavad n\u00e4gu", - "Fearful face": "Hirmunult n\u00e4gu", - "Weary face": "Grimasse", - "Sleepy face": "Unine n\u00e4gu", - "Tired face": "V\u00e4sinud n\u00e4gu", - "Grimacing face": "Grimassitavaks n\u00e4gu", - "Loudly crying face": "Valjusti nutma n\u00e4gu", - "Face with open mouth": "N\u00e4gu avatud suuga", - "Hushed face": "Raskel n\u00e4gu", - "Face with open mouth and cold sweat": "N\u00e4gu avatud suu ja k\u00fclm higi", - "Face screaming in fear": "N\u00e4gu karjuvad hirm", - "Astonished face": "Lummatud n\u00e4gu", - "Flushed face": "Punetav n\u00e4gu", - "Sleeping face": "Uinuv n\u00e4gu", - "Dizzy face": "Uimane n\u00fcgu", - "Face without mouth": "N\u00e4gu ilma suu", - "Face with medical mask": "N\u00e4gu meditsiinilise mask", - - // Line breaker - "Break": "Murdma", - - // Math - "Subscript": "Allindeks", - "Superscript": "\u00dclaindeks", - - // Full screen - "Fullscreen": "T\u00e4isekraanil", - - // Horizontal line - "Insert Horizontal Line": "Sisesta horisontaalne joon", - - // Clear formatting - "Clear Formatting": "Eemalda formaatimine", - - // Undo, redo - "Undo": "V\u00f5ta tagasi", - "Redo": "Tee uuesti", - - // Select all - "Select All": "Vali k\u00f5ik", - - // Code view - "Code View": "Koodi vaadata", - - // Quote - "Quote": "Tsitaat", - "Increase": "Suurendama", - "Decrease": "V\u00e4henda", - - // Quick Insert - "Quick Insert": "Kiire sisestada", - - // Spcial Characters - "Special Characters": "Erimärgid", - "Latin": "Latin", - "Greek": "Kreeka keel", - "Cyrillic": "Kirillitsa", - "Punctuation": "Kirjavahemärgid", - "Currency": "Valuuta", - "Arrows": "Nooled", - "Math": "Matemaatika", - "Misc": "Misc", - - // Print. - "Print": "Printige", - - // Spell Checker. - "Spell Checker": "Õigekirja kontrollija", - - // Help - "Help": "Abi", - "Shortcuts": "Otseteed", - "Inline Editor": "Sisemine redaktor", - "Show the editor": "Näita redaktorit", - "Common actions": "Ühised meetmed", - "Copy": "Koopia", - "Cut": "Lõigake", - "Paste": "Kleepige", - "Basic Formatting": "Põhiline vormindamine", - "Increase quote level": "Suurendada tsiteerimise taset", - "Decrease quote level": "Langetada tsiteerimise tase", - "Image / Video": "Pilt / video", - "Resize larger": "Suuruse muutmine suurem", - "Resize smaller": "Väiksema suuruse muutmine", - "Table": "Laud", - "Select table cell": "Vali tabeli lahtrisse", - "Extend selection one cell": "Laiendage valikut üks lahtrisse", - "Extend selection one row": "Laiendage valikut ühe reana", - "Navigation": "Navigeerimine", - "Focus popup / toolbar": "Fookuse hüpikakna / tööriistariba", - "Return focus to previous position": "Tagasi pöörata tähelepanu eelmisele positsioonile", - - // Embed.ly - "Embed URL": "Embed url", - "Paste in a URL to embed": "Kleepige URL-i sisestamiseks", - - // Word Paste. - "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Kleepitud sisu pärineb Microsoft Wordi dokumendist. kas soovite vormi säilitada või puhastada?", - "Keep": "Pidage seda", - "Clean": "Puhas", - "Word Paste Detected": "Avastatud sõna pasta" - }, - direction: "ltr" -}; - -})); diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/languages/fa.js b/Mobile.Search.Web/Scripts/froala-editor/js/languages/fa.js deleted file mode 100644 index d415e44..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/languages/fa.js +++ /dev/null @@ -1,318 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = function( root, jQuery ) { - if ( jQuery === undefined ) { - // require('jQuery') returns a factory that requires window to - // build a jQuery instance, we normalize how we use modules - // that require this pattern but the window provided is a noop - // if it's defined (how jquery works) - if ( typeof window !== 'undefined' ) { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - return factory(jQuery); - }; - } else { - // Browser globals - factory(window.jQuery); - } -}(function ($) { -/** - * Persian - */ - -$.FE.LANGUAGE['fa'] = { - translation: { - // Place holder - "Type something": "\u0686\u06cc\u0632\u06cc \u0628\u0646\u0648\u06cc\u0633\u06cc\u062f", - - // Basic formatting - "Bold": "\u0636\u062e\u06cc\u0645", - "Italic": "\u062e\u0637 \u06a9\u062c", - "Underline": "\u062e\u0637 \u0632\u06cc\u0631", - "Strikethrough": "\u062e\u0637 \u062e\u0648\u0631\u062f\u0647", - - // Main buttons - "Insert": "\u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646", - "Delete": "\u062d\u0630\u0641 \u06a9\u0631\u062f\u0646", - "Cancel": "\u0644\u063a\u0648", - "OK": "\u0628\u0627\u0634\u0647", - "Back": "\u0628\u0647 \u0639\u0642\u0628", - "Remove": "\u0628\u0631\u062f\u0627\u0634\u062a\u0646", - "More": "\u0628\u06cc\u0634\u062a\u0631", - "Update": "\u0628\u0647 \u0631\u0648\u0632 \u0631\u0633\u0627\u0646\u06cc", - "Style": "\u0633\u0628\u06a9", - - // Font - "Font Family": "\u0642\u0644\u0645", - "Font Size": "\u0627\u0646\u062f\u0627\u0632\u0647 \u0642\u0644\u0645", - - // Colors - "Colors": "\u0631\u0646\u06af", - "Background": "\u0632\u0645\u06cc\u0646\u0647 \u0645\u062a\u0646", - "Text": "\u0645\u062a\u0646", - "HEX Color": "شصت رنگ", - - // Paragraphs - "Paragraph Format": "\u0642\u0627\u0644\u0628", - "Normal": "\u0637\u0628\u06cc\u0639\u06cc - Normal", - "Code": "\u062f\u0633\u062a\u0648\u0631\u0627\u0644\u0639\u0645\u0644\u0647\u0627 - Code", - "Heading 1": "\u0633\u0631\u200c\u0635\u0641\u062d\u0647 1", - "Heading 2": "\u0633\u0631\u200c\u0635\u0641\u062d\u0647 2", - "Heading 3": "\u0633\u0631\u200c\u0635\u0641\u062d\u0647 3", - "Heading 4": "\u0633\u0631\u200c\u0635\u0641\u062d\u0647 4", - - // Style - "Paragraph Style": "\u067e\u0627\u0631\u0627\u06af\u0631\u0627\u0641 \u0633\u0628\u06a9", - "Inline Style": "\u062e\u0637\u06cc \u0633\u0628\u06a9", - - // Alignment - "Align": "\u0631\u062f\u06cc\u0641 \u0628\u0646\u062f\u06cc \u0646\u0648\u0634\u062a\u0647", - "Align Left": "\u0686\u067e \u0686\u06cc\u0646", - "Align Center": "\u0648\u0633\u0637 \u0686\u06cc\u0646", - "Align Right": "\u0631\u0627\u0633\u062a \u0686\u06cc\u0646", - "Align Justify": "\u0645\u0633\u0627\u0648\u06cc \u0627\u0632 \u0637\u0631\u0641\u06cc\u0646", - "None": "\u0647\u06cc\u0686", - - // Lists - "Ordered List": "\u0644\u06cc\u0633\u062a \u0634\u0645\u0627\u0631\u0647 \u0627\u06cc", - "Unordered List": "\u0644\u06cc\u0633\u062a \u062f\u0627\u06cc\u0631\u0647 \u0627\u06cc", - - // Indent - "Decrease Indent": "\u06a9\u0627\u0647\u0634 \u062a\u0648 \u0631\u0641\u062a\u06af\u06cc", - "Increase Indent": "\u0627\u0641\u0632\u0627\u06cc\u0634 \u062a\u0648 \u0631\u0641\u062a\u06af\u06cc", - - // Links - "Insert Link": "\u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 \u0644\u06cc\u0646\u06a9", - "Open in new tab": "\u0628\u0627\u0632 \u06a9\u0631\u062f\u0646 \u062f\u0631 \u0628\u0631\u06af\u0647 \u062c\u062f\u06cc\u062f", - "Open Link": "\u0644\u06cc\u0646\u06a9 \u0647\u0627\u06cc \u0628\u0627\u0632", - "Edit Link": "\u0644\u06cc\u0646\u06a9 \u0648\u06cc\u0631\u0627\u06cc\u0634", - "Unlink": "\u062d\u0630\u0641 \u0644\u06cc\u0646\u06a9", - "Choose Link": "\u0644\u06cc\u0646\u06a9 \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f", - - // Images - "Insert Image": "\u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 \u062a\u0635\u0648\u06cc\u0631", - "Upload Image": "\u0622\u067e\u0644\u0648\u062f \u062a\u0635\u0648\u06cc\u0631", - "By URL": "URL \u062a\u0648\u0633\u0637", - "Browse": "\u0641\u0647\u0631\u0633\u062a", - "Drop image": "\u062a\u0635\u0648\u06cc\u0631 \u0631\u0627 \u0627\u06cc\u0646\u062c\u0627 \u0628\u06cc\u0646\u062f\u0627\u0632\u06cc\u062f", - "or click": "\u06cc\u0627 \u06a9\u0644\u06cc\u06a9 \u06a9\u0646\u06cc\u062f", - "Manage Images": "\u0645\u062f\u06cc\u0631\u06cc\u062a \u062a\u0635\u0627\u0648\u06cc\u0631", - "Loading": "\u0628\u0627\u0631\u06af\u06cc\u0631\u06cc", - "Deleting": "\u062d\u0630\u0641", - "Tags": "\u0628\u0631\u0686\u0633\u0628 \u0647\u0627", - "Are you sure? Image will be deleted.": ".\u0622\u06cc\u0627 \u0645\u0637\u0645\u0626\u0646 \u0647\u0633\u062a\u06cc\u062f\u061f \u062a\u0635\u0648\u06cc\u0631 \u062d\u0630\u0641 \u062e\u0648\u0627\u0647\u062f \u0634\u062f", - "Replace": "\u062c\u0627\u06cc\u06af\u0632\u06cc\u0646 \u06a9\u0631\u062f\u0646", - "Uploading": "\u0622\u067e\u0644\u0648\u062f", - "Loading image": "\u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc \u062a\u0635\u0648\u06cc\u0631", - "Display": "\u0646\u0634\u0627\u0646 \u062f\u0627\u062f\u0646", - "Inline": "\u062e\u0637\u06cc", - "Break Text": "\u0634\u06a9\u0633\u062a\u0646 \u0627\u0633\u062a\u0631\u0627\u062d\u062a", - "Alternate Text": "\u0645\u062a\u0646 \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646", - "Change Size": "\u062a\u063a\u06cc\u06cc\u0631 \u0627\u0646\u062f\u0627\u0632\u0647", - "Width": "\u0639\u0631\u0636", - "Height": "\u0627\u0631\u062a\u0641\u0627\u0639", - "Something went wrong. Please try again.": "\u0686\u06cc\u0632\u06cc \u0631\u0627 \u0627\u0634\u062a\u0628\u0627\u0647 \u0631\u0641\u062a\u002e \u0644\u0637\u0641\u0627 \u062f\u0648\u0628\u0627\u0631\u0647 \u062a\u0644\u0627\u0634 \u06a9\u0646\u06cc\u062f\u002e", - "Image Caption": "عنوان تصویر", - "Advanced Edit": "ویرایش پیشرفته", - - // Video - "Insert Video": "\u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 \u0641\u0627\u06cc\u0644 \u062a\u0635\u0648\u06cc\u0631\u06cc", - "Embedded Code": "\u06a9\u062f \u062c\u0627\u0633\u0627\u0632\u06cc \u0634\u062f\u0647", - "Paste in a video URL": "در URL ویدیو وارد کنید", - "Drop video": "رها کردن ویدیو", - "Your browser does not support HTML5 video.": "مرورگر شما ویدیو HTML5 را پشتیبانی نمی کند.", - "Upload Video": "آپلود ویدیو", - - // Tables - "Insert Table": "\u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 \u062c\u062f\u0648\u0644", - "Table Header": "\u0647\u062f\u0631 \u062c\u062f\u0648\u0644", - "Remove Table": "\u062d\u0630\u0641 \u062c\u062f\u0648\u0644", - "Table Style": "\u0633\u0628\u06a9 \u062c\u062f\u0648\u0644", - "Horizontal Align": "\u062a\u0646\u0638\u06cc\u0645 \u0627\u0641\u0642\u06cc", - "Row": "\u0633\u0637\u0631", - "Insert row above": "\u062f\u0631\u062c \u0631\u062f\u06cc\u0641 \u062f\u0631 \u0628\u0627\u0644\u0627", - "Insert row below": "\u0633\u0637\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f", - "Delete row": "\u062d\u0630\u0641 \u0633\u0637\u0631", - "Column": "\u0633\u062a\u0648\u0646", - "Insert column before": "\u062f\u0631\u062c \u0633\u062a\u0648\u0646 \u0642\u0628\u0644", - "Insert column after": "\u062f\u0631\u062c \u0633\u062a\u0648\u0646 \u0628\u0639\u062f", - "Delete column": "\u062d\u0630\u0641 \u0633\u062a\u0648\u0646", - "Cell": "\u0633\u0644\u0648\u0644", - "Merge cells": "\u0627\u062f\u063a\u0627\u0645 \u0633\u0644\u0648\u0644\u200c\u0647\u0627", - "Horizontal split": "\u062a\u0642\u0633\u06cc\u0645 \u0627\u0641\u0642\u06cc", - "Vertical split": "\u062a\u0642\u0633\u06cc\u0645 \u0639\u0645\u0648\u062f\u06cc", - "Cell Background": "\u067e\u0633 \u0632\u0645\u06cc\u0646\u0647 \u0647\u0645\u0631\u0627\u0647", - "Vertical Align": "\u0631\u062f\u06cc\u0641 \u0639\u0645\u0648\u062f\u06cc", - "Top": "\u0628\u0627\u0644\u0627", - "Middle": "\u0645\u062a\u0648\u0633\u0637", - "Bottom": "\u067e\u0627\u06cc\u06cc\u0646", - "Align Top": "\u062a\u0631\u0627\u0632 \u0628\u0627\u0644\u0627\u06cc", - "Align Middle": "\u062a\u0631\u0627\u0632 \u0648\u0633\u0637", - "Align Bottom": "\u062a\u0631\u0627\u0632 \u067e\u0627\u06cc\u06cc\u0646", - "Cell Style": "\u0633\u0628\u06a9 \u0647\u0627\u06cc \u0647\u0645\u0631\u0627\u0647", - - // Files - "Upload File": "\u0622\u067e\u0644\u0648\u062f \u0641\u0627\u06cc\u0644", - "Drop file": "\u0627\u0641\u062a \u0641\u0627\u06cc\u0644", - - // Emoticons - "Emoticons": "\u0634\u06a9\u0644\u06a9 \u0647\u0627", - "Grinning face": "\u0686\u0647\u0631\u0647 \u067e\u0648\u0632\u062e\u0646\u062f", - "Grinning face with smiling eyes": "\u0686\u0647\u0631\u0647 \u067e\u0648\u0632\u062e\u0646\u062f \u0628\u0627 \u0686\u0634\u0645\u0627\u0646 \u062e\u0646\u062f\u0627\u0646", - "Face with tears of joy": "\u0686\u0647\u0631\u0647 \u0628\u0627 \u0627\u0634\u06a9 \u0634\u0627\u062f\u06cc", - "Smiling face with open mouth": "\u0686\u0647\u0631\u0647 \u062e\u0646\u062f\u0627\u0646 \u0628\u0627 \u062f\u0647\u0627\u0646 \u0628\u0627\u0632", - "Smiling face with open mouth and smiling eyes": "\u0686\u0647\u0631\u0647 \u062e\u0646\u062f\u0627\u0646 \u0628\u0627 \u062f\u0647\u0627\u0646 \u0628\u0627\u0632 \u0648 \u062e\u0646\u062f\u0627\u0646 \u0686\u0634\u0645", - "Smiling face with open mouth and cold sweat": "\u0686\u0647\u0631\u0647 \u062e\u0646\u062f\u0627\u0646 \u0628\u0627 \u062f\u0647\u0627\u0646 \u0628\u0627\u0632 \u0648 \u0639\u0631\u0642 \u0633\u0631\u062f", - "Smiling face with open mouth and tightly-closed eyes": "\u0686\u0647\u0631\u0647 \u062e\u0646\u062f\u0627\u0646 \u0628\u0627 \u062f\u0647\u0627\u0646 \u0628\u0627\u0632 \u0648 \u0686\u0634\u0645 \u062f\u0631\u0628\u062f\u0627\u0631", - "Smiling face with halo": "\u0686\u0647\u0631\u0647 \u062e\u0646\u062f\u0627\u0646 \u0628\u0627 \u0647\u0627\u0644\u0647", - "Smiling face with horns": "\u0686\u0647\u0631\u0647 \u062e\u0646\u062f\u0627\u0646 \u0628\u0627 \u0634\u0627\u062e", - "Winking face": "\u062d\u0631\u06a9\u062a \u067e\u0630\u06cc\u0631\u06cc", - "Smiling face with smiling eyes": "\u0686\u0647\u0631\u0647 \u062e\u0646\u062f\u0627\u0646 \u0628\u0627 \u0686\u0634\u0645 \u0644\u0628\u062e\u0646\u062f", - "Face savoring delicious food": "\u0686\u0647\u0631\u0647 \u0644\u0630\u06cc\u0630 \u063a\u0630\u0627\u06cc \u062e\u0648\u0634\u0645\u0632\u0647", - "Relieved face": "\u0686\u0647\u0631\u0647 \u0631\u0647\u0627", - "Smiling face with heart-shaped eyes": "\u0686\u0647\u0631\u0647 \u062e\u0646\u062f\u0627\u0646 \u0628\u0627 \u0686\u0634\u0645 \u0628\u0647 \u0634\u06a9\u0644 \u0642\u0644\u0628", - "Smiling face with sunglasses": "\u0686\u0647\u0631\u0647 \u062e\u0646\u062f\u0627\u0646 \u0628\u0627 \u0639\u06cc\u0646\u06a9 \u0622\u0641\u062a\u0627\u0628\u06cc", - "Smirking face": "\u067e\u0648\u0632\u062e\u0646\u062f \u0686\u0647\u0631\u0647", - "Neutral face": "\u0686\u0647\u0631\u0647 \u0647\u0627\u06cc \u062e\u0646\u062b\u06cc", - "Expressionless face": "\u0686\u0647\u0631\u0647 \u0646\u0627\u06af\u0648\u06cc\u0627", - "Unamused face": "\u0686\u0647\u0631\u0647 \u062e\u0648\u0634\u062d\u0627\u0644 \u0646\u06cc\u0633\u062a", - "Face with cold sweat": "\u0686\u0647\u0631\u0647 \u0628\u0627 \u0639\u0631\u0642 \u0633\u0631\u062f", - "Pensive face": "\u0686\u0647\u0631\u0647 \u0627\u0641\u0633\u0631\u062f\u0647", - "Confused face": "\u0686\u0647\u0631\u0647 \u0627\u0634\u062a\u0628\u0627\u0647", - "Confounded face": "\u0686\u0647\u0631\u0647 \u0633\u0631 \u062f\u0631 \u06af\u0645", - "Kissing face": "\u0628\u0648\u0633\u06cc\u062f\u0646 \u0635\u0648\u0631\u062a", - "Face throwing a kiss": "\u0686\u0647\u0631\u0647 \u067e\u0631\u062a\u0627\u0628 \u06cc\u06a9 \u0628\u0648\u0633\u0647", - "Kissing face with smiling eyes": "\u0628\u0648\u0633\u06cc\u062f\u0646 \u0686\u0647\u0631\u0647 \u0628\u0627 \u0686\u0634\u0645 \u0644\u0628\u062e\u0646\u062f", - "Kissing face with closed eyes": "\u0628\u0648\u0633\u06cc\u062f\u0646 \u0635\u0648\u0631\u062a \u0628\u0627 \u0686\u0634\u0645\u0627\u0646 \u0628\u0633\u062a\u0647", - "Face with stuck out tongue": "\u0686\u0647\u0631\u0647 \u0628\u0627 \u06af\u06cc\u0631 \u06a9\u0631\u062f\u0646 \u0632\u0628\u0627\u0646", - "Face with stuck out tongue and winking eye": "\u0686\u0647\u0631\u0647 \u0628\u0627 \u0632\u0628\u0627\u0646 \u06af\u06cc\u0631 \u06a9\u0631\u062f\u0646 \u0648 \u062d\u0631\u06a9\u062a \u0686\u0634\u0645", - "Face with stuck out tongue and tightly-closed eyes": "\u0635\u0648\u0631\u062a \u0628\u0627 \u0632\u0628\u0627\u0646 \u06af\u06cc\u0631 \u06a9\u0631\u062f\u0646 \u0648 \u0686\u0634\u0645 \u0631\u0627 \u0645\u062d\u06a9\u0645 \u0628\u0633\u062a\u0647", - "Disappointed face": "\u0686\u0647\u0631\u0647 \u0646\u0627 \u0627\u0645\u06cc\u062f", - "Worried face": "\u0686\u0647\u0631\u0647 \u0646\u06af\u0631\u0627\u0646", - "Angry face": "\u0686\u0647\u0631\u0647 \u0639\u0635\u0628\u0627\u0646\u06cc", - "Pouting face": "\u0628\u063a \u0686\u0647\u0631\u0647", - "Crying face": "\u06af\u0631\u06cc\u0647 \u0686\u0647\u0631\u0647", - "Persevering face": "\u067e\u0627\u06cc\u062f\u0627\u0631\u06cc \u0686\u0647\u0631\u0647", - "Face with look of triumph": "\u0686\u0647\u0631\u0647 \u0628\u0627 \u0646\u06af\u0627\u0647\u06cc \u0627\u0632 \u067e\u06cc\u0631\u0648\u0632\u06cc", - "Disappointed but relieved face": "\u0646\u0627 \u0627\u0645\u06cc\u062f \u0627\u0645\u0627 \u0622\u0633\u0648\u062f\u0647 \u0686\u0647\u0631\u0647", - "Frowning face with open mouth": "\u0627\u062e\u0645 \u0635\u0648\u0631\u062a \u0628\u0627 \u062f\u0647\u0627\u0646 \u0628\u0627\u0632", - "Anguished face": "\u0686\u0647\u0631\u0647 \u0646\u06af\u0631\u0627\u0646", - "Fearful face": "\u0686\u0647\u0631\u0647 \u062a\u0631\u0633", - "Weary face": "\u0686\u0647\u0631\u0647 \u062e\u0633\u062a\u0647", - "Sleepy face": "\u0686\u0647\u0631\u0647 \u062e\u0648\u0627\u0628 \u0622\u0644\u0648\u062f", - "Tired face": "\u0686\u0647\u0631\u0647 \u062e\u0633\u062a\u0647", - "Grimacing face": "\u0627\u0634 \u0686\u0647\u0631\u0647", - "Loudly crying face": "\u0646\u062f\u0627\u06cc\u06cc \u0631\u0633\u0627 \u06af\u0631\u06cc\u0647 \u0686\u0647\u0631\u0647", - "Face with open mouth": "\u0686\u0647\u0631\u0647 \u0628\u0627 \u062f\u0647\u0627\u0646 \u0628\u0627\u0632", - "Hushed face": "\u0686\u0647\u0631\u0647 \u0633\u06a9\u0648\u062a", - "Face with open mouth and cold sweat": "\u0686\u0647\u0631\u0647 \u0628\u0627 \u062f\u0647\u0627\u0646 \u0628\u0627\u0632 \u0648 \u0639\u0631\u0642 \u0633\u0631\u062f", - "Face screaming in fear": "\u0686\u0647\u0631\u0647 \u062c\u06cc\u063a \u062f\u0631 \u062a\u0631\u0633", - "Astonished face": "\u0686\u0647\u0631\u0647 \u0634\u06af\u0641\u062a \u0632\u062f\u0647", - "Flushed face": "\u0686\u0647\u0631\u0647 \u0628\u0631\u0627\u0641\u0631\u0648\u062e\u062a\u0647", - "Sleeping face": "\u062e\u0648\u0627\u0628 \u0686\u0647\u0631\u0647", - "Dizzy face": "\u0686\u0647\u0631\u0647 \u062f\u06cc\u0632\u06cc", - "Face without mouth": "\u0686\u0647\u0631\u0647 \u0628\u062f\u0648\u0646 \u062f\u0647\u0627\u0646", - "Face with medical mask": "\u0686\u0647\u0631\u0647 \u0628\u0627 \u0645\u0627\u0633\u06a9 \u0647\u0627\u06cc \u067e\u0632\u0634\u06a9\u06cc", - - // Line breaker - "Break": "\u0634\u06a9\u0633\u062a\u0646", - - // Math - "Subscript": "\u067e\u0627\u064a\u064a\u0646 \u0646\u0648\u064a\u0633", - "Superscript": "\u0628\u0627\u0644\u0627 \u0646\u06af\u0627\u0634\u062a", - - // Full screen - "Fullscreen": "\u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647", - - // Horizontal line - "Insert Horizontal Line": "\u0642\u0631\u0627\u0631 \u062f\u0627\u062f\u0646 \u0627\u0641\u0642\u06cc \u062e\u0637", - - // Clear formatting - "Clear Formatting": "\u062d\u0630\u0641 \u0642\u0627\u0644\u0628 \u0628\u0646\u062f\u06cc", - - // Undo, redo - "Undo": "\u0628\u0627\u0637\u0644 \u06a9\u0631\u062f\u0646", - "Redo": "\u0627\u0646\u062c\u0627\u0645 \u062f\u0648\u0628\u0627\u0631\u0647", - - // Select all - "Select All": "\u0627\u0646\u062a\u062e\u0627\u0628 \u0647\u0645\u0647", - - // Code view - "Code View": "\u0645\u0634\u0627\u0647\u062f\u0647 \u06a9\u062f", - - // Quote - "Quote": "\u0646\u0642\u0644 \u0642\u0648\u0644", - "Increase": "\u0627\u0641\u0632\u0627\u06cc\u0634 \u062f\u0627\u062f\u0646", - "Decrease": "\u0646\u0632\u0648\u0644 \u06a9\u0631\u062f\u0646", - - // Quick Insert - "Quick Insert": "\u062f\u0631\u062c \u0633\u0631\u06cc\u0639", - - // Spcial Characters - "Special Characters": "کاراکترهای خاص", - "Latin": "لاتین", - "Greek": "یونانی", - "Cyrillic": "سیریلیک", - "Punctuation": "نقطه گذاری", - "Currency": "واحد پول", - "Arrows": "فلش ها", - "Math": "ریاضی", - "Misc": "متاسفم", - - // Print. - "Print": "چاپ", - - // Spell Checker. - "Spell Checker": "بررسی کننده غلط املایی", - - // Help - "Help": "کمک", - "Shortcuts": "کلید های میانبر", - "Inline Editor": "ویرایشگر خطی", - "Show the editor": "ویرایشگر را نشان بده", - "Common actions": "اقدامات مشترک", - "Copy": "کپی کنید", - "Cut": "برش", - "Paste": "چسباندن", - "Basic Formatting": "قالب بندی اولیه", - "Increase quote level": "افزایش سطح نقل قول", - "Decrease quote level": "کاهش میزان نقل قول", - "Image / Video": "تصویر / ویدئو", - "Resize larger": "تغییر اندازه بزرگتر", - "Resize smaller": "تغییر اندازه کوچکتر", - "Table": "جدول", - "Select table cell": "سلول جدول را انتخاب کنید", - "Extend selection one cell": "انتخاب یک سلول را گسترش دهید", - "Extend selection one row": "یک ردیف را انتخاب کنید", - "Navigation": "جهت یابی", - "Focus popup / toolbar": "تمرکز پنجره / نوار ابزار", - "Return focus to previous position": "تمرکز بازگشت به موقعیت قبلی", - - // Embed.ly - "Embed URL": "آدرس جاسازی", - "Paste in a URL to embed": "یک URL برای جاسازی کپی کنید", - - // Word Paste. - "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "محتوای جا به جا از یک سند Word Microsoft می آید. آیا می خواهید فرمت را نگه دارید یا پاک کنید؟", - "Keep": "نگاه داشتن", - "Clean": "پاک کن", - "Word Paste Detected": "کلمه رب تشخیص داده شده است" - }, - direction: "rtl" -}; - -})); diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/languages/fi.js b/Mobile.Search.Web/Scripts/froala-editor/js/languages/fi.js deleted file mode 100644 index c42dddc..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/languages/fi.js +++ /dev/null @@ -1,318 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = function( root, jQuery ) { - if ( jQuery === undefined ) { - // require('jQuery') returns a factory that requires window to - // build a jQuery instance, we normalize how we use modules - // that require this pattern but the window provided is a noop - // if it's defined (how jquery works) - if ( typeof window !== 'undefined' ) { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - return factory(jQuery); - }; - } else { - // Browser globals - factory(window.jQuery); - } -}(function ($) { -/** - * Finnish - */ - -$.FE.LANGUAGE['fi'] = { - translation: { - // Place holder - "Type something": "Kirjoita jotain", - - // Basic formatting - "Bold": "Lihavointi", - "Italic": "Kursivointi", - "Underline": "Alleviivaus", - "Strikethrough": "Yliviivaus", - - // Main buttons - "Insert": "Lis\u00e4\u00e4", - "Delete": "Poista", - "Cancel": "Peruuta", - "OK": "Ok", - "Back": "Takaisin", - "Remove": "Poista", - "More": "Lis\u00e4\u00e4", - "Update": "P\u00e4ivitys", - "Style": "Tyyli", - - // Font - "Font Family": "Fontti", - "Font Size": "Fonttikoko", - - // Colors - "Colors": "V\u00e4rit", - "Background": "Taustan", - "Text": "Tekstin", - "HEX Color": "Heksadesimaali", - - // Paragraphs - "Paragraph Format": "Muotoilut", - "Normal": "Normaali", - "Code": "Koodi", - "Heading 1": "Otsikko 1", - "Heading 2": "Otsikko 2", - "Heading 3": "Otsikko 3", - "Heading 4": "Otsikko 4", - - // Style - "Paragraph Style": "Kappaleen tyyli", - "Inline Style": "Linjassa tyyli", - - // Alignment - "Align": "Tasaa", - "Align Left": "Tasaa vasemmalle", - "Align Center": "Keskit\u00e4", - "Align Right": "Tasaa oikealle", - "Align Justify": "Tasaa", - "None": "Ei mit\u00e4\u00e4n", - - // Lists - "Ordered List": "J\u00e4rjestetty lista", - "Unordered List": "J\u00e4rjest\u00e4m\u00e4t\u00f6n lista", - - // Indent - "Decrease Indent": "Sisenn\u00e4", - "Increase Indent": "Loitonna", - - // Links - "Insert Link": "Lis\u00e4\u00e4 linkki", - "Open in new tab": "Avaa uudessa v\u00e4lilehdess\u00e4", - "Open Link": "Avaa linkki", - "Edit Link": "Muokkaa linkki", - "Unlink": "Poista linkki", - "Choose Link": "Valitse linkki", - - // Images - "Insert Image": "Lis\u00e4\u00e4 kuva", - "Upload Image": "Lataa kuva", - "By URL": "Mukaan URL", - "Browse": "Selailla", - "Drop image": "Pudota kuva", - "or click": "tai napsauta", - "Manage Images": "Hallitse kuvia", - "Loading": "Lastaus", - "Deleting": "Poistaminen", - "Tags": "Tagit", - "Are you sure? Image will be deleted.": "Oletko varma? Kuva poistetaan.", - "Replace": "Vaihda", - "Uploading": "Lataaminen", - "Loading image": "Lastaus kuva", - "Display": "N\u00e4ytt\u00e4", - "Inline": "Linjassa", - "Break Text": "Rikkoa teksti", - "Alternate Text": "Vaihtoehtoinen teksti", - "Change Size": "Muuta kokoa", - "Width": "Leveys", - "Height": "Korkeus", - "Something went wrong. Please try again.": "Jotain meni pieleen. Yrit\u00e4 uudelleen.", - "Image Caption": "Kuva-otsikko", - "Advanced Edit": "Edistynyt muokkaus", - - // Video - "Insert Video": "Lis\u00e4\u00e4 video", - "Embedded Code": "Upotettu koodi", - "Paste in a video URL": "Liitä video url", - "Drop video": "Pudota video", - "Your browser does not support HTML5 video.": "Selaimesi ei tue html5-videota.", - "Upload Video": "Lataa video", - - // Tables - "Insert Table": "Lis\u00e4\u00e4 taulukko", - "Table Header": "Taulukko yl\u00e4tunniste", - "Remove Table": "Poista taulukko", - "Table Style": "Taulukko tyyli", - "Horizontal Align": "Vaakasuora tasaa", - "Row": "Rivi", - "Insert row above": "Lis\u00e4\u00e4 rivi ennen", - "Insert row below": "Lis\u00e4\u00e4 rivi j\u00e4lkeen", - "Delete row": "Poista rivi", - "Column": "Sarake", - "Insert column before": "Lis\u00e4\u00e4 sarake ennen", - "Insert column after": "Lis\u00e4\u00e4 sarake j\u00e4lkeen", - "Delete column": "Poista sarake", - "Cell": "Solu", - "Merge cells": "Yhdist\u00e4 solut", - "Horizontal split": "Jaa vaakasuora", - "Vertical split": "Jaa pystysuora", - "Cell Background": "Solun tausta", - "Vertical Align": "Pystysuora tasaa", - "Top": "Alku", - "Middle": "Keskimm\u00e4inen", - "Bottom": "Pohja", - "Align Top": "Tasaa alkuun", - "Align Middle": "Tasaa keskimm\u00e4inen", - "Align Bottom": "Tasaa pohja", - "Cell Style": "Solun tyyli", - - // Files - "Upload File": "Lataa tiedosto", - "Drop file": "Pudota tiedosto", - - // Emoticons - "Emoticons": "Hymi\u00f6it\u00e4", - "Grinning face": "Virnisteli kasvot", - "Grinning face with smiling eyes": "Virnisteli kasvot hymyilev\u00e4t silm\u00e4t", - "Face with tears of joy": "Kasvot ilon kyyneleit\u00e4", - "Smiling face with open mouth": "Hymyilev\u00e4 kasvot suu auki", - "Smiling face with open mouth and smiling eyes": "Hymyilev\u00e4 kasvot suu auki ja hymyilee silm\u00e4t", - "Smiling face with open mouth and cold sweat": "Hymyilev\u00e4 kasvot suu auki ja kylm\u00e4 hiki", - "Smiling face with open mouth and tightly-closed eyes": "Hymyilev\u00e4 kasvot suu auki ja tiiviisti suljettu silm\u00e4t", - "Smiling face with halo": "Hymyilev\u00e4 kasvot Halo", - "Smiling face with horns": "Hymyilev\u00e4 kasvot sarvet", - "Winking face": "Silm\u00e4niskut kasvot", - "Smiling face with smiling eyes": "Hymyilev\u00e4 kasvot hymyilev\u00e4t silm\u00e4t", - "Face savoring delicious food": "Kasvot maistella herkullista ruokaa", - "Relieved face": "Vapautettu kasvot", - "Smiling face with heart-shaped eyes": "Hymyilev\u00e4t kasvot syd\u00e4men muotoinen silm\u00e4t", - "Smiling face with sunglasses": "Hymyilev\u00e4 kasvot aurinkolasit", - "Smirking face": "Hym\u00e4t\u00e4\u00e4 kasvot", - "Neutral face": "Neutraali kasvot", - "Expressionless face": "Ilmeet\u00f6n kasvot", - "Unamused face": "Ei huvittanut kasvo", - "Face with cold sweat": "Kasvot kylm\u00e4 hiki", - "Pensive face": "Mietteli\u00e4s kasvot", - "Confused face": "Sekava kasvot", - "Confounded face": "Sekoitti kasvot", - "Kissing face": "Suudella kasvot", - "Face throwing a kiss": "Kasvo heitt\u00e4\u00e4 suudelma", - "Kissing face with smiling eyes": "Suudella kasvot hymyilev\u00e4t silm\u00e4t", - "Kissing face with closed eyes": "Suudella kasvot silm\u00e4t ummessa", - "Face with stuck out tongue": "Kasvot ojensi kieli", - "Face with stuck out tongue and winking eye": "Kasvot on juuttunut pois kielen ja silm\u00e4niskuja silm\u00e4", - "Face with stuck out tongue and tightly-closed eyes": "Kasvot on juuttunut pois kielen ja tiiviisti suljettuna silm\u00e4t", - "Disappointed face": "Pettynyt kasvot", - "Worried face": "Huolissaan kasvot", - "Angry face": "Vihainen kasvot", - "Pouting face": "Pouting kasvot", - "Crying face": "Itku kasvot", - "Persevering face": "Pitk\u00e4j\u00e4nteinen kasvot", - "Face with look of triumph": "Kasvot ilme Triumph", - "Disappointed but relieved face": "Pettynyt mutta helpottunut kasvot", - "Frowning face with open mouth": "Frowning kasvot suu auki", - "Anguished face": "Tuskainen kasvot", - "Fearful face": "Pelokkuus kasvot", - "Weary face": "V\u00e4synyt kasvot", - "Sleepy face": "Unelias kasvot", - "Tired face": "V\u00e4synyt kasvot", - "Grimacing face": "Irvist\u00e4en kasvot", - "Loudly crying face": "\u00e4\u00e4nekk\u00e4\u00e4sti itku kasvot", - "Face with open mouth": "Kasvot suu auki", - "Hushed face": "Hiljentynyt kasvot", - "Face with open mouth and cold sweat": "Kasvot suu auki ja kylm\u00e4 hiki", - "Face screaming in fear": "Kasvot huutaa pelosta", - "Astonished face": "H\u00e4mm\u00e4stynyt kasvot", - "Flushed face": "Kasvojen punoitus", - "Sleeping face": "Nukkuva kasvot", - "Dizzy face": "Huimausta kasvot", - "Face without mouth": "Kasvot ilman suuhun", - "Face with medical mask": "Kasvot l\u00e4\u00e4ketieteen naamio", - - // Line breaker - "Break": "Rikkoa", - - // Math - "Subscript": "Alaindeksi", - "Superscript": "Yl\u00e4indeksi", - - // Full screen - "Fullscreen": "Koko n\u00e4ytt\u00f6", - - // Horizontal line - "Insert Horizontal Line": "Lis\u00e4\u00e4 vaakasuora viiva", - - // Clear formatting - "Clear Formatting": "Poista muotoilu", - - // Undo, redo - "Undo": "Peru", - "Redo": "Tee uudelleen", - - // Select all - "Select All": "Valitse kaikki", - - // Code view - "Code View": "Koodi n\u00e4kym\u00e4", - - // Quote - "Quote": "Lainaus", - "Increase": "Lis\u00e4t\u00e4", - "Decrease": "Pienenn\u00e4", - - // Quick Insert - "Quick Insert": "Nopea insertti", - - // Spcial Characters - "Special Characters": "Erikoismerkkejä", - "Latin": "Latina", - "Greek": "Kreikkalainen", - "Cyrillic": "Kyrillinen", - "Punctuation": "Välimerkit", - "Currency": "Valuutta", - "Arrows": "Nuolet", - "Math": "Matematiikka", - "Misc": "Sekalaista", - - // Print. - "Print": "Tulosta", - - // Spell Checker. - "Spell Checker": "Oikeinkirjoittaja", - - // Help - "Help": "Auta", - "Shortcuts": "Pikakuvakkeet", - "Inline Editor": "Inline-editori", - "Show the editor": "Näytä editori", - "Common actions": "Yhteisiä toimia", - "Copy": "Kopio", - "Cut": "Leikata", - "Paste": "Tahna", - "Basic Formatting": "Perusmuotoilu", - "Increase quote level": "Lisää lainaustasoa", - "Decrease quote level": "Laskea lainaustasoa", - "Image / Video": "Kuva / video", - "Resize larger": "Kokoa suurempi", - "Resize smaller": "Pienempi koko", - "Table": "Pöytä", - "Select table cell": "Valitse taulukon solu", - "Extend selection one cell": "Laajentaa valinta yhden solun", - "Extend selection one row": "Laajenna valinta yksi rivi", - "Navigation": "Suunnistus", - "Focus popup / toolbar": "Painopistevalo / työkalurivi", - "Return focus to previous position": "Palauta tarkennus edelliseen asentoon", - - // Embed.ly - "Embed URL": "Upottaa URL-osoite", - "Paste in a URL to embed": "Liitä upotettu URL-osoite", - - // Word Paste. - "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Liitetty sisältö tulee Microsoft Word -asiakirjasta. Haluatko säilyttää muodon tai puhdistaa sen?", - "Keep": "Pitää", - "Clean": "Puhdas", - "Word Paste Detected": "Sana-tahna havaittu" - }, - direction: "ltr" -}; - -})); diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/languages/fr.js b/Mobile.Search.Web/Scripts/froala-editor/js/languages/fr.js deleted file mode 100644 index 11bc818..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/languages/fr.js +++ /dev/null @@ -1,318 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = function( root, jQuery ) { - if ( jQuery === undefined ) { - // require('jQuery') returns a factory that requires window to - // build a jQuery instance, we normalize how we use modules - // that require this pattern but the window provided is a noop - // if it's defined (how jquery works) - if ( typeof window !== 'undefined' ) { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - return factory(jQuery); - }; - } else { - // Browser globals - factory(window.jQuery); - } -}(function ($) { -/** - * French - */ - -$.FE.LANGUAGE['fr'] = { - translation: { - // Place holder - "Type something": "Tapez quelque chose", - - // Basic formatting - "Bold": "Gras", - "Italic": "Italique", - "Underline": "Soulign\u00e9", - "Strikethrough": "Barr\u00e9", - - // Main buttons - "Insert": "Ins\u00e9rer", - "Delete": "Supprimer", - "Cancel": "Annuler", - "OK": "Ok", - "Back": "Retour", - "Remove": "Supprimer", - "More": "Plus", - "Update": "Actualiser", - "Style": "Style", - - // Font - "Font Family": "Polices de caract\u00e8res", - "Font Size": "Taille de police", - - // Colors - "Colors": "Couleurs", - "Background": "Arri\u00e8re-plan", - "Text": "Texte", - "HEX Color": "Couleur hexad\u00e9cimale", - - // Paragraphs - "Paragraph Format": "Format de paragraphe", - "Normal": "Normal", - "Code": "Code", - "Heading 1": "Titre 1", - "Heading 2": "Titre 2", - "Heading 3": "Titre 3", - "Heading 4": "Titre 4", - - // Style - "Paragraph Style": "Style de paragraphe", - "Inline Style": "Style en ligne", - - // Alignment - "Align": "Aligner", - "Align Left": "Aligner \u00e0 gauche", - "Align Center": "Aligner au centre", - "Align Right": "Aligner \u00e0 droite", - "Align Justify": "Justifier", - "None": "Aucun", - - // Lists - "Ordered List": "Liste ordonn\u00e9e", - "Unordered List": "Liste non ordonn\u00e9e", - - // Indent - "Decrease Indent": "Diminuer le retrait", - "Increase Indent": "Augmenter le retrait", - - // Links - "Insert Link": "Ins\u00e9rer un lien", - "Open in new tab": "Ouvrir dans un nouvel onglet", - "Open Link": "Ouvrir le lien", - "Edit Link": "Modifier le lien", - "Unlink": "Enlever le lien", - "Choose Link": "Choisir le lien", - - // Images - "Insert Image": "Ins\u00e9rer une image", - "Upload Image": "T\u00e9l\u00e9verser une image", - "By URL": "Par URL", - "Browse": "Parcourir", - "Drop image": "D\u00e9poser une image", - "or click": "ou cliquer", - "Manage Images": "G\u00e9rer les images", - "Loading": "Chargement", - "Deleting": "Suppression", - "Tags": "\u00c9tiquettes", - "Are you sure? Image will be deleted.": "Etes-vous certain? L'image sera supprim\u00e9e.", - "Replace": "Remplacer", - "Uploading": "En t\u00e9l\u00e9versement d'images", - "Loading image": "En chargement d'images", - "Display": "Afficher", - "Inline": "En ligne", - "Break Text": "Rompre le texte", - "Alternate Text": "Texte alternatif", - "Change Size": "Changer la dimension", - "Width": "Largeur", - "Height": "Hauteur", - "Something went wrong. Please try again.": "Quelque chose a mal tourn\u00e9. Veuillez r\u00e9essayer.", - "Image Caption": "L\u00e9gende de l'image", - "Advanced Edit": "\u00c9dition avanc\u00e9e", - - // Video - "Insert Video": "Ins\u00e9rer une vid\u00e9o", - "Embedded Code": "Code int\u00e9gr\u00e9", - "Paste in a video URL": "Coller l'URL d'une vid\u00e9o", - "Drop video": "D\u00e9poser une vid\u00e9o", - "Your browser does not support HTML5 video.": "Votre navigateur ne supporte pas les vid\u00e9os en format HTML5.", - "Upload Video": "T\u00e9l\u00e9verser une vid\u00e9o", - - // Tables - "Insert Table": "Ins\u00e9rer un tableau", - "Table Header": "Ent\u00eate de tableau", - "Remove Table": "Supprimer le tableau", - "Table Style": "Style de tableau", - "Horizontal Align": "Alignement horizontal", - "Row": "Ligne", - "Insert row above": "Ins\u00e9rer une ligne au-dessus", - "Insert row below": "Ins\u00e9rer une ligne en-dessous", - "Delete row": "Supprimer la ligne", - "Column": "Colonne", - "Insert column before": "Ins\u00e9rer une colonne avant", - "Insert column after": "Ins\u00e9rer une colonne apr\u00e8s", - "Delete column": "Supprimer la colonne", - "Cell": "Cellule", - "Merge cells": "Fusionner les cellules", - "Horizontal split": "Diviser horizontalement", - "Vertical split": "Diviser verticalement", - "Cell Background": "Arri\u00e8re-plan de la cellule", - "Vertical Align": "Alignement vertical", - "Top": "En haut", - "Middle": "Au centre", - "Bottom": "En bas", - "Align Top": "Aligner en haut", - "Align Middle": "Aligner au centre", - "Align Bottom": "Aligner en bas", - "Cell Style": "Style de cellule", - - // Files - "Upload File": "T\u00e9l\u00e9verser un fichier", - "Drop file": "D\u00e9poser un fichier", - - // Emoticons - "Emoticons": "\u00c9motic\u00f4nes", - "Grinning face": "Souriant visage", - "Grinning face with smiling eyes": "Souriant visage aux yeux souriants", - "Face with tears of joy": "Visage \u00e0 des larmes de joie", - "Smiling face with open mouth": "Visage souriant avec la bouche ouverte", - "Smiling face with open mouth and smiling eyes": "Visage souriant avec la bouche ouverte et les yeux en souriant", - "Smiling face with open mouth and cold sweat": "Visage souriant avec la bouche ouverte et la sueur froide", - "Smiling face with open mouth and tightly-closed eyes": "Visage souriant avec la bouche ouverte et les yeux herm\u00e9tiquement clos", - "Smiling face with halo": "Sourire visage avec halo", - "Smiling face with horns": "Visage souriant avec des cornes", - "Winking face": "Clin d'oeil visage", - "Smiling face with smiling eyes": "Sourire visage aux yeux souriants", - "Face savoring delicious food": "Visage savourant de d\u00e9licieux plats", - "Relieved face": "Soulag\u00e9 visage", - "Smiling face with heart-shaped eyes": "Visage souriant avec des yeux en forme de coeur", - "Smiling face with sunglasses": "Sourire visage avec des lunettes de soleil", - "Smirking face": "Souriant visage", - "Neutral face": "Visage neutre", - "Expressionless face": "Visage sans expression", - "Unamused face": "Visage pas amus\u00e9", - "Face with cold sweat": "Face \u00e0 la sueur froide", - "Pensive face": "pensif visage", - "Confused face": "Visage confus", - "Confounded face": "visage maudit", - "Kissing face": "Embrasser le visage", - "Face throwing a kiss": "Visage jetant un baiser", - "Kissing face with smiling eyes": "Embrasser le visage avec les yeux souriants", - "Kissing face with closed eyes": "Embrasser le visage avec les yeux ferm\u00e9s", - "Face with stuck out tongue": "Visage avec sortait de la langue", - "Face with stuck out tongue and winking eye": "Visage avec sortait de la langue et des yeux clignotante", - "Face with stuck out tongue and tightly-closed eyes": "Visage avec sortait de la langue et les yeux ferm\u00e9s herm\u00e9tiquement", - "Disappointed face": "Visage d\u00e9\u00e7u", - "Worried face": "Visage inquiet", - "Angry face": "Visage en col\u00e9re", - "Pouting face": "Faire la moue face", - "Crying face": "Pleurer visage", - "Persevering face": "Pers\u00e9v\u00e9rer face", - "Face with look of triumph": "Visage avec le regard de triomphe", - "Disappointed but relieved face": "D\u00e9\u00e7u, mais le visage soulag\u00e9", - "Frowning face with open mouth": "Les sourcils fronc\u00e9s visage avec la bouche ouverte", - "Anguished face": "Visage angoiss\u00e9", - "Fearful face": "Craignant visage", - "Weary face": "Visage las", - "Sleepy face": "Visage endormi", - "Tired face": "Visage fatigu\u00e9", - "Grimacing face": "Visage grima\u00e7ante", - "Loudly crying face": "Pleurer bruyamment visage", - "Face with open mouth": "Visage \u00e0 la bouche ouverte", - "Hushed face": "Visage feutr\u00e9e", - "Face with open mouth and cold sweat": "Visage \u00e0 la bouche ouverte et la sueur froide", - "Face screaming in fear": "Visage hurlant de peur", - "Astonished face": "Visage \u00e9tonn\u00e9", - "Flushed face": "Visage congestionn\u00e9", - "Sleeping face": "Visage au bois dormant", - "Dizzy face": "Visage vertige", - "Face without mouth": "Visage sans bouche", - "Face with medical mask": "Visage avec un masque m\u00e9dical", - - // Line breaker - "Break": "Rompre", - - // Math - "Subscript": "Indice", - "Superscript": "Exposant", - - // Full screen - "Fullscreen": "Plein \u00e9cran", - - // Horizontal line - "Insert Horizontal Line": "Ins\u00e9rer une ligne horizontale", - - // Clear formatting - "Clear Formatting": "Effacer le formatage", - - // Undo, redo - "Undo": "Annuler", - "Redo": "R\u00e9tablir", - - // Select all - "Select All": "Tout s\u00e9lectionner", - - // Code view - "Code View": "Mode HTML", - - // Quote - "Quote": "Citation", - "Increase": "Augmenter", - "Decrease": "Diminuer", - - // Quick Insert - "Quick Insert": "Insertion rapide", - - // Spcial Characters - "Special Characters": "Caract\u00e8res sp\u00e9ciaux", - "Latin": "Latin", - "Greek": "Grec", - "Cyrillic": "Cyrillique", - "Punctuation": "Ponctuation", - "Currency": "Devise", - "Arrows": "Fl\u00e8ches", - "Math": "Math", - "Misc": "Divers", - - // Print. - "Print": "Imprimer", - - // Spell Checker. - "Spell Checker": "Correcteur orthographique", - - // Help - "Help": "Aide", - "Shortcuts": "Raccourcis", - "Inline Editor": "\u00c9diteur en ligne", - "Show the editor": "Montrer l'\u00e9diteur", - "Common actions": "Actions communes", - "Copy": "Copier", - "Cut": "Couper", - "Paste": "Coller", - "Basic Formatting": "Formatage de base", - "Increase quote level": "Augmenter le niveau de citation", - "Decrease quote level": "Diminuer le niveau de citation", - "Image / Video": "Image / vid\u00e9o", - "Resize larger": "Redimensionner plus grand", - "Resize smaller": "Redimensionner plus petit", - "Table": "Table", - "Select table cell": "S\u00e9lectionner la cellule du tableau", - "Extend selection one cell": "\u00c9tendre la s\u00e9lection d'une cellule", - "Extend selection one row": "\u00c9tendre la s\u00e9lection d'une ligne", - "Navigation": "Navigation", - "Focus popup / toolbar": "Focus popup / toolbar", - "Return focus to previous position": "Retourner l'accent sur le poste pr\u00e9c\u00e9dent", - - // Embed.ly - "Embed URL": "URL int\u00e9gr\u00e9e", - "Paste in a URL to embed": "Coller une URL int\u00e9gr\u00e9e", - - // Word Paste. - "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Le contenu coll\u00e9 provient d'un document Microsoft Word. Voulez-vous conserver le format ou le nettoyer?", - "Keep": "Conserver", - "Clean": "Nettoyer", - "Word Paste Detected": "Copiage de mots d\u00e9tect\u00e9" - }, - direction: "ltr" -}; - -})); diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/languages/he.js b/Mobile.Search.Web/Scripts/froala-editor/js/languages/he.js deleted file mode 100644 index cb5a34e..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/languages/he.js +++ /dev/null @@ -1,318 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = function( root, jQuery ) { - if ( jQuery === undefined ) { - // require('jQuery') returns a factory that requires window to - // build a jQuery instance, we normalize how we use modules - // that require this pattern but the window provided is a noop - // if it's defined (how jquery works) - if ( typeof window !== 'undefined' ) { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - return factory(jQuery); - }; - } else { - // Browser globals - factory(window.jQuery); - } -}(function ($) { -/** - * Hebrew - */ - -$.FE.LANGUAGE['he'] = { - translation: { - // Place holder - "Type something": "\u05d4\u05e7\u05dc\u05d3 \u05db\u05d0\u05df", - - // Basic formatting - "Bold": "\u05de\u05d5\u05d3\u05d2\u05e9", - "Italic": "\u05de\u05d5\u05d8\u05d4", - "Underline": "\u05e7\u05d5 \u05ea\u05d7\u05ea\u05d9", - "Strikethrough": "\u05e7\u05d5 \u05d0\u05de\u05e6\u05e2\u05d9", - - // Main buttons - "Insert": "\u05d4\u05d5\u05e1\u05e4\u05ea", - "Delete": "\u05de\u05d7\u05d9\u05e7\u05d4", - "Cancel": "\u05d1\u05d9\u05d8\u05d5\u05dc", - "OK": "\u05d1\u05e6\u05e2", - "Back": "\u05d1\u05d7\u05d6\u05e8\u05d4", - "Remove": "\u05d4\u05e1\u05e8", - "More": "\u05d9\u05d5\u05ea\u05e8", - "Update": "\u05e2\u05d3\u05db\u05d5\u05df", - "Style": "\u05e1\u05d2\u05e0\u05d5\u05df", - - // Font - "Font Family": "\u05d2\u05d5\u05e4\u05df", - "Font Size": "\u05d2\u05d5\u05d3\u05dc \u05d4\u05d2\u05d5\u05e4\u05df", - - // Colors - "Colors": "\u05e6\u05d1\u05e2\u05d9\u05dd", - "Background": "\u05e8\u05e7\u05e2", - "Text": "\u05d4\u05d8\u05e1\u05d8", - "HEX Color": "צבע הקס", - - // Paragraphs - "Paragraph Format": "\u05e4\u05d5\u05e8\u05de\u05d8", - "Normal": "\u05e8\u05d2\u05d9\u05dc", - "Code": "\u05e7\u05d5\u05d3", - "Heading 1": "1 \u05db\u05d5\u05ea\u05e8\u05ea", - "Heading 2": "2 \u05db\u05d5\u05ea\u05e8\u05ea", - "Heading 3": "3 \u05db\u05d5\u05ea\u05e8\u05ea", - "Heading 4": "4 \u05db\u05d5\u05ea\u05e8\u05ea", - - // Style - "Paragraph Style": "\u05e1\u05d2\u05e0\u05d5\u05df \u05e4\u05e1\u05e7\u05d4", - "Inline Style": "\u05e1\u05d2\u05e0\u05d5\u05df \u05de\u05d5\u05d1\u05e0\u05d4", - - // Alignment - "Align": "\u05d9\u05d9\u05e9\u05d5\u05e8", - "Align Left": "\u05d9\u05d9\u05e9\u05d5\u05e8 \u05dc\u05e9\u05de\u05d0\u05dc", - "Align Center": "\u05d9\u05d9\u05e9\u05d5\u05e8 \u05dc\u05de\u05e8\u05db\u05d6", - "Align Right": "\u05d9\u05d9\u05e9\u05d5\u05e8 \u05dc\u05d9\u05de\u05d9\u05df", - "Align Justify": "\u05d9\u05d9\u05e9\u05d5\u05e8 \u05de\u05dc\u05d0", - "None": "\u05d0\u05e3 \u05d0\u05d7\u05d3", - - // Lists - "Ordered List": "\u05d4\u05d5\u05e1\u05e4\u05ea \u05e8\u05e9\u05d9\u05de\u05d4 \u05de\u05de\u05d5\u05e1\u05e4\u05e8\u05ea", - "Unordered List": "\u05d4\u05d5\u05e1\u05e4\u05ea \u05e8\u05e9\u05d9\u05de\u05d4", - - // Indent - "Decrease Indent": "\u05d4\u05e7\u05d8\u05e0\u05ea \u05db\u05e0\u05d9\u05e1\u05d4", - "Increase Indent": "\u05d4\u05d2\u05d3\u05dc\u05ea \u05db\u05e0\u05d9\u05e1\u05d4", - - // Links - "Insert Link": "\u05d4\u05d5\u05e1\u05e4\u05ea \u05e7\u05d9\u05e9\u05d5\u05e8", - "Open in new tab": "\u05dc\u05e4\u05ea\u05d5\u05d7 \u05d1\u05d8\u05d0\u05d1 \u05d7\u05d3\u05e9", - "Open Link": "\u05e7\u05d9\u05e9\u05d5\u05e8 \u05e4\u05ea\u05d5\u05d7", - "Edit Link": "\u05e7\u05d9\u05e9\u05d5\u05e8 \u05e2\u05e8\u05d9\u05db\u05d4", - "Unlink": "\u05d4\u05e1\u05e8\u05ea \u05d4\u05e7\u05d9\u05e9\u05d5\u05e8", - "Choose Link": "\u05dc\u05d1\u05d7\u05d5\u05e8 \u05e7\u05d9\u05e9\u05d5\u05e8", - - // Images - "Insert Image": "\u05d4\u05d5\u05e1\u05e4\u05ea \u05ea\u05de\u05d5\u05e0\u05d4", - "Upload Image": "\u05ea\u05de\u05d5\u05e0\u05ea \u05d4\u05e2\u05dc\u05d0\u05d4", - "By URL": "URL \u05e2\u05dc \u05d9\u05d3\u05d9", - "Browse": "\u05dc\u05d2\u05dc\u05d5\u05e9", - "Drop image": "\u05e9\u05d7\u05e8\u05e8 \u05d0\u05ea \u05d4\u05ea\u05de\u05d5\u05e0\u05d4 \u05db\u05d0\u05df", - "or click": "\u05d0\u05d5 \u05dc\u05d7\u05e5", - "Manage Images": "\u05e0\u05d9\u05d4\u05d5\u05dc \u05d4\u05ea\u05de\u05d5\u05e0\u05d5\u05ea", - "Loading": "\u05d8\u05e2\u05d9\u05e0\u05d4", - "Deleting": "\u05de\u05d7\u05d9\u05e7\u05d4", - "Tags": "\u05ea\u05d2\u05d9\u05dd", - "Are you sure? Image will be deleted.": "\u05d4\u05d0\u05dd \u05d0\u05ea\u05d4 \u05d1\u05d8\u05d5\u05d7\u003f \u05d4\u05ea\u05de\u05d5\u05e0\u05d4 \u05ea\u05de\u05d7\u05e7\u002e", - "Replace": "\u05dc\u05d4\u05d7\u05dc\u05d9\u05e3", - "Uploading": "\u05d4\u05e2\u05dc\u05d0\u05d4", - "Loading image": "\u05ea\u05de\u05d5\u05e0\u05ea \u05d8\u05e2\u05d9\u05e0\u05d4", - "Display": "\u05ea\u05e6\u05d5\u05d2\u05d4", - "Inline": "\u05d1\u05e9\u05d5\u05e8\u05d4", - "Break Text": "\u05d8\u05e7\u05e1\u05d8 \u05d4\u05e4\u05e1\u05e7\u05d4", - "Alternate Text": "\u05d8\u05e7\u05e1\u05d8 \u05d7\u05dc\u05d5\u05e4\u05d9", - "Change Size": "\u05d2\u05d5\u05d3\u05dc \u05e9\u05d9\u05e0\u05d5\u05d9", - "Width": "\u05e8\u05d5\u05d7\u05d1", - "Height": "\u05d2\u05d5\u05d1\u05d4", - "Something went wrong. Please try again.": "\u05de\u05e9\u05d4\u05d5 \u05d4\u05e9\u05ea\u05d1\u05e9. \u05d1\u05d1\u05e7\u05e9\u05d4 \u05e0\u05e1\u05d4 \u05e9\u05d5\u05d1.", - "Image Caption": "כיתוב תמונה", - "Advanced Edit": "עריכה מתקדמת", - - // Video - "Insert Video": "\u05d4\u05d5\u05e1\u05e4\u05ea \u05d5\u05d9\u05d3\u05d9\u05d0\u05d5", - "Embedded Code": "\u05e7\u05d5\u05d3 \u05de\u05d5\u05d8\u05d1\u05e2", - "Paste in a video URL": "הדבק בכתובת אתר של סרטון", - "Drop video": "ירידה וידאו", - "Your browser does not support HTML5 video.": "הדפדפן שלך אינו תומך וידאו html5.", - "Upload Video": "להעלות וידאו", - - // Tables - "Insert Table": "\u05d4\u05db\u05e0\u05e1 \u05d8\u05d1\u05dc\u05d4", - "Table Header": "\u05db\u05d5\u05ea\u05e8\u05ea \u05d8\u05d1\u05dc\u05d4", - "Remove Table": "\u05d4\u05e1\u05e8 \u05e9\u05d5\u05dc\u05d7\u05df", - "Table Style": "\u05e1\u05d2\u05e0\u05d5\u05df \u05d8\u05d1\u05dc\u05d4", - "Horizontal Align": "\u05d0\u05d5\u05e4\u05e7\u05d9\u05ea \u05dc\u05d9\u05d9\u05e9\u05e8", - "Row": "\u05e9\u05d5\u05e8\u05d4", - "Insert row above": "\u05d4\u05d5\u05e1\u05e4\u05ea \u05e9\u05d5\u05e8\u05d4 \u05dc\u05e4\u05e0\u05d9", - "Insert row below": "\u05d4\u05d5\u05e1\u05e4\u05ea \u05e9\u05d5\u05e8\u05d4 \u05d0\u05d7\u05e8\u05d9", - "Delete row": "\u05de\u05d7\u05d9\u05e7\u05ea \u05e9\u05d5\u05e8\u05d4", - "Column": "\u05d8\u05d5\u05e8", - "Insert column before": "\u05d4\u05d5\u05e1\u05e4\u05ea \u05d8\u05d5\u05e8 \u05dc\u05e4\u05e0\u05d9", - "Insert column after": "\u05d4\u05d5\u05e1\u05e4\u05ea \u05d8\u05d5\u05e8 \u05d0\u05d7\u05e8\u05d9", - "Delete column": "\u05de\u05d7\u05d9\u05e7\u05ea \u05d8\u05d5\u05e8", - "Cell": "\u05ea\u05d0", - "Merge cells": "\u05de\u05d6\u05d2 \u05ea\u05d0\u05d9\u05dd", - "Horizontal split": "\u05e4\u05e6\u05dc \u05d0\u05d5\u05e4\u05e7\u05d9", - "Vertical split": "\u05e4\u05e6\u05dc \u05d0\u05e0\u05db\u05d9", - "Cell Background": "\u05e8\u05e7\u05e2 \u05ea\u05d0", - "Vertical Align": "\u05d9\u05d9\u05e9\u05d5\u05e8 \u05d0\u05e0\u05db\u05d9", - "Top": "\u05e2\u05b6\u05dc\u05b4\u05d9\u05d5\u05b9\u05df", - "Middle": "\u05ea\u05b4\u05d9\u05db\u05d5\u05b9\u05e0\u05b4\u05d9", - "Bottom": "\u05ea\u05d7\u05ea\u05d5\u05df", - "Align Top": "\u05dc\u05d9\u05d9\u05e9\u05e8 \u05e2\u05b6\u05dc\u05b4\u05d9\u05d5\u05b9\u05df", - "Align Middle": "\u05dc\u05d9\u05d9\u05e9\u05e8 \u05ea\u05b4\u05d9\u05db\u05d5\u05b9\u05e0\u05b4\u05d9", - "Align Bottom": "\u05dc\u05d9\u05d9\u05e9\u05e8 \u05ea\u05d7\u05ea\u05d5\u05df", - "Cell Style": "\u05e1\u05d2\u05e0\u05d5\u05df \u05ea\u05d0", - - // Files - "Upload File": "\u05d4\u05e2\u05dc\u05d0\u05ea \u05e7\u05d5\u05d1\u05e5", - "Drop file": "\u05d6\u05e8\u05d5\u05e7 \u05e7\u05d5\u05d1\u05e5 \u05db\u05d0\u05df", - - // Emoticons - "Emoticons": "\u05e1\u05de\u05d9\u05d9\u05dc\u05d9\u05dd", - "Grinning face": "\u05d7\u05d9\u05d9\u05da \u05e4\u05e0\u05d9\u05dd", - "Grinning face with smiling eyes": "\u05d7\u05d9\u05d9\u05da \u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05e2\u05d9\u05e0\u05d9\u05d9\u05dd \u05de\u05d7\u05d9\u05d9\u05db\u05d5\u05ea", - "Face with tears of joy": "\u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05d3\u05de\u05e2\u05d5\u05ea \u05e9\u05dc \u05e9\u05de\u05d7\u05d4", - "Smiling face with open mouth": "\u05d7\u05d9\u05d5\u05da \u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05e4\u05d4 \u05e4\u05ea\u05d5\u05d7", - "Smiling face with open mouth and smiling eyes": "\u05d7\u05d9\u05d5\u05da \u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05e4\u05d4 \u05e4\u05ea\u05d5\u05d7 \u05d5\u05de\u05d7\u05d9\u05d9\u05da \u05e2\u05d9\u05e0\u05d9\u05d9\u05dd", - "Smiling face with open mouth and cold sweat": "\u05d7\u05d9\u05d5\u05da \u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05e4\u05d4 \u05e4\u05ea\u05d5\u05d7 \u05d5\u05d6\u05d9\u05e2\u05d4 \u05e7\u05e8\u05d4", - "Smiling face with open mouth and tightly-closed eyes": "\u05d7\u05d9\u05d5\u05da \u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05e4\u05d4 \u05e4\u05ea\u05d5\u05d7 \u05d5\u05e2\u05d9\u05e0\u05d9\u05d9\u05dd \u05d1\u05d7\u05d5\u05d6\u05e7\u05d4\u002d\u05e1\u05d2\u05d5\u05e8\u05d5\u05ea", - "Smiling face with halo": "\u05d7\u05d9\u05d5\u05da \u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05d4\u05d9\u05dc\u05d4", - "Smiling face with horns": "\u05d7\u05d9\u05d5\u05da \u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05e7\u05e8\u05e0\u05d5\u05ea", - "Winking face": "\u05e7\u05e8\u05d9\u05e6\u05d4 \u05e4\u05e0\u05d9\u05dd", - "Smiling face with smiling eyes": "\u05d7\u05d9\u05d5\u05da \u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05e2\u05d9\u05e0\u05d9\u05d9\u05dd \u05de\u05d7\u05d9\u05d9\u05db\u05d5\u05ea", - "Face savoring delicious food": "\u05e4\u05e0\u05d9\u05dd \u05de\u05ea\u05e2\u05e0\u05d2 \u05d0\u05d5\u05db\u05dc \u05d8\u05e2\u05d9\u05dd", - "Relieved face": "\u05e4\u05e0\u05d9\u05dd \u05e9\u05dc \u05d4\u05e7\u05dc\u05d4", - "Smiling face with heart-shaped eyes": "\u05d7\u05d9\u05d5\u05da \u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05e2\u05d9\u05e0\u05d9\u05d9\u05dd \u05d1\u05e6\u05d5\u05e8\u05ea \u05dc\u05d1", - "Smiling face with sunglasses": "\u05d7\u05d9\u05d5\u05da \u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05de\u05e9\u05e7\u05e4\u05d9 \u05e9\u05de\u05e9", - "Smirking face": "\u05d4\u05d9\u05d0 \u05d7\u05d9\u05d9\u05db\u05d4 \u05d7\u05d9\u05d5\u05da \u05e0\u05d1\u05d6\u05d4 \u05e4\u05e0\u05d9\u05dd", - "Neutral face": "\u05e4\u05e0\u05d9\u05dd \u05e0\u05d9\u05d8\u05e8\u05dc\u05d9", - "Expressionless face": "\u05d1\u05e4\u05e0\u05d9\u05dd \u05d7\u05ea\u05d5\u05dd", - "Unamused face": "\u05e4\u05e0\u05d9\u05dd \u05dc\u05d0 \u05de\u05e9\u05d5\u05e2\u05e9\u05e2\u05d9\u05dd", - "Face with cold sweat": "\u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05d6\u05d9\u05e2\u05d4 \u05e7\u05e8\u05d4", - "Pensive face": "\u05d1\u05e4\u05e0\u05d9\u05dd \u05de\u05d4\u05d5\u05e8\u05d4\u05e8", - "Confused face": "\u05e4\u05e0\u05d9\u05dd \u05de\u05d1\u05d5\u05dc\u05d1\u05dc\u05d9\u05dd", - "Confounded face": "\u05e4\u05e0\u05d9\u05dd \u05de\u05d1\u05d5\u05dc\u05d1\u05dc", - "Kissing face": "\u05e0\u05e9\u05d9\u05e7\u05d5\u05ea \u05e4\u05e0\u05d9\u05dd", - "Face throwing a kiss": "\u05e4\u05e0\u05d9\u05dd \u05dc\u05d6\u05e8\u05d5\u05e7 \u05e0\u05e9\u05d9\u05e7\u05d4", - "Kissing face with smiling eyes": "\u05e0\u05e9\u05d9\u05e7\u05d5\u05ea \u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05e2\u05d9\u05e0\u05d9\u05d9\u05dd \u05de\u05d7\u05d9\u05d9\u05db\u05d5\u05ea", - "Kissing face with closed eyes": "\u05e0\u05e9\u05d9\u05e7\u05d5\u05ea \u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05e2\u05d9\u05e0\u05d9\u05d9\u05dd \u05e1\u05d2\u05d5\u05e8\u05d5\u05ea", - "Face with stuck out tongue": "\u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05dc\u05e9\u05d5\u05df \u05d1\u05dc\u05d8\u05d5", - "Face with stuck out tongue and winking eye": "\u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05dc\u05e9\u05d5\u05df \u05ea\u05e7\u05d5\u05e2\u05d4 \u05d4\u05d7\u05d5\u05e6\u05d4 \u05d5\u05e2\u05d9\u05df \u05e7\u05d5\u05e8\u05e6\u05ea", - "Face with stuck out tongue and tightly-closed eyes": "\u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05dc\u05e9\u05d5\u05df \u05ea\u05e7\u05d5\u05e2\u05d4 \u05d4\u05d7\u05d5\u05e6\u05d4 \u05d5\u05e2\u05d9\u05e0\u05d9\u05d9\u05dd \u05d1\u05d7\u05d5\u05d6\u05e7\u05d4\u002d\u05e1\u05d2\u05d5\u05e8\u05d5\u05ea", - "Disappointed face": "\u05e4\u05e0\u05d9\u05dd \u05de\u05d0\u05d5\u05db\u05d6\u05d1\u05d9\u05dd", - "Worried face": "\u05e4\u05e0\u05d9\u05dd \u05de\u05d5\u05d3\u05d0\u05d2\u05d9\u05dd", - "Angry face": "\u05e4\u05e0\u05d9\u05dd \u05db\u05d5\u05e2\u05e1\u05d9\u05dd", - "Pouting face": "\u05de\u05e9\u05d5\u05e8\u05d1\u05d1 \u05e4\u05e0\u05d9\u05dd", - "Crying face": "\u05d1\u05db\u05d9 \u05e4\u05e0\u05d9\u05dd", - "Persevering face": "\u05d4\u05ea\u05de\u05d3\u05ea \u05e4\u05e0\u05d9\u05dd", - "Face with look of triumph": "\u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05de\u05d1\u05d8 \u05e9\u05dc \u05e0\u05e6\u05d7\u05d5\u05df", - "Disappointed but relieved face": "\u05de\u05d0\u05d5\u05db\u05d6\u05d1 \u05d0\u05d1\u05dc \u05d4\u05d5\u05e7\u05dc \u05e4\u05e0\u05d9\u05dd", - "Frowning face with open mouth": "\u05e7\u05de\u05d8 \u05d0\u05ea \u05de\u05e6\u05d7 \u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05e4\u05d4 \u05e4\u05ea\u05d5\u05d7", - "Anguished face": "\u05e4\u05e0\u05d9\u05dd \u05de\u05d9\u05d5\u05e1\u05e8\u05d9\u05dd", - "Fearful face": "\u05e4\u05e0\u05d9\u05dd \u05e9\u05d7\u05e9\u05e9\u05d5", - "Weary face": "\u05e4\u05e0\u05d9\u05dd \u05d5\u05d9\u05e8\u05d9", - "Sleepy face": "\u05e4\u05e0\u05d9\u05dd \u05e9\u05dc \u05e1\u05dc\u05d9\u05e4\u05d9", - "Tired face": "\u05e4\u05e0\u05d9\u05dd \u05e2\u05d9\u05d9\u05e4\u05d9\u05dd", - "Grimacing face": "\u05d4\u05d5\u05d0 \u05d4\u05e2\u05d5\u05d5\u05d4 \u05d0\u05ea \u05e4\u05e0\u05d9 \u05e4\u05e0\u05d9\u05dd", - "Loudly crying face": "\u05d1\u05e7\u05d5\u05dc \u05e8\u05dd \u05d1\u05d5\u05db\u05d4 \u05e4\u05e0\u05d9\u05dd", - "Face with open mouth": "\u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05e4\u05d4 \u05e4\u05ea\u05d5\u05d7", - "Hushed face": "\u05e4\u05e0\u05d9\u05dd \u05e9\u05d5\u05e7\u05d8\u05d9\u05dd", - "Face with open mouth and cold sweat": "\u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05e4\u05d4 \u05e4\u05ea\u05d5\u05d7 \u05d5\u05d6\u05d9\u05e2\u05d4 \u05e7\u05e8\u05d4\u0022", - "Face screaming in fear": "\u05e4\u05e0\u05d9\u05dd \u05e6\u05d5\u05e8\u05d7\u05d9\u05dd \u05d1\u05e4\u05d7\u05d3", - "Astonished face": "\u05e4\u05e0\u05d9\u05d5 \u05e0\u05d3\u05d4\u05de\u05d5\u05ea", - "Flushed face": "\u05e4\u05e0\u05d9\u05d5 \u05e1\u05de\u05d5\u05e7\u05d5\u05ea", - "Sleeping face": "\u05e9\u05d9\u05e0\u05d4 \u05e4\u05e0\u05d9\u05dd", - "Dizzy face": "\u05e4\u05e0\u05d9\u05dd \u05e9\u05dc \u05d3\u05d9\u05d6\u05d9", - "Face without mouth": "\u05e4\u05e0\u05d9\u05dd \u05dc\u05dc\u05d0 \u05e4\u05d4", - "Face with medical mask": "\u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05de\u05e1\u05db\u05d4 \u05e8\u05e4\u05d5\u05d0\u05d9\u05ea", - - // Line breaker - "Break": "\u05d4\u05e4\u05e1\u05e7\u05d4", - - // Math - "Subscript": "\u05db\u05ea\u05d1 \u05ea\u05d7\u05ea\u05d9", - "Superscript": "\u05e2\u05d9\u05dc\u05d9", - - // Full screen - "Fullscreen": "\u05de\u05e1\u05da \u05de\u05dc\u05d0", - - // Horizontal line - "Insert Horizontal Line": "\u05d4\u05d5\u05e1\u05e4\u05ea \u05e7\u05d5 \u05d0\u05d5\u05e4\u05e7\u05d9", - - // Clear formatting - "Clear Formatting": "\u05dc\u05d4\u05e1\u05d9\u05e8 \u05e2\u05d9\u05e6\u05d5\u05d1", - - // Undo, redo - "Undo": "\u05d1\u05d9\u05d8\u05d5\u05dc", - "Redo": "\u05d1\u05e6\u05e2 \u05e9\u05d5\u05d1", - - // Select all - "Select All": "\u05d1\u05d7\u05e8 \u05d4\u05db\u05dc", - - // Code view - "Code View": "\u05ea\u05e6\u05d5\u05d2\u05ea \u05e7\u05d5\u05d3", - - // Quote - "Quote": "\u05e6\u05d9\u05d8\u05d5\u05d8", - "Increase": "\u05dc\u05d4\u05d2\u05d1\u05d9\u05e8", - "Decrease": "\u05d9\u05e8\u05d9\u05d3\u05d4", - - // Quick Insert - "Quick Insert": "\u05db\u05e0\u05e1 \u05de\u05d4\u05d9\u05e8", - - // Spcial Characters - "Special Characters": "תווים מיוחדים", - "Latin": "לָטִינִית", - "Greek": "יווני", - "Cyrillic": "קירילית", - "Punctuation": "פיסוק", - "Currency": "מַטְבֵּעַ", - "Arrows": "חצים", - "Math": "מתמטיקה", - "Misc": "שונות", - - // Print. - "Print": "הדפס", - - // Spell Checker. - "Spell Checker": "בודק איות", - - // Help - "Help": "עֶזרָה", - "Shortcuts": "קיצורי דרך", - "Inline Editor": "עורך מוטבע", - "Show the editor": "להראות את העורך", - "Common actions": "פעולות נפוצות", - "Copy": "עותק", - "Cut": "גזירה", - "Paste": "לְהַדבִּיק", - "Basic Formatting": "עיצוב בסיסי", - "Increase quote level": "רמת ציטוט", - "Decrease quote level": "רמת ציטוט ירידה", - "Image / Video": "תמונה / וידאו", - "Resize larger": "גודל גדול יותר", - "Resize smaller": "גודל קטן יותר", - "Table": "שולחן", - "Select table cell": "בחר תא תא - -", - "Extend selection one cell": "להאריך את הבחירה תא אחד", - "Extend selection one row": "להאריך את הבחירה שורה אחת", - "Navigation": "ניווט", - "Focus popup / toolbar": "מוקד קופץ / סרגל הכלים", - "Return focus to previous position": "חזרה להתמקד קודם", - - // Embed.ly - "Embed URL": "כתובת אתר להטביע", - "Paste in a URL to embed": "הדבק כתובת אתר להטביע", - - // Word Paste. - "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "התוכן המודבק מגיע ממסמך Word של Microsoft. האם ברצונך לשמור את הפורמט או לנקות אותו?", - "Keep": "לִשְׁמוֹר", - "Clean": "לְנַקוֹת", - "Word Paste Detected": "הדבק מילה זוהתה" - }, - direction: "rtl" -}; - -})); diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/languages/hr.js b/Mobile.Search.Web/Scripts/froala-editor/js/languages/hr.js deleted file mode 100644 index 2b3aeee..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/languages/hr.js +++ /dev/null @@ -1,318 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = function( root, jQuery ) { - if ( jQuery === undefined ) { - // require('jQuery') returns a factory that requires window to - // build a jQuery instance, we normalize how we use modules - // that require this pattern but the window provided is a noop - // if it's defined (how jquery works) - if ( typeof window !== 'undefined' ) { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - return factory(jQuery); - }; - } else { - // Browser globals - factory(window.jQuery); - } -}(function ($) { -/** - * Croatian - */ - -$.FE.LANGUAGE['hr'] = { - translation: { - // Place holder - "Type something": "Napi\u0161i ne\u0161to", - - // Basic formatting - "Bold": "Podebljaj", - "Italic": "Kurziv", - "Underline": "Podcrtano", - "Strikethrough": "Precrtano", - - // Main buttons - "Insert": "Umetni", - "Delete": "Obri\u0161i", - "Cancel": "Otka\u017ei", - "OK": "U redu", - "Back": "Natrag", - "Remove": "Ukloni", - "More": "Vi\u0161e", - "Update": "A\u017euriraj", - "Style": "Stil", - - // Font - "Font Family": "Odaberi font", - "Font Size": "Veli\u010dina fonta", - - // Colors - "Colors": "Boje", - "Background": "Pozadina", - "Text": "Tekst", - "HEX Color": "Heksadecimalne boje", - - // Paragraphs - "Paragraph Format": "Format odlomka", - "Normal": "Normalno", - "Code": "Izvorni kod", - "Heading 1": "Naslov 1", - "Heading 2": "Naslov 2", - "Heading 3": "Naslov 3", - "Heading 4": "Naslov 4", - - // Style - "Paragraph Style": "Stil odlomka", - "Inline Style": "Stil u liniji", - - // Alignment - "Align": "Poravnaj", - "Align Left": "Poravnaj lijevo", - "Align Center": "Poravnaj po sredini", - "Align Right": "Poravnaj desno", - "Align Justify": "Obostrano poravnanje", - "None": "Nijedan", - - // Lists - "Ordered List": "Ure\u0111ena lista", - "Unordered List": "Neure\u0111ena lista", - - // Indent - "Decrease Indent": "Uvuci odlomak", - "Increase Indent": "Izvuci odlomak", - - // Links - "Insert Link": "Umetni link", - "Open in new tab": "Otvori u novom prozoru", - "Open Link": "Otvori link", - "Edit Link": "Uredi link", - "Unlink": "Ukloni link", - "Choose Link": "Odaberi link", - - // Images - "Insert Image": "Umetni sliku", - "Upload Image": "Prijenos slike", - "By URL": "Prema URL", - "Browse": "Odabir", - "Drop image": "Ispusti sliku", - "or click": "ili odaberi", - "Manage Images": "Upravljanje slikama", - "Loading": "U\u010ditavanje", - "Deleting": "Brisanje", - "Tags": "Oznake", - "Are you sure? Image will be deleted.": "Da li ste sigurni da \u017eelite obrisati ovu sliku?", - "Replace": "Zamijeni", - "Uploading": "Prijenos", - "Loading image": "Otvaram sliku", - "Display": "Prika\u017ei", - "Inline": "U liniji", - "Break Text": "Odvojeni tekst", - "Alternate Text": "Alternativni tekst", - "Change Size": "Promjena veli\u010dine", - "Width": "\u0160irina", - "Height": "Visina", - "Something went wrong. Please try again.": "Ne\u0161to je po\u0161lo po zlu. Molimo poku\u0161ajte ponovno.", - "Image Caption": "Opis slike", - "Advanced Edit": "Napredno uređivanje", - - // Video - "Insert Video": "Umetni video", - "Embedded Code": "Ugra\u0111eni kod", - "Paste in a video URL": "Zalijepite u URL videozapisa", - "Drop video": "Ispusti video", - "Your browser does not support HTML5 video.": "Vaš preglednik ne podržava HTML video.", - "Upload Video": "Prenesi videozapis", - - // Tables - "Insert Table": "Umetni tablicu", - "Table Header": "Zaglavlje tablice", - "Remove Table": "Izbri\u0161i tablicu", - "Table Style": "Tablica stil", - "Horizontal Align": "Horizontalna poravnanje", - "Row": "Red", - "Insert row above": "Umetni red iznad", - "Insert row below": "Umetni red ispod", - "Delete row": "Obri\u0161i red", - "Column": "Stupac", - "Insert column before": "Umetni stupac prije", - "Insert column after": "Umetni stupac poslije", - "Delete column": "Obri\u0161i stupac", - "Cell": "Polje", - "Merge cells": "Spoji polja", - "Horizontal split": "Horizontalno razdvajanje polja", - "Vertical split": "Vertikalno razdvajanje polja", - "Cell Background": "Polje pozadine", - "Vertical Align": "Vertikalno poravnanje", - "Top": "Vrh", - "Middle": "Sredina", - "Bottom": "Dno", - "Align Top": "Poravnaj na vrh", - "Align Middle": "Poravnaj po sredini", - "Align Bottom": "Poravnaj na dno", - "Cell Style": "Stil polja", - - // Files - "Upload File": "Prijenos datoteke", - "Drop file": "Ispusti datoteku", - - // Emoticons - "Emoticons": "Emotikoni", - "Grinning face": "Nacereno lice", - "Grinning face with smiling eyes": "Nacereno lice s nasmije\u0161enim o\u010dima", - "Face with tears of joy": "Lice sa suzama radosnicama", - "Smiling face with open mouth": "Nasmijano lice s otvorenim ustima", - "Smiling face with open mouth and smiling eyes": "Nasmijano lice s otvorenim ustima i nasmijanim o\u010dima", - "Smiling face with open mouth and cold sweat": "Nasmijano lice s otvorenim ustima i hladnim znojem", - "Smiling face with open mouth and tightly-closed eyes": "Nasmijano lice s otvorenim ustima i \u010dvrsto zatvorenih o\u010diju", - "Smiling face with halo": "Nasmijano lice sa aureolom", - "Smiling face with horns": "Nasmijano lice s rogovima", - "Winking face": "Lice koje namiguje", - "Smiling face with smiling eyes": "Nasmijano lice s nasmiješenim o\u010dima", - "Face savoring delicious food": "Lice koje u\u017eiva ukusnu hranu", - "Relieved face": "Lice s olak\u0161anjem", - "Smiling face with heart-shaped eyes": "Nasmijano lice sa o\u010dima u obliku srca", - "Smiling face with sunglasses": "Nasmijano lice sa sun\u010danim nao\u010dalama", - "Smirking face": "Zlokobno nasmije\u0161eno lice", - "Neutral face": "Neutralno lice", - "Expressionless face": "Bezizra\u017eajno lice", - "Unamused face": "Nezainteresirano lice", - "Face with cold sweat": "Lice s hladnim znojem", - "Pensive face": "Zami\u0161ljeno lice", - "Confused face": "Zbunjeno lice", - "Confounded face": "Zbunjeno lice", - "Kissing face": "Lice s poljupcem", - "Face throwing a kiss": "Lice koje baca poljubac", - "Kissing face with smiling eyes": "Lice s poljupcem s nasmije\u0161enim o\u010dima", - "Kissing face with closed eyes": "Lice s poljupcem zatvorenih o\u010diju", - "Face with stuck out tongue": "Lice s ispru\u017eenim jezikom", - "Face with stuck out tongue and winking eye": "Lice s ispru\u017eenim jezikom koje namiguje", - "Face with stuck out tongue and tightly-closed eyes": "Lice s ispru\u017eenim jezikom i \u010dvrsto zatvorenih o\u010diju", - "Disappointed face": "Razo\u010darano lice", - "Worried face": "Zabrinuto lice", - "Angry face": "Ljutito lice", - "Pouting face": "Nadureno lice", - "Crying face": "Uplakano lice", - "Persevering face": "Lice s negodovanjem", - "Face with look of triumph": "Trijumfalno lice", - "Disappointed but relieved face": "Razo\u010darano ali olakšano lice", - "Frowning face with open mouth": "Namrgo\u0111eno lice s otvorenim ustima", - "Anguished face": "Tjeskobno lice", - "Fearful face": "Prestra\u0161eno lice", - "Weary face": "Umorno lice", - "Sleepy face": "Pospano lice", - "Tired face": "Umorno lice", - "Grimacing face": "Lice sa grimasama", - "Loudly crying face": "Glasno pla\u010du\u0107e lice", - "Face with open mouth": "Lice s otvorenim ustima", - "Hushed face": "Tiho lice", - "Face with open mouth and cold sweat": "Lice s otvorenim ustima i hladnim znojem", - "Face screaming in fear": "Lice koje vri\u0161ti u strahu", - "Astonished face": "Zaprepa\u0161teno lice", - "Flushed face": "Zajapureno lice", - "Sleeping face": "Spava\u0107e lice", - "Dizzy face": "Lice sa vrtoglavicom", - "Face without mouth": "Lice bez usta", - "Face with medical mask": "Lice s medicinskom maskom", - - // Line breaker - "Break": "Odvojeno", - - // Math - "Subscript": "Indeks", - "Superscript": "Eksponent", - - // Full screen - "Fullscreen": "Puni zaslon", - - // Horizontal line - "Insert Horizontal Line": "Umetni liniju", - - // Clear formatting - "Clear Formatting": "Ukloni oblikovanje", - - // Undo, redo - "Undo": "Korak natrag", - "Redo": "Korak naprijed", - - // Select all - "Select All": "Odaberi sve", - - // Code view - "Code View": "Pregled koda", - - // Quote - "Quote": "Citat", - "Increase": "Pove\u0107aj", - "Decrease": "Smanji", - - // Quick Insert - "Quick Insert": "Brzo umetak", - - // Spcial Characters - "Special Characters": "Posebni znakovi", - "Latin": "Latinski", - "Greek": "Grčki", - "Cyrillic": "Ćirilica", - "Punctuation": "Interpunkcija", - "Currency": "Valuta", - "Arrows": "Strelice", - "Math": "Matematika", - "Misc": "Razno", - - // Print. - "Print": "Otisak", - - // Spell Checker. - "Spell Checker": "Provjeritelj pravopisa", - - // Help - "Help": "Pomoć", - "Shortcuts": "Prečaci", - "Inline Editor": "Inline editor", - "Show the editor": "Prikaži urednika", - "Common actions": "Zajedničke radnje", - "Copy": "Kopirati", - "Cut": "Rez", - "Paste": "Zalijepiti", - "Basic Formatting": "Osnovno oblikovanje", - "Increase quote level": "Povećati razinu citata", - "Decrease quote level": "Smanjite razinu citata", - "Image / Video": "Slika / video", - "Resize larger": "Promijenite veličinu većeg", - "Resize smaller": "Promijenite veličinu manju", - "Table": "Stol", - "Select table cell": "Odaberite stolnu ćeliju", - "Extend selection one cell": "Proširiti odabir jedne ćelije", - "Extend selection one row": "Proširite odabir jednog retka", - "Navigation": "Navigacija", - "Focus popup / toolbar": "Fokus popup / alatnoj traci", - "Return focus to previous position": "Vratiti fokus na prethodnu poziciju", - - // Embed.ly - "Embed URL": "Uredi url", - "Paste in a URL to embed": "Zalijepite URL da biste ga ugradili", - - // Word Paste. - "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Zalijepi sadržaj dolazi iz Microsoft Word dokumenta. Želite li zadržati format ili očistiti?", - "Keep": "Zadržati", - "Clean": "Čist", - "Word Paste Detected": "Otkrivena je zastavica riječi" - }, - direction: "ltr" -}; - -})); diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/languages/hu.js b/Mobile.Search.Web/Scripts/froala-editor/js/languages/hu.js deleted file mode 100644 index 9240125..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/languages/hu.js +++ /dev/null @@ -1,318 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = function( root, jQuery ) { - if ( jQuery === undefined ) { - // require('jQuery') returns a factory that requires window to - // build a jQuery instance, we normalize how we use modules - // that require this pattern but the window provided is a noop - // if it's defined (how jquery works) - if ( typeof window !== 'undefined' ) { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - return factory(jQuery); - }; - } else { - // Browser globals - factory(window.jQuery); - } -}(function ($) { -/** - * Hungarian - */ - -$.FE.LANGUAGE['hu'] = { - translation: { - // Place holder - "Type something": "Sz\u00f6veg...", - - // Basic formatting - "Bold": "F\u00e9lk\u00f6v\u00e9r", - "Italic": "D\u0151lt", - "Underline": "Al\u00e1h\u00fazott", - "Strikethrough": "\u00c1th\u00fazott", - - // Main buttons - "Insert": "Beilleszt\u00e9s", - "Delete": "T\u00f6rl\u00e9s", - "Cancel": "M\u00e9gse", - "OK": "Rendben", - "Back": "Vissza", - "Remove": "Elt\u00e1vol\u00edt\u00e1s", - "More": "T\u00f6bb", - "Update": "Friss\u00edt\u00e9s", - "Style": "St\u00edlus", - - // Font - "Font Family": "Bet\u0171t\u00edpus", - "Font Size": "Bet\u0171m\u00e9ret", - - // Colors - "Colors": "Sz\u00ednek", - "Background": "H\u00e1tt\u00e9r", - "Text": "Sz\u00f6veg", - "HEX Color": "Hex színű", - - // Paragraphs - "Paragraph Format": "Form\u00e1tumok", - "Normal": "Norm\u00e1l", - "Code": "K\u00f3d", - "Heading 1": "C\u00edmsor 1", - "Heading 2": "C\u00edmsor 2", - "Heading 3": "C\u00edmsor 3", - "Heading 4": "C\u00edmsor 4", - - // Style - "Paragraph Style": "Bekezd\u00e9s st\u00edlusa", - "Inline Style": " Helyi st\u00edlus", - - // Alignment - "Align": "Igaz\u00edt\u00e1s", - "Align Left": "Balra igaz\u00edt", - "Align Center": "K\u00f6z\u00e9pre z\u00e1r", - "Align Right": "Jobbra igaz\u00edt", - "Align Justify": "Sorkiz\u00e1r\u00e1s", - "None": "Egyik sem", - - // Lists - "Ordered List": "Sz\u00e1moz\u00e1s", - "Unordered List": "Felsorol\u00e1s", - - // Indent - "Decrease Indent": "Beh\u00faz\u00e1s cs\u00f6kkent\u00e9se", - "Increase Indent": "Beh\u00faz\u00e1s n\u00f6vel\u00e9se", - - // Links - "Insert Link": "Hivatkoz\u00e1s beilleszt\u00e9se", - "Open in new tab": "Megnyit\u00e1s \u00faj lapon", - "Open Link": "Hivatkoz\u00e1s megnyit\u00e1sa", - "Edit Link": "Hivatkoz\u00e1 s szerkeszt\u00e9se", - "Unlink": "Hivatkoz\u00e1s t\u00f6rl\u00e9se", - "Choose Link": "Keres\u00e9s a lapok k\u00f6z\u00f6tt", - - // Images - "Insert Image": "K\u00e9p beilleszt\u00e9se", - "Upload Image": "K\u00e9p felt\u00f6lt\u00e9se", - "By URL": "Webc\u00edm megad\u00e1sa", - "Browse": "B\u00f6ng\u00e9sz\u00e9s", - "Drop image": "H\u00fazza ide a k\u00e9pet", - "or click": "vagy kattintson ide", - "Manage Images": "K\u00e9pek kezel\u00e9se", - "Loading": "Bet\u00f6lt\u00e9s...", - "Deleting": "T\u00f6rl\u00e9s...", - "Tags": "C\u00edmk\u00e9k", - "Are you sure? Image will be deleted.": "Biztos benne? A k\u00e9p t\u00f6rl\u00e9sre ker\u00fcl.", - "Replace": "Csere", - "Uploading": "Felt\u00f6lt\u00e9s", - "Loading image": "K\u00e9p bet\u00f6lt\u00e9se", - "Display": "Kijelz\u0151", - "Inline": "Sorban", - "Break Text": "Sz\u00f6veg t\u00f6r\u00e9se", - "Alternate Text": "Alternat\u00edv sz\u00f6veg", - "Change Size": "M\u00e9ret m\u00f3dos\u00edt\u00e1sa", - "Width": "Sz\u00e9less\u00e9g", - "Height": "Magass\u00e1g", - "Something went wrong. Please try again.": "Valami elromlott. K\u00e9rlek pr\u00f3b\u00e1ld \u00fajra.", - "Image Caption": "Képaláírás", - "Advanced Edit": "Fejlett szerkesztés", - - // Video - "Insert Video": "Vide\u00f3 beilleszt\u00e9se", - "Embedded Code": "K\u00f3d bem\u00e1sol\u00e1sa", - "Paste in a video URL": "Illessze be a videó URL-címét", - "Drop video": "Csepp videót", - "Your browser does not support HTML5 video.": "A böngészője nem támogatja a html5 videót.", - "Upload Video": "Videó feltöltése", - - // Tables - "Insert Table": "T\u00e1bl\u00e1zat beilleszt\u00e9se", - "Table Header": "T\u00e1bl\u00e1zat fejl\u00e9ce", - "Remove Table": "T\u00e1bla elt\u00e1vol\u00edt\u00e1sa", - "Table Style": "T\u00e1bl\u00e1zat st\u00edlusa", - "Horizontal Align": "V\u00edzszintes igaz\u00edt\u00e1s", - "Row": "Sor", - "Insert row above": "Sor besz\u00far\u00e1sa el\u00e9", - "Insert row below": "Sor besz\u00far\u00e1sa m\u00f6g\u00e9", - "Delete row": "Sor t\u00f6rl\u00e9se", - "Column": "Oszlop", - "Insert column before": "Oszlop besz\u00far\u00e1sa el\u00e9", - "Insert column after": "Oszlop besz\u00far\u00e1sa m\u00f6g\u00e9", - "Delete column": "Oszlop t\u00f6rl\u00e9se", - "Cell": "Cella", - "Merge cells": "Cell\u00e1k egyes\u00edt\u00e9se", - "Horizontal split": "V\u00edzszintes osztott", - "Vertical split": "F\u00fcgg\u0151leges osztott", - "Cell Background": "Cella h\u00e1ttere", - "Vertical Align": "F\u00fcgg\u0151leges fej\u00e1ll\u00edt\u00e1s", - "Top": "Fels\u0151", - "Middle": "K\u00f6z\u00e9ps\u0151", - "Bottom": "Als\u00f3", - "Align Top": "Igaz\u00edtsa fel\u00fclre", - "Align Middle": "Igaz\u00edtsa k\u00f6z\u00e9pre", - "Align Bottom": "Igaz\u00edtsa al\u00falra", - "Cell Style": "Cella st\u00edlusa", - - // Files - "Upload File": "F\u00e1jl felt\u00f6lt\u00e9se", - "Drop file": "H\u00fazza ide a f\u00e1jlt", - - // Emoticons - "Emoticons": "Hangulatjelek", - "Grinning face": "Vigyorg\u00f3 arc", - "Grinning face with smiling eyes": "Vigyorg\u00f3 arc mosolyg\u00f3 szemekkel", - "Face with tears of joy": "Arc \u00e1t az \u00f6r\u00f6m k\u00f6nnyei", - "Smiling face with open mouth": "Mosolyg\u00f3 arc t\u00e1tott sz\u00e1jjal", - "Smiling face with open mouth and smiling eyes": "Mosolyg\u00f3 arc t\u00e1tott sz\u00e1jjal \u00e9s mosolyg\u00f3 szemek", - "Smiling face with open mouth and cold sweat": "Mosolyg\u00f3 arc t\u00e1tott sz\u00e1jjal \u00e9s hideg ver\u00edt\u00e9k", - "Smiling face with open mouth and tightly-closed eyes": "Mosolyg\u00f3 arc t\u00e1tott sz\u00e1jjal \u00e9s szorosan lehunyt szemmel", - "Smiling face with halo": "Mosolyg\u00f3 arc dicsf\u00e9nyben", - "Smiling face with horns": "Mosolyg\u00f3 arc szarvakkal", - "Winking face": "Kacsint\u00f3s arc", - "Smiling face with smiling eyes": "Mosolyg\u00f3 arc mosolyg\u00f3 szemekkel", - "Face savoring delicious food": "Arc \u00edzlelgette \u00edzletes \u00e9telek", - "Relieved face": "Megk\u00f6nnyebb\u00fclt arc", - "Smiling face with heart-shaped eyes": "Mosolyg\u00f3 arc sz\u00edv alak\u00fa szemekkel", - "Smilin g face with sunglasses": "Mosolyg\u00f3 arc napszem\u00fcvegben", - "Smirking face": "Vigyorg\u00f3 arca", - "Neutral face": "Semleges arc", - "Expressionless face": "Kifejez\u00e9stelen arc", - "Unamused face": "Unott arc", - "Face with cold sweat": "Arc\u00e1n hideg verejt\u00e9kkel", - "Pensive face": "T\u00f6preng\u0151 arc", - "Confused face": "Zavaros arc", - "Confounded face": "R\u00e1c\u00e1folt arc", - "Kissing face": "Cs\u00f3kos arc", - "Face throwing a kiss": "Arcra dobott egy cs\u00f3kot", - "Kissing face with smiling eyes": "Cs\u00f3kos arc\u00e1t mosolyg\u00f3 szemek", - "Kissing face with closed eyes": "Cs\u00f3kos arc\u00e1t csukott szemmel", - "Face with stuck out tongue": "Szembe kiny\u00faj totta a nyelv\u00e9t", - "Face with stuck out tongue and winking eye": "Szembe kiny\u00fajtotta a nyelv\u00e9t, \u00e9s kacsint\u00f3 szem", - "Face with stuck out tongue and tightly-closed eyes": "Arc kiny\u00fajtotta a nyelv\u00e9t, \u00e9s szorosan lehunyt szemmel", - "Disappointed face": "Csal\u00f3dott arc", - "Worried face": "Agg\u00f3d\u00f3 arc\u00e1t", - "Angry face": "D\u00fch\u00f6s arc", - "Pouting face": "Duzzog\u00f3 arc", - "Crying face": "S\u00edr\u00f3 arc", - "Persevering face": "Kitart\u00f3 arc", - "Face with look of triumph": "Arc\u00e1t diadalmas pillant\u00e1st", - "Disappointed but relieved face": "Csal\u00f3dott, de megk\u00f6nnyebb\u00fclt arc", - "Frowning face with open mouth": "Komor arcb\u00f3l t\u00e1tott sz\u00e1jjal", - "Anguished face": "Gy\u00f6tr\u0151d\u0151 arc", - "Fearful face": "F\u00e9lelmetes arc", - "Weary face": "F\u00e1radt arc", - "Sleepy face": "\u00e1lmos arc", - "Tired face": "F\u00e1radt arc", - "Grimacing face": "Elfintorodott arc", - "Loudly crying face": "Hangosan s\u00edr\u00f3 arc", - "Face with open mouth": "Arc nyitott sz\u00e1jjal", - "Hushed face": "Csit\u00edtott arc", - "Face with open mouth and cold sweat": "Arc t\u00e1tott sz\u00e1jjal \u00e9s hideg ver\u00edt\u00e9k", - "Face screaming in fear": "Sikoltoz\u00f3 arc a f\u00e9lelemt\u0151l", - "Astonished face": "Meglepett arc", - "Flushed face": "Kipirult arc", - "Sleeping face": "Alv\u00f3 arc", - "Dizzy face": " Sz\u00e1d\u00fcl\u0151 arc", - "Face without mouth": "Arc n\u00e9lküli sz\u00e1j", - "Face with medical mask": "Arc\u00e1n orvosi maszk", - - // Line breaker - "Break": "T\u00f6r\u00e9s", - - // Math - "Subscript": "Als\u00f3 index", - "Superscript": "Fels\u0151 index", - - // Full screen - "Fullscreen": "Teljes k\u00e9perny\u0151", - - // Horizontal line - "Insert Horizontal Line": "V\u00edzszintes vonal", - - // Clear formatting - "Clear Formatting": "Form\u00e1z\u00e1s elt\u00e1vol\u00edt\u00e1sa", - - // Undo, redo - "Undo": "Visszavon\u00e1s", - "Redo": "Ism\u00e9t", - - // Select all - "Select All": "Minden kijel\u00f6l\u00e9se", - - // Code view - "Code View": "Forr\u00e1sk\u00f3d", - - // Quote - "Quote": "Id\u00e9zet", - "Increase": "N\u00f6vel\u00e9s", - "Decrease": "Cs\u00f6kkent\u00e9s", - - // Quick Insert - "Quick Insert": "Beilleszt\u00e9s", - - // Spcial Characters - "Special Characters": "Speciális karakterek", - "Latin": "Latin", - "Greek": "Görög", - "Cyrillic": "Cirill", - "Punctuation": "Központozás", - "Currency": "Valuta", - "Arrows": "Nyilak", - "Math": "Matematikai", - "Misc": "Misc", - - // Print. - "Print": "Nyomtatás", - - // Spell Checker. - "Spell Checker": "Helyesírás-ellenőrző", - - // Help - "Help": "Segítség", - "Shortcuts": "Hivatkozások", - "Inline Editor": "Inline szerkesztő", - "Show the editor": "Mutassa meg a szerkesztőt", - "Common actions": "Közös cselekvések", - "Copy": "Másolat", - "Cut": "Vágott", - "Paste": "Paszta", - "Basic Formatting": "Alap formázás", - "Increase quote level": "Növeli az idézet szintjét", - "Decrease quote level": "Csökkenti az árazási szintet", - "Image / Video": "Kép / videó", - "Resize larger": "Nagyobb átméretezés", - "Resize smaller": "Kisebb méretűek", - "Table": "Asztal", - "Select table cell": "Válasszon táblázatcellát", - "Extend selection one cell": "Kiterjesztheti a kiválasztást egy cellára", - "Extend selection one row": "Szűkítse ki az egy sort", - "Navigation": "Navigáció", - "Focus popup / toolbar": "Fókusz felugró ablak / eszköztár", - "Return focus to previous position": "Visszaáll az előző pozícióra", - - // Embed.ly - "Embed URL": "Beágyazott url", - "Paste in a URL to embed": "Beilleszteni egy URL-t a beágyazáshoz", - - // Word Paste. - "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "A beillesztett tartalom egy microsoft szó dokumentumból származik. szeretné megtartani a formátumot vagy tisztítani?", - "Keep": "Tart", - "Clean": "Tiszta", - "Word Paste Detected": "Szópaszta észlelhető" - }, - direction: "ltr" -}; - -})); diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/languages/id.js b/Mobile.Search.Web/Scripts/froala-editor/js/languages/id.js deleted file mode 100644 index 4f85816..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/languages/id.js +++ /dev/null @@ -1,319 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = function( root, jQuery ) { - if ( jQuery === undefined ) { - // require('jQuery') returns a factory that requires window to - // build a jQuery instance, we normalize how we use modules - // that require this pattern but the window provided is a noop - // if it's defined (how jquery works) - if ( typeof window !== 'undefined' ) { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - return factory(jQuery); - }; - } else { - // Browser globals - factory(window.jQuery); - } -}(function ($) { -/** - * Indonesian - */ - -$.FE.LANGUAGE['id'] = { - translation: { - // Place holder - "Type something": "Ketik sesuatu", - - // Basic formatting - "Bold": "Tebal", - "Italic": "Miring", - "Underline": "Garis bawah", - "Strikethrough": "Coret", - - // Main buttons - "Insert": "Memasukkan", - "Delete": "Hapus", - "Cancel": "Batal", - "OK": "Ok", - "Back": "Kembali", - "Remove": "Hapus", - "More": "Lebih", - "Update": "Memperbarui", - "Style": "Gaya", - - // Font - "Font Family": "Jenis Huruf", - "Font Size": "Ukuran leter", - - // Colors - "Colors": "Warna", - "Background": "Latar belakang", - "Text": "Teks", - "HEX Color": "Warna hex", - - // Paragraphs - "Paragraph Format": "Format", - "Normal": "Normal", - "Code": "Kode", - "Heading 1": "Header 1", - "Heading 2": "Header 2", - "Heading 3": "Header 3", - "Heading 4": "Header 4", - - // Style - "Paragraph Style": "Paragraf gaya", - "Inline Style": "Di barisan gaya", - - // Alignment - "Align": "Rate", - "Align Left": "Rate kiri", - "Align Center": "Rate tengah", - "Align Right": "Rata kanan", - "Align Justify": "Justifi", - "None": "Tak satupun", - - // Lists - "Ordered List": "List nomor", - "Unordered List": "List simbol", - - // Indent - "Decrease Indent": "Turunkan inden", - "Increase Indent": "Tambah inden", - - // Links - "Insert Link": "Memasukkan link", - "Open in new tab": "Buka di tab baru", - "Open Link": "Buka tautan", - "Edit Link": "Mengedit link", - "Unlink": "Menghapus link", - "Choose Link": "Memilih link", - - // Images - "Insert Image": "Memasukkan gambar", - "Upload Image": "Meng-upload gambar", - "By URL": "Oleh URL", - "Browse": "Melihat-lihat", - "Drop image": "Jatuhkan gambar", - "or click": "atau klik", - "Manage Images": "Mengelola gambar", - "Loading": "Pemuatan", - "Deleting": "Menghapus", - "Tags": "Label", - "Are you sure? Image will be deleted.": "Apakah Anda yakin? Gambar akan dihapus.", - "Replace": "Mengganti", - "Uploading": "Gambar upload", - "Loading image": "Pemuatan gambar", - "Display": "Pameran", - "Inline": "Di barisan", - "Break Text": "Memecah teks", - "Alternate Text": "Teks alternatif", - "Change Size": "Ukuran perubahan", - "Width": "Lebar", - "Height": "Tinggi", - "Something went wrong. Please try again.": "Ada yang salah. Silakan coba lagi.", - "Image Caption": "Keterangan gambar", - "Advanced Edit": "Edit lanjutan", - - // Video - "Insert Video": "Memasukkan video", - "Embedded Code": "Kode tertanam", - "Paste in a video URL": "Paste di url video", - "Drop video": "Jatuhkan video", - "Your browser does not support HTML5 video.": "Browser Anda tidak mendukung video html5.", - "Upload Video": "Mengunggah video", - - // Tables - "Insert Table": "Sisipkan tabel", - "Table Header": "Header tabel", - "Remove Table": "Hapus tabel", - "Table Style": "Gaya tabel", - "Horizontal Align": "Menyelaraskan horisontal", - - "Row": "Baris", - "Insert row above": "Sisipkan baris di atas", - "Insert row below": "Sisipkan baris di bawah", - "Delete row": "Hapus baris", - "Column": "Kolom", - "Insert column before": "Sisipkan kolom sebelumSisipkan kolom sebelum", - "Insert column after": "Sisipkan kolom setelah", - "Delete column": "Hapus kolom", - "Cell": "Sel", - "Merge cells": "Menggabungkan sel", - "Horizontal split": "Perpecahan horisontal", - "Vertical split": "Perpecahan vertikal", - "Cell Background": "Latar belakang sel", - "Vertical Align": "Menyelaraskan vertikal", - "Top": "Teratas", - "Middle": "Tengah", - "Bottom": "Bagian bawah", - "Align Top": "Menyelaraskan atas", - "Align Middle": "Menyelaraskan tengah", - "Align Bottom": "Menyelaraskan bawah", - "Cell Style": "Gaya sel", - - // Files - "Upload File": "Meng-upload berkas", - "Drop file": "Jatuhkan berkas", - - // Emoticons - "Emoticons": "Emoticon", - "Grinning face": "Sambil tersenyum wajah", - "Grinning face with smiling eyes": "Sambil tersenyum wajah dengan mata tersenyum", - "Face with tears of joy": "Hadapi dengan air mata sukacita", - "Smiling face with open mouth": "Tersenyum wajah dengan mulut terbuka", - "Smiling face with open mouth and smiling eyes": "Tersenyum wajah dengan mulut terbuka dan tersenyum mata", - "Smiling face with open mouth and cold sweat": "Tersenyum wajah dengan mulut terbuka dan keringat dingin", - "Smiling face with open mouth and tightly-closed eyes": "Tersenyum wajah dengan mulut terbuka dan mata tertutup rapat", - "Smiling face with halo": "Tersenyum wajah dengan halo", - "Smiling face with horns": "Tersenyum wajah dengan tanduk", - "Winking face": "Mengedip wajah", - "Smiling face with smiling eyes": "Tersenyum wajah dengan mata tersenyum", - "Face savoring delicious food": "Wajah menikmati makanan lezat", - "Relieved face": "Wajah Lega", - "Smiling face with heart-shaped eyes": "Tersenyum wajah dengan mata berbentuk hati", - "Smiling face with sunglasses": "Tersenyum wajah dengan kacamata hitam", - "Smirking face": "Menyeringai wajah", - "Neutral face": "Wajah Netral", - "Expressionless face": "Wajah tanpa ekspresi", - "Unamused face": "Wajah tidak senang", - "Face with cold sweat": "Muka dengan keringat dingin", - "Pensive face": "Wajah termenung", - "Confused face": "Wajah Bingung", - "Confounded face": "Wajah kesal", - "Kissing face": "wajah mencium", - "Face throwing a kiss": "Wajah melempar ciuman", - "Kissing face with smiling eyes": "Berciuman wajah dengan mata tersenyum", - "Kissing face with closed eyes": "Berciuman wajah dengan mata tertutup", - "Face with stuck out tongue": "Muka dengan menjulurkan lidah", - "Face with stuck out tongue and winking eye": "Muka dengan menjulurkan lidah dan mengedip mata", - "Face with stuck out tongue and tightly-closed eyes": "Wajah dengan lidah terjebak dan mata erat-tertutup", - "Disappointed face": "Wajah kecewa", - "Worried face": "Wajah Khawatir", - "Angry face": "Wajah Marah", - "Pouting face": "Cemberut wajah", - "Crying face": "Menangis wajah", - "Persevering face": "Tekun wajah", - "Face with look of triumph": "Hadapi dengan tampilan kemenangan", - "Disappointed but relieved face": "Kecewa tapi lega wajah", - "Frowning face with open mouth": "Sambil mengerutkan kening wajah dengan mulut terbuka", - "Anguished face": "Wajah sedih", - "Fearful face": "Wajah Takut", - "Weary face": "Wajah lelah", - "Sleepy face": "wajah mengantuk", - "Tired face": "Wajah Lelah", - "Grimacing face": "Sambil meringis wajah", - "Loudly crying face": "Keras menangis wajah", - "Face with open mouth": "Hadapi dengan mulut terbuka", - "Hushed face": "Wajah dipetieskan", - "Face with open mouth and cold sweat": "Hadapi dengan mulut terbuka dan keringat dingin", - "Face screaming in fear": "Hadapi berteriak dalam ketakutan", - "Astonished face": "Wajah Kaget", - "Flushed face": "Wajah memerah", - "Sleeping face": "Tidur face", - "Dizzy face": "Wajah pusing", - "Face without mouth": "Wajah tanpa mulut", - "Face with medical mask": "Hadapi dengan masker medis", - - // Line breaker - "Break": "Memecah", - - // Math - "Subscript": "Subskrip", - "Superscript": "Superskrip", - - // Full screen - "Fullscreen": "Layar penuh", - - // Horizontal line - "Insert Horizontal Line": "Sisipkan Garis Horizontal", - - // Clear formatting - "Clear Formatting": "Menghapus format", - - // Undo, redo - "Undo": "Batal", - "Redo": "Ulang", - - // Select all - "Select All": "Pilih semua", - - // Code view - "Code View": "Melihat kode", - - // Quote - "Quote": "Kutipan", - "Increase": "Meningkat", - "Decrease": "Penurunan", - - // Quick Insert - "Quick Insert": "Memasukkan cepat", - - // Spcial Characters - "Special Characters": "Karakter spesial", - "Latin": "Latin", - "Greek": "Yunani", - "Cyrillic": "Kyrillic", - "Punctuation": "Tanda baca", - "Currency": "Mata uang", - "Arrows": "Panah", - "Math": "Matematika", - "Misc": "Misc", - - // Print. - "Print": "Mencetak", - - // Spell Checker. - "Spell Checker": "Pemeriksa ejaan", - - // Help - "Help": "Membantu", - "Shortcuts": "Jalan pintas", - "Inline Editor": "Editor inline", - "Show the editor": "Tunjukkan editornya", - "Common actions": "Tindakan umum", - "Copy": "Salinan", - "Cut": "Memotong", - "Paste": "Pasta", - "Basic Formatting": "Format dasar", - "Increase quote level": "Meningkatkan tingkat kutipan", - "Decrease quote level": "Menurunkan tingkat kutipan", - "Image / Video": "Gambar / video", - "Resize larger": "Mengubah ukuran lebih besar", - "Resize smaller": "Mengubah ukuran lebih kecil", - "Table": "Meja", - "Select table cell": "Pilih sel tabel", - "Extend selection one cell": "Memperpanjang seleksi satu sel", - "Extend selection one row": "Perpanjang pilihan satu baris", - "Navigation": "Navigasi", - "Focus popup / toolbar": "Fokus popup / toolbar", - "Return focus to previous position": "Kembali fokus ke posisi sebelumnya", - - // Embed.ly - "Embed URL": "Embed url", - "Paste in a URL to embed": "Paste di url untuk menanamkan", - - // Word Paste. - "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Konten yang disisipkan berasal dari dokumen kata microsoft. apakah Anda ingin menyimpan format atau membersihkannya?", - "Keep": "Menjaga", - "Clean": "Bersih", - "Word Paste Detected": "Kata paste terdeteksi" - }, - direction: "ltr" -}; - -})); diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/languages/it.js b/Mobile.Search.Web/Scripts/froala-editor/js/languages/it.js deleted file mode 100644 index d5e225d..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/languages/it.js +++ /dev/null @@ -1,318 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = function( root, jQuery ) { - if ( jQuery === undefined ) { - // require('jQuery') returns a factory that requires window to - // build a jQuery instance, we normalize how we use modules - // that require this pattern but the window provided is a noop - // if it's defined (how jquery works) - if ( typeof window !== 'undefined' ) { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - return factory(jQuery); - }; - } else { - // Browser globals - factory(window.jQuery); - } -}(function ($) { -/** - * Italian - */ - -$.FE.LANGUAGE['it'] = { - translation: { - // Place holder - "Type something": "Digita qualcosa", - - // Basic formatting - "Bold": "Grassetto", - "Italic": "Corsivo", - "Underline": "Sottolineato", - "Strikethrough": "Barrato", - - // Main buttons - "Insert": "Inserisci", - "Delete": "Cancella", - "Cancel": "Cancella", - "OK": "OK", - "Back": "Indietro", - "Remove": "Rimuovi", - "More": "Di pi\u00f9", - "Update": "Aggiorna", - "Style": "Stile", - - // Font - "Font Family": "Carattere", - "Font Size": "Dimensione Carattere", - - // Colors - "Colors": "Colori", - "Background": "Sfondo", - "Text": "Testo", - "HEX Color": "Colore Esadecimale", - - // Paragraphs - "Paragraph Format": "Formattazione", - "Normal": "Normale", - "Code": "Codice", - "Heading 1": "Intestazione 1", - "Heading 2": "Intestazione 2", - "Heading 3": "Intestazione 3", - "Heading 4": "Intestazione 4", - - // Style - "Paragraph Style": "Stile Paragrafo", - "Inline Style": "Stile in Linea", - - // Alignment - "Align": "Allinea", - "Align Left": "Allinea a Sinistra", - "Align Center": "Allinea al Cento", - "Align Right": "Allinea a Destra", - "Align Justify": "Giustifica", - "None": "Nessuno", - - // Lists - "Ordered List": "Elenchi Numerati", - "Unordered List": "Elenchi Puntati", - - // Indent - "Decrease Indent": "Riduci Rientro", - "Increase Indent": "Aumenta Rientro", - - // Links - "Insert Link": "Inserisci Link", - "Open in new tab": "Apri in nuova scheda", - "Open Link": "Apri Link", - "Edit Link": "Modifica Link", - "Unlink": "Rimuovi Link", - "Choose Link": "Scegli Link", - - // Images - "Insert Image": "Inserisci Immagine", - "Upload Image": "Carica Immagine", - "By URL": "Inserisci URL", - "Browse": "Sfoglia", - "Drop image": "Rilascia immagine", - "or click": "oppure clicca qui", - "Manage Images": "Gestione Immagini", - "Loading": "Caricamento", - "Deleting": "Eliminazione", - "Tags": "Etichetta", - "Are you sure? Image will be deleted.": "Sei sicuro? L\'immagine verr\u00e0 cancellata.", - "Replace": "Sostituisci", - "Uploading": "Caricamento", - "Loading image": "Caricamento immagine", - "Display": "Visualizzazione", - "Inline": "In Linea", - "Break Text": "Separa dal Testo", - "Alternate Text": "Testo Alternativo", - "Change Size": "Cambia Dimensioni", - "Width": "Larghezza", - "Height": "Altezza", - "Something went wrong. Please try again.": "Qualcosa non ha funzionato. Riprova, per favore.", - "Image Caption": "Didascalia", - "Advanced Edit": "Avanzato", - - // Video - "Insert Video": "Inserisci Video", - "Embedded Code": "Codice Incorporato", - "Paste in a video URL": "Incolla l'URL del video", - "Drop video": "Rilascia video", - "Your browser does not support HTML5 video.": "Il tuo browser non supporta i video html5.", - "Upload Video": "Carica Video", - - // Tables - "Insert Table": "Inserisci Tabella", - "Table Header": "Intestazione Tabella", - "Remove Table": "Rimuovi Tabella", - "Table Style": "Stile Tabella", - "Horizontal Align": "Allineamento Orizzontale", - "Row": "Riga", - "Insert row above": "Inserisci una riga prima", - "Insert row below": "Inserisci una riga dopo", - "Delete row": "Cancella riga", - "Column": "Colonna", - "Insert column before": "Inserisci una colonna prima", - "Insert column after": "Inserisci una colonna dopo", - "Delete column": "Cancella colonna", - "Cell": "Cella", - "Merge cells": "Unisci celle", - "Horizontal split": "Dividi in orizzontale", - "Vertical split": "Dividi in verticale", - "Cell Background": "Sfondo Cella", - "Vertical Align": "Allineamento Verticale", - "Top": "Alto", - "Middle": "Centro", - "Bottom": "Basso", - "Align Top": "Allinea in Alto", - "Align Middle": "Allinea al Centro", - "Align Bottom": "Allinea in Basso", - "Cell Style": "Stile Cella", - - // Files - "Upload File": "Carica File", - "Drop file": "Rilascia file", - - // Emoticons - "Emoticons": "Emoticon", - "Grinning face": "Sorridente", - "Grinning face with smiling eyes": "Sorridente con gli occhi sorridenti", - "Face with tears of joy": "Con lacrime di gioia", - "Smiling face with open mouth": "Sorridente con la bocca aperta", - "Smiling face with open mouth and smiling eyes": "Sorridente con la bocca aperta e gli occhi sorridenti", - "Smiling face with open mouth and cold sweat": "Sorridente con la bocca aperta e sudore freddo", - "Smiling face with open mouth and tightly-closed eyes": "Sorridente con la bocca aperta e gli occhi stretti", - "Smiling face with halo": "Sorridente con aureola", - "Smiling face with horns": "Diavolo sorridente", - "Winking face": "Ammiccante", - "Smiling face with smiling eyes": "Sorridente imbarazzato", - "Face savoring delicious food": "Goloso", - "Relieved face": "Rassicurato", - "Smiling face with heart-shaped eyes": "Sorridente con gli occhi a forma di cuore", - "Smiling face with sunglasses": "Sorridente con gli occhiali da sole", - "Smirking face": "Compiaciuto", - "Neutral face": "Neutro", - "Expressionless face": "Inespressivo", - "Unamused face": "Annoiato", - "Face with cold sweat": "Sudare freddo", - "Pensive face": "Pensieroso", - "Confused face": "Perplesso", - "Confounded face": "Confuso", - "Kissing face": "Bacio", - "Face throwing a kiss": "Manda un bacio", - "Kissing face with smiling eyes": "Bacio con gli occhi sorridenti", - "Kissing face with closed eyes": "Bacio con gli occhi chiusi", - "Face with stuck out tongue": "Linguaccia", - "Face with stuck out tongue and winking eye": "Linguaccia ammiccante", - "Face with stuck out tongue and tightly-closed eyes": "Linguaccia con occhi stretti", - "Disappointed face": "Deluso", - "Worried face": "Preoccupato", - "Angry face": "Arrabbiato", - "Pouting face": "Imbronciato", - "Crying face": "Pianto", - "Persevering face": "Perseverante", - "Face with look of triumph": "Trionfante", - "Disappointed but relieved face": "Deluso ma rassicurato", - "Frowning face with open mouth": "Accigliato con la bocca aperta", - "Anguished face": "Angosciato", - "Fearful face": "Pauroso", - "Weary face": "Stanco", - "Sleepy face": "Assonnato", - "Tired face": "Snervato", - "Grimacing face": "Smorfia", - "Loudly crying face": "Pianto a gran voce", - "Face with open mouth": "Bocca aperta", - "Hushed face": "Silenzioso", - "Face with open mouth and cold sweat": "Bocca aperta e sudore freddo", - "Face screaming in fear": "Urlante dalla paura", - "Astonished face": "Stupito", - "Flushed face": "Arrossito", - "Sleeping face": "Addormentato", - "Dizzy face": "Stordito", - "Face without mouth": "Senza parole", - "Face with medical mask": "Malattia infettiva", - - // Line breaker - "Break": "Separatore", - - // Math - "Subscript": "Pedice", - "Superscript": "Apice", - - // Full screen - "Fullscreen": "Schermo intero", - - // Horizontal line - "Insert Horizontal Line": "Inserisci Divisore Orizzontale", - - // Clear formatting - "Clear Formatting": "Cancella Formattazione", - - // Undo, redo - "Undo": "Annulla", - "Redo": "Ripeti", - - // Select all - "Select All": "Seleziona Tutto", - - // Code view - "Code View": "Visualizza Codice", - - // Quote - "Quote": "Citazione", - "Increase": "Aumenta", - "Decrease": "Diminuisci", - - // Quick Insert - "Quick Insert": "Inserimento Rapido", - - // Spcial Characters - "Special Characters": "Caratteri Speciali", - "Latin": "Latino", - "Greek": "Greco", - "Cyrillic": "Cirillico", - "Punctuation": "Punteggiatura", - "Currency": "Valuta", - "Arrows": "Frecce", - "Math": "Matematica", - "Misc": "Misc", - - // Print. - "Print": "Stampa", - - // Spell Checker. - "Spell Checker": "Correttore Ortografico", - - // Help - "Help": "Aiuto", - "Shortcuts": "Scorciatoie", - "Inline Editor": "Editor in Linea", - "Show the editor": "Mostra Editor", - "Common actions": "Azioni comuni", - "Copy": "Copia", - "Cut": "Taglia", - "Paste": "Incolla", - "Basic Formatting": "Formattazione di base", - "Increase quote level": "Aumenta il livello di citazione", - "Decrease quote level": "Diminuisci il livello di citazione", - "Image / Video": "Immagine / Video", - "Resize larger": "Pi\u00f9 grande", - "Resize smaller": "Pi\u00f9 piccolo", - "Table": "Tabella", - "Select table cell": "Seleziona la cella della tabella", - "Extend selection one cell": "Estendi la selezione di una cella", - "Extend selection one row": "Estendi la selezione una riga", - "Navigation": "Navigazione", - "Focus popup / toolbar": "Metti a fuoco la barra degli strumenti", - "Return focus to previous position": "Rimetti il fuoco sulla posizione precedente", - - // Embed.ly - "Embed URL": "Incorpora URL", - "Paste in a URL to embed": "Incolla un URL da incorporare", - - // Word Paste. - "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Il contenuto incollato proviene da un documento di Microsoft Word. Vuoi mantenere la formattazione di Word o pulirlo?", - "Keep": "Mantieni", - "Clean": "Pulisci", - "Word Paste Detected": "\u00c8 stato rilevato un incolla da Word" - }, - direction: "ltr" -}; - -})); diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/languages/ja.js b/Mobile.Search.Web/Scripts/froala-editor/js/languages/ja.js deleted file mode 100644 index 4cd26ca..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/languages/ja.js +++ /dev/null @@ -1,318 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = function( root, jQuery ) { - if ( jQuery === undefined ) { - // require('jQuery') returns a factory that requires window to - // build a jQuery instance, we normalize how we use modules - // that require this pattern but the window provided is a noop - // if it's defined (how jquery works) - if ( typeof window !== 'undefined' ) { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - return factory(jQuery); - }; - } else { - // Browser globals - factory(window.jQuery); - } -}(function ($) { -/** - * Japanese - */ - -$.FE.LANGUAGE['ja'] = { - translation: { - // Place holder - "Type something": "\u3053\u3053\u306b\u5165\u529b\u3057\u307e\u3059", - - // Basic formatting - "Bold": "\u592a\u5b57", - "Italic": "\u659c\u4f53", - "Underline": "\u4e0b\u7dda", - "Strikethrough": "\u53d6\u308a\u6d88\u3057\u7dda", - - // Main buttons - "Insert": "\u633f\u5165", - "Delete": "\u524a\u9664", - "Cancel": "\u30ad\u30e3\u30f3\u30bb\u30eb", - "OK": "OK", - "Back": "\u623b\u308b", - "Remove": "\u524a\u9664", - "More": "\u3082\u3063\u3068", - "Update": "\u66f4\u65b0", - "Style": "\u30b9\u30bf\u30a4\u30eb", - - // Font - "Font Family": "\u30d5\u30a9\u30f3\u30c8", - "Font Size": "\u30d5\u30a9\u30f3\u30c8\u30b5\u30a4\u30ba", - - // Colors - "Colors": "\u8272", - "Background": "\u80cc\u666f", - "Text": "\u30c6\u30ad\u30b9\u30c8", - "HEX Color": "\u30d8\u30ad\u30b5\u306e\u8272", - - // Paragraphs - "Paragraph Format": "\u6bb5\u843d\u306e\u66f8\u5f0f", - "Normal": "\u6a19\u6e96", - "Code": "\u30b3\u30fc\u30c9", - "Heading 1": "\u30d8\u30c3\u30c0\u30fc 1", - "Heading 2": "\u30d8\u30c3\u30c0\u30fc 2", - "Heading 3": "\u30d8\u30c3\u30c0\u30fc 3", - "Heading 4": "\u30d8\u30c3\u30c0\u30fc 4", - - // Style - "Paragraph Style": "\u6bb5\u843d\u30b9\u30bf\u30a4\u30eb", - "Inline Style": "\u30a4\u30f3\u30e9\u30a4\u30f3\u30b9\u30bf\u30a4\u30eb", - - // Alignment - "Align": "\u914d\u7f6e", - "Align Left": "\u5de6\u63c3\u3048", - "Align Center": "\u4e2d\u592e\u63c3\u3048", - "Align Right": "\u53f3\u63c3\u3048", - "Align Justify": "\u4e21\u7aef\u63c3\u3048", - "None": "\u306a\u3057", - - // Lists - "Ordered List": "\u6bb5\u843d\u756a\u53f7", - "Unordered List": "\u7b87\u6761\u66f8\u304d", - - // Indent - "Decrease Indent": "\u30a4\u30f3\u30c7\u30f3\u30c8\u3092\u6e1b\u3089\u3059", - "Increase Indent": "\u30a4\u30f3\u30c7\u30f3\u30c8\u3092\u5897\u3084\u3059", - - // Links - "Insert Link": "\u30ea\u30f3\u30af\u306e\u633f\u5165", - "Open in new tab": "\u65b0\u3057\u3044\u30bf\u30d6\u3067\u958b\u304f", - "Open Link": "\u30ea\u30f3\u30af\u3092\u958b\u304f", - "Edit Link": "\u30ea\u30f3\u30af\u306e\u7de8\u96c6", - "Unlink": "\u30ea\u30f3\u30af\u306e\u524a\u9664", - "Choose Link": "\u30ea\u30f3\u30af\u3092\u9078\u629e", - - // Images - "Insert Image": "\u753b\u50cf\u306e\u633f\u5165", - "Upload Image": "\u753b\u50cf\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9", - "By URL": "\u753b\u50cf\u306eURL\u3092\u5165\u529b", - "Browse": "\u53c2\u7167", - "Drop image": "\u753b\u50cf\u3092\u30c9\u30e9\u30c3\u30b0&\u30c9\u30ed\u30c3\u30d7", - "or click": "\u307e\u305f\u306f\u30af\u30ea\u30c3\u30af", - "Manage Images": "\u753b\u50cf\u306e\u7ba1\u7406", - "Loading": "\u8aad\u307f\u8fbc\u307f\u4e2d", - "Deleting": "\u524a\u9664", - "Tags": "\u30bf\u30b0", - "Are you sure? Image will be deleted.": "\u672c\u5f53\u306b\u524a\u9664\u3057\u307e\u3059\u304b\uff1f", - "Replace": "\u7f6e\u63db", - "Uploading": "\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u4e2d", - "Loading image": "\u753b\u50cf\u8aad\u307f\u8fbc\u307f\u4e2d", - "Display": "\u8868\u793a", - "Inline": "\u30a4\u30f3\u30e9\u30a4\u30f3", - "Break Text": "\u30c6\u30ad\u30b9\u30c8\u306e\u6539\u884c", - "Alternate Text": "\u4ee3\u66ff\u30c6\u30ad\u30b9\u30c8", - "Change Size": "\u30b5\u30a4\u30ba\u5909\u66f4", - "Width": "\u5e45", - "Height": "\u9ad8\u3055", - "Something went wrong. Please try again.": "\u554f\u984c\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002\u3082\u3046\u4e00\u5ea6\u3084\u308a\u76f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002", - "Image Caption": "\u753b\u50cf\u30ad\u30e3\u30d7\u30b7\u30e7\u30f3", - "Advanced Edit": "\u9ad8\u5ea6\u306a\u7de8\u96c6", - - // Video - "Insert Video": "\u52d5\u753b\u306e\u633f\u5165", - "Embedded Code": "\u57cb\u3081\u8fbc\u307f\u30b3\u30fc\u30c9", - "Paste in a video URL": "\u52d5\u753bURL\u306b\u8cbc\u308a\u4ed8\u3051\u308b", - "Drop video": "\u52d5\u753b\u3092\u30c9\u30e9\u30c3\u30b0&\u30c9\u30ed\u30c3\u30d7", - "Your browser does not support HTML5 video.": "\u3042\u306a\u305f\u306e\u30d6\u30e9\u30a6\u30b6\u306fhtml5 video\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093\u3002", - "Upload Video": "\u52d5\u753b\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9", - - // Tables - "Insert Table": "\u8868\u306e\u633f\u5165", - "Table Header": "\u8868\u306e\u30d8\u30c3\u30c0\u30fc", - "Remove Table": "\u8868\u306e\u524a\u9664", - "Table Style": "\u8868\u306e\u30b9\u30bf\u30a4\u30eb", - "Horizontal Align": "\u6a2a\u4f4d\u7f6e", - "Row": "\u884c", - "Insert row above": "\u4e0a\u306b\u884c\u3092\u633f\u5165", - "Insert row below": "\u4e0b\u306b\u884c\u3092\u633f\u5165", - "Delete row": "\u884c\u306e\u524a\u9664", - "Column": "\u5217", - "Insert column before": "\u5de6\u306b\u5217\u3092\u633f\u5165", - "Insert column after": "\u53f3\u306b\u5217\u3092\u633f\u5165", - "Delete column": "\u5217\u306e\u524a\u9664", - "Cell": "\u30bb\u30eb", - "Merge cells": "\u30bb\u30eb\u306e\u7d50\u5408", - "Horizontal split": "\u6a2a\u5206\u5272", - "Vertical split": "\u7e26\u5206\u5272", - "Cell Background": "\u30bb\u30eb\u306e\u80cc\u666f", - "Vertical Align": "\u7e26\u4f4d\u7f6e", - "Top": "\u4e0a\u63c3\u3048", - "Middle": "\u4e2d\u592e\u63c3\u3048", - "Bottom": "\u4e0b\u63c3\u3048", - "Align Top": "\u4e0a\u306b\u63c3\u3048\u307e\u3059", - "Align Middle": "\u4e2d\u592e\u306b\u63c3\u3048\u307e\u3059", - "Align Bottom": "\u4e0b\u306b\u63c3\u3048\u307e\u3059", - "Cell Style": "\u30bb\u30eb\u30b9\u30bf\u30a4\u30eb", - - // Files - "Upload File": "\u30d5\u30a1\u30a4\u30eb\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9", - "Drop file": "\u30d5\u30a1\u30a4\u30eb\u3092\u30c9\u30e9\u30c3\u30b0&\u30c9\u30ed\u30c3\u30d7", - - // Emoticons - "Emoticons": "\u7d75\u6587\u5b57", - "Grinning face": "\u30cb\u30f3\u30de\u30ea\u9854", - "Grinning face with smiling eyes": "\u30cb\u30f3\u30de\u30ea\u9854(\u7b11\u3063\u3066\u3044\u308b\u76ee)", - "Face with tears of joy": "\u5b09\u3057\u6ce3\u304d\u3059\u308b\u9854", - "Smiling face with open mouth": "\u7b11\u9854(\u5e83\u3052\u305f\u53e3)", - "Smiling face with open mouth and smiling eyes": "\u7b11\u9854(\u5e83\u3052\u305f\u53e3\u3001\u7b11\u3063\u3066\u3044\u308b\u76ee)", - "Smiling face with open mouth and cold sweat": "\u7b11\u9854(\u5e83\u3052\u305f\u53e3\u3001\u51b7\u3084\u6c57)", - "Smiling face with open mouth and tightly-closed eyes": "\u7b11\u9854(\u5e83\u3052\u305f\u53e3\u3001\u3057\u3063\u304b\u308a\u9589\u3058\u305f\u76ee)", - "Smiling face with halo": "\u5929\u4f7f\u306e\u8f2a\u304c\u304b\u304b\u3063\u3066\u3044\u308b\u7b11\u9854", - "Smiling face with horns": "\u89d2\u306e\u3042\u308b\u7b11\u9854", - "Winking face": "\u30a6\u30a3\u30f3\u30af\u3057\u305f\u9854", - "Smiling face with smiling eyes": "\u7b11\u9854(\u7b11\u3063\u3066\u3044\u308b\u76ee)", - "Face savoring delicious food": "\u304a\u3044\u3057\u3044\u3082\u306e\u3092\u98df\u3079\u305f\u9854", - "Relieved face": "\u5b89\u5fc3\u3057\u305f\u9854", - "Smiling face with heart-shaped eyes": "\u76ee\u304c\u30cf\u30fc\u30c8\u306e\u7b11\u9854", - "Smiling face with sunglasses": "\u30b5\u30f3\u30b0\u30e9\u30b9\u3092\u304b\u3051\u305f\u7b11\u9854", - "Smirking face": "\u4f5c\u308a\u7b11\u3044", - "Neutral face": "\u7121\u8868\u60c5\u306e\u9854", - "Expressionless face": "\u7121\u8868\u60c5\u306a\u9854", - "Unamused face": "\u3064\u307e\u3089\u306a\u3044\u9854", - "Face with cold sweat": "\u51b7\u3084\u6c57\u3092\u304b\u3044\u305f\u9854", - "Pensive face": "\u8003\u3048\u4e2d\u306e\u9854", - "Confused face": "\u5c11\u3057\u3057\u3087\u3093\u307c\u308a\u3057\u305f\u9854", - "Confounded face": "\u56f0\u308a\u679c\u3066\u305f\u9854", - "Kissing face": "\u30ad\u30b9\u3059\u308b\u9854", - "Face throwing a kiss": "\u6295\u3052\u30ad\u30c3\u30b9\u3059\u308b\u9854", - "Kissing face with smiling eyes": "\u7b11\u3044\u306a\u304c\u3089\u30ad\u30b9\u3059\u308b\u9854", - "Kissing face with closed eyes": "\u76ee\u3092\u9589\u3058\u3066\u30ad\u30b9\u3059\u308b\u9854", - "Face with stuck out tongue": "\u304b\u3089\u304b\u3063\u305f\u9854(\u3042\u3063\u304b\u3093\u3079\u3048)", - "Face with stuck out tongue and winking eye": "\u30a6\u30a3\u30f3\u30af\u3057\u3066\u820c\u3092\u51fa\u3057\u305f\u9854", - "Face with stuck out tongue and tightly-closed eyes": "\u76ee\u3092\u9589\u3058\u3066\u820c\u3092\u51fa\u3057\u305f\u9854", - "Disappointed face": "\u843d\u3061\u8fbc\u3093\u3060\u9854", - "Worried face": "\u4e0d\u5b89\u306a\u9854", - "Angry face": "\u6012\u3063\u305f\u9854", - "Pouting face": "\u3075\u304f\u308c\u9854", - "Crying face": "\u6ce3\u3044\u3066\u3044\u308b\u9854", - "Persevering face": "\u5931\u6557\u9854", - "Face with look of triumph": "\u52dd\u3061\u307b\u3053\u3063\u305f\u9854", - "Disappointed but relieved face": "\u5b89\u5835\u3057\u305f\u9854", - "Frowning face with open mouth": "\u3044\u3084\u306a\u9854(\u958b\u3051\u305f\u53e3)", - "Anguished face": "\u3052\u3093\u306a\u308a\u3057\u305f\u9854", - "Fearful face": "\u9752\u3056\u3081\u305f\u9854", - "Weary face": "\u75b2\u308c\u305f\u9854", - "Sleepy face": "\u7720\u3044\u9854", - "Tired face": "\u3057\u3093\u3069\u3044\u9854", - "Grimacing face": "\u3061\u3087\u3063\u3068\u4e0d\u5feb\u306a\u9854", - "Loudly crying face": "\u5927\u6ce3\u304d\u3057\u3066\u3044\u308b\u9854", - "Face with open mouth": "\u53e3\u3092\u958b\u3051\u305f\u9854", - "Hushed face": "\u9ed9\u3063\u305f\u9854", - "Face with open mouth and cold sweat": "\u53e3\u3092\u958b\u3051\u305f\u9854(\u51b7\u3084\u6c57)", - "Face screaming in fear": "\u6050\u6016\u306e\u53eb\u3073\u9854", - "Astonished face": "\u9a5a\u3044\u305f\u9854", - "Flushed face": "\u71b1\u3063\u307d\u3044\u9854", - "Sleeping face": "\u5bdd\u9854", - "Dizzy face": "\u307e\u3044\u3063\u305f\u9854", - "Face without mouth": "\u53e3\u306e\u306a\u3044\u9854", - "Face with medical mask": "\u30de\u30b9\u30af\u3057\u305f\u9854", - - // Line breaker - "Break": "\u6539\u884c", - - // Math - "Subscript": "\u4e0b\u4ed8\u304d\u6587\u5b57", - "Superscript": "\u4e0a\u4ed8\u304d\u6587\u5b57", - - // Full screen - "Fullscreen": "\u5168\u753b\u9762\u8868\u793a", - - // Horizontal line - "Insert Horizontal Line": "\u6c34\u5e73\u7dda\u306e\u633f\u5165", - - // Clear formatting - "Clear Formatting": "\u66f8\u5f0f\u306e\u30af\u30ea\u30a2", - - // Undo, redo - "Undo": "\u5143\u306b\u623b\u3059", - "Redo": "\u3084\u308a\u76f4\u3059", - - // Select all - "Select All": "\u5168\u3066\u3092\u9078\u629e", - - // Code view - "Code View": "HTML\u30bf\u30b0\u8868\u793a", - - // Quote - "Quote": "\u5f15\u7528", - "Increase": "\u5897\u52a0", - "Decrease": "\u6e1b\u5c11", - - // Quick Insert - "Quick Insert": "\u30af\u30a4\u30c3\u30af\u633f\u5165", - - // Spcial Characters - "Special Characters": "\u7279\u6b8a\u6587\u5b57", - "Latin": "\u30e9\u30c6\u30f3\u8a9e", - "Greek": "\u30ae\u30ea\u30b7\u30e3\u8a9e", - "Cyrillic": "\u30ad\u30ea\u30eb\u6587\u5b57", - "Punctuation": "\u53e5\u8aad\u70b9", - "Currency": "\u901a\u8ca8", - "Arrows": "\u77e2\u5370", - "Math": "\u6570\u5b66", - "Misc": "\u305d\u306e\u4ed6", - - // Print. - "Print": "\u5370\u5237", - - // Spell Checker. - "Spell Checker": "\u30b9\u30da\u30eb\u30c1\u30a7\u30c3\u30af", - - // Help - "Help": "\u30d8\u30eb\u30d7", - "Shortcuts": "\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8", - "Inline Editor": "\u30a4\u30f3\u30e9\u30a4\u30f3\u30a8\u30c7\u30a3\u30bf", - "Show the editor": "\u30a8\u30c7\u30a3\u30bf\u3092\u8868\u793a", - "Common actions": "\u4e00\u822c\u52d5\u4f5c", - "Copy": "\u30b3\u30d4\u30fc", - "Cut": "\u30ab\u30c3\u30c8", - "Paste": "\u8cbc\u308a\u4ed8\u3051", - "Basic Formatting": "\u57fa\u672c\u66f8\u5f0f", - "Increase quote level": "\u5f15\u7528\u3092\u5897\u3084\u3059", - "Decrease quote level": "\u5f15\u7528\u3092\u6e1b\u3089\u3059", - "Image / Video": "\u753b\u50cf/\u52d5\u753b", - "Resize larger": "\u5927\u304d\u304f\u3059\u308b", - "Resize smaller": "\u5c0f\u3055\u304f\u3059\u308b", - "Table": "\u8868", - "Select table cell": "\u30bb\u30eb\u3092\u9078\u629e", - "Extend selection one cell": "\u30bb\u30eb\u306e\u9078\u629e\u7bc4\u56f2\u3092\u5e83\u3052\u308b", - "Extend selection one row": "\u5217\u306e\u9078\u629e\u7bc4\u56f2\u3092\u5e83\u3052\u308b", - "Navigation": "\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3", - "Focus popup / toolbar": "\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7/\u30c4\u30fc\u30eb\u30d0\u30fc\u3092\u30d5\u30a9\u30fc\u30ab\u30b9", - "Return focus to previous position": "\u524d\u306e\u4f4d\u7f6e\u306b\u30d5\u30a9\u30fc\u30ab\u30b9\u3092\u623b\u3059", - - //\u00a0Embed.ly - "Embed URL": "\u57cb\u3081\u8fbc\u307fURL", - "Paste in a URL to embed": "\u57cb\u3081\u8fbc\u307fURL\u306b\u8cbc\u308a\u4ed8\u3051\u308b", - - // Word Paste. - "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "\u8cbc\u308a\u4ed8\u3051\u305f\u6587\u66f8\u306fMicrosoft Word\u304b\u3089\u53d6\u5f97\u3055\u308c\u307e\u3059\u3002\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092\u4fdd\u6301\u3057\u3066\u8cbc\u308a\u4ed8\u3051\u307e\u3059\u304b\uff1f", - "Keep": "\u66f8\u5f0f\u3092\u4fdd\u6301\u3059\u308b", - "Clean": "\u66f8\u5f0f\u3092\u4fdd\u6301\u3057\u306a\u3044", - "Word Paste Detected": "Microsoft Word\u306e\u8cbc\u308a\u4ed8\u3051\u304c\u691c\u51fa\u3055\u308c\u307e\u3057\u305f" - }, - direction: "ltr" -}; - -})); diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/languages/ko.js b/Mobile.Search.Web/Scripts/froala-editor/js/languages/ko.js deleted file mode 100644 index 68f43ae..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/languages/ko.js +++ /dev/null @@ -1,318 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = function( root, jQuery ) { - if ( jQuery === undefined ) { - // require('jQuery') returns a factory that requires window to - // build a jQuery instance, we normalize how we use modules - // that require this pattern but the window provided is a noop - // if it's defined (how jquery works) - if ( typeof window !== 'undefined' ) { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - return factory(jQuery); - }; - } else { - // Browser globals - factory(window.jQuery); - } -}(function ($) { -/** - * Korean - */ - -$.FE.LANGUAGE['ko'] = { - translation: { - // Place holder - "Type something": "\ub0b4\uc6a9\uc744 \uc785\ub825\ud558\uc138\uc694", - - // Basic formatting - "Bold": "\uad75\uac8c", - "Italic": "\uae30\uc6b8\uc784\uaf34", - "Underline": "\ubc11\uc904", - "Strikethrough": "\ucde8\uc18c\uc120", - - // Main buttons - "Insert": "\uc0bd\uc785", - "Delete": "\uc0ad\uc81c", - "Cancel": "\ucde8\uc18c", - "OK": "\uc2b9\uc778", - "Back": "\ub4a4\ub85c", - "Remove": "\uc81c\uac70", - "More": "\ub354", - "Update": "\uc5c5\ub370\uc774\ud2b8", - "Style": "\uc2a4\ud0c0\uc77c", - - // Font - "Font Family": "\uae00\uaf34", - "Font Size": "\ud3f0\ud2b8 \ud06c\uae30", - - // Colors - "Colors": "\uc0c9\uc0c1", - "Background": "\ubc30\uacbd", - "Text": "\ud14d\uc2a4\ud2b8", - "HEX Color": "\ud5e5\uc2a4 \uc0c9\uc0c1", - - // Paragraphs - "Paragraph Format": "\ub2e8\ub77d", - "Normal": "\ud45c\uc900", - "Code": "\ucf54\ub4dc", - "Heading 1": "\uc81c\ubaa9 1", - "Heading 2": "\uc81c\ubaa9 2", - "Heading 3": "\uc81c\ubaa9 3", - "Heading 4": "\uc81c\ubaa9 4", - - // Style - "Paragraph Style": "\ub2e8\ub77d \uc2a4\ud0c0\uc77c", - "Inline Style": "\uc778\ub77c\uc778 \uc2a4\ud0c0\uc77c", - - // Alignment - "Align": "\uc815\ub82c", - "Align Left": "\uc67c\ucabd\uc815\ub82c", - "Align Center": "\uac00\uc6b4\ub370\uc815\ub82c", - "Align Right": "\uc624\ub978\ucabd\uc815\ub82c", - "Align Justify": "\uc591\ucabd\uc815\ub82c", - "None": "\uc5c6\uc74c", - - // Lists - "Ordered List": "\uc22b\uc790\ub9ac\uc2a4\ud2b8", - "Unordered List": "\uc810 \ub9ac\uc2a4\ud2b8", - - // Indent - "Decrease Indent": "\ub0b4\uc5b4\uc4f0\uae30", - "Increase Indent": "\ub4e4\uc5ec\uc4f0\uae30", - - // Links - "Insert Link": "\ub9c1\ud06c \uc0bd\uc785", - "Open in new tab": "\uc0c8 \ud0ed\uc5d0\uc11c \uc5f4\uae30", - "Open Link": "\ub9c1\ud06c \uc5f4\uae30", - "Edit Link": "\ud3b8\uc9d1 \ub9c1\ud06c", - "Unlink": "\ub9c1\ud06c\uc0ad\uc81c", - "Choose Link": "\ub9c1\ud06c\ub97c \uc120\ud0dd", - - // Images - "Insert Image": "\uc774\ubbf8\uc9c0 \uc0bd\uc785", - "Upload Image": "\uc774\ubbf8\uc9c0 \uc5c5\ub85c\ub4dc", - "By URL": "URL \ub85c", - "Browse": "\uac80\uc0c9", - "Drop image": "\uc774\ubbf8\uc9c0\ub97c \ub4dc\ub798\uadf8&\ub4dc\ub86d", - "or click": "\ub610\ub294 \ud074\ub9ad", - "Manage Images": "\uc774\ubbf8\uc9c0 \uad00\ub9ac", - "Loading": "\ub85c\ub4dc", - "Deleting": "\uc0ad\uc81c", - "Tags": "\ud0dc\uadf8", - "Are you sure? Image will be deleted.": "\ud655\uc2e4\ud55c\uac00\uc694? \uc774\ubbf8\uc9c0\uac00 \uc0ad\uc81c\ub429\ub2c8\ub2e4.", - "Replace": "\uad50\uccb4", - "Uploading": "\uc5c5\ub85c\ub4dc", - "Loading image": "\uc774\ubbf8\uc9c0 \ub85c\ub4dc \uc911", - "Display": "\ub514\uc2a4\ud50c\ub808\uc774", - "Inline": "\uc778\ub77c\uc778", - "Break Text": "\uad6c\ubd84 \ud14d\uc2a4\ud2b8", - "Alternate Text": "\ub300\uccb4 \ud14d\uc2a4\ud2b8", - "Change Size": "\ud06c\uae30 \ubcc0\uacbd", - "Width": "\ud3ed", - "Height": "\ub192\uc774", - "Something went wrong. Please try again.": "\ubb38\uc81c\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4. \ub2e4\uc2dc \uc2dc\ub3c4\ud558\uc2ed\uc2dc\uc624.", - "Image Caption": "\uc774\ubbf8\uc9c0 \ucea1\uc158", - "Advanced Edit": "\uace0\uae09 \ud3b8\uc9d1", - - // Video - "Insert Video": "\ub3d9\uc601\uc0c1 \uc0bd\uc785", - "Embedded Code": "\uc784\ubca0\ub514\ub4dc \ucf54\ub4dc", - "Paste in a video URL": "\ub3d9\uc601\uc0c1 URL\uc5d0 \ubd99\uc5ec \ub123\uae30", - "Drop video": "\ub3d9\uc601\uc0c1\uc744 \ub4dc\ub798\uadf8&\ub4dc\ub86d", - "Your browser does not support HTML5 video.": "\uadc0\ud558\uc758 \ube0c\ub77c\uc6b0\uc800\ub294 html5 video\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.", - "Upload Video": "\ub3d9\uc601\uc0c1 \uc5c5\ub85c\ub4dc", - - // Tables - "Insert Table": "\ud45c \uc0bd\uc785", - "Table Header": "\ud45c \ud5e4\ub354", - "Remove Table": "\ud45c \uc81c\uac70", - "Table Style": "\ud45c \uc2a4\ud0c0\uc77c", - "Horizontal Align": "\uc218\ud3c9 \uc815\ub82c", - "Row": "\ud589", - "Insert row above": "\uc55e\uc5d0 \ud589\uc744 \uc0bd\uc785", - "Insert row below": "\ub4a4\uc5d0 \ud589\uc744 \uc0bd\uc785", - "Delete row": "\ud589 \uc0ad\uc81c", - "Column": "\uc5f4", - "Insert column before": "\uc55e\uc5d0 \uc5f4\uc744 \uc0bd\uc785", - "Insert column after": "\ub4a4\uc5d0 \uc5f4\uc744 \uc0bd\uc785", - "Delete column": "\uc5f4 \uc0ad\uc81c", - "Cell": "\uc140", - "Merge cells": "\uc140 \ud569\uce58\uae30", - "Horizontal split": "\uc218\ud3c9 \ubd84\ud560", - "Vertical split": "\uc218\uc9c1 \ubd84\ud560", - "Cell Background": "\uc140 \ubc30\uacbd", - "Vertical Align": "\uc218\uc9c1 \uc815\ub82c", - "Top": "\uc704\ucabd \uc815\ub82c", - "Middle": "\uac00\uc6b4\ub370 \uc815\ub82c", - "Bottom": "\uc544\ub798\ucabd \uc815\ub82c", - "Align Top": "\uc704\ucabd\uc73c\ub85c \uc815\ub82c\ud569\ub2c8\ub2e4.", - "Align Middle": "\uac00\uc6b4\ub370\ub85c \uc815\ub82c\ud569\ub2c8\ub2e4.", - "Align Bottom": "\uc544\ub798\ucabd\uc73c\ub85c \uc815\ub82c\ud569\ub2c8\ub2e4.", - "Cell Style": "\uc140 \uc2a4\ud0c0\uc77c", - - // Files - "Upload File": "\ud30c\uc77c \ucca8\ubd80", - "Drop file": "\ud30c\uc77c\uc744 \ub4dc\ub798\uadf8&\ub4dc\ub86d", - - // Emoticons - "Emoticons": "\uc774\ubaa8\ud2f0\ucf58", - "Grinning face": "\uc5bc\uad74 \uc6c3\uae30\ub9cc", - "Grinning face with smiling eyes": "\ubbf8\uc18c\ub294 \ub208\uc744 \uac00\uc9c4 \uc5bc\uad74 \uc6c3\uae30\ub9cc", - "Face with tears of joy": "\uae30\uc068\uc758 \ub208\ubb3c\ub85c \uc5bc\uad74", - "Smiling face with open mouth": "\uc624\ud508 \uc785\uc73c\ub85c \uc6c3\ub294 \uc5bc\uad74", - "Smiling face with open mouth and smiling eyes": "\uc624\ud508 \uc785\uc73c\ub85c \uc6c3\ub294 \uc5bc\uad74\uacfc \ub208\uc744 \ubbf8\uc18c", - "Smiling face with open mouth and cold sweat": "\uc785\uc744 \uc5f4\uace0 \uc2dd\uc740 \ub540\uacfc \ud568\uaed8 \uc6c3\ub294 \uc5bc\uad74", - "Smiling face with open mouth and tightly-closed eyes": "\uc624\ud508 \uc785\uacfc \ubc00\uc811\ud558\uac8c \ub2eb\ud78c \ub41c \ub208\uc744 \uac00\uc9c4 \uc6c3\ub294 \uc5bc\uad74", - "Smiling face with halo": "\ud6c4\uad11 \uc6c3\ub294 \uc5bc\uad74", - "Smiling face with horns": "\ubfd4 \uc6c3\ub294 \uc5bc\uad74", - "Winking face": "\uc5bc\uad74 \uc719\ud06c", - "Smiling face with smiling eyes": "\uc6c3\ub294 \ub208\uc73c\ub85c \uc6c3\ub294 \uc5bc\uad74", - "Face savoring delicious food": "\ub9db\uc788\ub294 \uc74c\uc2dd\uc744 \uc74c\ubbf8 \uc5bc\uad74", - "Relieved face": "\uc548\ub3c4 \uc5bc\uad74", - "Smiling face with heart-shaped eyes": "\ud558\ud2b8 \ubaa8\uc591\uc758 \ub208\uc73c\ub85c \uc6c3\ub294 \uc5bc\uad74", - "Smiling face with sunglasses": "\uc120\uae00\ub77c\uc2a4 \uc6c3\ub294 \uc5bc\uad74", - "Smirking face": "\ub3c8\uc744 \uc9c0\ubd88 \uc5bc\uad74", - "Neutral face": "\uc911\ub9bd \uc5bc\uad74", - "Expressionless face": "\ubb34\ud45c\uc815 \uc5bc\uad74", - "Unamused face": "\uc990\uac81\uac8c\ud558\uc9c0 \uc5bc\uad74", - "Face with cold sweat": "\uc2dd\uc740 \ub540\uacfc \uc5bc\uad74", - "Pensive face": "\uc7a0\uaca8\uc788\ub294 \uc5bc\uad74", - "Confused face": "\ud63c\ub780 \uc5bc\uad74", - "Confounded face": "\ub9dd\ud560 \uac83 \uc5bc\uad74", - "Kissing face": "\uc5bc\uad74\uc744 \ud0a4\uc2a4", - "Face throwing a kiss": "\ud0a4\uc2a4\ub97c \ub358\uc9c0\uace0 \uc5bc\uad74", - "Kissing face with smiling eyes": "\ubbf8\uc18c\ub294 \ub208\uc744 \uac00\uc9c4 \uc5bc\uad74\uc744 \ud0a4\uc2a4", - "Kissing face with closed eyes": "\ub2eb\ud78c \ub41c \ub208\uc744 \uac00\uc9c4 \uc5bc\uad74\uc744 \ud0a4\uc2a4", - "Face with stuck out tongue": "\ub0b4\ubc00 \ud600 \uc5bc\uad74", - "Face with stuck out tongue and winking eye": "\ub0b4\ubc00 \ud600\uc640 \uc719\ud06c \ub208\uacfc \uc5bc\uad74", - "Face with stuck out tongue and tightly-closed eyes": "\ubc16\uc73c\ub85c \ubd99\uc5b4 \ud600\uc640 \ubc00\uc811\ud558\uac8c \ub2eb\ud78c \ub41c \ub208\uc744 \uac00\uc9c4 \uc5bc\uad74", - "Disappointed face": "\uc2e4\ub9dd \uc5bc\uad74", - "Worried face": "\uac71\uc815 \uc5bc\uad74", - "Angry face": "\uc131\ub09c \uc5bc\uad74", - "Pouting face": "\uc5bc\uad74\uc744 \uc090", - "Crying face": "\uc5bc\uad74 \uc6b0\ub294", - "Persevering face": "\uc5bc\uad74\uc744 \uc778\ub0b4", - "Face with look of triumph": "\uc2b9\ub9ac\uc758 \ud45c\uc815\uc73c\ub85c \uc5bc\uad74", - "Disappointed but relieved face": "\uc2e4\ub9dd\ud558\uc9c0\ub9cc \uc5bc\uad74\uc744 \uc548\uc2ec", - "Frowning face with open mouth": "\uc624\ud508 \uc785\uc73c\ub85c \uc5bc\uad74\uc744 \ucc21\uadf8\ub9bc", - "Anguished face": "\uace0\ub1cc\uc758 \uc5bc\uad74", - "Fearful face": "\ubb34\uc11c\uc6b4 \uc5bc\uad74", - "Weary face": "\uc9c0\uce5c \uc5bc\uad74", - "Sleepy face": "\uc2ac\ub9ac\ud53c \uc5bc\uad74", - "Tired face": "\ud53c\uace4 \uc5bc\uad74", - "Grimacing face": "\uc5bc\uad74\uc744 \ucc21\uadf8\ub9b0", - "Loudly crying face": "\ud070 \uc18c\ub9ac\ub85c \uc5bc\uad74\uc744 \uc6b8\uace0", - "Face with open mouth": "\uc624\ud508 \uc785\uc73c\ub85c \uc5bc\uad74", - "Hushed face": "\uc870\uc6a9\ud55c \uc5bc\uad74", - "Face with open mouth and cold sweat": "\uc785\uc744 \uc5f4\uace0 \uc2dd\uc740 \ub540\uc73c\ub85c \uc5bc\uad74", - "Face screaming in fear": "\uacf5\ud3ec\uc5d0 \ube44\uba85 \uc5bc\uad74", - "Astonished face": "\ub180\ub77c \uc5bc\uad74", - "Flushed face": "\ud50c\ub7ec\uc2dc \uc5bc\uad74", - "Sleeping face": "\uc5bc\uad74 \uc7a0\uc790\ub294", - "Dizzy face": "\ub514\uc9c0 \uc5bc\uad74", - "Face without mouth": "\uc785\uc5c6\uc774 \uc5bc\uad74", - "Face with medical mask": "\uc758\ub8cc \ub9c8\uc2a4\ud06c\ub85c \uc5bc\uad74", - - // Line breaker - "Break": "\ub2e8\uc808", - - // Math - "Subscript": "\uc544\ub798 \ucca8\uc790", - "Superscript": "\uc704 \ucca8\uc790", - - // Full screen - "Fullscreen": "\uc804\uccb4 \ud654\uba74", - - // Horizontal line - "Insert Horizontal Line": "\uc218\ud3c9\uc120\uc744 \uc0bd\uc785", - - // Clear formatting - "Clear Formatting": "\uc11c\uc2dd \uc81c\uac70", - - // Undo, redo - "Undo": "\uc2e4\ud589 \ucde8\uc18c", - "Redo": "\ub418\ub3cc\ub9ac\uae30", - - // Select all - "Select All": "\uc804\uccb4\uc120\ud0dd", - - // Code view - "Code View": "\ucf54\ub4dc\ubcf4\uae30", - - // Quote - "Quote": "\uc778\uc6a9", - "Increase": "\uc99d\uac00", - "Decrease": "\uac10\uc18c", - - // Quick Insert - "Quick Insert": "\ube60\ub978 \uc0bd\uc785", - - // Spcial Characters - "Special Characters": "\ud2b9\uc218 \ubb38\uc790", - "Latin": "\ub77c\ud2f4\uc5b4", - "Greek": "\uadf8\ub9ac\uc2a4\uc5b4", - "Cyrillic": "\ud0a4\ub9b4 \ubb38\uc790", - "Punctuation": "\ubb38\uc7a5\ubd80\ud638", - "Currency": "\ud1b5\ud654", - "Arrows": "\ud654\uc0b4\ud45c", - "Math": "\uc218\ud559", - "Misc": "\uadf8 \uc678", - - // Print. - "Print": "\uc778\uc1c4", - - // Spell Checker. - "Spell Checker": "\ub9de\ucda4\ubc95 \uac80\uc0ac\uae30", - - // Help - "Help": "\ub3c4\uc6c0\ub9d0", - "Shortcuts": "\ub2e8\ucd95\ud0a4", - "Inline Editor": "\uc778\ub77c\uc778 \uc5d0\ub514\ud130", - "Show the editor": "\uc5d0\ub514\ud130 \ubcf4\uae30", - "Common actions": "\uc77c\ubc18 \ub3d9\uc791", - "Copy": "\ubcf5\uc0ac\ud558\uae30", - "Cut": "\uc798\ub77c\ub0b4\uae30", - "Paste": "\ubd99\uc5ec\ub123\uae30", - "Basic Formatting": "\uae30\ubcf8 \uc11c\uc2dd", - "Increase quote level": "\uc778\uc6a9 \uc99d\uac00", - "Decrease quote level": "\uc778\uc6a9 \uac10\uc18c", - "Image / Video": "\uc774\ubbf8\uc9c0 / \ub3d9\uc601\uc0c1", - "Resize larger": "\ud06c\uae30\ub97c \ub354 \ud06c\uac8c \uc870\uc815", - "Resize smaller": "\ud06c\uae30\ub97c \ub354 \uc791\uac8c \uc870\uc815", - "Table": "\ud45c", - "Select table cell": "\ud45c \uc140 \uc120\ud0dd", - "Extend selection one cell": "\uc140\uc758 \uc120\ud0dd \ubc94\uc704\ub97c \ud655\uc7a5", - "Extend selection one row": "\ud589\uc758 \uc120\ud0dd \ubc94\uc704\ub97c \ud655\uc7a5", - "Navigation": "\ub124\ube44\uac8c\uc774\uc158", - "Focus popup / toolbar": "\ud31d\uc5c5 / \ud234\ubc14\ub97c \ud3ec\ucee4\uc2a4", - "Return focus to previous position": "\uc774\uc804 \uc704\uce58\ub85c \ud3ec\ucee4\uc2a4 \ub418\ub3cc\ub9ac\uae30", - - // Embed.ly - "Embed URL": "\uc784\ubca0\ub4dc URL", - "Paste in a URL to embed": "\uc784\ubca0\ub4dc URL\uc5d0 \ubd99\uc5ec \ub123\uae30", - - // Word Paste. - "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "\ubd99\uc5ec\ub123\uc740 \ubb38\uc11c\ub294 \ub9c8\uc774\ud06c\ub85c\uc18c\ud504\ud2b8 \uc6cc\ub4dc\uc5d0\uc11c \uac00\uc838\uc654\uc2b5\ub2c8\ub2e4. \ud3ec\ub9f7\uc744 \uc720\uc9c0\ud558\uac70\ub098 \uc815\ub9ac \ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?", - "Keep": "\uc720\uc9c0", - "Clean": "\uc815\ub9ac", - "Word Paste Detected": "\uc6cc\ub4dc \ubd99\uc5ec \ub123\uae30\uac00 \uac80\ucd9c \ub418\uc5c8\uc2b5\ub2c8\ub2e4." - }, - direction: "ltr" -}; - -})); diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/languages/me.js b/Mobile.Search.Web/Scripts/froala-editor/js/languages/me.js deleted file mode 100644 index b64c288..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/languages/me.js +++ /dev/null @@ -1,318 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = function( root, jQuery ) { - if ( jQuery === undefined ) { - // require('jQuery') returns a factory that requires window to - // build a jQuery instance, we normalize how we use modules - // that require this pattern but the window provided is a noop - // if it's defined (how jquery works) - if ( typeof window !== 'undefined' ) { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - return factory(jQuery); - }; - } else { - // Browser globals - factory(window.jQuery); - } -}(function ($) { -/** - * Montenegrin - */ - -$.FE.LANGUAGE['me'] = { - translation: { - // Place holder - "Type something": "Ukucajte ne\u0161tp", - - // Basic formatting - "Bold": "Bold", - "Italic": "Italic", - "Underline": "Podvu\u010deno", - "Strikethrough": "Prekri\u017eano", - - // Main buttons - "Insert": "Umetni", - "Delete": "Obri\u0161i", - "Cancel": "Otka\u017ei", - "OK": "U redu", - "Back": "Natrag", - "Remove": "Ukloni", - "More": "Vi\u0161e", - "Update": "A\u017euriranje", - "Style": "Stil", - - // Font - "Font Family": "Odaberi font", - "Font Size": "Veli\u010dina fonta", - - // Colors - "Colors": "Boje", - "Background": "Pozadine", - "Text": "Teksta", - "HEX Color": "HEX boje", - - // Paragraphs - "Paragraph Format": "Paragraf formatu", - "Normal": "Normalno", - "Code": "Izvorni kod", - "Heading 1": "Naslov 1", - "Heading 2": "Naslov 2", - "Heading 3": "Naslov 3", - "Heading 4": "Naslov 4", - - // Style - "Paragraph Style": "Paragraf stil", - "Inline Style": "Inline stil", - - // Alignment - "Align": "Poravnaj", - "Align Left": "Poravnaj lijevo", - "Align Center": "Poravnaj po sredini", - "Align Right": "Poravnaj desno", - "Align Justify": "Cjelokupno poravnanje", - "None": "Nijedan", - - // Lists - "Ordered List": "Ure\u0111ena lista", - "Unordered List": "Nesre\u0111ene lista", - - // Indent - "Decrease Indent": "Smanjenje alineja", - "Increase Indent": "Pove\u0107anje alineja", - - // Links - "Insert Link": "Umetni link", - "Open in new tab": "Otvori u novom prozoru", - "Open Link": "Otvori link", - "Edit Link": "Uredi link", - "Unlink": "Ukloni link", - "Choose Link": "Izabrati link", - - // Images - "Insert Image": "Umetni sliku", - "Upload Image": "Upload sliku", - "By URL": "Preko URL", - "Browse": "Pregledaj", - "Drop image": "Izbaci sliku", - "or click": "ili odaberi", - "Manage Images": "Upravljanje ilustracijama", - "Loading": "Koji tovari", - "Deleting": "Brisanje", - "Tags": "Oznake", - "Are you sure? Image will be deleted.": "Da li ste sigurni da \u017eelite da obri\u0161ete ovu ilustraciju?", - "Replace": "Zamijenite", - "Uploading": "Uploading", - "Loading image": "Koji tovari sliku", - "Display": "Prikaz", - "Inline": "Inline", - "Break Text": "Break tekst", - "Alternate Text": "Alternativna tekst", - "Change Size": "Promijeni veli\u010dinu", - "Width": "\u0161irina", - "Height": "Visina", - "Something went wrong. Please try again.": "Ne\u0161to je po\u0161lo po zlu. Molimo vas da poku\u0161ate ponovo.", - "Image Caption": "Slika natpisa", - "Advanced Edit": "Napredno uređivanje", - - // Video - "Insert Video": "Umetni video", - "Embedded Code": "Embedded kod", - "Paste in a video URL": "Prilepite v URL video posnetka", - "Drop video": "Izbaci video", - "Your browser does not support HTML5 video.": "Váš prehliadač nepodporuje video HTML5.", - "Upload Video": "Upload video", - - // Tables - "Insert Table": "Umetni tabelu", - "Table Header": "Zaglavlje tabelu", - "Remove Table": "Izbri\u0161i tabelu", - "Table Style": "Tabelu stil", - "Horizontal Align": "Horizontalna poravnanje", - "Row": "Red", - "Insert row above": "Umetni red iznad", - "Insert row below": "Umetni red ispod", - "Delete row": "Obri\u0161i red", - "Column": "Kolona", - "Insert column before": "Umetni kolonu prije", - "Insert column after": "Umetni kolonu poslije", - "Delete column": "Obri\u0161i kolonu", - "Cell": "\u0106elija", - "Merge cells": "Spoji \u0107elija", - "Horizontal split": "Horizontalno razdvajanje polja", - "Vertical split": "Vertikalno razdvajanje polja", - "Cell Background": "\u0106elija pozadini", - "Vertical Align": "Vertikalni poravnaj", - "Top": "Vrh", - "Middle": "Srednji", - "Bottom": "Dno", - "Align Top": "Poravnaj vrh", - "Align Middle": "Poravnaj srednji", - "Align Bottom": "Poravnaj dno", - "Cell Style": "\u0106elija stil", - - // Files - "Upload File": "Upload datoteke", - "Drop file": "Drop datoteke", - - // Emoticons - "Emoticons": "Emotikona", - "Grinning face": "Cere\u0107i lice", - "Grinning face with smiling eyes": "Cere\u0107i lice nasmijana o\u010dima", - "Face with tears of joy": "Lice sa suze radosnice", - "Smiling face with open mouth": "Nasmijana lica s otvorenih usta", - "Smiling face with open mouth and smiling eyes": "Nasmijana lica s otvorenih usta i nasmijana o\u010di", - "Smiling face with open mouth and cold sweat": "Nasmijana lica s otvorenih usta i hladan znoj", - "Smiling face with open mouth and tightly-closed eyes": "Nasmijana lica s otvorenih usta i \u010dvrsto-zatvorenih o\u010diju", - "Smiling face with halo": "Nasmijana lica sa halo", - "Smiling face with horns": "Nasmijana lica s rogovima", - "Winking face": "Namigivanje lice", - "Smiling face with smiling eyes": "Nasmijana lica sa nasmijana o\u010dima", - "Face savoring delicious food": "Suo\u010davaju uživaju\u0107i ukusna hrana", - "Relieved face": "Laknulo lice", - "Smiling face with heart-shaped eyes": "Nasmijana lica sa obliku srca o\u010di", - "Smiling face with sunglasses": "Nasmijana lica sa sun\u010dane nao\u010dare", - "Smirking face": "Namr\u0161tena lica", - "Neutral face": "Neutral lice", - "Expressionless face": "Bezizra\u017eajno lice", - "Unamused face": "Nije zabavno lice", - "Face with cold sweat": "Lice s hladnim znojem", - "Pensive face": "Zami\u0161ljen lice", - "Confused face": "Zbunjen lice", - "Confounded face": "Uzbu\u0111en lice", - "Kissing face": "Ljubakanje lice", - "Face throwing a kiss": "Suo\u010davaju bacanje poljubac", - "Kissing face with smiling eyes": "Ljubljenje lice nasmijana o\u010dima", - "Kissing face with closed eyes": "Ljubljenje lice sa zatvorenim o\u010dima", - "Face with stuck out tongue": "Lice sa ispru\u017eio jezik", - "Face with stuck out tongue and winking eye": "Lice sa ispru\u017eio jezik i trep\u0107u\u0107e \u0107e oko", - "Face with stuck out tongue and tightly-closed eyes": "Lice sa ispru\u017eio jezik i \u010dvrsto zatvorene o\u010di", - "Disappointed face": "Razo\u010daran lice", - "Worried face": "Zabrinuti lice", - "Angry face": "Ljut lice", - "Pouting face": "Napu\u0107enim lice", - "Crying face": "Plakanje lice", - "Persevering face": "Istrajan lice", - "Face with look of triumph": "Lice s pogledom trijumfa", - "Disappointed but relieved face": "Razo\u010daran, ali olak\u0161anje lice", - "Frowning face with open mouth": "Namr\u0161tiv\u0161i lice s otvorenih usta", - "Anguished face": "Bolnom lice", - "Fearful face": "Pla\u0161ljiv lice", - "Weary face": "Umoran lice", - "Sleepy face": "Pospan lice", - "Tired face": "Umorno lice", - "Grimacing face": "Grimase lice", - "Loudly crying face": "Glasno pla\u010de lice", - "Face with open mouth": "Lice s otvorenih usta", - "Hushed face": "Smiren lice", - "Face with open mouth and cold sweat": "Lice s otvorenih usta i hladan znoj", - "Face screaming in fear": "Suo\u010davaju vri\u0161ti u strahu", - "Astonished face": "Zapanjen lice", - "Flushed face": "Rumeno lice", - "Sleeping face": "Usnulo lice", - "Dizzy face": "O\u0161amu\u0107en lice", - "Face without mouth": "Lice bez usta", - "Face with medical mask": "Lice sa medicinskom maskom", - - // Line breaker - "Break": "Slomiti", - - // Math - "Subscript": "Potpisan", - "Superscript": "Natpis", - - // Full screen - "Fullscreen": "Preko cijelog zaslona", - - // Horizontal line - "Insert Horizontal Line": "Umetni vodoravna liniju", - - // Clear formatting - "Clear Formatting": "Izbrisati formatiranje", - - // Undo, redo - "Undo": "Korak nazad", - "Redo": "Korak naprijed", - - // Select all - "Select All": "Ozna\u010di sve", - - // Code view - "Code View": "Kod pogled", - - // Quote - "Quote": "Citat", - "Increase": "Pove\u0107ati", - "Decrease": "Smanjenje", - - // Quick Insert - "Quick Insert": "Brzo umetni", - - // Spcial Characters - "Special Characters": "Specijalni znakovi", - "Latin": "Latino", - "Greek": "Grk", - "Cyrillic": "Ćirilica", - "Punctuation": "Interpunkcije", - "Currency": "Valuta", - "Arrows": "Strelice", - "Math": "Matematika", - "Misc": "Misc", - - // Print. - "Print": "Odštampaj", - - // Spell Checker. - "Spell Checker": "Kontrolor pravopisa", - - // Help - "Help": "Pomoć", - "Shortcuts": "Prečice", - "Inline Editor": "Pri upisivanju Editor", - "Show the editor": "Prikaži urednik", - "Common actions": "Zajedničke akcije", - "Copy": "Kopija", - "Cut": "Rez", - "Paste": "Nalepi", - "Basic Formatting": "Osnovno oblikovanje", - "Increase quote level": "Povećati ponudu za nivo", - "Decrease quote level": "Smanjenje ponude nivo", - "Image / Video": "Slika / Video", - "Resize larger": "Veće veličine", - "Resize smaller": "Promena veličine manji", - "Table": "Sto", - "Select table cell": "Select ćelije", - "Extend selection one cell": "Proširite selekciju jednu ćeliju", - "Extend selection one row": "Proširite selekciju jedan red", - "Navigation": "Navigacija", - "Focus popup / toolbar": "Fokus Iskačući meni / traka sa alatkama", - "Return focus to previous position": "Vratiti fokus na prethodnu poziciju", - - // Embed.ly - "Embed URL": "Ugradite URL", - "Paste in a URL to embed": "Nalepite URL adresu da biste ugradili", - - // Word Paste. - "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Nalepljeni sadržaj dolazi iz Microsoft Word dokument. Da li želite zadržati u formatu ili počistiti?", - "Keep": "Nastavi", - "Clean": "Oиisti", - "Word Paste Detected": "Word Nalepi otkriven" - }, - direction: "ltr" -}; - -})); diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/languages/nb.js b/Mobile.Search.Web/Scripts/froala-editor/js/languages/nb.js deleted file mode 100644 index a6252a9..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/languages/nb.js +++ /dev/null @@ -1,318 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = function( root, jQuery ) { - if ( jQuery === undefined ) { - // require('jQuery') returns a factory that requires window to - // build a jQuery instance, we normalize how we use modules - // that require this pattern but the window provided is a noop - // if it's defined (how jquery works) - if ( typeof window !== 'undefined' ) { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - return factory(jQuery); - }; - } else { - // Browser globals - factory(window.jQuery); - } -}(function ($) { -/** - * Norwegian - */ - -$.FE.LANGUAGE['nb'] = { - translation: { - // Place holder - "Type something": "Skriv noe", - - // Basic formatting - "Bold": "Fet", - "Italic": "Kursiv", - "Underline": "Understreket", - "Strikethrough": "Gjennomstreket", - - // Main buttons - "Insert": "Sett", - "Delete": "Slett", - "Cancel": "Avbryt", - "OK": "OK", - "Back": "Tilbake", - "Remove": "Fjern", - "More": "Mer", - "Update": "Oppdatering", - "Style": "Stil", - - // Font - "Font Family": "Skriftsnitt", - "Font Size": "St\u00f8rrelse", - - // Colors - "Colors": "Farger", - "Background": "Bakgrunn", - "Text": "Tekst", - "HEX Color": "Heksefarge", - - // Paragraphs - "Paragraph Format": "Stiler", - "Normal": "Normal", - "Code": "Kode", - "Heading 1": "Overskrift 1", - "Heading 2": "Overskrift 2", - "Heading 3": "Overskrift 3", - "Heading 4": "Overskrift 4", - - // Style - "Paragraph Style": "Avsnittsstil", - "Inline Style": "P\u00e5 linje stil", - - // Alignment - "Align": "Justering", - "Align Left": "Venstrejustert", - "Align Center": "Midtstilt", - "Align Right": "H\u00f8yrejustert", - "Align Justify": "Juster alle linjer", - "None": "None", - - // Lists - "Ordered List": "Ordnet liste", - "Unordered List": "Uordnet liste", - - // Indent - "Decrease Indent": "Reduser innrykk", - "Increase Indent": "\u00d8k innrykk", - - // Links - "Insert Link": "Sett inn lenke", - "Open in new tab": "\u00c5pne i ny fane", - "Open Link": "\u00c5pne lenke", - "Edit Link": "Rediger lenke", - "Unlink": "Fjern lenke", - "Choose Link": "Velge lenke", - - // Images - "Insert Image": "Sett inn bilde", - "Upload Image": "Last opp bilde", - "By URL": "Ved URL", - "Browse": "Bla", - "Drop image": "Slippe bilde", - "or click": "eller klikk", - "Manage Images": "Bildebehandling", - "Loading": "Lasting", - "Deleting": "Slette", - "Tags": "Tags", - "Are you sure? Image will be deleted.": "Er du sikker? Bildet vil bli slettet.", - "Replace": "Erstatte", - "Uploading": "Opplasting", - "Loading image": "Lasting bilde", - "Display": "Utstilling", - "Inline": "P\u00e5 linje", - "Break Text": "Brudd tekst", - "Alternate Text": "Alternativ tekst", - "Change Size": "Endre st\u00f8rrelse", - "Width": "Bredde", - "Height": "H\u00f8yde", - "Something went wrong. Please try again.": "Noe gikk galt. V\u00e6r s\u00e5 snill, pr\u00f8v p\u00e5 nytt.", - "Image Caption": "Bilde bildetekst", - "Advanced Edit": "Avansert redigering", - - // Video - "Insert Video": "Sett inn video", - "Embedded Code": "Embedded kode", - "Paste in a video URL": "Lim inn i en video-url", - "Drop video": "Slipp video", - "Your browser does not support HTML5 video.": "Nettleseren din støtter ikke html5 video.", - "Upload Video": "Last opp video", - - // Tables - "Insert Table": "Sett inn tabell", - "Table Header": "Tabell header", - "Remove Table": "Fjern tabell", - "Table Style": "Tabell stil", - "Horizontal Align": "Horisontal justering", - "Row": "Rad", - "Insert row above": "Sett inn rad f\u00f8r", - "Insert row below": "Sett in rad etter", - "Delete row": "Slett rad", - "Column": "Kolonne", - "Insert column before": "Sett inn kolonne f\u00f8r", - "Insert column after": "Sett inn kolonne etter", - "Delete column": "Slett kolonne", - "Cell": "Celle", - "Merge cells": "Sl\u00e5 sammen celler", - "Horizontal split": "Horisontalt delt", - "Vertical split": "Vertikal split", - "Cell Background": "Celle bakgrunn", - "Vertical Align": "Vertikal justering", - "Top": "Topp", - "Middle": "Midten", - "Bottom": "Bunn", - "Align Top": "Justere toppen", - "Align Middle": "Justere midten", - "Align Bottom": "Justere bunnen", - "Cell Style": "Celle stil", - - // Files - "Upload File": "Opplastingsfil", - "Drop file": "Slippe fil", - - // Emoticons - "Emoticons": "Emoticons", - "Grinning face": "Flirer ansikt", - "Grinning face with smiling eyes": "Flirer ansikt med smilende \u00f8yne", - "Face with tears of joy": "Ansikt med t\u00e5rer av glede", - "Smiling face with open mouth": "Smilende ansikt med \u00e5pen munn", - "Smiling face with open mouth and smiling eyes": "Smilende ansikt med \u00e5pen munn og smilende \u00f8yne", - "Smiling face with open mouth and cold sweat": "Smilende ansikt med \u00e5pen munn og kald svette", - "Smiling face with open mouth and tightly-closed eyes": "Smilende ansikt med \u00e5pen munn og tett lukkede \u00f8yne", - "Smiling face with halo": "Smilende ansikt med glorie", - "Smiling face with horns": "Smilende ansikt med horn", - "Winking face": "Blunk ansikt", - "Smiling face with smiling eyes": "Smilende ansikt med smilende \u00f8yne", - "Face savoring delicious food": "M\u00f8te nyter deilig mat", - "Relieved face": "Lettet ansikt", - "Smiling face with heart-shaped eyes": "Smilende ansikt med hjerteformede \u00f8yne", - "Smiling face with sunglasses": "Smilende ansikt med solbriller", - "Smirking face": "Tilfreds ansikt", - "Neutral face": "N\u00f8ytral ansikt", - "Expressionless face": "Uttrykksl\u00f8st ansikt", - "Unamused face": "Ikke moret ansikt", - "Face with cold sweat": "Ansikt med kald svette", - "Pensive face": "Tankefull ansikt", - "Confused face": "Forvirret ansikt", - "Confounded face": "Skamme ansikt", - "Kissing face": "Kyssing ansikt", - "Face throwing a kiss": "Ansikt kaste et kyss", - "Kissing face with smiling eyes": "Kyssing ansikt med smilende \u00f8yne", - "Kissing face with closed eyes": "Kyssing ansiktet med lukkede \u00f8yne", - "Face with stuck out tongue": "Ansikt med stakk ut tungen", - "Face with stuck out tongue and winking eye": "Ansikt med stakk ut tungen og blunke \u00f8ye", - "Face with stuck out tongue and tightly-closed eyes": "Ansikt med fast ut tungen og tett lukket \u00f8yne", - "Disappointed face": "Skuffet ansikt", - "Worried face": "Bekymret ansikt", - "Angry face": "Sint ansikt", - "Pouting face": "Trutmunn ansikt", - "Crying face": "Gr\u00e5ter ansikt", - "Persevering face": "Utholdende ansikt", - "Face with look of triumph": "Ansikt med utseendet til triumf", - "Disappointed but relieved face": "Skuffet men lettet ansikt", - "Frowning face with open mouth": "Rynke ansikt med \u00e5pen munn", - "Anguished face": "Forpint ansikt", - "Fearful face": "Engstelig ansikt", - "Weary face": "Slitne ansiktet", - "Sleepy face": "S\u00f8vnig ansikt", - "Tired face": "Tr\u00f8tt ansikt", - "Grimacing face": "Griner ansikt", - "Loudly crying face": "H\u00f8ylytt gr\u00e5tende ansikt", - "Face with open mouth": "Ansikt med \u00e5pen munn", - "Hushed face": "Lavm\u00e6lt ansikt", - "Face with open mouth and cold sweat": "Ansikt med \u00e5pen munn og kald svette", - "Face screaming in fear": "Ansikt skriker i frykt", - "Astonished face": "Forbauset ansikt", - "Flushed face": "Flushed ansikt", - "Sleeping face": "Sovende ansikt", - "Dizzy face": "Svimmel ansikt", - "Face without mouth": "Ansikt uten munn", - "Face with medical mask": "Ansikt med medisinsk maske", - - // Line breaker - "Break": "Brudd", - - // Math - "Subscript": "Senket skrift", - "Superscript": "Hevet skrift", - - // Full screen - "Fullscreen": "Full skjerm", - - // Horizontal line - "Insert Horizontal Line": "Sett inn horisontal linje", - - // Clear formatting - "Clear Formatting": "Fjerne formatering", - - // Undo, redo - "Undo": "Angre", - "Redo": "Utf\u00f8r likevel", - - // Select all - "Select All": "Marker alt", - - // Code view - "Code View": "Kodevisning", - - // Quote - "Quote": "Sitat", - "Increase": "\u00d8ke", - "Decrease": "Nedgang", - - // Quick Insert - "Quick Insert": "Hurtiginnsats", - - // Spcial Characters - "Special Characters": "Spesielle karakterer", - "Latin": "Latin", - "Greek": "Gresk", - "Cyrillic": "Kyrilliske", - "Punctuation": "Tegnsetting", - "Currency": "Valuta", - "Arrows": "Piler", - "Math": "Matte", - "Misc": "Misc", - - // Print. - "Print": "Skrive ut", - - // Spell Checker. - "Spell Checker": "Stavekontroll", - - // Help - "Help": "Hjelp", - "Shortcuts": "Snarveier", - "Inline Editor": "Inline editor", - "Show the editor": "Vis redaktøren", - "Common actions": "Felles handlinger", - "Copy": "Kopiere", - "Cut": "Kutte opp", - "Paste": "Lim inn", - "Basic Formatting": "Grunnleggende formatering", - "Increase quote level": "Øke tilbudsnivået", - "Decrease quote level": "Redusere tilbudsnivå", - "Image / Video": "Bilde / video", - "Resize larger": "Endre størrelsen større", - "Resize smaller": "Endre størrelsen mindre", - "Table": "Bord", - "Select table cell": "Velg tabellcelle", - "Extend selection one cell": "Utvide valg en celle", - "Extend selection one row": "Utvide valg en rad", - "Navigation": "Navigasjon", - "Focus popup / toolbar": "Fokus popup / verktøylinje", - "Return focus to previous position": "Returnere fokus til tidligere posisjon", - - // Embed.ly - "Embed URL": "Legge inn nettadressen", - "Paste in a URL to embed": "Lim inn i en URL for å legge inn", - - // Word Paste. - "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Det limte innholdet kommer fra et Microsoft Word-dokument. vil du beholde formatet eller rydde det opp?", - "Keep": "Beholde", - "Clean": "Ren", - "Word Paste Detected": "Ordpasta oppdages" - }, - direction: "ltr" -}; - -})); diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/languages/nl.js b/Mobile.Search.Web/Scripts/froala-editor/js/languages/nl.js deleted file mode 100644 index 106a206..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/languages/nl.js +++ /dev/null @@ -1,318 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = function( root, jQuery ) { - if ( jQuery === undefined ) { - // require('jQuery') returns a factory that requires window to - // build a jQuery instance, we normalize how we use modules - // that require this pattern but the window provided is a noop - // if it's defined (how jquery works) - if ( typeof window !== 'undefined' ) { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - return factory(jQuery); - }; - } else { - // Browser globals - factory(window.jQuery); - } -}(function ($) { -/** - * Dutch - */ - -$.FE.LANGUAGE['nl'] = { - translation: { - // Place holder - "Type something": "Typ iets", - - // Basic formatting - "Bold": "Vet", - "Italic": "Cursief", - "Underline": "Onderstreept", - "Strikethrough": "Doorhalen", - - // Main buttons - "Insert": "Invoegen", - "Delete": "Verwijder", - "Cancel": "Annuleren", - "OK": "Ok\u00e9", - "Back": "Terug", - "Remove": "Verwijderen", - "More": "Meer", - "Update": "Bijwerken", - "Style": "Stijl", - - // Font - "Font Family": "Lettertype", - "Font Size": "Lettergrootte", - - // Colors - "Colors": "Kleuren", - "Background": "Achtergrond", - "Text": "Tekst", - "HEX Color": "HEX kleur", - - // Paragraphs - "Paragraph Format": "Opmaak", - "Normal": "Normaal", - "Code": "Code", - "Heading 1": "Kop 1", - "Heading 2": "Kop 2", - "Heading 3": "Kop 3", - "Heading 4": "Kop 4", - - // Style - "Paragraph Style": "Paragraaf stijl", - "Inline Style": "Inline stijl", - - // Alignment - "Align": "Uitlijnen", - "Align Left": "Links uitlijnen", - "Align Center": "Centreren", - "Align Right": "Rechts uitlijnen", - "Align Justify": "Uitvullen", - "None": "Geen", - - // Lists - "Ordered List": "Geordende lijst", - "Unordered List": "Ongeordende lijst", - - // Indent - "Decrease Indent": "Inspringen verkleinen", - "Increase Indent": "Inspringen vergroten", - - // Links - "Insert Link": "Link invoegen", - "Open in new tab": "Openen in nieuwe tab", - "Open Link": "Open link", - "Edit Link": "Link bewerken", - "Unlink": "Link verwijderen", - "Choose Link": "Link kiezen", - - // Images - "Insert Image": "Afbeelding invoegen", - "Upload Image": "Afbeelding uploaden", - "By URL": "Via URL", - "Browse": "Bladeren", - "Drop image": "Sleep afbeelding", - "or click": "of klik op", - "Manage Images": "Afbeeldingen beheren", - "Loading": "Bezig met laden", - "Deleting": "Verwijderen", - "Tags": "Labels", - "Are you sure? Image will be deleted.": "Weet je het zeker? Afbeelding wordt verwijderd.", - "Replace": "Vervangen", - "Uploading": "Uploaden", - "Loading image": "Afbeelding laden", - "Display": "Tonen", - "Inline": "Inline", - "Break Text": "Tekst afbreken", - "Alternate Text": "Alternatieve tekst", - "Change Size": "Grootte wijzigen", - "Width": "Breedte", - "Height": "Hoogte", - "Something went wrong. Please try again.": "Er is iets fout gegaan. Probeer opnieuw.", - "Image Caption": "Afbeelding caption", - "Advanced Edit": "Geavanceerd bewerken", - - // Video - "Insert Video": "Video invoegen", - "Embedded Code": "Ingebedde code", - "Paste in a video URL": "Voeg een video-URL toe", - "Drop video": "Sleep video", - "Your browser does not support HTML5 video.": "Je browser ondersteunt geen html5-video.", - "Upload Video": "Video uploaden", - - // Tables - "Insert Table": "Tabel invoegen", - "Table Header": "Tabel hoofd", - "Remove Table": "Verwijder tabel", - "Table Style": "Tabelstijl", - "Horizontal Align": "Horizontale uitlijning", - "Row": "Rij", - "Insert row above": "Voeg rij boven toe", - "Insert row below": "Voeg rij onder toe", - "Delete row": "Verwijder rij", - "Column": "Kolom", - "Insert column before": "Voeg kolom in voor", - "Insert column after": "Voeg kolom in na", - "Delete column": "Verwijder kolom", - "Cell": "Cel", - "Merge cells": "Cellen samenvoegen", - "Horizontal split": "Horizontaal splitsen", - "Vertical split": "Verticaal splitsen", - "Cell Background": "Cel achtergrond", - "Vertical Align": "Verticale uitlijning", - "Top": "Top", - "Middle": "Midden", - "Bottom": "Onder", - "Align Top": "Uitlijnen top", - "Align Middle": "Uitlijnen midden", - "Align Bottom": "Onder uitlijnen", - "Cell Style": "Celstijl", - - // Files - "Upload File": "Bestand uploaden", - "Drop file": "Sleep bestand", - - // Emoticons - "Emoticons": "Emoticons", - "Grinning face": "Grijnzend gezicht", - "Grinning face with smiling eyes": "Grijnzend gezicht met lachende ogen", - "Face with tears of joy": "Gezicht met tranen van vreugde", - "Smiling face with open mouth": "Lachend gezicht met open mond", - "Smiling face with open mouth and smiling eyes": "Lachend gezicht met open mond en lachende ogen", - "Smiling face with open mouth and cold sweat": "Lachend gezicht met open mond en koud zweet", - "Smiling face with open mouth and tightly-closed eyes": "Lachend gezicht met open mond en strak gesloten ogen", - "Smiling face with halo": "Lachend gezicht met halo", - "Smiling face with horns": "Lachend gezicht met hoorns", - "Winking face": "Knipogend gezicht", - "Smiling face with smiling eyes": "Lachend gezicht met lachende ogen", - "Face savoring delicious food": "Gezicht genietend van heerlijk eten", - "Relieved face": "Opgelucht gezicht", - "Smiling face with heart-shaped eyes": "Glimlachend gezicht met hart-vormige ogen", - "Smiling face with sunglasses": "Lachend gezicht met zonnebril", - "Smirking face": "Grijnzende gezicht", - "Neutral face": "Neutraal gezicht", - "Expressionless face": "Uitdrukkingsloos gezicht", - "Unamused face": "Niet geamuseerd gezicht", - "Face with cold sweat": "Gezicht met koud zweet", - "Pensive face": "Peinzend gezicht", - "Confused face": "Verward gezicht", - "Confounded face": "Beschaamd gezicht", - "Kissing face": "Zoenend gezicht", - "Face throwing a kiss": "Gezicht gooien van een kus", - "Kissing face with smiling eyes": "Zoenend gezicht met lachende ogen", - "Kissing face with closed eyes": "Zoenend gezicht met gesloten ogen", - "Face with stuck out tongue": "Gezicht met uitstekende tong", - "Face with stuck out tongue and winking eye": "Gezicht met uitstekende tong en knipoog", - "Face with stuck out tongue and tightly-closed eyes": "Gezicht met uitstekende tong en strak-gesloten ogen", - "Disappointed face": "Teleurgesteld gezicht", - "Worried face": "Bezorgd gezicht", - "Angry face": "Boos gezicht", - "Pouting face": "Pruilend gezicht", - "Crying face": "Huilend gezicht", - "Persevering face": "Volhardend gezicht", - "Face with look of triumph": "Gezicht met blik van triomf", - "Disappointed but relieved face": "Teleurgesteld, maar opgelucht gezicht", - "Frowning face with open mouth": "Fronsend gezicht met open mond", - "Anguished face": "Gekweld gezicht", - "Fearful face": "Angstig gezicht", - "Weary face": "Vermoeid gezicht", - "Sleepy face": "Slaperig gezicht", - "Tired face": "Moe gezicht", - "Grimacing face": "Grimassen trekkend gezicht", - "Loudly crying face": "Luid schreeuwend gezicht", - "Face with open mouth": "Gezicht met open mond", - "Hushed face": "Tot zwijgen gebracht gezicht", - "Face with open mouth and cold sweat": "Gezicht met open mond en koud zweet", - "Face screaming in fear": "Gezicht schreeuwend van angst", - "Astonished face": "Verbaasd gezicht", - "Flushed face": "Blozend gezicht", - "Sleeping face": "Slapend gezicht", - "Dizzy face": "Duizelig gezicht", - "Face without mouth": "Gezicht zonder mond", - "Face with medical mask": "Gezicht met medisch masker", - - // Line breaker - "Break": "Afbreken", - - // Math - "Subscript": "Subscript", - "Superscript": "Superscript", - - // Full screen - "Fullscreen": "Volledig scherm", - - // Horizontal line - "Insert Horizontal Line": "Horizontale lijn invoegen", - - // Clear formatting - "Clear Formatting": "Verwijder opmaak", - - // Undo, redo - "Undo": "Ongedaan maken", - "Redo": "Opnieuw", - - // Select all - "Select All": "Alles selecteren", - - // Code view - "Code View": "Codeweergave", - - // Quote - "Quote": "Citaat", - "Increase": "Toenemen", - "Decrease": "Afnemen", - - // Quick Insert - "Quick Insert": "Snel invoegen", - - // Spcial Characters - "Special Characters": "Speciale tekens", - "Latin": "Latijns", - "Greek": "Grieks", - "Cyrillic": "Cyrillisch", - "Punctuation": "Interpunctie", - "Currency": "Valuta", - "Arrows": "Pijlen", - "Math": "Wiskunde", - "Misc": "Misc", - - // Print. - "Print": "Afdrukken", - - // Spell Checker. - "Spell Checker": "Spellingscontrole", - - // Help - "Help": "Hulp", - "Shortcuts": "Snelkoppelingen", - "Inline Editor": "Inline editor", - "Show the editor": "Laat de editor zien", - "Common actions": "Algemene acties", - "Copy": "Kopiëren", - "Cut": "Knippen", - "Paste": "Plakken", - "Basic Formatting": "Basisformattering", - "Increase quote level": "Citaat niveau verhogen", - "Decrease quote level": "Citaatniveau verminderen", - "Image / Video": "Beeld / video", - "Resize larger": "Groter maken", - "Resize smaller": "Kleiner maken", - "Table": "Tabel", - "Select table cell": "Selecteer tabelcel", - "Extend selection one cell": "Selecteer een cel uit", - "Extend selection one row": "Selecteer een rij uit", - "Navigation": "Navigatie", - "Focus popup / toolbar": "Focus pop-up / werkbalk", - "Return focus to previous position": "Focus terug naar vorige positie", - - // Embed.ly - "Embed URL": "Embed url", - "Paste in a URL to embed": "Voer een URL in om toe te voegen", - - // Word Paste. - "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "De geplakte inhoud komt uit een Microsoft Word-document. wil je het formaat behouden of schoonmaken?", - "Keep": "Opmaak behouden", - "Clean": "Tekst schoonmaken", - "Word Paste Detected": "Word inhoud gedetecteerd" - }, - direction: "ltr" -}; - -})); diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/languages/pl.js b/Mobile.Search.Web/Scripts/froala-editor/js/languages/pl.js deleted file mode 100644 index 9ab78cb..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/languages/pl.js +++ /dev/null @@ -1,318 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = function( root, jQuery ) { - if ( jQuery === undefined ) { - // require('jQuery') returns a factory that requires window to - // build a jQuery instance, we normalize how we use modules - // that require this pattern but the window provided is a noop - // if it's defined (how jquery works) - if ( typeof window !== 'undefined' ) { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - return factory(jQuery); - }; - } else { - // Browser globals - factory(window.jQuery); - } -}(function ($) { -/** - * Polish - */ - -$.FE.LANGUAGE['pl'] = { - translation: { - // Place holder - "Type something": "Wpisz co\u015b", - - // Basic formatting - "Bold": "Pogrubienie", - "Italic": "Kursywa", - "Underline": "Podkre\u015blenie", - "Strikethrough": "Przekre\u015blenie", - - // Main buttons - "Insert": "Wstaw", - "Delete": "Usun\u0105\u0107", - "Cancel": "Anuluj", - "OK": "Ok", - "Back": "Plecy", - "Remove": "Usun\u0105\u0107", - "More": "Jeszcze", - "Update": "Aktualizacja", - "Style": "Styl", - - // Font - "Font Family": "Kr\u00f3j czcionki", - "Font Size": "Rozmiar czcionki", - - // Colors - "Colors": "Kolory", - "Background": "T\u0142o", - "Text": "Tekstu", - "HEX Color": "Sześciokąt", - - // Paragraphs - "Paragraph Format": "Formaty", - "Normal": "Normalny", - "Code": "Kod \u017ar\u00f3d\u0142owy", - "Heading 1": "Nag\u0142\u00f3wek 1", - "Heading 2": "Nag\u0142\u00f3wek 2", - "Heading 3": "Nag\u0142\u00f3wek 3", - "Heading 4": "Nag\u0142\u00f3wek 4", - - // Style - "Paragraph Style": "Styl akapitu", - "Inline Style": "Stylu zgodna", - - // Alignment - "Align": "Wyr\u00f3wnaj", - "Align Left": "Wyr\u00f3wnaj do lewej", - "Align Center": "Wyr\u00f3wnaj do \u015brodka", - "Align Right": "Wyr\u00f3wnaj do prawej", - "Align Justify": "Do lewej i prawej", - "None": "\u017baden", - - // Lists - "Ordered List": "Uporz\u0105dkowana lista", - "Unordered List": "Lista nieuporz\u0105dkowana", - - // Indent - "Decrease Indent": "Zmniejsz wci\u0119cie", - "Increase Indent": "Zwi\u0119ksz wci\u0119cie", - - // Links - "Insert Link": "Wstaw link", - "Open in new tab": "Otw\u00f3rz w nowej karcie", - "Open Link": "Otw\u00f3rz link", - "Edit Link": "Link edytuj", - "Unlink": "Usu\u0144 link", - "Choose Link": "Wybierz link", - - // Images - "Insert Image": "Wstaw obrazek", - "Upload Image": "Za\u0142aduj obrazek", - "By URL": "Przez URL", - "Browse": "Przegl\u0105danie", - "Drop image": "Upu\u015bci\u0107 obraz", - "or click": "lub kliknij", - "Manage Images": "Zarz\u0105dzanie zdj\u0119ciami", - "Loading": "\u0141adowanie", - "Deleting": "Usuwanie", - "Tags": "Tagi", - "Are you sure? Image will be deleted.": "Czy na pewno? Obraz zostanie skasowany.", - "Replace": "Zast\u0105pi\u0107", - "Uploading": "Zamieszczanie", - "Loading image": "\u0141adowanie obrazek", - "Display": "Wystawa", - "Inline": "Zgodna", - "Break Text": "Z\u0142ama\u0107 tekst", - "Alternate Text": "Tekst alternatywny", - "Change Size": "Zmie\u0144 rozmiar", - "Width": "Szeroko\u015b\u0107", - "Height": "Wysoko\u015b\u0107", - "Something went wrong. Please try again.": "Co\u015b posz\u0142o nie tak. Prosz\u0119 spr\u00f3buj ponownie.", - "Image Caption": "Podpis obrazu", - "Advanced Edit": "Zaawansowana edycja", - - // Video - "Insert Video": "Wstaw wideo", - "Embedded Code": "Kod osadzone", - "Paste in a video URL": "Wklej adres URL filmu", - "Drop video": "Upuść wideo", - "Your browser does not support HTML5 video.": "Twoja przeglądarka nie obsługuje wideo html5.", - "Upload Video": "Prześlij wideo", - - // Tables - "Insert Table": "Wstaw tabel\u0119", - "Table Header": "Nag\u0142\u00f3wek tabeli", - "Remove Table": "Usu\u0144 tabel\u0119", - "Table Style": "Styl tabeli", - "Horizontal Align": "Wyr\u00f3wnaj poziomy", - "Row": "Wiersz", - "Insert row above": "Wstaw wiersz przed", - "Insert row below": "Wstaw wiersz po", - "Delete row": "Usu\u0144 wiersz", - "Column": "Kolumna", - "Insert column before": "Wstaw kolumn\u0119 przed", - "Insert column after": "Wstaw kolumn\u0119 po", - "Delete column": "Usu\u0144 kolumn\u0119", - "Cell": "Kom\u00f3rka", - "Merge cells": "\u0141\u0105cz kom\u00f3rki", - "Horizontal split": "Podzia\u0142 poziomy", - "Vertical split": "Podzia\u0142 pionowy", - "Cell Background": "T\u0142a kom\u00f3rek", - "Vertical Align": "Pionowe wyr\u00f3wnanie", - "Top": "Top", - "Middle": "\u015arodkowy", - "Bottom": "Dno", - "Align Top": "Wyr\u00f3wnaj do g\u00f3ry", - "Align Middle": "Wyr\u00f3wnaj \u015brodku", - "Align Bottom": "Wyr\u00f3wnaj do do\u0142u", - "Cell Style": "Styl kom\u00f3rki", - - // Files - "Upload File": "Prze\u015blij plik", - "Drop file": "Upu\u015bci\u0107 plik", - - // Emoticons - "Emoticons": "Emotikony", - "Grinning face": "Z u\u015bmiechem twarz", - "Grinning face with smiling eyes": "Z u\u015bmiechem twarz z u\u015bmiechni\u0119tymi oczami", - "Face with tears of joy": "Twarz ze \u0142zami rado\u015bci", - "Smiling face with open mouth": "U\u015bmiechni\u0119ta twarz z otwartymi ustami", - "Smiling face with open mouth and smiling eyes": "U\u015bmiechni\u0119ta twarz z otwartymi ustami i u\u015bmiechni\u0119te oczy", - "Smiling face with open mouth and cold sweat": "U\u015bmiechni\u0119ta twarz z otwartymi ustami i zimny pot", - "Smiling face with open mouth and tightly-closed eyes": "U\u015bmiechni\u0119ta twarz z otwartymi ustami i szczelnie zamkni\u0119tych oczu", - "Smiling face with halo": "U\u015bmiechni\u0119ta twarz z halo", - "Smiling face with horns": "U\u015bmiechni\u0119ta twarz z rogami", - "Winking face": "Mrugaj\u0105ca twarz", - "Smiling face with smiling eyes": "U\u015bmiechni\u0119ta twarz z u\u015bmiechni\u0119tymi oczami", - "Face savoring delicious food": "Twarz smakuj\u0105 c pyszne jedzenie", - "Relieved face": "Z ulg\u0105 twarz", - "Smiling face with heart-shaped eyes": "U\u015bmiechni\u0119ta twarz z oczami w kszta\u0142cie serca", - "Smiling face with sunglasses": "U\u015bmiechni\u0119ta twarz z okulary", - "Smirking face": "Zadowolony z siebie twarz", - "Neutral face": "Neutralny twarzy", - "Expressionless face": "Bezwyrazowy twarzy", - "Unamused face": "Nie rozbawiony twarzy", - "Face with cold sweat": "Zimny pot z twarzy", - "Pensive face": "Zamy\u015blona twarz", - "Confused face": "Myli\u0107 twarzy", - "Confounded face": "Ha\u0144ba twarz", - "Kissing face": "Ca\u0142owanie twarz", - "Face throwing a kiss": "Twarz rzucaj\u0105c poca\u0142unek", - "Kissing face with smiling eyes": "Ca\u0142owanie twarz z u\u015bmiechni\u0119tymi oczami", - "Kissing face with closed eyes": "Ca\u0142owanie twarz z zamkni\u0119tymi oczami", - "Face with stuck out tongue": "Twarz z j\u0119zyka stercza\u0142y", - "Face with stuck out tongue and winking eye": "Twarz z stercza\u0142y j\u0119zyka i mrugaj\u0105c okiem", - "Face with stuck out tongue and tightly-closed eyes": "Twarz z stercza\u0142y j\u0119zyka i szczelnie zamkni\u0119tych oczu", - "Disappointed face": "Rozczarowany twarzy", - "Worried face": "Martwi twarzy", - "Angry face": "Gniewnych twarzy", - "Pouting face": "D\u0105sy twarzy", - "Crying face": "P\u0142acz\u0105cy", - "Persevering face": "Wytrwa\u0142a twarz", - "Face with look of triumph": "Twarz z wyrazem triumfu", - "Disappointed but relieved face": "Rozczarowany ale ulg\u0119 twarz", - "Frowning face with open mouth": "Krzywi\u0105c twarz z otwartymi ustami", - "Anguished face": "Bolesna twarz", - "Fearful face": "W obawie twarzy", - "Weary face": "Zm\u0119czona twarz", - "Sleepy face": "Je\u017adziec bez twarzy", - "Tired face": "Zm\u0119czonej twarzy", - "Grimacing face": "Skrzywi\u0142 twarz", - "Loudly crying face": "G\u0142o\u015bno p\u0142aka\u0107 twarz", - "Face with open mouth": "twarz z otwartymi ustami", - "Hushed face": "Uciszy\u0142 twarzy", - "Face with open mouth and cold sweat": "Twarz z otwartymi ustami i zimny pot", - "Face screaming in fear": "Twarz z krzykiem w strachu", - "Astonished face": "Zdziwienie twarzy", - "Flushed face": "Zaczerwienienie twarzy", - "Sleeping face": "\u015api\u0105ca twarz", - "Dizzy face": "Zawroty g\u0142owy twarzy", - "Face without mouth": "Twarz bez usta", - "Face with medical mask": "Twarz\u0105 w medycznych maski", - - // Line breaker - "Break": "Z\u0142ama\u0107", - - // Math - "Subscript": "Indeks dolny", - "Superscript": "Indeks g\u00f3rny", - - // Full screen - "Fullscreen": "Pe\u0142ny ekran", - - // Horizontal line - "Insert Horizontal Line": "Wstaw lini\u0119 poziom\u0105", - - // Clear formatting - "Clear Formatting": "Usu\u0144 formatowanie", - - // Undo, redo - "Undo": "Cofnij", - "Redo": "Pon\u00f3w", - - // Select all - "Select All": "Zaznacz wszystko", - - // Code view - "Code View": "Widok kod", - - // Quote - "Quote": "Cytat", - "Increase": "Wzrost", - "Decrease": "Zmniejszenie", - - // Quick Insert - "Quick Insert": "Szybkie wstaw", - - // Spcial Characters - "Special Characters": "Znaki specjalne", - "Latin": "Łacina", - "Greek": "Grecki", - "Cyrillic": "Cyrylica", - "Punctuation": "Interpunkcja", - "Currency": "Waluta", - "Arrows": "Strzałki", - "Math": "Matematyka", - "Misc": "Misc", - - // Print. - "Print": "Wydrukować", - - // Spell Checker. - "Spell Checker": "Sprawdzanie pisowni", - - // Help - "Help": "Wsparcie", - "Shortcuts": "Skróty", - "Inline Editor": "Edytor w wierszu", - "Show the editor": "Pokazać edytor", - "Common actions": "Wspólne działania", - "Copy": "Kopiuj", - "Cut": "Ciąć", - "Paste": "Pasta", - "Basic Formatting": "Podstawowe formatowanie", - "Increase quote level": "Zwiększyć poziom notowań", - "Decrease quote level": "Zmniejszyć poziom notowań", - "Image / Video": "Obraz / wideo", - "Resize larger": "Zmienić rozmiar większy", - "Resize smaller": "Zmienić rozmiar mniejszy", - "Table": "Stół", - "Select table cell": "Wybierz komórkę tabeli", - "Extend selection one cell": "Przedłużyć wybór jednej komórki", - "Extend selection one row": "Przedłużyć wybór jednego rzędu", - "Navigation": "Nawigacja", - "Focus popup / toolbar": "Focus popup / toolbar", - "Return focus to previous position": "Powrót do poprzedniej pozycji", - - // Embed.ly - "Embed URL": "Osadzaj url", - "Paste in a URL to embed": "Wklej w adresie URL do osadzenia", - - // Word Paste. - "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Wklejana treść pochodzi z programu Microsoft Word. Czy chcesz zachować formatowanie czy wkleić jako zwykły tekst?", - "Keep": "Zachowaj formatowanie", - "Clean": "Wklej jako tekst", - "Word Paste Detected": "Wykryto sformatowany tekst" - }, - direction: "ltr" -}; - -})); diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/languages/pt_br.js b/Mobile.Search.Web/Scripts/froala-editor/js/languages/pt_br.js deleted file mode 100644 index 7afbd19..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/languages/pt_br.js +++ /dev/null @@ -1,318 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = function( root, jQuery ) { - if ( jQuery === undefined ) { - // require('jQuery') returns a factory that requires window to - // build a jQuery instance, we normalize how we use modules - // that require this pattern but the window provided is a noop - // if it's defined (how jquery works) - if ( typeof window !== 'undefined' ) { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - return factory(jQuery); - }; - } else { - // Browser globals - factory(window.jQuery); - } -}(function ($) { -/** - * Portuguese spoken in Brazil - */ - -$.FE.LANGUAGE['pt_br'] = { - translation: { - // Place holder - "Type something": "Digite algo", - - // Basic formatting - "Bold": "Negrito", - "Italic": "It\u00e1lico", - "Underline": "Sublinhar", - "Strikethrough": "Riscar", - - // Main buttons - "Insert": "Inserir", - "Delete": "Apagar", - "Cancel": "Cancelar", - "OK": "Ok", - "Back": "Voltar", - "Remove": "Remover", - "More": "Mais", - "Update": "Atualizar", - "Style": "Estilo", - - // Font - "Font Family": "Fonte", - "Font Size": "Tamanho", - - // Colors - "Colors": "Cores", - "Background": "Fundo", - "Text": "Texto", - "HEX Color": "Cor hexadecimal", - - // Paragraphs - "Paragraph Format": "Formatos", - "Normal": "Normal", - "Code": "C\u00f3digo", - "Heading 1": "Cabe\u00e7alho 1", - "Heading 2": "Cabe\u00e7alho 2", - "Heading 3": "Cabe\u00e7alho 3", - "Heading 4": "Cabe\u00e7alho 4", - - // Style - "Paragraph Style": "Estilo de par\u00e1grafo", - "Inline Style": "Estilo embutido", - - // Alignment - "Align": "Alinhar", - "Align Left": "Alinhar \u00e0 esquerda", - "Align Center": "Centralizar", - "Align Right": "Alinhar \u00e0 direita", - "Align Justify": "Justificar", - "None": "Nenhum", - - // Lists - "Ordered List": "Lista ordenada", - "Unordered List": "Lista n\u00e3o ordenada", - - // Indent - "Decrease Indent": "Diminuir recuo", - "Increase Indent": "Aumentar recuo", - - // Links - "Insert Link": "Inserir link", - "Open in new tab": "Abrir em uma nova aba", - "Open Link": "Abrir link", - "Edit Link": "Editar link", - "Unlink": "Remover link", - "Choose Link": "Escolha o link", - - // Images - "Insert Image": "Inserir imagem", - "Upload Image": "Carregar imagem", - "By URL": "Por URL", - "Browse": "Procurar", - "Drop image": "Arraste sua imagem aqui", - "or click": "ou clique aqui", - "Manage Images": "Gerenciar imagens", - "Loading": "Carregando", - "Deleting": "Excluindo", - "Tags": "Etiquetas", - "Are you sure? Image will be deleted.": "Voc\u00ea tem certeza? Imagem ser\u00e1 apagada.", - "Replace": "Substituir", - "Uploading": "Carregando imagem", - "Loading image": "Carregando imagem", - "Display": "Exibir", - "Inline": "Em linha", - "Break Text": "Texto de quebra", - "Alternate Text": "Texto alternativo", - "Change Size": "Alterar tamanho", - "Width": "Largura", - "Height": "Altura", - "Something went wrong. Please try again.": "Algo deu errado. Por favor, tente novamente.", - "Image Caption": "Legenda da imagem", - "Advanced Edit": "Edição avançada", - - // Video - "Insert Video": "Inserir v\u00eddeo", - "Embedded Code": "C\u00f3digo embutido", - "Paste in a video URL": "Colar em um URL de vídeo", - "Drop video": "Solte o video", - "Your browser does not support HTML5 video.": "Seu navegador não suporta o vídeo html5.", - "Upload Video": "Envio vídeo", - - // Tables - "Insert Table": "Inserir tabela", - "Table Header": "Cabe\u00e7alho da tabela", - "Remove Table": "Remover tabela", - "Table Style": "estilo de tabela", - "Horizontal Align": "Alinhamento horizontal", - "Row": "Linha", - "Insert row above": "Inserir linha antes", - "Insert row below": "Inserir linha depois", - "Delete row": "Excluir linha", - "Column": "Coluna", - "Insert column before": "Inserir coluna antes", - "Insert column after": "Inserir coluna depois", - "Delete column": "Excluir coluna", - "Cell": "C\u00e9lula", - "Merge cells": "Agrupar c\u00e9lulas", - "Horizontal split": "Divis\u00e3o horizontal", - "Vertical split": "Divis\u00e3o vertical", - "Cell Background": "Fundo da c\u00e9lula", - "Vertical Align": "Alinhamento vertical", - "Top": "Topo", - "Middle": "Meio", - "Bottom": "Fundo", - "Align Top": "Alinhar topo", - "Align Middle": "Alinhar meio", - "Align Bottom": "Alinhar fundo", - "Cell Style": "Estilo de c\u00e9lula", - - // Files - "Upload File": "Upload de arquivo", - "Drop file": "Arraste seu arquivo aqui", - - // Emoticons - "Emoticons": "Emoticons", - "Grinning face": "Sorrindo a cara", - "Grinning face with smiling eyes": "Sorrindo rosto com olhos sorridentes", - "Face with tears of joy": "Rosto com l\u00e1grimas de alegria", - "Smiling face with open mouth": "Rosto de sorriso com a boca aberta", - "Smiling face with open mouth and smiling eyes": "Rosto de sorriso com a boca aberta e olhos sorridentes", - "Smiling face with open mouth and cold sweat": "Rosto de sorriso com a boca aberta e suor frio", - "Smiling face with open mouth and tightly-closed eyes": "Rosto de sorriso com a boca aberta e os olhos bem fechados", - "Smiling face with halo": "Rosto de sorriso com halo", - "Smiling face with horns": "Rosto de sorriso com chifres", - "Winking face": "Pisc a rosto", - "Smiling face with smiling eyes": "Rosto de sorriso com olhos sorridentes", - "Face savoring delicious food": "Rosto saboreando uma deliciosa comida", - "Relieved face": "Rosto aliviado", - "Smiling face with heart-shaped eyes": "Rosto de sorriso com os olhos em forma de cora\u00e7\u00e3o", - "Smiling face with sunglasses": "Rosto de sorriso com \u00f3culos de sol", - "Smirking face": "Rosto sorridente", - "Neutral face": "Rosto neutra", - "Expressionless face": "Rosto inexpressivo", - "Unamused face": "O rosto n\u00e3o divertido", - "Face with cold sweat": "Rosto com suor frio", - "Pensive face": "O rosto pensativo", - "Confused face": "Cara confusa", - "Confounded face": "Rosto at\u00f4nito", - "Kissing face": "Beijar Rosto", - "Face throwing a kiss": "Rosto jogando um beijo", - "Kissing face with smiling eyes": "Beijar rosto com olhos sorridentes", - "Kissing face with closed eyes": "Beijando a cara com os olhos fechados", - "Face with stuck out tongue": "Preso de cara com a l\u00edngua para fora", - "Face with stuck out tongue and winking eye": "Rosto com estendeu a l\u00edngua e olho piscando", - "Face with stuck out tongue and tightly-closed eyes": "Rosto com estendeu a língua e os olhos bem fechados", - "Disappointed face": "Rosto decepcionado", - "Worried face": "O rosto preocupado", - "Angry face": "Rosto irritado", - "Pouting face": "Beicinho Rosto", - "Crying face": "Cara de choro", - "Persevering face": "Perseverar Rosto", - "Face with look of triumph": "Rosto com olhar de triunfo", - "Disappointed but relieved face": "Fiquei Desapontado mas aliviado Rosto", - "Frowning face with open mouth": "Sobrancelhas franzidas rosto com a boca aberta", - "Anguished face": "O rosto angustiado", - "Fearful face": "Cara com medo", - "Weary face": "Rosto cansado", - "Sleepy face": "Cara de sono", - "Tired face": "Rosto cansado", - "Grimacing face": "Fazendo caretas face", - "Loudly crying face": "Alto chorando rosto", - "Face with open mouth": "Enfrentar com a boca aberta", - "Hushed face": "Flagrantes de rosto", - "Face with open mouth and cold sweat": "Enfrentar com a boca aberta e suor frio", - "Face screaming in fear": "Cara gritando de medo", - "Astonished face": "Cara de surpresa", - "Flushed face": "Rosto vermelho", - "Sleeping face": "O rosto de sono", - "Dizzy face": "Cara tonto", - "Face without mouth": "Rosto sem boca", - "Face with medical mask": "Rosto com m\u00e1scara m\u00e9dica", - - // Line breaker - "Break": "Quebrar", - - // Math - "Subscript": "Subscrito", - "Superscript": "Sobrescrito", - - // Full screen - "Fullscreen": "Tela cheia", - - // Horizontal line - "Insert Horizontal Line": "Inserir linha horizontal", - - // Clear formatting - "Clear Formatting": "Remover formata\u00e7\u00e3o", - - // Undo, redo - "Undo": "Desfazer", - "Redo": "Refazer", - - // Select all - "Select All": "Selecionar tudo", - - // Code view - "Code View": "Exibi\u00e7\u00e3o de c\u00f3digo", - - // Quote - "Quote": "Cita\u00e7\u00e3o", - "Increase": "Aumentar", - "Decrease": "Diminuir", - - // Quick Insert - "Quick Insert": "Inser\u00e7\u00e3o r\u00e1pida", - - // Spcial Characters - "Special Characters": "Caracteres especiais", - "Latin": "Latino", - "Greek": "Grego", - "Cyrillic": "Cirílico", - "Punctuation": "Pontuação", - "Currency": "Moeda", - "Arrows": "Setas; flechas", - "Math": "Matemática", - "Misc": "Misc", - - // Print. - "Print": "Impressão", - - // Spell Checker. - "Spell Checker": "Verificador ortográfico", - - // Help - "Help": "Socorro", - "Shortcuts": "Atalhos", - "Inline Editor": "Editor em linha", - "Show the editor": "Mostre o editor", - "Common actions": "Ações comuns", - "Copy": "Cópia de", - "Cut": "Cortar", - "Paste": "Colar", - "Basic Formatting": "Formatação básica", - "Increase quote level": "Aumentar o nível de cotação", - "Decrease quote level": "Diminuir o nível de cotação", - "Image / Video": "Imagem / video", - "Resize larger": "Redimensionar maior", - "Resize smaller": "Redimensionar menor", - "Table": "Tabela", - "Select table cell": "Selecione a célula da tabela", - "Extend selection one cell": "Ampliar a seleção de uma célula", - "Extend selection one row": "Ampliar a seleção uma linha", - "Navigation": "Navegação", - "Focus popup / toolbar": "Foco popup / barra de ferramentas", - "Return focus to previous position": "Retornar o foco para a posição anterior", - - // Embed.ly - "Embed URL": "URL de inserção", - "Paste in a URL to embed": "Colar em url para incorporar", - - // Word Paste. - "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "O conteúdo colado vem de um documento Microsoft Word. Você quer manter o formato ou limpá-lo?", - "Keep": "Guarda", - "Clean": "Limpar \ limpo", - "Word Paste Detected": "Pasta de palavras detectada" - }, - direction: "ltr" -}; - -})); diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/languages/pt_pt.js b/Mobile.Search.Web/Scripts/froala-editor/js/languages/pt_pt.js deleted file mode 100644 index 0cbc3d6..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/languages/pt_pt.js +++ /dev/null @@ -1,318 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = function( root, jQuery ) { - if ( jQuery === undefined ) { - // require('jQuery') returns a factory that requires window to - // build a jQuery instance, we normalize how we use modules - // that require this pattern but the window provided is a noop - // if it's defined (how jquery works) - if ( typeof window !== 'undefined' ) { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - return factory(jQuery); - }; - } else { - // Browser globals - factory(window.jQuery); - } -}(function ($) { -/** - * Portuguese spoken in Portugal - */ - -$.FE.LANGUAGE['pt_pt'] = { - translation: { - // Place holder - "Type something": "Digite algo", - - // Basic formatting - "Bold": "Negrito", - "Italic": "It\u00e1lico", - "Underline": "Sublinhado", - "Strikethrough": "Rasurado", - - // Main buttons - "Insert": "Inserir", - "Delete": "Apagar", - "Cancel": "Cancelar", - "OK": "Ok", - "Back": "Voltar", - "Remove": "Remover", - "More": "Mais", - "Update": "Atualizar", - "Style": "Estilo", - - // Font - "Font Family": "Fonte", - "Font Size": "Tamanho da fonte", - - // Colors - "Colors": "Cores", - "Background": "Fundo", - "Text": "Texto", - "HEX Color": "Cor hexadecimal", - - // Paragraphs - "Paragraph Format": "Formatos", - "Normal": "Normal", - "Code": "C\u00f3digo", - "Heading 1": "Cabe\u00e7alho 1", - "Heading 2": "Cabe\u00e7alho 2", - "Heading 3": "Cabe\u00e7alho 3", - "Heading 4": "Cabe\u00e7alho 4", - - // Style - "Paragraph Style": "Estilo de par\u00e1grafo", - "Inline Style": "Estilo embutido", - - // Alignment - "Align": "Alinhar", - "Align Left": "Alinhar \u00e0 esquerda", - "Align Center": "Alinhar ao centro", - "Align Right": "Alinhar \u00e0 direita", - "Align Justify": "Justificado", - "None": "Nenhum", - - // Lists - "Ordered List": "Lista ordenada", - "Unordered List": "Lista n\u00e3o ordenada", - - // Indent - "Decrease Indent": "Diminuir avan\u00e7o", - "Increase Indent": "Aumentar avan\u00e7o", - - // Links - "Insert Link": "Inserir link", - "Open in new tab": "Abrir em uma nova aba", - "Open Link": "Abrir link", - "Edit Link": "Editar link", - "Unlink": "Remover link", - "Choose Link": "Escolha o link", - - // Images - "Insert Image": "Inserir imagem", - "Upload Image": "Carregar imagem", - "By URL": "Por URL", - "Browse": "Procurar", - "Drop image": "Largue imagem", - "or click": "ou clique em", - "Manage Images": "Gerenciar as imagens", - "Loading": "Carregando", - "Deleting": "Excluindo", - "Tags": "Etiquetas", - "Are you sure? Image will be deleted.": "Voc\u00ea tem certeza? Imagem ser\u00e1 apagada.", - "Replace": "Substituir", - "Uploading": "Carregando imagem", - "Loading image": "Carregando imagem", - "Display": "Exibir", - "Inline": "Em linha", - "Break Text": "Texto de quebra", - "Alternate Text": "Texto alternativo", - "Change Size": "Alterar tamanho", - "Width": "Largura", - "Height": "Altura", - "Something went wrong. Please try again.": "Algo deu errado. Por favor, tente novamente.", - "Image Caption": "Legenda da imagem", - "Advanced Edit": "Edição avançada", - - // Video - "Insert Video": "Inserir v\u00eddeo", - "Embedded Code": "C\u00f3digo embutido", - "Paste in a video URL": "Colar em um URL de vídeo", - "Drop video": "Solte o video", - "Your browser does not support HTML5 video.": "Seu navegador não suporta o vídeo html5.", - "Upload Video": "Envio vídeo", - - // Tables - "Insert Table": "Inserir tabela", - "Table Header": "Cabe\u00e7alho da tabela", - "Remove Table": "Remover tabela", - "Table Style": "estilo de tabela", - "Horizontal Align": "Alinhamento horizontal", - "Row": "Linha", - "Insert row above": "Inserir linha antes", - "Insert row below": "Inserir linha depois", - "Delete row": "Eliminar linha", - "Column": "Coluna", - "Insert column before": "Inserir coluna antes", - "Insert column after": "Inserir coluna depois", - "Delete column": "Eliminar coluna", - "Cell": "C\u00e9lula", - "Merge cells": "Unir c\u00e9lulas", - "Horizontal split": "Divis\u00e3o horizontal", - "Vertical split": "Divis\u00e3o vertical", - "Cell Background": "Fundo da c\u00e9lula", - "Vertical Align": "Alinhar vertical", - "Top": "Topo", - "Middle": "Meio", - "Bottom": "Fundo", - "Align Top": "Alinhar topo", - "Align Middle": "Alinhar meio", - "Align Bottom": "Alinhar fundo", - "Cell Style": "Estilo de c\u00e9lula", - - // Files - "Upload File": "Upload de arquivo", - "Drop file": "Largar arquivo", - - // Emoticons - "Emoticons": "Emoticons", - "Grinning face": "Sorrindo a cara", - "Grinning face with smiling eyes": "Sorrindo rosto com olhos sorridentes", - "Face with tears of joy": "Rosto com l\u00e1grimas de alegria", - "Smiling face with open mouth": "Rosto de sorriso com a boca aberta", - "Smiling face with open mouth and smiling eyes": "Rosto de sorriso com a boca aberta e olhos sorridentes", - "Smiling face with open mouth and cold sweat": "Rosto de sorriso com a boca aberta e suor frio", - "Smiling face with open mouth and tightly-closed eyes": "Rosto de sorriso com a boca aberta e os olhos bem fechados", - "Smiling face with halo": "Rosto de sorriso com halo", - "Smiling face with horns": "Rosto de sorriso com chifres", - "Winking face": "Pisc a rosto", - "Smiling face with smiling eyes": "Rosto de sorriso com olhos sorridentes", - "Face savoring delicious food": "Rosto saboreando uma deliciosa comida", - "Relieved face": "Rosto aliviado", - "Smiling face with heart-shaped eyes": "Rosto de sorriso com os olhos em forma de cora\u00e7\u00e3o", - "Smiling face with sunglasses": "Rosto de sorriso com \u00f3culos de sol", - "Smirking face": "Rosto sorridente", - "Neutral face": "Rosto neutra", - "Expressionless face": "Rosto inexpressivo", - "Unamused face": "O rosto n\u00e3o divertido", - "Face with cold sweat": "Rosto com suor frio", - "Pensive face": "O rosto pensativo", - "Confused face": "Cara confusa", - "Confounded face": "Rosto at\u00f4nito", - "Kissing face": "Beijar Rosto", - "Face throwing a kiss": "Rosto jogando um beijo", - "Kissing face with smiling eyes": "Beijar rosto com olhos sorridentes", - "Kissing face with closed eyes": "Beijando a cara com os olhos fechados", - "Face with stuck out tongue": "Preso de cara com a l\u00edngua para fora", - "Face with stuck out tongue and winking eye": "Rosto com estendeu a l\u00edngua e olho piscando", - "Face with stuck out tongue and tightly-closed eyes": "Rosto com estendeu a língua e os olhos bem fechados", - "Disappointed face": "Rosto decepcionado", - "Worried face": "O rosto preocupado", - "Angry face": "Rosto irritado", - "Pouting face": "Beicinho Rosto", - "Crying face": "Cara de choro", - "Persevering face": "Perseverar Rosto", - "Face with look of triumph": "Rosto com olhar de triunfo", - "Disappointed but relieved face": "Fiquei Desapontado mas aliviado Rosto", - "Frowning face with open mouth": "Sobrancelhas franzidas rosto com a boca aberta", - "Anguished face": "O rosto angustiado", - "Fearful face": "Cara com medo", - "Weary face": "Rosto cansado", - "Sleepy face": "Cara de sono", - "Tired face": "Rosto cansado", - "Grimacing face": "Fazendo caretas face", - "Loudly crying face": "Alto chorando rosto", - "Face with open mouth": "Enfrentar com a boca aberta", - "Hushed face": "Flagrantes de rosto", - "Face with open mouth and cold sweat": "Enfrentar com a boca aberta e suor frio", - "Face screaming in fear": "Cara gritando de medo", - "Astonished face": "Cara de surpresa", - "Flushed face": "Rosto vermelho", - "Sleeping face": "O rosto de sono", - "Dizzy face": "Cara tonto", - "Face without mouth": "Rosto sem boca", - "Face with medical mask": "Rosto com m\u00e1scara m\u00e9dica", - - // Line breaker - "Break": "Partir", - - // Math - "Subscript": "Subscrito", - "Superscript": "Sobrescrito", - - // Full screen - "Fullscreen": "Tela cheia", - - // Horizontal line - "Insert Horizontal Line": "Inserir linha horizontal", - - // Clear formatting - "Clear Formatting": "Remover formata\u00e7\u00e3o", - - // Undo, redo - "Undo": "Anular", - "Redo": "Restaurar", - - // Select all - "Select All": "Seleccionar tudo", - - // Code view - "Code View": "Exibi\u00e7\u00e3o de c\u00f3digo", - - // Quote - "Quote": "Cita\u00e7\u00e3o", - "Increase": "Aumentar", - "Decrease": "Diminuir", - - // Quick Insert - "Quick Insert": "Inser\u00e7\u00e3o r\u00e1pida", - - // Spcial Characters - "Special Characters": "Caracteres especiais", - "Latin": "Latino", - "Greek": "Grego", - "Cyrillic": "Cirílico", - "Punctuation": "Pontuação", - "Currency": "Moeda", - "Arrows": "Setas; flechas", - "Math": "Matemática", - "Misc": "Misc", - - // Print. - "Print": "Impressão", - - // Spell Checker. - "Spell Checker": "Verificador ortográfico", - - // Help - "Help": "Socorro", - "Shortcuts": "Atalhos", - "Inline Editor": "Editor em linha", - "Show the editor": "Mostre o editor", - "Common actions": "Ações comuns", - "Copy": "Cópia de", - "Cut": "Cortar", - "Paste": "Colar", - "Basic Formatting": "Formatação básica", - "Increase quote level": "Aumentar o nível de cotação", - "Decrease quote level": "Diminuir o nível de cotação", - "Image / Video": "Imagem / video", - "Resize larger": "Redimensionar maior", - "Resize smaller": "Redimensionar menor", - "Table": "Tabela", - "Select table cell": "Selecione a célula da tabela", - "Extend selection one cell": "Ampliar a seleção de uma célula", - "Extend selection one row": "Ampliar a seleção uma linha", - "Navigation": "Navegação", - "Focus popup / toolbar": "Foco popup / barra de ferramentas", - "Return focus to previous position": "Retornar o foco para a posição anterior", - - // Embed.ly - "Embed URL": "URL de inserção", - "Paste in a URL to embed": "Colar em url para incorporar", - - // Word Paste. - "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "O conteúdo colado vem de um documento Microsoft Word. Você quer manter o formato ou limpá-lo?", - "Keep": "Guarda", - "Clean": "Limpar \ limpo", - "Word Paste Detected": "Pasta de palavras detectada" - }, - direction: "ltr" -}; - -})); diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/languages/ro.js b/Mobile.Search.Web/Scripts/froala-editor/js/languages/ro.js deleted file mode 100644 index ca926ab..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/languages/ro.js +++ /dev/null @@ -1,319 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = function( root, jQuery ) { - if ( jQuery === undefined ) { - // require('jQuery') returns a factory that requires window to - // build a jQuery instance, we normalize how we use modules - // that require this pattern but the window provided is a noop - // if it's defined (how jquery works) - if ( typeof window !== 'undefined' ) { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - return factory(jQuery); - }; - } else { - // Browser globals - factory(window.jQuery); - } -}(function ($) { -/** - * Romanian - */ - -$.FE.LANGUAGE['ro'] = { - translation: { - // Place holder - "Type something": "Tasteaz\u0103 ceva", - - // Basic formatting - "Bold": "\u00cengro\u015fat", - "Italic": "Cursiv", - "Underline": "Subliniat", - "Strikethrough": "T\u0103iat", - - // Main buttons - "Insert": "Insereaz\u0103", - "Delete": "\u015eterge", - "Cancel": "Anuleaz\u0103", - "OK": "Ok", - "Back": "\u00cenapoi", - "Remove": "\u0218terge", - "More": "Mai mult", - "Update": "Actualizeaz\u0103", - "Style": "Stil", - - // Font - "Font Family": "Font", - "Font Size": "Dimensiune font", - - // Colors - "Colors": "Culoare", - "Background": "Fundal", - "Text": "Text", - "HEX Color": "Culoare Hexa", - - // Paragraphs - "Paragraph Format": "Format paragraf", - "Normal": "Normal", - "Code": "Cod", - "Heading 1": "Antet 1", - "Heading 2": "Antet 2", - "Heading 3": "Antet 3", - "Heading 4": "Antet 4", - - // Style - "Paragraph Style": "Stil paragraf", - "Inline Style": "Stil \u00een linie", - - // Alignment - "Align": "Aliniere", - "Align Left": "Aliniere la st\u00e2nga", - "Align Center": "Aliniere la centru", - "Align Right": "Aliniere la dreapta", - "Align Justify": "Aliniere pe toat\u0103 l\u0103\u021bimea", - "None": "Niciunul", - - // Lists - "Ordered List": "List\u0103 ordonat\u0103", - "Unordered List": "List\u0103 neordonat\u0103", - - // Indent - "Decrease Indent": "De-indenteaz\u0103", - "Increase Indent": "Indenteaz\u0103", - - // Links - "Insert Link": "Inserare link", - "Open in new tab": "Deschide \u00EEn tab nou", - "Open Link": "Deschide link", - "Edit Link": "Editare link", - "Unlink": "\u0218terge link-ul", - "Choose Link": "Alege link", - - // Images - "Insert Image": "Inserare imagine", - "Upload Image": "\u00cencarc\u0103 imagine", - "By URL": "Dup\u0103 URL", - "Browse": "R\u0103sfoie\u0219te", - "Drop image": "Trage imagine", - "or click": "sau f\u0103 click", - "Manage Images": "Gestionare imagini", - "Loading": "Se \u00eencarc\u0103", - "Deleting": "", - "Deleting": "Se \u0219terge", - "Tags": "Etichete", - "Are you sure? Image will be deleted.": "Sunte\u021bi sigur? Imaginea va fi \u015ftears\u0103.", - "Replace": "\u00cenlocuire", - "Uploading": "Imaginea se \u00eencarc\u0103", - "Loading image": "Imaginea se \u00eencarc\u0103", - "Display": "Afi\u0219are", - "Inline": "\u00cen linie", - "Break Text": "Sparge text", - "Alternate Text": "Text alternativ", - "Change Size": "Modificare dimensiuni", - "Width": "L\u0103\u021bime", - "Height": "\u00cen\u0103l\u021bime", - "Something went wrong. Please try again.": "Ceva n-a mers bine. V\u0103 rug\u0103m s\u0103 \u00eencerca\u021bi din nou.", - "Image Caption": "Captura imaginii", - "Advanced Edit": "Editare avansată", - - // Video - "Insert Video": "Inserare video", - "Embedded Code": "Cod embedded", - "Paste in a video URL": "Lipiți o adresă URL pentru video", - "Drop video": "Trage video", - "Your browser does not support HTML5 video.": "Browserul dvs. nu acceptă videoclipul html5.", - "Upload Video": "Încărcați videoclipul", - - // Tables - "Insert Table": "Inserare tabel", - "Table Header": "Antet tabel", - "Remove Table": "\u0218terge tabel", - "Table Style": "Stil tabel", - "Horizontal Align": "Aliniere orizontal\u0103", - "Row": "Linie", - "Insert row above": "Insereaz\u0103 linie \u00eenainte", - "Insert row below": "Insereaz\u0103 linie dup\u0103", - "Delete row": "\u015eterge linia", - "Column": "Coloan\u0103", - "Insert column before": "Insereaz\u0103 coloan\u0103 \u00eenainte", - "Insert column after": "Insereaz\u0103 coloan\u0103 dup\u0103", - "Delete column": "\u015eterge coloana", - "Cell": "Celula", - "Merge cells": "Une\u015fte celulele", - "Horizontal split": "\u00cemparte orizontal", - "Vertical split": "\u00cemparte vertical", - "Cell Background": "Fundal celul\u0103", - "Vertical Align": "Aliniere vertical\u0103", - "Top": "Sus", - "Middle": "Mijloc", - "Bottom": "Jos", - "Align Top": "Aliniere sus", - "Align Middle": "Aliniere la mijloc", - "Align Bottom": "Aliniere jos", - "Cell Style": "Stil celul\u0103", - - // Files - "Upload File": "\u00cenc\u0103rca\u021bi fi\u0219ier", - "Drop file": "Trage fi\u0219ier", - - // Emoticons - "Emoticons": "Emoticoane", - "Grinning face": "Fa\u021b\u0103 r\u00e2njind", - "Grinning face with smiling eyes": "Fa\u021b\u0103 r\u00e2njind cu ochi z\u00e2mbitori", - "Face with tears of joy": "Fa\u021b\u0103 cu lacrimi de bucurie", - "Smiling face with open mouth": "Fa\u021b\u0103 z\u00e2mbitoare cu gura deschis\u0103", - "Smiling face with open mouth and smiling eyes": "Fa\u021b\u0103 z\u00e2mbitoare cu gura deschis\u0103 \u0219i ochi z\u00e2mbitori", - "Smiling face with open mouth and cold sweat": "Fa\u021b\u0103 z\u00e2mbitoare cu gura deschis\u0103 şi sudoare rece", - "Smiling face with open mouth and tightly-closed eyes": "Fa\u021b\u0103 z\u00e2mbitoare cu gura deschis\u0103 şi ochii ferm \u00eenchi\u0219i", - "Smiling face with halo": "Fa\u021b\u0103 z\u00e2mbitoare cu aur\u0103", - "Smiling face with horns": "Fa\u021b\u0103 z\u00e2mbitoare cu coarne", - "Winking face": "Fa\u021b\u0103 clipind", - "Smiling face with smiling eyes": "Fa\u021b\u0103 z\u00e2mbitoare cu ochi z\u00e2mbitori", - "Face savoring delicious food": "Fa\u021b\u0103 savur\u00e2nd preparate delicioase", - "Relieved face": "Fa\u021b\u0103 u\u0219urat\u0103", - "Smiling face with heart-shaped eyes": "Fa\u021b\u0103 z\u00e2mbitoare cu ochi in forma de inim\u0103", - "Smiling face with sunglasses": "Fa\u021b\u0103 z\u00e2mbitoare cu ochelari de soare", - "Smirking face": "Fa\u021b\u0103 cu sur\u00e2s afectat", - "Neutral face": "Fa\u021b\u0103 neutr\u0103", - "Expressionless face": "Fa\u021b\u0103 f\u0103r\u0103 expresie", - "Unamused face": "Fa\u021b\u0103 neamuzat\u0103", - "Face with cold sweat": "Fa\u021b\u0103 cu sudoare rece", - "Pensive face": "Fa\u021b\u0103 medit\u00e2nd", - "Confused face": "Fa\u021b\u0103 confuz\u0103", - "Confounded face": "Fa\u021b\u0103 z\u0103p\u0103cit\u0103", - "Kissing face": "Fa\u021b\u0103 s\u0103rut\u00e2nd", - "Face throwing a kiss": "Fa\u021b\u0103 arunc\u00e2nd un s\u0103rut", - "Kissing face with smiling eyes": "Fa\u021b\u0103 s\u0103rut\u00e2nd cu ochi z\u00e2mbitori", - "Kissing face with closed eyes": "Fa\u021b\u0103 s\u0103rut\u00e2nd cu ochii \u00eenchi\u0219i", - "Face with stuck out tongue": "Fa\u021b\u0103 cu limba afar\u0103", - "Face with stuck out tongue and winking eye": "Fa\u021b\u0103 cu limba scoas\u0103 clipind", - "Face with stuck out tongue and tightly-closed eyes": "Fa\u021b\u0103 cu limba scoas\u0103 \u0219i ochii ferm \u00eenchi\u0219i", - "Disappointed face": "Fa\u021b\u0103 dezam\u0103git\u0103", - "Worried face": "Fa\u021b\u0103 \u00eengrijorat\u0103", - "Angry face": "Fa\u021b\u0103 nervoas\u0103", - "Pouting face": "Fa\u021b\u0103 fierb\u00e2nd", - "Crying face": "Fa\u021b\u0103 pl\u00e2ng\u00e2nd", - "Persevering face": "Fa\u021b\u0103 perseverent\u0103", - "Face with look of triumph": "Fa\u021b\u0103 triumf\u0103toare", - "Disappointed but relieved face": "Fa\u021b\u0103 dezam\u0103git\u0103 dar u\u0219urat\u0103", - "Frowning face with open mouth": "Fa\u021b\u0103 \u00eencruntat\u0103 cu gura deschis\u0103", - "Anguished face": "Fa\u021b\u0103 \u00eendurerat\u0103", - "Fearful face": "Fa\u021b\u0103 tem\u0103toare", - "Weary face": "Fa\u021b\u0103 \u00eengrijorat\u0103", - "Sleepy face": "Fa\u021b\u0103 adormit\u0103", - "Tired face": "Fa\u021b\u0103 obosit\u0103", - "Grimacing face": "Fa\u021b\u0103 cu grimas\u0103", - "Loudly crying face": "Fa\u021b\u0103 pl\u00e2ng\u00e2nd zgomotos", - "Face with open mouth": "Fa\u021b\u0103 cu gura deschis\u0103", - "Hushed face": "Fa\u021b\u0103 discret\u0103", - "Face with open mouth and cold sweat": "Fa\u021b\u0103 cu gura deschis\u0103 si sudoare rece", - "Face screaming in fear": "Fa\u021b\u0103 \u021bip\u00e2nd de fric\u0103", - "Astonished face": "Fa\u021b\u0103 uimit\u0103", - "Flushed face": "Fa\u021b\u0103 sp\u0103lat\u0103", - "Sleeping face": "Fa\u021b\u0103 adormit\u0103", - "Dizzy face": "Fa\u021b\u0103 ame\u021bit\u0103", - "Face without mouth": "Fa\u021b\u0103 f\u0103r\u0103 gur\u0103", - "Face with medical mask": "Fa\u021b\u0103 cu masc\u0103 medical\u0103", - - // Line breaker - "Break": "Desparte", - - // Horizontal line - "Insert Horizontal Line": "Inserare linie orizontal\u0103", - - // Math - "Subscript": "Indice", - "Superscript": "Exponent", - - // Full screen - "Fullscreen": "Ecran complet", - - // Clear formatting - "Clear Formatting": "Elimina\u021bi formatarea", - - // Undo, redo - "Undo": "Reexecut\u0103", - "Redo": "Dezexecut\u0103", - - // Select all - "Select All": "Selecteaz\u0103 tot", - - // Code view - "Code View": "Vizualizare cod", - - // Quote - "Quote": "Citat", - "Increase": "Indenteaz\u0103", - "Decrease": "De-indenteaz\u0103", - - // Quick Insert - "Quick Insert": "Inserare rapid\u0103", - - // Spcial Characters - "Special Characters": "Caracterele speciale", - "Latin": "Latină", - "Greek": "Greacă", - "Cyrillic": "Chirilic", - "Punctuation": "Punctuaţie", - "Currency": "Valută", - "Arrows": "Săgeți", - "Math": "Matematică", - "Misc": "Diverse", - - // Print. - "Print": "Imprimare", - - // Spell Checker. - "Spell Checker": "Ortografie", - - // Help - "Help": "Ajutor", - "Shortcuts": "Comenzi rapide", - "Inline Editor": "Editor inline", - "Show the editor": "Arătați editorul", - "Common actions": "Acțiuni comune", - "Copy": "Copie", - "Cut": "A taia", - "Paste": "Lipire", - "Basic Formatting": "Formatul de bază", - "Increase quote level": "Creșteți nivelul cotației", - "Decrease quote level": "Micșorați nivelul cotației", - "Image / Video": "Imagine / video", - "Resize larger": "Redimensionați mai mare", - "Resize smaller": "Redimensionați mai puțin", - "Table": "Tabel", - "Select table cell": "Selectați celula tabelă", - "Extend selection one cell": "Extindeți selecția la o celulă", - "Extend selection one row": "Extindeți selecția cu un rând", - "Navigation": "Navigare", - "Focus popup / toolbar": "Focus popup / bara de instrumente", - "Return focus to previous position": "Reveniți la poziția anterioară", - - // Embed.ly - "Embed URL": "Încorporați url", - "Paste in a URL to embed": "Lipiți un URL pentru a-l încorpora", - - // Word Paste. - "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Conținutul lipit vine dintr-un document word Microsoft. Doriți să păstrați formatul sau să îl curățați?", - "Keep": "A pastra", - "Clean": "Curat", - "Word Paste Detected": "A fost detectată lipire din Word" - }, - direction: "ltr" -}; - -})); diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/languages/ru.js b/Mobile.Search.Web/Scripts/froala-editor/js/languages/ru.js deleted file mode 100644 index 44694c7..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/languages/ru.js +++ /dev/null @@ -1,318 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = function( root, jQuery ) { - if ( jQuery === undefined ) { - // require('jQuery') returns a factory that requires window to - // build a jQuery instance, we normalize how we use modules - // that require this pattern but the window provided is a noop - // if it's defined (how jquery works) - if ( typeof window !== 'undefined' ) { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - return factory(jQuery); - }; - } else { - // Browser globals - factory(window.jQuery); - } -}(function ($) { -/** - * Russian - */ - -$.FE.LANGUAGE['ru'] = { - translation: { - // Place holder - "Type something": "\u041d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u0447\u0442\u043e\u002d\u043d\u0438\u0431\u0443\u0434\u044c", - - // Basic formatting - "Bold": "\u0416\u0438\u0440\u043d\u044b\u0439", - "Italic": "\u041a\u0443\u0440\u0441\u0438\u0432", - "Underline": "\u041f\u043e\u0434\u0447\u0435\u0440\u043a\u043d\u0443\u0442\u044b\u0439", - "Strikethrough": "\u0417\u0430\u0447\u0435\u0440\u043a\u043d\u0443\u0442\u044b\u0439", - - // Main buttons - "Insert": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c", - "Delete": "\u0423\u0434\u0430\u043b\u0438\u0442\u044c", - "Cancel": "\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c", - "OK": "\u041e\u043a", - "Back": "\u043d\u0430\u0437\u0430\u0434", - "Remove": "\u0423\u0434\u0430\u043b\u0438\u0442\u044c", - "More": "\u0411\u043e\u043b\u044c\u0448\u0435", - "Update": "\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c", - "Style": "\u0421\u0442\u0438\u043b\u044c", - - // Font - "Font Family": "\u0428\u0440\u0438\u0444\u0442", - "Font Size": "\u0420\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430", - - // Colors - "Colors": "\u0426\u0432\u0435\u0442\u0430", - "Background": "\u0424\u043e\u043d", - "Text": "\u0422\u0435\u043a\u0441\u0442", - "HEX Color": "Шестигранный цвет", - - // Paragraphs - "Paragraph Format": "\u0424\u043e\u0440\u043c\u0430\u0442 \u0430\u0431\u0437\u0430\u0446\u0430", - "Normal": "\u041d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439", - "Code": "\u041a\u043e\u0434", - "Heading 1": "\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 1", - "Heading 2": "\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 2", - "Heading 3": "\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 3", - "Heading 4": "\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 4", - - // Style - "Paragraph Style": "\u0421\u0442\u0438\u043b\u044c \u0430\u0431\u0437\u0430\u0446\u0430", - "Inline Style": "\u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0441\u0442\u0438\u043b\u044c", - - // Alignment - "Align": "\u0412\u044b\u0440\u043e\u0432\u043d\u044f\u0442\u044c \u043f\u043e", - "Align Left": "\u041f\u043e \u043b\u0435\u0432\u043e\u043c\u0443 \u043a\u0440\u0430\u044e", - "Align Center": "\u041f\u043e \u0446\u0435\u043d\u0442\u0440\u0443", - "Align Right": "\u041f\u043e \u043f\u0440\u0430\u0432\u043e\u043c\u0443 \u043a\u0440\u0430\u044e", - "Align Justify": "\u041f\u043e \u0448\u0438\u0440\u0438\u043d\u0435", - "None": "\u041d\u0438\u043a\u0430\u043a", - - // Lists - "Ordered List": "\u041d\u0443\u043c\u0435\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a", - "Unordered List": "\u041c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a", - - // Indent - "Decrease Indent": "\u0423\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c \u043e\u0442\u0441\u0442\u0443\u043f", - "Increase Indent": "\u0423\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c \u043e\u0442\u0441\u0442\u0443\u043f", - - // Links - "Insert Link": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443", - "Open in new tab": "\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0432 \u043d\u043e\u0432\u043e\u0439 \u0432\u043a\u043b\u0430\u0434\u043a\u0435", - "Open Link": "\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435", - "Edit Link": "\u041e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443", - "Unlink": "\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443", - "Choose Link": "\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0441\u0441\u044b\u043b\u043a\u0443", - - // Images - "Insert Image": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435", - "Upload Image": "\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435", - "By URL": "\u041f\u043e \u0441\u0441\u044b\u043b\u043a\u0435", - "Browse": "\u0417\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f", - "Drop image": "\u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u0435 \u0441\u044e\u0434\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435", - "or click": "\u0438\u043b\u0438 \u043d\u0430\u0436\u043c\u0438\u0442\u0435", - "Manage Images": "\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u043c\u0438", - "Loading": "\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430", - "Deleting": "\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435", - "Tags": "\u041a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0441\u043b\u043e\u0432\u0430", - "Are you sure? Image will be deleted.": "\u0412\u044b \u0443\u0432\u0435\u0440\u0435\u043d\u044b? \u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0443\u0434\u0430\u043b\u0435\u043d\u043e.", - "Replace": "\u0417\u0430\u043c\u0435\u043d\u0438\u0442\u044c", - "Uploading": "\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430", - "Loading image": "\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f", - "Display": "\u041f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435", - "Inline": "\u041e\u0431\u0442\u0435\u043a\u0430\u043d\u0438\u0435 \u0442\u0435\u043a\u0441\u0442\u043e\u043c", - "Break Text": "\u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0435 \u0432 \u0442\u0435\u043a\u0441\u0442", - "Alternate Text": "\u0410\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442", - "Change Size": "\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440", - "Width": "\u0428\u0438\u0440\u0438\u043d\u0430", - "Height": "\u0412\u044b\u0441\u043e\u0442\u0430", - "Something went wrong. Please try again.": "\u0427\u0442\u043e\u002d\u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a\u002e \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430\u002c \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0435\u0449\u0435 \u0440\u0430\u0437\u002e", - "Image Caption": "Подпись изображения", - "Advanced Edit": "Расширенное редактирование", - - // Video - "Insert Video": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432\u0438\u0434\u0435\u043e", - "Embedded Code": "\u0048\u0054\u004d\u004c\u002d\u043a\u043e\u0434 \u0434\u043b\u044f \u0432\u0441\u0442\u0430\u0432\u043a\u0438", - "Paste in a video URL": "Вставить URL-адрес видео", - "Drop video": "Перетащите видефайл", - "Your browser does not support HTML5 video.": "Ваш браузер не поддерживает видео html5.", - "Upload Video": "Загрузить видео", - - // Tables - "Insert Table": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0443", - "Table Header": "\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0442\u0430\u0431\u043b\u0438\u0446\u044b", - "Remove Table": "\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0443", - "Table Style": "\u0421\u0442\u0438\u043b\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u044b", - "Horizontal Align": "\u0413\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435", - "Row": "\u0421\u0442\u0440\u043e\u043a\u0430", - "Insert row above": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443 \u0441\u0432\u0435\u0440\u0445\u0443", - "Insert row below": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443 \u0441\u043d\u0438\u0437\u0443", - "Delete row": "\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443", - "Column": "\u0421\u0442\u043e\u043b\u0431\u0435\u0446", - "Insert column before": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0435\u0446 \u0441\u043b\u0435\u0432\u0430", - "Insert column after": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0435\u0446 \u0441\u043f\u0440\u0430\u0432\u0430", - "Delete column": "\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0435\u0446", - "Cell": "\u042f\u0447\u0435\u0439\u043a\u0430", - "Merge cells": "\u041e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u044f\u0447\u0435\u0439\u043a\u0438", - "Horizontal split": "\u0420\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e", - "Vertical split": "\u0420\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e", - "Cell Background": "\u0424\u043e\u043d \u044f\u0447\u0435\u0439\u043a\u0438", - "Vertical Align": "\u0412\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0435 \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435", - "Top": "\u041f\u043e \u0432\u0435\u0440\u0445\u043d\u0435\u043c\u0443 \u043a\u0440\u0430\u044e", - "Middle": "\u041f\u043e\u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0435", - "Bottom": "\u041f\u043e \u043d\u0438\u0436\u043d\u0435\u043c\u0443 \u043a\u0440\u0430\u044e", - "Align Top": "\u0412\u044b\u0440\u043e\u0432\u043d\u044f\u0442\u044c \u043f\u043e \u0432\u0435\u0440\u0445\u043d\u0435\u043c\u0443 \u043a\u0440\u0430\u044e", - "Align Middle": "\u0412\u044b\u0440\u043e\u0432\u043d\u044f\u0442\u044c \u043f\u043e \u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0435", - "Align Bottom": "\u0412\u044b\u0440\u043e\u0432\u043d\u044f\u0442\u044c \u043f\u043e \u043d\u0438\u0436\u043d\u0435\u043c\u0443 \u043a\u0440\u0430\u044e", - "Cell Style": "\u0421\u0442\u0438\u043b\u044c \u044f\u0447\u0435\u0439\u043a\u0438", - - // Files - "Upload File": "\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0444\u0430\u0439\u043b", - "Drop file": "\u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u0435 \u0441\u044e\u0434\u0430 \u0444\u0430\u0439\u043b", - - // Emoticons - "Emoticons": "\u0421\u043c\u0430\u0439\u043b\u0438\u043a\u0438", - "Grinning face": "\u0423\u0445\u043c\u044b\u043b\u043a\u0430 \u043d\u0430 \u043b\u0438\u0446\u0435", - "Grinning face with smiling eyes": "\u0423\u0441\u043c\u0435\u0445\u043d\u0443\u0432\u0448\u0435\u0435\u0441\u044f \u043b\u0438\u0446\u043e \u0441 \u0443\u043b\u044b\u0431\u0430\u044e\u0449\u0438\u043c\u0438\u0441\u044f \u0433\u043b\u0430\u0437\u0430\u043c\u0438", - "Face with tears of joy": "\u041b\u0438\u0446\u043e \u0441\u043e \u0441\u043b\u0435\u0437\u0430\u043c\u0438 \u0440\u0430\u0434\u043e\u0441\u0442\u0438", - "Smiling face with open mouth": "\u0423\u043b\u044b\u0431\u0430\u044e\u0449\u0435\u0435\u0441\u044f \u043b\u0438\u0446\u043e \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0440\u0442\u043e\u043c", - "Smiling face with open mouth and smiling eyes": "\u0423\u043b\u044b\u0431\u0430\u044f\u0441\u044c \u043b\u0438\u0446\u043e \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0440\u0442\u043e\u043c \u0438 \u0443\u043b\u044b\u0431\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u0433\u043b\u0430\u0437\u0430", - "Smiling face with open mouth and cold sweat": "\u0423\u043b\u044b\u0431\u0430\u044f\u0441\u044c \u043b\u0438\u0446\u043e \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0440\u0442\u043e\u043c \u0438 \u0445\u043e\u043b\u043e\u0434\u043d\u044b\u0439 \u043f\u043e\u0442", - "Smiling face with open mouth and tightly-closed eyes": "\u0423\u043b\u044b\u0431\u0430\u044f\u0441\u044c \u043b\u0438\u0446\u043e \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0440\u0442\u043e\u043c \u0438 \u043f\u043b\u043e\u0442\u043d\u043e \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u043c\u0438 \u0433\u043b\u0430\u0437\u0430\u043c\u0438", - "Smiling face with halo": "\u0423\u043b\u044b\u0431\u0430\u044f\u0441\u044c \u043b\u0438\u0446\u043e \u0433\u0430\u043b\u043e", - "Smiling face with horns": "\u0423\u043b\u044b\u0431\u0430\u044f\u0441\u044c \u043b\u0438\u0446\u043e \u0441 \u0440\u043e\u0433\u0430\u043c\u0438", - "Winking face": "\u043f\u043e\u0434\u043c\u0438\u0433\u0438\u0432\u0430\u044f \u043b\u0438\u0446\u043e", - "Smiling face with smiling eyes": "\u0423\u043b\u044b\u0431\u0430\u044f\u0441\u044c \u043b\u0438\u0446\u043e \u0441 \u0443\u043b\u044b\u0431\u0430\u044e\u0449\u0438\u043c\u0438\u0441\u044f \u0433\u043b\u0430\u0437\u0430\u043c\u0438", - "Face savoring delicious food": "\u041b\u0438\u0446\u043e \u0441\u043c\u0430\u043a\u0443\u044e\u0449\u0435\u0435 \u0432\u043a\u0443\u0441\u043d\u0443\u044e \u0435\u0434\u0443", - "Relieved face": "\u041e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0435\u043d\u044b \u043b\u0438\u0446\u043e", - "Smiling face with heart-shaped eyes": "\u0423\u043b\u044b\u0431\u0430\u044f\u0441\u044c \u043b\u0438\u0446\u043e \u0432 \u0444\u043e\u0440\u043c\u0435 \u0441\u0435\u0440\u0434\u0446\u0430 \u0433\u043b\u0430\u0437\u0430\u043c\u0438", - "Smiling face with sunglasses": "\u0423\u043b\u044b\u0431\u0430\u044f\u0441\u044c \u043b\u0438\u0446\u043e \u0441 \u043e\u0447\u043a\u0430\u043c\u0438", - "Smirking face": "\u0423\u0441\u043c\u0435\u0445\u043d\u0443\u0432\u0448\u0438\u0441\u044c \u043b\u0438\u0446\u043e", - "Neutral face": "\u041e\u0431\u044b\u0447\u043d\u044b\u0439 \u043b\u0438\u0446\u043e", - "Expressionless face": "\u041d\u0435\u0432\u044b\u0440\u0430\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043b\u0438\u0446\u043e", - "Unamused face": "\u041d\u0435 \u0441\u043c\u0435\u0448\u043d\u043e \u043b\u0438\u0446\u043e", - "Face with cold sweat": "\u041b\u0438\u0446\u043e \u0432 \u0445\u043e\u043b\u043e\u0434\u043d\u043e\u043c \u043f\u043e\u0442\u0443", - "Pensive face": "\u0417\u0430\u0434\u0443\u043c\u0447\u0438\u0432\u044b\u0439 \u043b\u0438\u0446\u043e", - "Confused face": "\u0421\u043c\u0443\u0449\u0435\u043d\u043d\u043e\u0435 \u043b\u0438\u0446\u043e", - "Confounded face": "\u041f\u043e\u0441\u0442\u044b\u0434\u043d\u043e\u0435 \u043b\u0438\u0446\u043e", - "Kissing face": "\u041f\u043e\u0446\u0435\u043b\u0443\u0438 \u043b\u0438\u0446\u043e", - "Face throwing a kiss": "\u041b\u0438\u0446\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u0435 \u043f\u043e\u0446\u0435\u043b\u0443\u0439", - "Kissing face with smiling eyes": "\u041f\u043e\u0446\u0435\u043b\u0443\u0438 \u043b\u0438\u0446\u043e \u0441 \u0443\u043b\u044b\u0431\u0430\u044e\u0449\u0438\u043c\u0438\u0441\u044f \u0433\u043b\u0430\u0437\u0430\u043c\u0438", - "Kissing face with closed eyes": "\u041f\u043e\u0446\u0435\u043b\u0443\u0438 \u043b\u0438\u0446\u043e \u0441 \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u043c\u0438 \u0433\u043b\u0430\u0437\u0430\u043c\u0438", - "Face with stuck out tongue": "\u041b\u0438\u0446\u043e \u0441 \u0442\u043e\u0440\u0447\u0430\u0449\u0438\u043c \u044f\u0437\u044b\u043a\u043e\u043c", - "Face with stuck out tongue and winking eye": "\u041b\u0438\u0446\u043e \u0441 \u0442\u043e\u0440\u0447\u0430\u0449\u0438\u043c \u044f\u0437\u044b\u043a\u043e\u043c \u0438 \u043f\u043e\u0434\u043c\u0438\u0433\u0438\u0432\u0430\u044e\u0449\u0438\u043c \u0433\u043b\u0430\u0437\u043e\u043c", - "Face with stuck out tongue and tightly-closed eyes": "\u041b\u0438\u0446\u043e \u0441 \u0442\u043e\u0440\u0447\u0430\u0449\u0438\u043c \u044f\u0437\u044b\u043a\u043e\u043c \u0438 \u043f\u043b\u043e\u0442\u043d\u043e \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u043c\u0438 \u0433\u043b\u0430\u0437\u0430\u043c\u0438", - "Disappointed face": "\u0420\u0430\u0437\u043e\u0447\u0430\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u043b\u0438\u0446\u043e", - "Worried face": "\u041e\u0431\u0435\u0441\u043f\u043e\u043a\u043e\u0435\u043d\u043d\u044b\u0439 \u043b\u0438\u0446\u043e", - "Angry face": "\u0417\u043b\u043e\u0439 \u043b\u0438\u0446\u043e", - "Pouting face": "\u041f\u0443\u0445\u043b\u044b\u0435 \u043b\u0438\u0446\u043e", - "Crying face": "\u041f\u043b\u0430\u0447\u0443\u0449\u0435\u0435 \u043b\u0438\u0446\u043e", - "Persevering face": "\u041d\u0430\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u0430\u044f \u043b\u0438\u0446\u043e", - "Face with look of triumph": "\u041b\u0438\u0446\u043e \u0441 \u0432\u0438\u0434\u043e\u043c \u0442\u0440\u0438\u0443\u043c\u0444\u0430", - "Disappointed but relieved face": "\u0420\u0430\u0437\u043e\u0447\u0430\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435\u002c \u043d\u043e \u0441\u043f\u043e\u043a\u043e\u0439\u043d\u043e\u0435 \u043b\u0438\u0446\u043e", - "Frowning face with open mouth": "\u041d\u0430\u0445\u043c\u0443\u0440\u0435\u043d\u043d\u043e\u0435 \u043b\u0438\u0446\u043e \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0440\u0442\u043e\u043c", - "Anguished face": "\u043c\u0443\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043b\u0438\u0446\u043e", - "Fearful face": "\u041d\u0430\u043f\u0443\u0433\u0430\u043d\u043d\u043e\u0435 \u043b\u0438\u0446\u043e", - "Weary face": "\u0423\u0441\u0442\u0430\u043b\u044b\u0439 \u043b\u0438\u0446\u043e", - "Sleepy face": "\u0441\u043e\u043d\u043d\u043e\u0435 \u043b\u0438\u0446\u043e", - "Tired face": "\u0423\u0441\u0442\u0430\u043b\u0438 \u043b\u0438\u0446\u043e", - "Grimacing face": "\u0413\u0440\u0438\u043c\u0430\u0441\u0430 \u043d\u0430 \u043b\u0438\u0446\u0435", - "Loudly crying face": "\u0413\u0440\u043e\u043c\u043a\u043e \u043f\u043b\u0430\u0447\u0430 \u043b\u0438\u0446\u043e", - "Face with open mouth": "\u041b\u0438\u0446\u043e \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0440\u0442\u043e\u043c", - "Hushed face": "\u0417\u0430\u0442\u0438\u0445\u0448\u0438\u0439 \u043b\u0438\u0446\u043e", - "Face with open mouth and cold sweat": "\u041b\u0438\u0446\u043e \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0440\u0442\u043e\u043c \u0432 \u0445\u043e\u043b\u043e\u0434\u043d\u043e\u043c \u043f\u043e\u0442\u0443", - "Face screaming in fear": "\u041b\u0438\u0446\u043e \u043a\u0440\u0438\u0447\u0430\u0449\u0435\u0435 \u043e\u0442 \u0441\u0442\u0440\u0430\u0445\u0430", - "Astonished face": "\u0423\u0434\u0438\u0432\u043b\u0435\u043d\u043d\u043e\u0435 \u043b\u0438\u0446\u043e", - "Flushed face": "\u041f\u043e\u043a\u0440\u0430\u0441\u043d\u0435\u0432\u0448\u0435\u0435 \u043b\u0438\u0446\u043e", - "Sleeping face": "\u0421\u043f\u044f\u0449\u0430\u044f \u043b\u0438\u0446\u043e", - "Dizzy face": "\u0414\u0438\u0437\u0437\u0438 \u043b\u0438\u0446\u043e", - "Face without mouth": "\u041b\u0438\u0446\u043e \u0431\u0435\u0437 \u0440\u0442\u0430", - "Face with medical mask": "\u041b\u0438\u0446\u043e \u0441 \u043c\u0435\u0434\u0438\u0446\u0438\u043d\u0441\u043a\u043e\u0439 \u043c\u0430\u0441\u043a\u043e\u0439", - - // Line breaker - "Break": "\u041d\u043e\u0432\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430", - - // Math - "Subscript": "\u041d\u0438\u0436\u043d\u0438\u0439 \u0438\u043d\u0434\u0435\u043a\u0441", - "Superscript": "\u0412\u0435\u0440\u0445\u043d\u0438\u0439 \u0438\u043d\u0434\u0435\u043a\u0441", - - // Full screen - "Fullscreen": "\u041d\u0430 \u0432\u0435\u0441\u044c \u044d\u043a\u0440\u0430\u043d", - - // Horizontal line - "Insert Horizontal Line": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u0443\u044e \u043b\u0438\u043d\u0438\u044e", - - // Clear formatting - "Clear Formatting": "\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435", - - // Undo, redo - "Undo": "\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c", - "Redo": "\u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c", - - // Select all - "Select All": "\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0432\u0441\u0451", - - // Code view - "Code View": "\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u0048\u0054\u004d\u004c\u002d\u043a\u043e\u0434\u0430", - - // Quote - "Quote": "\u0426\u0438\u0442\u0430\u0442\u0430", - "Increase": "\u0423\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435", - "Decrease": "\u0421\u043d\u0438\u0436\u0435\u043d\u0438\u0435", - - // Quick Insert - "Quick Insert": "\u0411\u044b\u0441\u0442\u0440\u0430\u044f \u0432\u0441\u0442\u0430\u0432\u043a\u0430", - - // Spcial Characters - "Special Characters": "Специальные символы", - "Latin": "Латинский", - "Greek": "Греческий", - "Cyrillic": "Кириллица", - "Punctuation": "Пунктуация", - "Currency": "Валюта", - "Arrows": "Стрелки", - "Math": "Математический", - "Misc": "Разное", - - // Print. - "Print": "Распечатать", - - // Spell Checker. - "Spell Checker": "Программа проверки орфографии", - - // Help - "Help": "Помогите", - "Shortcuts": "Сочетания", - "Inline Editor": "Встроенный редактор", - "Show the editor": "Показать редактора", - "Common actions": "Общие действия", - "Copy": "Копия", - "Cut": "Порез", - "Paste": "Вставить", - "Basic Formatting": "Базовое форматирование", - "Increase quote level": "Увеличить уровень котировки", - "Decrease quote level": "Уменьшить уровень кавычек", - "Image / Video": "Изображение / видео", - "Resize larger": "Изменить размер", - "Resize smaller": "Уменьшить размер", - "Table": "Таблица", - "Select table cell": "Выбрать ячейку таблицы", - "Extend selection one cell": "Продлить выделение одной ячейки", - "Extend selection one row": "Расширить выделение на одну строку", - "Navigation": "Навигация", - "Focus popup / toolbar": "Фокусное всплывающее окно / панель инструментов", - "Return focus to previous position": "Вернуть фокус на предыдущую позицию", - - // Embed.ly - "Embed URL": "Вставить URL-адрес", - "Paste in a URL to embed": "Вставить URL-адрес для встраивания", - - // Word Paste. - "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Вложенный контент поступает из документа Microsoft Word. вы хотите сохранить формат или очистить его?", - "Keep": "Держать", - "Clean": "Чистый", - "Word Paste Detected": "Обнаружена паста слов" - }, - direction: "ltr" -}; - -})); diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/languages/sk.js b/Mobile.Search.Web/Scripts/froala-editor/js/languages/sk.js deleted file mode 100644 index aa40776..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/languages/sk.js +++ /dev/null @@ -1,318 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = function( root, jQuery ) { - if ( jQuery === undefined ) { - // require('jQuery') returns a factory that requires window to - // build a jQuery instance, we normalize how we use modules - // that require this pattern but the window provided is a noop - // if it's defined (how jquery works) - if ( typeof window !== 'undefined' ) { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - return factory(jQuery); - }; - } else { - // Browser globals - factory(window.jQuery); - } -}(function ($) { -/** - * Slovak - */ - -$.FE.LANGUAGE['sk'] = { - translation: { - - // Place holder - "Type something": "Nap\u00ed\u0161te hoci\u010do", - - // Basic formatting - "Bold": "Tu\u010dn\u00e9", - "Italic": "Kurz\u00edva", - "Underline": "Pod\u010diarknut\u00e9", - "Strikethrough": "Pre\u0161krtnut\u00e9", - - // Main buttons - "Insert": "Vlo\u017ei\u0165", - "Delete": "Vymaza\u0165", - "Cancel": "Zru\u0161i\u0165", - "OK": "OK", - "Back": "Sp\u00e4\u0165", - "Remove": "Odstr\u00e1ni\u0165", - "More": "Viac", - "Update": "Aktualizova\u0165", - "Style": "\u0165t\u00fdl", - - // Font - "Font Family": "Typ p\u00edsma", - "Font Size": "Ve\u013ekos\u0165 p\u00edsma", - - // Colors - "Colors": "Farby", - "Background": "Pozadie", - "Text": "Text", - "HEX Color": "Hex Farby", - - // Paragraphs - "Paragraph Format": "Form\u00e1t odstavca", - "Normal": "Norm\u00e1lne", - "Code": "K\u00f3d", - "Heading 1": "Nadpis 1", - "Heading 2": "Nadpis 2", - "Heading 3": "Nadpis 3", - "Heading 4": "Nadpis 4", - - // Style - "Paragraph Style": "\u0165t\u00fdl odstavca", - "Inline Style": "Inline \u0161t\u00fdl", - - // Alignment - "Align": "Zarovnanie", - "Align Left": "Zarovna\u0165 v\u013eavo", - "Align Center": "Zarovna\u0165 na stred", - "Align Right": "Zarovna\u0165 vpravo", - "Align Justify": "Zarovna\u0165 do bloku", - "None": "\u017diadne", - - // Lists - "Ordered List": "\u010c\u00edslovan\u00fd zoznam", - "Unordered List": "Ne\u010d\u00edslovan\u00fd zoznam", - - // Indent - "Decrease Indent": "Zmen\u0161i\u0165 odsadenie", - "Increase Indent": "Zv\u00e4\u010d\u0161i\u0165 odsadenie", - - // Links - "Insert Link": "Vlo\u017ei\u0165 odkaz", - "Open in new tab": "Otvori\u0165 v novom okne", - "Open Link": "Otvori\u0165 odkaz", - "Edit Link": "Upravi\u0165 odkaz", - "Unlink": "Odstr\u00e1ni\u0165 odkaz", - "Choose Link": "Vyberte odkaz", - - // Images - "Insert Image": "Vlo\u017ei\u0165 obr\u00e1zok", - "Upload Image": "Nahra\u0165 obr\u00e1zok", - "By URL": "Z URL adresy", - "Browse": "Vybra\u0165", - "Drop image": "Pretiahnite obr\u00e1zok do tohto miesta", - "or click": "alebo kliknite a vlo\u017ete", - "Manage Images": "Spr\u00e1va obr\u00e1zkov", - "Loading": "Nahr\u00e1vam", - "Deleting": "Odstra\u0148ujem", - "Tags": "Zna\u010dky", - "Are you sure? Image will be deleted.": "Ste si ist\u00fd? Obr\u00e1zok bude odstranen\u00fd.", - "Replace": "Vymeni\u0165", - "Uploading": "Nahr\u00e1vam", - "Loading image": "Obr\u00e1zok se na\u010d\u00edtav\u00e1", - "Display": "Zobrazi\u0165", - "Inline": "Inline", - "Break Text": "Zalomenie textu", - "Alternate Text": "Alternat\u00edvny text", - "Change Size": "Zmeni\u0165 ve\u013ekos\u0165", - "Width": "\u0165\u00edrka", - "Height": "V\u00fd\u0161ka", - "Something went wrong. Please try again.": "Nie\u010do sa pokazilo. Pros\u00edm, sk\u00faste to znova.", - "Image Caption": "Titulok obrázka", - "Advanced Edit": "Pokročilá úprava", - - // Video - "Insert Video": "Vlo\u017ei\u0165 video", - "Embedded Code": "Vlo\u017een\u00fd k\u00f3d", - "Paste in a video URL": "Vložte do adresy URL videa", - "Drop video": "Drop video", - "Your browser does not support HTML5 video.": "Váš prehliadač nepodporuje video html5.", - "Upload Video": "Nahrať video", - - // Tables - "Insert Table": "Vlo\u017ei\u0165 tabu\u013eku", - "Table Header": "Hlavi\u010dka tabu\u013eky", - "Remove Table": "Odstrani\u0165 tabu\u013eku", - "Table Style": "\u0165t\u00fdl tabu\u013eky", - "Horizontal Align": "Horizont\u00e1lne zarovnanie", - "Row": "Riadok", - "Insert row above": "Vlo\u017ei\u0165 riadok nad", - "Insert row below": "Vlo\u017ei\u0165 riadok pod", - "Delete row": "Odstrani\u0165 riadok", - "Column": "St\u013apec", - "Insert column before": "Vlo\u017ei\u0165 st\u013apec v\u013eavo", - "Insert column after": "Vlo\u017ei\u0165 st\u013apec vpravo", - "Delete column": "Odstrani\u0165 st\u013apec", - "Cell": "Bunka", - "Merge cells": "Zl\u00fa\u010di\u0165 bunky", - "Horizontal split": "Horizont\u00e1lne rozdelenie", - "Vertical split": "Vertik\u00e1lne rozdelenie", - "Cell Background": "Bunka pozadia", - "Vertical Align": "Vertik\u00e1lne zarovn\u00e1n\u00ed", - "Top": "Vrch", - "Middle": "Stred", - "Bottom": "Spodok", - "Align Top": "Zarovnat na vrch", - "Align Middle": "Zarovnat na stred", - "Align Bottom": "Zarovnat na spodok", - "Cell Style": "\u0165t\u00fdl bunky", - - // Files - "Upload File": "Nahra\u0165 s\u00fabor", - "Drop file": "Vlo\u017ete s\u00fabor sem", - - // Emoticons - "Emoticons": "Emotikony", - "Grinning face": "Tv\u00e1r s \u00fasmevom", - "Grinning face with smiling eyes": "Tv\u00e1r s \u00fasmevom a o\u010dami", - "Face with tears of joy": "Tv\u00e1r so slzamy radosti", - "Smiling face with open mouth": "Usmievaj\u00faci sa tv\u00e1r s otvoren\u00fdmi \u00fastami", - "Smiling face with open mouth and smiling eyes": "Usmievaj\u00faci sa tv\u00e1r s otvoren\u00fdmi \u00fastami a o\u010dami", - "Smiling face with open mouth and cold sweat": "Usmievaj\u00faci sa tv\u00e1r s otvoren\u00fdmi \u00fastami a studen\u00fd pot", - "Smiling face with open mouth and tightly-closed eyes": "Usmievaj\u00faci sa tv\u00e1r s otvoren\u00fdmi \u00fastami a zavret\u00fdmi o\u010dami", - "Smiling face with halo": "Usmievaj\u00faci sa tv\u00e1r s halo", - "Smiling face with horns": "Usmievaj\u00faci sa tv\u00e1r s rohmi", - "Winking face": "Mrkaj\u00faca tv\u00e1r", - "Smiling face with smiling eyes": "Usmievaj\u00faci sa tv\u00e1r a o\u010dami", - "Face savoring delicious food": "Tv\u00e1r vychutn\u00e1vaj\u00faca si chutn\u00e9 jedlo", - "Relieved face": "Spokojn\u00e1 tv\u00e1r", - "Smiling face with heart-shaped eyes": "Usmievaj\u00faci sa tv\u00e1r s o\u010dami v tvare srdca", - "Smiling face with sunglasses": "Usmievaj\u00faci sa tv\u00e1r so slne\u010dn\u00fdmi okuliarmi", - "Smirking face": "U\u0161k\u0155\u0148aj\u00faca sa tv\u00e1r", - "Neutral face": "Neutr\u00e1lna tva\u0155", - "Expressionless face": "Bezv\u00fdrazn\u00e1 tv\u00e1r", - "Unamused face": "Nepobaven\u00e1 tv\u00e1r", - "Face with cold sweat": "Tv\u00e1r so studen\u00fdm potom", - "Pensive face": "Zamyslen\u00e1 tv\u00e1r", - "Confused face": "Zmeten\u00e1 tv\u00e1r", - "Confounded face": "Nahnevan\u00e1 tv\u00e1r", - "Kissing face": "Bozkavaj\u00faca tv\u00e1r", - "Face throwing a kiss": "Tv\u00e1r hadzaj\u00faca pusu", - "Kissing face with smiling eyes": "Bozk\u00e1vaj\u00faca tv\u00e1r s o\u010dami a \u00fasmevom", - "Kissing face with closed eyes": "Bozk\u00e1vaj\u00faca tv\u00e1r so zavret\u00fdmi o\u010dami", - "Face with stuck out tongue": "Tv\u00e1r s vyplazen\u00fdm jazykom", - "Face with stuck out tongue and winking eye": "Mrkaj\u00faca tv\u00e1r s vyplazen\u00fdm jazykom", - "Face with stuck out tongue and tightly-closed eyes": "Tv\u00e1r s vyplazen\u00fdm jazykom a privret\u00fdmi o\u010dami", - "Disappointed face": "Sklaman\u00e1 tv\u00e1r", - "Worried face": "Obavaj\u00faca se tv\u00e1r", - "Angry face": "Nahnevan\u00e1 tv\u00e1r", - "Pouting face": "Na\u0161pulen\u00e1 tv\u00e1r", - "Crying face": "Pla\u010d\u00faca tv\u00e1r", - "Persevering face": "H\u00fa\u017eevnat\u00e1 tv\u00e1r", - "Face with look of triumph": "Tv\u00e1r s v\u00fdrazom v\u00ed\u0165aza", - "Disappointed but relieved face": "Sklaman\u00e1 ale spokojn\u00e1 tv\u00e1r", - "Frowning face with open mouth": "Zamra\u010den\u00e1 tvar s otvoren\u00fdmi \u00fastami", - "Anguished face": "\u00dazkostn\u00e1 tv\u00e1r", - "Fearful face": "Strachuj\u00faca sa tv\u00e1r", - "Weary face": "Unaven\u00e1 tv\u00e1r", - "Sleepy face": "Ospal\u00e1 tv\u00e1r", - "Tired face": "Unaven\u00e1 tv\u00e1r", - "Grimacing face": "Sv\u00e1r s grimasou", - "Loudly crying face": "Nahlas pl\u00e1\u010d\u00faca tv\u00e1r", - "Face with open mouth": "Tv\u00e1r s otvoren\u00fdm \u00fastami", - "Hushed face": "Ml\u010diaca tv\u00e1r", - "Face with open mouth and cold sweat": "Tv\u00e1r s otvoren\u00fdmi \u00fastami a studen\u00fdm potom", - "Face screaming in fear": "Tv\u00e1r kri\u010diaca strachom", - "Astonished face": "Tv\u00e1r v \u00fa\u017ease", - "Flushed face": "S\u010dervenanie v tv\u00e1ri", - "Sleeping face": "Spiaca tv\u00e1r", - "Dizzy face": "Tv\u00e1r vyjadruj\u00faca z\u00e1vrat", - "Face without mouth": "Tv\u00e1r bez \u00fast", - "Face with medical mask": "Tv\u00e1r s lek\u00e1rskou maskou", - - // Line breaker - "Break": "Zalomenie", - - // Math - "Subscript": "Doln\u00fd index", - "Superscript": "Horn\u00fd index", - - // Full screen - "Fullscreen": "Cel\u00e1 obrazovka", - - // Horizontal line - "Insert Horizontal Line": "Vlo\u017ei\u0165 vodorovn\u00fa \u010diaru", - - // Clear formatting - "Clear Formatting": "Vymaza\u0165 formatovanie", - - // Undo, redo - "Undo": "Sp\u00e4\u0165", - "Redo": "Znova", - - // Select all - "Select All": "Vybra\u0165 v\u0161etko", - - // Code view - "Code View": "Zobrazi\u0165 html k\u00f3d", - - // Quote - "Quote": "Cit\u00e1t", - "Increase": "Nav\u00fd\u0161i\u0165", - "Decrease": "Zn\u00ed\u017ei\u0165", - - // Quick Insert - "Quick Insert": "Vlo\u017ei\u0165 zr\u00fdchlene", - - // Spcial Characters - "Special Characters": "Špeciálne znaky", - "Latin": "Latinčina", - "Greek": "Grécky", - "Cyrillic": "Cyriliky", - "Punctuation": "Interpunkcia", - "Currency": "Mena", - "Arrows": "Šípky", - "Math": "Matematika", - "Misc": "Misc", - - // Print. - "Print": "Vytlačiť", - - // Spell Checker. - "Spell Checker": "Kontrola pravopisu", - - // Help - "Help": "Pomoc", - "Shortcuts": "Skratky", - "Inline Editor": "Inline editor", - "Show the editor": "Zobraziť editor", - "Common actions": "Spoločné akcie", - "Copy": "Kópie", - "Cut": "Rez", - "Paste": "Pasta", - "Basic Formatting": "Základné formátovanie", - "Increase quote level": "Zvýšiť úroveň cenovej ponuky", - "Decrease quote level": "Znížiť úroveň cenovej ponuky", - "Image / Video": "Obrázok / video", - "Resize larger": "Zmena veľkosti", - "Resize smaller": "Meniť veľkosť", - "Table": "Stôl", - "Select table cell": "Vyberte bunku tabuľky", - "Extend selection one cell": "Rozšíriť výber jednej bunky", - "Extend selection one row": "Rozšíriť výber o jeden riadok", - "Navigation": "Navigácia", - "Focus popup / toolbar": "Zameranie / panel s nástrojmi", - "Return focus to previous position": "Vrátiť zaostrenie na predchádzajúcu pozíciu", - - // Embed.ly - "Embed URL": "Vložiť adresu URL", - "Paste in a URL to embed": "Vložte do adresy URL, ktorú chcete vložiť", - - // Word Paste. - "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Vložený obsah vychádza z dokumentu Microsoft Word. chcete formát uchovať alebo ho vyčistiť?", - "Keep": "Zachovať", - "Clean": "Čistý", - "Word Paste Detected": "Slovná vložka bola zistená" - }, - direction: "ltr" -}; -})); diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/languages/sr.js b/Mobile.Search.Web/Scripts/froala-editor/js/languages/sr.js deleted file mode 100644 index e72e27b..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/languages/sr.js +++ /dev/null @@ -1,318 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = function( root, jQuery ) { - if ( jQuery === undefined ) { - // require('jQuery') returns a factory that requires window to - // build a jQuery instance, we normalize how we use modules - // that require this pattern but the window provided is a noop - // if it's defined (how jquery works) - if ( typeof window !== 'undefined' ) { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - return factory(jQuery); - }; - } else { - // Browser globals - factory(window.jQuery); - } -}(function ($) { -/** - * Serbian (Latin) - */ - -$.FE.LANGUAGE['sr'] = { - translation: { - // Place holder - "Type something": "Ukucajte ne\u0161tp", - - // Basic formatting - "Bold": "Podebljan", - "Italic": "Isko\u0161en", - "Underline": "Podvu\u010deno", - "Strikethrough": "Precrtan", - - // Main buttons - "Insert": "Umetanje", - "Delete": "Izbri\u0161i", - "Cancel": "Otkazivanje", - "OK": "Ok", - "Back": "Nazad", - "Remove": "Uklonite", - "More": "Vi\u0161e", - "Update": "A\u017euriranje", - "Style": "Stil", - - // Font - "Font Family": "Odaberi font", - "Font Size": "Veli\u010dina fontova", - - // Colors - "Colors": "Boje", - "Background": "Pozadina", - "Text": "Tekst", - "HEX Color": "HEX boje", - - // Paragraphs - "Paragraph Format": "Format pasusa", - "Normal": "Normalno", - "Code": "\u0160ifra", - "Heading 1": "Naslov 1", - "Heading 2": "Naslov 2", - "Heading 3": "Naslov 3", - "Heading 4": "Naslov 4", - - // Style - "Paragraph Style": "Stil pasusa", - "Inline Style": "Umetnutih stilova", - - // Alignment - "Align": "Poravnavanje", - "Align Left": "Poravnaj levo", - "Align Center": "Poravnaj u centru", - "Align Right": "Poravnaj desno", - "Align Justify": "Obostrano poravnavanje", - "None": "Niko nije", - - // Lists - "Ordered List": "Ure\u0111enih lista", - "Unordered List": "Neure\u0111enu lista", - - // Indent - "Decrease Indent": "Smanjivanje uvla\u010denja", - "Increase Indent": "Pove\u0107avanje uvla\u010denja", - - // Links - "Insert Link": "Umetni vezu", - "Open in new tab": "Otvori na novoj kartici", - "Open Link": "Otvori vezu", - "Edit Link": "Ure\u0111ivanje veze", - "Unlink": "Ukloni vezu", - "Choose Link": "Odaberite vezu", - - // Images - "Insert Image": "Umetanje slike", - "Upload Image": "Otpremanje slika", - "By URL": "Po URL adresi", - "Browse": "Potra\u017ei", - "Drop image": "Baci sliku", - "or click": "ili kliknite na dugme", - "Manage Images": "Upravljanje slike", - "Loading": "U\u010ditavanje", - "Deleting": "Brisanje", - "Tags": "Oznake", - "Are you sure? Image will be deleted.": "Jesi siguran? Slika \u0107e biti izbrisana.", - "Replace": "Zameni", - "Uploading": "Otpremanje", - "Loading image": "U\u010ditavanje slika", - "Display": "Prikaz", - "Inline": "Pri upisivanju", - "Break Text": "Prelom teksta", - "Alternate Text": "Alternativni tekst", - "Change Size": "Promena veli\u010dine", - "Width": "\u0160irina", - "Height": "Visina", - "Something went wrong. Please try again.": "Ne\u0161to krenulo naopako. Poku\u0161ajte ponovo.", - "Image Caption": "Slika natpisa", - "Advanced Edit": "Napredno uređivanje", - - // Video - "Insert Video": "Umetanje video", - "Embedded Code": "Ugra\u0111eni k\u00f4d", - "Paste in a video URL": "Lepljenje u video URL", - "Drop video": "Baci snimak", - "Your browser does not support HTML5 video.": "Vaš pregledač ne podržava HTML5 video.", - "Upload Video": "Otpremanje video", - - // Tables - "Insert Table": "Umetni tabelu", - "Table Header": "Zaglavlje tabele", - "Remove Table": "Uklanjanje tabele", - "Table Style": "Stil tabele", - "Horizontal Align": "Horizontalno poravnavanje", - "Row": "Red", - "Insert row above": "Umetni red iznad", - "Insert row below": "Umetni red ispod", - "Delete row": "Izbri\u0161i red", - "Column": "Kolone", - "Insert column before": "Umetnite kolonu pre", - "Insert column after": "Umetnite kolonu nakon", - "Delete column": "Izbri\u0161i kolone", - "Cell": "Mobilni", - "Merge cells": "Objedinjavanje \u0107elija", - "Horizontal split": "Horizontalna split", - "Vertical split": "Vertikalno razdelite", - "Cell Background": "Mobilni pozadina", - "Vertical Align": "Vertikalno poravnavanje", - "Top": "Top", - "Middle": "Srednji", - "Bottom": "Dno", - "Align Top": "Poravnaj gore", - "Align Middle": "Poravnaj po sredini", - "Align Bottom": "Poravnaj dole", - "Cell Style": "Mobilni stil", - - // Files - "Upload File": "Otpremanje datoteke", - "Drop file": "Baci datoteku", - - // Emoticons - "Emoticons": "Emotikona", - "Grinning face": "Nasmejanoj lice", - "Grinning face with smiling eyes": "Nasmejanoj lice sa osmehom o\u010di", - "Face with tears of joy": "Suo\u010davaju sa suzama radosnicama", - "Smiling face with open mouth": "Nasmejano lice sa otvorenim ustima", - "Smiling face with open mouth and smiling eyes": "Lica sa otvorenim ustima i nasmejani o\u010di", - "Smiling face with open mouth and cold sweat": "Nasmejano lice sa otvorenih usta i hladan znoj", - "Smiling face with open mouth and tightly-closed eyes": "Nasmejano lice otvorenih usta i \u010dvrsto zatvorenih o\u010diju", - "Smiling face with halo": "Nasmejano lice sa oreolom", - "Smiling face with horns": "Nasmejano lice sa rogovima", - "Winking face": "Namigivanje lice", - "Smiling face with smiling eyes": "Lica sa osmehom o\u010di", - "Face savoring delicious food": "Lice u\u045bivaju\u0436i u ukusnu hranu", - "Relieved face": "Laknulo lice", - "Smiling face with heart-shaped eyes": "Nasmejano lice sa o\u010dima u obliku srca", - "Smiling face with sunglasses": "Nasmejano lice sa nao\u010dare", - "Smirking face": "Rugaju\u0436i lice", - "Neutral face": "Neutralno lice", - "Expressionless face": "Bez izraza lica.", - "Unamused face": "Nije zapaljen lice", - "Face with cold sweat": "Suo\u010davaju sa hladnim znojem", - "Pensive face": "Nevesela lica", - "Confused face": "Zbunjeno lice", - "Confounded face": "Dosadnih lice", - "Kissing face": "Ljubim lice", - "Face throwing a kiss": "Lice baca poljubac", - "Kissing face with smiling eyes": "Ljubi lice sa osmehom o\u010di", - "Kissing face with closed eyes": "Ljubi lice sa zatvorenim o\u010dima", - "Face with stuck out tongue": "Lice sa zaglavio jezik", - "Face with stuck out tongue and winking eye": "Lice sa zaglavljen jezik i namigivanje", - "Face with stuck out tongue and tightly-closed eyes": "Lice sa zaglavljen jezik i cvrsto zatvorene o\u010di", - "Disappointed face": "Razo\u010darani lice", - "Worried face": "Zabrinuto lice", - "Angry face": "Ljut lice", - "Pouting face": "Zlovoljan lice", - "Crying face": "Plakanje lice", - "Persevering face": "Istrajnog lice", - "Face with look of triumph": "Suo\u010davaju sa izgledom trijumfa", - "Disappointed but relieved face": "Razo\u010daran ali laknulo lice", - "Frowning face with open mouth": "Namršten lice sa otvorenim ustima", - "Anguished face": "Enih lica", - "Fearful face": "Strahu lice", - "Weary face": "Umorna lica", - "Sleepy face": "Spava mi se lice", - "Tired face": "Umorna lica", - "Grimacing face": "Klupi lice", - "Loudly crying face": "Glasno plakanje lice", - "Face with open mouth": "Suo\u010davaju sa otvorenim ustima", - "Hushed face": "Tihim lice", - "Face with open mouth and cold sweat": "Suo\u010davaju sa otvorenih usta i hladan znoj", - "Face screaming in fear": "Lice vrisak u strahu", - "Astonished face": "Zadivljeni lice", - "Flushed face": "Uplakanu lice", - "Sleeping face": "Pospanog lica", - "Dizzy face": "Lice mi se vrti", - "Face without mouth": "Lice bez jezika", - "Face with medical mask": "Suo\u010davaju sa medicinskim masku", - - // Line breaker - "Break": "Prelom", - - // Math - "Subscript": "Indeksni tekst", - "Superscript": "Eksponentni tekst", - - // Full screen - "Fullscreen": "Puni ekran", - - // Horizontal line - "Insert Horizontal Line": "Umetni horizontalnu liniju", - - // Clear formatting - "Clear Formatting": "Brisanje oblikovanja", - - // Undo, redo - "Undo": "Opozovi radnju", - "Redo": "Ponavljanje", - - // Select all - "Select All": "Izaberi sve", - - // Code view - "Code View": "Prikaz koda", - - // Quote - "Quote": "Ponude", - "Increase": "Pove\u0107anje", - "Decrease": "Smanjivanje", - - // Quick Insert - "Quick Insert": "Brzo umetanje", - - // Spcial Characters - "Special Characters": "Specijalni znakovi", - "Latin": "Latino", - "Greek": "Grk", - "Cyrillic": "Ćirilica", - "Punctuation": "Interpunkcije", - "Currency": "Valuta", - "Arrows": "Strelice", - "Math": "Matematika", - "Misc": "Misc", - - // Print. - "Print": "Odštampaj", - - // Spell Checker. - "Spell Checker": "Kontrolor pravopisa", - - // Help - "Help": "Pomoć", - "Shortcuts": "Prečice", - "Inline Editor": "Pri upisivanju Editor", - "Show the editor": "Prikaži urednik", - "Common actions": "Zajedničke akcije", - "Copy": "Kopija", - "Cut": "Rez", - "Paste": "Nalepi", - "Basic Formatting": "Osnovno oblikovanje", - "Increase quote level": "Povećati ponudu za nivo", - "Decrease quote level": "Smanjenje ponude nivo", - "Image / Video": "Slika / Video", - "Resize larger": "Veće veličine", - "Resize smaller": "Promena veličine manji", - "Table": "Sto", - "Select table cell": "Select ćelije", - "Extend selection one cell": "Proširite selekciju jednu ćeliju", - "Extend selection one row": "Proširite selekciju jedan red", - "Navigation": "Navigacija", - "Focus popup / toolbar": "Fokus Iskačući meni / traka sa alatkama", - "Return focus to previous position": "Vratiti fokus na prethodnu poziciju", - - // Embed.ly - "Embed URL": "Ugradite URL", - "Paste in a URL to embed": "Nalepite URL adresu da biste ugradili", - - // Word Paste. - "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Nalepljeni sadržaj dolazi iz Microsoft Word dokument. Da li želite zadržati u formatu ili počistiti?", - "Keep": "Nastavi", - "Clean": "Oиisti", - "Word Paste Detected": "Word Nalepi otkriven" - }, - direction: "ltr" -}; - -})); diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/languages/sv.js b/Mobile.Search.Web/Scripts/froala-editor/js/languages/sv.js deleted file mode 100644 index 79e38c8..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/languages/sv.js +++ /dev/null @@ -1,318 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = function( root, jQuery ) { - if ( jQuery === undefined ) { - // require('jQuery') returns a factory that requires window to - // build a jQuery instance, we normalize how we use modules - // that require this pattern but the window provided is a noop - // if it's defined (how jquery works) - if ( typeof window !== 'undefined' ) { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - return factory(jQuery); - }; - } else { - // Browser globals - factory(window.jQuery); - } -}(function ($) { -/** - * Swedish - */ - -$.FE.LANGUAGE['sv'] = { - translation: { - // Place holder - "Type something": "Ange n\u00e5got", - - // Basic formatting - "Bold": "Fetstil", - "Italic": "Kursiv stil", - "Underline": "Understruken", - "Strikethrough": "Genomstruken", - - // Main buttons - "Insert": "Infoga", - "Delete": "Radera", - "Cancel": "Avbryt", - "OK": "Ok", - "Back": "Tillbaka", - "Remove": "Ta bort", - "More": "Mer", - "Update": "Uppdatera", - "Style": "Stil", - - // Font - "Font Family": "Teckensnitt", - "Font Size": "Teckenstorlek", - - // Colors - "Colors": "F\u00e4rger", - "Background": "Bakgrund", - "Text": "Text", - "HEX Color": "Hex färg", - - // Paragraphs - "Paragraph Format": "Format", - "Normal": "Normal", - "Code": "Kod", - "Heading 1": "Rubrik 1", - "Heading 2": "Rubrik 2", - "Heading 3": "Rubrik 3", - "Heading 4": "Rubrik 4", - - // Style - "Paragraph Style": "Styckesformat", - "Inline Style": "Infogad stil", - - // Alignment - "Align": "Justera", - "Align Left": "Vänsterjustera", - "Align Center": "Centrera", - "Align Right": "Högerjustera", - "Align Justify": "Justera", - "None": "Inget", - - // Lists - "Ordered List": "Ordnad lista", - "Unordered List": "Oordnad lista", - - // Indent - "Decrease Indent": "Minska indrag", - "Increase Indent": "\u00d6ka indrag", - - // Links - "Insert Link": "Infoga l\u00e4nk", - "Open in new tab": "\u00d6ppna i ny flik", - "Open Link": "\u00d6ppna l\u00e4nk", - "Edit Link": "Redigera l\u00e4nk", - "Unlink": "Ta bort l\u00e4nk", - "Choose Link": "V\u00e4lj l\u00e4nk", - - // Images - "Insert Image": "Infoga bild", - "Upload Image": "Ladda upp en bild", - "By URL": "Genom URL", - "Browse": "Bl\u00e4ddra", - "Drop image": "Sl\u00e4pp bild", - "or click": "eller klicka", - "Manage Images": "Hantera bilder", - "Loading": "Laddar", - "Deleting": "Raderar", - "Tags": "Etiketter", - "Are you sure? Image will be deleted.": "\u00c4r du s\u00e4ker? Bild kommer att raderas.", - "Replace": "Ers\u00e4tt", - "Uploading": "Laddar up", - "Loading image": "Laddar bild", - "Display": "Visa", - "Inline": "I linje", - "Break Text": "Bryt text", - "Alternate Text": "Alternativ text", - "Change Size": "\u00c4ndra storlek", - "Width": "Bredd", - "Height": "H\u00f6jd", - "Something went wrong. Please try again.": "N\u00e5got gick fel. Var god f\u00f6rs\u00f6k igen.", - "Image Caption": "Bildtext", - "Advanced Edit": "Avancerad redigering", - - // Video - "Insert Video": "Infoga video", - "Embedded Code": "Inb\u00e4ddad kod", - "Paste in a video URL": "Klistra in i en video url", - "Drop video": "Släpp video", - "Your browser does not support HTML5 video.": "Din webbläsare stöder inte html5-video.", - "Upload Video": "Ladda upp video", - - // Tables - "Insert Table": "Infoga tabell", - "Table Header": "Tabell huvud", - "Remove Table": "Ta bort tabellen", - "Table Style": "Tabellformat", - "Horizontal Align": "Horisontell justering", - "Row": "Rad", - "Insert row above": "Infoga rad f\u00f6re", - "Insert row below": "Infoga rad efter", - "Delete row": "Ta bort rad", - "Column": "Kolumn", - "Insert column before": "Infoga kollumn f\u00f6re", - "Insert column after": "Infoga kolumn efter", - "Delete column": "Ta bort kolumn", - "Cell": "Cell", - "Merge cells": "Sammanfoga celler", - "Horizontal split": "Dela horisontellt", - "Vertical split": "Dela vertikalt", - "Cell Background": "Cellbakgrund", - "Vertical Align": "Vertikal justering", - "Top": "Överst", - "Middle": "Mitten", - "Bottom": "Nederst", - "Align Top": "Justera överst", - "Align Middle": "Justera mitten", - "Align Bottom": "Justera nederst", - "Cell Style": "Cellformat", - - // Files - "Upload File": "Ladda upp fil", - "Drop file": "Sl\u00e4pp fil", - - // Emoticons - "Emoticons": "Uttryckssymboler", - "Grinning face": "Grina ansikte", - "Grinning face with smiling eyes": "Grina ansikte med leende \u00f6gon", - "Face with tears of joy": "Face med gl\u00e4djet\u00e5rar", - "Smiling face with open mouth": "Leende ansikte med \u00f6ppen mun", - "Smiling face with open mouth and smiling eyes": "Leende ansikte med \u00f6ppen mun och leende \u00f6gon", - "Smiling face with open mouth and cold sweat": "Leende ansikte med \u00f6ppen mun och kallsvett", - "Smiling face with open mouth and tightly-closed eyes": "Leende ansikte med \u00f6ppen mun och t\u00e4tt slutna \u00f6gon", - "Smiling face with halo": "Leende ansikte med halo", - "Smiling face with horns": "Leende ansikte med horn", - "Winking face": "Blinka ansikte", - "Smiling face with smiling eyes": "Leende ansikte med leende \u00f6gon", - "Face savoring delicious food": "Ansikte smaka uts\u00f6kt mat", - "Relieved face": "L\u00e4ttad ansikte", - "Smiling face with heart-shaped eyes": "Leende ansikte med hj\u00e4rtformade \u00f6gon", - "Smiling face with sunglasses": "Leende ansikte med solglas\u00f6gon", - "Smirking face": "Flinande ansikte", - "Neutral face": "Neutral ansikte", - "Expressionless face": "Uttryckslöst ansikte", - "Unamused face": "Inte roade ansikte", - "Face with cold sweat": "Ansikte med kallsvett", - "Pensive face": "Eftert\u00e4nksamt ansikte", - "Confused face": "F\u00f6rvirrad ansikte", - "Confounded face": "F\u00f6rbryllade ansikte", - "Kissing face": "Kyssande ansikte", - "Face throwing a kiss": "Ansikte kasta en kyss", - "Kissing face with smiling eyes": "Kyssa ansikte med leende \u00f6gon", - "Kissing face with closed eyes": "Kyssa ansikte med slutna \u00f6gon", - "Face with stuck out tongue": "Ansikte med stack ut tungan", - "Face with stuck out tongue and winking eye": "Ansikte med stack ut tungan och blinkande \u00f6ga", - "Face with stuck out tongue and tightly-closed eyes": "Ansikte med stack ut tungan och t\u00e4tt slutna \u00f6gon", - "Disappointed face": "Besviken ansikte", - "Worried face": "Orolig ansikte", - "Angry face": "Argt ansikte", - "Pouting face": "Sk\u00e4ggtorsk ansikte", - "Crying face": "Gr\u00e5tande ansikte", - "Persevering face": "Uth\u00e5llig ansikte", - "Face with look of triumph": "Ansikte med utseendet p\u00e5 triumf", - "Disappointed but relieved face": "Besviken men l\u00e4ttad ansikte", - "Frowning face with open mouth": "Rynkar pannan ansikte med \u00f6ppen mun", - "Anguished face": "\u00c5ngest ansikte", - "Fearful face": "R\u00e4dda ansikte", - "Weary face": "Tr\u00f6tta ansikte", - "Sleepy face": "S\u00f6mnig ansikte", - "Tired face": "Tr\u00f6tt ansikte", - "Grimacing face": "Grimaserande ansikte", - "Loudly crying face": "H\u00f6gt gr\u00e5tande ansikte", - "Face with open mouth": "Ansikte med \u00f6ppen mun", - "Hushed face": "D\u00e4mpade ansikte", - "Face with open mouth and cold sweat": "Ansikte med \u00f6ppen mun och kallsvett", - "Face screaming in fear": "Face skriker i skr\u00e4ck", - "Astonished face": "F\u00f6rv\u00e5nad ansikte", - "Flushed face": "Ansiktsrodnad", - "Sleeping face": "Sovande anskite", - "Dizzy face": "Yr ansikte", - "Face without mouth": "Ansikte utan mun", - "Face with medical mask": "Ansikte med medicinsk maskera", - - // Line breaker - "Break": "Ny rad", - - // Math - "Subscript": "Neds\u00e4nkt", - "Superscript": "Upph\u00f6jd", - - // Full screen - "Fullscreen": "Helsk\u00e4rm", - - // Horizontal line - "Insert Horizontal Line": "Infoga horisontell linje", - - // Clear formatting - "Clear Formatting": "Ta bort formatering", - - // Undo, redo - "Undo": "\u00c5ngra", - "Redo": "G\u00f6r om", - - // Select all - "Select All": "Markera allt", - - // Code view - "Code View": "Kodvy", - - // Quote - "Quote": "Citat", - "Increase": "\u00d6ka", - "Decrease": "Minska", - - // Quick Insert - "Quick Insert": "Snabbinfoga", - - // Spcial Characters - "Special Characters": "Specialtecken", - "Latin": "Latin", - "Greek": "Grekisk", - "Cyrillic": "Cyrillic", - "Punctuation": "Skiljetecken", - "Currency": "Valuta", - "Arrows": "Pilar", - "Math": "Matematik", - "Misc": "Övrigt", - - // Print. - "Print": "Skriva ut", - - // Spell Checker. - "Spell Checker": "Stavningskontroll", - - // Help - "Help": "Hjälp", - "Shortcuts": "Genvägar", - "Inline Editor": "Inline editor", - "Show the editor": "Visa redigeraren", - "Common actions": "Vanliga kommandon", - "Copy": "Kopiera", - "Cut": "Klipp ut", - "Paste": "Klistra in", - "Basic Formatting": "Grundläggande formatering", - "Increase quote level": "Öka citatnivå", - "Decrease quote level": "Minska citatnivå", - "Image / Video": "Bild / video", - "Resize larger": "Öka storlek", - "Resize smaller": "Minska storlek", - "Table": "Tabell", - "Select table cell": "Markera tabellcell", - "Extend selection one cell": "Utöka markering en cell", - "Extend selection one row": "Utöka markering en rad", - "Navigation": "Navigering", - "Focus popup / toolbar": "Fokusera popup / verktygsfältet", - "Return focus to previous position": "Byt fokus till föregående plats", - - // Embed.ly - "Embed URL": "Bädda in url", - "Paste in a URL to embed": "Klistra in i en url för att bädda in", - - // Word Paste. - "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Den inklippta texten kommer från ett Microsoft Word-dokument. Vill du behålla formateringen eller städa upp det?", - "Keep": "Behåll", - "Clean": "Städa upp", - "Word Paste Detected": "Urklipp från Word upptäckt" - }, - direction: "ltr" -}; - -})); diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/languages/th.js b/Mobile.Search.Web/Scripts/froala-editor/js/languages/th.js deleted file mode 100644 index c83f00b..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/languages/th.js +++ /dev/null @@ -1,318 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = function( root, jQuery ) { - if ( jQuery === undefined ) { - // require('jQuery') returns a factory that requires window to - // build a jQuery instance, we normalize how we use modules - // that require this pattern but the window provided is a noop - // if it's defined (how jquery works) - if ( typeof window !== 'undefined' ) { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - return factory(jQuery); - }; - } else { - // Browser globals - factory(window.jQuery); - } -}(function ($) { -/** - * Thai - */ - -$.FE.LANGUAGE['th'] = { - translation: { - // Place holder - "Type something": "\u0e1e\u0e34\u0e21\u0e1e\u0e4c\u0e1a\u0e32\u0e07\u0e2a\u0e34\u0e48\u0e07\u0e1a\u0e32\u0e07\u0e2d\u0e22\u0e48\u0e32\u0e07", - - // Basic formatting - "Bold": "\u0e15\u0e31\u0e27\u0e2b\u0e19\u0e32", - "Italic": "\u0e15\u0e31\u0e27\u0e40\u0e2d\u0e35\u0e22\u0e07", - "Underline": "\u0e02\u0e35\u0e14\u0e40\u0e2a\u0e49\u0e19\u0e43\u0e15\u0e49", - "Strikethrough": "\u0e02\u0e35\u0e14\u0e17\u0e31\u0e1a", - - // Main buttons - "Insert": "\u0e41\u0e17\u0e23\u0e01", - "Delete": "\u0e25\u0e1a", - "Cancel": "\u0e22\u0e01\u0e40\u0e25\u0e34\u0e01", - "OK": "\u0e15\u0e01\u0e25\u0e07", - "Back": "\u0e01\u0e25\u0e31\u0e1a", - "Remove": "\u0e40\u0e2d\u0e32\u0e2d\u0e2d\u0e01", - "More": "\u0e21\u0e32\u0e01\u0e01\u0e27\u0e48\u0e32", - "Update": "\u0e2d\u0e31\u0e1e\u0e40\u0e14\u0e17", - "Style": "\u0e2a\u0e44\u0e15\u0e25\u0e4c", - - // Font - "Font Family": "\u0e15\u0e23\u0e30\u0e01\u0e39\u0e25\u0e41\u0e1a\u0e1a\u0e2d\u0e31\u0e01\u0e29\u0e23", - "Font Size": "\u0e02\u0e19\u0e32\u0e14\u0e41\u0e1a\u0e1a\u0e2d\u0e31\u0e01\u0e29\u0e23", - - // Colors - "Colors": "\u0e2a\u0e35", - "Background": "\u0e1e\u0e37\u0e49\u0e19\u0e2b\u0e25\u0e31\u0e07", - "Text": "\u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21", - "HEX Color": "สีฐานสิบหก", - - // Paragraphs - "Paragraph Format": "\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a", - "Normal": "\u0e1b\u0e01\u0e15\u0e34", - "Code": "\u0e42\u0e04\u0e49\u0e14", - "Heading 1": "\u0e2a\u0e48\u0e27\u0e19\u0e2b\u0e31\u0e27 1", - "Heading 2": "\u0e2a\u0e48\u0e27\u0e19\u0e2b\u0e31\u0e27 2", - "Heading 3": "\u0e2a\u0e48\u0e27\u0e19\u0e2b\u0e31\u0e27 3", - "Heading 4": "\u0e2a\u0e48\u0e27\u0e19\u0e2b\u0e31\u0e27 4", - - // Style - "Paragraph Style": "\u0e25\u0e31\u0e01\u0e29\u0e13\u0e30\u0e22\u0e48\u0e2d\u0e2b\u0e19\u0e49\u0e32", - "Inline Style": "\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e2d\u0e34\u0e19\u0e44\u0e25\u0e19\u0e4c", - - // Alignment - "Align": "\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e41\u0e19\u0e27", - "Align Left": "\u0e08\u0e31\u0e14\u0e0a\u0e34\u0e14\u0e0b\u0e49\u0e32\u0e22", - "Align Center": "\u0e08\u0e31\u0e14\u0e01\u0e36\u0e48\u0e07\u0e01\u0e25\u0e32\u0e07", - "Align Right": "\u0e08\u0e31\u0e14\u0e0a\u0e34\u0e14\u0e02\u0e27\u0e32", - "Align Justify": "\u0e40\u0e15\u0e47\u0e21\u0e41\u0e19\u0e27", - "None": "\u0e44\u0e21\u0e48", - - // Lists - "Ordered List": "\u0e23\u0e32\u0e22\u0e01\u0e32\u0e23\u0e25\u0e33\u0e14\u0e31\u0e1a\u0e40\u0e25\u0e02", - "Unordered List": "\u0e23\u0e32\u0e22\u0e01\u0e32\u0e23\u0e2a\u0e31\u0e0d\u0e25\u0e31\u0e01\u0e29\u0e13\u0e4c\u0e2b\u0e31\u0e27\u0e02\u0e49\u0e2d\u0e22\u0e48\u0e2d\u0e22", - - // Indent - "Decrease Indent": "\u0e25\u0e14\u0e01\u0e32\u0e23\u0e40\u0e22\u0e37\u0e49\u0e2d\u0e07", - "Increase Indent": "\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e01\u0e32\u0e23\u0e40\u0e22\u0e37\u0e49\u0e2d\u0e07", - - // Links - "Insert Link": "\u0e41\u0e17\u0e23\u0e01\u0e25\u0e34\u0e07\u0e01\u0e4c", - "Open in new tab": "\u0e40\u0e1b\u0e34\u0e14\u0e43\u0e19\u0e41\u0e17\u0e47\u0e1a\u0e43\u0e2b\u0e21\u0e48", - "Open Link": "\u0e40\u0e1b\u0e34\u0e14\u0e25\u0e34\u0e49\u0e07\u0e04\u0e4c", - "Edit Link": "\u0e25\u0e34\u0e07\u0e04\u0e4c\u0e41\u0e01\u0e49\u0e44\u0e02", - "Unlink": "\u0e40\u0e2d\u0e32\u0e25\u0e34\u0e07\u0e01\u0e4c\u0e2d\u0e2d\u0e01", - "Choose Link": "\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e42\u0e22\u0e07", - - // Images - "Insert Image": "\u0e41\u0e17\u0e23\u0e01\u0e23\u0e39\u0e1b\u0e20\u0e32\u0e1e", - "Upload Image": "\u0e01\u0e32\u0e23\u0e2d\u0e31\u0e1b\u0e42\u0e2b\u0e25\u0e14\u0e20\u0e32\u0e1e", - "By URL": "\u0e15\u0e32\u0e21 URL", - "Browse": "\u0e40\u0e23\u0e35\u0e22\u0e01\u0e14\u0e39", - "Drop image": "\u0e27\u0e32\u0e07\u0e20\u0e32\u0e1e", - "or click": "\u0e2b\u0e23\u0e37\u0e2d\u0e04\u0e25\u0e34\u0e01\u0e17\u0e35\u0e48", - "Manage Images": "\u0e08\u0e31\u0e14\u0e01\u0e32\u0e23\u0e20\u0e32\u0e1e", - "Loading": "\u0e42\u0e2b\u0e25\u0e14", - "Deleting": "\u0e25\u0e1a", - "Tags": "\u0e41\u0e17\u0e47\u0e01", - "Are you sure? Image will be deleted.": "\u0e04\u0e38\u0e13\u0e41\u0e19\u0e48\u0e43\u0e08\u0e2b\u0e23\u0e37\u0e2d\u0e44\u0e21\u0e48 \u0e20\u0e32\u0e1e\u0e08\u0e30\u0e16\u0e39\u0e01\u0e25\u0e1a", - "Replace": "\u0e41\u0e17\u0e19\u0e17\u0e35\u0e48", - "Uploading": "\u0e2d\u0e31\u0e1e\u0e42\u0e2b\u0e25\u0e14", - "Loading image": "\u0e42\u0e2b\u0e25\u0e14\u0e20\u0e32\u0e1e", - "Display": "\u0e41\u0e2a\u0e14\u0e07", - "Inline": "\u0e41\u0e1a\u0e1a\u0e2d\u0e34\u0e19\u0e44\u0e25\u0e19\u0e4c", - "Break Text": "\u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e2b\u0e22\u0e38\u0e14", - "Alternate Text": "\u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e2d\u0e37\u0e48\u0e19", - "Change Size": "\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e02\u0e19\u0e32\u0e14", - "Width": "\u0e04\u0e27\u0e32\u0e21\u0e01\u0e27\u0e49\u0e32\u0e07", - "Height": "\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e39\u0e07", - "Something went wrong. Please try again.": "\u0e1a\u0e32\u0e07\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e1c\u0e34\u0e14\u0e1b\u0e01\u0e15\u0e34. \u0e01\u0e23\u0e38\u0e13\u0e32\u0e25\u0e2d\u0e07\u0e2d\u0e35\u0e01\u0e04\u0e23\u0e31\u0e49\u0e07.", - "Image Caption": "คำบรรยายภาพ", - "Advanced Edit": "แก้ไขขั้นสูง", - - // Video - "Insert Video": "\u0e41\u0e17\u0e23\u0e01\u0e27\u0e34\u0e14\u0e35\u0e42\u0e2d", - "Embedded Code": "\u0e23\u0e2b\u0e31\u0e2a\u0e2a\u0e21\u0e2d\u0e07\u0e01\u0e25\u0e1d\u0e31\u0e07\u0e15\u0e31\u0e27", - "Paste in a video URL": "วางใน URL วิดีโอ", - "Drop video": "วางวิดีโอ", - "Your browser does not support HTML5 video.": "เบราเซอร์ของคุณไม่สนับสนุนวิดีโอ HTML5", - "Upload Video": "อัปโหลดวิดีโอ", - - // Tables - "Insert Table": "\u0e41\u0e17\u0e23\u0e01\u0e15\u0e32\u0e23\u0e32\u0e07", - "Table Header": "\u0e2a\u0e48\u0e27\u0e19\u0e2b\u0e31\u0e27\u0e02\u0e2d\u0e07\u0e15\u0e32\u0e23\u0e32\u0e07", - "Remove Table": "\u0e40\u0e2d\u0e32\u0e15\u0e32\u0e23\u0e32\u0e07\u0e2d\u0e2d\u0e01", - "Table Style": "\u0e25\u0e31\u0e01\u0e29\u0e13\u0e30\u0e15\u0e32\u0e23\u0e32\u0e07", - "Horizontal Align": "\u0e43\u0e19\u0e41\u0e19\u0e27\u0e19\u0e2d\u0e19", - "Row": "\u0e41\u0e16\u0e27", - "Insert row above": "\u0e41\u0e17\u0e23\u0e01\u0e41\u0e16\u0e27\u0e14\u0e49\u0e32\u0e19\u0e1a\u0e19", - "Insert row below": "\u0e41\u0e17\u0e23\u0e01\u0e41\u0e16\u0e27\u0e14\u0e49\u0e32\u0e19\u0e25\u0e48\u0e32\u0e07", - "Delete row": "\u0e25\u0e1a\u0e41\u0e16\u0e27", - "Column": "\u0e04\u0e2d\u0e25\u0e31\u0e21\u0e19\u0e4c", - "Insert column before": "\u0e41\u0e17\u0e23\u0e01\u0e04\u0e2d\u0e25\u0e31\u0e21\u0e19\u0e4c\u0e02\u0e49\u0e32\u0e07\u0e2b\u0e19\u0e49\u0e32", - "Insert column after": "\u0e41\u0e17\u0e23\u0e01\u0e04\u0e2d\u0e25\u0e31\u0e21\u0e19\u0e4c\u0e02\u0e49\u0e32\u0e07\u0e2b\u0e25\u0e31\u0e07", - "Delete column": "\u0e25\u0e1a\u0e04\u0e2d\u0e25\u0e31\u0e21\u0e19\u0e4c", - "Cell": "\u0e40\u0e0b\u0e25\u0e25\u0e4c", - "Merge cells": "\u0e1c\u0e2a\u0e32\u0e19\u0e40\u0e0b\u0e25\u0e25\u0e4c", - "Horizontal split": "\u0e41\u0e22\u0e01\u0e41\u0e19\u0e27\u0e19\u0e2d\u0e19", - "Vertical split": "\u0e41\u0e22\u0e01\u0e43\u0e19\u0e41\u0e19\u0e27\u0e15\u0e31\u0e49\u0e07", - "Cell Background": "\u0e1e\u0e37\u0e49\u0e19\u0e2b\u0e25\u0e31\u0e07\u0e02\u0e2d\u0e07\u0e40\u0e0b\u0e25\u0e25\u0e4c", - "Vertical Align": "\u0e08\u0e31\u0e14\u0e41\u0e19\u0e27\u0e15\u0e31\u0e49\u0e07", - "Top": "\u0e14\u0e49\u0e32\u0e19\u0e1a\u0e19", - "Middle": "\u0e01\u0e25\u0e32\u0e07", - "Bottom": "\u0e01\u0e49\u0e19", - "Align Top": "\u0e08\u0e31\u0e14\u0e14\u0e49\u0e32\u0e19\u0e1a\u0e19", - "Align Middle": "\u0e15\u0e4d\u0e32\u0e41\u0e2b\u0e19\u0e48\u0e07\u0e01\u0e25\u0e32\u0e07", - "Align Bottom": "\u0e15\u0e4d\u0e32\u0e41\u0e2b\u0e19\u0e48\u0e07\u0e14\u0e49\u0e32\u0e19\u0e25\u0e48\u0e32\u0e07", - "Cell Style": "\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e02\u0e2d\u0e07\u0e40\u0e0b\u0e25\u0e25\u0e4c", - - // Files - "Upload File": "\u0e2d\u0e31\u0e1b\u0e42\u0e2b\u0e25\u0e14\u0e44\u0e1f\u0e25\u0e4c", - "Drop file": "\u0e27\u0e32\u0e07\u0e44\u0e1f\u0e25\u0e4c", - - // Emoticons - "Emoticons": "\u0e2d\u0e35\u0e42\u0e21\u0e15\u0e34\u0e04\u0e2d\u0e19", - "Grinning face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e22\u0e34\u0e49\u0e21", - "Grinning face with smiling eyes": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e22\u0e34\u0e49\u0e21\u0e14\u0e49\u0e27\u0e22\u0e15\u0e32\u0e22\u0e34\u0e49\u0e21", - "Face with tears of joy": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e14\u0e49\u0e27\u0e22\u0e19\u0e49\u0e33\u0e15\u0e32\u0e41\u0e2b\u0e48\u0e07\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e38\u0e02", - "Smiling face with open mouth": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e40\u0e1b\u0e37\u0e49\u0e2d\u0e19\u0e23\u0e2d\u0e22\u0e22\u0e34\u0e49\u0e21\u0e17\u0e35\u0e48\u0e21\u0e35\u0e1b\u0e32\u0e01\u0e40\u0e1b\u0e34\u0e14", - "Smiling face with open mouth and smiling eyes": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e22\u0e34\u0e49\u0e21\u0e01\u0e31\u0e1a\u0e40\u0e1b\u0e34\u0e14\u0e1b\u0e32\u0e01\u0e41\u0e25\u0e30\u0e15\u0e32\u0e22\u0e34\u0e49\u0e21", - "Smiling face with open mouth and cold sweat": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e22\u0e34\u0e49\u0e21\u0e14\u0e49\u0e27\u0e22\u0e1b\u0e32\u0e01\u0e40\u0e1b\u0e34\u0e14\u0e41\u0e25\u0e30\u0e40\u0e2b\u0e07\u0e37\u0e48\u0e2d\u0e40\u0e22\u0e47\u0e19", - "Smiling face with open mouth and tightly-closed eyes": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e22\u0e34\u0e49\u0e21\u0e01\u0e31\u0e1a\u0e40\u0e1b\u0e34\u0e14\u0e1b\u0e32\u0e01\u0e41\u0e25\u0e30\u0e15\u0e32\u0e41\u0e19\u0e48\u0e19\u0e1b\u0e34\u0e14", - "Smiling face with halo": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e22\u0e34\u0e49\u0e21\u0e17\u0e35\u0e48\u0e21\u0e35\u0e23\u0e31\u0e28\u0e21\u0e35", - "Smiling face with horns": "\u0e22\u0e34\u0e49\u0e21\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e21\u0e35\u0e40\u0e02\u0e32", - "Winking face": "\u0e01\u0e32\u0e23\u0e01\u0e23\u0e30\u0e1e\u0e23\u0e34\u0e1a\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32", - "Smiling face with smiling eyes": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e22\u0e34\u0e49\u0e21\u0e14\u0e49\u0e27\u0e22\u0e15\u0e32\u0e22\u0e34\u0e49\u0e21", - "Face savoring delicious food": "\u0e40\u0e1c\u0e0a\u0e34\u0e0d \u0073\u0061\u0076\u006f\u0072\u0069\u006e\u0067 \u0e2d\u0e32\u0e2b\u0e32\u0e23\u0e2d\u0e23\u0e48\u0e2d\u0e22", - "Relieved face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e42\u0e25\u0e48\u0e07\u0e43\u0e08", - "Smiling face with heart-shaped eyes": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e22\u0e34\u0e49\u0e21\u0e14\u0e49\u0e27\u0e22\u0e15\u0e32\u0e23\u0e39\u0e1b\u0e2b\u0e31\u0e27\u0e43\u0e08", - "Smiling face with sunglasses": "\u0e22\u0e34\u0e49\u0e21\u0e2b\u0e19\u0e49\u0e32\u0e14\u0e49\u0e27\u0e22\u0e41\u0e27\u0e48\u0e19\u0e15\u0e32\u0e01\u0e31\u0e19\u0e41\u0e14\u0e14", - "Smirking face": "\u0e2b\u0e19\u0e49\u0e32\u0e41\u0e2a\u0e22\u0e30\u0e22\u0e34\u0e49\u0e21\u0e17\u0e35\u0e48\u0e21\u0e38\u0e21", - "Neutral face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e25\u0e32\u0e07", - "Expressionless face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e2d\u0e32\u0e23\u0e21\u0e13\u0e4c", - "Unamused face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32 \u0055\u006e\u0061\u006d\u0075\u0073\u0065\u0064", - "Face with cold sweat": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e17\u0e35\u0e48\u0e21\u0e35\u0e40\u0e2b\u0e07\u0e37\u0e48\u0e2d\u0e40\u0e22\u0e47\u0e19", - "Pensive face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e2b\u0e21\u0e48\u0e19", - "Confused face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e2a\u0e31\u0e1a\u0e2a\u0e19", - "Confounded face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e2a\u0e31\u0e1a\u0e2a\u0e19", - "Kissing face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e08\u0e39\u0e1a", - "Face throwing a kiss": "\u0e15\u0e49\u0e2d\u0e07\u0e40\u0e1c\u0e0a\u0e34\u0e0d\u0e01\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e02\u0e27\u0e49\u0e32\u0e07\u0e1b\u0e32\u0e08\u0e39\u0e1a", - "Kissing face with smiling eyes": "\u0e08\u0e39\u0e1a\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e14\u0e49\u0e27\u0e22\u0e15\u0e32\u0e22\u0e34\u0e49\u0e21", - "Kissing face with closed eyes": "\u0e08\u0e39\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e14\u0e49\u0e27\u0e22\u0e14\u0e27\u0e07\u0e15\u0e32\u0e17\u0e35\u0e48\u0e1b\u0e34\u0e14\u0e2a\u0e19\u0e34\u0e17", - "Face with stuck out tongue": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e21\u0e35\u0e41\u0e1e\u0e25\u0e21\u0e2d\u0e2d\u0e01\u0e21\u0e32\u0e25\u0e34\u0e49\u0e19", - "Face with stuck out tongue and winking eye": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e21\u0e35\u0e15\u0e34\u0e14\u0e25\u0e34\u0e49\u0e19\u0e41\u0e25\u0e30\u0e15\u0e32\u0e02\u0e22\u0e34\u0e1a\u0e15\u0e32", - "Face with stuck out tongue and tightly-closed eyes": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e21\u0e35\u0e15\u0e34\u0e14\u0e25\u0e34\u0e49\u0e19\u0e41\u0e25\u0e30\u0e14\u0e27\u0e07\u0e15\u0e32\u0e17\u0e35\u0e48\u0e1b\u0e34\u0e14\u0e41\u0e19\u0e48\u0e19", - "Disappointed face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e1c\u0e34\u0e14\u0e2b\u0e27\u0e31\u0e07", - "Worried face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e01\u0e31\u0e07\u0e27\u0e25", - "Angry face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e42\u0e01\u0e23\u0e18", - "Pouting face": "\u0e2b\u0e19\u0e49\u0e32\u0e21\u0e38\u0e48\u0e22", - "Crying face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e23\u0e49\u0e2d\u0e07\u0e44\u0e2b\u0e49", - "Persevering face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e40\u0e2d\u0e32\u0e16\u0e48\u0e32\u0e19", - "Face with look of triumph": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e01\u0e31\u0e1a\u0e23\u0e39\u0e1b\u0e25\u0e31\u0e01\u0e29\u0e13\u0e4c\u0e02\u0e2d\u0e07\u0e0a\u0e31\u0e22\u0e0a\u0e19\u0e30", - "Disappointed but relieved face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e1c\u0e34\u0e14\u0e2b\u0e27\u0e31\u0e07 \u0e41\u0e15\u0e48\u0e42\u0e25\u0e48\u0e07\u0e43\u0e08", - "Frowning face with open mouth": "\u0e2b\u0e19\u0e49\u0e32\u0e21\u0e38\u0e48\u0e22\u0e17\u0e35\u0e48\u0e21\u0e35\u0e1b\u0e32\u0e01\u0e40\u0e1b\u0e34\u0e14", - "Anguished face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e01\u0e14\u0e02\u0e35\u0e48", - "Fearful face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e17\u0e35\u0e48\u0e19\u0e48\u0e32\u0e01\u0e25\u0e31\u0e27", - "Weary face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e17\u0e35\u0e48\u0e40\u0e2b\u0e19\u0e37\u0e48\u0e2d\u0e22\u0e25\u0e49\u0e32", - "Sleepy face": "\u0e2b\u0e19\u0e49\u0e32\u0e07\u0e48\u0e27\u0e07\u0e19\u0e2d\u0e19", - "Tired face": "\u0e2b\u0e19\u0e49\u0e32\u0e40\u0e1a\u0e37\u0e48\u0e2d", - "Grimacing face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32 \u0067\u0072\u0069\u006d\u0061\u0063\u0069\u006e\u0067", - "Loudly crying face": "\u0e23\u0e49\u0e2d\u0e07\u0e44\u0e2b\u0e49\u0e40\u0e2a\u0e35\u0e22\u0e07\u0e14\u0e31\u0e07\u0e2b\u0e19\u0e49\u0e32", - "Face with open mouth": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e17\u0e35\u0e48\u0e21\u0e35\u0e1b\u0e32\u0e01\u0e40\u0e1b\u0e34\u0e14", - "Hushed face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e40\u0e07\u0e35\u0e22\u0e1a", - "Face with open mouth and cold sweat": "หน้ากับปากเปิดและเหงื่อเย็น", - "Face screaming in fear": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e17\u0e35\u0e48\u0e21\u0e35\u0e1b\u0e32\u0e01\u0e40\u0e1b\u0e34\u0e14\u0e41\u0e25\u0e30\u0e40\u0e2b\u0e07\u0e37\u0e48\u0e2d\u0e40\u0e22\u0e47\u0e19", - "Astonished face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e1b\u0e23\u0e30\u0e2b\u0e25\u0e32\u0e14\u0e43\u0e08", - "Flushed face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e41\u0e14\u0e07", - "Sleeping face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e19\u0e2d\u0e19", - "Dizzy face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e15\u0e32\u0e25\u0e32\u0e22", - "Face without mouth": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e42\u0e14\u0e22\u0e44\u0e21\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e1b\u0e32\u0e01", - "Face with medical mask": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e14\u0e49\u0e27\u0e22\u0e2b\u0e19\u0e49\u0e32\u0e01\u0e32\u0e01\u0e17\u0e32\u0e07\u0e01\u0e32\u0e23\u0e41\u0e1e\u0e17\u0e22\u0e4c", - - // Line breaker - "Break": "\u0e2b\u0e22\u0e38\u0e14", - - // Math - "Subscript": "\u0e15\u0e31\u0e27\u0e2b\u0e49\u0e2d\u0e22", - "Superscript": "\u0e15\u0e31\u0e27\u0e22\u0e01", - - // Full screen - "Fullscreen": "\u0e40\u0e15\u0e47\u0e21\u0e2b\u0e19\u0e49\u0e32\u0e08\u0e2d", - - // Horizontal line - "Insert Horizontal Line": "\u0e41\u0e17\u0e23\u0e01\u0e40\u0e2a\u0e49\u0e19\u0e41\u0e19\u0e27\u0e19\u0e2d\u0e19", - - // Clear formatting - "Clear Formatting": "\u0e19\u0e33\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a", - - // Undo, redo - "Undo": "\u0e40\u0e25\u0e34\u0e01\u0e17\u0e33", - "Redo": "\u0e17\u0e4d\u0e32\u0e0b\u0e49\u0e33", - - // Select all - "Select All": "\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14", - - // Code view - "Code View": "\u0e21\u0e38\u0e21\u0e21\u0e2d\u0e07\u0e23\u0e2b\u0e31\u0e2a", - - // Quote - "Quote": "\u0e2d\u0e49\u0e32\u0e07", - "Increase": "\u0e40\u0e1e\u0e34\u0e48\u0e21", - "Decrease": "\u0e25\u0e14\u0e25\u0e07", - - // Quick Insert - "Quick Insert": "\u0e41\u0e17\u0e23\u0e01\u0e14\u0e48\u0e27\u0e19", - - // Spcial Characters - "Special Characters": "อักขระพิเศษ", - "Latin": "ละติน", - "Greek": "กรีก", - "Cyrillic": "ริลลิก", - "Punctuation": "วรรคตอน", - "Currency": "เงินตรา", - "Arrows": "ลูกศร", - "Math": "คณิตศาสตร์", - "Misc": "อื่น ๆ", - - // Print. - "Print": "พิมพ์", - - // Spell Checker. - "Spell Checker": "ตัวตรวจสอบการสะกด", - - // Help - "Help": "ช่วยด้วย", - "Shortcuts": "ทางลัด", - "Inline Editor": "ตัวแก้ไขแบบอินไลน์", - "Show the editor": "แสดงตัวแก้ไข", - "Common actions": "การกระทำร่วมกัน", - "Copy": "สำเนา", - "Cut": "ตัด", - "Paste": "แปะ", - "Basic Formatting": "การจัดรูปแบบพื้นฐาน", - "Increase quote level": "ระดับราคาเพิ่มขึ้น", - "Decrease quote level": "ระดับราคาลดลง", - "Image / Video": "ภาพ / วิดีโอ", - "Resize larger": "ปรับขนาดใหญ่ขึ้น", - "Resize smaller": "ปรับขนาดเล็กลง", - "Table": "ตาราง", - "Select table cell": "เลือกเซลล์ตาราง", - "Extend selection one cell": "ขยายการเลือกหนึ่งเซลล์", - "Extend selection one row": "ขยายการเลือกหนึ่งแถว", - "Navigation": "การเดินเรือ", - "Focus popup / toolbar": "โฟกัสป๊อปอัพ / แถบเครื่องมือ", - "Return focus to previous position": "กลับไปยังตำแหน่งก่อนหน้า", - - // Embed.ly - "Embed URL": "ฝัง URL", - "Paste in a URL to embed": "วางใน url เพื่อฝัง", - - // Word Paste. - "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "เนื้อหาที่วางจะมาจากเอกสารคำในแบบ microsoft คุณต้องการเก็บรูปแบบหรือทำความสะอาดหรือไม่?", - "Keep": "เก็บ", - "Clean": "สะอาด", - "Word Paste Detected": "ตรวจพบการวางคำ" - }, - direction: "ltr" -}; - -})); diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/languages/tr.js b/Mobile.Search.Web/Scripts/froala-editor/js/languages/tr.js deleted file mode 100644 index 070b84f..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/languages/tr.js +++ /dev/null @@ -1,318 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = function( root, jQuery ) { - if ( jQuery === undefined ) { - // require('jQuery') returns a factory that requires window to - // build a jQuery instance, we normalize how we use modules - // that require this pattern but the window provided is a noop - // if it's defined (how jquery works) - if ( typeof window !== 'undefined' ) { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - return factory(jQuery); - }; - } else { - // Browser globals - factory(window.jQuery); - } -}(function ($) { -/** - * Turkish - */ - -$.FE.LANGUAGE['tr'] = { - translation: { - // Place holder - "Type something": "Bir \u015fey yaz\u0131n", - - // Basic formatting - "Bold": "Kal\u0131n", - "Italic": "\u0130talik", - "Underline": "Alt\u0131 \u00e7izili", - "Strikethrough": "\u00dcst\u00fc \u00e7izili", - - // Main buttons - "Insert": "Ekle", - "Delete": "Silmek", - "Cancel": "\u0130ptal", - "OK": "Tamam", - "Back": "Geri", - "Remove": "Kald\u0131r", - "More": "Daha", - "Update": "G\u00fcncelle\u015ftirme", - "Style": "Stil", - - // Font - "Font Family": "Yaz\u0131tipi Ailesi", - "Font Size": "Yaz\u0131tipi B\u00fcy\u00fckl\u00fc\u011f\u00fc", - - // Colors - "Colors": "Renkler", - "Background": "Arkaplan", - "Text": "Metin", - "HEX Color": "Altı renkli", - - // Paragraphs - "Paragraph Format": "Bi\u00e7imler", - "Normal": "Normal", - "Code": "Kod", - "Heading 1": "Ba\u015fl\u0131k 1", - "Heading 2": "Ba\u015fl\u0131k 2", - "Heading 3": "Ba\u015fl\u0131k 3", - "Heading 4": "Ba\u015fl\u0131k 4", - - // Style - "Paragraph Style": "Paragraf stili", - "Inline Style": "\u00c7izgide stili", - - // Alignment - "Align": "Hizalama", - "Align Left": "Sola hizala", - "Align Center": "Ortala", - "Align Right": "Sa\u011fa hizala", - "Align Justify": "\u0130ki yana yasla", - "None": "Hi\u00e7biri", - - // Lists - "Ordered List": "S\u0131ral\u0131 liste", - "Unordered List": "S\u0131ras\u0131z liste", - - // Indent - "Decrease Indent": "Girintiyi azalt", - "Increase Indent": "Girintiyi art\u0131r", - - // Links - "Insert Link": "Ba\u011flant\u0131 ekle", - "Open in new tab": "Yeni sekmede a\u00e7", - "Open Link": "Linki a\u00e7", - "Edit Link": "D\u00fczenleme ba\u011flant\u0131s\u0131", - "Unlink": "Ba\u011flant\u0131y\u0131 kald\u0131r", - "Choose Link": "Ba\u011flant\u0131y\u0131 se\u00e7in", - - // Images - "Insert Image": "Resim ekle", - "Upload Image": "Y\u00fckleme g\u00f6r\u00fcnt\u00fcs\u00fc", - "By URL": "URL'ye g\u00f6re", - "Browse": "G\u00f6zat", - "Drop image": "B\u0131rak resim", - "or click": "ya da t\u0131klay\u0131n", - "Manage Images": "G\u00f6r\u00fcnt\u00fcleri y\u00f6netin", - "Loading": "Y\u00fckleniyor", - "Deleting": "Silme", - "Tags": "Etiketler", - "Are you sure? Image will be deleted.": "Emin misin? Resim silinecektir.", - "Replace": "De\u011fi\u015ftirmek", - "Uploading": "Y\u00fckleme", - "Loading image": "Y\u00fckleme g\u00f6r\u00fcnt\u00fcs\u00fc", - "Display": "G\u00f6stermek", - "Inline": "\u00c7izgide", - "Break Text": "K\u0131r\u0131lma metni", - "Alternate Text": "Alternatif metin", - "Change Size": "De\u011fi\u015fim boyutu", - "Width": "Geni\u015flik", - "Height": "Y\u00fckseklik", - "Something went wrong. Please try again.": "Bir \u015feyler yanl\u0131\u015f gitti. L\u00fctfen tekrar deneyin.", - "Image Caption": "Resim yazısı", - "Advanced Edit": "Ileri düzey düzenleme", - - // Video - "Insert Video": "Video ekle", - "Embedded Code": "G\u00f6m\u00fcl\u00fc kod", - "Paste in a video URL": "Bir video URL'sine yapıştırın", - "Drop video": "Video bırak", - "Your browser does not support HTML5 video.": "Tarayıcınız html5 videoyu desteklemez.", - "Upload Video": "Video yükle", - - // Tables - "Insert Table": "Tablo ekle", - "Table Header": "Tablo \u00fcstbilgisi", - "Remove Table": "Tablo kald\u0131rma", - "Table Style": "Tablo stili", - "Horizontal Align": "Yatay hizalama", - "Row": "Sat\u0131r", - "Insert row above": "\u00d6ncesine yeni sat\u0131r ekle", - "Insert row below": "Sonras\u0131na yeni sat\u0131r ekle", - "Delete row": "Sat\u0131r\u0131 sil", - "Column": "S\u00fctun", - "Insert column before": "\u00d6ncesine yeni s\u00fctun ekle", - "Insert column after": "Sonras\u0131na yeni s\u00fctun ekle", - "Delete column": "S\u00fctunu sil", - "Cell": "H\u00fccre", - "Merge cells": "H\u00fccreleri birle\u015ftir", - "Horizontal split": "Yatay b\u00f6l\u00fcnm\u00fc\u015f", - "Vertical split": "Dikey b\u00f6l\u00fcnm\u00fc\u015f", - "Cell Background": "H\u00fccre arka plan\u0131", - "Vertical Align": "Dikey hizalama", - "Top": "\u00dcst", - "Middle": "Orta", - "Bottom": "Alt", - "Align Top": "\u00dcst hizalama", - "Align Middle": "Orta hizalama", - "Align Bottom": "Dibe hizalama", - "Cell Style": "H\u00fccre stili", - - // Files - "Upload File": "Dosya Y\u00fckle", - "Drop file": "B\u0131rak dosya", - - // Emoticons - "Emoticons": "\u0130fadeler", - "Grinning face": "S\u0131r\u0131tan y\u00fcz", - "Grinning face with smiling eyes": "G\u00fclen g\u00f6zlerle y\u00fcz s\u0131r\u0131tarak", - "Face with tears of joy": "Sevin\u00e7 g\u00f6zya\u015flar\u0131yla Y\u00fcz", - "Smiling face with open mouth": "A\u00e7\u0131k a\u011fz\u0131 ile g\u00fcl\u00fcmseyen y\u00fcz\u00fc", - "Smiling face with open mouth and smiling eyes": "A\u00e7\u0131k a\u011fzı ve g\u00fcl\u00fcmseyen g\u00f6zlerle g\u00fcler y\u00fcz", - "Smiling face with open mouth and cold sweat": "A\u00e7\u0131k a\u011fz\u0131 ve so\u011fuk ter ile g\u00fclen y\u00fcz\u00fc", - "Smiling face with open mouth and tightly-closed eyes": "A\u00e7\u0131k a\u011fz\u0131 s\u0131k\u0131ca kapal\u0131 g\u00f6zlerle g\u00fclen y\u00fcz\u00fc", - "Smiling face with halo": "Halo ile y\u00fcz g\u00fclen", - "Smiling face with horns": "Boynuzlar\u0131 ile g\u00fcler y\u00fcz", - "Winking face": "G\u00f6z a\u00e7\u0131p kapay\u0131ncaya y\u00fcz\u00fc", - "Smiling face with smiling eyes": "G\u00fclen g\u00f6zlerle g\u00fcler Y\u00fcz", - "Face savoring delicious food": "Lezzetli yemekler tad\u0131n\u0131 Y\u00fcz", - "Relieved face": "Rahatlad\u0131m y\u00fcz\u00fc", - "Smiling face with heart-shaped eyes": "Kalp \u015feklinde g\u00f6zlerle g\u00fcler y\u00fcz", - "Smiling face with sunglasses": "Kalp \u015feklinde g\u00f6zlerle g\u00fcler y\u00fcz", - "Smirking face": "S\u0131r\u0131tan y\u00fcz", - "Neutral face": "N\u00f6tr y\u00fcz", - "Expressionless face": "Ifadesiz y\u00fcz\u00fc", - "Unamused face": "Kay\u0131ts\u0131z y\u00fcz\u00fc", - "Face with cold sweat": "So\u011fuk terler Y\u00fcz", - "Pensive face": "dalg\u0131n bir y\u00fcz", - "Confused face": "\u015fa\u015fk\u0131n bir y\u00fcz", - "Confounded face": "Ele\u015ftirilmi\u015ftir y\u00fcz\u00fc", - "Kissing face": "\u00f6p\u00fc\u015fme y\u00fcz\u00fc", - "Face throwing a kiss": "Bir \u00f6p\u00fcc\u00fck atma Y\u00fcz", - "Kissing face with smiling eyes": "G\u00fclen g\u00f6zlerle y\u00fcz \u00f6p\u00fc\u015fme", - "Kissing face with closed eyes": "Kapal\u0131 g\u00f6zlerle \u00f6p\u00f6\u015fme y\u00fcz", - "Face with stuck out tongue": "Dilini y\u00fcz ile s\u0131k\u0131\u015fm\u0131\u015f", - "Face with stuck out tongue and winking eye": "\u015ea\u015f\u0131r\u0131p kalm\u0131\u015f d\u0131\u015far\u0131 dil ve g\u00f6z k\u0131rpan y\u00fcz", - "Face with stuck out tongue and tightly-closed eyes": "Y\u00fcz ile dil ve s\u0131k\u0131ca kapal\u0131 g\u00f6zleri s\u0131k\u0131\u015fm\u0131\u015f", - "Disappointed face": "Hayal k\u0131r\u0131kl\u0131\u011f\u0131na y\u00fcz\u00fc", - "Worried face": "Endi\u015feli bir y\u00fcz", - "Angry face": "K\u0131zg\u0131n y\u00fcz", - "Pouting face": "Somurtarak y\u00fcz\u00fc", - "Crying face": "A\u011flayan y\u00fcz", - "Persevering face": "Azmeden y\u00fcz\u00fc", - "Face with look of triumph": "Zafer bak\u0131\u015fla Y\u00fcz", - "Disappointed but relieved face": "Hayal k\u0131r\u0131kl\u0131\u011f\u0131 ama rahatlad\u0131m y\u00fcz", - "Frowning face with open mouth": "A\u00e7\u0131k a\u011fz\u0131 ile \u00e7at\u0131k y\u00fcz\u00fc", - "Anguished face": "Kederli y\u00fcz", - "Fearful face": "Korkulu y\u00fcz\u00fc", - "Weary face": "Yorgun y\u00fcz\u00fc", - "Sleepy face": "Uykulu y\u00fcz\u00fc", - "Tired face": "Yorgun y\u00fcz\u00fc", - "Grimacing face": "Y\u00fcz\u00fcn\u00fc buru\u015fturarak y\u00fcz\u00fc", - "Loudly crying face": "Y\u00fcksek sesle y\u00fcz\u00fc a\u011fl\u0131yor", - "Face with open mouth": "A\u00e7\u0131k a\u011fz\u0131 ile Y\u00fcz", - "Hushed face": "Dingin y\u00fcz\u00fc", - "Face with open mouth and cold sweat": "A\u00e7\u0131k a\u011fz\u0131 ve so\u011fuk ter ile Y\u00fcz", - "Face screaming in fear": "Korku i\u00e7inde \u00e7ı\u011fl\u0131k Y\u00fcz", - "Astonished face": "\u015fa\u015fk\u0131n bir y\u00fcz", - "Flushed face": "K\u0131zarm\u0131\u015f y\u00fcz\u00fc", - "Sleeping face": "Uyuyan y\u00fcz\u00fc", - "Dizzy face": "Ba\u015f\u0131m d\u00f6nd\u00fc y\u00fcz", - "Face without mouth": "A\u011f\u0131z olmadan Y\u00fcz", - "Face with medical mask": "T\u0131bbi maske ile y\u00fcz", - - // Line breaker - "Break": "K\u0131r\u0131lma", - - // Math - "Subscript": "Alt simge", - "Superscript": "\u00dcst simge", - - // Full screen - "Fullscreen": "Tam ekran", - - // Horizontal line - "Insert Horizontal Line": "Yatay \u00e7izgi ekleme", - - // Clear formatting - "Clear Formatting": "Bi\u00e7imlendirme kald\u0131r", - - // Undo, redo - "Undo": "Geri Al", - "Redo": "Yinele", - - // Select all - "Select All": "T\u00fcm\u00fcn\u00fc se\u00e7", - - // Code view - "Code View": "Kod g\u00f6r\u00fcn\u00fcm\u00fc", - - // Quote - "Quote": "Al\u0131nt\u0131", - "Increase": "Art\u0131rmak", - "Decrease": "Azal\u0131\u015f", - - // Quick Insert - "Quick Insert": "H\u0131zl\u0131 insert", - - // Spcial Characters - "Special Characters": "Özel karakterler", - "Latin": "Latince", - "Greek": "Yunan", - "Cyrillic": "Kiril", - "Punctuation": "Noktalama", - "Currency": "Para birimi", - "Arrows": "Oklar", - "Math": "Matematik", - "Misc": "Misc", - - // Print. - "Print": "Baskı", - - // Spell Checker. - "Spell Checker": "Yazım denetleyicisi", - - // Help - "Help": "Yardım et", - "Shortcuts": "Kısayollar", - "Inline Editor": "Satır içi düzenleyici", - "Show the editor": "Editörü gösterin", - "Common actions": "Ortak eylemler", - "Copy": "Kopya", - "Cut": "Kesim", - "Paste": "Yapıştırmak", - "Basic Formatting": "Temel biçimlendirme", - "Increase quote level": "Teklif seviyesini yükselt", - "Decrease quote level": "Teklif seviyesini azalt", - "Image / Video": "Resim / video", - "Resize larger": "Daha büyük yeniden boyutlandır", - "Resize smaller": "Daha küçük boyuta getir", - "Table": "Tablo", - "Select table cell": "Tablo hücresi seç", - "Extend selection one cell": "Seçimi bir hücre genişlet", - "Extend selection one row": "Seçimi bir sıra genişlet", - "Navigation": "Navigasyon", - "Focus popup / toolbar": "Odaklanma açılır penceresi / araç çubuğu", - "Return focus to previous position": "Odaklamaya önceki konumuna geri dönün", - - // Embed.ly - "Embed URL": "URL göm", - "Paste in a URL to embed": "Yerleştirmek için bir URL'ye yapıştırın", - - // Word Paste. - "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Yapıştırılan içerik bir Microsoft Word belgesinden geliyor. Biçimi saklamaya mı yoksa temizlemeyi mi istiyor musun?", - "Keep": "Tutmak", - "Clean": "Temiz", - "Word Paste Detected": "Kelime yapıştırması algılandı" - }, - direction: "ltr" -}; - -})); diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/languages/uk.js b/Mobile.Search.Web/Scripts/froala-editor/js/languages/uk.js deleted file mode 100644 index d1a6b19..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/languages/uk.js +++ /dev/null @@ -1,318 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = function( root, jQuery ) { - if ( jQuery === undefined ) { - // require('jQuery') returns a factory that requires window to - // build a jQuery instance, we normalize how we use modules - // that require this pattern but the window provided is a noop - // if it's defined (how jquery works) - if ( typeof window !== 'undefined' ) { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - return factory(jQuery); - }; - } else { - // Browser globals - factory(window.jQuery); - } -}(function ($) { -/** - * Ukrainian - */ - -$.FE.LANGUAGE['uk'] = { - translation: { - // Place holder - "Type something": "\u041d\u0430\u043f\u0438\u0448\u0456\u0442\u044c \u0431\u0443\u0434\u044c-\u0449\u043e", - - // Basic formatting - "Bold": "\u0416\u0438\u0440\u043d\u0438\u0439", - "Italic": "\u041a\u0443\u0440\u0441\u0438\u0432", - "Underline": "\u041f\u0456\u0434\u043a\u0440\u0435\u0441\u043b\u0435\u043d\u0438\u0439", - "Strikethrough": "\u0417\u0430\u043a\u0440\u0435\u0441\u043b\u0435\u043d\u0438\u0439", - - // Main buttons - "Insert": "\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u0438", - "Delete": "\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438", - "Cancel": "\u0421\u043a\u0430\u0441\u0443\u0432\u0430\u0442\u0438", - "OK": "OK", - "Back": "\u043d\u0430\u0437\u0430\u0434", - "Remove": "\u0432\u0438\u0434\u0430\u043b\u0438\u0442\u0438", - "More": "\u0431\u0456\u043b\u044c\u0448\u0435", - "Update": "\u043e\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f", - "Style": "\u0441\u0442\u0438\u043b\u044c", - - // Font - "Font Family": "\u0428\u0440\u0438\u0444\u0442", - "Font Size": "\u0420\u043e\u0437\u043c\u0456\u0440 \u0448\u0440\u0438\u0444\u0442\u0443", - - // Colors - "Colors": "\u043a\u043e\u043b\u044c\u043e\u0440\u0438", - "Background": "\u0424\u043e\u043d", - "Text": "\u0422\u0435\u043a\u0441\u0442", - "HEX Color": "Шістнадцятковий колір", - - // Paragraphs - "Paragraph Format": "\u0424\u043e\u0440\u043c\u0430\u0442", - "Normal": "\u041d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0438\u0439", - "Code": "\u041a\u043e\u0434", - "Heading 1": "\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 1", - "Heading 2": "\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 2", - "Heading 3": "\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 3", - "Heading 4": "\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 4", - - // Style - "Paragraph Style": "\u043f\u0443\u043d\u043a\u0442 \u0441\u0442\u0438\u043b\u044c", - "Inline Style": "\u0432\u0431\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0439 \u0441\u0442\u0438\u043b\u044c", - - // Alignment - "Align": "\u0412\u0438\u0440\u0456\u0432\u043d\u044e\u0432\u0430\u043d\u043d\u044f", - "Align Left": "\u041f\u043e \u043b\u0456\u0432\u043e\u043c\u0443 \u043a\u0440\u0430\u044e", - "Align Center": "\u041f\u043e \u0446\u0435\u043d\u0442\u0440\u0443", - "Align Right": "\u041f\u043e \u043f\u0440\u0430\u0432\u043e\u043c\u0443 \u043a\u0440\u0430\u044e", - "Align Justify": "\u041f\u043e \u0448\u0438\u0440\u0438\u043d\u0456", - "None": "\u043d\u0456", - - // Lists - "Ordered List": "\u041d\u0443\u043c\u0435\u0440\u043e\u0432\u0430\u043d\u0438\u0439 \u0441\u043f\u0438\u0441\u043e\u043a", - "Unordered List": "\u041c\u0430\u0440\u043a\u043e\u0432\u0430\u043d\u0438\u0439 \u0441\u043f\u0438\u0441\u043e\u043a", - - // Indent - "Decrease Indent": "\u0417\u043c\u0435\u043d\u0448\u0438\u0442\u0438 \u0432\u0456\u0434\u0441\u0442\u0443\u043f", - "Increase Indent": "\u0417\u0431\u0456\u043b\u044c\u0448\u0438\u0442\u0438 \u0432\u0456\u0434\u0441\u0442\u0443\u043f", - - // Links - "Insert Link": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u043f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f", - "Open in new tab": "\u0412\u0456\u0434\u043a\u0440\u0438\u0442\u0438 \u0432 \u043d\u043e\u0432\u0456\u0439 \u0432\u043a\u043b\u0430\u0434\u0446\u0456", - "Open Link": "\u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0438 \u043f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f", - "Edit Link": "\u0440\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438 \u043f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f", - "Unlink": "\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u043f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f", - "Choose Link": "\u0412\u0438\u0431\u0435\u0440\u0456\u0442\u044c \u043f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f", - - // Images - "Insert Image": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f", - "Upload Image": "\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u0438 \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f", - "By URL": "\u0437\u0430 URL", - "Browse": "\u043f\u0435\u0440\u0435\u0433\u043b\u044f\u0434\u0430\u0442\u0438", - "Drop image": "\u041f\u0435\u0440\u0435\u043c\u0456\u0441\u0442\u0456\u0442\u044c \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f \u0441\u044e\u0434\u0438", - "or click": "\u0430\u0431\u043e \u043d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c", - "Manage Images": "\u041a\u0435\u0440\u0443\u0432\u0430\u043d\u043d\u044f \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f\u043c\u0438", - "Loading": "\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0435\u043d\u043d\u044f", - "Deleting": "\u0432\u0438\u0434\u0430\u043b\u0435\u043d\u043d\u044f", - "Tags": "\u043a\u043b\u044e\u0447\u043e\u0432\u0456 \u0441\u043b\u043e\u0432\u0430", - "Are you sure? Image will be deleted.": "\u0412\u0438 \u0432\u043f\u0435\u0432\u043d\u0435\u043d\u0456? \u0417\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f \u0431\u0443\u0434\u0435 \u0432\u0438\u0434\u0430\u043b\u0435\u043d\u043e.", - "Replace": "\u0437\u0430\u043c\u0456\u043d\u044e\u0432\u0430\u0442\u0438", - "Uploading": "\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0435\u043d\u043d\u044f", - "Loading image": "\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0435\u043d\u043d\u044f \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u044c", - "Display": "\u0434\u0438\u0441\u043f\u043b\u0435\u0439", - "Inline": "\u0412 \u043b\u0456\u043d\u0456\u044e", - "Break Text": "\u043f\u0435\u0440\u0435\u0440\u0432\u0430 \u0442\u0435\u043a\u0441\u0442", - "Alternate Text": "\u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u0438\u0439 \u0442\u0435\u043a\u0441\u0442", - "Change Size": "\u0437\u043c\u0456\u043d\u0438\u0442\u0438 \u0440\u043e\u0437\u043c\u0456\u0440", - "Width": "\u0428\u0438\u0440\u0438\u043d\u0430", - "Height": "\u0412\u0438\u0441\u043e\u0442\u0430", - "Something went wrong. Please try again.": "\u0429\u043e\u0441\u044c \u043f\u0456\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a. \u0411\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430 \u0441\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0449\u0435 \u0440\u0430\u0437.", - "Image Caption": "Заголовок зображення", - "Advanced Edit": "Розширений редагування", - - // Video - "Insert Video": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0432\u0456\u0434\u0435\u043e", - "Embedded Code": "\u0432\u0431\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0439 \u043a\u043e\u0434", - "Paste in a video URL": "Вставте в відео-URL", - "Drop video": "Перетягніть відео", - "Your browser does not support HTML5 video.": "Ваш браузер не підтримує відео html5.", - "Upload Video": "Завантажити відео", - - // Tables - "Insert Table": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044e", - "Table Header": "\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0442\u0430\u0431\u043b\u0438\u0446\u0456", - "Remove Table": "\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u0456", - "Table Style": "\u0421\u0442\u0438\u043b\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0456", - "Horizontal Align": "\u0413\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u0435 \u0432\u0438\u0440\u0456\u0432\u043d\u044e\u0432\u0430\u043d\u043d\u044f", - "Row": "\u0420\u044f\u0434\u043e\u043a", - "Insert row above": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u043f\u043e\u0440\u043e\u0436\u043d\u0456\u0439 \u0440\u044f\u0434\u043e\u043a \u0437\u0432\u0435\u0440\u0445\u0443", - "Insert row below": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u043f\u043e\u0440\u043e\u0436\u043d\u0456\u0439 \u0440\u044f\u0434\u043e\u043a \u0437\u043d\u0438\u0437\u0443", - "Delete row": "\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u0440\u044f\u0434\u043e\u043a", - "Column": "\u0421\u0442\u043e\u0432\u043f\u0435\u0446\u044c", - "Insert column before": "\u0414\u043e\u0434\u0430\u0442\u0438 \u0441\u0442\u043e\u0432\u043f\u0435\u0446\u044c \u043b\u0456\u0432\u043e\u0440\u0443\u0447", - "Insert column after": "\u0414\u043e\u0434\u0430\u0442\u0438 \u0441\u0442\u043e\u0432\u043f\u0435\u0446\u044c \u043f\u0440\u0430\u0432\u043e\u0440\u0443\u0447", - "Delete column": "\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u0441\u0442\u043e\u0432\u043f\u0435\u0446\u044c", - "Cell": "\u041a\u043e\u043c\u0456\u0440\u043a\u0430", - "Merge cells": "\u041e\u0431'\u0454\u0434\u043d\u0430\u0442\u0438 \u043a\u043e\u043c\u0456\u0440\u043a\u0438", - "Horizontal split": "\u0420\u043e\u0437\u0434\u0456\u043b\u0438\u0442\u0438 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e", - "Vertical split": "\u0420\u043e\u0437\u0434\u0456\u043b\u0438\u0442\u0438 \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e", - "Cell Background": "\u0441\u0442\u0456\u043b\u044c\u043d\u0438\u043a\u043e\u0432\u0438\u0439 \u0444\u043e\u043d", - "Vertical Align": "\u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u0430 \u0432\u0438\u0440\u0456\u0432\u043d\u044e\u0432\u0430\u043d\u043d\u044f", - "Top": "\u0422\u043e\u043f", - "Middle": "\u0441\u0435\u0440\u0435\u0434\u043d\u0456\u0439", - "Bottom": "\u0434\u043d\u043e", - "Align Top": "\u0417\u0456\u0441\u0442\u0430\u0432\u0442\u0435 \u0432\u0435\u0440\u0445\u043d\u044e", - "Align Middle": "\u0432\u0438\u0440\u0456\u0432\u043d\u044f\u0442\u0438 \u043f\u043e \u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0456", - "Align Bottom": "\u0417\u0456\u0441\u0442\u0430\u0432\u0442\u0435 \u043d\u0438\u0436\u043d\u044e", - "Cell Style": "\u0441\u0442\u0438\u043b\u044c \u043a\u043e\u043c\u0456\u0440\u043a\u0438", - - // Files - "Upload File": "\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u0438 \u0444\u0430\u0439\u043b", - "Drop file": "\u041f\u0435\u0440\u0435\u043c\u0456\u0441\u0442\u0456\u0442\u044c \u0444\u0430\u0439\u043b \u0441\u044e\u0434\u0438", - - // Emoticons - "Emoticons": "\u0441\u043c\u0430\u0439\u043b\u0438", - "Grinning face": "\u043f\u043e\u0441\u043c\u0456\u0445\u043d\u0443\u0432\u0448\u0438\u0441\u044c \u043e\u0441\u043e\u0431\u0430", - "Grinning face with smiling eyes": "\u041f\u043e\u0441\u043c\u0456\u0445\u043d\u0443\u0432\u0448\u0438\u0441\u044c \u043e\u0441\u043e\u0431\u0430 \u0437 \u0443\u0441\u043c\u0456\u0445\u043d\u0435\u043d\u0438\u043c\u0438 \u043e\u0447\u0438\u043c\u0430", - "Face with tears of joy": "\u041e\u0431\u043b\u0438\u0447\u0447\u044f \u0437\u0456 \u0441\u043b\u044c\u043e\u0437\u0430\u043c\u0438 \u0440\u0430\u0434\u043e\u0441\u0442\u0456", - "Smiling face with open mouth": "\u0423\u0441\u043c\u0456\u0445\u043d\u0435\u043d\u0435 \u043e\u0431\u043b\u0438\u0447\u0447\u044f \u0437 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0438\u043c \u0440\u043e\u0442\u043e\u043c", - "Smiling face with open mouth and smiling eyes": "\u041f\u043e\u0441\u043c\u0456\u0445\u0430\u044e\u0447\u0438\u0441\u044c \u043e\u0441\u043e\u0431\u0430 \u0437 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0438\u043c \u0440\u043e\u0442\u043e\u043c \u0456 ", - "Smiling face with open mouth and cold sweat": "\u041f\u043e\u0441\u043c\u0456\u0445\u0430\u044e\u0447\u0438\u0441\u044c \u043e\u0441\u043e\u0431\u0430 \u0437 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0438\u043c \u0440\u043e\u0442\u043e\u043c \u0456 ", - "Smiling face with open mouth and tightly-closed eyes": "\u041f\u043e\u0441\u043c\u0456\u0445\u0430\u044e\u0447\u0438\u0441\u044c \u043e\u0441\u043e\u0431\u0430 \u0437 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0438\u043c \u0440\u043e\u0442\u043e\u043c \u0456 \u0449\u0456\u043b\u044c\u043d\u043e \u0437\u0430\u043a\u0440\u0438\u0442\u0438\u043c\u0438 \u043e\u0447\u0438\u043c\u0430", - "Smiling face with halo": "\u041f\u043e\u0441\u043c\u0456\u0445\u0430\u044e\u0447\u0438\u0441\u044c \u043e\u0441\u043e\u0431\u0430 \u0433\u0430\u043b\u043e", - "Smiling face with horns": "\u041f\u043e\u0441\u043c\u0456\u0445\u0430\u044e\u0447\u0438\u0441\u044c \u043e\u0441\u043e\u0431\u0430 \u0437 \u0440\u043e\u0433\u0430\u043c\u0438", - "Winking face": "\u043f\u0456\u0434\u043c\u043e\u0440\u0433\u0443\u044e\u0447\u0438 \u043e\u0441\u043e\u0431\u0430", - "Smiling face with smiling eyes": "\u041f\u043e\u0441\u043c\u0456\u0445\u0430\u044e\u0447\u0438\u0441\u044c \u043e\u0441\u043e\u0431\u0430 \u0437 \u0443\u0441\u043c\u0456\u0445\u043d\u0435\u043d\u0438\u043c\u0438 \u043e\u0447\u0438\u043c\u0430", - "Face savoring delicious food": "\u041e\u0441\u043e\u0431\u0430 \u0441\u043c\u0430\u043a\u0443\u044e\u0447\u0438 \u0441\u043c\u0430\u0447\u043d\u0443 \u0457\u0436\u0443", - "Relieved face": "\u0437\u0432\u0456\u043b\u044c\u043d\u0435\u043d\u043e \u043e\u0441\u043e\u0431\u0430", - "Smiling face with heart-shaped eyes": "\u041f\u043e\u0441\u043c\u0456\u0445\u0430\u044e\u0447\u0438\u0441\u044c \u043e\u0441\u043e\u0431\u0430 \u0443 \u0444\u043e\u0440\u043c\u0456 \u0441\u0435\u0440\u0446\u044f \u043e\u0447\u0438\u043c\u0430", - "Smiling face with sunglasses": "\u0053\u006d\u0069\u006c\u0069\u006e\u0067 \u0066\u0061\u0063\u0065 \u0077\u0069\u0074\u0068 \u0073\u0075\u006e\u0067\u006c\u0061\u0073\u0073\u0065\u0073", - "Smirking face": "\u043f\u043e\u0441\u043c\u0456\u0445\u043d\u0443\u0432\u0448\u0438\u0441\u044c \u043e\u0441\u043e\u0431\u0430", - "Neutral face": "\u0437\u0432\u0438\u0447\u0430\u0439\u043d\u0438\u0439 \u043e\u0441\u043e\u0431\u0430", - "Expressionless face": "\u043d\u0435\u0432\u0438\u0440\u0430\u0437\u043d\u0456 \u043e\u0431\u043b\u0438\u0447\u0447\u044f", - "Unamused face": "\u0055\u006e\u0061\u006d\u0075\u0073\u0065\u0064 \u043e\u0441\u043e\u0431\u0430", - "Face with cold sweat": "\u041e\u0441\u043e\u0431\u0430 \u0437 \u0445\u043e\u043b\u043e\u0434\u043d\u043e\u0433\u043e \u043f\u043e\u0442\u0443", - "Pensive face": "\u0437\u0430\u043c\u0438\u0441\u043b\u0435\u043d\u0438\u0439 \u043e\u0441\u043e\u0431\u0430", - "Confused face": "\u043f\u043b\u0443\u0442\u0430\u0442\u0438 \u043e\u0441\u043e\u0431\u0430", - "Confounded face": "\u043d\u0435\u0445\u0430\u0439 \u043f\u043e\u0441\u043e\u0440\u043e\u043c\u043b\u044f\u0442\u044c\u0441\u044f \u043e\u0441\u043e\u0431\u0430", - "Kissing face": "\u043f\u043e\u0446\u0456\u043b\u0443\u043d\u043a\u0438 \u043e\u0441\u043e\u0431\u0430", - "Face throwing a kiss": "\u041e\u0441\u043e\u0431\u0430 \u043a\u0438\u0434\u0430\u043b\u0438 \u043f\u043e\u0446\u0456\u043b\u0443\u043d\u043e\u043a", - "Kissing face with smiling eyes": "\u041f\u043e\u0446\u0456\u043b\u0443\u043d\u043a\u0438 \u043e\u0441\u043e\u0431\u0430 \u0437 \u0443\u0441\u043c\u0456\u0445\u043d\u0435\u043d\u0438\u043c\u0438 \u043e\u0447\u0438\u043c\u0430", - "Kissing face with closed eyes": "\u041f\u043e\u0446\u0456\u043b\u0443\u043d\u043a\u0438 \u043e\u0431\u043b\u0438\u0447\u0447\u044f \u0437 \u0437\u0430\u043f\u043b\u044e\u0449\u0435\u043d\u0438\u043c\u0438 \u043e\u0447\u0438\u043c\u0430", - "Face with stuck out tongue": "\u041e\u0431\u043b\u0438\u0447\u0447\u044f \u0437 \u0441\u0442\u0438\u0440\u0447\u0430\u043b\u0438 \u044f\u0437\u0438\u043a", - "Face with stuck out tongue and winking eye": "\u041e\u0431\u043b\u0438\u0447\u0447\u044f \u0437 \u0441\u0442\u0438\u0440\u0447\u0430\u043b\u0438 \u044f\u0437\u0438\u043a\u0430 \u0456 \u0410\u043d\u0456\u043c\u043e\u0432\u0430\u043d\u0435 \u043e\u0447\u0435\u0439", - "Face with stuck out tongue and tightly-closed eyes": "\u041e\u0431\u043b\u0438\u0447\u0447\u044f \u0437 \u0441\u0442\u0438\u0440\u0447\u0430\u043b\u0438 \u044f\u0437\u0438\u043a\u0430 \u0456 \u0449\u0456\u043b\u044c\u043d\u043e \u0437\u0430\u043a\u0440\u0438\u0442\u0456 \u043e\u0447\u0456", - "Disappointed face": "\u0440\u043e\u0437\u0447\u0430\u0440\u043e\u0432\u0430\u043d\u0438\u0439 \u043e\u0441\u043e\u0431\u0430", - "Worried face": "\u0441\u0442\u0443\u0440\u0431\u043e\u0432\u0430\u043d\u0438\u0439 \u043e\u0441\u043e\u0431\u0430", - "Angry face": "\u0437\u043b\u0438\u0439 \u043e\u0441\u043e\u0431\u0430", - "Pouting face": "\u043f\u0443\u0445\u043a\u0456 \u043e\u0441\u043e\u0431\u0430", - "Crying face": "\u043f\u043b\u0430\u0447 \u043e\u0441\u043e\u0431\u0430", - "Persevering face": "\u043d\u0430\u043f\u043e\u043b\u0435\u0433\u043b\u0438\u0432\u0430 \u043e\u0441\u043e\u0431\u0430", - "Face with look of triumph": "\u041e\u0441\u043e\u0431\u0430 \u0437 \u0432\u0438\u0434\u043e\u043c \u0442\u0440\u0456\u0443\u043c\u0444\u0443", - "Disappointed but relieved face": "\u0420\u043e\u0437\u0447\u0430\u0440\u043e\u0432\u0430\u043d\u0438\u0439\u002c \u0430\u043b\u0435 \u0437\u0432\u0456\u043b\u044c\u043d\u0435\u043d\u0438\u0439 \u043e\u0441\u043e\u0431\u0430", - "Frowning face with open mouth": "\u041d\u0430\u0441\u0443\u043f\u0438\u0432\u0448\u0438\u0441\u044c \u043e\u0441\u043e\u0431\u0430 \u0437 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0438\u043c \u0440\u043e\u0442\u043e\u043c", - "Anguished face": "\u0431\u043e\u043b\u0456\u0441\u043d\u0438\u0439 \u043e\u0441\u043e\u0431\u0430", - "Fearful face": "\u043f\u043e\u0431\u043e\u044e\u044e\u0447\u0438\u0441\u044c \u043e\u0441\u043e\u0431\u0430", - "Weary face": "\u0432\u0442\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u043e\u0441\u043e\u0431\u0430", - "Sleepy face": "сонне обличчя", - "Tired face": "\u0432\u0442\u043e\u043c\u0438\u043b\u0438\u0441\u044f \u043e\u0441\u043e\u0431\u0430", - "Grimacing face": "\u0433\u0440\u0438\u043c\u0430\u0441\u0443\u044e\u0447\u0438 \u043e\u0441\u043e\u0431\u0430", - "Loudly crying face": "\u004c\u006f\u0075\u0064\u006c\u0079 \u0063\u0072\u0079\u0069\u006e\u0067 \u0066\u0061\u0063\u0065", - "Face with open mouth": "\u041e\u0441\u043e\u0431\u0430 \u0437 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0438\u043c \u0440\u043e\u0442\u043e\u043c", - "Hushed face": "\u0437\u0430\u0442\u0438\u0445 \u043e\u0441\u043e\u0431\u0430", - "Face with open mouth and cold sweat": "\u041e\u0441\u043e\u0431\u0430 \u0437 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0438\u043c \u0440\u043e\u0442\u043e\u043c \u0456 \u0445\u043e\u043b\u043e\u0434\u043d\u0438\u0439 \u043f\u0456\u0442", - "Face screaming in fear": "\u041e\u0441\u043e\u0431\u0430 \u043a\u0440\u0438\u0447\u0430\u0442\u0438 \u0432 \u0441\u0442\u0440\u0430\u0445\u0443", - "Astonished face": "\u0437\u0434\u0438\u0432\u043e\u0432\u0430\u043d\u0438\u0439 \u043e\u0441\u043e\u0431\u0430", - "Flushed face": "\u043f\u0440\u0438\u043f\u043b\u0438\u0432 \u043a\u0440\u043e\u0432\u0456 \u0434\u043e \u043e\u0431\u043b\u0438\u0447\u0447\u044f", - "Sleeping face": "\u0421\u043f\u043b\u044f\u0447\u0430 \u043e\u0441\u043e\u0431\u0430", - "Dizzy face": "\u0414\u0456\u0437\u0437\u0456 \u043e\u0441\u043e\u0431\u0430", - "Face without mouth": "\u041e\u0441\u043e\u0431\u0430 \u0431\u0435\u0437 \u0440\u043e\u0442\u0430", - "Face with medical mask": "\u041e\u0441\u043e\u0431\u0430 \u0437 \u043c\u0435\u0434\u0438\u0447\u043d\u043e\u044e \u043c\u0430\u0441\u043a\u043e\u044e", - - // Line breaker - "Break": "\u0437\u043b\u043e\u043c\u0438\u0442\u0438", - - // Math - "Subscript": "\u043f\u0456\u0434\u0440\u044f\u0434\u043a\u043e\u0432\u0438\u0439", - "Superscript": "\u043d\u0430\u0434\u0440\u044f\u0434\u043a\u043e\u0432\u0438\u0439 \u0441\u0438\u043c\u0432\u043e\u043b", - - // Full screen - "Fullscreen": "\u043f\u043e\u0432\u043d\u043e\u0435\u043a\u0440\u0430\u043d\u043d\u0438\u0439 \u0440\u0435\u0436\u0438\u043c", - - // Horizontal line - "Insert Horizontal Line": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u0443 \u043b\u0456\u043d\u0456\u044e", - - // Clear formatting - "Clear Formatting": "\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u0438 \u0444\u043e\u0440\u043c\u0430\u0442\u0443\u0432\u0430\u043d\u043d\u044f", - - // Undo, redo - "Undo": "\u0421\u043a\u0430\u0441\u0443\u0432\u0430\u0442\u0438", - "Redo": "\u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0438", - - // Select all - "Select All": "\u0412\u0438\u0431\u0440\u0430\u0442\u0438 \u0432\u0441\u0435", - - // Code view - "Code View": "\u041f\u0435\u0440\u0435\u0433\u043b\u044f\u0434 \u043a\u043e\u0434\u0443", - - // Quote - "Quote": "\u0426\u0438\u0442\u0430\u0442\u0430", - "Increase": "\u0417\u0431\u0456\u043b\u044c\u0448\u0438\u0442\u0438", - "Decrease": "\u0437\u043d\u0438\u0436\u0435\u043d\u043d\u044f", - - // Quick Insert - "Quick Insert": "\u0428\u0432\u0438\u0434\u043a\u0438\u0439 \u0432\u0441\u0442\u0430\u0432\u043a\u0430", - - // Spcial Characters - "Special Characters": "Спеціальні символи", - "Latin": "Латинський", - "Greek": "Грецький", - "Cyrillic": "Кирилиця", - "Punctuation": "Пунктуація", - "Currency": "Валюта", - "Arrows": "Стріли", - "Math": "Математика", - "Misc": "Різне", - - // Print. - "Print": "Друкувати", - - // Spell Checker. - "Spell Checker": "Перевірка орфографії", - - // Help - "Help": "Допомогти", - "Shortcuts": "Ярлики", - "Inline Editor": "Вбудований редактор", - "Show the editor": "Показати редактору", - "Common actions": "Спільні дії", - "Copy": "Скопіювати", - "Cut": "Вирізати", - "Paste": "Вставити", - "Basic Formatting": "Основне форматування", - "Increase quote level": "Збільшити рівень цитування", - "Decrease quote level": "Знизити рівень цитування", - "Image / Video": "Зображення / відео", - "Resize larger": "Змінити розмір більше", - "Resize smaller": "Змінити розмір менше", - "Table": "Стіл", - "Select table cell": "Виберіть комірку таблиці", - "Extend selection one cell": "Продовжити виділення однієї комірки", - "Extend selection one row": "Продовжити виділення одного рядка", - "Navigation": "Навігація", - "Focus popup / toolbar": "Фокус спливаюче / панель інструментів", - "Return focus to previous position": "Поверніть фокус на попередню позицію", - - // Embed.ly - "Embed URL": "Вставити URL-адресу", - "Paste in a URL to embed": "Вставте в url, щоб вставити", - - // Word Paste. - "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Вставлений вміст надходить з документу Microsoft Word. ви хочете зберегти формат чи очистити його?", - "Keep": "Тримати", - "Clean": "Чистий", - "Word Paste Detected": "Слово паста виявлено" - }, - direction: "ltr" -}; - -})); diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/languages/vi.js b/Mobile.Search.Web/Scripts/froala-editor/js/languages/vi.js deleted file mode 100644 index 4e6a39c..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/languages/vi.js +++ /dev/null @@ -1,258 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = function( root, jQuery ) { - if ( jQuery === undefined ) { - // require('jQuery') returns a factory that requires window to - // build a jQuery instance, we normalize how we use modules - // that require this pattern but the window provided is a noop - // if it's defined (how jquery works) - if ( typeof window !== 'undefined' ) { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - return factory(jQuery); - }; - } else { - // Browser globals - factory(window.jQuery); - } -}(function ($) { -$.FE.LANGUAGE['vi'] = { - translation: { - // Place holder - "Type something": "Vi\u1EBFt \u0111i\u1EC1u g\u00EC \u0111\u00F3...", - - // Basic formatting - "Bold": "\u0110\u1EADm", - "Italic": "Nghi\u00EAng", - "Underline": "G\u1EA1ch ch\u00E2n", - "Strikethrough": "G\u1EA1ch ngang ch\u1EEF", - - // Main buttons - "Insert": "Ch\u00E8n", - "Delete": "X\u00F3a", - "Cancel": "H\u1EE7y", - "OK": "OK", - "Back": "Tr\u1EDF v\u1EC1", - "Remove": "X\u00F3a", - "More": "Th\u00EAm", - "Update": "C\u1EADp nh\u1EADt", - "Style": "Ki\u1EC3u", - - // Font - "Font Family": "Ph\u00F4ng ch\u1EEF", - "Font Size": "C\u1EE1 ch\u1EEF", - - // Colors - "Colors": "M\u00E0u s\u1EAFc", - "Background": "N\u1EC1n", - "Text": "Ch\u1EEF", - "HEX Color": "Màu hex", - - // Paragraphs - "Paragraph Format": "\u0110\u1ECBnh d\u1EA1ng \u0111o\u1EA1n v\u0103n b\u1EA3n", - "Normal": "Normal", - "Code": "Code", - "Heading 1": "Heading 1", - "Heading 2": "Heading 2", - "Heading 3": "Heading 3", - "Heading 4": "Heading 4", - - // Style - "Paragraph Style": "Ki\u1EC3u \u0111o\u1EA1n v\u0103n b\u1EA3n", - "Inline Style": "Ki\u1EC3u d\u00F2ng", - - // Alignment - "Align": "C\u0103n ch\u1EC9nh", - "Align Left": "C\u0103n tr\u00E1i", - "Align Center": "C\u0103n gi\u1EEFa", - "Align Right": "C\u0103n ph\u1EA3i", - "Align Justify": "C\u0103n \u0111\u1EC1u", - "None": "Kh\u00F4ng", - - // Lists - "Ordered List": "Danh s\u00E1ch theo th\u1EE9 t\u1EF1", - "Unordered List": "Danh s\u00E1ch li\u1EC7t k\u00EA", - - // Indent - "Decrease Indent": "Gi\u1EA3m c\u0103n l\u1EC1", - "Increase Indent": "T\u0103ng c\u0103n l\u1EC1", - - // Links - "Insert Link": "Ch\u00E8n link", - "Open in new tab": "M\u1EDF trong tab m\u1EDBi", - "Open Link": "M\u1EDF link", - "Edit Link": "S\u1EEDa link", - "Unlink": "B\u1ECF link", - "Choose Link": "Ch\u1ECDn link", - - // Images - "Insert Image": "Ch\u00E8n h\u00ECnh", - "Upload Image": "T\u1EA3i h\u00ECnh l\u00EAn", - "By URL": "B\u1EB1ng URL", - "Browse": "Duy\u1EC7t file", - "Drop image": "K\u00E9o th\u1EA3 h\u00ECnh", - "or click": "ho\u1EB7c ch\u1ECDn", - "Manage Images": "Qu\u1EA3n l\u00FD h\u00ECnh \u1EA3nh", - "Loading": "\u0110ang t\u1EA3i", - "Deleting": "\u0110ang x\u00F3a", - "Tags": "Tags", - "Are you sure? Image will be deleted.": "B\u1EA1n c\u00F3 ch\u1EAFc ch\u1EAFn? H\u00ECnh \u1EA3nh s\u1EBD b\u1ECB x\u00F3a.", - "Replace": "Thay th\u1EBF", - "Uploading": "\u0110ang t\u1EA3i l\u00EAn", - "Loading image": "\u0110ang t\u1EA3i h\u00ECnh \u1EA3nh", - "Display": "Hi\u1EC3n th\u1ECB", - "Inline": "C\u00F9ng d\u00F2ng v\u1EDBi ch\u1EEF", - "Break Text": "Kh\u00F4ng c\u00F9ng d\u00F2ng v\u1EDBi ch\u1EEF", - "Alternate Text": "Thay th\u1EBF ch\u1EEF", - "Change Size": "Thay \u0111\u1ED5i k\u00EDch c\u1EE1", - "Width": "Chi\u1EC1u r\u1ED9ng", - "Height": "Chi\u1EC1u cao", - "Something went wrong. Please try again.": "C\u00F3 l\u1ED7i x\u1EA3y ra. Vui l\u00F2ng th\u1EED l\u1EA1i sau.", - "Image Caption": "Chú thích hình ảnh", - "Advanced Edit": "Chỉnh sửa tiên tiến", - - // Video - "Insert Video": "Ch\u00E8n video", - "Embedded Code": "M\u00E3 nh\u00FAng", - "Paste in a video URL": "Dán vào một url video", - "Drop video": "Thả video", - "Your browser does not support HTML5 video.": "Trình duyệt của bạn không hỗ trợ video html5.", - "Upload Video": "Tải video lên", - - // Tables - "Insert Table": "Ch\u00E8n b\u1EA3ng", - "Table Header": "D\u00F2ng \u0111\u1EA7u b\u1EA3ng", - "Remove Table": "X\u00F3a b\u1EA3ng", - "Table Style": "Ki\u1EC3u b\u1EA3ng", - "Horizontal Align": "C\u0103n ch\u1EC9nh chi\u1EC1u ngang", - "Row": "D\u00F2ng", - "Insert row above": "Ch\u00E8n d\u00F2ng ph\u00EDa tr\u00EAn", - "Insert row below": "Ch\u00E8n d\u00F2ng ph\u00EDa d\u01B0\u1EDBi", - "Delete row": "X\u00F3a d\u00F2ng", - "Column": "C\u1ED9t", - "Insert column before": "Ch\u00E8n c\u1ED9t b\u00EAn tr\u00E1i", - "Insert column after": "Ch\u00E8n c\u1ED9t b\u00EAn ph\u1EA3i", - "Delete column": "X\u00F3a c\u1ED9t", - "Cell": "\u00D4 b\u1EA3ng", - "Merge cells": "G\u1ED9p \u00F4", - "Horizontal split": "Chia d\u00F2ng", - "Vertical split": "Chia c\u1ED9t", - "Cell Background": "M\u00E0u n\u1EC1n", - "Vertical Align": "C\u0103n ch\u1EC9nh chi\u1EC1u d\u1ECDc", - "Top": "Tr\u00EAn c\u00F9ng", - "Middle": "Gi\u1EEFa", - "Bottom": "D\u01B0\u1EDBi \u0111\u00E1y", - "Align Top": "C\u0103n tr\u00EAn", - "Align Middle": "C\u0103n gi\u1EEFa", - "Align Bottom": "C\u0103n d\u01B0\u1EDBi", - "Cell Style": "Ki\u1EC3u \u00F4", - - // Files - "Upload File": "T\u1EA3i file l\u00EAn", - "Drop file": "K\u00E9o th\u1EA3 file", - - // Emoticons - "Emoticons": "Bi\u1EC3u t\u01B0\u1EE3ng c\u1EA3m x\u00FAc", - - // Line breaker - "Break": "Ng\u1EAFt d\u00F2ng", - - // Math - "Subscript": "Subscript", - "Superscript": "Superscript", - - // Full screen - "Fullscreen": "To\u00E0n m\u00E0n h\u00ECnh", - - // Horizontal line - "Insert Horizontal Line": "Ch\u00E8n \u0111\u01B0\u1EDDng k\u1EBB ngang v\u0103n b\u1EA3n", - - // Clear formatting - "Clear Formatting": "X\u00F3a \u0111\u1ECBnh d\u1EA1ng", - - // Undo, redo - "Undo": "Undo", - "Redo": "Redo", - - // Select all - "Select All": "Ch\u1ECDn t\u1EA5t c\u1EA3", - - // Code view - "Code View": "Xem d\u1EA1ng code", - - // Quote - "Quote": "Tr\u00EDch d\u1EABn", - "Increase": "T\u0103ng", - "Decrease": "Gi\u1EA3m", - - // Quick Insert - "Quick Insert": "Ch\u00E8n nhanh", - - // Spcial Characters - "Special Characters": "Nhân vật đặc biệt", - "Latin": "Latin", - "Greek": "Người Hy Lạp", - "Cyrillic": "Chữ viết tay", - "Punctuation": "Chấm câu", - "Currency": "Tiền tệ", - "Arrows": "Mũi tên", - "Math": "Môn Toán", - "Misc": "Misc", - - // Print. - "Print": "In", - - // Spell Checker. - "Spell Checker": "Công cụ kiểm tra chính tả", - - // Help - "Help": "Cứu giúp", - "Shortcuts": "Phím tắt", - "Inline Editor": "Trình biên tập nội tuyến", - "Show the editor": "Hiển thị trình soạn thảo", - "Common actions": "Hành động thông thường", - "Copy": "Sao chép", - "Cut": "Cắt tỉa", - "Paste": "Dán", - "Basic Formatting": "Định dạng cơ bản", - "Increase quote level": "Tăng mức báo giá", - "Decrease quote level": "Giảm mức giá", - "Image / Video": "Hình ảnh / video", - "Resize larger": "Thay đổi kích thước lớn hơn", - "Resize smaller": "Thay đổi kích thước nhỏ hơn", - "Table": "Bàn", - "Select table cell": "Chọn ô trong bảng", - "Extend selection one cell": "Mở rộng lựa chọn một ô", - "Extend selection one row": "Mở rộng lựa chọn một hàng", - "Navigation": "Dẫn đường", - "Focus popup / toolbar": "Tập trung popup / thanh công cụ", - "Return focus to previous position": "Quay trở lại vị trí trước", - - // Embed.ly - "Embed URL": "Url nhúng", - "Paste in a URL to embed": "Dán vào một url để nhúng", - - // Word Paste. - "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Nội dung dán là đến từ một tài liệu từ microsoft. bạn có muốn giữ định dạng hoặc làm sạch nó?", - "Keep": "Giữ", - "Clean": "Dọn dẹp", - "Word Paste Detected": "Dán từ được phát hiện" - }, - direction: "ltr" -}; - -})); diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/languages/zh_cn.js b/Mobile.Search.Web/Scripts/froala-editor/js/languages/zh_cn.js deleted file mode 100644 index f5e4587..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/languages/zh_cn.js +++ /dev/null @@ -1,318 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = function( root, jQuery ) { - if ( jQuery === undefined ) { - // require('jQuery') returns a factory that requires window to - // build a jQuery instance, we normalize how we use modules - // that require this pattern but the window provided is a noop - // if it's defined (how jquery works) - if ( typeof window !== 'undefined' ) { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - return factory(jQuery); - }; - } else { - // Browser globals - factory(window.jQuery); - } -}(function ($) { -/** - * Simplified Chinese spoken in China. - */ - -$.FE.LANGUAGE['zh_cn'] = { - translation: { - // Place holder - "Type something": "\u8f93\u5165\u4e00\u4e9b\u5185\u5bb9", - - // Basic formatting - "Bold": "\u7c97\u4f53", - "Italic": "\u659c\u4f53", - "Underline": "\u4e0b\u5212\u7ebf", - "Strikethrough": "\u5220\u9664\u7ebf", - - // Main buttons - "Insert": "\u63d2\u5165", - "Delete": "\u5220\u9664", - "Cancel": "\u53d6\u6d88", - "OK": "\u786e\u5b9a", - "Back": "\u80cc\u90e8", - "Remove": "\u53bb\u6389", - "More": "\u66f4\u591a", - "Update": "\u66f4\u65b0", - "Style": "\u98ce\u683c", - - // Font - "Font Family": "\u5b57\u4f53", - "Font Size": "\u5b57\u53f7", - - // Colors - "Colors": "\u989c\u8272", - "Background": "\u80cc\u666f", - "Text": "\u6587\u5b57", - "HEX Color": "十六进制颜色", - - // Paragraphs - "Paragraph Format": "\u683c\u5f0f", - "Normal": "\u6b63\u5e38", - "Code": "\u4ee3\u7801", - "Heading 1": "\u6807\u98981", - "Heading 2": "\u6807\u98982", - "Heading 3": "\u6807\u98983", - "Heading 4": "\u6807\u98984", - - // Style - "Paragraph Style": "\u6bb5\u843d\u6837\u5f0f", - "Inline Style": "\u5185\u8054\u6837\u5f0f", - - // Alignment - "Align": "\u5bf9\u9f50\u65b9\u5f0f", - "Align Left": "\u5de6\u5bf9\u9f50", - "Align Center": "\u5c45\u4e2d", - "Align Right": "\u53f3\u5bf9\u9f50", - "Align Justify": "\u4e24\u7aef\u5bf9\u9f50", - "None": "\u65e0", - - // Lists - "Ordered List": "\u7f16\u53f7\u5217\u8868", - "Unordered List": "\u9879\u76ee\u7b26\u53f7", - - // Indent - "Decrease Indent": "\u51cf\u5c11\u7f29\u8fdb", - "Increase Indent": "\u589e\u52a0\u7f29\u8fdb", - - // Links - "Insert Link": "\u63d2\u5165\u94fe\u63a5", - "Open in new tab": "\u5f00\u542f\u5728\u65b0\u6807\u7b7e\u9875", - "Open Link": "\u6253\u5f00\u94fe\u63a5", - "Edit Link": "\u7f16\u8f91\u94fe\u63a5", - "Unlink": "\u5220\u9664\u94fe\u63a5", - "Choose Link": "\u9009\u62e9\u94fe\u63a5", - - // Images - "Insert Image": "\u63d2\u5165\u56fe\u7247", - "Upload Image": "\u4e0a\u4f20\u56fe\u7247", - "By URL": "\u901a\u8fc7\u7f51\u5740", - "Browse": "\u6d4f\u89c8", - "Drop image": "\u56fe\u50cf\u62d6\u653e", - "or click": "\u6216\u70b9\u51fb", - "Manage Images": "\u7ba1\u7406\u56fe\u50cf", - "Loading": "\u8f7d\u5165\u4e2d", - "Deleting": "\u5220\u9664", - "Tags": "\u6807\u7b7e", - "Are you sure? Image will be deleted.": "\u4f60\u786e\u5b9a\u5417\uff1f\u56fe\u50cf\u5c06\u88ab\u5220\u9664\u3002", - "Replace": "\u66f4\u6362", - "Uploading": "\u4e0a\u4f20", - "Loading image": "\u5bfc\u5165\u56fe\u50cf", - "Display": "\u663e\u793a", - "Inline": "\u6392\u961f", - "Break Text": "\u65ad\u5f00\u6587\u672c", - "Alternate Text": "\u5907\u7528\u6587\u672c", - "Change Size": "\u5c3a\u5bf8\u53d8\u5316", - "Width": "\u5bbd\u5ea6", - "Height": "\u9ad8\u5ea6", - "Something went wrong. Please try again.": "\u51fa\u4e86\u4e9b\u95ee\u9898\u3002 \u8bf7\u518d\u8bd5\u4e00\u6b21\u3002", - "Image Caption": "图片说明", - "Advanced Edit": "高级编辑", - - // Video - "Insert Video": "\u63d2\u5165\u89c6\u9891", - "Embedded Code": "\u5d4c\u5165\u5f0f\u4ee3\u7801", - "Paste in a video URL": "粘贴在视频网址", - "Drop video": "放下视频", - "Your browser does not support HTML5 video.": "您的浏览器不支持html5视频。", - "Upload Video": "上传视频", - - // Tables - "Insert Table": "\u63d2\u5165\u8868\u683c", - "Table Header": "\u8868\u5934", - "Remove Table": "\u5220\u9664\u8868", - "Table Style": "\u8868\u683c\u6837\u5f0f", - "Horizontal Align": "\u6c34\u5e73\u5bf9\u9f50\u65b9\u5f0f", - "Row": "\u884c", - "Insert row above": "\u5728\u4e0a\u65b9\u63d2\u5165", - "Insert row below": "\u5728\u4e0b\u65b9\u63d2\u5165", - "Delete row": "\u5220\u9664\u884c", - "Column": "\u5217", - "Insert column before": "\u5728\u5de6\u4fa7\u63d2\u5165", - "Insert column after": "\u5728\u53f3\u4fa7\u63d2\u5165", - "Delete column": "\u5220\u9664\u5217", - "Cell": "\u5355\u5143\u683c", - "Merge cells": "\u5408\u5e76\u5355\u5143\u683c", - "Horizontal split": "\u6c34\u5e73\u5206\u5272", - "Vertical split": "\u5782\u76f4\u5206\u5272", - "Cell Background": "\u5355\u5143\u683c\u80cc\u666f", - "Vertical Align": "\u5782\u76f4\u5bf9\u9f50\u65b9\u5f0f", - "Top": "\u6700\u4f73", - "Middle": "\u4e2d\u95f4", - "Bottom": "\u5e95\u90e8", - "Align Top": "\u9876\u90e8\u5bf9\u9f50", - "Align Middle": "\u4e2d\u95f4\u5bf9\u9f50", - "Align Bottom": "\u5e95\u90e8\u5bf9\u9f50", - "Cell Style": "\u5355\u5143\u683c\u6837\u5f0f", - - // Files - "Upload File": "\u4e0a\u4f20\u6587\u4ef6", - "Drop file": "\u6587\u4ef6\u62d6\u653e", - - // Emoticons - "Emoticons": "\u8868\u60c5", - "Grinning face": "\u8138\u4e0a\u7b11\u563b\u563b", - "Grinning face with smiling eyes": "咧着嘴笑的脸微笑的眼睛", - "Face with tears of joy": "\u7b11\u563b\u563b\u7684\u8138\uff0c\u542b\u7b11\u7684\u773c\u775b", - "Smiling face with open mouth": "\u7b11\u8138\u5f20\u5f00\u5634", - "Smiling face with open mouth and smiling eyes": "\u7b11\u8138\u5f20\u5f00\u5634\u5fae\u7b11\u7684\u773c\u775b", - "Smiling face with open mouth and cold sweat": "\u7b11\u8138\u5f20\u5f00\u5634\uff0c\u4e00\u8eab\u51b7\u6c57", - "Smiling face with open mouth and tightly-closed eyes": "\u7b11\u8138\u5f20\u5f00\u5634\uff0c\u7d27\u7d27\u95ed\u7740\u773c\u775b", - "Smiling face with halo": "\u7b11\u8138\u6655", - "Smiling face with horns": "\u5fae\u7b11\u7684\u8138\u89d2", - "Winking face": "\u7728\u773c\u8868\u60c5", - "Smiling face with smiling eyes": "\u9762\u5e26\u5fae\u7b11\u7684\u773c\u775b", - "Face savoring delicious food": "\u9762\u5bf9\u54c1\u5c1d\u7f8e\u5473\u7684\u98df\u7269", - "Relieved face": "\u9762\u5bf9\u5982\u91ca\u91cd\u8d1f", - "Smiling face with heart-shaped eyes": "\u5fae\u7b11\u7684\u8138\uff0c\u5fc3\u810f\u5f62\u7684\u773c\u775b", - "Smiling face with sunglasses": "\u7b11\u8138\u592a\u9633\u955c", - "Smirking face": "\u9762\u5bf9\u9762\u5e26\u7b11\u5bb9", - "Neutral face": "\u4e2d\u6027\u9762", - "Expressionless face": "\u9762\u65e0\u8868\u60c5", - "Unamused face": "\u4e00\u8138\u4e0d\u5feb\u7684\u8138", - "Face with cold sweat": "\u9762\u5bf9\u51b7\u6c57", - "Pensive face": "\u6c89\u601d\u7684\u8138", - "Confused face": "\u9762\u5bf9\u56f0\u60d1", - "Confounded face": "\u8be5\u6b7b\u7684\u8138", - "Kissing face": "\u9762\u5bf9\u63a5\u543b", - "Face throwing a kiss": "\u9762\u5bf9\u6295\u63b7\u4e00\u4e2a\u543b", - "Kissing face with smiling eyes": "\u63a5\u543b\u8138\uff0c\u542b\u7b11\u7684\u773c\u775b", - "Kissing face with closed eyes": "\u63a5\u543b\u7684\u8138\u95ed\u7740\u773c\u775b", - "Face with stuck out tongue": "\u9762\u5bf9\u4f38\u51fa\u820c\u5934", - "Face with stuck out tongue and winking eye": "\u9762\u5bf9\u4f38\u51fa\u820c\u5934\u548c\u7728\u52a8\u7684\u773c\u775b", - "Face with stuck out tongue and tightly-closed eyes": "\u9762\u5bf9\u4f38\u51fa\u820c\u5934\u548c\u7d27\u95ed\u7684\u773c\u775b", - "Disappointed face": "\u9762\u5bf9\u5931\u671b", - "Worried face": "\u9762\u5bf9\u62c5\u5fc3", - "Angry face": "\u6124\u6012\u7684\u8138", - "Pouting face": "\u9762\u5bf9\u5658\u5634", - "Crying face": "\u54ed\u6ce3\u7684\u8138", - "Persevering face": "\u600e\u5948\u8138", - "Face with look of triumph": "\u9762\u5e26\u770b\u7684\u80dc\u5229", - "Disappointed but relieved face": "\u5931\u671b\uff0c\u4f46\u8138\u4e0a\u91ca\u7136", - "Frowning face with open mouth": "\u9762\u5bf9\u76b1\u7740\u7709\u5934\u5f20\u53e3", - "Anguished face": "\u9762\u5bf9\u75db\u82e6", - "Fearful face": "\u53ef\u6015\u7684\u8138", - "Weary face": "\u9762\u5bf9\u538c\u5026", - "Sleepy face": "\u9762\u5bf9\u56f0", - "Tired face": "\u75b2\u60eb\u7684\u8138", - "Grimacing face": "\u72f0\u72de\u7684\u8138", - "Loudly crying face": "\u5927\u58f0\u54ed\u8138", - "Face with open mouth": "\u9762\u5bf9\u5f20\u5f00\u5634", - "Hushed face": "\u5b89\u9759\u7684\u8138", - "Face with open mouth and cold sweat": "脸上露出嘴巴和冷汗", - "Face screaming in fear": "\u9762\u5bf9\u5f20\u5f00\u5634\uff0c\u4e00\u8eab\u51b7\u6c57", - "Astonished face": "\u9762\u5bf9\u60ca\u8bb6", - "Flushed face": "\u7ea2\u6251\u6251\u7684\u8138\u86cb", - "Sleeping face": "\u719f\u7761\u7684\u8138", - "Dizzy face": "\u9762\u5bf9\u7729", - "Face without mouth": "\u8138\u4e0a\u6ca1\u6709\u5634", - "Face with medical mask": "\u9762\u5bf9\u533b\u7597\u53e3\u7f69", - - // Line breaker - "Break": "\u7834", - - // Math - "Subscript": "\u4e0b\u6807", - "Superscript": "\u4e0a\u6807", - - // Full screen - "Fullscreen": "\u5168\u5c4f", - - // Horizontal line - "Insert Horizontal Line": "\u63d2\u5165\u6c34\u5e73\u7ebf", - - // Clear formatting - "Clear Formatting": "\u683c\u5f0f\u5316\u5220\u9664", - - // Undo, redo - "Undo": "\u64a4\u6d88", - "Redo": "\u91cd\u590d", - - // Select all - "Select All": "\u5168\u9009", - - // Code view - "Code View": "\u4ee3\u7801\u89c6\u56fe", - - // Quote - "Quote": "\u5f15\u7528", - "Increase": "\u589e\u52a0\u5f15\u7528", - "Decrease": "\u5220\u9664\u5f15\u7528", - - // Quick Insert - "Quick Insert": "\u5feb\u63d2", - - // Spcial Characters - "Special Characters": "特殊字符", - "Latin": "拉丁", - "Greek": "希腊语", - "Cyrillic": "西里尔", - "Punctuation": "标点", - "Currency": "货币", - "Arrows": "箭头", - "Math": "数学", - "Misc": "杂项", - - // Print. - "Print": "打印", - - // Spell Checker. - "Spell Checker": "拼写检查器", - - // Help - "Help": "帮帮我", - "Shortcuts": "快捷键", - "Inline Editor": "内联编辑器", - "Show the editor": "显示编辑", - "Common actions": "共同行动", - "Copy": "复制", - "Cut": "切", - "Paste": "糊", - "Basic Formatting": "基本格式", - "Increase quote level": "提高报价水平", - "Decrease quote level": "降低报价水平", - "Image / Video": "图像/视频", - "Resize larger": "调整大小更大", - "Resize smaller": "调整大小更小", - "Table": "表", - "Select table cell": "选择表单元格", - "Extend selection one cell": "扩展选择一个单元格", - "Extend selection one row": "扩展选择一行", - "Navigation": "导航", - "Focus popup / toolbar": "焦点弹出/工具栏", - "Return focus to previous position": "将焦点返回到上一个位置", - - // Embed.ly - "Embed URL": "嵌入网址", - "Paste in a URL to embed": "粘贴在一个网址中嵌入", - - // Word Paste. - "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "粘贴的内容来自微软Word文档。你想保留格式还是清理它?", - "Keep": "保持", - "Clean": "清洁", - "Word Paste Detected": "检测到字贴" - }, - direction: "ltr" -}; - -})); diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/languages/zh_tw.js b/Mobile.Search.Web/Scripts/froala-editor/js/languages/zh_tw.js deleted file mode 100644 index fe8b564..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/languages/zh_tw.js +++ /dev/null @@ -1,318 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node/CommonJS - module.exports = function( root, jQuery ) { - if ( jQuery === undefined ) { - // require('jQuery') returns a factory that requires window to - // build a jQuery instance, we normalize how we use modules - // that require this pattern but the window provided is a noop - // if it's defined (how jquery works) - if ( typeof window !== 'undefined' ) { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - return factory(jQuery); - }; - } else { - // Browser globals - factory(window.jQuery); - } -}(function ($) { -/** - * Traditional Chinese spoken in Taiwan. - */ - -$.FE.LANGUAGE['zh_tw'] = { - translation: { - // Place holder - "Type something": "\u8f38\u5165\u4e00\u4e9b\u5167\u5bb9", - - // Basic formatting - "Bold": "\u7c97\u9ad4", - "Italic": "\u659c\u9ad4", - "Underline": "\u5e95\u7dda", - "Strikethrough": "\u522a\u9664\u7dda", - - // Main buttons - "Insert": "\u63d2\u5165", - "Delete": "\u522a\u9664", - "Cancel": "\u53d6\u6d88", - "OK": "\u78ba\u5b9a", - "Back": "\u5f8c", - "Remove": "\u79fb\u9664", - "More": "\u66f4\u591a", - "Update": "\u66f4\u65b0", - "Style": "\u6a23\u5f0f", - - // Font - "Font Family": "\u5b57\u9ad4", - "Font Size": "\u5b57\u578b\u5927\u5c0f", - - // Colors - "Colors": "\u984f\u8272", - "Background": "\u80cc\u666f", - "Text": "\u6587\u5b57", - "HEX Color": "十六進制顏色", - - // Paragraphs - "Paragraph Format": "\u683c\u5f0f", - "Normal": "\u6b63\u5e38", - "Code": "\u7a0b\u5f0f\u78bc", - "Heading 1": "\u6a19\u984c 1", - "Heading 2": "\u6a19\u984c 2", - "Heading 3": "\u6a19\u984c 3", - "Heading 4": "\u6a19\u984c 4", - - // Style - "Paragraph Style": "\u6bb5\u843d\u6a23\u5f0f", - "Inline Style": "\u5167\u806f\u6a23\u5f0f", - - // Alignment - "Align": "\u5c0d\u9f4a", - "Align Left": "\u7f6e\u5de6\u5c0d\u9f4a", - "Align Center": "\u7f6e\u4e2d\u5c0d\u9f4a", - "Align Right": "\u7f6e\u53f3\u5c0d\u9f4a", - "Align Justify": "\u5de6\u53f3\u5c0d\u9f4a", - "None": "\u7121", - - // Lists - "Ordered List": "\u6578\u5b57\u6e05\u55ae", - "Unordered List": "\u9805\u76ee\u6e05\u55ae", - - // Indent - "Decrease Indent": "\u6e1b\u5c11\u7e2e\u6392", - "Increase Indent": "\u589e\u52a0\u7e2e\u6392", - - // Links - "Insert Link": "\u63d2\u5165\u9023\u7d50", - "Open in new tab": "\u5728\u65b0\u5206\u9801\u958b\u555f", - "Open Link": "\u958b\u555f\u9023\u7d50", - "Edit Link": "\u7de8\u8f2f\u9023\u7d50", - "Unlink": "\u79fb\u9664\u9023\u7d50", - "Choose Link": "\u9078\u64c7\u9023\u7d50", - - // Images - "Insert Image": "\u63d2\u5165\u5716\u7247", - "Upload Image": "\u4e0a\u50b3\u5716\u7247", - "By URL": "\u7db2\u5740\u4e0a\u50b3", - "Browse": "\u700f\u89bd", - "Drop image": "\u5716\u7247\u62d6\u66f3", - "or click": "\u6216\u9ede\u64ca", - "Manage Images": "\u7ba1\u7406\u5716\u7247", - "Loading": "\u8f09\u5165\u4e2d", - "Deleting": "\u522a\u9664", - "Tags": "\u6a19\u7c64", - "Are you sure? Image will be deleted.": "\u78ba\u5b9a\u522a\u9664\u5716\u7247\uff1f", - "Replace": "\u66f4\u63db", - "Uploading": "\u4e0a\u50b3", - "Loading image": "\u4e0a\u50b3\u4e2d", - "Display": "\u986f\u793a", - "Inline": "\u5d4c\u5165", - "Break Text": "\u8207\u6587\u5b57\u5206\u96e2", - "Alternate Text": "\u6587\u5b57\u74b0\u7e5e", - "Change Size": "\u8abf\u6574\u5927\u5c0f", - "Width": "\u5bec\u5ea6", - "Height": "\u9ad8\u5ea6", - "Something went wrong. Please try again.": "\u932f\u8aa4\uff0c\u8acb\u518d\u8a66\u4e00\u6b21\u3002", - "Image Caption": "圖片說明", - "Advanced Edit": "高級編輯", - - // Video - "Insert Video": "\u63d2\u5165\u5f71\u7247", - "Embedded Code": "\u5d4c\u5165\u7a0b\u5f0f\u78bc", - "Paste in a video URL": "粘貼在視頻網址", - "Drop video": "放下視頻", - "Your browser does not support HTML5 video.": "您的瀏覽器不支持html5視頻。", - "Upload Video": "上傳視頻", - - // Tables - "Insert Table": "\u63d2\u5165\u8868\u683c", - "Table Header": "\u8868\u982d", - "Remove Table": "\u522a\u9664\u8868", - "Table Style": "\u8868\u6a23\u5f0f", - "Horizontal Align": "\u6c34\u6e96\u5c0d\u9f4a\u65b9\u5f0f", - "Row": "\u884c", - "Insert row above": "\u5411\u4e0a\u63d2\u5165\u4e00\u884c", - "Insert row below": "\u5411\u4e0b\u63d2\u5165\u4e00\u884c", - "Delete row": "\u522a\u9664\u884c", - "Column": "\u5217", - "Insert column before": "\u5411\u5de6\u63d2\u5165\u4e00\u5217", - "Insert column after": "\u5411\u53f3\u63d2\u5165\u4e00\u5217", - "Delete column": "\u522a\u9664\u884c", - "Cell": "\u5132\u5b58\u683c", - "Merge cells": "\u5408\u4f75\u5132\u5b58\u683c", - "Horizontal split": "\u6c34\u5e73\u5206\u5272", - "Vertical split": "\u5782\u76f4\u5206\u5272", - "Cell Background": "\u5132\u5b58\u683c\u80cc\u666f", - "Vertical Align": "\u5782\u76f4\u5c0d\u9f4a\u65b9\u5f0f", - "Top": "\u4e0a", - "Middle": "\u4e2d", - "Bottom": "\u4e0b", - "Align Top": "\u5411\u4e0a\u5c0d\u9f4a", - "Align Middle": "\u4e2d\u9593\u5c0d\u9f4a", - "Align Bottom": "\u5e95\u90e8\u5c0d\u9f4a", - "Cell Style": "\u5132\u5b58\u683c\u6a23\u5f0f", - - // Files - "Upload File": "\u4e0a\u50b3\u6587\u4ef6", - "Drop file": "\u6587\u4ef6\u62d6\u66f3", - - // Emoticons - "Emoticons": "\u8868\u60c5", - "Grinning face": "\u81c9\u4e0a\u7b11\u563b\u563b", - "Grinning face with smiling eyes": "\u7b11\u563b\u563b\u7684\u81c9\uff0c\u542b\u7b11\u7684\u773c\u775b", - "Face with tears of joy": "\u81c9\u4e0a\u5e36\u8457\u559c\u6085\u7684\u6dda\u6c34", - "Smiling face with open mouth": "\u7b11\u81c9\u5f35\u958b\u5634", - "Smiling face with open mouth and smiling eyes": "\u7b11\u81c9\u5f35\u958b\u5634\u5fae\u7b11\u7684\u773c\u775b", - "Smiling face with open mouth and cold sweat": "\u7b11\u81c9\u5f35\u958b\u5634\uff0c\u4e00\u8eab\u51b7\u6c57", - "Smiling face with open mouth and tightly-closed eyes": "\u7b11\u81c9\u5f35\u958b\u5634\uff0c\u7dca\u7dca\u9589\u8457\u773c\u775b", - "Smiling face with halo": "\u7b11\u81c9\u6688", - "Smiling face with horns": "\u5fae\u7b11\u7684\u81c9\u89d2", - "Winking face": "\u7728\u773c\u8868\u60c5", - "Smiling face with smiling eyes": "\u9762\u5e36\u5fae\u7b11\u7684\u773c\u775b", - "Face savoring delicious food": "\u9762\u5c0d\u54c1\u5690\u7f8e\u5473\u7684\u98df\u7269", - "Relieved face": "\u9762\u5c0d\u5982\u91cb\u91cd\u8ca0", - "Smiling face with heart-shaped eyes": "\u5fae\u7b11\u7684\u81c9\uff0c\u5fc3\u81df\u5f62\u7684\u773c\u775b", - "Smiling face with sunglasses": "\u7b11\u81c9\u592a\u967d\u93e1", - "Smirking face": "\u9762\u5c0d\u9762\u5e36\u7b11\u5bb9", - "Neutral face": "\u4e2d\u6027\u9762", - "Expressionless face": "\u9762\u7121\u8868\u60c5", - "Unamused face": "\u4e00\u81c9\u4e0d\u5feb\u7684\u81c9", - "Face with cold sweat": "\u9762\u5c0d\u51b7\u6c57", - "Pensive face": "\u6c89\u601d\u7684\u81c9", - "Confused face": "\u9762\u5c0d\u56f0\u60d1", - "Confounded face": "\u8a72\u6b7b\u7684\u81c9", - "Kissing face": "\u9762\u5c0d\u63a5\u543b", - "Face throwing a kiss": "\u9762\u5c0d\u6295\u64f2\u4e00\u500b\u543b", - "Kissing face with smiling eyes": "\u63a5\u543b\u81c9\uff0c\u542b\u7b11\u7684\u773c\u775b", - "Kissing face with closed eyes": "\u63a5\u543b\u7684\u81c9\u9589\u8457\u773c\u775b", - "Face with stuck out tongue": "\u9762\u5c0d\u4f38\u51fa\u820c\u982d", - "Face with stuck out tongue and winking eye": "\u9762\u5c0d\u4f38\u51fa\u820c\u982d\u548c\u7728\u52d5\u7684\u773c\u775b", - "Face with stuck out tongue and tightly-closed eyes": "\u9762\u5c0d\u4f38\u51fa\u820c\u982d\u548c\u7dca\u9589\u7684\u773c\u775b", - "Disappointed face": "\u9762\u5c0d\u5931\u671b", - "Worried face": "\u9762\u5c0d\u64d4\u5fc3", - "Angry face": "\u61a4\u6012\u7684\u81c9", - "Pouting face": "\u9762\u5c0d\u5658\u5634", - "Crying face": "\u54ed\u6ce3\u7684\u81c9", - "Persevering face": "\u600e\u5948\u81c9", - "Face with look of triumph": "\u9762\u5e36\u770b\u7684\u52dd\u5229", - "Disappointed but relieved face": "\u5931\u671b\uff0c\u4f46\u81c9\u4e0a\u91cb\u7136", - "Frowning face with open mouth": "\u9762\u5c0d\u76ba\u8457\u7709\u982d\u5f35\u53e3", - "Anguished face": "\u9762\u5c0d\u75db\u82e6", - "Fearful face": "\u53ef\u6015\u7684\u81c9", - "Weary face": "\u9762\u5c0d\u53ad\u5026", - "Sleepy face": "\u9762\u5c0d\u56f0", - "Tired face": "\u75b2\u618a\u7684\u81c9", - "Grimacing face": "\u7319\u7370\u7684\u81c9", - "Loudly crying face": "\u5927\u8072\u54ed\u81c9", - "Face with open mouth": "\u9762\u5c0d\u5f35\u958b\u5634", - "Hushed face": "\u5b89\u975c\u7684\u81c9", - "Face with open mouth and cold sweat": "\u9762\u5c0d\u5f35\u958b\u5634\uff0c\u4e00\u8eab\u51b7\u6c57", - "Face screaming in fear": "\u9762\u5c0d\u5c16\u53eb\u5728\u6050\u61fc\u4e2d", - "Astonished face": "\u9762\u5c0d\u9a5a\u8a1d", - "Flushed face": "\u7d05\u64b2\u64b2\u7684\u81c9\u86cb", - "Sleeping face": "\u719f\u7761\u7684\u81c9", - "Dizzy face": "\u9762\u5c0d\u7729", - "Face without mouth": "\u81c9\u4e0a\u6c92\u6709\u5634", - "Face with medical mask": "\u9762\u5c0d\u91ab\u7642\u53e3\u7f69", - - // Line breaker - "Break": "\u63db\u884c", - - // Math - "Subscript": "\u4e0b\u6a19", - "Superscript": "\u4e0a\u6a19", - - // Full screen - "Fullscreen": "\u5168\u87a2\u5e55", - - // Horizontal line - "Insert Horizontal Line": "\u63d2\u5165\u6c34\u5e73\u7dda", - - // Clear formatting - "Clear Formatting": "\u6e05\u9664\u683c\u5f0f", - - // Undo, redo - "Undo": "\u5fa9\u539f", - "Redo": "\u53d6\u6d88\u5fa9\u539f", - - // Select all - "Select All": "\u5168\u9078", - - // Code view - "Code View": "\u539f\u59cb\u78bc", - - // Quote - "Quote": "\u5f15\u6587", - "Increase": "\u7e2e\u6392", - "Decrease": "\u53bb\u9664\u7e2e\u6392", - - // Quick Insert - "Quick Insert": "\u5feb\u63d2", - - // Spcial Characters - "Special Characters": "特殊字符", - "Latin": "拉丁", - "Greek": "希臘語", - "Cyrillic": "西里爾", - "Punctuation": "標點", - "Currency": "貨幣", - "Arrows": "箭頭", - "Math": "數學", - "Misc": "雜項", - - // Print. - "Print": "打印", - - // Spell Checker. - "Spell Checker": "拼寫檢查器", - - // Help - "Help": "幫幫我", - "Shortcuts": "快捷鍵", - "Inline Editor": "內聯編輯器", - "Show the editor": "顯示編輯", - "Common actions": "共同行動", - "Copy": "複製", - "Cut": "切", - "Paste": "糊", - "Basic Formatting": "基本格式", - "Increase quote level": "提高報價水平", - "Decrease quote level": "降低報價水平", - "Image / Video": "圖像/視頻", - "Resize larger": "調整大小更大", - "Resize smaller": "調整大小更小", - "Table": "表", - "Select table cell": "選擇表單元格", - "Extend selection one cell": "擴展選擇一個單元格", - "Extend selection one row": "擴展選擇一行", - "Navigation": "導航", - "Focus popup / toolbar": "焦點彈出/工具欄", - "Return focus to previous position": "將焦點返回到上一個位置", - - // Embed.ly - "Embed URL": "嵌入網址", - "Paste in a URL to embed": "粘貼在一個網址中嵌入", - - // Word Paste. - "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "粘貼的內容來自微軟Word文檔。你想保留格式還是清理它?", - "Keep": "保持", - "Clean": "清潔", - "Word Paste Detected": "檢測到字貼" - }, - direction: "ltr" -}; - -})); diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/align.min.js b/Mobile.Search.Web/Scripts/froala-editor/js/plugins/align.min.js deleted file mode 100644 index 8651d5c..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/align.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.FE.PLUGINS.align=function(b){function c(c){var d=b.selection.element();if(a(d).parents(".fr-img-caption").length)a(d).css("text-align",c);else{b.selection.save(),b.html.wrap(!0,!0,!0,!0),b.selection.restore();for(var e=b.selection.blocks(),f=0;f<e.length;f++)b.helpers.getAlignment(a(e[f].parentNode))==c?a(e[f]).css("text-align","").removeClass("fr-temp-div"):a(e[f]).css("text-align",c).removeClass("fr-temp-div"),""===a(e[f]).attr("class")&&a(e[f]).removeAttr("class"),""===a(e[f]).attr("style")&&a(e[f]).removeAttr("style");b.selection.save(),b.html.unwrap(),b.selection.restore()}}function d(c){var d=b.selection.blocks();if(d.length){var e=b.helpers.getAlignment(a(d[0]));c.find("> *:first").replaceWith(b.icon.create("align-"+e))}}function e(c,d){var e=b.selection.blocks();if(e.length){var f=b.helpers.getAlignment(a(e[0]));d.find('a.fr-command[data-param1="'+f+'"]').addClass("fr-active").attr("aria-selected",!0)}}return{apply:c,refresh:d,refreshOnShow:e}},a.FE.DefineIcon("align",{NAME:"align-left"}),a.FE.DefineIcon("align-left",{NAME:"align-left"}),a.FE.DefineIcon("align-right",{NAME:"align-right"}),a.FE.DefineIcon("align-center",{NAME:"align-center"}),a.FE.DefineIcon("align-justify",{NAME:"align-justify"}),a.FE.RegisterCommand("align",{type:"dropdown",title:"Align",options:{left:"Align Left",center:"Align Center",right:"Align Right",justify:"Align Justify"},html:function(){var b='<ul class="fr-dropdown-list" role="presentation">',c=a.FE.COMMANDS.align.options;for(var d in c)c.hasOwnProperty(d)&&(b+='<li role="presentation"><a class="fr-command fr-title" tabIndex="-1" role="option" data-cmd="align" data-param1="'+d+'" title="'+this.language.translate(c[d])+'">'+this.icon.create("align-"+d)+'<span class="fr-sr-only">'+this.language.translate(c[d])+"</span></a></li>");return b+="</ul>"},callback:function(a,b){this.align.apply(b)},refresh:function(a){this.align.refresh(a)},refreshOnShow:function(a,b){this.align.refreshOnShow(a,b)},plugin:"align"})}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/char_counter.min.js b/Mobile.Search.Web/Scripts/froala-editor/js/plugins/char_counter.min.js deleted file mode 100644 index 9bda73d..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/char_counter.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.DEFAULTS,{charCounterMax:-1,charCounterCount:!0}),a.FE.PLUGINS.charCounter=function(b){function c(){return(b.el.textContent||"").replace(/\u200B/g,"").length}function d(d){if(b.opts.charCounterMax<0)return!0;if(c()<b.opts.charCounterMax)return!0;var e=d.which;return!b.keys.ctrlKey(d)&&b.keys.isCharacter(e)||e===a.FE.KEYCODE.IME?(d.preventDefault(),d.stopPropagation(),b.events.trigger("charCounter.exceeded"),!1):!0}function e(d){if(b.opts.charCounterMax<0)return d;var e=a("<div>").html(d).text().length;return e+c()<=b.opts.charCounterMax?d:(b.events.trigger("charCounter.exceeded"),"")}function f(){if(b.opts.charCounterCount){var a=c()+(b.opts.charCounterMax>0?"/"+b.opts.charCounterMax:"");h.text(a),b.opts.toolbarBottom&&h.css("margin-bottom",b.$tb.outerHeight(!0));var d=b.$wp.get(0).offsetWidth-b.$wp.get(0).clientWidth;d>=0&&("rtl"==b.opts.direction?h.css("margin-left",d):h.css("margin-right",d))}}function g(){return b.$wp&&b.opts.charCounterCount?(h=a('<span class="fr-counter"></span>'),h.css("bottom",b.$wp.css("border-bottom-width")),b.$box.append(h),b.events.on("keydown",d,!0),b.events.on("paste.afterCleanup",e),b.events.on("keyup contentChanged input",function(){b.events.trigger("charCounter.update")}),b.events.on("charCounter.update",f),b.events.trigger("charCounter.update"),void b.events.on("destroy",function(){a(b.o_win).off("resize.char"+b.id),h.removeData().remove(),h=null})):!1}var h;return{_init:g,count:c}}}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/code_beautifier.min.js b/Mobile.Search.Web/Scripts/froala-editor/js/plugins/code_beautifier.min.js deleted file mode 100644 index ce8403d..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/code_beautifier.min.js +++ /dev/null @@ -1,8 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.FE.PLUGINS.codeBeautifier=function(){function a(a,c){function d(a){return a.replace(/^\s+/g,"")}function e(a){return a.replace(/\s+$/g,"")}function g(){return this.pos=0,this.token="",this.current_mode="CONTENT",this.tags={parent:"parent1",parentcount:1,parent1:""},this.tag_type="",this.token_text=this.last_token=this.last_text=this.token_type="",this.newlines=0,this.indent_content=i,this.Utils={whitespace:"\n\r ".split(""),single_token:"br,input,link,meta,source,!doctype,basefont,base,area,hr,wbr,param,img,isindex,embed".split(","),extra_liners:u,in_array:function(a,b){for(var c=0;c<b.length;c++)if(a==b[c])return!0;return!1}},this.is_whitespace=function(a){for(var b=0;b<a.length;a++)if(!this.Utils.in_array(a.charAt(b),this.Utils.whitespace))return!1;return!0},this.traverse_whitespace=function(){var a="";if(a=this.input.charAt(this.pos),this.Utils.in_array(a,this.Utils.whitespace)){for(this.newlines=0;this.Utils.in_array(a,this.Utils.whitespace);)o&&"\n"==a&&this.newlines<=p&&(this.newlines+=1),this.pos++,a=this.input.charAt(this.pos);return!0}return!1},this.space_or_wrap=function(a){this.line_char_count>=this.wrap_line_length?(this.print_newline(!1,a),this.print_indentation(a)):(this.line_char_count++,a.push(" "))},this.get_content=function(){for(var a="",b=[];"<"!=this.input.charAt(this.pos);){if(this.pos>=this.input.length)return b.length?b.join(""):["","TK_EOF"];if(this.traverse_whitespace())this.space_or_wrap(b);else{if(q){var c=this.input.substr(this.pos,3);if("{{#"==c||"{{/"==c)break;if("{{!"==c)return[this.get_tag(),"TK_TAG_HANDLEBARS_COMMENT"];if("{{"==this.input.substr(this.pos,2)&&"{{else}}"==this.get_tag(!0))break}a=this.input.charAt(this.pos),this.pos++,this.line_char_count++,b.push(a)}}return b.length?b.join(""):""},this.get_contents_to=function(a){if(this.pos==this.input.length)return["","TK_EOF"];var b="",c=new RegExp("</"+a+"\\s*>","igm");c.lastIndex=this.pos;var d=c.exec(this.input),e=d?d.index:this.input.length;return this.pos<e&&(b=this.input.substring(this.pos,e),this.pos=e),b},this.record_tag=function(a){this.tags[a+"count"]?(this.tags[a+"count"]++,this.tags[a+this.tags[a+"count"]]=this.indent_level):(this.tags[a+"count"]=1,this.tags[a+this.tags[a+"count"]]=this.indent_level),this.tags[a+this.tags[a+"count"]+"parent"]=this.tags.parent,this.tags.parent=a+this.tags[a+"count"]},this.retrieve_tag=function(a){if(this.tags[a+"count"]){for(var b=this.tags.parent;b&&a+this.tags[a+"count"]!=b;)b=this.tags[b+"parent"];b&&(this.indent_level=this.tags[a+this.tags[a+"count"]],this.tags.parent=this.tags[b+"parent"]),delete this.tags[a+this.tags[a+"count"]+"parent"],delete this.tags[a+this.tags[a+"count"]],1==this.tags[a+"count"]?delete this.tags[a+"count"]:this.tags[a+"count"]--}},this.indent_to_tag=function(a){if(this.tags[a+"count"]){for(var b=this.tags.parent;b&&a+this.tags[a+"count"]!=b;)b=this.tags[b+"parent"];b&&(this.indent_level=this.tags[a+this.tags[a+"count"]])}},this.get_tag=function(a){var b,c,d,e="",f=[],g="",h=!1,i=!0,j=this.pos,l=this.line_char_count;a=void 0!==a?a:!1;do{if(this.pos>=this.input.length)return a&&(this.pos=j,this.line_char_count=l),f.length?f.join(""):["","TK_EOF"];if(e=this.input.charAt(this.pos),this.pos++,this.Utils.in_array(e,this.Utils.whitespace))h=!0;else{if(("'"==e||'"'==e)&&(e+=this.get_unformatted(e),h=!0),"="==e&&(h=!1),f.length&&"="!=f[f.length-1]&&">"!=e&&h){if(this.space_or_wrap(f),h=!1,!i&&"force"==r&&"/"!=e){this.print_newline(!0,f),this.print_indentation(f);for(var m=0;s>m;m++)f.push(k)}for(var o=0;o<f.length;o++)if(" "==f[o]){i=!1;break}}if(q&&"<"==d&&e+this.input.charAt(this.pos)=="{{"&&(e+=this.get_unformatted("}}"),f.length&&" "!=f[f.length-1]&&"<"!=f[f.length-1]&&(e=" "+e),h=!0),"<"!=e||d||(b=this.pos-1,d="<"),q&&!d&&f.length>=2&&"{"==f[f.length-1]&&"{"==f[f.length-2]&&(b="#"==e||"/"==e||"!"==e?this.pos-3:this.pos-2,d="{"),this.line_char_count++,f.push(e),f[1]&&("!"==f[1]||"?"==f[1]||"%"==f[1])){f=[this.get_comment(b)];break}if(q&&f[1]&&"{"==f[1]&&f[2]&&"!"==f[2]){f=[this.get_comment(b)];break}if(q&&"{"==d&&f.length>2&&"}"==f[f.length-2]&&"}"==f[f.length-1])break}}while(">"!=e);var p,t,u=f.join("");p=-1!=u.indexOf(" ")?u.indexOf(" "):"{"==u[0]?u.indexOf("}"):u.indexOf(">"),t="<"!=u[0]&&q?"#"==u[2]?3:2:1;var v=u.substring(t,p).toLowerCase();return"/"==u.charAt(u.length-2)||this.Utils.in_array(v,this.Utils.single_token)?a||(this.tag_type="SINGLE"):q&&"{"==u[0]&&"else"==v?a||(this.indent_to_tag("if"),this.tag_type="HANDLEBARS_ELSE",this.indent_content=!0,this.traverse_whitespace()):this.is_unformatted(v,n)?(g=this.get_unformatted("</"+v+">",u),f.push(g),c=this.pos-1,this.tag_type="SINGLE"):"script"==v&&(-1==u.search("type")||u.search("type")>-1&&u.search(/\b(text|application)\/(x-)?(javascript|ecmascript|jscript|livescript)/)>-1)?a||(this.record_tag(v),this.tag_type="SCRIPT"):"style"==v&&(-1==u.search("type")||u.search("type")>-1&&u.search("text/css")>-1)?a||(this.record_tag(v),this.tag_type="STYLE"):"!"==v.charAt(0)?a||(this.tag_type="SINGLE",this.traverse_whitespace()):a||("/"==v.charAt(0)?(this.retrieve_tag(v.substring(1)),this.tag_type="END"):(this.record_tag(v),"html"!=v.toLowerCase()&&(this.indent_content=!0),this.tag_type="START"),this.traverse_whitespace()&&this.space_or_wrap(f),this.Utils.in_array(v,this.Utils.extra_liners)&&(this.print_newline(!1,this.output),this.output.length&&"\n"!=this.output[this.output.length-2]&&this.print_newline(!0,this.output))),a&&(this.pos=j,this.line_char_count=l),f.join("")},this.get_comment=function(a){var b="",c=">",d=!1;this.pos=a;var e=this.input.charAt(this.pos);for(this.pos++;this.pos<=this.input.length&&(b+=e,b[b.length-1]!=c[c.length-1]||-1==b.indexOf(c));)!d&&b.length<10&&(0===b.indexOf("<![if")?(c="<![endif]>",d=!0):0===b.indexOf("<![cdata[")?(c="]]>",d=!0):0===b.indexOf("<![")?(c="]>",d=!0):0===b.indexOf("<!--")?(c="-->",d=!0):0===b.indexOf("{{!")?(c="}}",d=!0):0===b.indexOf("<?")?(c="?>",d=!0):0===b.indexOf("<%")&&(c="%>",d=!0)),e=this.input.charAt(this.pos),this.pos++;return b},this.get_unformatted=function(a,b){if(b&&-1!=b.toLowerCase().indexOf(a))return"";var c="",d="",e=0,f=!0;do{if(this.pos>=this.input.length)return d;if(c=this.input.charAt(this.pos),this.pos++,this.Utils.in_array(c,this.Utils.whitespace)){if(!f){this.line_char_count--;continue}if("\n"==c||"\r"==c){d+="\n",this.line_char_count=0;continue}}d+=c,this.line_char_count++,f=!0,q&&"{"==c&&d.length&&"{"==d[d.length-2]&&(d+=this.get_unformatted("}}"),e=d.length)}while(-1==d.toLowerCase().indexOf(a,e));return d},this.get_token=function(){var a;if("TK_TAG_SCRIPT"==this.last_token||"TK_TAG_STYLE"==this.last_token){var b=this.last_token.substr(7);return a=this.get_contents_to(b),"string"!=typeof a?a:[a,"TK_"+b]}if("CONTENT"==this.current_mode)return a=this.get_content(),"string"!=typeof a?a:[a,"TK_CONTENT"];if("TAG"==this.current_mode){if(a=this.get_tag(),"string"!=typeof a)return a;var c="TK_TAG_"+this.tag_type;return[a,c]}},this.get_full_indent=function(a){return a=this.indent_level+a||0,1>a?"":new Array(a+1).join(this.indent_string)},this.is_unformatted=function(a,b){if(!this.Utils.in_array(a,b))return!1;if("a"!=a.toLowerCase()||!this.Utils.in_array("a",b))return!0;var c=this.get_tag(!0),d=(c||"").match(/^\s*<\s*\/?([a-z]*)\s*[^>]*>\s*$/);return!d||this.Utils.in_array(d,b)?!0:!1},this.printer=function(a,b,c,f,g){this.input=a||"",this.output=[],this.indent_character=b,this.indent_string="",this.indent_size=c,this.brace_style=g,this.indent_level=0,this.wrap_line_length=f,this.line_char_count=0;for(var h=0;h<this.indent_size;h++)this.indent_string+=this.indent_character;this.print_newline=function(a,b){this.line_char_count=0,b&&b.length&&(a||"\n"!=b[b.length-1])&&("\n"!=b[b.length-1]&&(b[b.length-1]=e(b[b.length-1])),b.push("\n"))},this.print_indentation=function(a){for(var b=0;b<this.indent_level;b++)a.push(this.indent_string),this.line_char_count+=this.indent_string.length},this.print_token=function(a){(!this.is_whitespace(a)||this.output.length)&&((a||""!==a)&&this.output.length&&"\n"==this.output[this.output.length-1]&&(this.print_indentation(this.output),a=d(a)),this.print_token_raw(a))},this.print_token_raw=function(a){this.newlines>0&&(a=e(a)),a&&""!==a&&(a.length>1&&"\n"==a[a.length-1]?(this.output.push(a.slice(0,-1)),this.print_newline(!1,this.output)):this.output.push(a));for(var b=0;b<this.newlines;b++)this.print_newline(b>0,this.output);this.newlines=0},this.indent=function(){this.indent_level++},this.unindent=function(){this.indent_level>0&&this.indent_level--}},this}var h,i,j,k,l,m,n,o,p,q,r,s,t,u;for(c=c||{},void 0!==c.wrap_line_length&&0!==parseInt(c.wrap_line_length,10)||void 0===c.max_char||0===parseInt(c.max_char,10)||(c.wrap_line_length=c.max_char),i=void 0===c.indent_inner_html?!1:c.indent_inner_html,j=void 0===c.indent_size?4:parseInt(c.indent_size,10),k=void 0===c.indent_char?" ":c.indent_char,m=void 0===c.brace_style?"collapse":c.brace_style,l=0===parseInt(c.wrap_line_length,10)?32786:parseInt(c.wrap_line_length||250,10),n=c.unformatted||["a","span","img","bdo","em","strong","dfn","code","samp","kbd","var","cite","abbr","acronym","q","sub","sup","tt","i","b","big","small","u","s","strike","font","ins","del","address","pre"],o=void 0===c.preserve_newlines?!0:c.preserve_newlines,p=o?isNaN(parseInt(c.max_preserve_newlines,10))?32786:parseInt(c.max_preserve_newlines,10):0,q=void 0===c.indent_handlebars?!1:c.indent_handlebars,r=void 0===c.wrap_attributes?"auto":c.wrap_attributes,s=void 0===c.wrap_attributes_indent_size?j:parseInt(c.wrap_attributes_indent_size,10)||j,t=void 0===c.end_with_newline?!1:c.end_with_newline,u=Array.isArray(c.extra_liners)?c.extra_liners.concat():"string"==typeof c.extra_liners?c.extra_liners.split(","):"head,body,/html".split(","),c.indent_with_tabs&&(k=" ",j=1),h=new g,h.printer(a,k,j,l,m);;){var v=h.get_token();if(h.token_text=v[0],h.token_type=v[1],"TK_EOF"==h.token_type)break;switch(h.token_type){case"TK_TAG_START":h.print_newline(!1,h.output),h.print_token(h.token_text),h.indent_content&&(h.indent(),h.indent_content=!1),h.current_mode="CONTENT";break;case"TK_TAG_STYLE":case"TK_TAG_SCRIPT":h.print_newline(!1,h.output),h.print_token(h.token_text),h.current_mode="CONTENT";break;case"TK_TAG_END":if("TK_CONTENT"==h.last_token&&""===h.last_text){var w=h.token_text.match(/\w+/)[0],x=null;h.output.length&&(x=h.output[h.output.length-1].match(/(?:<|{{#)\s*(\w+)/)),(null==x||x[1]!=w&&!h.Utils.in_array(x[1],n))&&h.print_newline(!1,h.output)}h.print_token(h.token_text),h.current_mode="CONTENT";break;case"TK_TAG_SINGLE":var y=h.token_text.match(/^\s*<([a-z-]+)/i);y&&h.Utils.in_array(y[1],n)||h.print_newline(!1,h.output),h.print_token(h.token_text),h.current_mode="CONTENT";break;case"TK_TAG_HANDLEBARS_ELSE":h.print_token(h.token_text),h.indent_content&&(h.indent(),h.indent_content=!1),h.current_mode="CONTENT";break;case"TK_TAG_HANDLEBARS_COMMENT":h.print_token(h.token_text),h.current_mode="TAG";break;case"TK_CONTENT":h.print_token(h.token_text),h.current_mode="TAG";break;case"TK_STYLE":case"TK_SCRIPT":if(""!==h.token_text){h.print_newline(!1,h.output);var z,A=h.token_text,B=1;"TK_SCRIPT"==h.token_type?z="function"==typeof f&&f:"TK_STYLE"==h.token_type&&(z="function"==typeof b&&b),"keep"==c.indent_scripts?B=0:"separate"==c.indent_scripts&&(B=-h.indent_level);var C=h.get_full_indent(B);if(z)A=z(A.replace(/^\s*/,C),c);else{var D=A.match(/^\s*/)[0],E=D.match(/[^\n\r]*$/)[0].split(h.indent_string).length-1,F=h.get_full_indent(B-E);A=A.replace(/^\s*/,C).replace(/\r\n|\r|\n/g,"\n"+F).replace(/\s+$/,"")}A&&(h.print_token_raw(A),h.print_newline(!0,h.output))}h.current_mode="TAG";break;default:""!==h.token_text&&h.print_token(h.token_text)}h.last_token=h.token_type,h.last_text=h.token_text}var G=h.output.join("").replace(/[\r\n\t ]+$/,"");return t&&(G+="\n"),G}function b(a,b){function c(){return v=a.charAt(++x),v||""}function d(b){var d="",e=x;return b&&g(),d=a.charAt(x+1)||"",x=e-1,c(),d}function e(b){for(var d=x;c();)if("\\"===v)c();else{if(-1!==b.indexOf(v))break;if("\n"===v)break}return a.substring(d,x+1)}function f(a){var b=x,d=e(a);return x=b-1,c(),d}function g(){for(var a="";w.test(d());)c(),a+=v;return a}function h(){var a="";for(v&&w.test(v)&&(a=v);w.test(c());)a+=v;return a}function i(b){var e=x;for(b="/"===d(),c();c();){if(!b&&"*"===v&&"/"===d()){c();break}if(b&&"\n"===v)return a.substring(e,x)}return a.substring(e,x)+v}function j(b){return a.substring(x-b.length,x).toLowerCase()===b}function k(){for(var b=0,c=x+1;c<a.length;c++){var d=a.charAt(c);if("{"===d)return!0;if("("===d)b+=1;else if(")"===d){if(0==b)return!1;b-=1}else if(";"===d||"}"===d)return!1}return!1}function l(){B++,z+=A}function m(){B--,z=z.slice(0,-p)}var n={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},o={"@media":!0,"@supports":!0,"@document":!0};b=b||{},a=a||"",a=a.replace(/\r\n|[\r\u2028\u2029]/g,"\n");var p=b.indent_size||4,q=b.indent_char||" ",r=void 0===b.selector_separator_newline?!0:b.selector_separator_newline,s=void 0===b.end_with_newline?!1:b.end_with_newline,t=void 0===b.newline_between_rules?!0:b.newline_between_rules,u=b.eol?b.eol:"\n";"string"==typeof p&&(p=parseInt(p,10)),b.indent_with_tabs&&(q=" ",p=1),u=u.replace(/\\r/,"\r").replace(/\\n/,"\n");var v,w=/^\s+$/,x=-1,y=0,z=a.match(/^[\t ]*/)[0],A=new Array(p+1).join(q),B=0,C=0,D={};D["{"]=function(a){D.singleSpace(),E.push(a),D.newLine()},D["}"]=function(a){D.newLine(),E.push(a),D.newLine()},D._lastCharWhitespace=function(){return w.test(E[E.length-1])},D.newLine=function(a){E.length&&(a||"\n"===E[E.length-1]||D.trim(),E.push("\n"),z&&E.push(z))},D.singleSpace=function(){E.length&&!D._lastCharWhitespace()&&E.push(" ")},D.preserveSingleSpace=function(){L&&D.singleSpace()},D.trim=function(){for(;D._lastCharWhitespace();)E.pop()};for(var E=[],F=!1,G=!1,H=!1,I="",J="";;){var K=h(),L=""!==K,M=-1!==K.indexOf("\n");if(J=I,I=v,!v)break;if("/"===v&&"*"===d()){var N=0===B;(M||N)&&D.newLine(),E.push(i()),D.newLine(),N&&D.newLine(!0)}else if("/"===v&&"/"===d())M||"{"===J||D.trim(),D.singleSpace(),E.push(i()),D.newLine();else if("@"===v){D.preserveSingleSpace(),E.push(v);var O=f(": ,;{}()[]/='\"");O.match(/[ :]$/)&&(c(),O=e(": ").replace(/\s$/,""),E.push(O),D.singleSpace()),O=O.replace(/\s$/,""),O in n&&(C+=1,O in o&&(H=!0))}else"#"===v&&"{"===d()?(D.preserveSingleSpace(),E.push(e("}"))):"{"===v?"}"===d(!0)?(g(),c(),D.singleSpace(),E.push("{}"),D.newLine(),t&&0===B&&D.newLine(!0)):(l(),D["{"](v),H?(H=!1,F=B>C):F=B>=C):"}"===v?(m(),D["}"](v),F=!1,G=!1,C&&C--,t&&0===B&&D.newLine(!0)):":"===v?(g(),!F&&!H||j("&")||k()?":"===d()?(c(),E.push("::")):E.push(":"):(G=!0,E.push(":"),D.singleSpace())):'"'===v||"'"===v?(D.preserveSingleSpace(),E.push(e(v))):";"===v?(G=!1,E.push(v),D.newLine()):"("===v?j("url")?(E.push(v),g(),c()&&(")"!==v&&'"'!==v&&"'"!==v?E.push(e(")")):x--)):(y++,D.preserveSingleSpace(),E.push(v),g()):")"===v?(E.push(v),y--):","===v?(E.push(v),g(),r&&!G&&1>y?D.newLine():D.singleSpace()):"]"===v?E.push(v):"["===v?(D.preserveSingleSpace(),E.push(v)):"="===v?(g(),v="=",E.push(v)):(D.preserveSingleSpace(),E.push(v))}var P="";return z&&(P+=z),P+=E.join("").replace(/[\r\n\t ]+$/,""),s&&(P+="\n"),"\n"!=u&&(P=P.replace(/[\n]/g,u)),P}function c(a,b){for(var c=0;c<b.length;c+=1)if(b[c]===a)return!0;return!1}function d(a){return a.replace(/^\s+|\s+$/g,"")}function e(a){return a.replace(/^\s+/g,"")}function f(a,b){var c=new g(a,b);return c.beautify()}function g(a,b){function f(a,b){var c=0;a&&(c=a.indentation_level,!R.just_added_newline()&&a.line_indent_level>c&&(c=a.line_indent_level));var d={mode:b,parent:a,last_text:a?a.last_text:"",last_word:a?a.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,if_block:!1,else_block:!1,do_block:!1,do_while:!1,in_case_statement:!1,in_case:!1,case_body:!1,indentation_level:c,line_indent_level:a?a.line_indent_level:c,start_line_index:R.get_line_number(),ternary_depth:0};return d}function g(a){var b=a.newlines,c=ba.keep_array_indentation&&t(Y.mode);if(c)for(d=0;b>d;d+=1)n(d>0);else if(ba.max_preserve_newlines&&b>ba.max_preserve_newlines&&(b=ba.max_preserve_newlines),ba.preserve_newlines&&a.newlines>1){n();for(var d=1;b>d;d+=1)n(!0)}U=a,aa[U.type]()}function h(a){a=a.replace(/\x0d/g,"");for(var b=[],c=a.indexOf("\n");-1!==c;)b.push(a.substring(0,c)),a=a.substring(c+1),c=a.indexOf("\n");return a.length&&b.push(a),b}function m(a){if(a=void 0===a?!1:a,!R.just_added_newline())if(ba.preserve_newlines&&U.wanted_newline||a)n(!1,!0);else if(ba.wrap_line_length){var b=R.current_line.get_character_count()+U.text.length+(R.space_before_token?1:0);b>=ba.wrap_line_length&&n(!1,!0)}}function n(a,b){if(!b&&";"!==Y.last_text&&","!==Y.last_text&&"="!==Y.last_text&&"TK_OPERATOR"!==V)for(;Y.mode===l.Statement&&!Y.if_block&&!Y.do_block;)v();R.add_new_line(a)&&(Y.multiline_frame=!0)}function o(){R.just_added_newline()&&(ba.keep_array_indentation&&t(Y.mode)&&U.wanted_newline?(R.current_line.push(U.whitespace_before),R.space_before_token=!1):R.set_indent(Y.indentation_level)&&(Y.line_indent_level=Y.indentation_level))}function p(a){return R.raw?void R.add_raw_token(U):(ba.comma_first&&"TK_COMMA"===V&&R.just_added_newline()&&","===R.previous_line.last()&&(R.previous_line.pop(),o(),R.add_token(","),R.space_before_token=!0),a=a||U.text,o(),void R.add_token(a))}function q(){Y.indentation_level+=1}function r(){Y.indentation_level>0&&(!Y.parent||Y.indentation_level>Y.parent.indentation_level)&&(Y.indentation_level-=1)}function s(a){Y?($.push(Y),Z=Y):Z=f(null,a),Y=f(Z,a)}function t(a){return a===l.ArrayLiteral}function u(a){return c(a,[l.Expression,l.ForInitializer,l.Conditional])}function v(){$.length>0&&(Z=Y,Y=$.pop(),Z.mode===l.Statement&&R.remove_redundant_indentation(Z))}function w(){return Y.parent.mode===l.ObjectLiteral&&Y.mode===l.Statement&&(":"===Y.last_text&&0===Y.ternary_depth||"TK_RESERVED"===V&&c(Y.last_text,["get","set"]))}function x(){return"TK_RESERVED"===V&&c(Y.last_text,["var","let","const"])&&"TK_WORD"===U.type||"TK_RESERVED"===V&&"do"===Y.last_text||"TK_RESERVED"===V&&"return"===Y.last_text&&!U.wanted_newline||"TK_RESERVED"===V&&"else"===Y.last_text&&("TK_RESERVED"!==U.type||"if"!==U.text)||"TK_END_EXPR"===V&&(Z.mode===l.ForInitializer||Z.mode===l.Conditional)||"TK_WORD"===V&&Y.mode===l.BlockStatement&&!Y.in_case&&"--"!==U.text&&"++"!==U.text&&"function"!==W&&"TK_WORD"!==U.type&&"TK_RESERVED"!==U.type||Y.mode===l.ObjectLiteral&&(":"===Y.last_text&&0===Y.ternary_depth||"TK_RESERVED"===V&&c(Y.last_text,["get","set"]))?(s(l.Statement),q(),"TK_RESERVED"===V&&c(Y.last_text,["var","let","const"])&&"TK_WORD"===U.type&&(Y.declaration_statement=!0),w()||m("TK_RESERVED"===U.type&&c(U.text,["do","for","if","while"])),!0):!1}function y(a,b){for(var c=0;c<a.length;c++){var e=d(a[c]);if(e.charAt(0)!==b)return!1}return!0}function z(a,b){for(var c,d=0,e=a.length;e>d;d++)if(c=a[d],c&&0!==c.indexOf(b))return!1;return!0}function A(a){return c(a,["case","return","do","if","throw","else"])}function B(a){var b=S+(a||0);return 0>b||b>=ca.length?null:ca[b]}function C(){x();var a=l.Expression;if("["===U.text){if("TK_WORD"===V||")"===Y.last_text)return"TK_RESERVED"===V&&c(Y.last_text,T.line_starters)&&(R.space_before_token=!0),s(a),p(),q(),void(ba.space_in_paren&&(R.space_before_token=!0));a=l.ArrayLiteral,t(Y.mode)&&("["===Y.last_text||","===Y.last_text&&("]"===W||"}"===W))&&(ba.keep_array_indentation||n())}else"TK_RESERVED"===V&&"for"===Y.last_text?a=l.ForInitializer:"TK_RESERVED"===V&&c(Y.last_text,["if","while"])&&(a=l.Conditional);";"===Y.last_text||"TK_START_BLOCK"===V?n():"TK_END_EXPR"===V||"TK_START_EXPR"===V||"TK_END_BLOCK"===V||"."===Y.last_text?m(U.wanted_newline):"TK_RESERVED"===V&&"("===U.text||"TK_WORD"===V||"TK_OPERATOR"===V?"TK_RESERVED"===V&&("function"===Y.last_word||"typeof"===Y.last_word)||"*"===Y.last_text&&"function"===W?ba.space_after_anon_function&&(R.space_before_token=!0):"TK_RESERVED"!==V||!c(Y.last_text,T.line_starters)&&"catch"!==Y.last_text||ba.space_before_conditional&&(R.space_before_token=!0):R.space_before_token=!0,"("===U.text&&"TK_RESERVED"===V&&"await"===Y.last_word&&(R.space_before_token=!0),"("===U.text&&("TK_EQUALS"===V||"TK_OPERATOR"===V)&&(w()||m()),s(a),p(),ba.space_in_paren&&(R.space_before_token=!0),q()}function D(){for(;Y.mode===l.Statement;)v();Y.multiline_frame&&m("]"===U.text&&t(Y.mode)&&!ba.keep_array_indentation),ba.space_in_paren&&("TK_START_EXPR"!==V||ba.space_in_empty_paren?R.space_before_token=!0:(R.trim(),R.space_before_token=!1)),"]"===U.text&&ba.keep_array_indentation?(p(),v()):(v(),p()),R.remove_redundant_indentation(Z),Y.do_while&&Z.mode===l.Conditional&&(Z.mode=l.Expression,Y.do_block=!1,Y.do_while=!1)}function E(){var a=B(1),b=B(2);s(b&&(":"===b.text&&c(a.type,["TK_STRING","TK_WORD","TK_RESERVED"])||c(a.text,["get","set"])&&c(b.type,["TK_WORD","TK_RESERVED"]))?c(W,["class","interface"])?l.BlockStatement:l.ObjectLiteral:l.BlockStatement);var d=!a.comments_before.length&&"}"===a.text,e=d&&"function"===Y.last_word&&"TK_END_EXPR"===V;"expand"===ba.brace_style||"none"===ba.brace_style&&U.wanted_newline?"TK_OPERATOR"!==V&&(e||"TK_EQUALS"===V||"TK_RESERVED"===V&&A(Y.last_text)&&"else"!==Y.last_text)?R.space_before_token=!0:n(!1,!0):"TK_OPERATOR"!==V&&"TK_START_EXPR"!==V?"TK_START_BLOCK"===V?n():R.space_before_token=!0:t(Z.mode)&&","===Y.last_text&&("}"===W?R.space_before_token=!0:n()),p(),q()}function F(){for(;Y.mode===l.Statement;)v();var a="TK_START_BLOCK"===V;"expand"===ba.brace_style?a||n():a||(t(Y.mode)&&ba.keep_array_indentation?(ba.keep_array_indentation=!1,n(),ba.keep_array_indentation=!0):n()),v(),p()}function G(){if("TK_RESERVED"===U.type&&Y.mode!==l.ObjectLiteral&&c(U.text,["set","get"])&&(U.type="TK_WORD"),"TK_RESERVED"===U.type&&Y.mode===l.ObjectLiteral){var a=B(1);":"==a.text&&(U.type="TK_WORD")}if(x()||!U.wanted_newline||u(Y.mode)||"TK_OPERATOR"===V&&"--"!==Y.last_text&&"++"!==Y.last_text||"TK_EQUALS"===V||!ba.preserve_newlines&&"TK_RESERVED"===V&&c(Y.last_text,["var","let","const","set","get"])||n(),Y.do_block&&!Y.do_while){if("TK_RESERVED"===U.type&&"while"===U.text)return R.space_before_token=!0,p(),R.space_before_token=!0,void(Y.do_while=!0);n(),Y.do_block=!1}if(Y.if_block)if(Y.else_block||"TK_RESERVED"!==U.type||"else"!==U.text){for(;Y.mode===l.Statement;)v();Y.if_block=!1,Y.else_block=!1}else Y.else_block=!0;if("TK_RESERVED"===U.type&&("case"===U.text||"default"===U.text&&Y.in_case_statement))return n(),(Y.case_body||ba.jslint_happy)&&(r(),Y.case_body=!1),p(),Y.in_case=!0,void(Y.in_case_statement=!0);if("TK_RESERVED"===U.type&&"function"===U.text&&((c(Y.last_text,["}",";"])||R.just_added_newline()&&!c(Y.last_text,["[","{",":","=",","]))&&(R.just_added_blankline()||U.comments_before.length||(n(),n(!0))),"TK_RESERVED"===V||"TK_WORD"===V?"TK_RESERVED"===V&&c(Y.last_text,["get","set","new","return","export","async"])?R.space_before_token=!0:"TK_RESERVED"===V&&"default"===Y.last_text&&"export"===W?R.space_before_token=!0:n():"TK_OPERATOR"===V||"="===Y.last_text?R.space_before_token=!0:(Y.multiline_frame||!u(Y.mode)&&!t(Y.mode))&&n()),("TK_COMMA"===V||"TK_START_EXPR"===V||"TK_EQUALS"===V||"TK_OPERATOR"===V)&&(w()||m()),"TK_RESERVED"===U.type&&c(U.text,["function","get","set"]))return p(),void(Y.last_word=U.text);if(_="NONE","TK_END_BLOCK"===V?"TK_RESERVED"===U.type&&c(U.text,["else","catch","finally"])?"expand"===ba.brace_style||"end-expand"===ba.brace_style||"none"===ba.brace_style&&U.wanted_newline?_="NEWLINE":(_="SPACE",R.space_before_token=!0):_="NEWLINE":"TK_SEMICOLON"===V&&Y.mode===l.BlockStatement?_="NEWLINE":"TK_SEMICOLON"===V&&u(Y.mode)?_="SPACE":"TK_STRING"===V?_="NEWLINE":"TK_RESERVED"===V||"TK_WORD"===V||"*"===Y.last_text&&"function"===W?_="SPACE":"TK_START_BLOCK"===V?_="NEWLINE":"TK_END_EXPR"===V&&(R.space_before_token=!0,_="NEWLINE"),"TK_RESERVED"===U.type&&c(U.text,T.line_starters)&&")"!==Y.last_text&&(_="else"===Y.last_text||"export"===Y.last_text?"SPACE":"NEWLINE"),"TK_RESERVED"===U.type&&c(U.text,["else","catch","finally"]))if("TK_END_BLOCK"!==V||"expand"===ba.brace_style||"end-expand"===ba.brace_style||"none"===ba.brace_style&&U.wanted_newline)n();else{R.trim(!0);var b=R.current_line;"}"!==b.last()&&n(),R.space_before_token=!0}else"NEWLINE"===_?"TK_RESERVED"===V&&A(Y.last_text)?R.space_before_token=!0:"TK_END_EXPR"!==V?"TK_START_EXPR"===V&&"TK_RESERVED"===U.type&&c(U.text,["var","let","const"])||":"===Y.last_text||("TK_RESERVED"===U.type&&"if"===U.text&&"else"===Y.last_text?R.space_before_token=!0:n()):"TK_RESERVED"===U.type&&c(U.text,T.line_starters)&&")"!==Y.last_text&&n():Y.multiline_frame&&t(Y.mode)&&","===Y.last_text&&"}"===W?n():"SPACE"===_&&(R.space_before_token=!0);p(),Y.last_word=U.text,"TK_RESERVED"===U.type&&"do"===U.text&&(Y.do_block=!0),"TK_RESERVED"===U.type&&"if"===U.text&&(Y.if_block=!0)}function H(){for(x()&&(R.space_before_token=!1);Y.mode===l.Statement&&!Y.if_block&&!Y.do_block;)v();p()}function I(){x()?R.space_before_token=!0:"TK_RESERVED"===V||"TK_WORD"===V?R.space_before_token=!0:"TK_COMMA"===V||"TK_START_EXPR"===V||"TK_EQUALS"===V||"TK_OPERATOR"===V?w()||m():n(),p()}function J(){x(),Y.declaration_statement&&(Y.declaration_assignment=!0),R.space_before_token=!0,p(),R.space_before_token=!0}function K(){return Y.declaration_statement?(u(Y.parent.mode)&&(Y.declaration_assignment=!1),p(),void(Y.declaration_assignment?(Y.declaration_assignment=!1,n(!1,!0)):(R.space_before_token=!0,ba.comma_first&&m()))):(p(),void(Y.mode===l.ObjectLiteral||Y.mode===l.Statement&&Y.parent.mode===l.ObjectLiteral?(Y.mode===l.Statement&&v(),n()):(R.space_before_token=!0,ba.comma_first&&m())))}function L(){if(x(),"TK_RESERVED"===V&&A(Y.last_text))return R.space_before_token=!0,void p();if("*"===U.text&&"TK_DOT"===V)return void p();if(":"===U.text&&Y.in_case)return Y.case_body=!0,q(),p(),n(),void(Y.in_case=!1);if("::"===U.text)return void p();"TK_OPERATOR"===V&&m();var a=!0,b=!0;c(U.text,["--","++","!","~"])||c(U.text,["-","+"])&&(c(V,["TK_START_BLOCK","TK_START_EXPR","TK_EQUALS","TK_OPERATOR"])||c(Y.last_text,T.line_starters)||","===Y.last_text)?(a=!1,b=!1,!U.wanted_newline||"--"!==U.text&&"++"!==U.text||n(!1,!0),";"===Y.last_text&&u(Y.mode)&&(a=!0),"TK_RESERVED"===V?a=!0:"TK_END_EXPR"===V?a=!("]"===Y.last_text&&("--"===U.text||"++"===U.text)):"TK_OPERATOR"===V&&(a=c(U.text,["--","-","++","+"])&&c(Y.last_text,["--","-","++","+"]),c(U.text,["+","-"])&&c(Y.last_text,["--","++"])&&(b=!0)),Y.mode!==l.BlockStatement&&Y.mode!==l.Statement||"{"!==Y.last_text&&";"!==Y.last_text||n()):":"===U.text?0===Y.ternary_depth?a=!1:Y.ternary_depth-=1:"?"===U.text?Y.ternary_depth+=1:"*"===U.text&&"TK_RESERVED"===V&&"function"===Y.last_text&&(a=!1,b=!1),R.space_before_token=R.space_before_token||a,p(),R.space_before_token=b}function M(){if(R.raw)return R.add_raw_token(U),void(U.directives&&"end"===U.directives.preserve&&(ba.test_output_raw||(R.raw=!1)));if(U.directives)return n(!1,!0),p(),"start"===U.directives.preserve&&(R.raw=!0),void n(!1,!0);if(!k.newline.test(U.text)&&!U.wanted_newline)return R.space_before_token=!0,p(),void(R.space_before_token=!0);var a,b=h(U.text),c=!1,d=!1,f=U.whitespace_before,g=f.length;for(n(!1,!0),b.length>1&&(y(b.slice(1),"*")?c=!0:z(b.slice(1),f)&&(d=!0)),p(b[0]),a=1;a<b.length;a++)n(!1,!0),c?p(" "+e(b[a])):d&&b[a].length>g?p(b[a].substring(g)):R.add_token(b[a]);n(!1,!0)}function N(){U.wanted_newline?n(!1,!0):R.trim(!0),R.space_before_token=!0,p(),n(!1,!0)}function O(){x(),"TK_RESERVED"===V&&A(Y.last_text)?R.space_before_token=!0:m(")"===Y.last_text&&ba.break_chained_methods),p()}function P(){p(),"\n"===U.text[U.text.length-1]&&n()}function Q(){for(;Y.mode===l.Statement;)v()}var R,S,T,U,V,W,X,Y,Z,$,_,aa,ba,ca=[],da="";for(aa={TK_START_EXPR:C,TK_END_EXPR:D,TK_START_BLOCK:E,TK_END_BLOCK:F,TK_WORD:G,TK_RESERVED:G,TK_SEMICOLON:H,TK_STRING:I,TK_EQUALS:J,TK_OPERATOR:L,TK_COMMA:K,TK_BLOCK_COMMENT:M,TK_COMMENT:N,TK_DOT:O,TK_UNKNOWN:P,TK_EOF:Q},b=b?b:{},ba={},void 0!==b.braces_on_own_line&&(ba.brace_style=b.braces_on_own_line?"expand":"collapse"),ba.brace_style=b.brace_style?b.brace_style:ba.brace_style?ba.brace_style:"collapse","expand-strict"===ba.brace_style&&(ba.brace_style="expand"),ba.indent_size=b.indent_size?parseInt(b.indent_size,10):4,ba.indent_char=b.indent_char?b.indent_char:" ",ba.eol=b.eol?b.eol:"\n",ba.preserve_newlines=void 0===b.preserve_newlines?!0:b.preserve_newlines,ba.break_chained_methods=void 0===b.break_chained_methods?!1:b.break_chained_methods,ba.max_preserve_newlines=void 0===b.max_preserve_newlines?0:parseInt(b.max_preserve_newlines,10),ba.space_in_paren=void 0===b.space_in_paren?!1:b.space_in_paren,ba.space_in_empty_paren=void 0===b.space_in_empty_paren?!1:b.space_in_empty_paren,ba.jslint_happy=void 0===b.jslint_happy?!1:b.jslint_happy,ba.space_after_anon_function=void 0===b.space_after_anon_function?!1:b.space_after_anon_function,ba.keep_array_indentation=void 0===b.keep_array_indentation?!1:b.keep_array_indentation,ba.space_before_conditional=void 0===b.space_before_conditional?!0:b.space_before_conditional,ba.unescape_strings=void 0===b.unescape_strings?!1:b.unescape_strings,ba.wrap_line_length=void 0===b.wrap_line_length?0:parseInt(b.wrap_line_length,10),ba.e4x=void 0===b.e4x?!1:b.e4x,ba.end_with_newline=void 0===b.end_with_newline?!1:b.end_with_newline,ba.comma_first=void 0===b.comma_first?!1:b.comma_first,ba.test_output_raw=void 0===b.test_output_raw?!1:b.test_output_raw,ba.jslint_happy&&(ba.space_after_anon_function=!0),b.indent_with_tabs&&(ba.indent_char=" ",ba.indent_size=1),ba.eol=ba.eol.replace(/\\r/,"\r").replace(/\\n/,"\n"),X="";ba.indent_size>0;)X+=ba.indent_char,ba.indent_size-=1;var ea=0;if(a&&a.length){for(;" "===a.charAt(ea)||" "===a.charAt(ea);)da+=a.charAt(ea),ea+=1;a=a.substring(ea)}V="TK_START_BLOCK",W="",R=new i(X,da),R.raw=ba.test_output_raw,$=[],s(l.BlockStatement),this.beautify=function(){var b,c;for(T=new j(a,ba,X),ca=T.tokenize(),S=0;b=B();){for(var d=0;d<b.comments_before.length;d++)g(b.comments_before[d]);g(b),W=Y.last_text,V=b.type,Y.last_text=b.text,S+=1}return c=R.get_code(),ba.end_with_newline&&(c+="\n"),"\n"!=ba.eol&&(c=c.replace(/[\n]/g,ba.eol)),c}}function h(a){var b=0,c=-1,d=[],e=!0;this.set_indent=function(d){b=a.baseIndentLength+d*a.indent_length,c=d},this.get_character_count=function(){return b},this.is_empty=function(){return e},this.last=function(){return this._empty?null:d[d.length-1]},this.push=function(a){d.push(a),b+=a.length,e=!1},this.pop=function(){var a=null;return e||(a=d.pop(),b-=a.length,e=0===d.length),a},this.remove_indent=function(){c>0&&(c-=1,b-=a.indent_length)},this.trim=function(){for(;" "===this.last();){d.pop();b-=1}e=0===d.length},this.toString=function(){var b="";return this._empty||(c>=0&&(b=a.indent_cache[c]),b+=d.join("")),b}}function i(a,b){b=b||"",this.indent_cache=[b],this.baseIndentLength=b.length,this.indent_length=a.length,this.raw=!1;var c=[];this.baseIndentString=b,this.indent_string=a,this.previous_line=null,this.current_line=null,this.space_before_token=!1,this.add_outputline=function(){this.previous_line=this.current_line,this.current_line=new h(this),c.push(this.current_line)},this.add_outputline(),this.get_line_number=function(){return c.length},this.add_new_line=function(a){return 1===this.get_line_number()&&this.just_added_newline()?!1:a||!this.just_added_newline()?(this.raw||this.add_outputline(),!0):!1},this.get_code=function(){var a=c.join("\n").replace(/[\r\n\t ]+$/,"");return a},this.set_indent=function(a){if(c.length>1){for(;a>=this.indent_cache.length;)this.indent_cache.push(this.indent_cache[this.indent_cache.length-1]+this.indent_string);return this.current_line.set_indent(a),!0}return this.current_line.set_indent(0),!1},this.add_raw_token=function(a){for(var b=0;b<a.newlines;b++)this.add_outputline();this.current_line.push(a.whitespace_before), -this.current_line.push(a.text),this.space_before_token=!1},this.add_token=function(a){this.add_space_before_token(),this.current_line.push(a)},this.add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&this.current_line.push(" "),this.space_before_token=!1},this.remove_redundant_indentation=function(a){if(!a.multiline_frame&&a.mode!==l.ForInitializer&&a.mode!==l.Conditional)for(var b=a.start_line_index,d=c.length;d>b;)c[b].remove_indent(),b++},this.trim=function(d){for(d=void 0===d?!1:d,this.current_line.trim(a,b);d&&c.length>1&&this.current_line.is_empty();)c.pop(),this.current_line=c[c.length-1],this.current_line.trim();this.previous_line=c.length>1?c[c.length-2]:null},this.just_added_newline=function(){return this.current_line.is_empty()},this.just_added_blankline=function(){if(this.just_added_newline()){if(1===c.length)return!0;var a=c[c.length-2];return a.is_empty()}return!1}}function j(a,b,e){function f(a){if(!a.match(y))return null;var b={};z.lastIndex=0;for(var c=z.exec(a);c;)b[c[1]]=c[2],c=z.exec(a);return b}function g(){var e,g=[];if(p=0,q="",t>=u)return["","TK_EOF"];var y;y=s.length?s[s.length-1]:new m("TK_START_BLOCK","{");var z=a.charAt(t);for(t+=1;c(z,i);){if(k.newline.test(z)?("\n"!==z||"\r"!==a.charAt(t-2))&&(p+=1,g=[]):g.push(z),t>=u)return["","TK_EOF"];z=a.charAt(t),t+=1}if(g.length&&(q=g.join("")),j.test(z)){var C=!0,D=!0,E=j;for("0"===z&&u>t&&/[Xxo]/.test(a.charAt(t))?(C=!1,D=!1,z+=a.charAt(t),t+=1,E=/[o]/.test(a.charAt(t))?l:n):(z="",t-=1);u>t&&E.test(a.charAt(t));)z+=a.charAt(t),t+=1,C&&u>t&&"."===a.charAt(t)&&(z+=a.charAt(t),t+=1,C=!1),D&&u>t&&/[Ee]/.test(a.charAt(t))&&(z+=a.charAt(t),t+=1,u>t&&/[+-]/.test(a.charAt(t))&&(z+=a.charAt(t),t+=1),D=!1,C=!1);return[z,"TK_WORD"]}if(k.isIdentifierStart(a.charCodeAt(t-1))){if(u>t)for(;k.isIdentifierChar(a.charCodeAt(t))&&(z+=a.charAt(t),t+=1,t!==u););return"TK_DOT"===y.type||"TK_RESERVED"===y.type&&c(y.text,["set","get"])||!c(z,v)?[z,"TK_WORD"]:"in"===z?[z,"TK_OPERATOR"]:[z,"TK_RESERVED"]}if("("===z||"["===z)return[z,"TK_START_EXPR"];if(")"===z||"]"===z)return[z,"TK_END_EXPR"];if("{"===z)return[z,"TK_START_BLOCK"];if("}"===z)return[z,"TK_END_BLOCK"];if(";"===z)return[z,"TK_SEMICOLON"];if("/"===z){var F="";if("*"===a.charAt(t)){t+=1,w.lastIndex=t;var G=w.exec(a);F="/*"+G[0],t+=G[0].length;var H=f(F);return H&&"start"===H.ignore&&(A.lastIndex=t,G=A.exec(a),F+=G[0],t+=G[0].length),F=F.replace(k.lineBreak,"\n"),[F,"TK_BLOCK_COMMENT",H]}if("/"===a.charAt(t)){t+=1,x.lastIndex=t;var G=x.exec(a);return F="//"+G[0],t+=G[0].length,[F,"TK_COMMENT"]}}if("`"===z||"'"===z||'"'===z||("/"===z||b.e4x&&"<"===z&&a.slice(t-1).match(/^<([-a-zA-Z:0-9_.]+|{[^{}]*}|!\[CDATA\[[\s\S]*?\]\])(\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{.*?}))*\s*(\/?)\s*>/))&&("TK_RESERVED"===y.type&&c(y.text,["return","case","throw","else","do","typeof","yield"])||"TK_END_EXPR"===y.type&&")"===y.text&&y.parent&&"TK_RESERVED"===y.parent.type&&c(y.parent.text,["if","while","for"])||c(y.type,["TK_COMMENT","TK_START_EXPR","TK_START_BLOCK","TK_END_BLOCK","TK_OPERATOR","TK_EQUALS","TK_EOF","TK_SEMICOLON","TK_COMMA"]))){var I=z,J=!1,K=!1;if(e=z,"/"===I)for(var L=!1;u>t&&(J||L||a.charAt(t)!==I)&&!k.newline.test(a.charAt(t));)e+=a.charAt(t),J?J=!1:(J="\\"===a.charAt(t),"["===a.charAt(t)?L=!0:"]"===a.charAt(t)&&(L=!1)),t+=1;else if(b.e4x&&"<"===I){var M=/<(\/?)([-a-zA-Z:0-9_.]+|{[^{}]*}|!\[CDATA\[[\s\S]*?\]\])(\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{.*?}))*\s*(\/?)\s*>/g,N=a.slice(t-1),O=M.exec(N);if(O&&0===O.index){for(var P=O[2],Q=0;O;){var R=!!O[1],S=O[2],T=!!O[O.length-1]||"![CDATA["===S.slice(0,8);if(S!==P||T||(R?--Q:++Q),0>=Q)break;O=M.exec(N)}var U=O?O.index+O[0].length:N.length;return N=N.slice(0,U),t+=U-1,N=N.replace(k.lineBreak,"\n"),[N,"TK_STRING"]}}else for(;u>t&&(J||a.charAt(t)!==I&&("`"===I||!k.newline.test(a.charAt(t))));)(J||"`"===I)&&k.newline.test(a.charAt(t))?("\r"===a.charAt(t)&&"\n"===a.charAt(t+1)&&(t+=1),e+="\n"):e+=a.charAt(t),J?(("x"===a.charAt(t)||"u"===a.charAt(t))&&(K=!0),J=!1):J="\\"===a.charAt(t),t+=1;if(K&&b.unescape_strings&&(e=h(e)),u>t&&a.charAt(t)===I&&(e+=I,t+=1,"/"===I))for(;u>t&&k.isIdentifierStart(a.charCodeAt(t));)e+=a.charAt(t),t+=1;return[e,"TK_STRING"]}if("#"===z){if(0===s.length&&"!"===a.charAt(t)){for(e=z;u>t&&"\n"!==z;)z=a.charAt(t),e+=z,t+=1;return[d(e)+"\n","TK_UNKNOWN"]}var V="#";if(u>t&&j.test(a.charAt(t))){do z=a.charAt(t),V+=z,t+=1;while(u>t&&"#"!==z&&"="!==z);return"#"===z||("["===a.charAt(t)&&"]"===a.charAt(t+1)?(V+="[]",t+=2):"{"===a.charAt(t)&&"}"===a.charAt(t+1)&&(V+="{}",t+=2)),[V,"TK_WORD"]}}if("<"===z&&("?"===a.charAt(t)||"%"===a.charAt(t))){B.lastIndex=t-1;var W=B.exec(a);if(W)return z=W[0],t+=z.length-1,z=z.replace(k.lineBreak,"\n"),[z,"TK_STRING"]}if("<"===z&&"<!--"===a.substring(t-1,t+3)){for(t+=3,z="<!--";!k.newline.test(a.charAt(t))&&u>t;)z+=a.charAt(t),t++;return r=!0,[z,"TK_COMMENT"]}if("-"===z&&r&&"-->"===a.substring(t-1,t+2))return r=!1,t+=2,["-->","TK_COMMENT"];if("."===z)return[z,"TK_DOT"];if(c(z,o)){for(;u>t&&c(z+a.charAt(t),o)&&(z+=a.charAt(t),t+=1,!(t>=u)););return","===z?[z,"TK_COMMA"]:"="===z?[z,"TK_EQUALS"]:[z,"TK_OPERATOR"]}return[z,"TK_UNKNOWN"]}function h(a){for(var b,c=!1,d="",e=0,f="",g=0;c||e<a.length;)if(b=a.charAt(e),e++,c){if(c=!1,"x"===b)f=a.substr(e,2),e+=2;else{if("u"!==b){d+="\\"+b;continue}f=a.substr(e,4),e+=4}if(!f.match(/^[0123456789abcdefABCDEF]+$/))return a;if(g=parseInt(f,16),g>=0&&32>g){d+="x"===b?"\\x"+f:"\\u"+f;continue}if(34===g||39===g||92===g)d+="\\"+String.fromCharCode(g);else{if("x"===b&&g>126&&255>=g)return a;d+=String.fromCharCode(g)}}else"\\"===b?c=!0:d+=b;return d}var i="\n\r ".split(""),j=/[0-9]/,l=/[01234567]/,n=/[0123456789abcdefABCDEF]/,o="+ - * / % & ++ -- = += -= *= /= %= == === != !== > < >= <= >> << >>> >>>= >>= <<= && &= | || ! ~ , : ? ^ ^= |= :: =>".split(" ");this.line_starters="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(",");var p,q,r,s,t,u,v=this.line_starters.concat(["do","in","else","get","set","new","catch","finally","typeof","yield","async","await"]),w=/([\s\S]*?)((?:\*\/)|$)/g,x=/([^\n\r\u2028\u2029]*)/g,y=/\/\* beautify( \w+[:]\w+)+ \*\//g,z=/ (\w+)[:](\w+)/g,A=/([\s\S]*?)((?:\/\*\sbeautify\signore:end\s\*\/)|$)/g,B=/((<\?php|<\?=)[\s\S]*?\?>)|(<%[\s\S]*?%>)/g;this.tokenize=function(){u=a.length,t=0,r=!1,s=[];for(var b,c,d,e=null,f=[],h=[];!c||"TK_EOF"!==c.type;){for(d=g(),b=new m(d[1],d[0],p,q);"TK_COMMENT"===b.type||"TK_BLOCK_COMMENT"===b.type||"TK_UNKNOWN"===b.type;)"TK_BLOCK_COMMENT"===b.type&&(b.directives=d[2]),h.push(b),d=g(),b=new m(d[1],d[0],p,q);h.length&&(b.comments_before=h,h=[]),"TK_START_BLOCK"===b.type||"TK_START_EXPR"===b.type?(b.parent=c,f.push(e),e=b):("TK_END_BLOCK"===b.type||"TK_END_EXPR"===b.type)&&e&&("]"===b.text&&"["===e.text||")"===b.text&&"("===e.text||"}"===b.text&&"{"===e.text)&&(b.parent=e.parent,e=f.pop()),s.push(b),c=b}return s}}var k={};!function(a){var b="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0\u08a2-\u08ac\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097f\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c33\u0c35-\u0c39\u0c3d\u0c58\u0c59\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d60\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f0\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191c\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19c1-\u19c7\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fcc\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua697\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua78e\ua790-\ua793\ua7a0-\ua7aa\ua7f8-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa80-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uabc0-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc",c="\u0300-\u036f\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u0620-\u0649\u0672-\u06d3\u06e7-\u06e8\u06fb-\u06fc\u0730-\u074a\u0800-\u0814\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0840-\u0857\u08e4-\u08fe\u0900-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962-\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09d7\u09df-\u09e0\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2-\u0ae3\u0ae6-\u0aef\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b5f-\u0b60\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c01-\u0c03\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62-\u0c63\u0c66-\u0c6f\u0c82\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2-\u0ce3\u0ce6-\u0cef\u0d02\u0d03\u0d46-\u0d48\u0d57\u0d62-\u0d63\u0d66-\u0d6f\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e34-\u0e3a\u0e40-\u0e45\u0e50-\u0e59\u0eb4-\u0eb9\u0ec8-\u0ecd\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f41-\u0f47\u0f71-\u0f84\u0f86-\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u1000-\u1029\u1040-\u1049\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u170e-\u1710\u1720-\u1730\u1740-\u1750\u1772\u1773\u1780-\u17b2\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u1920-\u192b\u1930-\u193b\u1951-\u196d\u19b0-\u19c0\u19c8-\u19c9\u19d0-\u19d9\u1a00-\u1a15\u1a20-\u1a53\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1b46-\u1b4b\u1b50-\u1b59\u1b6b-\u1b73\u1bb0-\u1bb9\u1be6-\u1bf3\u1c00-\u1c22\u1c40-\u1c49\u1c5b-\u1c7d\u1cd0-\u1cd2\u1d00-\u1dbe\u1e01-\u1f15\u200c\u200d\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2d81-\u2d96\u2de0-\u2dff\u3021-\u3028\u3099\u309a\ua640-\ua66d\ua674-\ua67d\ua69f\ua6f0-\ua6f1\ua7f8-\ua800\ua806\ua80b\ua823-\ua827\ua880-\ua881\ua8b4-\ua8c4\ua8d0-\ua8d9\ua8f3-\ua8f7\ua900-\ua909\ua926-\ua92d\ua930-\ua945\ua980-\ua983\ua9b3-\ua9c0\uaa00-\uaa27\uaa40-\uaa41\uaa4c-\uaa4d\uaa50-\uaa59\uaa7b\uaae0-\uaae9\uaaf2-\uaaf3\uabc0-\uabe1\uabec\uabed\uabf0-\uabf9\ufb20-\ufb28\ufe00-\ufe0f\ufe20-\ufe26\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f",d=new RegExp("["+b+"]"),e=new RegExp("["+b+c+"]");a.newline=/[\n\r\u2028\u2029]/,a.lineBreak=new RegExp("\r\n|"+a.newline.source),a.allLineBreaks=new RegExp(a.lineBreak.source,"g"),a.isIdentifierStart=function(a){return 65>a?36===a||64===a:91>a?!0:97>a?95===a:123>a?!0:a>=170&&d.test(String.fromCharCode(a))},a.isIdentifierChar=function(a){return 48>a?36===a:58>a?!0:65>a?!1:91>a?!0:97>a?95===a:123>a?!0:a>=170&&e.test(String.fromCharCode(a))}}(k);var l={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"},m=function(a,b,c,d,e,f){this.type=a,this.text=b,this.comments_before=[],this.newlines=c||0,this.wanted_newline=c>0,this.whitespace_before=d||"",this.parent=null,this.directives=null};return{run:a}}}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/code_view.min.js b/Mobile.Search.Web/Scripts/froala-editor/js/plugins/code_view.min.js deleted file mode 100644 index ff3c064..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/code_view.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.DEFAULTS,{codeMirror:window.CodeMirror,codeMirrorOptions:{lineNumbers:!0,tabMode:"indent",indentWithTabs:!0,lineWrapping:!0,mode:"text/html",tabSize:2},codeBeautifierOptions:{end_with_newline:!0,indent_inner_html:!0,extra_liners:["p","h1","h2","h3","h4","h5","h6","blockquote","pre","ul","ol","table","dl"],brace_style:"expand",indent_char:" ",indent_size:1,wrap_line_length:0},codeViewKeepActiveButtons:["fullscreen"]}),a.FE.PLUGINS.codeView=function(b){function c(){return b.$box.hasClass("fr-code-view")}function d(){return m?m.getValue():l.val()}function e(){c()&&(m.setSize(null,b.opts.height?b.opts.height:"auto"),b.opts.heightMin||b.opts.height?b.$box.find(".CodeMirror-scroll, .CodeMirror-gutters").css("min-height",b.opts.heightMin||b.opts.height):b.$box.find(".CodeMirror-scroll, .CodeMirror-gutters").css("min-height",""))}function f(a){var c=d();b.html.set(c),b.$el.blur(),b.$tb.find(" > .fr-command").not(a).removeClass("fr-disabled").attr("aria-disabled",!1),a.removeClass("fr-active").attr("aria-pressed",!1),b.selection.setAtStart(b.el),b.selection.restore(),b.placeholder.refresh(),b.undo.saveStep()}function g(c){l||(j(),!m&&b.opts.codeMirror?m=b.opts.codeMirror.fromTextArea(l.get(0),b.opts.codeMirrorOptions):b.events.$on(l,"keydown keyup change input",function(){b.opts.height?this.removeAttribute("rows"):(this.rows=1,0===this.value.length?this.style.height="auto":this.style.height=this.scrollHeight+"px")})),b.undo.saveStep(),b.html.cleanEmptyTags(),b.html.cleanWhiteTags(!0),b.core.hasFocus()&&(b.core.isEmpty()||(b.selection.save(),b.$el.find('.fr-marker[data-type="true"]:first').replaceWith('<span class="fr-tmp fr-sm">F</span>'),b.$el.find('.fr-marker[data-type="false"]:last').replaceWith('<span class="fr-tmp fr-em">F</span>')));var d=b.html.get(!1,!0);b.$el.find("span.fr-tmp").remove(),b.$box.toggleClass("fr-code-view",!0),b.core.hasFocus()&&b.$el.blur(),d=d.replace(/<span class="fr-tmp fr-sm">F<\/span>/,"FROALA-SM"),d=d.replace(/<span class="fr-tmp fr-em">F<\/span>/,"FROALA-EM"),b.codeBeautifier&&(d=b.codeBeautifier.run(d,b.opts.codeBeautifierOptions));var e,f;if(m){e=d.indexOf("FROALA-SM"),f=d.indexOf("FROALA-EM"),e>f?e=f:f-=9,d=d.replace(/FROALA-SM/g,"").replace(/FROALA-EM/g,"");var g=d.substring(0,e).length-d.substring(0,e).replace(/\n/g,"").length,h=d.substring(0,f).length-d.substring(0,f).replace(/\n/g,"").length;e=d.substring(0,e).length-d.substring(0,d.substring(0,e).lastIndexOf("\n")+1).length,f=d.substring(0,f).length-d.substring(0,d.substring(0,f).lastIndexOf("\n")+1).length,m.setSize(null,b.opts.height?b.opts.height:"auto"),b.opts.heightMin&&b.$box.find(".CodeMirror-scroll").css("min-height",b.opts.heightMin),m.setValue(d),m.focus(),m.setSelection({line:g,ch:e},{line:h,ch:f}),m.refresh(),m.clearHistory()}else{e=d.indexOf("FROALA-SM"),f=d.indexOf("FROALA-EM")-9,b.opts.heightMin&&l.css("min-height",b.opts.heightMin),b.opts.height&&l.css("height",b.opts.height),b.opts.heightMax&&l.css("max-height",b.opts.height||b.opts.heightMax),l.val(d.replace(/FROALA-SM/g,"").replace(/FROALA-EM/g,"")).trigger("change");var i=a(b.o_doc).scrollTop();l.focus(),l.get(0).setSelectionRange(e,f),a(b.o_doc).scrollTop(i)}b.$tb.find(" > .fr-command").not(c).filter(function(){return b.opts.codeViewKeepActiveButtons.indexOf(a(this).data("cmd"))<0}).addClass("fr-disabled").attr("aria-disabled",!0),c.addClass("fr-active").attr("aria-pressed",!0),!b.helpers.isMobile()&&b.opts.toolbarInline&&b.toolbar.hide()}function h(a){"undefined"==typeof a&&(a=!c());var d=b.$tb.find('.fr-command[data-cmd="html"]');a?(b.popups.hideAll(),g(d)):(b.$box.toggleClass("fr-code-view",!1),f(d))}function i(){c()&&h(!1),m&&m.toTextArea(),l.val("").removeData().remove(),l=null,n&&(n.remove(),n=null)}function j(){l=a('<textarea class="fr-code" tabIndex="-1">'),b.$wp.append(l),l.attr("dir",b.opts.direction),b.$box.hasClass("fr-basic")||(n=a('<a data-cmd="html" title="Code View" class="fr-command fr-btn html-switch'+(b.helpers.isMobile()?"":" fr-desktop")+'" role="button" tabIndex="-1"><i class="fa fa-code"></i></button>'),b.$box.append(n),b.events.bindClick(b.$box,"a.html-switch",function(){h(!1)}));var f=function(){return!c()};b.events.on("buttons.refresh",f),b.events.on("copy",f,!0),b.events.on("cut",f,!0),b.events.on("paste",f,!0),b.events.on("destroy",i,!0),b.events.on("html.set",function(){c()&&h(!0)}),b.events.on("codeView.update",e),b.events.on("form.submit",function(){c()&&(b.html.set(d()),b.events.trigger("contentChanged",[],!0))},!0)}function k(){return b.$wp?void 0:!1}var l,m,n;return{_init:k,toggle:h,isActive:c,get:d}},a.FE.RegisterCommand("html",{title:"Code View",undo:!1,focus:!1,forcedRefresh:!0,toggle:!0,callback:function(){this.codeView.toggle()},plugin:"codeView"}),a.FE.DefineIcon("html",{NAME:"code"})}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/colors.min.js b/Mobile.Search.Web/Scripts/froala-editor/js/plugins/colors.min.js deleted file mode 100644 index 7d9b7fa..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/colors.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.POPUP_TEMPLATES,{"colors.picker":"[_BUTTONS_][_TEXT_COLORS_][_BACKGROUND_COLORS_][_CUSTOM_COLOR_]"}),a.extend(a.FE.DEFAULTS,{colorsText:["#61BD6D","#1ABC9C","#54ACD2","#2C82C9","#9365B8","#475577","#CCCCCC","#41A85F","#00A885","#3D8EB9","#2969B0","#553982","#28324E","#000000","#F7DA64","#FBA026","#EB6B56","#E25041","#A38F84","#EFEFEF","#FFFFFF","#FAC51C","#F37934","#D14841","#B8312F","#7C706B","#D1D5D8","REMOVE"],colorsBackground:["#61BD6D","#1ABC9C","#54ACD2","#2C82C9","#9365B8","#475577","#CCCCCC","#41A85F","#00A885","#3D8EB9","#2969B0","#553982","#28324E","#000000","#F7DA64","#FBA026","#EB6B56","#E25041","#A38F84","#EFEFEF","#FFFFFF","#FAC51C","#F37934","#D14841","#B8312F","#7C706B","#D1D5D8","REMOVE"],colorsStep:7,colorsHEXInput:!0,colorsDefaultTab:"text",colorsButtons:["colorsBack","|","-"]}),a.FE.PLUGINS.colors=function(b){function c(){var a=b.$tb.find('.fr-command[data-cmd="color"]'),c=b.popups.get("colors.picker");if(c||(c=e()),!c.hasClass("fr-active"))if(b.popups.setContainer("colors.picker",b.$tb),i(c.find(".fr-selected-tab").attr("data-param1")),a.is(":visible")){var d=a.offset().left+a.outerWidth()/2,f=a.offset().top+(b.opts.toolbarBottom?10:a.outerHeight()-10);b.popups.show("colors.picker",d,f,a.outerHeight())}else b.position.forSelection(c),b.popups.show("colors.picker")}function d(){b.popups.hide("colors.picker")}function e(){var a='<div class="fr-buttons fr-colors-buttons">';b.opts.toolbarInline&&b.opts.colorsButtons.length>0&&(a+=b.button.buildList(b.opts.colorsButtons)),a+=f()+"</div>";var c="";b.opts.colorsHEXInput&&(c='<div class="fr-color-hex-layer fr-active fr-layer" id="fr-color-hex-layer-'+b.id+'"><div class="fr-input-line"><input maxlength="7" id="fr-color-hex-layer-text-'+b.id+'" type="text" placeholder="'+b.language.translate("HEX Color")+'" tabIndex="1" aria-required="true"></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="customColor" tabIndex="2" role="button">'+b.language.translate("OK")+"</button></div></div>");var d={buttons:a,text_colors:g("text"),background_colors:g("background"),custom_color:c},e=b.popups.create("colors.picker",d);return h(e),e}function f(){var a='<div class="fr-colors-tabs fr-group">';return a+='<span class="fr-colors-tab '+("background"==b.opts.colorsDefaultTab?"":"fr-selected-tab ")+'fr-command" tabIndex="-1" role="button" aria-pressed="'+("background"==b.opts.colorsDefaultTab?!1:!0)+'" data-param1="text" data-cmd="colorChangeSet" title="'+b.language.translate("Text")+'">'+b.language.translate("Text")+"</span>",a+='<span class="fr-colors-tab '+("background"==b.opts.colorsDefaultTab?"fr-selected-tab ":"")+'fr-command" tabIndex="-1" role="button" aria-pressed="'+("background"==b.opts.colorsDefaultTab?!0:!1)+'" data-param1="background" data-cmd="colorChangeSet" title="'+b.language.translate("Background")+'">'+b.language.translate("Background")+"</span>",a+"</div>"}function g(a){for(var c="text"==a?b.opts.colorsText:b.opts.colorsBackground,d='<div class="fr-color-set fr-'+a+"-color"+(b.opts.colorsDefaultTab==a||"text"!=b.opts.colorsDefaultTab&&"background"!=b.opts.colorsDefaultTab&&"text"==a?" fr-selected-set":"")+'">',e=0;e<c.length;e++)0!==e&&e%b.opts.colorsStep===0&&(d+="<br>"),d+="REMOVE"!=c[e]?'<span class="fr-command fr-select-color" style="background: '+c[e]+';" tabIndex="-1" aria-selected="false" role="button" data-cmd="'+a+'Color" data-param1="'+c[e]+'"><span class="fr-sr-only">'+b.language.translate("Color")+" "+c[e]+" </span></span>":'<span class="fr-command fr-select-color" data-cmd="'+a+'Color" tabIndex="-1" role="button" data-param1="REMOVE" title="'+b.language.translate("Clear Formatting")+'">'+b.icon.create("remove")+'<span class="fr-sr-only">'+b.language.translate("Clear Formatting")+"</span></span>";return d+"</div>"}function h(c){b.events.on("popup.tab",function(d){var e=a(d.currentTarget);if(!b.popups.isVisible("colors.picker")||!e.is("span"))return!0;var f=d.which,g=!0;if(a.FE.KEYCODE.TAB==f){var h=c.find(".fr-buttons");g=!b.accessibility.focusToolbar(h,d.shiftKey?!0:!1)}else if(a.FE.KEYCODE.ARROW_UP==f||a.FE.KEYCODE.ARROW_DOWN==f||a.FE.KEYCODE.ARROW_LEFT==f||a.FE.KEYCODE.ARROW_RIGHT==f){if(e.is("span.fr-select-color")){var i=e.parent().find("span.fr-select-color"),j=i.index(e),k=b.opts.colorsStep,l=Math.floor(i.length/k),m=j%k,n=Math.floor(j/k),o=n*k+m,p=l*k;a.FE.KEYCODE.ARROW_UP==f?o=((o-k)%p+p)%p:a.FE.KEYCODE.ARROW_DOWN==f?o=(o+k)%p:a.FE.KEYCODE.ARROW_LEFT==f?o=((o-1)%p+p)%p:a.FE.KEYCODE.ARROW_RIGHT==f&&(o=(o+1)%p);var q=a(i.get(o));b.events.disableBlur(),q.focus(),g=!1}}else a.FE.KEYCODE.ENTER==f&&(b.button.exec(e),g=!1);return g===!1&&(d.preventDefault(),d.stopPropagation()),g},!0)}function i(c){var d,e=b.popups.get("colors.picker"),f=a(b.selection.element());d="background"==c?"background-color":"color";var g=e.find(".fr-"+c+"-color .fr-select-color");for(g.find(".fr-selected-color").remove(),g.removeClass("fr-active-item"),g.not('[data-param1="REMOVE"]').attr("aria-selected",!1);f.get(0)!=b.el;){if("transparent"!=f.css(d)&&"rgba(0, 0, 0, 0)"!=f.css(d)){var h=e.find(".fr-"+c+'-color .fr-select-color[data-param1="'+b.helpers.RGBToHex(f.css(d))+'"]');h.append('<span class="fr-selected-color" aria-hidden="true">\uf00c</span>'),h.addClass("fr-active-item").attr("aria-selected",!0);break}f=f.parent()}var i=e.find(".fr-color-hex-layer input");i.length&&i.val(b.helpers.RGBToHex(f.css(d))).trigger("change")}function j(a,c){a.hasClass("fr-selected-tab")||(a.siblings().removeClass("fr-selected-tab").attr("aria-pressed",!1),a.addClass("fr-selected-tab").attr("aria-pressed",!0),a.parents(".fr-popup").find(".fr-color-set").removeClass("fr-selected-set"),a.parents(".fr-popup").find(".fr-color-set.fr-"+c+"-color").addClass("fr-selected-set"),i(c)),b.accessibility.focusPopup(a.parents(".fr-popup"))}function k(a){"REMOVE"!=a?b.format.applyStyle("background-color",b.helpers.HEXtoRGB(a)):b.format.removeStyle("background-color"),d()}function l(a){"REMOVE"!=a?b.format.applyStyle("color",b.helpers.HEXtoRGB(a)):b.format.removeStyle("color"),d()}function m(){b.popups.hide("colors.picker"),b.toolbar.showInline()}function n(){var a=b.popups.get("colors.picker"),c=a.find(".fr-color-hex-layer input");if(c.length){var d=c.val(),e=a.find(".fr-selected-tab").attr("data-param1");"background"==e?k(d):l(d)}}return{showColorsPopup:c,hideColorsPopup:d,changeSet:j,background:k,customColor:n,text:l,back:m}},a.FE.DefineIcon("colors",{NAME:"tint"}),a.FE.RegisterCommand("color",{title:"Colors",undo:!1,focus:!0,refreshOnCallback:!1,popup:!0,callback:function(){this.popups.isVisible("colors.picker")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("colors.picker")):this.colors.showColorsPopup()},plugin:"colors"}),a.FE.RegisterCommand("textColor",{undo:!0,callback:function(a,b){this.colors.text(b)}}),a.FE.RegisterCommand("backgroundColor",{undo:!0,callback:function(a,b){this.colors.background(b)}}),a.FE.RegisterCommand("colorChangeSet",{undo:!1,focus:!1,callback:function(a,b){var c=this.popups.get("colors.picker").find('.fr-command[data-cmd="'+a+'"][data-param1="'+b+'"]');this.colors.changeSet(c,b)}}),a.FE.DefineIcon("colorsBack",{NAME:"arrow-left"}),a.FE.RegisterCommand("colorsBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.colors.back()}}),a.FE.RegisterCommand("customColor",{title:"OK",undo:!0,callback:function(){this.colors.customColor()}}),a.FE.DefineIcon("remove",{NAME:"eraser"})}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/draggable.min.js b/Mobile.Search.Web/Scripts/froala-editor/js/plugins/draggable.min.js deleted file mode 100644 index 0e8bbe0..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/draggable.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.DEFAULTS,{dragInline:!0}),a.FE.PLUGINS.draggable=function(b){function c(c){return c.originalEvent&&c.originalEvent.target&&c.originalEvent.target.nodeType==Node.TEXT_NODE?!0:(c.target&&"A"==c.target.tagName&&1==c.target.childNodes.length&&"IMG"==c.target.childNodes[0].tagName&&(c.target=c.target.childNodes[0]),a(c.target).hasClass("fr-draggable")?(b.undo.canDo()||b.undo.saveStep(),b.opts.dragInline?b.$el.attr("contenteditable",!0):b.$el.attr("contenteditable",!1),b.opts.toolbarInline&&b.toolbar.hide(),a(c.target).addClass("fr-dragging"),b.browser.msie||b.browser.edge||b.selection.clear(),void c.originalEvent.dataTransfer.setData("text","Froala")):(c.preventDefault(),!1))}function d(a){return!(a&&("HTML"==a.tagName||"BODY"==a.tagName||b.node.isElement(a)))}function e(a,c,d){b.opts.iframe&&(a+=b.$iframe.offset().top,c+=b.$iframe.offset().left),n.offset().top!=a&&n.css("top",a),n.offset().left!=c&&n.css("left",c),n.width()!=d&&n.css("width",d)}function f(c){var f=b.doc.elementFromPoint(c.originalEvent.pageX-b.win.pageXOffset,c.originalEvent.pageY-b.win.pageYOffset);if(!d(f)){for(var g=0,h=f;!d(h)&&h==f&&c.originalEvent.pageY-b.win.pageYOffset-g>0;)g++,h=b.doc.elementFromPoint(c.originalEvent.pageX-b.win.pageXOffset,c.originalEvent.pageY-b.win.pageYOffset-g);(!d(h)||n&&0===b.$el.find(h).length&&h!=n.get(0))&&(h=null);for(var i=0,j=f;!d(j)&&j==f&&c.originalEvent.pageY-b.win.pageYOffset+i<a(b.doc).height();)i++,j=b.doc.elementFromPoint(c.originalEvent.pageX-b.win.pageXOffset,c.originalEvent.pageY-b.win.pageYOffset+i);(!d(j)||n&&0===b.$el.find(j).length&&j!=n.get(0))&&(j=null),f=null==j&&h?h:j&&null==h?j:j&&h?i>g?h:j:null}if(a(f).hasClass("fr-drag-helper"))return!1;if(f&&!b.node.isBlock(f)&&(f=b.node.blockParent(f)),f&&["TD","TH","TR","THEAD","TBODY"].indexOf(f.tagName)>=0&&(f=a(f).parents("table").get(0)),f&&["LI"].indexOf(f.tagName)>=0&&(f=a(f).parents("UL, OL").get(0)),f&&!a(f).hasClass("fr-drag-helper")){n||(a.FE.$draggable_helper||(a.FE.$draggable_helper=a('<div class="fr-drag-helper"></div>')),n=a.FE.$draggable_helper,b.events.on("shared.destroy",function(){n.html("").removeData().remove(),n=null},!0));var k,l=c.originalEvent.pageY;k=l<a(f).offset().top+a(f).outerHeight()/2?!0:!1;var m=a(f),o=0;k||0!==m.next().length?(k||(m=m.next()),"before"==n.data("fr-position")&&m.is(n.data("fr-tag"))||(m.prev().length>0&&(o=parseFloat(m.prev().css("margin-bottom"))||0),o=Math.max(o,parseFloat(m.css("margin-top"))||0),e(m.offset().top-o/2-b.$box.offset().top,m.offset().left-b.win.pageXOffset-b.$box.offset().left,m.width()),n.data("fr-position","before"))):"after"==n.data("fr-position")&&m.is(n.data("fr-tag"))||(o=parseFloat(m.css("margin-bottom"))||0,e(m.offset().top+a(f).height()+o/2-b.$box.offset().top,m.offset().left-b.win.pageXOffset-b.$box.offset().left,m.width()),n.data("fr-position","after")),n.data("fr-tag",m),n.addClass("fr-visible"),n.appendTo(b.$box)}else n&&b.$box.find(n).length>0&&n.removeClass("fr-visible")}function g(a){a.originalEvent.dataTransfer.dropEffect="move",b.opts.dragInline?j()||!b.browser.msie&&!b.browser.edge||a.preventDefault():(a.preventDefault(),f(a))}function h(a){a.originalEvent.dataTransfer.dropEffect="move",b.opts.dragInline||a.preventDefault()}function i(a){b.$el.attr("contenteditable",!0);var c=b.$el.find(".fr-dragging");n&&n.hasClass("fr-visible")&&b.$box.find(n).length?k(a):c.length&&(a.preventDefault(),a.stopPropagation()),n&&b.$box.find(n).length&&n.removeClass("fr-visible"),c.removeClass("fr-dragging")}function j(){for(var b=null,c=0;c<a.FE.INSTANCES.length;c++)if(b=a.FE.INSTANCES[c].$el.find(".fr-dragging"),b.length)return b.get(0)}function k(c){for(var d,e,f=0;f<a.FE.INSTANCES.length;f++)if(d=a.FE.INSTANCES[f].$el.find(".fr-dragging"),d.length){e=a.FE.INSTANCES[f];break}if(d.length){if(c.preventDefault(),c.stopPropagation(),n&&n.hasClass("fr-visible")&&b.$box.find(n).length)n.data("fr-tag")[n.data("fr-position")]('<span class="fr-marker"></span>'),n.removeClass("fr-visible");else{var g=b.markers.insertAtPoint(c.originalEvent);if(g===!1)return!1}if(d.removeClass("fr-dragging"),d=b.events.chainTrigger("element.beforeDrop",d),d===!1)return!1;var h=d;if(d.parent().is("A")&&1==d.parent().get(0).childNodes.length&&(h=d.parent()),b.core.isEmpty())b.events.focus();else{var i=b.$el.find(".fr-marker");i.replaceWith(a.FE.MARKERS),b.selection.restore()}if(e==b||b.undo.canDo()||b.undo.saveStep(),b.core.isEmpty())b.$el.html(h);else{var j=b.markers.insert();0===h.find(j).length?a(j).replaceWith(h):0===d.find(j).length&&a(j).replaceWith(d),d.after(a.FE.MARKERS),b.selection.restore()}return b.popups.hideAll(),b.selection.save(),b.$el.find(b.html.emptyBlockTagsQuery()).not("TD, TH, LI, .fr-inner").remove(),b.html.wrap(),b.html.fillEmptyBlocks(),b.selection.restore(),b.undo.saveStep(),b.opts.iframe&&b.size.syncIframe(),e!=b&&(e.popups.hideAll(),e.$el.find(e.html.emptyBlockTagsQuery()).not("TD, TH, LI, .fr-inner").remove(),e.html.wrap(),e.html.fillEmptyBlocks(),e.undo.saveStep(),e.events.trigger("element.dropped"),e.opts.iframe&&e.size.syncIframe()),b.events.trigger("element.dropped",[h]),!1}n&&n.removeClass("fr-visible"),b.undo.canDo()||b.undo.saveStep(),setTimeout(function(){b.undo.saveStep()},0)}function l(a){if(a&&"DIV"==a.tagName&&b.node.hasClass(a,"fr-drag-helper"))a.parentNode.removeChild(a);else if(a&&a.nodeType==Node.ELEMENT_NODE)for(var c=a.querySelectorAll("div.fr-drag-helper"),d=0;d<c.length;d++)c[d].parentNode.removeChild(c[d])}function m(){b.opts.enter==a.FE.ENTER_BR&&(b.opts.dragInline=!0),b.events.on("dragstart",c,!0),b.events.on("dragover",g,!0),b.events.on("dragenter",h,!0),b.events.on("document.dragend",i,!0),b.events.on("document.drop",i,!0),b.events.on("drop",k,!0),b.events.on("html.processGet",l)}var n;return{_init:m}}}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/emoticons.min.js b/Mobile.Search.Web/Scripts/froala-editor/js/plugins/emoticons.min.js deleted file mode 100644 index 6593f75..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/emoticons.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.POPUP_TEMPLATES,{emoticons:"[_BUTTONS_][_EMOTICONS_]"}),a.extend(a.FE.DEFAULTS,{emoticonsStep:8,emoticonsSet:[{code:"1f600",desc:"Grinning face"},{code:"1f601",desc:"Grinning face with smiling eyes"},{code:"1f602",desc:"Face with tears of joy"},{code:"1f603",desc:"Smiling face with open mouth"},{code:"1f604",desc:"Smiling face with open mouth and smiling eyes"},{code:"1f605",desc:"Smiling face with open mouth and cold sweat"},{code:"1f606",desc:"Smiling face with open mouth and tightly-closed eyes"},{code:"1f607",desc:"Smiling face with halo"},{code:"1f608",desc:"Smiling face with horns"},{code:"1f609",desc:"Winking face"},{code:"1f60a",desc:"Smiling face with smiling eyes"},{code:"1f60b",desc:"Face savoring delicious food"},{code:"1f60c",desc:"Relieved face"},{code:"1f60d",desc:"Smiling face with heart-shaped eyes"},{code:"1f60e",desc:"Smiling face with sunglasses"},{code:"1f60f",desc:"Smirking face"},{code:"1f610",desc:"Neutral face"},{code:"1f611",desc:"Expressionless face"},{code:"1f612",desc:"Unamused face"},{code:"1f613",desc:"Face with cold sweat"},{code:"1f614",desc:"Pensive face"},{code:"1f615",desc:"Confused face"},{code:"1f616",desc:"Confounded face"},{code:"1f617",desc:"Kissing face"},{code:"1f618",desc:"Face throwing a kiss"},{code:"1f619",desc:"Kissing face with smiling eyes"},{code:"1f61a",desc:"Kissing face with closed eyes"},{code:"1f61b",desc:"Face with stuck out tongue"},{code:"1f61c",desc:"Face with stuck out tongue and winking eye"},{code:"1f61d",desc:"Face with stuck out tongue and tightly-closed eyes"},{code:"1f61e",desc:"Disappointed face"},{code:"1f61f",desc:"Worried face"},{code:"1f620",desc:"Angry face"},{code:"1f621",desc:"Pouting face"},{code:"1f622",desc:"Crying face"},{code:"1f623",desc:"Persevering face"},{code:"1f624",desc:"Face with look of triumph"},{code:"1f625",desc:"Disappointed but relieved face"},{code:"1f626",desc:"Frowning face with open mouth"},{code:"1f627",desc:"Anguished face"},{code:"1f628",desc:"Fearful face"},{code:"1f629",desc:"Weary face"},{code:"1f62a",desc:"Sleepy face"},{code:"1f62b",desc:"Tired face"},{code:"1f62c",desc:"Grimacing face"},{code:"1f62d",desc:"Loudly crying face"},{code:"1f62e",desc:"Face with open mouth"},{code:"1f62f",desc:"Hushed face"},{code:"1f630",desc:"Face with open mouth and cold sweat"},{code:"1f631",desc:"Face screaming in fear"},{code:"1f632",desc:"Astonished face"},{code:"1f633",desc:"Flushed face"},{code:"1f634",desc:"Sleeping face"},{code:"1f635",desc:"Dizzy face"},{code:"1f636",desc:"Face without mouth"},{code:"1f637",desc:"Face with medical mask"}],emoticonsButtons:["emoticonsBack","|"],emoticonsUseImage:!0}),a.FE.PLUGINS.emoticons=function(b){function c(){var a=b.$tb.find('.fr-command[data-cmd="emoticons"]'),c=b.popups.get("emoticons");if(c||(c=e()),!c.hasClass("fr-active")){b.popups.refresh("emoticons"),b.popups.setContainer("emoticons",b.$tb);var d=a.offset().left+a.outerWidth()/2,f=a.offset().top+(b.opts.toolbarBottom?10:a.outerHeight()-10);b.popups.show("emoticons",d,f,a.outerHeight())}}function d(){b.popups.hide("emoticons")}function e(){var a="";b.opts.toolbarInline&&b.opts.emoticonsButtons.length>0&&(a='<div class="fr-buttons fr-emoticons-buttons">'+b.button.buildList(b.opts.emoticonsButtons)+"</div>");var c={buttons:a,emoticons:g()},d=b.popups.create("emoticons",c);return b.tooltip.bind(d,".fr-emoticon"),h(d),d}function f(){if(!b.selection.isCollapsed())return!1;var a=b.selection.element(),c=b.selection.endElement();if(a&&b.node.hasClass(a,"fr-emoticon"))return a;if(c&&b.node.hasClass(c,"fr-emoticon"))return c;var d=b.selection.ranges(0),e=d.startContainer;if(e.nodeType==Node.ELEMENT_NODE&&e.childNodes.length>0&&d.startOffset>0){var f=e.childNodes[d.startOffset-1];if(b.node.hasClass(f,"fr-emoticon"))return f}return!1}function g(){for(var a='<div style="text-align: center">',c=0;c<b.opts.emoticonsSet.length;c++)0!==c&&c%b.opts.emoticonsStep===0&&(a+="<br>"),a+='<span class="fr-command fr-emoticon" tabIndex="-1" data-cmd="insertEmoticon" title="'+b.language.translate(b.opts.emoticonsSet[c].desc)+'" role="button" data-param1="'+b.opts.emoticonsSet[c].code+'">'+(b.opts.emoticonsUseImage?'<img src="https://cdnjs.cloudflare.com/ajax/libs/emojione/2.0.1/assets/svg/'+b.opts.emoticonsSet[c].code+'.svg"/>':"&#x"+b.opts.emoticonsSet[c].code+";")+'<span class="fr-sr-only">'+b.language.translate(b.opts.emoticonsSet[c].desc)+" </span></span>";return b.opts.emoticonsUseImage&&(a+='<p style="font-size: 12px; text-align: center; padding: 0 5px;">Emoji free by <a class="fr-link" tabIndex="-1" href="http://emojione.com/" target="_blank" rel="nofollow" role="link" aria-label="Open Emoji One website.">Emoji One</a></p>'),a+="</div>"}function h(c){b.events.on("popup.tab",function(d){var e=a(d.currentTarget);if(!b.popups.isVisible("emoticons")||!e.is("span, a"))return!0;var f,g,h,i=d.which;if(a.FE.KEYCODE.TAB==i){if(e.is("span.fr-emoticon")&&d.shiftKey||e.is("a")&&!d.shiftKey){var j=c.find(".fr-buttons");f=!b.accessibility.focusToolbar(j,d.shiftKey?!0:!1)}if(f!==!1){var k=c.find("span.fr-emoticon:focus:first, span.fr-emoticon:visible:first, a");e.is("span.fr-emoticon")&&(k=k.not("span.fr-emoticon:not(:focus)")),g=k.index(e),g=d.shiftKey?((g-1)%k.length+k.length)%k.length:(g+1)%k.length,h=k.get(g),b.events.disableBlur(),h.focus(),f=!1}}else if(a.FE.KEYCODE.ARROW_UP==i||a.FE.KEYCODE.ARROW_DOWN==i||a.FE.KEYCODE.ARROW_LEFT==i||a.FE.KEYCODE.ARROW_RIGHT==i){if(e.is("span.fr-emoticon")){var l=e.parent().find("span.fr-emoticon");g=l.index(e);var m=b.opts.emoticonsStep,n=Math.floor(l.length/m),o=g%m,p=Math.floor(g/m),q=p*m+o,r=n*m;a.FE.KEYCODE.ARROW_UP==i?q=((q-m)%r+r)%r:a.FE.KEYCODE.ARROW_DOWN==i?q=(q+m)%r:a.FE.KEYCODE.ARROW_LEFT==i?q=((q-1)%r+r)%r:a.FE.KEYCODE.ARROW_RIGHT==i&&(q=(q+1)%r),h=a(l.get(q)),b.events.disableBlur(),h.focus(),f=!1}}else a.FE.KEYCODE.ENTER==i&&(e.is("a")?e[0].click():b.button.exec(e),f=!1);return f===!1&&(d.preventDefault(),d.stopPropagation()),f},!0)}function i(c,d){var e=f(),g=b.selection.ranges(0);e?(0===g.startOffset&&b.selection.element()===e?a(e).before(a.FE.MARKERS+a.FE.INVISIBLE_SPACE):g.startOffset>0&&b.selection.element()===e&&g.commonAncestorContainer.parentNode.classList.contains("fr-emoticon")&&a(e).after(a.FE.INVISIBLE_SPACE+a.FE.MARKERS),b.selection.restore(),b.html.insert('<span class="fr-emoticon fr-deletable'+(d?" fr-emoticon-img":"")+'"'+(d?' style="background: url('+d+');"':"")+">"+(d?" ":c)+"</span> "+a.FE.MARKERS,!0)):b.html.insert('<span class="fr-emoticon fr-deletable'+(d?" fr-emoticon-img":"")+'"'+(d?' style="background: url('+d+');"':"")+">"+(d?" ":c)+"</span> ",!0)}function j(){b.popups.hide("emoticons"),b.toolbar.showInline()}function k(){var c=function(){for(var a=b.el.querySelectorAll(".fr-emoticon:not(.fr-deletable)"),c=0;c<a.length;c++)a[c].className+=" fr-deletable"};c(),b.events.on("html.set",c),b.events.on("keydown",function(c){if(b.keys.isCharacter(c.which)&&b.selection.inEditor()){var d=b.selection.ranges(0),e=f();b.node.hasClass(e,"fr-emoticon-img")&&e&&(0===d.startOffset&&b.selection.element()===e?a(e).before(a.FE.MARKERS+a.FE.INVISIBLE_SPACE):a(e).after(a.FE.INVISIBLE_SPACE+a.FE.MARKERS),b.selection.restore())}}),b.events.on("keyup",function(c){for(var d=b.el.querySelectorAll(".fr-emoticon"),e=0;e<d.length;e++)"undefined"!=typeof d[e].textContent&&0===d[e].textContent.replace(/\u200B/gi,"").length&&a(d[e]).remove();if(!(c.which>=a.FE.KEYCODE.ARROW_LEFT&&c.which<=a.FE.KEYCODE.ARROW_DOWN)){var g=f();b.node.hasClass(g,"fr-emoticon-img")&&(a(g).append(a.FE.MARKERS),b.selection.restore())}})}return{_init:k,insert:i,showEmoticonsPopup:c,hideEmoticonsPopup:d,back:j}},a.FE.DefineIcon("emoticons",{NAME:"smile-o",FA5NAME:"smile"}),a.FE.RegisterCommand("emoticons",{title:"Emoticons",undo:!1,focus:!0,refreshOnCallback:!1,popup:!0,callback:function(){this.popups.isVisible("emoticons")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("emoticons")):this.emoticons.showEmoticonsPopup()},plugin:"emoticons"}),a.FE.RegisterCommand("insertEmoticon",{callback:function(a,b){this.emoticons.insert("&#x"+b+";",this.opts.emoticonsUseImage?"https://cdnjs.cloudflare.com/ajax/libs/emojione/2.0.1/assets/svg/"+b+".svg":null),this.emoticons.hideEmoticonsPopup()}}),a.FE.DefineIcon("emoticonsBack",{NAME:"arrow-left"}),a.FE.RegisterCommand("emoticonsBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.emoticons.back()}})}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/entities.min.js b/Mobile.Search.Web/Scripts/froala-editor/js/plugins/entities.min.js deleted file mode 100644 index 0c56ca2..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/entities.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.DEFAULTS,{entities:""'¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿŒœŠšŸƒˆ˜ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρςστυφχψωϑϒϖ   ‌‍‎‏–—‘’‚“”„†‡•…‰′″‹›‾⁄€ℑ℘ℜ™ℵ←↑→↓↔↵⇐⇑⇒⇓⇔∀∂∃∅∇∈∉∋∏∑−∗√∝∞∠∧∨∩∪∫∴∼≅≈≠≡≤≥⊂⊃⊄⊆⊇⊕⊗⊥⋅⌈⌉⌊⌋⟨⟩◊♠♣♥♦"}),a.FE.PLUGINS.entities=function(b){function c(a){var b=a.textContent;if(b.match(g)){for(var c="",d=0;d<b.length;d++)c+=h[b[d]]?h[b[d]]:b[d];a.textContent=c}}function d(a){if(a&&["STYLE","SCRIPT","svg","IFRAME"].indexOf(a.tagName)>=0)return!0;for(var e=b.node.contents(a),f=0;f<e.length;f++)e[f].nodeType==Node.TEXT_NODE?c(e[f]):d(e[f]);a.nodeType==Node.TEXT_NODE&&c(a)}function e(a){if(0===a.length)return"";var c=b.clean.exec(a,d).replace(/\&/g,"&");return c}function f(){b.opts.htmlSimpleAmpersand||(b.opts.entities=b.opts.entities+"&");var c=a("<div>").html(b.opts.entities).text(),d=b.opts.entities.split(";");h={},g="";for(var f=0;f<c.length;f++){var i=c.charAt(f);h[i]=d[f]+";",g+="\\"+i+(f<c.length-1?"|":"")}g=new RegExp("("+g+")","g"),b.events.on("html.get",e,!0)}var g,h;return{_init:f}}}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/file.min.js b/Mobile.Search.Web/Scripts/froala-editor/js/plugins/file.min.js deleted file mode 100644 index 9f7aea8..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/file.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.POPUP_TEMPLATES,{"file.insert":"[_BUTTONS_][_UPLOAD_LAYER_][_PROGRESS_BAR_]"}),a.extend(a.FE.DEFAULTS,{fileUpload:!0,fileUploadURL:"https://i.froala.com/upload",fileUploadParam:"file",fileUploadParams:{},fileUploadToS3:!1,fileUploadMethod:"POST",fileMaxSize:10485760,fileAllowedTypes:["*"],fileInsertButtons:["fileBack","|"],fileUseSelectedText:!1}),a.FE.PLUGINS.file=function(b){function c(){var a=b.$tb.find('.fr-command[data-cmd="insertFile"]'),c=b.popups.get("file.insert");if(c||(c=s()),e(),!c.hasClass("fr-active"))if(b.popups.refresh("file.insert"),b.popups.setContainer("file.insert",b.$tb),a.is(":visible")){var d=a.offset().left+a.outerWidth()/2,f=a.offset().top+(b.opts.toolbarBottom?10:a.outerHeight()-10);b.popups.show("file.insert",d,f,a.outerHeight())}else b.position.forSelection(c),b.popups.show("file.insert")}function d(){var a=b.popups.get("file.insert");a||(a=s()),a.find(".fr-layer.fr-active").removeClass("fr-active").addClass("fr-pactive"),a.find(".fr-file-progress-bar-layer").addClass("fr-active"),a.find(".fr-buttons").hide(),f(b.language.translate("Uploading"),0)}function e(a){var c=b.popups.get("file.insert");c&&(c.find(".fr-layer.fr-pactive").addClass("fr-active").removeClass("fr-pactive"),c.find(".fr-file-progress-bar-layer").removeClass("fr-active"),c.find(".fr-buttons").show(),a&&(b.events.focus(),b.popups.hide("file.insert")))}function f(a,c){var d=b.popups.get("file.insert");if(d){var e=d.find(".fr-file-progress-bar-layer");e.find("h3").text(a+(c?" "+c+"%":"")),e.removeClass("fr-error"),c?(e.find("div").removeClass("fr-indeterminate"),e.find("div > span").css("width",c+"%")):e.find("div").addClass("fr-indeterminate")}}function g(a){d();var c=b.popups.get("file.insert"),e=c.find(".fr-file-progress-bar-layer");e.addClass("fr-error");var f=e.find("h3");f.text(a),b.events.disableBlur(),f.focus()}function h(a,c,d){b.edit.on(),b.events.focus(!0),b.selection.restore(),b.opts.fileUseSelectedText&&b.selection.text().length&&(c=b.selection.text()),b.html.insert('<a href="'+a+'" target="_blank" id="fr-inserted-file" class="fr-file">'+c+"</a>");var e=b.$el.find("#fr-inserted-file");e.removeAttr("id"),b.popups.hide("file.insert"),b.undo.saveStep(),x(),b.events.trigger("file.inserted",[e,d])}function i(a){try{if(b.events.trigger("file.uploaded",[a],!0)===!1)return b.edit.on(),!1;var c=JSON.parse(a);return c.link?c:(n(A,a),!1)}catch(d){return n(C,a),!1}}function j(c){try{var d=a(c).find("Location").text(),e=a(c).find("Key").text();return b.events.trigger("file.uploadedToS3",[d,e,c],!0)===!1?(b.edit.on(),!1):d}catch(f){return n(C,c),!1}}function k(a){var c=this.status,d=this.response,e=this.responseXML,f=this.responseText;try{if(b.opts.fileUploadToS3)if(201==c){var g=j(e);g&&h(g,a,d||e)}else n(C,d||e);else if(c>=200&&300>c){var k=i(f);k&&h(k.link,a,d||f)}else n(B,d||f)}catch(l){n(C,d||f)}}function l(){n(C,this.response||this.responseText||this.responseXML)}function m(a){if(a.lengthComputable){var c=a.loaded/a.total*100|0;f(b.language.translate("Uploading"),c)}}function n(a,c){b.edit.on(),g(b.language.translate("Something went wrong. Please try again.")),b.events.trigger("file.error",[{code:a,message:G[a]},c])}function o(){b.edit.on(),e(!0)}function p(a){if("undefined"!=typeof a&&a.length>0){if(b.events.trigger("file.beforeUpload",[a])===!1)return!1;var c=a[0];if(c.size>b.opts.fileMaxSize)return n(D),!1;if(b.opts.fileAllowedTypes.indexOf("*")<0&&b.opts.fileAllowedTypes.indexOf(c.type.replace(/file\//g,""))<0)return n(E),!1;var e;if(b.drag_support.formdata&&(e=b.drag_support.formdata?new FormData:null),e){var f;if(b.opts.fileUploadToS3!==!1){e.append("key",b.opts.fileUploadToS3.keyStart+(new Date).getTime()+"-"+(c.name||"untitled")),e.append("success_action_status","201"),e.append("X-Requested-With","xhr"),e.append("Content-Type",c.type);for(f in b.opts.fileUploadToS3.params)b.opts.fileUploadToS3.params.hasOwnProperty(f)&&e.append(f,b.opts.fileUploadToS3.params[f])}for(f in b.opts.fileUploadParams)b.opts.fileUploadParams.hasOwnProperty(f)&&e.append(f,b.opts.fileUploadParams[f]);e.append(b.opts.fileUploadParam,c);var g=b.opts.fileUploadURL;b.opts.fileUploadToS3&&(g=b.opts.fileUploadToS3.uploadURL?b.opts.fileUploadToS3.uploadURL:"https://"+b.opts.fileUploadToS3.region+".amazonaws.com/"+b.opts.fileUploadToS3.bucket);var h=b.core.getXHR(g,b.opts.fileUploadMethod);h.onload=function(){k.call(h,c.name)},h.onerror=l,h.upload.onprogress=m,h.onabort=o,d();var i=b.popups.get("file.insert");i&&i.off("abortUpload").on("abortUpload",function(){4!=h.readyState&&h.abort()}),h.send(e)}}}function q(c){b.events.$on(c,"dragover dragenter",".fr-file-upload-layer",function(){return a(this).addClass("fr-drop"),!1},!0),b.events.$on(c,"dragleave dragend",".fr-file-upload-layer",function(){return a(this).removeClass("fr-drop"),!1},!0),b.events.$on(c,"drop",".fr-file-upload-layer",function(d){d.preventDefault(),d.stopPropagation(),a(this).removeClass("fr-drop");var e=d.originalEvent.dataTransfer;if(e&&e.files){var f=c.data("instance")||b;f.file.upload(e.files)}},!0),b.helpers.isIOS()&&b.events.$on(c,"touchstart",'.fr-file-upload-layer input[type="file"]',function(){a(this).trigger("click")}),b.events.$on(c,"change",'.fr-file-upload-layer input[type="file"]',function(){if(this.files){var d=c.data("instance")||b;d.file.upload(this.files)}a(this).val("")},!0)}function r(){e()}function s(a){if(a)return b.popups.onHide("file.insert",r),!0;var c="";b.opts.fileUpload||b.opts.fileInsertButtons.splice(b.opts.fileInsertButtons.indexOf("fileUpload"),1),c='<div class="fr-buttons">'+b.button.buildList(b.opts.fileInsertButtons)+"</div>";var d="";b.opts.fileUpload&&(d='<div class="fr-file-upload-layer fr-layer fr-active" id="fr-file-upload-layer-'+b.id+'"><strong>'+b.language.translate("Drop file")+"</strong><br>("+b.language.translate("or click")+')<div class="fr-form"><input type="file" name="'+b.opts.fileUploadParam+'" accept="/*" tabIndex="-1" aria-labelledby="fr-file-upload-layer-'+b.id+'" role="button"></div></div>');var e='<div class="fr-file-progress-bar-layer fr-layer"><h3 tabIndex="-1" class="fr-message">Uploading</h3><div class="fr-loader"><span class="fr-progress"></span></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-dismiss" data-cmd="fileDismissError" tabIndex="2" role="button">OK</button></div></div>',f={buttons:c,upload_layer:d,progress_bar:e},g=b.popups.create("file.insert",f);return q(g),g}function t(a){b.node.hasClass(a,"fr-file")}function u(c){var e=c.originalEvent.dataTransfer;if(e&&e.files&&e.files.length){var f=e.files[0];if(f&&"undefined"!=typeof f.type){if(f.type.indexOf("image")<0){if(!b.opts.fileUpload)return c.preventDefault(),c.stopPropagation(),!1;b.markers.remove(),b.markers.insertAtPoint(c.originalEvent),b.$el.find(".fr-marker").replaceWith(a.FE.MARKERS),b.popups.hideAll();var g=b.popups.get("file.insert");return g||(g=s()),b.popups.setContainer("file.insert",b.$sc),b.popups.show("file.insert",c.originalEvent.pageX,c.originalEvent.pageY),d(),p(e.files),c.preventDefault(),c.stopPropagation(),!1}}else f.type.indexOf("image")<0&&(c.preventDefault(),c.stopPropagation())}}function v(){b.events.on("drop",u),b.events.$on(b.$win,"keydown",function(c){var d=c.which,e=b.popups.get("file.insert");e&&d==a.FE.KEYCODE.ESC&&e.trigger("abortUpload")}),b.events.on("destroy",function(){var a=b.popups.get("file.insert");a&&a.trigger("abortUpload")})}function w(){b.events.disableBlur(),b.selection.restore(),b.events.enableBlur(),b.popups.hide("file.insert"),b.toolbar.showInline()}function x(){var a,c=Array.prototype.slice.call(b.el.querySelectorAll("a.fr-file")),d=[];for(a=0;a<c.length;a++)d.push(c[a].getAttribute("href"));if(H)for(a=0;a<H.length;a++)d.indexOf(H[a].getAttribute("href"))<0&&b.events.trigger("file.unlink",[H[a]]);H=c}function y(){v(),b.events.on("link.beforeRemove",t),b.$wp&&(x(),b.events.on("contentChanged",x)),s(!0)}var z=1,A=2,B=3,C=4,D=5,E=6,F=7,G={};G[z]="File cannot be loaded from the passed link.",G[A]="No link in upload response.",G[B]="Error during file upload.",G[C]="Parsing response failed.",G[D]="File is too large.",G[E]="File file type is invalid.",G[F]="Files can be uploaded only to same domain in IE 8 and IE 9.";var H;return{_init:y,showInsertPopup:c,upload:p,insert:h,back:w,hideProgressBar:e}},a.FE.DefineIcon("insertFile",{NAME:"file-o",FA5NAME:"file"}),a.FE.RegisterCommand("insertFile",{title:"Upload File",undo:!1,focus:!0,refreshAfterCallback:!1,popup:!0,callback:function(){this.popups.isVisible("file.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("file.insert")):this.file.showInsertPopup()},plugin:"file"}),a.FE.DefineIcon("fileBack",{NAME:"arrow-left"}),a.FE.RegisterCommand("fileBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.file.back()},refresh:function(a){this.opts.toolbarInline?(a.removeClass("fr-hidden"),a.next(".fr-separator").removeClass("fr-hidden")):(a.addClass("fr-hidden"),a.next(".fr-separator").addClass("fr-hidden"))}}),a.FE.RegisterCommand("fileDismissError",{title:"OK",callback:function(){this.file.hideProgressBar(!0)}})}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/font_family.min.js b/Mobile.Search.Web/Scripts/froala-editor/js/plugins/font_family.min.js deleted file mode 100644 index c2ae69e..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/font_family.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.DEFAULTS,{fontFamily:{"Arial,Helvetica,sans-serif":"Arial","Georgia,serif":"Georgia","Impact,Charcoal,sans-serif":"Impact","Tahoma,Geneva,sans-serif":"Tahoma","Times New Roman,Times,serif,-webkit-standard":"Times New Roman","Verdana,Geneva,sans-serif":"Verdana"},fontFamilySelection:!1,fontFamilyDefaultSelection:"Font Family"}),a.FE.PLUGINS.fontFamily=function(b){function c(a){b.format.applyStyle("font-family",a)}function d(a,b){b.find(".fr-command.fr-active").removeClass("fr-active").attr("aria-selected",!1),b.find('.fr-command[data-param1="'+g()+'"]').addClass("fr-active").attr("aria-selected",!0);var c=b.find(".fr-dropdown-list"),d=b.find(".fr-active").parent();d.length?c.parent().scrollTop(d.offset().top-c.offset().top-(c.parent().outerHeight()/2-d.outerHeight()/2)):c.parent().scrollTop(0)}function e(b){var c=b.replace(/(sans-serif|serif|monospace|cursive|fantasy)/gi,"").replace(/"|'| /g,"").split(",");return a.grep(c,function(a){return a.length>0})}function f(a,b){for(var c=0;c<a.length;c++)for(var d=0;d<b.length;d++)if(a[c].toLowerCase()==b[d].toLowerCase())return[c,d];return null}function g(){var c=a(b.selection.element()).css("font-family"),d=e(c),g=[];for(var h in b.opts.fontFamily)if(b.opts.fontFamily.hasOwnProperty(h)){var i=e(h),j=f(d,i);j&&g.push([h,j])}return 0===g.length?null:(g.sort(function(a,b){var c=a[1][0]-b[1][0];return 0===c?a[1][1]-b[1][1]:c}),g[0][0])}function h(c){if(b.opts.fontFamilySelection){var d=a(b.selection.element()).css("font-family").replace(/(sans-serif|serif|monospace|cursive|fantasy)/gi,"").replace(/"|'|/g,"").split(",");c.find("> span").text(b.opts.fontFamily[g()]||d[0]||b.language.translate(b.opts.fontFamilyDefaultSelection))}}return{apply:c,refreshOnShow:d,refresh:h}},a.FE.RegisterCommand("fontFamily",{type:"dropdown",displaySelection:function(a){return a.opts.fontFamilySelection},defaultSelection:function(a){return a.opts.fontFamilyDefaultSelection},displaySelectionWidth:120,html:function(){var a='<ul class="fr-dropdown-list" role="presentation">',b=this.opts.fontFamily;for(var c in b)b.hasOwnProperty(c)&&(a+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="fontFamily" data-param1="'+c+'" style="font-family: '+c+'" title="'+b[c]+'">'+b[c]+"</a></li>");return a+="</ul>"},title:"Font Family",callback:function(a,b){this.fontFamily.apply(b)},refresh:function(a){this.fontFamily.refresh(a)},refreshOnShow:function(a,b){this.fontFamily.refreshOnShow(a,b)},plugin:"fontFamily"}),a.FE.DefineIcon("fontFamily",{NAME:"font"})}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/font_size.min.js b/Mobile.Search.Web/Scripts/froala-editor/js/plugins/font_size.min.js deleted file mode 100644 index 53ad84f..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/font_size.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.DEFAULTS,{fontSize:["8","9","10","11","12","14","18","24","30","36","48","60","72","96"],fontSizeSelection:!1,fontSizeDefaultSelection:"12"}),a.FE.PLUGINS.fontSize=function(b){function c(a){b.format.applyStyle("font-size",a)}function d(c,d){var e=a(b.selection.element()).css("font-size");d.find(".fr-command.fr-active").removeClass("fr-active").attr("aria-selected",!1),d.find('.fr-command[data-param1="'+e+'"]').addClass("fr-active").attr("aria-selected",!0);var f=d.find(".fr-dropdown-list"),g=d.find(".fr-active").parent();g.length?f.parent().scrollTop(g.offset().top-f.offset().top-(f.parent().outerHeight()/2-g.outerHeight()/2)):f.parent().scrollTop(0)}function e(c){if(b.opts.fontSizeSelection){var d=b.helpers.getPX(a(b.selection.element()).css("font-size"));c.find("> span").text(d)}}return{apply:c,refreshOnShow:d,refresh:e}},a.FE.RegisterCommand("fontSize",{type:"dropdown",title:"Font Size",displaySelection:function(a){return a.opts.fontSizeSelection},displaySelectionWidth:30,defaultSelection:function(a){return a.opts.fontSizeDefaultSelection},html:function(){for(var a='<ul class="fr-dropdown-list" role="presentation">',b=this.opts.fontSize,c=0;c<b.length;c++){var d=b[c];a+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="fontSize" data-param1="'+d+'px" title="'+d+'">'+d+"</a></li>"}return a+="</ul>"},callback:function(a,b){this.fontSize.apply(b)},refresh:function(a){this.fontSize.refresh(a)},refreshOnShow:function(a,b){this.fontSize.refreshOnShow(a,b)},plugin:"fontSize"}),a.FE.DefineIcon("fontSize",{NAME:"text-height"})}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/forms.min.js b/Mobile.Search.Web/Scripts/froala-editor/js/plugins/forms.min.js deleted file mode 100644 index 9c7f15e..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/forms.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.POPUP_TEMPLATES,{"forms.edit":"[_BUTTONS_]","forms.update":"[_BUTTONS_][_TEXT_LAYER_]"}),a.extend(a.FE.DEFAULTS,{formEditButtons:["inputStyle","inputEdit"],formStyles:{"fr-rounded":"Rounded","fr-large":"Large"},formMultipleStyles:!0,formUpdateButtons:["inputBack","|"]}),a.FE.PLUGINS.forms=function(b){function c(c){c.preventDefault(),b.selection.clear(),a(this).data("mousedown",!0)}function d(b){a(this).data("mousedown")&&(b.stopPropagation(),a(this).removeData("mousedown"),s=this,j(this)),b.preventDefault()}function e(){b.$el.find("input, textarea, button").removeData("mousedown")}function f(){a(this).removeData("mousedown")}function g(){b.events.$on(b.$el,b._mousedown,"input, textarea, button",c),b.events.$on(b.$el,b._mouseup,"input, textarea, button",d),b.events.$on(b.$el,"touchmove","input, textarea, button",f),b.events.$on(b.$el,b._mouseup,e),b.events.$on(b.$win,b._mouseup,e),m(!0)}function h(){return s?s:null}function i(){var a="";b.opts.formEditButtons.length>0&&(a='<div class="fr-buttons">'+b.button.buildList(b.opts.formEditButtons)+"</div>");var c={buttons:a},d=b.popups.create("forms.edit",c);return b.$wp&&b.events.$on(b.$wp,"scroll.link-edit",function(){h()&&b.popups.isVisible("forms.edit")&&j(h())}),d}function j(c){var d=b.popups.get("forms.edit");d||(d=i()),s=c;var e=a(c);b.popups.refresh("forms.edit"),b.popups.setContainer("forms.edit",b.$sc);var f=e.offset().left+e.outerWidth()/2,g=e.offset().top+e.outerHeight();b.popups.show("forms.edit",f,g,e.outerHeight())}function k(){var c=b.popups.get("forms.update"),d=h();if(d){var e=a(d);e.is("button")?c.find('input[type="text"][name="text"]').val(e.text()):c.find('input[type="text"][name="text"]').val(e.attr("placeholder"))}c.find('input[type="text"][name="text"]').trigger("change")}function l(){s=null}function m(a){if(a)return b.popups.onRefresh("forms.update",k),b.popups.onHide("forms.update",l),!0;var c="";b.opts.formUpdateButtons.length>=1&&(c='<div class="fr-buttons">'+b.button.buildList(b.opts.formUpdateButtons)+"</div>");var d="",e=0;d='<div class="fr-forms-text-layer fr-layer fr-active">',d+='<div class="fr-input-line"><input name="text" type="text" placeholder="Text" tabIndex="'+ ++e+'"></div>',d+='<div class="fr-action-buttons"><button class="fr-command fr-submit" data-cmd="updateInput" href="#" tabIndex="'+ ++e+'" type="button">'+b.language.translate("Update")+"</button></div></div>";var f={buttons:c,text_layer:d},g=b.popups.create("forms.update",f);return g}function n(){var c=h();if(c){var d=a(c),e=b.popups.get("forms.update");e||(e=m()),b.popups.isVisible("forms.update")||b.popups.refresh("forms.update"),b.popups.setContainer("forms.update",b.$sc);var f=d.offset().left+d.outerWidth()/2,g=d.offset().top+d.outerHeight();b.popups.show("forms.update",f,g,d.outerHeight())}}function o(c,d,e){"undefined"==typeof d&&(d=b.opts.formStyles),"undefined"==typeof e&&(e=b.opts.formMultipleStyles);var f=h();if(!f)return!1;if(!e){var g=Object.keys(d);g.splice(g.indexOf(c),1),a(f).removeClass(g.join(" "))}a(f).toggleClass(c)}function p(){b.events.disableBlur(),b.selection.restore(),b.events.enableBlur();var a=h();a&&b.$wp&&("BUTTON"==a.tagName&&b.selection.restore(),j(a))}function q(){var c=b.popups.get("forms.update"),d=h();if(d){var e=a(d),f=c.find('input[type="text"][name="text"]').val()||"";f.length&&(e.is("button")?e.text(f):e.attr("placeholder",f)),b.popups.hide("forms.update"),j(d)}}function r(){g(),b.events.$on(b.$el,"submit","form",function(a){return a.preventDefault(),!1})}var s;return{_init:r,updateInput:q,getInput:h,applyStyle:o,showUpdatePopup:n,showEditPopup:j,back:p}},a.FE.RegisterCommand("updateInput",{undo:!1,focus:!1,title:"Update",callback:function(){this.forms.updateInput()}}),a.FE.DefineIcon("inputStyle",{NAME:"magic"}),a.FE.RegisterCommand("inputStyle",{title:"Style",type:"dropdown",html:function(){var a='<ul class="fr-dropdown-list">',b=this.opts.formStyles;for(var c in b)b.hasOwnProperty(c)&&(a+='<li><a class="fr-command" tabIndex="-1" data-cmd="inputStyle" data-param1="'+c+'">'+this.language.translate(b[c])+"</a></li>");return a+="</ul>"},callback:function(a,b){var c=this.forms.getInput();c&&(this.forms.applyStyle(b),this.forms.showEditPopup(c))},refreshOnShow:function(b,c){var d=this.forms.getInput();if(d){var e=a(d);c.find(".fr-command").each(function(){var b=a(this).data("param1");a(this).toggleClass("fr-active",e.hasClass(b))})}}}),a.FE.DefineIcon("inputEdit",{NAME:"edit"}),a.FE.RegisterCommand("inputEdit",{title:"Edit Button",undo:!1,refreshAfterCallback:!1,callback:function(){this.forms.showUpdatePopup()}}),a.FE.DefineIcon("inputBack",{NAME:"arrow-left"}),a.FE.RegisterCommand("inputBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.forms.back()}}),a.FE.RegisterCommand("updateInput",{undo:!1,focus:!1,title:"Update",callback:function(){this.forms.updateInput()}})}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/fullscreen.min.js b/Mobile.Search.Web/Scripts/froala-editor/js/plugins/fullscreen.min.js deleted file mode 100644 index 3cf2365..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/fullscreen.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.FE.PLUGINS.fullscreen=function(b){function c(){return b.$box.hasClass("fr-fullscreen")}function d(){if(b.helpers.isIOS()&&b.core.hasFocus())return b.$el.blur(),setTimeout(f,250),!1;i=b.helpers.scrollTop(),b.$box.toggleClass("fr-fullscreen"),a("body:first").toggleClass("fr-fullscreen"),b.helpers.isMobile()&&(b.$tb.data("parent",b.$tb.parent()),b.$tb.prependTo(b.$box),b.$tb.data("sticky-dummy")&&b.$tb.after(b.$tb.data("sticky-dummy"))),j=b.opts.height,k=b.opts.heightMax,l=b.opts.zIndex,b.position.refresh(),b.opts.height=b.o_win.innerHeight-(b.opts.toolbarInline?0:b.$tb.outerHeight()),b.opts.zIndex=2147483641,b.opts.heightMax=null,b.size.refresh(),b.opts.toolbarInline&&b.toolbar.showInline();for(var c=b.$box.parent();!c.is("body:first");)c.data("z-index",c.css("z-index")).data("overflow",c.css("overflow")).css("z-index","2147483640").css("overflow","visible"),c=c.parent();b.opts.toolbarContainer&&b.$box.prepend(b.$tb),b.events.trigger("charCounter.update"),b.events.trigger("codeView.update"),b.$win.trigger("scroll")}function e(){if(b.helpers.isIOS()&&b.core.hasFocus())return b.$el.blur(),setTimeout(f,250),!1;b.$box.toggleClass("fr-fullscreen"),a("body:first").toggleClass("fr-fullscreen"),b.$tb.prependTo(b.$tb.data("parent")),b.$tb.data("sticky-dummy")&&b.$tb.after(b.$tb.data("sticky-dummy")),b.opts.height=j,b.opts.heightMax=k,b.opts.zIndex=l,b.size.refresh(),a(b.o_win).scrollTop(i),b.opts.toolbarInline&&b.toolbar.showInline(),b.events.trigger("charCounter.update"),b.opts.toolbarSticky&&b.opts.toolbarStickyOffset&&(b.opts.toolbarBottom?b.$tb.css("bottom",b.opts.toolbarStickyOffset).data("bottom",b.opts.toolbarStickyOffset):b.$tb.css("top",b.opts.toolbarStickyOffset).data("top",b.opts.toolbarStickyOffset));for(var c=b.$box.parent();!c.is("body:first");)c.data("z-index")&&(c.css("z-index",""),c.css("z-index")!=c.data("z-index")&&c.css("z-index",c.data("z-index")),c.removeData("z-index")),c.data("overflow")?(c.css("overflow",""),c.css("overflow")!=c.data("overflow")&&c.css("overflow",c.data("overflow")),c.removeData("overflow")):(c.css("overflow",""),c.removeData("overflow")),c=c.parent();b.opts.toolbarContainer&&a(b.opts.toolbarContainer).append(b.$tb),a(b.o_win).trigger("scroll"),b.events.trigger("codeView.update")}function f(){c()?e():d(),g(b.$tb.find('.fr-command[data-cmd="fullscreen"]'))}function g(a){var d=c();a.toggleClass("fr-active",d).attr("aria-pressed",d),a.find("> *:not(.fr-sr-only)").replaceWith(d?b.icon.create("fullscreenCompress"):b.icon.create("fullscreen"))}function h(){return b.$wp?(b.events.$on(a(b.o_win),"resize",function(){c()&&(e(),d())}),b.events.on("toolbar.hide",function(){return c()&&b.helpers.isMobile()?!1:void 0}),b.events.on("position.refresh",function(){return b.helpers.isIOS()?!c():void 0}),void b.events.on("destroy",function(){c()&&e()},!0)):!1}var i,j,k,l;return{_init:h,toggle:f,refresh:g,isActive:c}},a.FE.RegisterCommand("fullscreen",{title:"Fullscreen",undo:!1,focus:!1,accessibilityFocus:!0,forcedRefresh:!0,toggle:!0,callback:function(){this.fullscreen.toggle()},refresh:function(a){this.fullscreen.refresh(a)},plugin:"fullscreen"}),a.FE.DefineIcon("fullscreen",{NAME:"expand"}),a.FE.DefineIcon("fullscreenCompress",{NAME:"compress"})}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/help.min.js b/Mobile.Search.Web/Scripts/froala-editor/js/plugins/help.min.js deleted file mode 100644 index 60870e8..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/help.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.DEFAULTS,{helpSets:[{title:"Inline Editor",commands:[{val:"OSkeyE",desc:"Show the editor"}]},{title:"Common actions",commands:[{val:"OSkeyC",desc:"Copy"},{val:"OSkeyX",desc:"Cut"},{val:"OSkeyV",desc:"Paste"},{val:"OSkeyZ",desc:"Undo"},{val:"OSkeyShift+Z",desc:"Redo"},{val:"OSkeyK",desc:"Insert Link"},{val:"OSkeyP",desc:"Insert Image"}]},{title:"Basic Formatting",commands:[{val:"OSkeyA",desc:"Select All"},{val:"OSkeyB",desc:"Bold"},{val:"OSkeyI",desc:"Italic"},{val:"OSkeyU",desc:"Underline"},{val:"OSkeyS",desc:"Strikethrough"},{val:"OSkey]",desc:"Increase Indent"},{val:"OSkey[",desc:"Decrease Indent"}]},{title:"Quote",commands:[{val:"OSkey'",desc:"Increase quote level"},{val:"OSkeyShift+'",desc:"Decrease quote level"}]},{title:"Image / Video",commands:[{val:"OSkey+",desc:"Resize larger"},{val:"OSkey-",desc:"Resize smaller"}]},{title:"Table",commands:[{val:"Alt+Space",desc:"Select table cell"},{val:"Shift+Left/Right arrow",desc:"Extend selection one cell"},{val:"Shift+Up/Down arrow",desc:"Extend selection one row"}]},{title:"Navigation",commands:[{val:"OSkey/",desc:"Shortcuts"},{val:"Alt+F10",desc:"Focus popup / toolbar"},{val:"Esc",desc:"Return focus to previous position"}]}]}),a.FE.PLUGINS.help=function(b){function c(){}function d(){for(var a='<div class="fr-help-modal">',c=0;c<b.opts.helpSets.length;c++){var d=b.opts.helpSets[c],e="<table>";e+="<thead><tr><th>"+b.language.translate(d.title)+"</th></tr></thead>",e+="<tbody>";for(var f=0;f<d.commands.length;f++){var g=d.commands[f];e+="<tr>",e+="<td>"+b.language.translate(g.desc)+"</td>",e+="<td>"+g.val.replace("OSkey",b.helpers.isMac()?"⌘":"Ctrl+")+"</td>",e+="</tr>"}e+="</tbody></table>",a+=e}return a+="</div>"}function e(){if(!g){var c="<h4>"+b.language.translate("Shortcuts")+"</h4>",e=d(),f=b.modals.create(j,c,e);g=f.$modal,h=f.$head,i=f.$body,b.events.$on(a(b.o_win),"resize",function(){b.modals.resize(j)})}b.modals.show(j),b.modals.resize(j)}function f(){b.modals.hide(j)}var g,h,i,j="help";return{_init:c,show:e,hide:f}},a.FroalaEditor.DefineIcon("help",{NAME:"question"}),a.FE.RegisterShortcut(a.FE.KEYCODE.SLASH,"help",null,"/"),a.FE.RegisterCommand("help",{title:"Help",icon:"help",undo:!1,focus:!1,modal:!0,callback:function(){this.help.show()},plugin:"help",showOnMobile:!1})}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/image.min.js b/Mobile.Search.Web/Scripts/froala-editor/js/plugins/image.min.js deleted file mode 100644 index fd8fd39..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/image.min.js +++ /dev/null @@ -1,8 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.POPUP_TEMPLATES,{"image.insert":"[_BUTTONS_][_UPLOAD_LAYER_][_BY_URL_LAYER_][_PROGRESS_BAR_]","image.edit":"[_BUTTONS_]","image.alt":"[_BUTTONS_][_ALT_LAYER_]","image.size":"[_BUTTONS_][_SIZE_LAYER_]"}),a.extend(a.FE.DEFAULTS,{imageInsertButtons:["imageBack","|","imageUpload","imageByURL"],imageEditButtons:["imageReplace","imageAlign","imageCaption","imageRemove","|","imageLink","linkOpen","linkEdit","linkRemove","-","imageDisplay","imageStyle","imageAlt","imageSize"],imageAltButtons:["imageBack","|"],imageSizeButtons:["imageBack","|"],imageUpload:!0,imageUploadURL:"https://i.froala.com/upload",imageCORSProxy:"https://cors-anywhere.froala.com",imageUploadRemoteUrls:!0,imageUploadParam:"file",imageUploadParams:{},imageUploadToS3:!1,imageUploadMethod:"POST",imageMaxSize:10485760,imageAllowedTypes:["jpeg","jpg","png","gif"],imageResize:!0,imageResizeWithPercent:!1,imageRoundPercent:!1,imageDefaultWidth:300,imageDefaultAlign:"center",imageDefaultDisplay:"block",imageSplitHTML:!1,imageStyles:{"fr-rounded":"Rounded","fr-bordered":"Bordered","fr-shadow":"Shadow"},imageMove:!0,imageMultipleStyles:!0,imageTextNear:!0,imagePaste:!0,imagePasteProcess:!1,imageMinWidth:16,imageOutputSize:!1,imageDefaultMargin:5}),a.FE.PLUGINS.image=function(b){function c(){var a=b.popups.get("image.insert"),c=a.find(".fr-image-by-url-layer input");c.val(""),Ea&&c.val(Ea.attr("src")),c.trigger("change")}function d(){var a=b.$tb.find('.fr-command[data-cmd="insertImage"]'),c=b.popups.get("image.insert");if(c||(c=N()),t(),!c.hasClass("fr-active"))if(b.popups.refresh("image.insert"),b.popups.setContainer("image.insert",b.$tb),a.is(":visible")){var d=a.offset().left+a.outerWidth()/2,e=a.offset().top+(b.opts.toolbarBottom?10:a.outerHeight()-10);b.popups.show("image.insert",d,e,a.outerHeight())}else b.position.forSelection(c),b.popups.show("image.insert")}function e(){var a=b.popups.get("image.edit");if(a||(a=r()),a){var c=Aa();Ca()&&(c=c.find(".fr-img-wrap")),b.popups.setContainer("image.edit",b.$sc),b.popups.refresh("image.edit");var d=c.offset().left+c.outerWidth()/2,e=c.offset().top+c.outerHeight();b.popups.show("image.edit",d,e,c.outerHeight())}}function f(){t()}function g(a){a.parents(".fr-img-caption").length>0&&(a=a.parents(".fr-img-caption:first")),a.hasClass("fr-dii")||a.hasClass("fr-dib")||(a.addClass("fr-fi"+qa(a)[0]),a.addClass("fr-di"+ra(a)[0]),a.css("margin",""),a.css("float",""),a.css("display",""),a.css("z-index",""),a.css("position",""),a.css("overflow",""),a.css("vertical-align",""))}function h(a){a.parents(".fr-img-caption").length>0&&(a=a.parents(".fr-img-caption:first"));var b=a.hasClass("fr-dib")?"block":a.hasClass("fr-dii")?"inline":null,c=a.hasClass("fr-fil")?"left":a.hasClass("fr-fir")?"right":qa(a);oa(a,b,c),a.removeClass("fr-dib fr-dii fr-fir fr-fil")}function i(){for(var c="IMG"==b.el.tagName?[b.el]:b.el.querySelectorAll("img"),d=0;d<c.length;d++){var e=a(c[d]);!b.opts.htmlUntouched&&b.opts.useClasses?((b.opts.imageDefaultAlign||b.opts.imageDefaultDisplay)&&g(e),b.opts.imageTextNear||(e.parents(".fr-img-caption").length>0?e.parents(".fr-img-caption:first").removeClass("fr-dii").addClass("fr-dib"):e.removeClass("fr-dii").addClass("fr-dib"))):b.opts.htmlUntouched||b.opts.useClasses||(b.opts.imageDefaultAlign||b.opts.imageDefaultDisplay)&&h(e),b.opts.iframe&&e.on("load",b.size.syncIframe)}}function j(c){"undefined"==typeof c&&(c=!0);var d,e=Array.prototype.slice.call(b.el.querySelectorAll("img")),f=[];for(d=0;d<e.length;d++)if(f.push(e[d].getAttribute("src")),a(e[d]).toggleClass("fr-draggable",b.opts.imageMove),""===e[d].getAttribute("class")&&e[d].removeAttribute("class"),""===e[d].getAttribute("style")&&e[d].removeAttribute("style"),e[d].parentNode&&e[d].parentNode.parentNode&&b.node.hasClass(e[d].parentNode.parentNode,"fr-img-caption")){var g=e[d].parentNode.parentNode;b.browser.mozilla||g.setAttribute("contenteditable",!1),g.setAttribute("draggable",!1),g.classList.add("fr-draggable");var h=e[d].nextSibling;h&&h.setAttribute("contenteditable",!0)}if(Sa)for(d=0;d<Sa.length;d++)f.indexOf(Sa[d].getAttribute("src"))<0&&b.events.trigger("image.removed",[a(Sa[d])]);if(Sa&&c){var i=[];for(d=0;d<Sa.length;d++)i.push(Sa[d].getAttribute("src"));for(d=0;d<e.length;d++)i.indexOf(e[d].getAttribute("src"))<0&&b.events.trigger("image.loaded",[a(e[d])])}Sa=e}function k(){if(Fa||$(),!Ea)return!1;var a=b.$wp||b.$sc;a.append(Fa),Fa.data("instance",b);var c=a.scrollTop()-("static"!=a.css("position")?a.offset().top:0),d=a.scrollLeft()-("static"!=a.css("position")?a.offset().left:0);d-=b.helpers.getPX(a.css("border-left-width")),c-=b.helpers.getPX(a.css("border-top-width")),b.$el.is("img")&&b.$sc.is("body")&&(c=0,d=0);var e=Aa();Ca()&&(e=e.find(".fr-img-wrap")),Fa.css("top",(b.opts.iframe?e.offset().top:e.offset().top+c)-1).css("left",(b.opts.iframe?e.offset().left:e.offset().left+d)-1).css("width",e.get(0).getBoundingClientRect().width).css("height",e.get(0).getBoundingClientRect().height).addClass("fr-active")}function l(a){return'<div class="fr-handler fr-h'+a+'"></div>'}function m(a){Ca()?Ea.parents(".fr-img-caption").css("width",a):Ea.css("width",a)}function n(c){if(!b.core.sameInstance(Fa))return!0;if(c.preventDefault(),c.stopPropagation(),b.$el.find("img.fr-error").left)return!1;b.undo.canDo()||b.undo.saveStep();var d=c.pageX||c.originalEvent.touches[0].pageX;if("mousedown"==c.type){var e=b.$oel.get(0),f=e.ownerDocument,g=f.defaultView||f.parentWindow,h=!1;try{h=g.location!=g.parent.location&&!(g.$&&g.$.FE)}catch(i){}h&&g.frameElement&&(d+=b.helpers.getPX(a(g.frameElement).offset().left)+g.frameElement.clientLeft)}Ga=a(this),Ga.data("start-x",d),Ga.data("start-width",Ea.width()),Ga.data("start-height",Ea.height());var j=Ea.width();if(b.opts.imageResizeWithPercent){var k=Ea.parentsUntil(b.$el,b.html.blockTagsQuery()).get(0)||b.el;j=(j/a(k).outerWidth()*100).toFixed(2)+"%"}m(j),Ha.show(),b.popups.hideAll(),ma()}function o(c){if(!b.core.sameInstance(Fa))return!0;var d;if(Ga&&Ea){if(c.preventDefault(),b.$el.find("img.fr-error").left)return!1;var e=c.pageX||(c.originalEvent.touches?c.originalEvent.touches[0].pageX:null);if(!e)return!1;var f=Ga.data("start-x"),g=e-f,h=Ga.data("start-width");if((Ga.hasClass("fr-hnw")||Ga.hasClass("fr-hsw"))&&(g=0-g),b.opts.imageResizeWithPercent){var i=Ea.parentsUntil(b.$el,b.html.blockTagsQuery()).get(0)||b.el;h=((h+g)/a(i).outerWidth()*100).toFixed(2),b.opts.imageRoundPercent&&(h=Math.round(h)),m(h+"%"),d=Ca()?(b.helpers.getPX(Ea.parents(".fr-img-caption").css("width"))/a(i).outerWidth()*100).toFixed(2):(b.helpers.getPX(Ea.css("width"))/a(i).outerWidth()*100).toFixed(2),d===h||b.opts.imageRoundPercent||m(d+"%"),Ea.css("height","").removeAttr("height")}else h+g>=b.opts.imageMinWidth&&(m(h+g),d=Ca()?b.helpers.getPX(Ea.parents(".fr-img-caption").css("width")):b.helpers.getPX(Ea.css("width"))),d!==h+g&&m(d),((Ea.attr("style")||"").match(/(^height:)|(; *height:)/)||Ea.attr("height"))&&(Ea.css("height",Ga.data("start-height")*Ea.width()/Ga.data("start-width")),Ea.removeAttr("height"));k(),b.events.trigger("image.resize",[za()])}}function p(a){if(!b.core.sameInstance(Fa))return!0;if(Ga&&Ea){if(a&&a.stopPropagation(),b.$el.find("img.fr-error").left)return!1;Ga=null,Ha.hide(),k(),e(),b.undo.saveStep(),b.events.trigger("image.resizeEnd",[za()])}}function q(a,c,d){b.edit.on(),Ea&&Ea.addClass("fr-error"),v(b.language.translate("Something went wrong. Please try again.")),!Ea&&d&&_(d),b.events.trigger("image.error",[{code:a,message:Ra[a]},c,d])}function r(a){if(a)return b.$wp&&b.events.$on(b.$wp,"scroll",function(){Ea&&b.popups.isVisible("image.edit")&&(b.events.disableBlur(),x(Ea))}),!0;var c="";if(b.opts.imageEditButtons.length>0){c+='<div class="fr-buttons">',c+=b.button.buildList(b.opts.imageEditButtons),c+="</div>";var d={buttons:c},e=b.popups.create("image.edit",d);return e}return!1}function s(a){var c=b.popups.get("image.insert");if(c||(c=N()),c.find(".fr-layer.fr-active").removeClass("fr-active").addClass("fr-pactive"),c.find(".fr-image-progress-bar-layer").addClass("fr-active"),c.find(".fr-buttons").hide(),Ea){var d=Aa();b.popups.setContainer("image.insert",b.$sc);var e=d.offset().left+d.width()/2,f=d.offset().top+d.height();b.popups.show("image.insert",e,f,d.outerHeight())}"undefined"==typeof a&&u(b.language.translate("Uploading"),0)}function t(a){var c=b.popups.get("image.insert");if(c&&(c.find(".fr-layer.fr-pactive").addClass("fr-active").removeClass("fr-pactive"),c.find(".fr-image-progress-bar-layer").removeClass("fr-active"),c.find(".fr-buttons").show(),a||b.$el.find("img.fr-error").length)){if(b.events.focus(),b.$el.find("img.fr-error").length&&(b.$el.find("img.fr-error").remove(),b.undo.saveStep(),b.undo.run(),b.undo.dropRedo()),!b.$wp&&Ea){var d=Ea;ka(!0),b.selection.setAfter(d.get(0)),b.selection.restore()}b.popups.hide("image.insert")}}function u(a,c){var d=b.popups.get("image.insert");if(d){var e=d.find(".fr-image-progress-bar-layer");e.find("h3").text(a+(c?" "+c+"%":"")),e.removeClass("fr-error"),c?(e.find("div").removeClass("fr-indeterminate"),e.find("div > span").css("width",c+"%")):e.find("div").addClass("fr-indeterminate")}}function v(a){s();var c=b.popups.get("image.insert"),d=c.find(".fr-image-progress-bar-layer");d.addClass("fr-error");var e=d.find("h3");e.text(a),b.events.disableBlur(),e.focus()}function w(){var a=b.popups.get("image.insert"),c=a.find(".fr-image-by-url-layer input");if(c.val().length>0){s(),u(b.language.translate("Loading image"));var d=c.val();if(b.opts.imageUploadRemoteUrls&&b.opts.imageCORSProxy&&b.opts.imageUpload){var e=new XMLHttpRequest;e.responseType="blob",e.onload=function(){200==this.status?I([new Blob([this.response],{type:this.response.type||"image/png"})],Ea):q(Ja)},e.onerror=function(){z(d,!0,[],Ea)},e.open("GET",b.opts.imageCORSProxy+"/"+d,!0),e.send()}else z(d,!0,[],Ea);c.val(""),c.blur()}}function x(a){ja.call(a.get(0))}function y(){var c=a(this);b.popups.hide("image.insert"),c.removeClass("fr-uploading"),c.next().is("br")&&c.next().remove(),x(c),b.events.trigger("image.loaded",[c])}function z(a,c,d,e,f){b.edit.off(),u(b.language.translate("Loading image")),c&&(a=b.helpers.sanitizeURL(a));var g=new Image;g.onload=function(){var c,g;if(e){b.undo.canDo()||e.hasClass("fr-uploading")||b.undo.saveStep();var h=e.data("fr-old-src");e.data("fr-image-pasted")&&(h=null),b.$wp?(c=e.clone().removeData("fr-old-src").removeClass("fr-uploading").removeAttr("data-fr-image-pasted"),c.off("load"),h&&e.attr("src",h),e.replaceWith(c)):c=e;for(var i=c.get(0).attributes,k=0;k<i.length;k++){var l=i[k];0===l.nodeName.indexOf("data-")&&c.removeAttr(l.nodeName)}if("undefined"!=typeof d)for(g in d)d.hasOwnProperty(g)&&"link"!=g&&c.attr("data-"+g,d[g]);c.on("load",y),c.attr("src",a),b.edit.on(),j(!1),b.undo.saveStep(),b.events.disableBlur(),b.$el.blur(),b.events.trigger(h?"image.replaced":"image.inserted",[c,f])}else c=F(a,d,y),j(!1),b.undo.saveStep(),b.$el.blur(),b.events.trigger("image.inserted",[c,f])},g.onerror=function(){q(Ja)},s(b.language.translate("Loading image")),g.src=a}function A(a){try{if(b.events.trigger("image.uploaded",[a],!0)===!1)return b.edit.on(),!1;var c=JSON.parse(a);return c.link?c:(q(Ka,a),!1)}catch(d){return q(Ma,a),!1}}function B(c){try{var d=a(c).find("Location").text(),e=a(c).find("Key").text();return b.events.trigger("image.uploadedToS3",[d,e,c],!0)===!1?(b.edit.on(),!1):d}catch(f){return q(Ma,c),!1}}function C(a){u(b.language.translate("Loading image"));var c=this.status,d=this.response,e=this.responseXML,f=this.responseText;try{if(b.opts.imageUploadToS3)if(201==c){var g=B(e);g&&z(g,!1,[],a,d||e)}else q(Ma,d||e,a);else if(c>=200&&300>c){var h=A(f);h&&z(h.link,!1,h,a,d||f)}else q(La,d||f,a)}catch(i){q(Ma,d||f,a)}}function D(){q(Ma,this.response||this.responseText||this.responseXML)}function E(a){if(a.lengthComputable){var c=a.loaded/a.total*100|0;u(b.language.translate("Uploading"),c)}}function F(c,d,e){var f,g="";if(d&&"undefined"!=typeof d)for(f in d)d.hasOwnProperty(f)&&"link"!=f&&(g+=" data-"+f+'="'+d[f]+'"');var h=b.opts.imageDefaultWidth;h&&"auto"!=h&&(h+=b.opts.imageResizeWithPercent?"%":"px");var i=a('<img src="'+c+'"'+g+(h?' style="width: '+h+';"':"")+">");oa(i,b.opts.imageDefaultDisplay,b.opts.imageDefaultAlign),i.on("load",e),i.on("error",function(){a(this).addClass("fr-error"),q(Qa)}),b.edit.on(),b.events.focus(!0),b.selection.restore(),b.undo.saveStep(),b.opts.imageSplitHTML?b.markers.split():b.markers.insert(),b.html.wrap();var j=b.$el.find(".fr-marker");return j.length?(j.parent().is("hr")&&j.parent().after(j),b.node.isLastSibling(j)&&j.parent().hasClass("fr-deletable")&&j.insertAfter(j.parent()),j.replaceWith(i)):b.$el.append(i),b.selection.clear(),i}function G(){b.edit.on(),t(!0)}function H(c,d,e,f){function g(){var e=a(this);e.off("load"),e.addClass("fr-uploading"),e.next().is("br")&&e.next().remove(),b.placeholder.refresh(),x(e),k(),s(),b.edit.off(),c.onload=function(){C.call(c,e)},c.onerror=D,c.upload.onprogress=E,c.onabort=G,e.off("abortUpload").on("abortUpload",function(){4!=c.readyState&&c.abort()}),c.send(d)}var h,i=new FileReader;i.addEventListener("load",function(){var a=i.result;if(i.result.indexOf("svg+xml")<0){for(var c=atob(i.result.split(",")[1]),d=[],e=0;e<c.length;e++)d.push(c.charCodeAt(e));a=window.URL.createObjectURL(new Blob([new Uint8Array(d)],{type:"image/jpeg"}))}f?(f.on("load",g),f.one("error",function(){f.off("load"),f.attr("src",f.data("fr-old-src")),q(Qa)}),b.edit.on(),b.undo.saveStep(),f.data("fr-old-src",f.attr("src")),f.attr("src",a)):h=F(a,null,g)},!1),i.readAsDataURL(e)}function I(a,c){if("undefined"!=typeof a&&a.length>0){if(b.events.trigger("image.beforeUpload",[a,c])===!1)return!1;var d=a[0];if(d.name||(d.name=(new Date).getTime()+".jpg"),d.size>b.opts.imageMaxSize)return q(Na),!1;if(b.opts.imageAllowedTypes.indexOf(d.type.replace(/image\//g,""))<0)return q(Oa),!1;var e;if(b.drag_support.formdata&&(e=b.drag_support.formdata?new FormData:null),e){var f;if(b.opts.imageUploadToS3!==!1){e.append("key",b.opts.imageUploadToS3.keyStart+(new Date).getTime()+"-"+(d.name||"untitled")),e.append("success_action_status","201"),e.append("X-Requested-With","xhr"),e.append("Content-Type",d.type);for(f in b.opts.imageUploadToS3.params)b.opts.imageUploadToS3.params.hasOwnProperty(f)&&e.append(f,b.opts.imageUploadToS3.params[f])}for(f in b.opts.imageUploadParams)b.opts.imageUploadParams.hasOwnProperty(f)&&e.append(f,b.opts.imageUploadParams[f]);e.append(b.opts.imageUploadParam,d,d.name);var g=b.opts.imageUploadURL;b.opts.imageUploadToS3&&(g=b.opts.imageUploadToS3.uploadURL?b.opts.imageUploadToS3.uploadURL:"https://"+b.opts.imageUploadToS3.region+".amazonaws.com/"+b.opts.imageUploadToS3.bucket);var h=b.core.getXHR(g,b.opts.imageUploadMethod);H(h,e,d,c||Ea)}}}function J(c){b.events.$on(c,"dragover dragenter",".fr-image-upload-layer",function(){return a(this).addClass("fr-drop"),!1},!0),b.events.$on(c,"dragleave dragend",".fr-image-upload-layer",function(){return a(this).removeClass("fr-drop"),!1},!0),b.events.$on(c,"drop",".fr-image-upload-layer",function(d){d.preventDefault(),d.stopPropagation(),a(this).removeClass("fr-drop");var e=d.originalEvent.dataTransfer;if(e&&e.files){var f=c.data("instance")||b;f.events.disableBlur(),f.image.upload(e.files),f.events.enableBlur()}},!0),b.helpers.isIOS()&&b.events.$on(c,"touchstart",'.fr-image-upload-layer input[type="file"]',function(){a(this).trigger("click")},!0),b.events.$on(c,"change",'.fr-image-upload-layer input[type="file"]',function(){if(this.files){var d=c.data("instance")||b;d.events.disableBlur(),c.find("input:focus").blur(),d.events.enableBlur(),d.image.upload(this.files,Ea)}a(this).val("")},!0)}function K(a){return a.is("img")&&a.parents(".fr-img-caption").length>0?a.parents(".fr-img-caption"):void 0}function L(c){var d=c.originalEvent.dataTransfer;if(d&&d.files&&d.files.length){var e=d.files[0];if(e&&e.type&&-1!==e.type.indexOf("image")&&b.opts.imageAllowedTypes.indexOf(e.type.replace(/image\//g,""))>=0){if(!b.opts.imageUpload)return c.preventDefault(),c.stopPropagation(),!1;b.markers.remove(),b.markers.insertAtPoint(c.originalEvent),b.$el.find(".fr-marker").replaceWith(a.FE.MARKERS),0===b.$el.find(".fr-marker").length&&b.selection.setAtEnd(b.el),b.popups.hideAll();var f=b.popups.get("image.insert");f||(f=N()),b.popups.setContainer("image.insert",b.$sc);var g=c.originalEvent.pageX,h=c.originalEvent.pageY;return b.opts.iframe&&(h+=b.$iframe.offset().top,g+=b.$iframe.offset().left),b.popups.show("image.insert",g,h),s(),b.opts.imageAllowedTypes.indexOf(e.type.replace(/image\//g,""))>=0?(ka(!0),I(d.files)):q(Oa),c.preventDefault(),c.stopPropagation(),!1}}}function M(){b.events.$on(b.$el,b._mousedown,"IMG"==b.el.tagName?null:'img:not([contenteditable="false"])',function(c){return"false"==a(this).parents("[contenteditable]:not(.fr-element):not(.fr-img-caption):not(body):first").attr("contenteditable")?!0:(b.helpers.isMobile()||b.selection.clear(),Ia=!0,b.popups.areVisible()&&b.events.disableBlur(),b.browser.msie&&(b.events.disableBlur(),b.$el.attr("contenteditable",!1)),b.draggable||"touchstart"==c.type||c.preventDefault(),void c.stopPropagation())}),b.events.$on(b.$el,b._mouseup,"IMG"==b.el.tagName?null:'img:not([contenteditable="false"])',function(c){return"false"==a(this).parents("[contenteditable]:not(.fr-element):not(.fr-img-caption):not(body):first").attr("contenteditable")?!0:void(Ia&&(Ia=!1,c.stopPropagation(),b.browser.msie&&(b.$el.attr("contenteditable",!0),b.events.enableBlur())))}),b.events.on("keyup",function(c){if(c.shiftKey&&""===b.selection.text().replace(/\n/g,"")&&b.keys.isArrow(c.which)){var d=b.selection.element(),e=b.selection.endElement();d&&"IMG"==d.tagName?x(a(d)):e&&"IMG"==e.tagName&&x(a(e))}},!0),b.events.on("drop",L),b.events.on("element.beforeDrop",K),b.events.on("mousedown window.mousedown",la),b.events.on("window.touchmove",ma),b.events.on("mouseup window.mouseup",function(){return Ea?(ka(),!1):void ma()}),b.events.on("commands.mousedown",function(a){a.parents(".fr-toolbar").length>0&&ka()}),b.events.on("blur image.hideResizer commands.undo commands.redo element.dropped",function(){Ia=!1,ka(!0)}),b.events.on("modals.hide",function(){Ea&&(xa(),b.selection.clear())})}function N(a){if(a)return b.popups.onRefresh("image.insert",c),b.popups.onHide("image.insert",f),!0;var d,e="";b.opts.imageUpload||b.opts.imageInsertButtons.splice(b.opts.imageInsertButtons.indexOf("imageUpload"),1),b.opts.imageInsertButtons.length>1&&(e='<div class="fr-buttons">'+b.button.buildList(b.opts.imageInsertButtons)+"</div>");var g=b.opts.imageInsertButtons.indexOf("imageUpload"),h=b.opts.imageInsertButtons.indexOf("imageByURL"),i="";g>=0&&(d=" fr-active",h>=0&&g>h&&(d=""),i='<div class="fr-image-upload-layer'+d+' fr-layer" id="fr-image-upload-layer-'+b.id+'"><strong>'+b.language.translate("Drop image")+"</strong><br>("+b.language.translate("or click")+')<div class="fr-form"><input type="file" accept="image/'+b.opts.imageAllowedTypes.join(", image/").toLowerCase()+'" tabIndex="-1" aria-labelledby="fr-image-upload-layer-'+b.id+'" role="button"></div></div>');var j="";h>=0&&(d=" fr-active",g>=0&&h>g&&(d=""),j='<div class="fr-image-by-url-layer'+d+' fr-layer" id="fr-image-by-url-layer-'+b.id+'"><div class="fr-input-line"><input id="fr-image-by-url-layer-text-'+b.id+'" type="text" placeholder="http://" tabIndex="1" aria-required="true"></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="imageInsertByURL" tabIndex="2" role="button">'+b.language.translate("Insert")+"</button></div></div>");var k='<div class="fr-image-progress-bar-layer fr-layer"><h3 tabIndex="-1" class="fr-message">Uploading</h3><div class="fr-loader"><span class="fr-progress"></span></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-dismiss" data-cmd="imageDismissError" tabIndex="2" role="button">OK</button></div></div>',l={buttons:e,upload_layer:i,by_url_layer:j,progress_bar:k},m=b.popups.create("image.insert",l);return b.$wp&&b.events.$on(b.$wp,"scroll",function(){Ea&&b.popups.isVisible("image.insert")&&wa()}),J(m),m}function O(){if(Ea){var a=b.popups.get("image.alt");a.find("input").val(Ea.attr("alt")||"").trigger("change")}}function P(){var a=b.popups.get("image.alt");a||(a=Q()),t(),b.popups.refresh("image.alt"),b.popups.setContainer("image.alt",b.$sc);var c=Aa();Ca()&&(c=c.find(".fr-img-wrap"));var d=c.offset().left+c.outerWidth()/2,e=c.offset().top+c.outerHeight();b.popups.show("image.alt",d,e,c.outerHeight())}function Q(a){if(a)return b.popups.onRefresh("image.alt",O),!0;var c="";c='<div class="fr-buttons">'+b.button.buildList(b.opts.imageAltButtons)+"</div>";var d="";d='<div class="fr-image-alt-layer fr-layer fr-active" id="fr-image-alt-layer-'+b.id+'"><div class="fr-input-line"><input id="fr-image-alt-layer-text-'+b.id+'" type="text" placeholder="'+b.language.translate("Alternate Text")+'" tabIndex="1"></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="imageSetAlt" tabIndex="2" role="button">'+b.language.translate("Update")+"</button></div></div>";var e={buttons:c,alt_layer:d},f=b.popups.create("image.alt",e);return b.$wp&&b.events.$on(b.$wp,"scroll.image-alt",function(){Ea&&b.popups.isVisible("image.alt")&&P()}),f}function R(a){if(Ea){var c=b.popups.get("image.alt");Ea.attr("alt",a||c.find("input").val()||""),c.find("input:focus").blur(),x(Ea)}}function S(){if(Ea){var a=b.popups.get("image.size");a.find('input[name="width"]').val(Ea.get(0).style.width).trigger("change"),a.find('input[name="height"]').val(Ea.get(0).style.height).trigger("change")}}function T(){var a=b.popups.get("image.size");a||(a=U()),t(),b.popups.refresh("image.size"),b.popups.setContainer("image.size",b.$sc);var c=Aa();Ca()&&(c=c.find(".fr-img-wrap"));var d=c.offset().left+c.outerWidth()/2,e=c.offset().top+c.outerHeight();b.popups.show("image.size",d,e,c.outerHeight())}function U(a){if(a)return b.popups.onRefresh("image.size",S),!0;var c="";c='<div class="fr-buttons">'+b.button.buildList(b.opts.imageSizeButtons)+"</div>";var d="";d='<div class="fr-image-size-layer fr-layer fr-active" id="fr-image-size-layer-'+b.id+'"><div class="fr-image-group"><div class="fr-input-line"><input id="fr-image-size-layer-width-'+b.id+'" type="text" name="width" placeholder="'+b.language.translate("Width")+'" tabIndex="1"></div><div class="fr-input-line"><input id="fr-image-size-layer-height'+b.id+'" type="text" name="height" placeholder="'+b.language.translate("Height")+'" tabIndex="1"></div></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="imageSetSize" tabIndex="2" role="button">'+b.language.translate("Update")+"</button></div></div>";var e={buttons:c,size_layer:d},f=b.popups.create("image.size",e);return b.$wp&&b.events.$on(b.$wp,"scroll.image-size",function(){Ea&&b.popups.isVisible("image.size")&&T()}),f}function V(a,c){if(Ea){var d=b.popups.get("image.size");a=a||d.find('input[name="width"]').val()||"",c=c||d.find('input[name="height"]').val()||"";var e=/^[\d]+((px)|%)*$/g;Ea.removeAttr("width").removeAttr("height"),a.match(e)?Ea.css("width",a):Ea.css("width",""),c.match(e)?Ea.css("height",c):Ea.css("height",""),Ca()&&(Ea.parent().removeAttr("width").removeAttr("height"),a.match(e)?Ea.parent().css("width",a):Ea.parent().css("width",""),c.match(e)?Ea.parent().css("height",c):Ea.parent().css("height","")),d.find("input:focus").blur(),x(Ea)}}function W(a){var c,d,e=b.popups.get("image.insert");if(Ea||b.opts.toolbarInline){if(Ea){var f=Aa();Ca()&&(f=f.find(".fr-img-wrap")),d=f.offset().top+f.outerHeight(),c=f.offset().left+f.outerWidth()/2}}else{var g=b.$tb.find('.fr-command[data-cmd="insertImage"]');c=g.offset().left+g.outerWidth()/2,d=g.offset().top+(b.opts.toolbarBottom?10:g.outerHeight()-10)}!Ea&&b.opts.toolbarInline&&(d=e.offset().top-b.helpers.getPX(e.css("margin-top")),e.hasClass("fr-above")&&(d+=e.outerHeight())),e.find(".fr-layer").removeClass("fr-active"),e.find(".fr-"+a+"-layer").addClass("fr-active"),b.popups.show("image.insert",c,d,Ea?Ea.outerHeight():0),b.accessibility.focusPopup(e)}function X(a){var c=b.popups.get("image.insert");c.find(".fr-image-upload-layer").hasClass("fr-active")&&a.addClass("fr-active").attr("aria-pressed",!0)}function Y(a){var c=b.popups.get("image.insert");c.find(".fr-image-by-url-layer").hasClass("fr-active")&&a.addClass("fr-active").attr("aria-pressed",!0)}function Z(a,b,c,d){return a.pageX=b,n.call(this,a),a.pageX=a.pageX+c*Math.floor(Math.pow(1.1,d)),o.call(this,a),p.call(this,a),++d}function $(){var c;if(b.shared.$image_resizer?(Fa=b.shared.$image_resizer,Ha=b.shared.$img_overlay,b.events.on("destroy",function(){Fa.removeClass("fr-active").appendTo(a("body:first"))},!0)):(b.shared.$image_resizer=a('<div class="fr-image-resizer"></div>'),Fa=b.shared.$image_resizer,b.events.$on(Fa,"mousedown",function(a){a.stopPropagation()},!0),b.opts.imageResize&&(Fa.append(l("nw")+l("ne")+l("sw")+l("se")),b.shared.$img_overlay=a('<div class="fr-image-overlay"></div>'),Ha=b.shared.$img_overlay,c=Fa.get(0).ownerDocument,a(c).find("body:first").append(Ha))),b.events.on("shared.destroy",function(){Fa.html("").removeData().remove(),Fa=null,b.opts.imageResize&&(Ha.remove(),Ha=null)},!0),b.helpers.isMobile()||b.events.$on(a(b.o_win),"resize",function(){Ea&&!Ea.hasClass("fr-uploading")?ka(!0):Ea&&(k(),wa(),s(!1))}),b.opts.imageResize){c=Fa.get(0).ownerDocument,b.events.$on(Fa,b._mousedown,".fr-handler",n),b.events.$on(a(c),b._mousemove,o),b.events.$on(a(c.defaultView||c.parentWindow),b._mouseup,p),b.events.$on(Ha,"mouseleave",p);var d=1,e=null,f=0;b.events.on("keydown",function(c){if(Ea){var g=-1!=navigator.userAgent.indexOf("Mac OS X")?c.metaKey:c.ctrlKey,h=c.which;(h!==e||c.timeStamp-f>200)&&(d=1),(h==a.FE.KEYCODE.EQUALS||b.browser.mozilla&&h==a.FE.KEYCODE.FF_EQUALS)&&g&&!c.altKey?d=Z.call(this,c,1,1,d):(h==a.FE.KEYCODE.HYPHEN||b.browser.mozilla&&h==a.FE.KEYCODE.FF_HYPHEN)&&g&&!c.altKey?d=Z.call(this,c,2,-1,d):b.keys.ctrlKey(c)||h!=a.FE.KEYCODE.ENTER||(Ea.before("<br>"),x(Ea)),e=h,f=c.timeStamp}},!0),b.events.on("keyup",function(){d=1})}}function _(c){c=c||Aa(),c&&b.events.trigger("image.beforeRemove",[c])!==!1&&(b.popups.hideAll(),xa(),ka(!0),b.undo.canDo()||b.undo.saveStep(),c.get(0)==b.el?c.removeAttr("src"):("A"==c.get(0).parentNode.tagName?(b.selection.setBefore(c.get(0).parentNode)||b.selection.setAfter(c.get(0).parentNode)||c.parent().after(a.FE.MARKERS),a(c.get(0).parentNode).remove()):(b.selection.setBefore(c.get(0))||b.selection.setAfter(c.get(0))||c.after(a.FE.MARKERS),c.remove()),b.html.fillEmptyBlocks(),b.selection.restore()),b.undo.saveStep())}function aa(c){var d=c.which;if(Ea&&(d==a.FE.KEYCODE.BACKSPACE||d==a.FE.KEYCODE.DELETE))return c.preventDefault(),c.stopPropagation(),_(),!1;if(Ea&&d==a.FE.KEYCODE.ESC){var e=Ea;return ka(!0),b.selection.setAfter(e.get(0)),b.selection.restore(),c.preventDefault(),!1}if(Ea&&(d==a.FE.KEYCODE.ARROW_LEFT||d==a.FE.KEYCODE.ARROW_RIGHT)){var f=Ea.get(0);return ka(!0),d==a.FE.KEYCODE.ARROW_LEFT?b.selection.setBefore(f):b.selection.setAfter(f),b.selection.restore(),c.preventDefault(),!1}return Ea&&d!=a.FE.KEYCODE.F10&&!b.keys.isBrowserAction(c)?(c.preventDefault(),c.stopPropagation(),!1):void 0}function ba(a){if(a&&"IMG"==a.tagName){if(b.node.hasClass(a,"fr-uploading")||b.node.hasClass(a,"fr-error")?a.parentNode.removeChild(a):b.node.hasClass(a,"fr-draggable")&&a.classList.remove("fr-draggable"),a.parentNode&&a.parentNode.parentNode&&b.node.hasClass(a.parentNode.parentNode,"fr-img-caption")){var c=a.parentNode.parentNode;c.removeAttribute("contenteditable"),c.removeAttribute("draggable"),c.classList.remove("fr-draggable");var d=a.nextSibling;d&&d.removeAttribute("contenteditable")}}else if(a&&a.nodeType==Node.ELEMENT_NODE)for(var e=a.querySelectorAll("img.fr-uploading, img.fr-error, img.fr-draggable"),f=0;f<e.length;f++)ba(e[f])}function ca(){if(M(),"IMG"==b.el.tagName&&b.$el.addClass("fr-view"),b.events.$on(b.$el,b.helpers.isMobile()&&!b.helpers.isWindowsPhone()?"touchend":"click","IMG"==b.el.tagName?null:'img:not([contenteditable="false"])',ja),b.helpers.isMobile()&&(b.events.$on(b.$el,"touchstart","IMG"==b.el.tagName?null:'img:not([contenteditable="false"])',function(){Ta=!1}),b.events.$on(b.$el,"touchmove",function(){Ta=!0})),b.$wp?(b.events.on("window.keydown keydown",aa,!0),b.events.on("keyup",function(b){return Ea&&b.which==a.FE.KEYCODE.ENTER?!1:void 0},!0)):b.events.$on(b.$win,"keydown",aa),b.events.on("toolbar.esc",function(){if(Ea){if(b.$wp)b.events.disableBlur(),b.events.focus();else{var a=Ea;ka(!0),b.selection.setAfter(a.get(0)),b.selection.restore()}return!1}},!0),b.events.on("toolbar.focusEditor",function(){return Ea?!1:void 0},!0),b.events.on("window.cut window.copy",function(c){if(Ea&&b.popups.isVisible("image.edit")&&!b.popups.get("image.edit").find(":focus").length){var d=Aa();Ca()?(d.before(a.FE.START_MARKER),d.after(a.FE.END_MARKER),b.selection.restore(),b.paste.saveCopiedText(d.get(0).outerHTML,d.text())):(xa(),b.paste.saveCopiedText(Ea.get(0).outerHTML,Ea.attr("alt"))),"copy"==c.type?setTimeout(function(){x(Ea)}):(ka(!0),b.undo.saveStep(),setTimeout(function(){b.undo.saveStep()},0))}},!0),b.browser.msie&&b.events.on("keydown",function(c){if(!b.selection.isCollapsed()||!Ea)return!0;var d=c.which;d==a.FE.KEYCODE.C&&b.keys.ctrlKey(c)?b.events.trigger("window.copy"):d==a.FE.KEYCODE.X&&b.keys.ctrlKey(c)&&b.events.trigger("window.cut")}),b.events.$on(a(b.o_win),"keydown",function(b){var c=b.which;return Ea&&c==a.FE.KEYCODE.BACKSPACE?(b.preventDefault(),!1):void 0}),b.events.$on(b.$win,"keydown",function(b){var c=b.which;Ea&&Ea.hasClass("fr-uploading")&&c==a.FE.KEYCODE.ESC&&Ea.trigger("abortUpload")}),b.events.on("destroy",function(){Ea&&Ea.hasClass("fr-uploading")&&Ea.trigger("abortUpload")}),b.events.on("paste.before",ha),b.events.on("paste.beforeCleanup",ia),b.events.on("paste.after",ea),b.events.on("html.set",i),b.events.on("html.inserted",i),i(),b.events.on("destroy",function(){Sa=[]}),b.events.on("html.processGet",ba),b.opts.imageOutputSize){var c;b.events.on("html.beforeGet",function(){c=b.el.querySelectorAll("img");for(var d=0;d<c.length;d++){var e=c[d].style.width||a(c[d]).width(),f=c[d].style.height||a(c[d]).height();e&&c[d].setAttribute("width",(""+e).replace(/px/,"")),f&&c[d].setAttribute("height",(""+f).replace(/px/,""))}})}b.opts.iframe&&b.events.on("image.loaded",b.size.syncIframe),b.$wp&&(j(),b.events.on("contentChanged",j)),b.events.$on(a(b.o_win),"orientationchange.image",function(){setTimeout(function(){Ea&&x(Ea)},100)}),r(!0),N(!0),U(!0),Q(!0),b.events.on("node.remove",function(a){return"IMG"==a.get(0).tagName?(_(a),!1):void 0})}function da(c){if(b.events.trigger("image.beforePasteUpload",[c])===!1)return!1;Ea=a(c),k(),e(),wa(),s();for(var d=atob(a(c).attr("src").split(",")[1]),f=[],g=0;g<d.length;g++)f.push(d.charCodeAt(g));var h=new Blob([new Uint8Array(f)],{type:"image/jpeg"});I([h],Ea)}function ea(){b.opts.imagePaste?b.$el.find("img[data-fr-image-pasted]").each(function(c,d){if(b.opts.imagePasteProcess){var e=b.opts.imageDefaultWidth;e&&"auto"!=e&&(e+=b.opts.imageResizeWithPercent?"%":"px"),a(d).css("width",e).removeClass("fr-dii fr-dib fr-fir fr-fil"),oa(a(d),b.opts.imageDefaultDisplay,b.opts.imageDefaultAlign)}if(0===d.src.indexOf("data:"))da(d);else if(0===d.src.indexOf("blob:")||0===d.src.indexOf("http")&&b.opts.imageUploadRemoteUrls&&b.opts.imageCORSProxy){var f=new Image;f.crossOrigin="Anonymous",f.onload=function(){var a=b.o_doc.createElement("CANVAS"),c=a.getContext("2d");a.height=this.naturalHeight,a.width=this.naturalWidth,c.drawImage(this,0,0),d.src=a.toDataURL("image/png"),da(d)},f.src=(0===d.src.indexOf("blob:")?"":b.opts.imageCORSProxy+"/")+d.src}else 0!==d.src.indexOf("http")||0===d.src.indexOf("https://mail.google.com/mail")?(b.selection.save(), -a(d).remove(),b.selection.restore()):a(d).removeAttr("data-fr-image-pasted")}):b.$el.find("img[data-fr-image-pasted]").remove()}function fa(a){var c=a.target.result,d=b.opts.imageDefaultWidth;d&&"auto"!=d&&(d+=b.opts.imageResizeWithPercent?"%":"px"),b.undo.saveStep(),b.html.insert('<img data-fr-image-pasted="true" src="'+c+'"'+(d?' style="width: '+d+';"':"")+">");var e=b.$el.find('img[data-fr-image-pasted="true"]');e&&oa(e,b.opts.imageDefaultDisplay,b.opts.imageDefaultAlign),b.events.trigger("paste.after")}function ga(a){var b=new FileReader;b.onload=fa,b.readAsDataURL(a)}function ha(a){if(a&&a.clipboardData&&a.clipboardData.items){var b=null;if(a.clipboardData.getData("text/rtf"))b=a.clipboardData.items[0].getAsFile();else for(var c=0;c<a.clipboardData.items.length&&!(b=a.clipboardData.items[c].getAsFile());c++);if(b)return ga(b),!1}}function ia(a){return a=a.replace(/<img /gi,'<img data-fr-image-pasted="true" ')}function ja(c){if("false"==a(this).parents("[contenteditable]:not(.fr-element):not(.fr-img-caption):not(body):first").attr("contenteditable"))return!0;if(c&&"touchend"==c.type&&Ta)return!0;if(c&&b.edit.isDisabled())return c.stopPropagation(),c.preventDefault(),!1;for(var d=0;d<a.FE.INSTANCES.length;d++)a.FE.INSTANCES[d]!=b&&a.FE.INSTANCES[d].events.trigger("image.hideResizer");b.toolbar.disable(),c&&(c.stopPropagation(),c.preventDefault()),b.helpers.isMobile()&&(b.events.disableBlur(),b.$el.blur(),b.events.enableBlur()),b.opts.iframe&&b.size.syncIframe(),Ea=a(this),b.browser.msie||xa(),k(),e(),b.browser.msie||b.selection.clear(),b.helpers.isIOS()&&(b.events.disableBlur(),b.$el.blur()),b.button.bulkRefresh(),b.events.trigger("video.hideResizer")}function ka(a){Ea&&(na()||a===!0)&&(b.toolbar.enable(),Fa.removeClass("fr-active"),b.popups.hide("image.edit"),Ea=null,ma(),Ga=null,Ha&&Ha.hide())}function la(){Ua=!0}function ma(){Ua=!1}function na(){return Ua}function oa(a,c,d){!b.opts.htmlUntouched&&b.opts.useClasses?(a.removeClass("fr-fil fr-fir fr-dib fr-dii"),d&&a.addClass("fr-fi"+d[0]),c&&a.addClass("fr-di"+c[0])):"inline"==c?(a.css({display:"inline-block",verticalAlign:"bottom",margin:b.opts.imageDefaultMargin}),"center"==d?a.css({"float":"none",marginBottom:"",marginTop:"",maxWidth:"calc(100% - "+2*b.opts.imageDefaultMargin+"px)",textAlign:"center"}):"left"==d?a.css({"float":"left",marginLeft:0,maxWidth:"calc(100% - "+b.opts.imageDefaultMargin+"px)",textAlign:"left"}):a.css({"float":"right",marginRight:0,maxWidth:"calc(100% - "+b.opts.imageDefaultMargin+"px)",textAlign:"right"})):"block"==c&&(a.css({display:"block","float":"none",verticalAlign:"top",margin:b.opts.imageDefaultMargin+"px auto",textAlign:"center"}),"left"==d?a.css({marginLeft:0,textAlign:"left"}):"right"==d&&a.css({marginRight:0,textAlign:"right"}))}function pa(a){var c=Aa();c.removeClass("fr-fir fr-fil"),!b.opts.htmlUntouched&&b.opts.useClasses?"left"==a?c.addClass("fr-fil"):"right"==a&&c.addClass("fr-fir"):oa(c,ra(),a),xa(),k(),e(),b.selection.clear()}function qa(a){if("undefined"==typeof a&&(a=Aa()),a){if(a.hasClass("fr-fil"))return"left";if(a.hasClass("fr-fir"))return"right";if(a.hasClass("fr-dib")||a.hasClass("fr-dii"))return"center";var b=a.css("float");if(a.css("float","none"),"block"==a.css("display")){if(a.css("float",""),a.css("float")!=b&&a.css("float",b),0===parseInt(a.css("margin-left"),10))return"left";if(0===parseInt(a.css("margin-right"),10))return"right"}else{if(a.css("float",""),a.css("float")!=b&&a.css("float",b),"left"==a.css("float"))return"left";if("right"==a.css("float"))return"right"}}return"center"}function ra(a){"undefined"==typeof a&&(a=Aa());var b=a.css("float");return a.css("float","none"),"block"==a.css("display")?(a.css("float",""),a.css("float")!=b&&a.css("float",b),"block"):(a.css("float",""),a.css("float")!=b&&a.css("float",b),"inline")}function sa(a){Ea&&a.find("> *:first").replaceWith(b.icon.create("image-align-"+qa()))}function ta(a,b){Ea&&b.find('.fr-command[data-param1="'+qa()+'"]').addClass("fr-active").attr("aria-selected",!0)}function ua(a){var c=Aa();c.removeClass("fr-dii fr-dib"),!b.opts.htmlUntouched&&b.opts.useClasses?"inline"==a?c.addClass("fr-dii"):"block"==a&&c.addClass("fr-dib"):oa(c,a,qa()),xa(),k(),e(),b.selection.clear()}function va(a,b){Ea&&b.find('.fr-command[data-param1="'+ra()+'"]').addClass("fr-active").attr("aria-selected",!0)}function wa(){var a=b.popups.get("image.insert");a||(a=N()),b.popups.isVisible("image.insert")||(t(),b.popups.refresh("image.insert"),b.popups.setContainer("image.insert",b.$sc));var c=Aa();Ca()&&(c=c.find(".fr-img-wrap"));var d=c.offset().left+c.outerWidth()/2,e=c.offset().top+c.outerHeight();b.popups.show("image.insert",d,e,c.outerHeight(!0))}function xa(){if(Ea){b.events.disableBlur(),b.selection.clear();var a=b.doc.createRange();a.selectNode(Ea.get(0));var c=b.selection.get();c.addRange(a),b.events.enableBlur()}}function ya(){Ea?(b.events.disableBlur(),a(".fr-popup input:focus").blur(),x(Ea)):(b.events.disableBlur(),b.selection.restore(),b.events.enableBlur(),b.popups.hide("image.insert"),b.toolbar.showInline())}function za(){return Ea}function Aa(){return Ca()?Ea.parents(".fr-img-caption:first"):Ea}function Ba(a,c,d){if("undefined"==typeof c&&(c=b.opts.imageStyles),"undefined"==typeof d&&(d=b.opts.imageMultipleStyles),!Ea)return!1;var e=Aa();if(!d){var f=Object.keys(c);f.splice(f.indexOf(a),1),e.removeClass(f.join(" "))}"object"==typeof c[a]?(e.removeAttr("style"),e.css(c[a].style)):e.toggleClass(a),x(Ea)}function Ca(){return Ea?Ea.parents(".fr-img-caption").length>0:!1}function Da(){var c;Ea&&!Ca()?(c=Ea,Ea.parent().is("a")&&(c=Ea.parent()),c.wrap("<span "+(b.browser.mozilla?"":'contenteditable="false"')+'class="fr-img-caption '+Ea.attr("class")+'" style="'+(Ea.attr("style")?Ea.attr("style")+" ":"")+"width: "+Ea.width()+'px;" draggable="false"></span>'),c.wrap('<span class="fr-img-wrap"></span>'),c.after('<span class="fr-inner" contenteditable="true">'+a.FE.START_MARKER+"Image caption"+a.FE.END_MARKER+"</span>"),Ea.removeAttr("class").removeAttr("style").removeAttr("width"),ka(!0),b.selection.restore()):(c=Aa(),Ea.insertAfter(c),Ea.attr("class",c.attr("class").replace("fr-img-caption","")).attr("style",c.attr("style")),c.remove(),x(Ea))}var Ea,Fa,Ga,Ha,Ia=!1,Ja=1,Ka=2,La=3,Ma=4,Na=5,Oa=6,Pa=7,Qa=8,Ra={};Ra[Ja]="Image cannot be loaded from the passed link.",Ra[Ka]="No link in upload response.",Ra[La]="Error during file upload.",Ra[Ma]="Parsing response failed.",Ra[Na]="File is too large.",Ra[Oa]="Image file type is invalid.",Ra[Pa]="Files can be uploaded only to same domain in IE 8 and IE 9.",Ra[Qa]="Image file is corrupted.";var Sa,Ta,Ua=!1;return{_init:ca,showInsertPopup:d,showLayer:W,refreshUploadButton:X,refreshByURLButton:Y,upload:I,insertByURL:w,align:pa,refreshAlign:sa,refreshAlignOnShow:ta,display:ua,refreshDisplayOnShow:va,replace:wa,back:ya,get:za,getEl:Aa,insert:z,showProgressBar:s,remove:_,hideProgressBar:t,applyStyle:Ba,showAltPopup:P,showSizePopup:T,setAlt:R,setSize:V,toggleCaption:Da,hasCaption:Ca,exitEdit:ka,edit:x}},a.FE.DefineIcon("insertImage",{NAME:"image"}),a.FE.RegisterShortcut(a.FE.KEYCODE.P,"insertImage",null,"P"),a.FE.RegisterCommand("insertImage",{title:"Insert Image",undo:!1,focus:!0,refreshAfterCallback:!1,popup:!0,callback:function(){this.popups.isVisible("image.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("image.insert")):this.image.showInsertPopup()},plugin:"image"}),a.FE.DefineIcon("imageUpload",{NAME:"upload"}),a.FE.RegisterCommand("imageUpload",{title:"Upload Image",undo:!1,focus:!1,toggle:!0,callback:function(){this.image.showLayer("image-upload")},refresh:function(a){this.image.refreshUploadButton(a)}}),a.FE.DefineIcon("imageByURL",{NAME:"link"}),a.FE.RegisterCommand("imageByURL",{title:"By URL",undo:!1,focus:!1,toggle:!0,callback:function(){this.image.showLayer("image-by-url")},refresh:function(a){this.image.refreshByURLButton(a)}}),a.FE.RegisterCommand("imageInsertByURL",{title:"Insert Image",undo:!0,refreshAfterCallback:!1,callback:function(){this.image.insertByURL()},refresh:function(a){var b=this.image.get();b?a.text(this.language.translate("Replace")):a.text(this.language.translate("Insert"))}}),a.FE.DefineIcon("imageDisplay",{NAME:"star"}),a.FE.RegisterCommand("imageDisplay",{title:"Display",type:"dropdown",options:{inline:"Inline",block:"Break Text"},callback:function(a,b){this.image.display(b)},refresh:function(a){this.opts.imageTextNear||a.addClass("fr-hidden")},refreshOnShow:function(a,b){this.image.refreshDisplayOnShow(a,b)}}),a.FE.DefineIcon("image-align",{NAME:"align-left"}),a.FE.DefineIcon("image-align-left",{NAME:"align-left"}),a.FE.DefineIcon("image-align-right",{NAME:"align-right"}),a.FE.DefineIcon("image-align-center",{NAME:"align-justify"}),a.FE.DefineIcon("imageAlign",{NAME:"align-justify"}),a.FE.RegisterCommand("imageAlign",{type:"dropdown",title:"Align",options:{left:"Align Left",center:"None",right:"Align Right"},html:function(){var b='<ul class="fr-dropdown-list" role="presentation">',c=a.FE.COMMANDS.imageAlign.options;for(var d in c)c.hasOwnProperty(d)&&(b+='<li role="presentation"><a class="fr-command fr-title" tabIndex="-1" role="option" data-cmd="imageAlign" data-param1="'+d+'" title="'+this.language.translate(c[d])+'">'+this.icon.create("image-align-"+d)+'<span class="fr-sr-only">'+this.language.translate(c[d])+"</span></a></li>");return b+="</ul>"},callback:function(a,b){this.image.align(b)},refresh:function(a){this.image.refreshAlign(a)},refreshOnShow:function(a,b){this.image.refreshAlignOnShow(a,b)}}),a.FE.DefineIcon("imageReplace",{NAME:"exchange",FA5NAME:"exchange-alt"}),a.FE.RegisterCommand("imageReplace",{title:"Replace",undo:!1,focus:!1,popup:!0,refreshAfterCallback:!1,callback:function(){this.image.replace()}}),a.FE.DefineIcon("imageRemove",{NAME:"trash"}),a.FE.RegisterCommand("imageRemove",{title:"Remove",callback:function(){this.image.remove()}}),a.FE.DefineIcon("imageBack",{NAME:"arrow-left"}),a.FE.RegisterCommand("imageBack",{title:"Back",undo:!1,focus:!1,back:!0,callback:function(){this.image.back()},refresh:function(a){var b=this.image.get();b||this.opts.toolbarInline?(a.removeClass("fr-hidden"),a.next(".fr-separator").removeClass("fr-hidden")):(a.addClass("fr-hidden"),a.next(".fr-separator").addClass("fr-hidden"))}}),a.FE.RegisterCommand("imageDismissError",{title:"OK",undo:!1,callback:function(){this.image.hideProgressBar(!0)}}),a.FE.DefineIcon("imageStyle",{NAME:"magic"}),a.FE.RegisterCommand("imageStyle",{title:"Style",type:"dropdown",html:function(){var a='<ul class="fr-dropdown-list" role="presentation">',b=this.opts.imageStyles;for(var c in b)if(b.hasOwnProperty(c)){var d=b[c];"object"==typeof d&&(d=d.title),a+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="imageStyle" data-param1="'+c+'">'+this.language.translate(d)+"</a></li>"}return a+="</ul>"},callback:function(a,b){this.image.applyStyle(b)},refreshOnShow:function(b,c){var d=this.image.getEl();d&&c.find(".fr-command").each(function(){var b=a(this).data("param1"),c=d.hasClass(b);a(this).toggleClass("fr-active",c).attr("aria-selected",c)})}}),a.FE.DefineIcon("imageAlt",{NAME:"info"}),a.FE.RegisterCommand("imageAlt",{undo:!1,focus:!1,popup:!0,title:"Alternate Text",callback:function(){this.image.showAltPopup()}}),a.FE.RegisterCommand("imageSetAlt",{undo:!0,focus:!1,title:"Update",refreshAfterCallback:!1,callback:function(){this.image.setAlt()}}),a.FE.DefineIcon("imageSize",{NAME:"arrows-alt"}),a.FE.RegisterCommand("imageSize",{undo:!1,focus:!1,popup:!0,title:"Change Size",callback:function(){this.image.showSizePopup()}}),a.FE.RegisterCommand("imageSetSize",{undo:!0,focus:!1,title:"Update",refreshAfterCallback:!1,callback:function(){this.image.setSize()}}),a.FE.DefineIcon("imageCaption",{NAME:"commenting",FA5NAME:"comment-alt"}),a.FE.RegisterCommand("imageCaption",{undo:!0,focus:!1,title:"Image Caption",refreshAfterCallback:!0,callback:function(){this.image.toggleCaption()},refresh:function(a){this.image.get()&&a.toggleClass("fr-active",this.image.hasCaption())}})}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/image_manager.min.js b/Mobile.Search.Web/Scripts/froala-editor/js/plugins/image_manager.min.js deleted file mode 100644 index 175338b..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/image_manager.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){if(a.extend(a.FE.DEFAULTS,{imageManagerLoadURL:"https://i.froala.com/load-files",imageManagerLoadMethod:"get",imageManagerLoadParams:{},imageManagerPreloader:null,imageManagerDeleteURL:"",imageManagerDeleteMethod:"post",imageManagerDeleteParams:{},imageManagerPageSize:12,imageManagerScrollOffset:20,imageManagerToggleTags:!0}),a.FE.PLUGINS.imageManager=function(b){function c(){if(!z){var a='<div class="fr-modal-head-line"><i class="fa fa-bars fr-modal-more fr-not-available" id="fr-modal-more-'+b.sid+'" title="'+b.language.translate("Tags")+'"></i><h4 data-text="true">'+b.language.translate("Manage Images")+"</h4></div>";a+='<div class="fr-modal-tags" id="fr-modal-tags"></div>';var c;c=b.opts.imageManagerPreloader?'<img class="fr-preloader" id="fr-preloader" alt="'+b.language.translate("Loading")+'.." src="'+b.opts.imageManagerPreloader+'" style="display: none;">':'<span class="fr-preloader" id="fr-preloader" style="display: none;">'+b.language.translate("Loading")+"</span>",c+='<div class="fr-image-list" id="fr-image-list"></div>';var d=b.modals.create(K,a,c);z=d.$modal,A=d.$head,B=d.$body}z.data("current-image",b.image.get()),b.modals.show(K),C||x(),g()}function d(){b.modals.hide(K)}function e(){var b=a(window).outerWidth();return 768>b?2:1200>b?3:4}function f(){D.empty();for(var a=0;J>a;a++)D.append('<div class="fr-list-column"></div>')}function g(){C.show(),D.find(".fr-list-column").empty(),b.opts.imageManagerLoadURL?a.ajax({url:b.opts.imageManagerLoadURL,method:b.opts.imageManagerLoadMethod,data:b.opts.imageManagerLoadParams,dataType:"json",crossDomain:b.opts.requestWithCORS,xhrFields:{withCredentials:b.opts.requestWithCredentials},headers:b.opts.requestHeaders}).done(function(a,c,d){b.events.trigger("imageManager.imagesLoaded",[a]),h(a,d.response),C.hide()}).fail(function(){var a=this.xhr();s(M,a.response||a.responseText)}):s(N)}function h(a,b){try{D.find(".fr-list-column").empty(),G=0,H=0,I=0,F=a,i()}catch(c){s(O,b)}}function i(){if(H<F.length&&(D.outerHeight()<=B.outerHeight()+b.opts.imageManagerScrollOffset||B.scrollTop()+b.opts.imageManagerScrollOffset>D.outerHeight()-B.outerHeight())){G++;for(var a=b.opts.imageManagerPageSize*(G-1);a<Math.min(F.length,b.opts.imageManagerPageSize*G);a++)j(F[a])}}function j(c){var d=new Image,e=a('<div class="fr-image-container fr-empty fr-image-'+I++ +'" data-loading="'+b.language.translate("Loading")+'.." data-deleting="'+b.language.translate("Deleting")+'..">');n(!1),d.onload=function(){e.height(Math.floor(e.width()/d.width*d.height));var f=a("<img/>");if(c.thumb)f.attr("src",c.thumb);else{if(s(P,c),!c.url)return s(Q,c),!1;f.attr("src",c.url)}if(c.url&&f.attr("data-url",c.url),c.tag)if(A.find(".fr-modal-more.fr-not-available").removeClass("fr-not-available"),A.find(".fr-modal-tags").show(),c.tag.indexOf(",")>=0){for(var g=c.tag.split(","),h=0;h<g.length;h++)g[h]=g[h].trim(),0===E.find('a[title="'+g[h]+'"]').length&&E.append('<a role="button" title="'+g[h]+'">'+g[h]+"</a>");f.attr("data-tag",g.join())}else 0===E.find('a[title="'+c.tag.trim()+'"]').length&&E.append('<a role="button" title="'+c.tag.trim()+'">'+c.tag.trim()+"</a>"),f.attr("data-tag",c.tag.trim());c.name&&f.attr("alt",c.name);for(var j in c)c.hasOwnProperty(j)&&"thumb"!=j&&"url"!=j&&"tag"!=j&&f.attr("data-"+j,c[j]);e.append(f).append(a(b.icon.create("imageManagerDelete")).addClass("fr-delete-img").attr("title",b.language.translate("Delete"))).append(a(b.icon.create("imageManagerInsert")).addClass("fr-insert-img").attr("title",b.language.translate("Insert"))),E.find(".fr-selected-tag").each(function(a,b){w(f,b.text)||e.hide()}),f.on("load",function(){e.removeClass("fr-empty"),e.height("auto"),H++;var a=l(parseInt(f.parent().attr("class").match(/fr-image-(\d+)/)[1],10)+1);m(a),n(!1),H%b.opts.imageManagerPageSize===0&&i()}),b.events.trigger("imageManager.imageLoaded",[f])},d.onerror=function(){H++,e.remove();var a=l(parseInt(e.attr("class").match(/fr-image-(\d+)/)[1],10)+1);m(a),s(L,c),H%b.opts.imageManagerPageSize===0&&i()},d.src=c.thumb||c.url,k().append(e)}function k(){var b,c;return D.find(".fr-list-column").each(function(d,e){var f=a(e);0===d?(c=f.outerHeight(),b=f):f.outerHeight()<c&&(c=f.outerHeight(),b=f)}),b}function l(b){void 0===b&&(b=0);for(var c=[],d=I-1;d>=b;d--){var e=D.find(".fr-image-"+d);e.length&&(c.push(e),a('<div id="fr-image-hidden-container">').append(e),D.find(".fr-image-"+d).remove())}return c}function m(a){for(var b=a.length-1;b>=0;b--)k().append(a[b])}function n(a){if(void 0===a&&(a=!0),!z.is(":visible"))return!0;var c=e();if(c!=J){J=c;var d=l();f(),m(d)}b.modals.resize(K),a&&i()}function o(a){var b={},c=a.data();for(var d in c)c.hasOwnProperty(d)&&"url"!=d&&"tag"!=d&&(b[d]=c[d]);return b}function p(c){var d=a(c.currentTarget).siblings("img"),e=z.data("instance")||b,f=z.data("current-image");if(b.modals.hide(K),e.image.showProgressBar(),f)f.data("fr-old-src",f.attr("src")),f.trigger("click");else{e.events.focus(!0),e.selection.restore();var g=e.position.getBoundingRect(),h=g.left+g.width/2+a(b.doc).scrollLeft(),i=g.top+g.height+a(b.doc).scrollTop();e.popups.setContainer("image.insert",b.$sc),e.popups.show("image.insert",h,i)}e.image.insert(d.data("url"),!1,o(d),f)}function q(){z.find("#fr-modal-tags > a").each(function(){0===z.find('#fr-image-list [data-tag*="'+a(this).text()+'"]').length&&a(this).removeClass("fr-selected-tag").hide()}),u()}function r(c){var d=a(c.currentTarget).siblings("img"),e=b.language.translate("Are you sure? Image will be deleted.");confirm(e)&&(b.opts.imageManagerDeleteURL?b.events.trigger("imageManager.beforeDeleteImage",[d])!==!1&&(d.parent().addClass("fr-image-deleting"),a.ajax({method:b.opts.imageManagerDeleteMethod,url:b.opts.imageManagerDeleteURL,data:a.extend(a.extend({src:d.attr("src")},o(d)),b.opts.imageManagerDeleteParams),crossDomain:b.opts.requestWithCORS,xhrFields:{withCredentials:b.opts.requestWithCredentials},headers:b.opts.requestHeaders}).done(function(a){b.events.trigger("imageManager.imageDeleted",[a]);var c=l(parseInt(d.parent().attr("class").match(/fr-image-(\d+)/)[1],10)+1);d.parent().remove(),m(c),q(),n(!0)}).fail(function(a){s(R,a.response||a.responseText)})):s(S))}function s(c,d){c>=10&&20>c?C.hide():c>=20&&30>c&&a(".fr-image-deleting").removeClass("fr-image-deleting"),b.events.trigger("imageManager.error",[{code:c,message:T[c]},d])}function t(){var a=A.find(".fr-modal-head-line").outerHeight(),b=E.outerHeight();A.toggleClass("fr-show-tags"),A.hasClass("fr-show-tags")?(A.css("height",a+b),E.find("a").css("opacity",1)):(A.css("height",a),E.find("a").css("opacity",0))}function u(){var b=E.find(".fr-selected-tag");b.length>0?(D.find("img").parent().show(),b.each(function(b,c){D.find("img").each(function(b,d){var e=a(d);w(e,c.text)||e.parent().hide()})})):D.find("img").parent().show();var c=l();m(c),i()}function v(c){c.preventDefault();var d=a(c.currentTarget);d.toggleClass("fr-selected-tag"),b.opts.imageManagerToggleTags&&d.siblings("a").removeClass("fr-selected-tag"),u()}function w(a,b){for(var c=(a.attr("data-tag")||"").split(","),d=0;d<c.length;d++)if(c[d]==b)return!0;return!1}function x(){C=z.find("#fr-preloader"),D=z.find("#fr-image-list"),E=z.find("#fr-modal-tags"),J=e(),f(),A.css("height",A.find(".fr-modal-head-line").outerHeight()),b.events.$on(a(b.o_win),"resize",function(){n(F?!0:!1)}),b.helpers.isMobile()&&(b.events.bindClick(D,"div.fr-image-container",function(b){z.find(".fr-mobile-selected").removeClass("fr-mobile-selected"),a(b.currentTarget).addClass("fr-mobile-selected")}),z.on(b._mousedown,function(){z.find(".fr-mobile-selected").removeClass("fr-mobile-selected")})),b.events.bindClick(D,".fr-insert-img",p),b.events.bindClick(D,".fr-delete-img",r),z.on(b._mousedown+" "+b._mouseup,function(a){a.stopPropagation()}),z.on(b._mousedown,"*",function(){b.events.disableBlur()}),B.on("scroll",i),b.events.bindClick(z,"i#fr-modal-more-"+b.sid,t),b.events.bindClick(E,"a",v)}function y(){return b.$wp||"IMG"==b.el.tagName?void 0:!1}var z,A,B,C,D,E,F,G,H,I,J,K="image_manager",L=10,M=11,N=12,O=13,P=14,Q=15,R=21,S=22,T={};return T[L]="Image cannot be loaded from the passed link.",T[M]="Error during load images request.",T[N]="Missing imageManagerLoadURL option.",T[O]="Parsing load response failed.",T[P]="Missing image thumb.",T[Q]="Missing image URL.",T[R]="Error during delete image request.",T[S]="Missing imageManagerDeleteURL option.",{require:["image"],_init:y,show:c,hide:d}},!a.FE.PLUGINS.image)throw new Error("Image manager plugin requires image plugin.");a.FE.DEFAULTS.imageInsertButtons.push("imageManager"),a.FE.RegisterCommand("imageManager",{title:"Browse",undo:!1,focus:!1,modal:!0,callback:function(){this.imageManager.show()},plugin:"imageManager"}),a.FE.DefineIcon("imageManager",{NAME:"folder"}),a.FE.DefineIcon("imageManagerInsert",{NAME:"plus"}),a.FE.DefineIcon("imageManagerDelete",{NAME:"trash"})}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/inline_style.min.js b/Mobile.Search.Web/Scripts/froala-editor/js/plugins/inline_style.min.js deleted file mode 100644 index 9d343f3..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/inline_style.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.DEFAULTS,{inlineStyles:{"Big Red":"font-size: 20px; color: red;","Small Blue":"font-size: 14px; color: blue;"}}),a.FE.PLUGINS.inlineStyle=function(b){function c(c){""!==b.selection.text()?b.html.insert(a.FE.START_MARKER+'<span style="'+c+'">'+b.selection.text()+"</span>"+a.FE.END_MARKER):b.html.insert('<span style="'+c+'">'+a.FE.INVISIBLE_SPACE+a.FE.MARKERS+"</span>")}return{apply:c}},a.FE.RegisterCommand("inlineStyle",{type:"dropdown",html:function(){var a='<ul class="fr-dropdown-list" role="presentation">',b=this.opts.inlineStyles;for(var c in b)b.hasOwnProperty(c)&&(a+='<li role="presentation"><span style="'+b[c]+'" role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="inlineStyle" data-param1="'+b[c]+'" title="'+this.language.translate(c)+'">'+this.language.translate(c)+"</a></span></li>");return a+="</ul>"},title:"Inline Style",callback:function(a,b){this.inlineStyle.apply(b)},plugin:"inlineStyle"}),a.FE.DefineIcon("inlineStyle",{NAME:"paint-brush"})}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/line_breaker.min.js b/Mobile.Search.Web/Scripts/froala-editor/js/plugins/line_breaker.min.js deleted file mode 100644 index 8dc035e..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/line_breaker.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.DEFAULTS,{lineBreakerTags:["table","hr","form","dl","span.fr-video",".fr-embedly"],lineBreakerOffset:15,lineBreakerHorizontalOffset:10}),a.FE.PLUGINS.lineBreaker=function(b){function c(c,d){var e,f,g,h,i,j,k,l;if(null==c)h=d.parent(),i=h.offset().top,k=d.offset().top,e=k-Math.min((k-i)/2,b.opts.lineBreakerOffset),g=h.outerWidth(),f=h.offset().left;else if(null==d)h=c.parent(),j=h.offset().top+h.outerHeight(),l=c.offset().top+c.outerHeight(),l>j&&(h=a(h).parent(),j=h.offset().top+h.outerHeight()),e=l+Math.min(Math.abs(j-l)/2,b.opts.lineBreakerOffset),g=h.outerWidth(),f=h.offset().left;else{h=c.parent();var m=c.offset().top+c.height(),n=d.offset().top;if(m>n)return!1;e=(m+n)/2,g=h.outerWidth(),f=h.offset().left}b.opts.iframe&&(f+=b.$iframe.offset().left-b.helpers.scrollLeft(),e+=b.$iframe.offset().top-b.helpers.scrollTop()),b.$box.append(r),r.css("top",e-b.win.pageYOffset),r.css("left",f-b.win.pageXOffset),r.css("width",g),r.data("tag1",c),r.data("tag2",d),r.addClass("fr-visible").data("instance",b)}function d(a,d){var f,g,h=a.offset().top,i=a.offset().top+a.outerHeight();if(Math.abs(i-d)<=b.opts.lineBreakerOffset||Math.abs(d-h)<=b.opts.lineBreakerOffset)if(Math.abs(i-d)<Math.abs(d-h)){g=a.get(0);for(var j=g.nextSibling;j&&j.nodeType==Node.TEXT_NODE&&0===j.textContent.length;)j=j.nextSibling;if(!j)return c(a,null),!0;if(f=e(j))return c(a,f),!0}else{if(g=a.get(0),!g.previousSibling)return c(null,a),!0;if(f=e(g.previousSibling))return c(f,a),!0}r.removeClass("fr-visible").removeData("instance")}function e(c){if(c){var d=a(c);if(0===b.$el.find(d).length)return null;if(c.nodeType!=Node.TEXT_NODE&&d.is(b.opts.lineBreakerTags.join(",")))return d;if(d.parents(b.opts.lineBreakerTags.join(",")).length>0)return c=d.parents(b.opts.lineBreakerTags.join(",")).get(0),0!==b.$el.find(c).length&&a(c).is(b.opts.lineBreakerTags.join(","))?a(c):null}return null}function f(a){if("undefined"!=typeof a.inFroalaWrapper)return a.inFroalaWrapper;for(var c=a;a.parentNode&&a.parentNode!==b.$wp.get(0);)a=a.parentNode;return c.inFroalaWrapper=a.parentNode==b.$wp.get(0),c.inFroalaWrapper}function g(a,c){var d=b.doc.elementFromPoint(a,c);return d&&!d.closest(".fr-line-breaker")&&!b.node.isElement(d)&&d!=b.$wp.get(0)&&f(d)?d:null}function h(a,c,d){for(var e=d,f=null;e<=b.opts.lineBreakerOffset&&!f;)f=g(a,c-e),f||(f=g(a,c+e)),e+=d;return f}function i(a,c,d){for(var e=null,f=100;!e&&a>b.$box.offset().left&&a<b.$box.offset().left+b.$box.outerWidth()&&f>0;)e=g(a,c),e||(e=h(a,c,5)),"left"==d?a-=b.opts.lineBreakerHorizontalOffset:a+=b.opts.lineBreakerHorizontalOffset,f-=b.opts.lineBreakerHorizontalOffset;return e}function j(a){t=null;var c=null,f=null,g=b.doc.elementFromPoint(a.pageX-b.win.pageXOffset,a.pageY-b.win.pageYOffset);g&&("HTML"==g.tagName||"BODY"==g.tagName||b.node.isElement(g)||(g.getAttribute("class")||"").indexOf("fr-line-breaker")>=0)?(f=h(a.pageX-b.win.pageXOffset,a.pageY-b.win.pageYOffset,1),f||(f=i(a.pageX-b.win.pageXOffset-b.opts.lineBreakerHorizontalOffset,a.pageY-b.win.pageYOffset,"left")),f||(f=i(a.pageX-b.win.pageXOffset+b.opts.lineBreakerHorizontalOffset,a.pageY-b.win.pageYOffset,"right")),c=e(f)):c=e(g),c?d(c,a.pageY):b.core.sameInstance(r)&&r.removeClass("fr-visible").removeData("instance")}function k(a){return r.hasClass("fr-visible")&&!b.core.sameInstance(r)?!1:b.popups.areVisible()||b.el.querySelector(".fr-selected-cell")?(r.removeClass("fr-visible"),!0):void(s!==!1||b.edit.isDisabled()||(t&&clearTimeout(t),t=setTimeout(j,30,a)))}function l(){t&&clearTimeout(t),r.hasClass("fr-visible")&&r.removeClass("fr-visible").removeData("instance")}function m(){s=!0,l()}function n(){s=!1}function o(c){c.preventDefault();var d=r.data("instance")||b;r.removeClass("fr-visible").removeData("instance");var e=r.data("tag1"),f=r.data("tag2"),g=b.html.defaultTag();null==e?g&&"TD"!=f.parent().get(0).tagName&&0===f.parents(g).length?f.before("<"+g+">"+a.FE.MARKERS+"<br></"+g+">"):f.before(a.FE.MARKERS+"<br>"):g&&"TD"!=e.parent().get(0).tagName&&0===e.parents(g).length?e.after("<"+g+">"+a.FE.MARKERS+"<br></"+g+">"):e.after(a.FE.MARKERS+"<br>"),d.selection.restore()}function p(){b.shared.$line_breaker||(b.shared.$line_breaker=a('<div class="fr-line-breaker"><a class="fr-floating-btn" role="button" tabIndex="-1" title="'+b.language.translate("Break")+'"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><rect x="21" y="11" width="2" height="8"/><rect x="14" y="17" width="7" height="2"/><path d="M14.000,14.000 L14.000,22.013 L9.000,18.031 L14.000,14.000 Z"/></svg></a></div>')),r=b.shared.$line_breaker,b.events.on("shared.destroy",function(){r.html("").removeData().remove(),r=null},!0),b.events.on("destroy",function(){r.removeData("instance").removeClass("fr-visible").appendTo("body:first"),clearTimeout(t)},!0),b.events.$on(r,"mousemove",function(a){a.stopPropagation()},!0),b.events.bindClick(r,"a",o)}function q(){return b.$wp?(p(),s=!1,b.events.$on(b.$win,"mousemove",k),b.events.$on(a(b.win),"scroll",l),b.events.on("popups.show.table.edit",l),b.events.on("commands.after",l),b.events.$on(a(b.win),"mousedown",m),void b.events.$on(a(b.win),"mouseup",n)):!1}var r,s,t;return{_init:q}}}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/link.min.js b/Mobile.Search.Web/Scripts/froala-editor/js/plugins/link.min.js deleted file mode 100644 index 81c905e..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/link.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.POPUP_TEMPLATES,{"link.edit":"[_BUTTONS_]","link.insert":"[_BUTTONS_][_INPUT_LAYER_]"}),a.extend(a.FE.DEFAULTS,{linkEditButtons:["linkOpen","linkStyle","linkEdit","linkRemove"],linkInsertButtons:["linkBack","|","linkList"],linkAttributes:{},linkAutoPrefix:"http://",linkStyles:{"fr-green":"Green","fr-strong":"Thick"},linkMultipleStyles:!0,linkConvertEmailAddress:!0,linkAlwaysBlank:!1,linkAlwaysNoFollow:!1,linkNoOpener:!0,linkNoReferrer:!0,linkList:[{text:"Froala",href:"https://froala.com",target:"_blank"},{text:"Google",href:"https://google.com",target:"_blank"},{displayText:"Facebook",href:"https://facebook.com"}],linkText:!0}),a.FE.PLUGINS.link=function(b){function c(){var c=b.image?b.image.get():null;if(!c&&b.$wp){var d=b.selection.ranges(0).commonAncestorContainer;try{d&&(d.contains&&d.contains(b.el)||!b.el.contains(d)||b.el==d)&&(d=null)}catch(e){d=null}if(d&&"A"===d.tagName)return d;var f=b.selection.element(),g=b.selection.endElement();"A"==f.tagName||b.node.isElement(f)||(f=a(f).parentsUntil(b.$el,"a:first").get(0)),"A"==g.tagName||b.node.isElement(g)||(g=a(g).parentsUntil(b.$el,"a:first").get(0));try{g&&(g.contains&&g.contains(b.el)||!b.el.contains(g)||b.el==g)&&(g=null)}catch(e){g=null}try{f&&(f.contains&&f.contains(b.el)||!b.el.contains(f)||b.el==f)&&(f=null)}catch(e){f=null}return g&&g==f&&"A"==g.tagName?(b.browser.msie||b.helpers.isMobile())&&(b.selection.info(f).atEnd||b.selection.info(f).atStart)?null:f:null}return"A"==b.el.tagName?b.el:c&&c.get(0).parentNode&&"A"==c.get(0).parentNode.tagName?c.get(0).parentNode:void 0}function d(){var a=b.image?b.image.get():null,c=[];if(a)"A"==a.get(0).parentNode.tagName&&c.push(a.get(0).parentNode);else{var d,e,f,g;if(b.win.getSelection){var h=b.win.getSelection();if(h.getRangeAt&&h.rangeCount){g=b.doc.createRange();for(var i=0;i<h.rangeCount;++i)if(d=h.getRangeAt(i),e=d.commonAncestorContainer,e&&1!=e.nodeType&&(e=e.parentNode),e&&"a"==e.nodeName.toLowerCase())c.push(e);else{f=e.getElementsByTagName("a");for(var j=0;j<f.length;++j)g.selectNodeContents(f[j]),g.compareBoundaryPoints(d.END_TO_START,d)<1&&g.compareBoundaryPoints(d.START_TO_END,d)>-1&&c.push(f[j])}}}else if(b.doc.selection&&"Control"!=b.doc.selection.type)if(d=b.doc.selection.createRange(),e=d.parentElement(),"a"==e.nodeName.toLowerCase())c.push(e);else{f=e.getElementsByTagName("a"),g=b.doc.body.createTextRange();for(var k=0;k<f.length;++k)g.moveToElementText(f[k]),g.compareEndPoints("StartToEnd",d)>-1&&g.compareEndPoints("EndToStart",d)<1&&c.push(f[k])}}return c}function e(d){if(b.core.hasFocus()){if(g(),d&&"keyup"===d.type&&(d.altKey||d.which==a.FE.KEYCODE.ALT))return!0;setTimeout(function(){if(!d||d&&(1==d.which||"mouseup"!=d.type)){var e=c(),g=b.image?b.image.get():null;if(e&&!g){if(b.image){var h=b.node.contents(e);if(1==h.length&&"IMG"==h[0].tagName){var i=b.selection.ranges(0);return 0===i.startOffset&&0===i.endOffset?a(e).before(a.FE.MARKERS):a(e).after(a.FE.MARKERS),b.selection.restore(),!1}}d&&d.stopPropagation(),f(e)}}},b.helpers.isIOS()?100:0)}}function f(c){var d=b.popups.get("link.edit");d||(d=h());var e=a(c);b.popups.isVisible("link.edit")||b.popups.refresh("link.edit"),b.popups.setContainer("link.edit",b.$sc);var f=e.offset().left+a(c).outerWidth()/2,g=e.offset().top+e.outerHeight();b.popups.show("link.edit",f,g,e.outerHeight())}function g(){b.popups.hide("link.edit")}function h(){var a="";b.opts.linkEditButtons.length>=1&&("A"==b.el.tagName&&b.opts.linkEditButtons.indexOf("linkRemove")>=0&&b.opts.linkEditButtons.splice(b.opts.linkEditButtons.indexOf("linkRemove"),1),a='<div class="fr-buttons">'+b.button.buildList(b.opts.linkEditButtons)+"</div>");var d={buttons:a},e=b.popups.create("link.edit",d);return b.$wp&&b.events.$on(b.$wp,"scroll.link-edit",function(){c()&&b.popups.isVisible("link.edit")&&f(c())}),e}function i(){}function j(){var d=b.popups.get("link.insert"),e=c();if(e){var f,g,h=a(e),i=d.find('input.fr-link-attr[type="text"]'),j=d.find('input.fr-link-attr[type="checkbox"]');for(f=0;f<i.length;f++)g=a(i[f]),g.val(h.attr(g.attr("name")||""));for(j.prop("checked",!1),f=0;f<j.length;f++)g=a(j[f]),h.attr(g.attr("name"))==g.data("checked")&&g.prop("checked",!0);d.find('input.fr-link-attr[type="text"][name="text"]').val(h.text())}else d.find('input.fr-link-attr[type="text"]').val(""),d.find('input.fr-link-attr[type="checkbox"]').prop("checked",!1),d.find('input.fr-link-attr[type="text"][name="text"]').val(b.selection.text());d.find("input.fr-link-attr").trigger("change");var k=b.image?b.image.get():null;k?d.find('.fr-link-attr[name="text"]').parent().hide():d.find('.fr-link-attr[name="text"]').parent().show()}function k(){var a=b.$tb.find('.fr-command[data-cmd="insertLink"]'),c=b.popups.get("link.insert");if(c||(c=l()),!c.hasClass("fr-active"))if(b.popups.refresh("link.insert"),b.popups.setContainer("link.insert",b.$tb||b.$sc),a.is(":visible")){var d=a.offset().left+a.outerWidth()/2,e=a.offset().top+(b.opts.toolbarBottom?10:a.outerHeight()-10);b.popups.show("link.insert",d,e,a.outerHeight())}else b.position.forSelection(c),b.popups.show("link.insert")}function l(a){if(a)return b.popups.onRefresh("link.insert",j),b.popups.onHide("link.insert",i),!0;var d="";b.opts.linkInsertButtons.length>=1&&(d='<div class="fr-buttons">'+b.button.buildList(b.opts.linkInsertButtons)+"</div>");var e='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="10" height="10" viewBox="0 0 32 32"><path d="M27 4l-15 15-7-7-5 5 12 12 20-20z" fill="#FFF"></path></svg>',f="",g=0;f='<div class="fr-link-insert-layer fr-layer fr-active" id="fr-link-insert-layer-'+b.id+'">',f+='<div class="fr-input-line"><input id="fr-link-insert-layer-url-'+b.id+'" name="href" type="text" class="fr-link-attr" placeholder="'+b.language.translate("URL")+'" tabIndex="'+ ++g+'"></div>',b.opts.linkText&&(f+='<div class="fr-input-line"><input id="fr-link-insert-layer-text-'+b.id+'" name="text" type="text" class="fr-link-attr" placeholder="'+b.language.translate("Text")+'" tabIndex="'+ ++g+'"></div>');for(var h in b.opts.linkAttributes)if(b.opts.linkAttributes.hasOwnProperty(h)){var k=b.opts.linkAttributes[h];f+='<div class="fr-input-line"><input name="'+h+'" type="text" class="fr-link-attr" placeholder="'+b.language.translate(k)+'" tabIndex="'+ ++g+'"></div>'}b.opts.linkAlwaysBlank||(f+='<div class="fr-checkbox-line"><span class="fr-checkbox"><input name="target" class="fr-link-attr" data-checked="_blank" type="checkbox" id="fr-link-target-'+b.id+'" tabIndex="'+ ++g+'"><span>'+e+'</span></span><label for="fr-link-target-'+b.id+'">'+b.language.translate("Open in new tab")+"</label></div>"),f+='<div class="fr-action-buttons"><button class="fr-command fr-submit" role="button" data-cmd="linkInsert" href="#" tabIndex="'+ ++g+'" type="button">'+b.language.translate("Insert")+"</button></div></div>";var l={buttons:d,input_layer:f},m=b.popups.create("link.insert",l);return b.$wp&&b.events.$on(b.$wp,"scroll.link-insert",function(){var a=b.image?b.image.get():null;a&&b.popups.isVisible("link.insert")&&u(),c&&b.popups.isVisible("link.insert")&&s()}),m}function m(){var d=c(),e=b.image?b.image.get():null;return b.events.trigger("link.beforeRemove",[d])===!1?!1:void(e&&d?(e.unwrap(),b.image.edit(e)):d&&(b.selection.save(),a(d).replaceWith(a(d).html()),b.selection.restore(),g()))}function n(){b.events.on("keyup",function(b){b.which!=a.FE.KEYCODE.ESC&&e(b)}),b.events.on("window.mouseup",e),b.events.$on(b.$el,"click","a",function(a){b.edit.isDisabled()&&a.preventDefault()}),b.helpers.isMobile()&&b.events.$on(b.$doc,"selectionchange",e),l(!0),"A"==b.el.tagName&&b.$el.addClass("fr-view"),b.events.on("toolbar.esc",function(){return b.popups.isVisible("link.edit")?(b.events.disableBlur(),b.events.focus(),!1):void 0},!0)}function o(c){var d,e,f=b.opts.linkList[c],g=b.popups.get("link.insert"),h=g.find('input.fr-link-attr[type="text"]'),i=g.find('input.fr-link-attr[type="checkbox"]');for(e=0;e<h.length;e++)d=a(h[e]),f[d.attr("name")]?d.val(f[d.attr("name")]):"text"!=d.attr("name")&&d.val("");for(e=0;e<i.length;e++)d=a(i[e]),d.prop("checked",d.data("checked")==f[d.attr("name")]);b.accessibility.focusPopup(g)}function p(){var c,d,e=b.popups.get("link.insert"),f=e.find('input.fr-link-attr[type="text"]'),g=e.find('input.fr-link-attr[type="checkbox"]'),h=(f.filter('[name="href"]').val()||"").trim(),i=f.filter('[name="text"]').val(),j={};for(d=0;d<f.length;d++)c=a(f[d]),["href","text"].indexOf(c.attr("name"))<0&&(j[c.attr("name")]=c.val());for(d=0;d<g.length;d++)c=a(g[d]),c.is(":checked")?j[c.attr("name")]=c.data("checked"):j[c.attr("name")]=c.data("unchecked")||null;var k=b.helpers.scrollTop();r(h,i,j),a(b.o_win).scrollTop(k)}function q(){if(!b.selection.isCollapsed()){b.selection.save();for(var c=b.$el.find(".fr-marker").addClass("fr-unprocessed").toArray();c.length;){var d=a(c.pop());d.removeClass("fr-unprocessed");var e=b.node.deepestParent(d.get(0));if(e){var f=d.get(0),g="",h="";do f=f.parentNode,b.node.isBlock(f)||(g+=b.node.closeTagString(f),h=b.node.openTagString(f)+h);while(f!=e);var i=b.node.openTagString(d.get(0))+d.html()+b.node.closeTagString(d.get(0));d.replaceWith('<span id="fr-break"></span>');var j=e.outerHTML;j=j.replace(/<span id="fr-break"><\/span>/g,g+i+h),e.outerHTML=j}c=b.$el.find(".fr-marker.fr-unprocessed").toArray()}b.html.cleanEmptyTags(),b.selection.restore()}}function r(f,g,h){if("undefined"==typeof h&&(h={}),b.events.trigger("link.beforeInsert",[f,g,h])===!1)return!1;var i=b.image?b.image.get():null;i||"A"==b.el.tagName?"A"==b.el.tagName&&b.$el.focus():(b.selection.restore(),b.popups.hide("link.insert"));var j=f;b.opts.linkConvertEmailAddress&&b.helpers.isEmail(f)&&!/^mailto:.*/i.test(f)&&(f="mailto:"+f);var k=/^([A-Za-z]:(\\){1,2}|[A-Za-z]:((\\){1,2}[^\\]+)+)(\\)?$/i;if(""===b.opts.linkAutoPrefix||new RegExp("^("+a.FE.LinkProtocols.join("|")+"):.","i").test(f)||/^data:image.*/i.test(f)||/^(https?:|ftps?:|file:|)\/\//i.test(f)||k.test(f)||["/","{","[","#","(","."].indexOf((f||"")[0])<0&&(f=b.opts.linkAutoPrefix+b.helpers.sanitizeURL(f)),f=b.helpers.sanitizeURL(f),b.opts.linkAlwaysBlank&&(h.target="_blank"),b.opts.linkAlwaysNoFollow&&(h.rel="nofollow"),"_blank"==h.target?(b.opts.linkNoOpener&&(h.rel?h.rel+=" noopener":h.rel="noopener"),b.opts.linkNoReferrer&&(h.rel?h.rel+=" noreferrer":h.rel="noreferrer")):null==h.target&&(h.rel?h.rel=h.rel.replace(/noopener/,"").replace(/noreferrer/,""):h.rel=null),g=g||"",f===b.opts.linkAutoPrefix){var l=b.popups.get("link.insert");return l.find('input[name="href"]').addClass("fr-error"),b.events.trigger("link.bad",[j]),!1}var m,n=c();if(n){if(m=a(n),m.attr("href",f),g.length>0&&m.text()!=g&&!i){for(var o=m.get(0);1===o.childNodes.length&&o.childNodes[0].nodeType==Node.ELEMENT_NODE;)o=o.childNodes[0];a(o).text(g)}i||m.prepend(a.FE.START_MARKER).append(a.FE.END_MARKER),m.attr(h),i||b.selection.restore()}else{i?i.wrap('<a href="'+f+'"></a>'):(b.format.remove("a"),b.selection.isCollapsed()?(g=0===g.length?j:g,b.html.insert('<a href="'+f+'">'+a.FE.START_MARKER+g.replace(/&/g,"&")+a.FE.END_MARKER+"</a>"),b.selection.restore()):g.length>0&&g!=b.selection.text().replace(/\n/g,"")?(b.selection.remove(),b.html.insert('<a href="'+f+'">'+a.FE.START_MARKER+g.replace(/&/g,"&")+a.FE.END_MARKER+"</a>"),b.selection.restore()):(q(),b.format.apply("a",{href:f})));for(var p=d(),r=0;r<p.length;r++)m=a(p[r]),m.attr(h),m.removeAttr("_moz_dirty");1==p.length&&b.$wp&&!i&&(a(p[0]).prepend(a.FE.START_MARKER).append(a.FE.END_MARKER),b.selection.restore())}if(i){var s=b.popups.get("link.insert");s&&s.find("input:focus").blur(),b.image.edit(i)}else e()}function s(){g();var d=c();if(d){var e=b.popups.get("link.insert");e||(e=l()),b.popups.isVisible("link.insert")||(b.popups.refresh("link.insert"),b.selection.save(),b.helpers.isMobile()&&(b.events.disableBlur(),b.$el.blur(),b.events.enableBlur())),b.popups.setContainer("link.insert",b.$sc);var f=(b.image?b.image.get():null)||a(d),h=f.offset().left+f.outerWidth()/2,i=f.offset().top+f.outerHeight();b.popups.show("link.insert",h,i,f.outerHeight())}}function t(){var a=b.image?b.image.get():null;if(a)b.image.back();else{b.events.disableBlur(),b.selection.restore(),b.events.enableBlur();var d=c();d&&b.$wp?(b.selection.restore(),g(),e()):"A"==b.el.tagName?(b.$el.focus(),e()):(b.popups.hide("link.insert"),b.toolbar.showInline())}}function u(){var a=b.image?b.image.getEl():null;if(a){var c=b.popups.get("link.insert");b.image.hasCaption()&&(a=a.find(".fr-img-wrap")),c||(c=l()),j(!0),b.popups.setContainer("link.insert",b.$sc);var d=a.offset().left+a.outerWidth()/2,e=a.offset().top+a.outerHeight();b.popups.show("link.insert",d,e,a.outerHeight())}}function v(d,f,g){"undefined"==typeof g&&(g=b.opts.linkMultipleStyles),"undefined"==typeof f&&(f=b.opts.linkStyles);var h=c();if(!h)return!1;if(!g){var i=Object.keys(f);i.splice(i.indexOf(d),1),a(h).removeClass(i.join(" "))}a(h).toggleClass(d),e()}return{_init:n,remove:m,showInsertPopup:k,usePredefined:o,insertCallback:p,insert:r,update:s,get:c,allSelected:d,back:t,imageLink:u,applyStyle:v}},a.FE.DefineIcon("insertLink",{NAME:"link"}),a.FE.RegisterShortcut(a.FE.KEYCODE.K,"insertLink",null,"K"),a.FE.RegisterCommand("insertLink",{title:"Insert Link",undo:!1,focus:!0,refreshOnCallback:!1,popup:!0,callback:function(){this.popups.isVisible("link.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("link.insert")):this.link.showInsertPopup()},plugin:"link"}),a.FE.DefineIcon("linkOpen",{NAME:"external-link",FA5NAME:"external-link-alt"}),a.FE.RegisterCommand("linkOpen",{title:"Open Link",undo:!1,refresh:function(a){var b=this.link.get();b?a.removeClass("fr-hidden"):a.addClass("fr-hidden")},callback:function(){var a=this.link.get();a&&(this.o_win.open(a.href,"_blank","noopener"),this.popups.hide("link.edit"))},plugin:"link"}),a.FE.DefineIcon("linkEdit",{NAME:"edit"}),a.FE.RegisterCommand("linkEdit",{title:"Edit Link",undo:!1,refreshAfterCallback:!1,popup:!0,callback:function(){this.link.update()},refresh:function(a){var b=this.link.get();b?a.removeClass("fr-hidden"):a.addClass("fr-hidden")},plugin:"link"}),a.FE.DefineIcon("linkRemove",{NAME:"unlink"}),a.FE.RegisterCommand("linkRemove",{title:"Unlink",callback:function(){this.link.remove()},refresh:function(a){var b=this.link.get();b?a.removeClass("fr-hidden"):a.addClass("fr-hidden")},plugin:"link"}),a.FE.DefineIcon("linkBack",{NAME:"arrow-left"}),a.FE.RegisterCommand("linkBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.link.back()},refresh:function(a){var b=this.link.get()&&this.doc.hasFocus(),c=this.image?this.image.get():null;c||b||this.opts.toolbarInline?(a.removeClass("fr-hidden"),a.next(".fr-separator").removeClass("fr-hidden")):(a.addClass("fr-hidden"),a.next(".fr-separator").addClass("fr-hidden"))},plugin:"link"}),a.FE.DefineIcon("linkList",{NAME:"search"}),a.FE.RegisterCommand("linkList",{title:"Choose Link",type:"dropdown",focus:!1,undo:!1,refreshAfterCallback:!1,html:function(){for(var a='<ul class="fr-dropdown-list" role="presentation">',b=this.opts.linkList,c=0;c<b.length;c++)a+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="linkList" data-param1="'+c+'">'+(b[c].displayText||b[c].text)+"</a></li>";return a+="</ul>"},callback:function(a,b){this.link.usePredefined(b)},plugin:"link"}),a.FE.RegisterCommand("linkInsert",{focus:!1,refreshAfterCallback:!1,callback:function(){this.link.insertCallback()},refresh:function(a){var b=this.link.get();b?a.text(this.language.translate("Update")):a.text(this.language.translate("Insert"))},plugin:"link"}),a.FE.DefineIcon("imageLink",{NAME:"link"}),a.FE.RegisterCommand("imageLink",{title:"Insert Link",undo:!1,focus:!1,popup:!0,callback:function(){this.link.imageLink()},refresh:function(a){var b,c=this.link.get();c?(b=a.prev(),b.hasClass("fr-separator")&&b.removeClass("fr-hidden"),a.addClass("fr-hidden")):(b=a.prev(),b.hasClass("fr-separator")&&b.addClass("fr-hidden"),a.removeClass("fr-hidden"))},plugin:"link"}),a.FE.DefineIcon("linkStyle",{NAME:"magic"}),a.FE.RegisterCommand("linkStyle",{title:"Style",type:"dropdown",html:function(){var a='<ul class="fr-dropdown-list" role="presentation">',b=this.opts.linkStyles;for(var c in b)b.hasOwnProperty(c)&&(a+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="linkStyle" data-param1="'+c+'">'+this.language.translate(b[c])+"</a></li>");return a+="</ul>"},callback:function(a,b){this.link.applyStyle(b)},refreshOnShow:function(b,c){var d=this.link.get();if(d){var e=a(d);c.find(".fr-command").each(function(){var b=a(this).data("param1"),c=e.hasClass(b);a(this).toggleClass("fr-active",c).attr("aria-selected",c)})}},refresh:function(a){var b=this.link.get();b?a.removeClass("fr-hidden"):a.addClass("fr-hidden")},plugin:"link"})}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/lists.min.js b/Mobile.Search.Web/Scripts/froala-editor/js/plugins/lists.min.js deleted file mode 100644 index 4cf5514..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/lists.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.FE.PLUGINS.lists=function(b){function c(a){return'<span class="fr-open-'+a.toLowerCase()+'"></span>'}function d(a){return'<span class="fr-close-'+a.toLowerCase()+'"></span>'}function e(c,d){for(var e=[],f=0;f<c.length;f++){var g=c[f].parentNode;"LI"==c[f].tagName&&g.tagName!=d&&e.indexOf(g)<0&&e.push(g)}for(f=e.length-1;f>=0;f--){var h=a(e[f]);h.replaceWith("<"+d.toLowerCase()+" "+b.node.attributes(h.get(0))+">"+h.html()+"</"+d.toLowerCase()+">")}}function f(c,d){e(c,d);var f,g=b.html.defaultTag(),h=null;c.length&&(f="rtl"==b.opts.direction||"rtl"==a(c[0]).css("direction")?"margin-right":"margin-left");for(var i=0;i<c.length;i++)if("LI"!=c[i].tagName){var j=b.helpers.getPX(a(c[i]).css(f))||0;c[i].style.marginLeft=null,null===h&&(h=j);var k=h>0?"<"+d+' style="'+f+": "+h+'px;">':"<"+d+">",l="</"+d+">";for(j-=h;j/b.opts.indentMargin>0;)k+="<"+d+">",l+=l,j-=b.opts.indentMargin;g&&c[i].tagName.toLowerCase()==g?a(c[i]).replaceWith(k+"<li"+b.node.attributes(c[i])+">"+a(c[i]).html()+"</li>"+l):a(c[i]).wrap(k+"<li></li>"+l)}b.clean.lists()}function g(e){var f,g;for(f=e.length-1;f>=0;f--)for(g=f-1;g>=0;g--)if(a(e[g]).find(e[f]).length||e[g]==e[f]){e.splice(f,1);break}var h=[];for(f=0;f<e.length;f++){var i=a(e[f]),j=e[f].parentNode,k=i.attr("class");if(i.before(d(j.tagName)),"LI"==j.parentNode.tagName)i.before(d("LI")),i.after(c("LI"));else{var l="";k&&(l+=' class="'+k+'"');var m="rtl"==b.opts.direction||"rtl"==i.css("direction")?"margin-right":"margin-left";b.helpers.getPX(a(j).css(m))&&(a(j).attr("style")||"").indexOf(m+":")>=0&&(l+=' style="'+m+":"+b.helpers.getPX(a(j).css(m))+'px;"'),b.html.defaultTag()&&0===i.find(b.html.blockTagsQuery()).length&&i.wrapInner("<"+b.html.defaultTag()+l+"></"+b.html.defaultTag()+">"),b.node.isEmpty(i.get(0),!0)||0!==i.find(b.html.blockTagsQuery()).length||i.append("<br>"),i.append(c("LI")),i.prepend(d("LI"))}i.after(c(j.tagName)),"LI"==j.parentNode.tagName&&(j=j.parentNode.parentNode),h.indexOf(j)<0&&h.push(j)}for(f=0;f<h.length;f++){var n=a(h[f]),o=n.html();o=o.replace(/<span class="fr-close-([a-z]*)"><\/span>/g,"</$1>"),o=o.replace(/<span class="fr-open-([a-z]*)"><\/span>/g,"<$1>"),n.replaceWith(b.node.openTagString(n.get(0))+o+b.node.closeTagString(n.get(0)))}b.$el.find("li:empty").remove(),b.$el.find("ul:empty, ol:empty").remove(),b.clean.lists(),b.html.wrap()}function h(a,b){for(var c=!0,d=0;d<a.length;d++){if("LI"!=a[d].tagName)return!1;a[d].parentNode.tagName!=b&&(c=!1)}return c}function i(a){b.selection.save(),b.html.wrap(!0,!0,!0,!0),b.selection.restore();for(var c=b.selection.blocks(),d=0;d<c.length;d++)"LI"!=c[d].tagName&&"LI"==c[d].parentNode.tagName&&(c[d]=c[d].parentNode);b.selection.save(),h(c,a)?g(c):f(c,a),b.html.unwrap(),b.selection.restore()}function j(c,d){var e=a(b.selection.element());if(e.get(0)!=b.el){var f=e.get(0);f="LI"!=f.tagName&&f.firstElementChild&&"LI"!=f.firstElementChild.tagName?e.parents("li").get(0):"LI"==f.tagName||f.firstElementChild?f.firstElementChild&&"LI"==f.firstElementChild.tagName?e.get(0).firstChild:e.get(0):e.parents("li").get(0),f&&f.parentNode.tagName==d&&b.el.contains(f.parentNode)&&c.addClass("fr-active")}}function k(c){b.selection.save();for(var d=0;d<c.length;d++){var e=c[d].previousSibling;if(e){var f=a(c[d]).find("> ul, > ol").last().get(0);if(f){for(var g=a("<li>").prependTo(a(f)),h=b.node.contents(c[d])[0];h&&!b.node.isList(h);){var i=h.nextSibling;g.append(h),h=i}a(e).append(a(f)),a(c[d]).remove()}else{var j=a(e).find("> ul, > ol").last().get(0);if(j)a(j).append(a(c[d]));else{var k=a("<"+c[d].parentNode.tagName+">");a(e).append(k),k.append(a(c[d]))}}}}b.clean.lists(),b.selection.restore()}function l(a){b.selection.save(),g(a),b.selection.restore()}function m(a){if("indent"==a||"outdent"==a){for(var c=!1,d=b.selection.blocks(),e=[],f=0;f<d.length;f++)"LI"==d[f].tagName?(c=!0,e.push(d[f])):"LI"==d[f].parentNode.tagName&&(c=!0,e.push(d[f].parentNode));c&&("indent"==a?k(e):l(e))}}function n(){b.events.on("commands.after",m),b.events.on("keydown",function(c){if(c.which==a.FE.KEYCODE.TAB){for(var d=b.selection.blocks(),e=[],f=0;f<d.length;f++)"LI"==d[f].tagName?e.push(d[f]):"LI"==d[f].parentNode.tagName&&e.push(d[f].parentNode);if(e.length>1||e.length&&(b.selection.info(e[0]).atStart||b.node.isEmpty(e[0])))return c.preventDefault(),c.stopPropagation(),c.shiftKey?l(e):k(e),!1}},!0)}return{_init:n,format:i,refresh:j}},a.FE.RegisterCommand("formatUL",{title:"Unordered List",refresh:function(a){this.lists.refresh(a,"UL")},callback:function(){this.lists.format("UL")},plugin:"lists"}),a.FE.RegisterCommand("formatOL",{title:"Ordered List",refresh:function(a){this.lists.refresh(a,"OL")},callback:function(){this.lists.format("OL")},plugin:"lists"}),a.FE.DefineIcon("formatUL",{NAME:"list-ul"}),a.FE.DefineIcon("formatOL",{NAME:"list-ol"})}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/paragraph_format.min.js b/Mobile.Search.Web/Scripts/froala-editor/js/plugins/paragraph_format.min.js deleted file mode 100644 index 36da3a5..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/paragraph_format.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.DEFAULTS,{paragraphFormat:{N:"Normal",H1:"Heading 1",H2:"Heading 2",H3:"Heading 3",H4:"Heading 4",PRE:"Code"},paragraphFormatSelection:!1,paragraphDefaultSelection:"Paragraph Format"}),a.FE.PLUGINS.paragraphFormat=function(b){function c(c,d){var e=b.html.defaultTag();if(d&&d.toLowerCase()!=e)if(c.find("ul, ol").length>0){var f=a("<"+d+">");c.prepend(f);for(var g=b.node.contents(c.get(0))[0];g&&["UL","OL"].indexOf(g.tagName)<0;){var h=g.nextSibling;f.append(g),g=h}}else c.html("<"+d+">"+c.html()+"</"+d+">")}function d(c,d){var e=b.html.defaultTag();d&&d.toLowerCase()!=e||(d='div class="fr-temp-div"'),c.replaceWith(a("<"+d+">").html(c.html()))}function e(c,d){var e=b.html.defaultTag();d||(d='div class="fr-temp-div"'+(b.node.isEmpty(c.get(0),!0)?' data-empty="true"':"")),d.toLowerCase()==e?(b.node.isEmpty(c.get(0),!0)||c.append("<br/>"),c.replaceWith(c.html())):c.replaceWith(a("<"+d+">").html(c.html()))}function f(c,d){d||(d='div class="fr-temp-div"'+(b.node.isEmpty(c.get(0),!0)?' data-empty="true"':"")),c.replaceWith(a("<"+d+" "+b.node.attributes(c.get(0))+">").html(c.html()).removeAttr("data-empty"))}function g(g){"N"==g&&(g=b.html.defaultTag()),b.selection.save(),b.html.wrap(!0,!0,!b.opts.paragraphFormat.BLOCKQUOTE,!0,!0),b.selection.restore();var h=b.selection.blocks();b.selection.save(),b.$el.find("pre").attr("skip",!0);for(var i=0;i<h.length;i++)if(h[i].tagName!=g&&!b.node.isList(h[i])){var j=a(h[i]);"LI"==h[i].tagName?c(j,g):"LI"==h[i].parentNode.tagName&&h[i]?d(j,g):["TD","TH"].indexOf(h[i].parentNode.tagName)>=0?e(j,g):f(j,g)}b.$el.find('pre:not([skip="true"]) + pre:not([skip="true"])').each(function(){a(this).prev().append("<br>"+a(this).html()),a(this).remove()}),b.$el.find("pre").removeAttr("skip"),b.html.unwrap(),b.selection.restore()}function h(a,c){var d=b.selection.blocks();if(d.length){var e=d[0],f="N",g=b.html.defaultTag();e.tagName.toLowerCase()!=g&&e!=b.el&&(f=e.tagName),c.find('.fr-command[data-param1="'+f+'"]').addClass("fr-active").attr("aria-selected",!0)}else c.find('.fr-command[data-param1="N"]').addClass("fr-active").attr("aria-selected",!0)}function i(a){if(b.opts.paragraphFormatSelection){var c=b.selection.blocks();if(c.length){var d=c[0],e="N",f=b.html.defaultTag();d.tagName.toLowerCase()!=f&&d!=b.el&&(e=d.tagName),["LI","TD","TH"].indexOf(e)>=0&&(e="N"),a.find("> span").text(b.language.translate(b.opts.paragraphFormat[e]))}else a.find("> span").text(b.language.translate(b.opts.paragraphFormat.N))}}return{apply:g,refreshOnShow:h,refresh:i}},a.FE.RegisterCommand("paragraphFormat",{type:"dropdown",displaySelection:function(a){return a.opts.paragraphFormatSelection},defaultSelection:function(a){return a.language.translate(a.opts.paragraphDefaultSelection)},displaySelectionWidth:125,html:function(){var a='<ul class="fr-dropdown-list" role="presentation">',b=this.opts.paragraphFormat;for(var c in b)if(b.hasOwnProperty(c)){var d=this.shortcuts.get("paragraphFormat."+c);d=d?'<span class="fr-shortcut">'+d+"</span>":"",a+='<li role="presentation"><'+("N"==c?this.html.defaultTag()||"DIV":c)+' style="padding: 0 !important; margin: 0 !important;" role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="paragraphFormat" data-param1="'+c+'" title="'+this.language.translate(b[c])+'">'+this.language.translate(b[c])+"</a></"+("N"==c?this.html.defaultTag()||"DIV":c)+"></li>"}return a+="</ul>"},title:"Paragraph Format",callback:function(a,b){this.paragraphFormat.apply(b)},refresh:function(a){this.paragraphFormat.refresh(a)},refreshOnShow:function(a,b){this.paragraphFormat.refreshOnShow(a,b)},plugin:"paragraphFormat"}),a.FE.DefineIcon("paragraphFormat",{NAME:"paragraph"})}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/paragraph_style.min.js b/Mobile.Search.Web/Scripts/froala-editor/js/plugins/paragraph_style.min.js deleted file mode 100644 index 8469fd2..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/paragraph_style.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.DEFAULTS,{paragraphStyles:{"fr-text-gray":"Gray","fr-text-bordered":"Bordered","fr-text-spaced":"Spaced","fr-text-uppercase":"Uppercase"},paragraphMultipleStyles:!0}),a.FE.PLUGINS.paragraphStyle=function(b){function c(c,d,e){"undefined"==typeof d&&(d=b.opts.paragraphStyles),"undefined"==typeof e&&(e=b.opts.paragraphMultipleStyles);var f="";e||(f=Object.keys(d),f.splice(f.indexOf(c),1),f=f.join(" ")),b.selection.save(),b.html.wrap(!0,!0,!0,!0),b.selection.restore();var g=b.selection.blocks();b.selection.save();for(var h=a(g[0]).hasClass(c),i=0;i<g.length;i++)a(g[i]).removeClass(f).toggleClass(c,!h),a(g[i]).hasClass("fr-temp-div")&&a(g[i]).removeClass("fr-temp-div"),""===a(g[i]).attr("class")&&a(g[i]).removeAttr("class");b.html.unwrap(),b.selection.restore()}function d(c,d){var e=b.selection.blocks();if(e.length){var f=a(e[0]);d.find(".fr-command").each(function(){var b=a(this).data("param1"),c=f.hasClass(b);a(this).toggleClass("fr-active",c).attr("aria-selected",c)})}}function e(){}return{_init:e,apply:c,refreshOnShow:d}},a.FE.RegisterCommand("paragraphStyle",{type:"dropdown",html:function(){var a='<ul class="fr-dropdown-list" role="presentation">',b=this.opts.paragraphStyles;for(var c in b)b.hasOwnProperty(c)&&(a+='<li role="presentation"><a class="fr-command '+c+'" tabIndex="-1" role="option" data-cmd="paragraphStyle" data-param1="'+c+'" title="'+this.language.translate(b[c])+'">'+this.language.translate(b[c])+"</a></li>");return a+="</ul>"},title:"Paragraph Style",callback:function(a,b){this.paragraphStyle.apply(b)},refreshOnShow:function(a,b){this.paragraphStyle.refreshOnShow(a,b)},plugin:"paragraphStyle"}),a.FE.DefineIcon("paragraphStyle",{NAME:"magic"})}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/print.min.js b/Mobile.Search.Web/Scripts/froala-editor/js/plugins/print.min.js deleted file mode 100644 index 8e93077..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/print.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.FE.PLUGINS.print=function(a){function b(){var b=a.$el.html(),c=null;a.shared.print_iframe?c=a.shared.print_iframe:(c=document.createElement("iframe"),c.name="fr-print",c.style.position="fixed",c.style.top="0",c.style.left="-9999px",c.style.height="100%",c.style.width="0",c.style.overflow="hidden",c.style["z-index"]="2147483647",c.style.tabIndex="-1",document.body.appendChild(c),c.onload=function(){setTimeout(function(){a.events.disableBlur(),window.frames["fr-print"].focus(),window.frames["fr-print"].print(),a.$win.get(0).focus(),a.events.disableBlur(),a.events.focus()},0)},a.events.on("shared.destroy",function(){c.remove()}),a.shared.print_iframe=c);var d=c.contentWindow;d.document.open(),d.document.write("<!DOCTYPE html><html><head><title>"+document.title+"</title>"),Array.prototype.forEach.call(document.querySelectorAll("style"),function(a){a=a.cloneNode(!0),d.document.write(a.outerHTML)});var e=document.querySelectorAll("link[rel=stylesheet]");Array.prototype.forEach.call(e,function(a){var b=document.createElement("link");b.rel=a.rel,b.href=a.href,b.media="print",b.type="text/css",b.media="all",d.document.write(b.outerHTML)}),d.document.write('</head><body style="text-align: '+("rtl"==a.opts.direction?"right":"left")+"; direction: "+a.opts.direction+';"><div class="fr-view">'),d.document.write(b),d.document.write("</div></body></html>"),d.document.close()}return{run:b}},a.FE.DefineIcon("print",{NAME:"print"}),a.FE.RegisterCommand("print",{title:"Print",undo:!1,focus:!1,plugin:"print",callback:function(){this.print.run()}})}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/quick_insert.min.js b/Mobile.Search.Web/Scripts/froala-editor/js/plugins/quick_insert.min.js deleted file mode 100644 index 19c9866..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/quick_insert.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.DEFAULTS,{quickInsertButtons:["image","video","embedly","table","ul","ol","hr"],quickInsertTags:["p","div","h1","h2","h3","h4","h5","h6","pre","blockquote"]}),a.FE.QUICK_INSERT_BUTTONS={},a.FE.DefineIcon("quickInsert",{PATH:'<path d="M22,16.75 L16.75,16.75 L16.75,22 L15.25,22.000 L15.25,16.75 L10,16.75 L10,15.25 L15.25,15.25 L15.25,10 L16.75,10 L16.75,15.25 L22,15.25 L22,16.75 Z"/>',template:"svg"}),a.FE.RegisterQuickInsertButton=function(b,c){a.FE.QUICK_INSERT_BUTTONS[b]=a.extend({undo:!0},c)},a.FE.RegisterQuickInsertButton("image",{icon:"insertImage",requiredPlugin:"image",title:"Insert Image",undo:!1,callback:function(){var b=this;b.shared.$qi_image_input||(b.shared.$qi_image_input=a('<input accept="image/*" name="quickInsertImage'+this.id+'" style="display: none;" type="file">'),a("body:first").append(b.shared.$qi_image_input),b.events.$on(b.shared.$qi_image_input,"change",function(){var b=a(this).data("inst");this.files&&(b.quickInsert.hide(),b.image.upload(this.files)),a(this).val("")},!0)),b.$qi_image_input=b.shared.$qi_image_input,b.helpers.isMobile()&&b.selection.save(),b.$qi_image_input.data("inst",b).trigger("click")}}),a.FE.RegisterQuickInsertButton("video",{icon:"insertVideo",requiredPlugin:"video",title:"Insert Video",undo:!1,callback:function(){var a=prompt(this.language.translate("Paste the URL of the video you want to insert."));a&&this.video.insertByURL(a)}}),a.FE.RegisterQuickInsertButton("embedly",{icon:"embedly",requiredPlugin:"embedly",title:"Embed URL",undo:!1,callback:function(){var a=prompt(this.language.translate("Paste the URL of any web content you want to insert."));a&&this.embedly.add(a)}}),a.FE.RegisterQuickInsertButton("table",{icon:"insertTable",requiredPlugin:"table",title:"Insert Table",callback:function(){this.table.insert(2,2)}}),a.FE.RegisterQuickInsertButton("ol",{icon:"formatOL",requiredPlugin:"lists",title:"Ordered List",callback:function(){this.lists.format("OL")}}),a.FE.RegisterQuickInsertButton("ul",{icon:"formatUL",requiredPlugin:"lists",title:"Unordered List",callback:function(){this.lists.format("UL")}}),a.FE.RegisterQuickInsertButton("hr",{icon:"insertHR",title:"Insert Horizontal Line",callback:function(){this.commands.insertHR()}}),a.FE.PLUGINS.quickInsert=function(b){function c(c){var d,e,f;d=c.offset().top-b.$box.offset().top,e=0-k.outerWidth(),b.opts.enter!=a.FE.ENTER_BR?f=(k.outerHeight()-c.outerHeight())/2:(a("<span>"+a.FE.INVISIBLE_SPACE+"</span>").insertAfter(c),f=(k.outerHeight()-c.next().outerHeight())/2,c.next().remove()),b.opts.iframe&&(d+=b.$iframe.offset().top-b.helpers.scrollTop()),k.hasClass("fr-on")&&d>=0&&l.css("top",d-f),d>=0&&d-f<=b.$box.outerHeight()-c.outerHeight()?(k.hasClass("fr-hidden")&&(k.hasClass("fr-on")&&g(),k.removeClass("fr-hidden")),k.css("top",d-f)):k.hasClass("fr-visible")&&(k.addClass("fr-hidden"),h()),k.css("left",e)}function d(a){k||i(),k.hasClass("fr-on")&&h(),b.$box.append(k),c(a),k.data("tag",a),k.addClass("fr-visible")}function e(){if(b.core.hasFocus()){var c=b.selection.element();if(b.opts.enter==a.FE.ENTER_BR||b.node.isBlock(c)||(c=b.node.blockParent(c)),b.opts.enter==a.FE.ENTER_BR&&!b.node.isBlock(c)){var e=b.node.deepestParent(c);e&&(c=e)}var g=function(){return b.opts.enter!=a.FE.ENTER_BR&&b.node.isEmpty(c)&&b.node.isElement(c.parentNode)&&b.opts.quickInsertTags.indexOf(c.tagName.toLowerCase())>=0},i=function(){return b.opts.enter==a.FE.ENTER_BR&&("BR"==c.tagName&&(!c.previousSibling||"BR"==c.previousSibling.tagName||b.node.isBlock(c.previousSibling))||b.node.isEmpty(c)&&(!c.previousSibling||"BR"==c.previousSibling.tagName||b.node.isBlock(c.previousSibling))&&(!c.nextSibling||"BR"==c.nextSibling.tagName||b.node.isBlock(c.nextSibling)))};c&&(g()||i())?k&&k.data("tag").is(a(c))&&k.hasClass("fr-on")?h():b.selection.isCollapsed()&&d(a(c)):f()}}function f(){k&&(b.html.checkIfEmpty(),k.hasClass("fr-on")&&h(),k.removeClass("fr-visible fr-on"),k.css("left",-9999).css("top",-9999))}function g(c){if(c&&c.preventDefault(),k.hasClass("fr-on")&&!k.hasClass("fr-hidden"))h();else{if(!b.shared.$qi_helper){for(var d=b.opts.quickInsertButtons,e='<div class="fr-qi-helper">',f=0,g=0;g<d.length;g++){var i=a.FE.QUICK_INSERT_BUTTONS[d[g]];i&&(!i.requiredPlugin||a.FE.PLUGINS[i.requiredPlugin]&&b.opts.pluginsEnabled.indexOf(i.requiredPlugin)>=0)&&(e+='<a class="fr-btn fr-floating-btn" role="button" title="'+b.language.translate(i.title)+'" tabIndex="-1" data-cmd="'+d[g]+'" style="transition-delay: '+.025*f++ +'s;">'+b.icon.create(i.icon)+"</a>")}e+="</div>",b.shared.$qi_helper=a(e),b.tooltip.bind(b.shared.$qi_helper,"> a.fr-btn")}l=b.shared.$qi_helper,l.appendTo(b.$box),setTimeout(function(){l.css("top",parseFloat(k.css("top"))),l.css("left",parseFloat(k.css("left"))+k.outerWidth()),l.find("a").addClass("fr-size-1"),k.addClass("fr-on")},10)}}function h(){var a=b.$box.find(".fr-qi-helper");a.length&&(a.find("a").removeClass("fr-size-1"),a.css("left",-9999),k.hasClass("fr-hidden")||k.removeClass("fr-on"))}function i(){b.shared.$quick_insert||(b.shared.$quick_insert=a('<div class="fr-quick-insert"><a class="fr-floating-btn" role="button" tabIndex="-1" title="'+b.language.translate("Quick Insert")+'">'+b.icon.create("quickInsert")+"</a></div>")),k=b.shared.$quick_insert,b.tooltip.bind(b.$box,".fr-quick-insert > a.fr-floating-btn"),b.events.on("destroy",function(){k.removeClass("fr-on").appendTo(a("body:first")).css("left",-9999).css("top",-9999),l&&(h(),l.appendTo(a("body:first")))},!0),b.events.on("shared.destroy",function(){k.html("").removeData().remove(),k=null,l&&(l.html("").removeData().remove(),l=null)},!0),b.events.on("commands.before",f),b.events.on("commands.after",function(){b.popups.areVisible()||e()}),b.events.bindClick(b.$box,".fr-quick-insert > a",g),b.events.bindClick(b.$box,".fr-qi-helper > a.fr-btn",function(c){var d=a(c.currentTarget).data("cmd");a.FE.QUICK_INSERT_BUTTONS[d].callback.apply(b,[c.currentTarget]),a.FE.QUICK_INSERT_BUTTONS[d].undo&&b.undo.saveStep(),b.quickInsert.hide()}),b.events.$on(b.$wp,"scroll",function(){k.hasClass("fr-visible")&&c(k.data("tag"))})}function j(){return b.$wp?(b.opts.iframe&&b.$el.parent("html").find("head").append('<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css">'),b.popups.onShow("image.edit",f),b.events.on("mouseup",e),b.helpers.isMobile()&&b.events.$on(a(b.o_doc),"selectionchange",e),b.events.on("blur",f),b.events.on("keyup",e),void b.events.on("keydown",function(){setTimeout(function(){e()},0)})):!1}var k,l;return{_init:j,hide:f}}}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/quote.min.js b/Mobile.Search.Web/Scripts/froala-editor/js/plugins/quote.min.js deleted file mode 100644 index 37e7d04..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/quote.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.FE.PLUGINS.quote=function(b){function c(a){for(;a.parentNode&&a.parentNode!=b.el;)a=a.parentNode;return a}function d(){var d,e=b.selection.blocks();for(d=0;d<e.length;d++)e[d]=c(e[d]);b.selection.save();var f=a("<blockquote>");for(f.insertBefore(e[0]),d=0;d<e.length;d++)f.append(e[d]);b.html.unwrap(),b.selection.restore()}function e(){var c,d=b.selection.blocks();for(c=0;c<d.length;c++)"BLOCKQUOTE"!=d[c].tagName&&(d[c]=a(d[c]).parentsUntil(b.$el,"BLOCKQUOTE").get(0));for(b.selection.save(),c=0;c<d.length;c++)d[c]&&a(d[c]).replaceWith(d[c].innerHTML);b.html.unwrap(),b.selection.restore()}function f(a){b.selection.save(),b.html.wrap(!0,!0,!0,!0),b.selection.restore(),"increase"==a?d():"decrease"==a&&e()}return{apply:f}},a.FE.RegisterShortcut(a.FE.KEYCODE.SINGLE_QUOTE,"quote","increase","'"),a.FE.RegisterShortcut(a.FE.KEYCODE.SINGLE_QUOTE,"quote","decrease","'",!0),a.FE.RegisterCommand("quote",{title:"Quote",type:"dropdown",options:{increase:"Increase",decrease:"Decrease"},callback:function(a,b){this.quote.apply(b)},plugin:"quote"}),a.FE.DefineIcon("quote",{NAME:"quote-left"})}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/save.min.js b/Mobile.Search.Web/Scripts/froala-editor/js/plugins/save.min.js deleted file mode 100644 index 17e1998..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/save.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.DEFAULTS,{saveInterval:1e4,saveURL:null,saveParams:{},saveParam:"body",saveMethod:"POST"}),a.FE.PLUGINS.save=function(b){function c(a,c){b.events.trigger("save.error",[{code:a,message:n[a]},c])}function d(d){"undefined"==typeof d&&(d=b.html.get());var e=d,f=b.events.trigger("save.before",[d]);if(f===!1)return!1;if("string"==typeof f&&(d=f),b.opts.saveURL){var g={};for(var h in b.opts.saveParams)if(b.opts.saveParams.hasOwnProperty(h)){var i=b.opts.saveParams[h];"function"==typeof i?g[h]=i.call(this):g[h]=i}var k={};k[b.opts.saveParam]=d,a.ajax({type:b.opts.saveMethod,url:b.opts.saveURL,data:a.extend(k,g),crossDomain:b.opts.requestWithCORS,xhrFields:{withCredentials:b.opts.requestWithCredentials},headers:b.opts.requestHeaders}).done(function(a){j=e,b.events.trigger("save.after",[a])}).fail(function(a){c(m,a.response||a.responseText)})}else c(l)}function e(){clearTimeout(i),i=setTimeout(function(){var a=b.html.get();(j!=a||k)&&(j=a,k=!1,d(a))},b.opts.saveInterval)}function f(){e(),k=!1}function g(){k=!0}function h(){b.opts.saveInterval&&(j=b.html.get(),b.events.on("contentChanged",e),b.events.on("keydown destroy",function(){clearTimeout(i)}))}var i=null,j=null,k=!1,l=1,m=2,n={};return n[l]="Missing saveURL option.",n[m]="Something went wrong during save.",{_init:h,save:d,reset:f,force:g}},a.FE.DefineIcon("save",{NAME:"floppy-o"}),a.FE.RegisterCommand("save",{title:"Save",undo:!1,focus:!1,refreshAfterCallback:!1,callback:function(){this.save.save()},plugin:"save"})}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/special_characters.min.js b/Mobile.Search.Web/Scripts/froala-editor/js/plugins/special_characters.min.js deleted file mode 100644 index 7924673..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/special_characters.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.DEFAULTS,{specialCharactersSets:[{title:"Latin",list:[{"char":"¡",desc:"INVERTED EXCLAMATION MARK"},{"char":"¢",desc:"CENT SIGN"},{"char":"£",desc:"POUND SIGN"},{"char":"¤",desc:"CURRENCY SIGN"},{"char":"¥",desc:"YEN SIGN"},{"char":"¦",desc:"BROKEN BAR"},{"char":"§",desc:"SECTION SIGN"},{"char":"¨",desc:"DIAERESIS"},{"char":"©",desc:"COPYRIGHT SIGN"},{"char":"™",desc:"TRADEMARK SIGN"},{"char":"ª",desc:"FEMININE ORDINAL INDICATOR"},{"char":"«",desc:"LEFT-POINTING DOUBLE ANGLE QUOTATION MARK"},{"char":"¬",desc:"NOT SIGN"},{"char":"®",desc:"REGISTERED SIGN"},{"char":"¯",desc:"MACRON"},{"char":"°",desc:"DEGREE SIGN"},{"char":"±",desc:"PLUS-MINUS SIGN"},{"char":"²",desc:"SUPERSCRIPT TWO"},{"char":"³",desc:"SUPERSCRIPT THREE"},{"char":"´",desc:"ACUTE ACCENT"},{"char":"µ",desc:"MICRO SIGN"},{"char":"¶",desc:"PILCROW SIGN"},{"char":"·",desc:"MIDDLE DOT"},{"char":"¸",desc:"CEDILLA"},{"char":"¹",desc:"SUPERSCRIPT ONE"},{"char":"º",desc:"MASCULINE ORDINAL INDICATOR"},{"char":"»",desc:"RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK"},{"char":"¼",desc:"VULGAR FRACTION ONE QUARTER"},{"char":"½",desc:"VULGAR FRACTION ONE HALF"},{"char":"¾",desc:"VULGAR FRACTION THREE QUARTERS"},{"char":"¿",desc:"INVERTED QUESTION MARK"},{"char":"À",desc:"LATIN CAPITAL LETTER A WITH GRAVE"},{"char":"Á",desc:"LATIN CAPITAL LETTER A WITH ACUTE"},{"char":"Â",desc:"LATIN CAPITAL LETTER A WITH CIRCUMFLEX"},{"char":"Ã",desc:"LATIN CAPITAL LETTER A WITH TILDE"},{"char":"Ä",desc:"LATIN CAPITAL LETTER A WITH DIAERESIS "},{"char":"Å",desc:"LATIN CAPITAL LETTER A WITH RING ABOVE"},{"char":"Æ",desc:"LATIN CAPITAL LETTER AE"},{"char":"Ç",desc:"LATIN CAPITAL LETTER C WITH CEDILLA"},{"char":"È",desc:"LATIN CAPITAL LETTER E WITH GRAVE"},{"char":"É",desc:"LATIN CAPITAL LETTER E WITH ACUTE"},{"char":"Ê",desc:"LATIN CAPITAL LETTER E WITH CIRCUMFLEX"},{"char":"Ë",desc:"LATIN CAPITAL LETTER E WITH DIAERESIS"},{"char":"Ì",desc:"LATIN CAPITAL LETTER I WITH GRAVE"},{"char":"Í",desc:"LATIN CAPITAL LETTER I WITH ACUTE"},{"char":"Î",desc:"LATIN CAPITAL LETTER I WITH CIRCUMFLEX"},{"char":"Ï",desc:"LATIN CAPITAL LETTER I WITH DIAERESIS"},{"char":"Ð",desc:"LATIN CAPITAL LETTER ETH"},{"char":"Ñ",desc:"LATIN CAPITAL LETTER N WITH TILDE"},{"char":"Ò",desc:"LATIN CAPITAL LETTER O WITH GRAVE"},{"char":"Ó",desc:"LATIN CAPITAL LETTER O WITH ACUTE"},{"char":"Ô",desc:"LATIN CAPITAL LETTER O WITH CIRCUMFLEX"},{"char":"Õ",desc:"LATIN CAPITAL LETTER O WITH TILDE"},{"char":"Ö",desc:"LATIN CAPITAL LETTER O WITH DIAERESIS"},{"char":"×",desc:"MULTIPLICATION SIGN"},{"char":"Ø",desc:"LATIN CAPITAL LETTER O WITH STROKE"},{"char":"Ù",desc:"LATIN CAPITAL LETTER U WITH GRAVE"},{"char":"Ú",desc:"LATIN CAPITAL LETTER U WITH ACUTE"},{"char":"Û",desc:"LATIN CAPITAL LETTER U WITH CIRCUMFLEX"},{"char":"Ü",desc:"LATIN CAPITAL LETTER U WITH DIAERESIS"},{"char":"Ý",desc:"LATIN CAPITAL LETTER Y WITH ACUTE"},{"char":"Þ",desc:"LATIN CAPITAL LETTER THORN"},{"char":"ß",desc:"LATIN SMALL LETTER SHARP S"},{"char":"à",desc:"LATIN SMALL LETTER A WITH GRAVE"},{"char":"á",desc:"LATIN SMALL LETTER A WITH ACUTE "},{"char":"â",desc:"LATIN SMALL LETTER A WITH CIRCUMFLEX"},{"char":"ã",desc:"LATIN SMALL LETTER A WITH TILDE"},{"char":"ä",desc:"LATIN SMALL LETTER A WITH DIAERESIS"},{"char":"å",desc:"LATIN SMALL LETTER A WITH RING ABOVE"},{"char":"æ",desc:"LATIN SMALL LETTER AE"},{"char":"ç",desc:"LATIN SMALL LETTER C WITH CEDILLA"},{"char":"è",desc:"LATIN SMALL LETTER E WITH GRAVE"},{"char":"é",desc:"LATIN SMALL LETTER E WITH ACUTE"},{"char":"ê",desc:"LATIN SMALL LETTER E WITH CIRCUMFLEX"},{"char":"ë",desc:"LATIN SMALL LETTER E WITH DIAERESIS"},{"char":"ì",desc:"LATIN SMALL LETTER I WITH GRAVE"},{"char":"í",desc:"LATIN SMALL LETTER I WITH ACUTE"},{"char":"î",desc:"LATIN SMALL LETTER I WITH CIRCUMFLEX"},{"char":"ï",desc:"LATIN SMALL LETTER I WITH DIAERESIS"},{"char":"ð",desc:"LATIN SMALL LETTER ETH"},{"char":"ñ",desc:"LATIN SMALL LETTER N WITH TILDE"},{"char":"ò",desc:"LATIN SMALL LETTER O WITH GRAVE"},{"char":"ó",desc:"LATIN SMALL LETTER O WITH ACUTE"},{"char":"ô",desc:"LATIN SMALL LETTER O WITH CIRCUMFLEX"},{"char":"õ",desc:"LATIN SMALL LETTER O WITH TILDE"},{"char":"ö",desc:"LATIN SMALL LETTER O WITH DIAERESIS"},{"char":"÷",desc:"DIVISION SIGN"},{"char":"ø",desc:"LATIN SMALL LETTER O WITH STROKE"},{"char":"ù",desc:"LATIN SMALL LETTER U WITH GRAVE"},{"char":"ú",desc:"LATIN SMALL LETTER U WITH ACUTE"},{"char":"û",desc:"LATIN SMALL LETTER U WITH CIRCUMFLEX"},{"char":"ü",desc:"LATIN SMALL LETTER U WITH DIAERESIS"},{"char":"ý",desc:"LATIN SMALL LETTER Y WITH ACUTE"},{"char":"þ",desc:"LATIN SMALL LETTER THORN"},{"char":"ÿ",desc:"LATIN SMALL LETTER Y WITH DIAERESIS"}]},{title:"Greek",list:[{"char":"Α",desc:"GREEK CAPITAL LETTER ALPHA"},{"char":"Β",desc:"GREEK CAPITAL LETTER BETA"},{"char":"Γ",desc:"GREEK CAPITAL LETTER GAMMA"},{"char":"Δ",desc:"GREEK CAPITAL LETTER DELTA"},{"char":"Ε",desc:"GREEK CAPITAL LETTER EPSILON"},{"char":"Ζ",desc:"GREEK CAPITAL LETTER ZETA"},{"char":"Η",desc:"GREEK CAPITAL LETTER ETA"},{"char":"Θ",desc:"GREEK CAPITAL LETTER THETA"},{"char":"Ι",desc:"GREEK CAPITAL LETTER IOTA"},{"char":"Κ",desc:"GREEK CAPITAL LETTER KAPPA"},{"char":"Λ",desc:"GREEK CAPITAL LETTER LAMBDA"},{"char":"Μ",desc:"GREEK CAPITAL LETTER MU"},{"char":"Ν",desc:"GREEK CAPITAL LETTER NU"},{"char":"Ξ",desc:"GREEK CAPITAL LETTER XI"},{"char":"Ο",desc:"GREEK CAPITAL LETTER OMICRON"},{"char":"Π",desc:"GREEK CAPITAL LETTER PI"},{"char":"Ρ",desc:"GREEK CAPITAL LETTER RHO"},{"char":"Σ",desc:"GREEK CAPITAL LETTER SIGMA"},{"char":"Τ",desc:"GREEK CAPITAL LETTER TAU"},{"char":"Υ",desc:"GREEK CAPITAL LETTER UPSILON"},{"char":"Φ",desc:"GREEK CAPITAL LETTER PHI"},{"char":"Χ",desc:"GREEK CAPITAL LETTER CHI"},{"char":"Ψ",desc:"GREEK CAPITAL LETTER PSI"},{"char":"Ω",desc:"GREEK CAPITAL LETTER OMEGA"},{"char":"α",desc:"GREEK SMALL LETTER ALPHA"},{"char":"β",desc:"GREEK SMALL LETTER BETA"},{"char":"γ",desc:"GREEK SMALL LETTER GAMMA"},{"char":"δ",desc:"GREEK SMALL LETTER DELTA"},{"char":"ε",desc:"GREEK SMALL LETTER EPSILON"},{"char":"ζ",desc:"GREEK SMALL LETTER ZETA"},{"char":"η",desc:"GREEK SMALL LETTER ETA"},{"char":"θ",desc:"GREEK SMALL LETTER THETA"},{"char":"ι",desc:"GREEK SMALL LETTER IOTA"},{"char":"κ",desc:"GREEK SMALL LETTER KAPPA"},{"char":"λ",desc:"GREEK SMALL LETTER LAMBDA"},{"char":"μ",desc:"GREEK SMALL LETTER MU"},{"char":"ν",desc:"GREEK SMALL LETTER NU"},{"char":"ξ",desc:"GREEK SMALL LETTER XI"},{"char":"ο",desc:"GREEK SMALL LETTER OMICRON"},{"char":"π",desc:"GREEK SMALL LETTER PI"},{"char":"ρ",desc:"GREEK SMALL LETTER RHO"},{"char":"ς",desc:"GREEK SMALL LETTER FINAL SIGMA"},{"char":"σ",desc:"GREEK SMALL LETTER SIGMA"},{"char":"τ",desc:"GREEK SMALL LETTER TAU"},{"char":"υ",desc:"GREEK SMALL LETTER UPSILON"},{"char":"φ",desc:"GREEK SMALL LETTER PHI"},{"char":"χ",desc:"GREEK SMALL LETTER CHI"},{"char":"ψ",desc:"GREEK SMALL LETTER PSI"},{"char":"ω",desc:"GREEK SMALL LETTER OMEGA"},{"char":"ϑ",desc:"GREEK THETA SYMBOL"},{"char":"ϒ",desc:"GREEK UPSILON WITH HOOK SYMBOL"},{"char":"ϕ",desc:"GREEK PHI SYMBOL"},{"char":"ϖ",desc:"GREEK PI SYMBOL"},{"char":"Ϝ",desc:"GREEK LETTER DIGAMMA"},{"char":"ϝ",desc:"GREEK SMALL LETTER DIGAMMA"},{"char":"ϰ",desc:"GREEK KAPPA SYMBOL"},{"char":"ϱ",desc:"GREEK RHO SYMBOL"},{"char":"ϵ",desc:"GREEK LUNATE EPSILON SYMBOL"},{"char":"϶",desc:"GREEK REVERSED LUNATE EPSILON SYMBOL"}]},{title:"Cyrillic",list:[{"char":"Ѐ",desc:"CYRILLIC CAPITAL LETTER IE WITH GRAVE"},{"char":"Ё",desc:"CYRILLIC CAPITAL LETTER IO"},{"char":"Ђ",desc:"CYRILLIC CAPITAL LETTER DJE"},{"char":"Ѓ",desc:"CYRILLIC CAPITAL LETTER GJE"},{"char":"Є",desc:"CYRILLIC CAPITAL LETTER UKRAINIAN IE"},{"char":"Ѕ",desc:"CYRILLIC CAPITAL LETTER DZE"},{"char":"І",desc:"CYRILLIC CAPITAL LETTER BYELORUSSIAN-UKRAINIAN I"},{"char":"Ї",desc:"CYRILLIC CAPITAL LETTER YI"},{"char":"Ј",desc:"CYRILLIC CAPITAL LETTER JE"},{"char":"Љ",desc:"CYRILLIC CAPITAL LETTER LJE"},{"char":"Њ",desc:"CYRILLIC CAPITAL LETTER NJE"},{"char":"Ћ",desc:"CYRILLIC CAPITAL LETTER TSHE"},{"char":"Ќ",desc:"CYRILLIC CAPITAL LETTER KJE"},{"char":"Ѝ",desc:"CYRILLIC CAPITAL LETTER I WITH GRAVE"},{"char":"Ў",desc:"CYRILLIC CAPITAL LETTER SHORT U"},{"char":"Џ",desc:"CYRILLIC CAPITAL LETTER DZHE"},{"char":"А",desc:"CYRILLIC CAPITAL LETTER A"},{"char":"Б",desc:"CYRILLIC CAPITAL LETTER BE"},{"char":"В",desc:"CYRILLIC CAPITAL LETTER VE"},{"char":"Г",desc:"CYRILLIC CAPITAL LETTER GHE"},{"char":"Д",desc:"CYRILLIC CAPITAL LETTER DE"},{"char":"Е",desc:"CYRILLIC CAPITAL LETTER IE"},{"char":"Ж",desc:"CYRILLIC CAPITAL LETTER ZHE"},{"char":"З",desc:"CYRILLIC CAPITAL LETTER ZE"},{"char":"И",desc:"CYRILLIC CAPITAL LETTER I"},{"char":"Й",desc:"CYRILLIC CAPITAL LETTER SHORT I"},{"char":"К",desc:"CYRILLIC CAPITAL LETTER KA"},{"char":"Л",desc:"CYRILLIC CAPITAL LETTER EL"},{"char":"М",desc:"CYRILLIC CAPITAL LETTER EM"},{"char":"Н",desc:"CYRILLIC CAPITAL LETTER EN"},{"char":"О",desc:"CYRILLIC CAPITAL LETTER O"},{"char":"П",desc:"CYRILLIC CAPITAL LETTER PE"},{"char":"Р",desc:"CYRILLIC CAPITAL LETTER ER"},{"char":"С",desc:"CYRILLIC CAPITAL LETTER ES"},{"char":"Т",desc:"CYRILLIC CAPITAL LETTER TE"},{"char":"У",desc:"CYRILLIC CAPITAL LETTER U"},{"char":"Ф",desc:"CYRILLIC CAPITAL LETTER EF"},{"char":"Х",desc:"CYRILLIC CAPITAL LETTER HA"},{"char":"Ц",desc:"CYRILLIC CAPITAL LETTER TSE"},{"char":"Ч",desc:"CYRILLIC CAPITAL LETTER CHE"},{"char":"Ш",desc:"CYRILLIC CAPITAL LETTER SHA"},{"char":"Щ",desc:"CYRILLIC CAPITAL LETTER SHCHA"},{"char":"Ъ",desc:"CYRILLIC CAPITAL LETTER HARD SIGN"},{"char":"Ы",desc:"CYRILLIC CAPITAL LETTER YERU"},{"char":"Ь",desc:"CYRILLIC CAPITAL LETTER SOFT SIGN"},{"char":"Э",desc:"CYRILLIC CAPITAL LETTER E"},{"char":"Ю",desc:"CYRILLIC CAPITAL LETTER YU"},{"char":"Я",desc:"CYRILLIC CAPITAL LETTER YA"},{"char":"а",desc:"CYRILLIC SMALL LETTER A"},{"char":"б",desc:"CYRILLIC SMALL LETTER BE"},{"char":"в",desc:"CYRILLIC SMALL LETTER VE"},{"char":"г",desc:"CYRILLIC SMALL LETTER GHE"},{"char":"д",desc:"CYRILLIC SMALL LETTER DE"},{"char":"е",desc:"CYRILLIC SMALL LETTER IE"},{"char":"ж",desc:"CYRILLIC SMALL LETTER ZHE"},{"char":"з",desc:"CYRILLIC SMALL LETTER ZE"},{"char":"и",desc:"CYRILLIC SMALL LETTER I"},{"char":"й",desc:"CYRILLIC SMALL LETTER SHORT I"},{"char":"к",desc:"CYRILLIC SMALL LETTER KA"},{"char":"л",desc:"CYRILLIC SMALL LETTER EL"},{"char":"м",desc:"CYRILLIC SMALL LETTER EM"},{"char":"н",desc:"CYRILLIC SMALL LETTER EN"},{"char":"о",desc:"CYRILLIC SMALL LETTER O"},{"char":"п",desc:"CYRILLIC SMALL LETTER PE"},{"char":"р",desc:"CYRILLIC SMALL LETTER ER"},{"char":"с",desc:"CYRILLIC SMALL LETTER ES"},{"char":"т",desc:"CYRILLIC SMALL LETTER TE"},{"char":"у",desc:"CYRILLIC SMALL LETTER U"},{"char":"ф",desc:"CYRILLIC SMALL LETTER EF"},{"char":"х",desc:"CYRILLIC SMALL LETTER HA"},{"char":"ц",desc:"CYRILLIC SMALL LETTER TSE"},{"char":"ч",desc:"CYRILLIC SMALL LETTER CHE"},{"char":"ш",desc:"CYRILLIC SMALL LETTER SHA"},{"char":"щ",desc:"CYRILLIC SMALL LETTER SHCHA"},{"char":"ъ",desc:"CYRILLIC SMALL LETTER HARD SIGN"},{"char":"ы",desc:"CYRILLIC SMALL LETTER YERU"},{"char":"ь",desc:"CYRILLIC SMALL LETTER SOFT SIGN"},{"char":"э",desc:"CYRILLIC SMALL LETTER E"},{"char":"ю",desc:"CYRILLIC SMALL LETTER YU"},{"char":"я",desc:"CYRILLIC SMALL LETTER YA"},{"char":"ѐ",desc:"CYRILLIC SMALL LETTER IE WITH GRAVE"},{"char":"ё",desc:"CYRILLIC SMALL LETTER IO"},{"char":"ђ",desc:"CYRILLIC SMALL LETTER DJE"},{"char":"ѓ",desc:"CYRILLIC SMALL LETTER GJE"},{"char":"є",desc:"CYRILLIC SMALL LETTER UKRAINIAN IE"},{"char":"ѕ",desc:"CYRILLIC SMALL LETTER DZE"},{"char":"і",desc:"CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I"},{"char":"ї",desc:"CYRILLIC SMALL LETTER YI"},{"char":"ј",desc:"CYRILLIC SMALL LETTER JE"},{"char":"љ",desc:"CYRILLIC SMALL LETTER LJE"},{"char":"њ",desc:"CYRILLIC SMALL LETTER NJE"},{"char":"ћ",desc:"CYRILLIC SMALL LETTER TSHE"},{"char":"ќ",desc:"CYRILLIC SMALL LETTER KJE"},{"char":"ѝ",desc:"CYRILLIC SMALL LETTER I WITH GRAVE"},{"char":"ў",desc:"CYRILLIC SMALL LETTER SHORT U"},{"char":"џ",desc:"CYRILLIC SMALL LETTER DZHE"}]},{title:"Punctuation",list:[{"char":"–",desc:"EN DASH"},{"char":"—",desc:"EM DASH"},{"char":"‘",desc:"LEFT SINGLE QUOTATION MARK"},{"char":"’",desc:"RIGHT SINGLE QUOTATION MARK"},{"char":"‚",desc:"SINGLE LOW-9 QUOTATION MARK"},{"char":"“",desc:"LEFT DOUBLE QUOTATION MARK"},{"char":"”",desc:"RIGHT DOUBLE QUOTATION MARK"},{"char":"„",desc:"DOUBLE LOW-9 QUOTATION MARK"},{"char":"†",desc:"DAGGER"},{"char":"‡",desc:"DOUBLE DAGGER"},{"char":"•",desc:"BULLET"},{"char":"…",desc:"HORIZONTAL ELLIPSIS"},{"char":"‰",desc:"PER MILLE SIGN"},{"char":"′",desc:"PRIME"},{"char":"″",desc:"DOUBLE PRIME"},{"char":"‹",desc:"SINGLE LEFT-POINTING ANGLE QUOTATION MARK"},{"char":"›",desc:"SINGLE RIGHT-POINTING ANGLE QUOTATION MARK"},{"char":"‾",desc:"OVERLINE"},{"char":"⁄",desc:"FRACTION SLASH"}]},{title:"Currency",list:[{"char":"₠",desc:"EURO-CURRENCY SIGN"},{"char":"₡",desc:"COLON SIGN"},{"char":"₢",desc:"CRUZEIRO SIGN"},{"char":"₣",desc:"FRENCH FRANC SIGN"},{"char":"₤",desc:"LIRA SIGN"},{"char":"₥",desc:"MILL SIGN"},{"char":"₦",desc:"NAIRA SIGN"},{"char":"₧",desc:"PESETA SIGN"},{"char":"₨",desc:"RUPEE SIGN"},{"char":"₩",desc:"WON SIGN"},{"char":"₪",desc:"NEW SHEQEL SIGN"},{"char":"₫",desc:"DONG SIGN"},{"char":"€",desc:"EURO SIGN"},{"char":"₭",desc:"KIP SIGN"},{"char":"₮",desc:"TUGRIK SIGN"},{"char":"₯",desc:"DRACHMA SIGN"},{"char":"₰",desc:"GERMAN PENNY SYMBOL"},{"char":"₱",desc:"PESO SIGN"},{"char":"₲",desc:"GUARANI SIGN"},{"char":"₳",desc:"AUSTRAL SIGN"},{"char":"₴",desc:"HRYVNIA SIGN"},{"char":"₵",desc:"CEDI SIGN"},{"char":"₶",desc:"LIVRE TOURNOIS SIGN"},{"char":"₷",desc:"SPESMILO SIGN"},{"char":"₸",desc:"TENGE SIGN"},{"char":"₹",desc:"INDIAN RUPEE SIGN"}]},{title:"Arrows",list:[{"char":"←",desc:"LEFTWARDS ARROW"},{"char":"↑",desc:"UPWARDS ARROW"},{"char":"→",desc:"RIGHTWARDS ARROW"},{"char":"↓",desc:"DOWNWARDS ARROW"},{"char":"↔",desc:"LEFT RIGHT ARROW"},{"char":"↕",desc:"UP DOWN ARROW"},{"char":"↖",desc:"NORTH WEST ARROW"},{"char":"↗",desc:"NORTH EAST ARROW"},{"char":"↘",desc:"SOUTH EAST ARROW"},{"char":"↙",desc:"SOUTH WEST ARROW"},{"char":"↚",desc:"LEFTWARDS ARROW WITH STROKE"},{"char":"↛",desc:"RIGHTWARDS ARROW WITH STROKE"},{"char":"↜",desc:"LEFTWARDS WAVE ARROW"},{"char":"↝",desc:"RIGHTWARDS WAVE ARROW"},{"char":"↞",desc:"LEFTWARDS TWO HEADED ARROW"},{"char":"↟",desc:"UPWARDS TWO HEADED ARROW"},{"char":"↠",desc:"RIGHTWARDS TWO HEADED ARROW"},{"char":"↡",desc:"DOWNWARDS TWO HEADED ARROW"},{"char":"↢",desc:"LEFTWARDS ARROW WITH TAIL"},{"char":"↣",desc:"RIGHTWARDS ARROW WITH TAIL"},{"char":"↤",desc:"LEFTWARDS ARROW FROM BAR"},{"char":"↥",desc:"UPWARDS ARROW FROM BAR"},{"char":"↦",desc:"RIGHTWARDS ARROW FROM BAR"},{"char":"↧",desc:"DOWNWARDS ARROW FROM BAR"},{"char":"↨",desc:"UP DOWN ARROW WITH BASE"},{"char":"↩",desc:"LEFTWARDS ARROW WITH HOOK"},{"char":"↪",desc:"RIGHTWARDS ARROW WITH HOOK"},{"char":"↫",desc:"LEFTWARDS ARROW WITH LOOP"},{"char":"↬",desc:"RIGHTWARDS ARROW WITH LOOP"},{"char":"↭",desc:"LEFT RIGHT WAVE ARROW"},{"char":"↮",desc:"LEFT RIGHT ARROW WITH STROKE"},{"char":"↯",desc:"DOWNWARDS ZIGZAG ARROW"},{"char":"↰",desc:"UPWARDS ARROW WITH TIP LEFTWARDS"},{"char":"↱",desc:"UPWARDS ARROW WITH TIP RIGHTWARDS"},{"char":"↲",desc:"DOWNWARDS ARROW WITH TIP LEFTWARDS"},{"char":"↳",desc:"DOWNWARDS ARROW WITH TIP RIGHTWARDS"},{"char":"↴",desc:"RIGHTWARDS ARROW WITH CORNER DOWNWARDS"},{"char":"↵",desc:"DOWNWARDS ARROW WITH CORNER LEFTWARDS"},{"char":"↶",desc:"ANTICLOCKWISE TOP SEMICIRCLE ARROW"},{"char":"↷",desc:"CLOCKWISE TOP SEMICIRCLE ARROW"},{"char":"↸",desc:"NORTH WEST ARROW TO LONG BAR"},{"char":"↹",desc:"LEFTWARDS ARROW TO BAR OVER RIGHTWARDS ARROW TO BAR"},{"char":"↺",desc:"ANTICLOCKWISE OPEN CIRCLE ARROW"},{"char":"↻",desc:"CLOCKWISE OPEN CIRCLE ARROW"},{"char":"↼",desc:"LEFTWARDS HARPOON WITH BARB UPWARDS"},{"char":"↽",desc:"LEFTWARDS HARPOON WITH BARB DOWNWARDS"},{"char":"↾",desc:"UPWARDS HARPOON WITH BARB RIGHTWARDS"},{"char":"↿",desc:"UPWARDS HARPOON WITH BARB LEFTWARDS"},{"char":"⇀",desc:"RIGHTWARDS HARPOON WITH BARB UPWARDS"},{"char":"⇁",desc:"RIGHTWARDS HARPOON WITH BARB DOWNWARDS"},{"char":"⇂",desc:"DOWNWARDS HARPOON WITH BARB RIGHTWARDS"},{"char":"⇃",desc:"DOWNWARDS HARPOON WITH BARB LEFTWARDS"},{"char":"⇄",desc:"RIGHTWARDS ARROW OVER LEFTWARDS ARROW"},{"char":"⇅",desc:"UPWARDS ARROW LEFTWARDS OF DOWNWARDS ARROW"},{"char":"⇆",desc:"LEFTWARDS ARROW OVER RIGHTWARDS ARROW"},{"char":"⇇",desc:"LEFTWARDS PAIRED ARROWS"},{"char":"⇈",desc:"UPWARDS PAIRED ARROWS"},{"char":"⇉",desc:"RIGHTWARDS PAIRED ARROWS"},{"char":"⇊",desc:"DOWNWARDS PAIRED ARROWS"},{"char":"⇋",desc:"LEFTWARDS HARPOON OVER RIGHTWARDS HARPOON"},{"char":"⇌",desc:"RIGHTWARDS HARPOON OVER LEFTWARDS HARPOON"},{"char":"⇍",desc:"LEFTWARDS DOUBLE ARROW WITH STROKE"},{"char":"⇎",desc:"LEFT RIGHT DOUBLE ARROW WITH STROKE"},{"char":"⇏",desc:"RIGHTWARDS DOUBLE ARROW WITH STROKE"},{"char":"⇐",desc:"LEFTWARDS DOUBLE ARROW"},{"char":"⇑",desc:"UPWARDS DOUBLE ARROW"},{"char":"⇒",desc:"RIGHTWARDS DOUBLE ARROW"},{"char":"⇓",desc:"DOWNWARDS DOUBLE ARROW"},{"char":"⇔",desc:"LEFT RIGHT DOUBLE ARROW"},{"char":"⇕",desc:"UP DOWN DOUBLE ARROW"},{"char":"⇖",desc:"NORTH WEST DOUBLE ARROW"},{"char":"⇗",desc:"NORTH EAST DOUBLE ARROW"},{"char":"⇘",desc:"SOUTH EAST DOUBLE ARROW"},{"char":"⇙",desc:"SOUTH WEST DOUBLE ARROW"},{"char":"⇚",desc:"LEFTWARDS TRIPLE ARROW"},{"char":"⇛",desc:"RIGHTWARDS TRIPLE ARROW"},{"char":"⇜",desc:"LEFTWARDS SQUIGGLE ARROW"},{"char":"⇝",desc:"RIGHTWARDS SQUIGGLE ARROW"},{"char":"⇞",desc:"UPWARDS ARROW WITH DOUBLE STROKE"},{"char":"⇟",desc:"DOWNWARDS ARROW WITH DOUBLE STROKE"},{"char":"⇠",desc:"LEFTWARDS DASHED ARROW"},{"char":"⇡",desc:"UPWARDS DASHED ARROW"},{"char":"⇢",desc:"RIGHTWARDS DASHED ARROW"},{"char":"⇣",desc:"DOWNWARDS DASHED ARROW"},{"char":"⇤",desc:"LEFTWARDS ARROW TO BAR"},{"char":"⇥",desc:"RIGHTWARDS ARROW TO BAR"},{"char":"⇦",desc:"LEFTWARDS WHITE ARROW"},{"char":"⇧",desc:"UPWARDS WHITE ARROW"},{"char":"⇨",desc:"RIGHTWARDS WHITE ARROW"},{"char":"⇩",desc:"DOWNWARDS WHITE ARROW"},{"char":"⇪",desc:"UPWARDS WHITE ARROW FROM BAR"},{"char":"⇫",desc:"UPWARDS WHITE ARROW ON PEDESTAL"},{"char":"⇬",desc:"UPWARDS WHITE ARROW ON PEDESTAL WITH HORIZONTAL BAR"},{"char":"⇭",desc:"UPWARDS WHITE ARROW ON PEDESTAL WITH VERTICAL BAR"},{"char":"⇮",desc:"UPWARDS WHITE DOUBLE ARROW"},{"char":"⇯",desc:"UPWARDS WHITE DOUBLE ARROW ON PEDESTAL"},{"char":"⇰",desc:"RIGHTWARDS WHITE ARROW FROM WALL"},{"char":"⇱",desc:"NORTH WEST ARROW TO CORNER"},{"char":"⇲",desc:"SOUTH EAST ARROW TO CORNER"},{"char":"⇳",desc:"UP DOWN WHITE ARROW"},{"char":"⇴",desc:"RIGHT ARROW WITH SMALL CIRCLE"},{"char":"⇵",desc:"DOWNWARDS ARROW LEFTWARDS OF UPWARDS ARROW"},{"char":"⇶",desc:"THREE RIGHTWARDS ARROWS"},{"char":"⇷",desc:"LEFTWARDS ARROW WITH VERTICAL STROKE"},{"char":"⇸",desc:"RIGHTWARDS ARROW WITH VERTICAL STROKE"},{"char":"⇹",desc:"LEFT RIGHT ARROW WITH VERTICAL STROKE"},{"char":"⇺",desc:"LEFTWARDS ARROW WITH DOUBLE VERTICAL STROKE"},{"char":"⇻",desc:"RIGHTWARDS ARROW WITH DOUBLE VERTICAL STROKE"},{"char":"⇼",desc:"LEFT RIGHT ARROW WITH DOUBLE VERTICAL STROKE"},{"char":"⇽",desc:"LEFTWARDS OPEN-HEADED ARROW"},{"char":"⇾",desc:"RIGHTWARDS OPEN-HEADED ARROW"},{"char":"⇿",desc:"LEFT RIGHT OPEN-HEADED ARROW"}]},{title:"Math",list:[{"char":"∀",desc:"FOR ALL"},{"char":"∂",desc:"PARTIAL DIFFERENTIAL"},{"char":"∃",desc:"THERE EXISTS"},{"char":"∅",desc:"EMPTY SET"},{"char":"∇",desc:"NABLA"},{"char":"∈",desc:"ELEMENT OF"},{"char":"∉",desc:"NOT AN ELEMENT OF"},{"char":"∋",desc:"CONTAINS AS MEMBER"},{"char":"∏",desc:"N-ARY PRODUCT"},{"char":"∑",desc:"N-ARY SUMMATION"},{"char":"−",desc:"MINUS SIGN"},{"char":"∗",desc:"ASTERISK OPERATOR"},{"char":"√",desc:"SQUARE ROOT"},{"char":"∝",desc:"PROPORTIONAL TO"},{"char":"∞",desc:"INFINITY"},{"char":"∠",desc:"ANGLE"},{"char":"∧",desc:"LOGICAL AND"},{"char":"∨",desc:"LOGICAL OR"},{"char":"∩",desc:"INTERSECTION"},{"char":"∪",desc:"UNION"},{"char":"∫",desc:"INTEGRAL"},{"char":"∴",desc:"THEREFORE"},{"char":"∼",desc:"TILDE OPERATOR"},{"char":"≅",desc:"APPROXIMATELY EQUAL TO"},{"char":"≈",desc:"ALMOST EQUAL TO"},{"char":"≠",desc:"NOT EQUAL TO"},{"char":"≡",desc:"IDENTICAL TO"},{"char":"≤",desc:"LESS-THAN OR EQUAL TO"},{"char":"≥",desc:"GREATER-THAN OR EQUAL TO"},{"char":"⊂",desc:"SUBSET OF"},{"char":"⊃",desc:"SUPERSET OF"},{"char":"⊄",desc:"NOT A SUBSET OF"},{"char":"⊆",desc:"SUBSET OF OR EQUAL TO"},{"char":"⊇",desc:"SUPERSET OF OR EQUAL TO"},{"char":"⊕",desc:"CIRCLED PLUS"},{"char":"⊗",desc:"CIRCLED TIMES"},{"char":"⊥",desc:"UP TACK"}]},{title:"Misc",list:[{"char":"♠",desc:"BLACK SPADE SUIT"},{"char":"♣",desc:"BLACK CLUB SUIT"},{"char":"♥",desc:"BLACK HEART SUIT"},{"char":"♦",desc:"BLACK DIAMOND SUIT"},{"char":"♩",desc:"QUARTER NOTE"},{"char":"♪",desc:"EIGHTH NOTE"},{"char":"♫",desc:"BEAMED EIGHTH NOTES"},{"char":"♬",desc:"BEAMED SIXTEENTH NOTES"},{"char":"♭",desc:"MUSIC FLAT SIGN"},{"char":"♮",desc:"MUSIC NATURAL SIGN"},{"char":"☀",desc:"BLACK SUN WITH RAYS"},{"char":"☁",desc:"CLOUD"},{"char":"☂",desc:"UMBRELLA"},{"char":"☃",desc:"SNOWMAN"},{"char":"☕",desc:"HOT BEVERAGE"},{"char":"☘",desc:"SHAMROCK"},{"char":"☯",desc:"YIN YANG"},{"char":"✔",desc:"HEAVY CHECK MARK"},{"char":"✖",desc:"HEAVY MULTIPLICATION X"},{"char":"❄",desc:"SNOWFLAKE"},{"char":"❛",desc:"HEAVY SINGLE TURNED COMMA QUOTATION MARK ORNAMENT"},{"char":"❜",desc:"HEAVY SINGLE COMMA QUOTATION MARK ORNAMENT"},{"char":"❝",desc:"HEAVY DOUBLE TURNED COMMA QUOTATION MARK ORNAMENT"},{"char":"❞",desc:"HEAVY DOUBLE COMMA QUOTATION MARK ORNAMENT"},{"char":"❤",desc:"HEAVY BLACK HEART"}]}]}),a.FE.PLUGINS.specialCharacters=function(b){function c(){}function d(){for(var a='<div class="fr-special-characters-modal">',c=0;c<b.opts.specialCharactersSets.length;c++){for(var d=b.opts.specialCharactersSets[c],e=d.list,f='<div class="fr-special-characters-list"><p class="fr-special-characters-title">'+b.language.translate(d.title)+"</p>",g=0;g<e.length;g++){var h=e[g];f+='<span class="fr-command fr-special-character" tabIndex="-1" role="button" value="'+h["char"]+'" title="'+h.desc+'">'+h["char"]+'<span class="fr-sr-only">'+b.language.translate(h.desc)+" </span></span>"}a+=f+"</div>"}return a+="</div>"}function e(a,c){b.events.disableBlur(),a.focus(),c.preventDefault(),c.stopPropagation()}function f(){b.events.$on(l,"keydown",function(c){var d=c.which,f=l.find("span.fr-special-character:focus:first");if(!(f.length||d!=a.FE.KEYCODE.F10||b.keys.ctrlKey(c)||c.shiftKey)&&c.altKey){var g=l.find("span.fr-special-character:first");return e(g,c),!1}if(d==a.FE.KEYCODE.TAB||d==a.FE.KEYCODE.ARROW_LEFT||d==a.FE.KEYCODE.ARROW_RIGHT){var h=null,i=null,k=!1;return d==a.FE.KEYCODE.ARROW_LEFT||d==a.FE.KEYCODE.ARROW_RIGHT?(i=d==a.FE.KEYCODE.ARROW_RIGHT,k=!0):i=!c.shiftKey,f.length?(k&&(h=i?f.nextAll("span.fr-special-character:first"):f.prevAll("span.fr-special-character:first")),h&&h.length||(h=i?f.parent().next().find("span.fr-special-character:first"):f.parent().prev().find("span.fr-special-character:"+(k?"last":"first")),h.length||(h=l.find("span.fr-special-character:"+(i?"first":"last"))))):h=l.find("span.fr-special-character:"+(i?"first":"last")),e(h,c),!1}if(d!=a.FE.KEYCODE.ENTER||!f.length)return!0;var m=j.data("instance")||b;m.specialCharacters.insert(f)},!0)}function g(){if(!j){var c="<h4>"+b.language.translate("Special Characters")+"</h4>",e=d(),g=b.modals.create(m,c,e);j=g.$modal,k=g.$head,l=g.$body,b.events.$on(a(b.o_win),"resize",function(){var a=j.data("instance")||b;a.modals.resize(m)}),b.events.bindClick(l,".fr-special-character",function(c){var d=j.data("instance")||b,e=a(c.currentTarget);d.specialCharacters.insert(e)}),f()}b.modals.show(m),b.modals.resize(m)}function h(){b.modals.hide(m)}function i(a){b.specialCharacters.hide(),b.undo.saveStep(),b.html.insert(a.attr("value"),!0),b.undo.saveStep()}var j,k,l,m="special_characters";return{_init:c,show:g,hide:h,insert:i}},a.FroalaEditor.DefineIcon("specialCharacters",{template:"text",NAME:"Ω"}),a.FE.RegisterCommand("specialCharacters",{title:"Special Characters",icon:"specialCharacters",undo:!1,focus:!1,modal:!0,callback:function(){this.specialCharacters.show()},plugin:"specialCharacters",showOnMobile:!1})}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/table.min.js b/Mobile.Search.Web/Scripts/froala-editor/js/plugins/table.min.js deleted file mode 100644 index 01e6edf..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/table.min.js +++ /dev/null @@ -1,8 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.POPUP_TEMPLATES,{"table.insert":"[_BUTTONS_][_ROWS_COLUMNS_]","table.edit":"[_BUTTONS_]","table.colors":"[_BUTTONS_][_COLORS_][_CUSTOM_COLOR_]"}),a.extend(a.FE.DEFAULTS,{tableInsertMaxSize:10,tableEditButtons:["tableHeader","tableRemove","|","tableRows","tableColumns","tableStyle","-","tableCells","tableCellBackground","tableCellVerticalAlign","tableCellHorizontalAlign","tableCellStyle"],tableInsertButtons:["tableBack","|"],tableResizer:!0,tableResizerOffset:5,tableResizingLimit:30,tableColorsButtons:["tableBack","|"],tableColors:["#61BD6D","#1ABC9C","#54ACD2","#2C82C9","#9365B8","#475577","#CCCCCC","#41A85F","#00A885","#3D8EB9","#2969B0","#553982","#28324E","#000000","#F7DA64","#FBA026","#EB6B56","#E25041","#A38F84","#EFEFEF","#FFFFFF","#FAC51C","#F37934","#D14841","#B8312F","#7C706B","#D1D5D8","REMOVE"],tableColorsStep:7,tableCellStyles:{"fr-highlighted":"Highlighted","fr-thick":"Thick"},tableStyles:{"fr-dashed-borders":"Dashed Borders","fr-alternate-rows":"Alternate Rows"},tableCellMultipleStyles:!0,tableMultipleStyles:!0,tableInsertHelper:!0,tableInsertHelperOffset:15}),a.FE.PLUGINS.table=function(b){function c(){var a=b.$tb.find('.fr-command[data-cmd="insertTable"]'),c=b.popups.get("table.insert");if(c||(c=g()),!c.hasClass("fr-active")){b.popups.refresh("table.insert"),b.popups.setContainer("table.insert",b.$tb);var d=a.offset().left+a.outerWidth()/2,e=a.offset().top+(b.opts.toolbarBottom?10:a.outerHeight()-10);b.popups.show("table.insert",d,e,a.outerHeight())}}function d(){var a=J();if(a){var c=b.popups.get("table.edit");if(c||(c=k()),c){b.popups.setContainer("table.edit",b.$sc);var d=R(a),e=(d.left+d.right)/2,f=d.bottom;b.popups.show("table.edit",e,f,d.bottom-d.top),b.edit.isDisabled()&&(b.toolbar.disable(),b.$el.removeClass("fr-no-selection"),b.edit.on(),b.button.bulkRefresh(),b.selection.setAtEnd(b.$el.find(".fr-selected-cell:last").get(0)),b.selection.restore())}}}function e(){var a=J();if(a){var c=b.popups.get("table.colors");c||(c=l()),b.popups.setContainer("table.colors",b.$sc);var d=R(a),e=(d.left+d.right)/2,f=d.bottom;p(),b.popups.show("table.colors",e,f,d.bottom-d.top)}}function f(){0===ta().length&&b.toolbar.enable()}function g(c){if(c)return b.popups.onHide("table.insert",function(){b.popups.get("table.insert").find('.fr-table-size .fr-select-table-size > span[data-row="1"][data-col="1"]').trigger("mouseenter")}),!0;var d="";b.opts.tableInsertButtons.length>0&&(d='<div class="fr-buttons">'+b.button.buildList(b.opts.tableInsertButtons)+"</div>");var e={buttons:d,rows_columns:i()},f=b.popups.create("table.insert",e);return b.events.$on(f,"mouseenter",".fr-table-size .fr-select-table-size .fr-table-cell",function(b){h(a(b.currentTarget))},!0),j(f),f}function h(a){var c=a.data("row"),d=a.data("col"),e=a.parent();e.siblings(".fr-table-size-info").html(c+" × "+d),e.find("> span").removeClass("hover fr-active-item");for(var f=1;f<=b.opts.tableInsertMaxSize;f++)for(var g=0;g<=b.opts.tableInsertMaxSize;g++){var h=e.find('> span[data-row="'+f+'"][data-col="'+g+'"]');c>=f&&d>=g?h.addClass("hover"):c+1>=f||2>=f&&!b.helpers.isMobile()?h.css("display","inline-block"):f>2&&!b.helpers.isMobile()&&h.css("display","none")}a.addClass("fr-active-item")}function i(){for(var a='<div class="fr-table-size"><div class="fr-table-size-info">1 × 1</div><div class="fr-select-table-size">',c=1;c<=b.opts.tableInsertMaxSize;c++){for(var d=1;d<=b.opts.tableInsertMaxSize;d++){var e="inline-block";c>2&&!b.helpers.isMobile()&&(e="none");var f="fr-table-cell ";1==c&&1==d&&(f+=" hover"),a+='<span class="fr-command '+f+'" tabIndex="-1" data-cmd="tableInsert" data-row="'+c+'" data-col="'+d+'" data-param1="'+c+'" data-param2="'+d+'" style="display: '+e+';" role="button"><span></span><span class="fr-sr-only">'+c+" × "+d+" </span></span>"}a+='<div class="new-line"></div>'}return a+="</div></div>"}function j(c){b.events.$on(c,"focus","[tabIndex]",function(b){var c=a(b.currentTarget);h(c)}),b.events.on("popup.tab",function(c){var d=a(c.currentTarget);if(!b.popups.isVisible("table.insert")||!d.is("span, a"))return!0;var e,f=c.which;if(a.FE.KEYCODE.ARROW_UP==f||a.FE.KEYCODE.ARROW_DOWN==f||a.FE.KEYCODE.ARROW_LEFT==f||a.FE.KEYCODE.ARROW_RIGHT==f){if(d.is("span.fr-table-cell")){var g=d.parent().find("span.fr-table-cell"),i=g.index(d),j=b.opts.tableInsertMaxSize,k=i%j,l=Math.floor(i/j);a.FE.KEYCODE.ARROW_UP==f?l=Math.max(0,l-1):a.FE.KEYCODE.ARROW_DOWN==f?l=Math.min(b.opts.tableInsertMaxSize-1,l+1):a.FE.KEYCODE.ARROW_LEFT==f?k=Math.max(0,k-1):a.FE.KEYCODE.ARROW_RIGHT==f&&(k=Math.min(b.opts.tableInsertMaxSize-1,k+1));var m=l*j+k,n=a(g.get(m));h(n),b.events.disableBlur(),n.focus(),e=!1}}else a.FE.KEYCODE.ENTER==f&&(b.button.exec(d),e=!1);return e===!1&&(c.preventDefault(),c.stopPropagation()),e},!0)}function k(a){if(a)return b.popups.onHide("table.edit",f),!0;var c="";if(b.opts.tableEditButtons.length>0){c='<div class="fr-buttons">'+b.button.buildList(b.opts.tableEditButtons)+"</div>";var e={buttons:c},g=b.popups.create("table.edit",e);return b.events.$on(b.$wp,"scroll.table-edit",function(){b.popups.isVisible("table.edit")&&d()}),g}return!1}function l(){var a="";b.opts.tableColorsButtons.length>0&&(a='<div class="fr-buttons fr-table-colors-buttons">'+b.button.buildList(b.opts.tableColorsButtons)+"</div>");var c="";b.opts.colorsHEXInput&&(c='<div class="fr-table-colors-hex-layer fr-active fr-layer" id="fr-table-colors-hex-layer-'+b.id+'"><div class="fr-input-line"><input maxlength="7" id="fr-table-colors-hex-layer-text-'+b.id+'" type="text" placeholder="'+b.language.translate("HEX Color")+'" tabIndex="1" aria-required="true"></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="tableCellBackgroundCustomColor" tabIndex="2" role="button">'+b.language.translate("OK")+"</button></div></div>");var d={buttons:a,colors:m(),custom_color:c},f=b.popups.create("table.colors",d);return b.events.$on(b.$wp,"scroll.table-colors",function(){b.popups.isVisible("table.colors")&&e()}),o(f),f}function m(){for(var a='<div class="fr-table-colors">',c=0;c<b.opts.tableColors.length;c++)0!==c&&c%b.opts.tableColorsStep===0&&(a+="<br>"),a+="REMOVE"!=b.opts.tableColors[c]?'<span class="fr-command" style="background: '+b.opts.tableColors[c]+';" tabIndex="-1" role="button" data-cmd="tableCellBackgroundColor" data-param1="'+b.opts.tableColors[c]+'"><span class="fr-sr-only">'+b.language.translate("Color")+" "+b.opts.tableColors[c]+" </span></span>":'<span class="fr-command" data-cmd="tableCellBackgroundColor" tabIndex="-1" role="button" data-param1="REMOVE" title="'+b.language.translate("Clear Formatting")+'">'+b.icon.create("tableColorRemove")+'<span class="fr-sr-only">'+b.language.translate("Clear Formatting")+"</span></span>";return a+="</div>"}function n(){var a=b.popups.get("table.colors"),c=a.find(".fr-table-colors-hex-layer input");c.length&&F(c.val())}function o(c){b.events.on("popup.tab",function(d){var e=a(d.currentTarget);if(!b.popups.isVisible("table.colors")||!e.is("span"))return!0;var f=d.which,g=!0;if(a.FE.KEYCODE.TAB==f){var h=c.find(".fr-buttons");g=!b.accessibility.focusToolbar(h,d.shiftKey?!0:!1)}else if(a.FE.KEYCODE.ARROW_UP==f||a.FE.KEYCODE.ARROW_DOWN==f||a.FE.KEYCODE.ARROW_LEFT==f||a.FE.KEYCODE.ARROW_RIGHT==f){var i=e.parent().find("span.fr-command"),j=i.index(e),k=b.opts.colorsStep,l=Math.floor(i.length/k),m=j%k,n=Math.floor(j/k),o=n*k+m,p=l*k;a.FE.KEYCODE.ARROW_UP==f?o=((o-k)%p+p)%p:a.FE.KEYCODE.ARROW_DOWN==f?o=(o+k)%p:a.FE.KEYCODE.ARROW_LEFT==f?o=((o-1)%p+p)%p:a.FE.KEYCODE.ARROW_RIGHT==f&&(o=(o+1)%p);var q=a(i.get(o));b.events.disableBlur(),q.focus(),g=!1}else a.FE.KEYCODE.ENTER==f&&(b.button.exec(e),g=!1);return g===!1&&(d.preventDefault(),d.stopPropagation()),g},!0)}function p(){var a=b.popups.get("table.colors"),c=b.$el.find(".fr-selected-cell:first"),d=b.helpers.RGBToHex(c.css("background-color")),e=a.find(".fr-table-colors-hex-layer input");a.find(".fr-selected-color").removeClass("fr-selected-color fr-active-item"),a.find('span[data-param1="'+d+'"]').addClass("fr-selected-color fr-active-item"),e.val(d).trigger("change")}function q(c,d){var e,f,g='<table style="width: 100%;" class="fr-inserted-table"><tbody>',h=100/d;for(e=0;c>e;e++){for(g+="<tr>",f=0;d>f;f++)g+='<td style="width: '+h.toFixed(4)+'%;">',0===e&&0===f&&(g+=a.FE.MARKERS),g+="<br></td>";g+="</tr>"}g+="</tbody></table>",b.html.insert(g),b.selection.restore();var i=b.$el.find(".fr-inserted-table");i.removeClass("fr-inserted-table"),b.events.trigger("table.inserted",[i.get(0)])}function r(){if(ta().length>0){var a=ua();b.selection.setBefore(a.get(0))||b.selection.setAfter(a.get(0)),b.selection.restore(),b.popups.hide("table.edit"),a.remove(),b.toolbar.enable()}}function s(){var b=ua();if(b.length>0&&0===b.find("th").length){var c,e="<thead><tr>",f=0;for(b.find("tr:first > td").each(function(){var b=a(this);f+=parseInt(b.attr("colspan"),10)||1}),c=0;f>c;c++)e+="<th><br></th>";e+="</tr></thead>",b.prepend(e),d()}}function t(){var a=ua(),c=a.find("thead");if(c.length>0)if(0===a.find("tbody tr").length)r();else if(c.remove(),ta().length>0)d();else{b.popups.hide("table.edit");var e=a.find("tbody tr:first td:first").get(0);e&&(b.selection.setAtEnd(e),b.selection.restore())}}function u(c){var e=ua();if(e.length>0){if(b.$el.find("th.fr-selected-cell").length>0&&"above"==c)return;var f,g,h,i=J(),j=P(i);g="above"==c?j.min_i:j.max_i;var k="<tr>";for(f=0;f<i[g].length;f++)if("below"==c&&g<i.length-1&&i[g][f]==i[g+1][f]||"above"==c&&g>0&&i[g][f]==i[g-1][f]){if(0===f||f>0&&i[g][f]!=i[g][f-1]){var l=a(i[g][f]);l.attr("rowspan",parseInt(l.attr("rowspan"),10)+1)}}else k+="<td><br></td>";k+="</tr>",h=a(b.$el.find("th.fr-selected-cell").length>0&&"below"==c?e.find("tbody").not(e.find("table tbody")):e.find("tr").not(e.find("table tr")).get(g)),"below"==c?"TBODY"==h.prop("tagName")?h.prepend(k):h.after(k):"above"==c&&(h.before(k),b.popups.isVisible("table.edit")&&d())}}function v(){var c=ua();if(c.length>0){var d,e,f,g=J(),h=P(g);if(0===h.min_i&&h.max_i==g.length-1)r();else{for(d=h.max_i;d>=h.min_i;d--){for(f=a(c.find("tr").not(c.find("table tr")).get(d)),e=0;e<g[d].length;e++)if(0===e||g[d][e]!=g[d][e-1]){var i=a(g[d][e]);if(parseInt(i.attr("rowspan"),10)>1){var j=parseInt(i.attr("rowspan"),10)-1;1==j?i.removeAttr("rowspan"):i.attr("rowspan",j)}if(d<g.length-1&&g[d][e]==g[d+1][e]&&(0===d||g[d][e]!=g[d-1][e])){for(var k=g[d][e],l=e;l>0&&g[d][l]==g[d][l-1];)l--;0===l?a(c.find("tr").not(c.find("table tr")).get(d+1)).prepend(k):a(g[d+1][l-1]).after(k)}}var m=f.parent();f.remove(),0===m.find("tr").length&&m.remove(),g=J(c)}B(0,g.length-1,0,g[0].length-1,c),h.min_i>0?b.selection.setAtEnd(g[h.min_i-1][0]):b.selection.setAtEnd(g[0][0]),b.selection.restore(),b.popups.hide("table.edit")}}}function w(c){var e=ua();if(e.length>0){var f,g=J(),h=P(g);f="before"==c?h.min_j:h.max_j;var i,j=100/g[0].length,k=100/(g[0].length+1);e.find("th, td").each(function(){i=a(this),i.data("old-width",i.outerWidth()/e.outerWidth()*100)}),e.find("tr").not(e.find("table tr")).each(function(b){for(var d,e=a(this),h=0,i=0;f>h-1;){if(d=e.find("> th, > td").get(i),!d){d=null;break}d==g[b][h]?(h+=parseInt(a(d).attr("colspan"),10)||1,i++):(h+=parseInt(a(g[b][h]).attr("colspan"),10)||1,"after"==c&&(d=0===i?-1:e.find("> th, > td").get(i-1)))}var l=a(d);if("after"==c&&h-1>f||"before"==c&&f>0&&g[b][f]==g[b][f-1]){if(0===b||b>0&&g[b][f]!=g[b-1][f]){var m=parseInt(l.attr("colspan"),10)+1;l.attr("colspan",m),l.css("width",(l.data("old-width")*k/j+k).toFixed(4)+"%"),l.removeData("old-width")}}else{var n;n=e.find("th").length>0?'<th style="width: '+k.toFixed(4)+'%;"><br></th>':'<td style="width: '+k.toFixed(4)+'%;"><br></td>',-1==d?e.prepend(n):null==d?e.append(n):"before"==c?l.before(n):"after"==c&&l.after(n)}}),e.find("th, td").each(function(){i=a(this),i.data("old-width")&&(i.css("width",(i.data("old-width")*k/j).toFixed(4)+"%"),i.removeData("old-width"))}),b.popups.isVisible("table.edit")&&d()}}function x(){var c=ua();if(c.length>0){var d,e,f,g=J(),h=P(g);if(0===h.min_j&&h.max_j==g[0].length-1)r();else{var i=100/g[0].length,j=100/(g[0].length-h.max_j+h.min_j-1);for(c.find("th, td").each(function(){f=a(this),f.hasClass("fr-selected-cell")||f.data("old-width",f.outerWidth()/c.outerWidth()*100)}),e=h.max_j;e>=h.min_j;e--)for(d=0;d<g.length;d++)if(0===d||g[d][e]!=g[d-1][e])if(f=a(g[d][e]),(parseInt(f.attr("colspan"),10)||1)>1){var k=parseInt(f.attr("colspan"),10)-1;1==k?f.removeAttr("colspan"):f.attr("colspan",k),f.css("width",((f.data("old-width")-la(e,g))*j/i).toFixed(4)+"%"),f.removeData("old-width")}else{var l=a(f.parent().get(0));f.remove(),0===l.find("> th, > td").length&&(0===l.prev().length||0===l.next().length||l.prev().find("> th[rowspan], > td[rowspan]").length<l.prev().find("> th, > td").length)&&l.remove()}B(0,g.length-1,0,g[0].length-1,c),h.min_j>0?b.selection.setAtEnd(g[h.min_i][h.min_j-1]):b.selection.setAtEnd(g[h.min_i][0]),b.selection.restore(),b.popups.hide("table.edit"),c.find("th, td").each(function(){f=a(this),f.data("old-width")&&(f.css("width",(f.data("old-width")*j/i).toFixed(4)+"%"),f.removeData("old-width"))})}}}function y(a,b,c){var d,e,f,g,h,i=0,j=J(c);if(b=Math.min(b,j[0].length-1),b>a)for(e=a;b>=e;e++)if(!(e>a&&j[0][e]==j[0][e-1])&&(g=Math.min(parseInt(j[0][e].getAttribute("colspan"),10)||1,b-a+1),g>1&&j[0][e]==j[0][e+1]))for(i=g-1,d=1;d<j.length;d++)if(j[d][e]!=j[d-1][e]){for(f=e;e+g>f;f++)if(h=parseInt(j[d][f].getAttribute("colspan"),10)||1,h>1&&j[d][f]==j[d][f+1])i=Math.min(i,h-1),f+=i;else if(i=Math.max(0,i-1),!i)break;if(!i)break}i&&A(j,i,"colspan",0,j.length-1,a,b)}function z(a,b,c){var d,e,f,g,h,i=0,j=J(c);if(b=Math.min(b,j.length-1),b>a)for(d=a;b>=d;d++)if(!(d>a&&j[d][0]==j[d-1][0])&&(g=Math.min(parseInt(j[d][0].getAttribute("rowspan"),10)||1,b-a+1),g>1&&j[d][0]==j[d+1][0]))for(i=g-1,e=1;e<j[0].length;e++)if(j[d][e]!=j[d][e-1]){for(f=d;d+g>f;f++)if(h=parseInt(j[f][e].getAttribute("rowspan"),10)||1,h>1&&j[f][e]==j[f+1][e])i=Math.min(i,h-1),f+=i;else if(i=Math.max(0,i-1),!i)break;if(!i)break}i&&A(j,i,"rowspan",a,b,0,j[0].length-1)}function A(a,b,c,d,e,f,g){var h,i,j;for(h=d;e>=h;h++)for(i=f;g>=i;i++)h>d&&a[h][i]==a[h-1][i]||i>f&&a[h][i]==a[h][i-1]||(j=parseInt(a[h][i].getAttribute(c),10)||1,j>1&&(j-b>1?a[h][i].setAttribute(c,j-b):a[h][i].removeAttribute(c)))}function B(a,b,c,d,e){z(a,b,e),y(c,d,e)}function C(){if(ta().length>1&&(0===b.$el.find("th.fr-selected-cell").length||0===b.$el.find("td.fr-selected-cell").length)){M();var c,e,f=J(),g=P(f),h=b.$el.find(".fr-selected-cell"),i=a(h[0]),j=i.parent(),k=j.find(".fr-selected-cell"),l=i.closest("table"),m=i.html(),n=0;for(c=0;c<k.length;c++)n+=a(k[c]).outerWidth();for(i.css("width",(n/l.outerWidth()*100).toFixed(4)+"%"),g.min_j<g.max_j&&i.attr("colspan",g.max_j-g.min_j+1),g.min_i<g.max_i&&i.attr("rowspan",g.max_i-g.min_i+1),c=1;c<h.length;c++)e=a(h[c]),"<br>"!=e.html()&&""!==e.html()&&(m+="<br>"+e.html()),e.remove();i.html(m),b.selection.setAtEnd(i.get(0)),b.selection.restore(),b.toolbar.enable(),z(g.min_i,g.max_i,l);var o=l.find("tr:empty");for(c=o.length-1;c>=0;c--)a(o[c]).remove();y(g.min_j,g.max_j,l),d()}}function D(){if(1==ta().length){var c=b.$el.find(".fr-selected-cell"),d=c.parent(),e=c.closest("table"),f=parseInt(c.attr("rowspan"),10),g=J(),h=K(c.get(0),g),i=c.clone().html("<br>");if(f>1){var j=Math.ceil(f/2);j>1?c.attr("rowspan",j):c.removeAttr("rowspan"),f-j>1?i.attr("rowspan",f-j):i.removeAttr("rowspan");for(var k=h.row+j,l=0===h.col?h.col:h.col-1;l>=0&&(g[k][l]==g[k][l-1]||k>0&&g[k][l]==g[k-1][l]);)l--;-1==l?a(e.find("tr").not(e.find("table tr")).get(k)).prepend(i):a(g[k][l]).after(i)}else{var m,n=a("<tr>").append(i);for(m=0;m<g[0].length;m++)if(0===m||g[h.row][m]!=g[h.row][m-1]){var o=a(g[h.row][m]);o.is(c)||o.attr("rowspan",(parseInt(o.attr("rowspan"),10)||1)+1)}d.after(n)}N(),b.popups.hide("table.edit")}}function E(){if(1==ta().length){var c=b.$el.find(".fr-selected-cell"),d=parseInt(c.attr("colspan"),10)||1,e=c.parent().outerWidth(),f=c.outerWidth(),g=c.clone().html("<br>"),h=J(),i=K(c.get(0),h);if(d>1){var j=Math.ceil(d/2);f=ma(i.col,i.col+j-1,h)/e*100;var k=ma(i.col+j,i.col+d-1,h)/e*100;j>1?c.attr("colspan",j):c.removeAttr("colspan"),d-j>1?g.attr("colspan",d-j):g.removeAttr("colspan"),c.css("width",f.toFixed(4)+"%"),g.css("width",k.toFixed(4)+"%")}else{var l;for(l=0;l<h.length;l++)if(0===l||h[l][i.col]!=h[l-1][i.col]){var m=a(h[l][i.col]);if(!m.is(c)){var n=(parseInt(m.attr("colspan"),10)||1)+1;m.attr("colspan",n)}}f=f/e*100/2,c.css("width",f.toFixed(4)+"%"),g.css("width",f.toFixed(4)+"%")}c.after(g),N(),b.popups.hide("table.edit")}}function F(a){var c=b.$el.find(".fr-selected-cell");"REMOVE"!=a?c.css("background-color",b.helpers.HEXtoRGB(a)):c.css("background-color",""),d()}function G(a){b.$el.find(".fr-selected-cell").css("vertical-align",a)}function H(a){b.$el.find(".fr-selected-cell").css("text-align",a)}function I(a,b,c,d){if(b.length>0){if(!c){var e=Object.keys(d);e.splice(e.indexOf(a),1),b.removeClass(e.join(" "))}b.toggleClass(a)}}function J(b){b=b||null;var c=[];return null==b&&ta().length>0&&(b=ua()),b&&b.find("tr").not(b.find("table tr")).each(function(b,d){var e=a(d),f=0;e.find("> th, > td").each(function(d,e){for(var g=a(e),h=parseInt(g.attr("colspan"),10)||1,i=parseInt(g.attr("rowspan"),10)||1,j=b;b+i>j;j++)for(var k=f;f+h>k;k++)c[j]||(c[j]=[]),c[j][k]?f++:c[j][k]=e;f+=h})}),c}function K(a,b){for(var c=0;c<b.length;c++)for(var d=0;d<b[c].length;d++)if(b[c][d]==a)return{row:c,col:d}}function L(a,b,c){for(var d=a+1,e=b+1;d<c.length;){if(c[d][b]!=c[a][b]){d--;break}d++}for(d==c.length&&d--;e<c[a].length;){if(c[a][e]!=c[a][b]){e--;break}e++}return e==c[a].length&&e--,{row:d,col:e}}function M(){b.el.querySelector(".fr-cell-fixed")&&b.el.querySelector(".fr-cell-fixed").classList.remove("fr-cell-fixed"),b.el.querySelector(".fr-cell-handler")&&b.el.querySelector(".fr-cell-handler").classList.remove("fr-cell-handler")}function N(){var c=b.$el.find(".fr-selected-cell");c.length>0&&c.each(function(){var b=a(this);b.removeClass("fr-selected-cell"),""===b.attr("class")&&b.removeAttr("class")}),M()}function O(){b.events.disableBlur(),b.selection.clear(),b.$el.addClass("fr-no-selection"),b.$el.blur(),b.events.enableBlur()}function P(a){var c=b.$el.find(".fr-selected-cell");if(c.length>0){var d,e=a.length,f=0,g=a[0].length,h=0;for(d=0;d<c.length;d++){var i=K(c[d],a),j=L(i.row,i.col,a);e=Math.min(i.row,e),f=Math.max(j.row,f),g=Math.min(i.col,g),h=Math.max(j.col,h)}return{min_i:e,max_i:f,min_j:g,max_j:h}}return null}function Q(b,c,d,e,f){var g,h,i,j,k=b,l=c,m=d,n=e;for(g=k;l>=g;g++)((parseInt(a(f[g][m]).attr("rowspan"),10)||1)>1||(parseInt(a(f[g][m]).attr("colspan"),10)||1)>1)&&(i=K(f[g][m],f),j=L(i.row,i.col,f),k=Math.min(i.row,k),l=Math.max(j.row,l),m=Math.min(i.col,m),n=Math.max(j.col,n)),((parseInt(a(f[g][n]).attr("rowspan"),10)||1)>1||(parseInt(a(f[g][n]).attr("colspan"),10)||1)>1)&&(i=K(f[g][n],f),j=L(i.row,i.col,f),k=Math.min(i.row,k),l=Math.max(j.row,l),m=Math.min(i.col,m),n=Math.max(j.col,n));for(h=m;n>=h;h++)((parseInt(a(f[k][h]).attr("rowspan"),10)||1)>1||(parseInt(a(f[k][h]).attr("colspan"),10)||1)>1)&&(i=K(f[k][h],f),j=L(i.row,i.col,f),k=Math.min(i.row,k),l=Math.max(j.row,l),m=Math.min(i.col,m),n=Math.max(j.col,n)),((parseInt(a(f[l][h]).attr("rowspan"),10)||1)>1||(parseInt(a(f[l][h]).attr("colspan"),10)||1)>1)&&(i=K(f[l][h],f),j=L(i.row,i.col,f),k=Math.min(i.row,k),l=Math.max(j.row,l),m=Math.min(i.col,m),n=Math.max(j.col,n));return k==b&&l==c&&m==d&&n==e?{min_i:b,max_i:c,min_j:d,max_j:e}:Q(k,l,m,n,f)}function R(b){var c=P(b),d=a(b[c.min_i][c.min_j]),e=a(b[c.min_i][c.max_j]),f=a(b[c.max_i][c.min_j]),g=d.offset().left,h=e.offset().left+e.outerWidth(),i=d.offset().top,j=f.offset().top+f.outerHeight();return{left:g,right:h,top:i,bottom:j}}function S(c,d){if(a(c).is(d))N(),b.edit.on(),a(c).addClass("fr-selected-cell");else{O(),b.edit.off();var e=J(),f=K(c,e),g=K(d,e),h=Q(Math.min(f.row,g.row),Math.max(f.row,g.row),Math.min(f.col,g.col),Math.max(f.col,g.col),e);N(),c.classList.add("fr-cell-fixed"),d.classList.add("fr-cell-handler");for(var i=h.min_i;i<=h.max_i;i++)for(var j=h.min_j;j<=h.max_j;j++)a(e[i][j]).addClass("fr-selected-cell")}}function T(c){var d=null,e=a(c.target);return"TD"==c.target.tagName||"TH"==c.target.tagName?d=c.target:e.closest("td").length>0?d=e.closest("td").get(0):e.closest("th").length>0&&(d=e.closest("th").get(0)),0===b.$el.find(d).length?null:d}function U(){N(),b.popups.hide("table.edit")}function V(c){var d=T(c);if("false"==a(d).parents("[contenteditable]:not(.fr-element):not(.fr-img-caption):not(body):first").attr("contenteditable"))return!0;if(ta().length>0&&!d&&U(),!b.edit.isDisabled()||b.popups.isVisible("table.edit"))if(1!=c.which||1==c.which&&b.helpers.isMac()&&c.ctrlKey)(3==c.which||1==c.which&&b.helpers.isMac()&&c.ctrlKey)&&d&&U();else if(Ba=!0,d){ta().length>0&&!c.shiftKey&&U(),c.stopPropagation(),b.events.trigger("image.hideResizer"),b.events.trigger("video.hideResizer"),Aa=!0;var e=d.tagName.toLowerCase();c.shiftKey&&b.$el.find(e+".fr-selected-cell").length>0?a(b.$el.find(e+".fr-selected-cell").closest("table")).is(a(d).closest("table"))?S(Ca,d):O():((b.keys.ctrlKey(c)||c.shiftKey)&&(ta().length>1||0===a(d).find(b.selection.element()).length&&!a(d).is(b.selection.element()))&&O(),Ca=d,S(Ca,Ca))}}function W(c){if(Aa||b.$tb.is(c.target)||b.$tb.is(a(c.target).closest(b.$tb.get(0)))||(ta().length>0&&b.toolbar.enable(),N()),!(1!=c.which||1==c.which&&b.helpers.isMac()&&c.ctrlKey)){if(Ba=!1,Aa){Aa=!1;var e=T(c);e||1!=ta().length?ta().length>0&&(b.selection.isCollapsed()?d():N()):N()}if(Ea){Ea=!1,ya.removeClass("fr-moving"),b.$el.removeClass("fr-no-selection"),b.edit.on();var f=parseFloat(ya.css("left"))+b.opts.tableResizerOffset+b.$wp.offset().left;b.opts.iframe&&(f-=b.$iframe.offset().left),ya.data("release-position",f),ya.removeData("max-left"),ya.removeData("max-right"),ka(c),ca()}}}function X(c){if(Aa===!0){var d=a(c.currentTarget);if(d.closest("table").is(ua())){if("TD"==c.currentTarget.tagName&&0===b.$el.find("th.fr-selected-cell").length)return void S(Ca,c.currentTarget);if("TH"==c.currentTarget.tagName&&0===b.$el.find("td.fr-selected-cell").length)return void S(Ca,c.currentTarget)}O()}}function Y(c,d){for(var e=c;e&&"TABLE"!=e.tagName&&e.parentNode!=b.el;)e=e.parentNode;if(e&&"TABLE"==e.tagName){var f=J(a(e));"up"==d?$(K(c,f),e,f):"down"==d&&_(K(c,f),e,f)}}function Z(a,c,d,e){for(var f,g=c;g!=b.el&&"TD"!=g.tagName&&"TH"!=g.tagName&&("up"==e?f=g.previousElementSibling:"down"==e&&(f=g.nextElementSibling),!f);)g=g.parentNode;"TD"==g.tagName||"TH"==g.tagName?Y(g,e):f&&("up"==e&&b.selection.setAtEnd(f),"down"==e&&b.selection.setAtStart(f))}function $(a,c,d){a.row>0?b.selection.setAtEnd(d[a.row-1][a.col]):Z(a,c,d,"up")}function _(a,c,d){var e=parseInt(d[a.row][a.col].getAttribute("rowspan"),10)||1;a.row<d.length-e?b.selection.setAtStart(d[a.row+e][a.col]):Z(a,c,d,"down")}function aa(c){var d=c.which,e=b.selection.blocks();if(e.length&&(e=e[0],"TD"==e.tagName||"TH"==e.tagName)){for(var f=e;f&&"TABLE"!=f.tagName&&f.parentNode!=b.el;)f=f.parentNode;if(f&&"TABLE"==f.tagName&&(a.FE.KEYCODE.ARROW_LEFT==d||a.FE.KEYCODE.ARROW_UP==d||a.FE.KEYCODE.ARROW_RIGHT==d||a.FE.KEYCODE.ARROW_DOWN==d)&&(ta().length>0&&U(),b.browser.webkit&&(a.FE.KEYCODE.ARROW_UP==d||a.FE.KEYCODE.ARROW_DOWN==d))){var g=b.selection.ranges(0).startContainer;if(g.nodeType==Node.TEXT_NODE&&(a.FE.KEYCODE.ARROW_UP==d&&g.previousSibling||a.FE.KEYCODE.ARROW_DOWN==d&&g.nextSibling))return;c.preventDefault(),c.stopPropagation();var h=J(a(f)),i=K(e,h);return a.FE.KEYCODE.ARROW_UP==d?$(i,f,h):a.FE.KEYCODE.ARROW_DOWN==d&&_(i,f,h),b.selection.restore(),!1}}}function ba(){b.shared.$table_resizer||(b.shared.$table_resizer=a('<div class="fr-table-resizer"><div></div></div>')),ya=b.shared.$table_resizer,b.events.$on(ya,"mousedown",function(a){return b.core.sameInstance(ya)?(ta().length>0&&U(),1==a.which?(b.selection.save(),Ea=!0,ya.addClass("fr-moving"),O(),b.edit.off(),ya.find("div").css("opacity",1),!1):void 0):!0}),b.events.$on(ya,"mousemove",function(a){return b.core.sameInstance(ya)?void(Ea&&(b.opts.iframe&&(a.pageX-=b.$iframe.offset().left),na(a))):!0}),b.events.on("shared.destroy",function(){ya.html("").removeData().remove(),ya=null},!0),b.events.on("destroy",function(){b.$el.find(".fr-selected-cell").removeClass("fr-selected-cell"),ya.hide().appendTo(a("body:first"))},!0)}function ca(){ya&&(ya.find("div").css("opacity",0),ya.css("top",0),ya.css("left",0),ya.css("height",0),ya.find("div").css("height",0),ya.hide())}function da(){za&&za.removeClass("fr-visible").css("left","-9999px")}function ea(c,d){var e=a(d),f=e.closest("table"),g=f.parent();if(d&&"TD"!=d.tagName&&"TH"!=d.tagName&&(e.closest("td").length>0?d=e.closest("td"):e.closest("th").length>0&&(d=e.closest("th"))),!d||"TD"!=d.tagName&&"TH"!=d.tagName)ya&&e.get(0)!=ya.get(0)&&e.parent().get(0)!=ya.get(0)&&b.core.sameInstance(ya)&&ca();else{if(e=a(d),0===b.$el.find(e).length)return!1;var h=e.offset().left-1,i=h+e.outerWidth();if(Math.abs(c.pageX-h)<=b.opts.tableResizerOffset||Math.abs(i-c.pageX)<=b.opts.tableResizerOffset){var j,k,l,m,n,o=J(f),p=K(d,o),q=L(p.row,p.col,o),r=f.offset().top,s=f.outerHeight()-1;"rtl"!=b.opts.direction?c.pageX-h<=b.opts.tableResizerOffset?(l=h,p.col>0?(m=h-la(p.col-1,o)+b.opts.tableResizingLimit,n=h+la(p.col,o)-b.opts.tableResizingLimit,j=p.col-1,k=p.col):(j=null,k=0,m=f.offset().left-1-parseInt(f.css("margin-left"),10),n=f.offset().left-1+f.width()-o[0].length*b.opts.tableResizingLimit)):i-c.pageX<=b.opts.tableResizerOffset&&(l=i,q.col<o[q.row].length&&o[q.row][q.col+1]?(m=i-la(q.col,o)+b.opts.tableResizingLimit,n=i+la(q.col+1,o)-b.opts.tableResizingLimit,j=q.col,k=q.col+1):(j=q.col,k=null,m=f.offset().left-1+o[0].length*b.opts.tableResizingLimit,n=g.offset().left-1+g.width()+parseFloat(g.css("padding-left")))):i-c.pageX<=b.opts.tableResizerOffset?(l=i,p.col>0?(m=i-la(p.col,o)+b.opts.tableResizingLimit,n=i+la(p.col-1,o)-b.opts.tableResizingLimit,j=p.col,k=p.col-1):(j=null,k=0,m=f.offset().left+o[0].length*b.opts.tableResizingLimit,n=g.offset().left-1+g.width()+parseFloat(g.css("padding-left")))):c.pageX-h<=b.opts.tableResizerOffset&&(l=h,q.col<o[q.row].length&&o[q.row][q.col+1]?(m=h-la(q.col+1,o)+b.opts.tableResizingLimit,n=h+la(q.col,o)-b.opts.tableResizingLimit,j=q.col+1,k=q.col):(j=q.col,k=null,m=g.offset().left+parseFloat(g.css("padding-left")),n=f.offset().left-1+f.width()-o[0].length*b.opts.tableResizingLimit)),ya||ba(),ya.data("table",f),ya.data("first",j),ya.data("second",k),ya.data("instance",b),b.$wp.append(ya);var t=l-b.win.pageXOffset-b.opts.tableResizerOffset-b.$wp.offset().left,u=r-b.$wp.offset().top+b.$wp.scrollTop();b.opts.iframe&&(t+=b.$iframe.offset().left,u+=b.$iframe.offset().top,m+=b.$iframe.offset().left,n+=b.$iframe.offset().left),ya.data("max-left",m),ya.data("max-right",n),ya.data("origin",l-b.win.pageXOffset),ya.css("top",u),ya.css("left",t),ya.css("height",s),ya.find("div").css("height",s),ya.css("padding-left",b.opts.tableResizerOffset),ya.css("padding-right",b.opts.tableResizerOffset),ya.show()}else b.core.sameInstance(ya)&&ca()}}function fa(c,d){if(b.$box.find(".fr-line-breaker").is(":visible"))return!1;za||qa(),b.$box.append(za),za.data("instance",b);var e=a(d),f=e.find("tr:first"),g=c.pageX,h=0,i=0;b.opts.iframe&&(h+=b.$iframe.offset().left-b.helpers.scrollLeft(),i+=b.$iframe.offset().top-b.helpers.scrollTop());var j;f.find("th, td").each(function(){var c=a(this);return c.offset().left<=g&&g<c.offset().left+c.outerWidth()/2?(j=parseInt(za.find("a").css("width"),10),za.css("top",i+c.offset().top-b.$box.offset().top-b.win.pageYOffset-j-5),za.css("left",h+c.offset().left-b.$box.offset().left-b.win.pageXOffset-j/2),za.data("selected-cell",c),za.data("position","before"),za.addClass("fr-visible"),!1):c.offset().left+c.outerWidth()/2<=g&&g<c.offset().left+c.outerWidth()?(j=parseInt(za.find("a").css("width"),10),za.css("top",i+c.offset().top-b.$box.offset().top-b.win.pageYOffset-j-5),za.css("left",h+c.offset().left-b.$box.offset().left+c.outerWidth()-b.win.pageXOffset-j/2),za.data("selected-cell",c),za.data("position","after"),za.addClass("fr-visible"),!1):void 0})}function ga(c,d){if(b.$box.find(".fr-line-breaker").is(":visible"))return!1;za||qa(),b.$box.append(za),za.data("instance",b);var e=a(d),f=c.pageY,g=0,h=0;b.opts.iframe&&(g+=b.$iframe.offset().left-b.helpers.scrollLeft(),h+=b.$iframe.offset().top-b.helpers.scrollTop());var i;e.find("tr").each(function(){var c=a(this);return c.offset().top<=f&&f<c.offset().top+c.outerHeight()/2?(i=parseInt(za.find("a").css("width"),10),za.css("top",h+c.offset().top-b.$box.offset().top-b.win.pageYOffset-i/2),za.css("left",g+c.offset().left-b.$box.offset().left-b.win.pageXOffset-i-5),za.data("selected-cell",c.find("td:first")),za.data("position","above"),za.addClass("fr-visible"),!1):c.offset().top+c.outerHeight()/2<=f&&f<c.offset().top+c.outerHeight()?(i=parseInt(za.find("a").css("width"),10),za.css("top",h+c.offset().top-b.$box.offset().top+c.outerHeight()-b.win.pageYOffset-i/2),za.css("left",g+c.offset().left-b.$box.offset().left-b.win.pageXOffset-i-5),za.data("selected-cell",c.find("td:first")),za.data("position","below"),za.addClass("fr-visible"),!1):void 0})}function ha(c,d){if(0===ta().length){var e,f,g;if(d&&("HTML"==d.tagName||"BODY"==d.tagName||b.node.isElement(d)))for(e=1;e<=b.opts.tableInsertHelperOffset;e++){if(f=b.doc.elementFromPoint(c.pageX-b.win.pageXOffset,c.pageY-b.win.pageYOffset+e),a(f).hasClass("fr-tooltip"))return!0;if(f&&("TH"==f.tagName||"TD"==f.tagName||"TABLE"==f.tagName)&&(a(f).parents(".fr-wrapper").length||b.opts.iframe))return fa(c,a(f).closest("table")),!0;if(g=b.doc.elementFromPoint(c.pageX-b.win.pageXOffset+e,c.pageY-b.win.pageYOffset),a(g).hasClass("fr-tooltip"))return!0;if(g&&("TH"==g.tagName||"TD"==g.tagName||"TABLE"==g.tagName)&&(a(g).parents(".fr-wrapper").length||b.opts.iframe))return ga(c,a(g).closest("table")),!0}b.core.sameInstance(za)&&da()}}function ia(a){Da=null;var c=b.doc.elementFromPoint(a.pageX-b.win.pageXOffset,a.pageY-b.win.pageYOffset);b.opts.tableResizer&&(!b.popups.areVisible()||b.popups.areVisible()&&b.popups.isVisible("table.edit"))&&ea(a,c),!b.opts.tableInsertHelper||b.popups.areVisible()||b.$tb.hasClass("fr-inline")&&b.$tb.is(":visible")||ha(a,c)}function ja(){if(Ea){var a=ya.data("table"),c=a.offset().top-b.win.pageYOffset;b.opts.iframe&&(c+=b.$iframe.offset().top-b.helpers.scrollTop()),ya.css("top",c)}}function ka(){var c=ya.data("origin"),d=ya.data("release-position");if(c!==d){var e=ya.data("first"),f=ya.data("second"),g=ya.data("table"),h=g.outerWidth();if(b.undo.canDo()||b.undo.saveStep(),null!==e&&null!==f){var i,j,k,l=J(g),m=[],n=[],o=[],p=[];for(i=0;i<l.length;i++)j=a(l[i][e]),k=a(l[i][f]),m[i]=j.outerWidth(),o[i]=k.outerWidth(),n[i]=m[i]/h*100,p[i]=o[i]/h*100;for(i=0;i<l.length;i++){j=a(l[i][e]),k=a(l[i][f]);var q=(n[i]*(m[i]+d-c)/m[i]).toFixed(4);j.css("width",q+"%"),k.css("width",(n[i]+p[i]-q).toFixed(4)+"%")}}else{var r,s=g.parent(),t=h/s.width()*100,u=(parseInt(g.css("margin-left"),10)||0)/s.width()*100,v=(parseInt(g.css("margin-right"),10)||0)/s.width()*100;"rtl"==b.opts.direction&&0===f||"rtl"!=b.opts.direction&&0!==f?(r=(h+d-c)/h*t,g.css("margin-right","calc(100% - "+Math.round(r).toFixed(4)+"% - "+Math.round(u).toFixed(4)+"%)")):("rtl"==b.opts.direction&&0!==f||"rtl"!=b.opts.direction&&0===f)&&(r=(h-d+c)/h*t,g.css("margin-left","calc(100% - "+Math.round(r).toFixed(4)+"% - "+Math.round(v).toFixed(4)+"%)")),g.css("width",Math.round(r).toFixed(4)+"%")}b.selection.restore(),b.undo.saveStep()}ya.removeData("origin"),ya.removeData("release-position"),ya.removeData("first"),ya.removeData("second"),ya.removeData("table")}function la(b,c){var d,e=a(c[0][b]).outerWidth(); -for(d=1;d<c.length;d++)e=Math.min(e,a(c[d][b]).outerWidth());return e}function ma(a,b,c){var d,e=0;for(d=a;b>=d;d++)e+=la(d,c);return e}function na(a){if(ta().length>1&&Ba&&O(),Ba===!1&&Aa===!1&&Ea===!1)Da&&clearTimeout(Da),(!b.edit.isDisabled()||b.popups.isVisible("table.edit"))&&(Da=setTimeout(ia,30,a));else if(Ea){var c=a.pageX-b.win.pageXOffset;b.opts.iframe&&(c+=b.$iframe.offset().left);var d=ya.data("max-left"),e=ya.data("max-right");c>=d&&e>=c?ya.css("left",c-b.opts.tableResizerOffset-b.$wp.offset().left):d>c&&parseFloat(ya.css("left"),10)>d-b.opts.tableResizerOffset?ya.css("left",d-b.opts.tableResizerOffset-b.$wp.offset().left):c>e&&parseFloat(ya.css("left"),10)<e-b.opts.tableResizerOffset&&ya.css("left",e-b.opts.tableResizerOffset-b.$wp.offset().left)}else Ba&&da()}function oa(c){b.node.isEmpty(c.get(0))?c.prepend(a.FE.MARKERS):c.prepend(a.FE.START_MARKER).append(a.FE.END_MARKER)}function pa(c){var d=c.which;if(d==a.FE.KEYCODE.TAB){var e;if(ta().length>0)e=b.$el.find(".fr-selected-cell:last");else{var f=b.selection.element();"TD"==f.tagName||"TH"==f.tagName?e=a(f):f!=b.el&&(a(f).parentsUntil(b.$el,"td").length>0?e=a(f).parents("td:first"):a(f).parentsUntil(b.$el,"th").length>0&&(e=a(f).parents("th:first")))}if(e)return c.preventDefault(),a(b.selection.element()).parents("ol, ul").length>0&&(a(b.selection.element()).parents("li").prev().length>0||a(b.selection.element()).is("li")&&a(b.selection.element()).prev().length>0)?!0:(U(),c.shiftKey?e.prev().length>0?oa(e.prev()):e.closest("tr").length>0&&e.closest("tr").prev().length>0?oa(e.closest("tr").prev().find("td:last")):e.closest("tbody").length>0&&e.closest("table").find("thead tr").length>0&&oa(e.closest("table").find("thead tr th:last")):e.next().length>0?oa(e.next()):e.closest("tr").length>0&&e.closest("tr").next().length>0?oa(e.closest("tr").next().find("td:first")):e.closest("thead").length>0&&e.closest("table").find("tbody tr").length>0?oa(e.closest("table").find("tbody tr td:first")):(e.addClass("fr-selected-cell"),u("below"),N(),oa(e.closest("tr").next().find("td:first"))),b.selection.restore(),!1)}}function qa(){b.shared.$ti_helper||(b.shared.$ti_helper=a('<div class="fr-insert-helper"><a class="fr-floating-btn" role="button" tabIndex="-1" title="'+b.language.translate("Insert")+'"><svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M22,16.75 L16.75,16.75 L16.75,22 L15.25,22.000 L15.25,16.75 L10,16.75 L10,15.25 L15.25,15.25 L15.25,10 L16.75,10 L16.75,15.25 L22,15.25 L22,16.75 Z"/></svg></a></div>'),b.events.bindClick(b.shared.$ti_helper,"a",function(){var a=za.data("selected-cell"),c=za.data("position"),d=za.data("instance")||b;"before"==c?(b.undo.saveStep(),a.addClass("fr-selected-cell"),d.table.insertColumn(c),a.removeClass("fr-selected-cell"),b.undo.saveStep()):"after"==c?(b.undo.saveStep(),a.addClass("fr-selected-cell"),d.table.insertColumn(c),a.removeClass("fr-selected-cell"),b.undo.saveStep()):"above"==c?(b.undo.saveStep(),a.addClass("fr-selected-cell"),d.table.insertRow(c),a.removeClass("fr-selected-cell"),b.undo.saveStep()):"below"==c&&(b.undo.saveStep(),a.addClass("fr-selected-cell"),d.table.insertRow(c),a.removeClass("fr-selected-cell"),b.undo.saveStep()),da()}),b.events.on("shared.destroy",function(){b.shared.$ti_helper.html("").removeData().remove(),b.shared.$ti_helper=null},!0),b.events.$on(b.shared.$ti_helper,"mousemove",function(a){a.stopPropagation()},!0),b.events.$on(a(b.o_win),"scroll",function(){da()},!0),b.events.$on(b.$wp,"scroll",function(){da()},!0)),za=b.shared.$ti_helper,b.events.on("destroy",function(){za=null}),b.tooltip.bind(b.$box,".fr-insert-helper > a.fr-floating-btn")}function ra(){Ca=null,clearTimeout(Da)}function sa(){ta().length>0?d():(b.popups.hide("table.insert"),b.toolbar.showInline())}function ta(){return b.el.querySelectorAll(".fr-selected-cell")}function ua(){var c=ta();if(c.length){for(var d=c[0];d&&"TABLE"!=d.tagName&&d.parentNode!=b.el;)d=d.parentNode;return a(d&&"TABLE"==d.tagName?d:[])}return a([])}function va(c){if(c.altKey&&c.which==a.FE.KEYCODE.SPACE){var e,f=b.selection.element();if("TD"==f.tagName||"TH"==f.tagName?e=f:a(f).closest("td").length>0?e=a(f).closest("td").get(0):a(f).closest("th").length>0&&(e=a(f).closest("th").get(0)),e)return c.preventDefault(),S(e,e),d(),!1}}function wa(c){var d=ta();if(d.length>0){var e,f,g=J(),h=c.which;1==d.length?(e=d[0],f=e):(e=b.el.querySelector(".fr-cell-fixed"),f=b.el.querySelector(".fr-cell-handler"));var i=K(f,g);if(a.FE.KEYCODE.ARROW_RIGHT==h){if(i.col<g[0].length-1)return S(e,g[i.row][i.col+1]),!1}else if(a.FE.KEYCODE.ARROW_DOWN==h){if(i.row<g.length-1)return S(e,g[i.row+1][i.col]),!1}else if(a.FE.KEYCODE.ARROW_LEFT==h){if(i.col>0)return S(e,g[i.row][i.col-1]),!1}else if(a.FE.KEYCODE.ARROW_UP==h&&i.row>0)return S(e,g[i.row-1][i.col]),!1}}function xa(){if(!b.$wp)return!1;if(!b.helpers.isMobile()){Ba=!1,Aa=!1,Ea=!1,b.events.$on(b.$el,"mousedown",V),b.popups.onShow("image.edit",function(){N(),Ba=!1,Aa=!1}),b.popups.onShow("link.edit",function(){N(),Ba=!1,Aa=!1}),b.events.on("commands.mousedown",function(a){a.parents(".fr-toolbar").length>0&&N()}),b.events.$on(b.$el,"mouseenter","th, td",X),b.events.$on(b.$win,"mouseup",W),b.opts.iframe&&b.events.$on(a(b.o_win),"mouseup",W),b.events.$on(b.$win,"mousemove",na),b.events.$on(a(b.o_win),"scroll",ja),b.events.on("contentChanged",function(){ta().length>0&&(d(),b.$el.find("img").on("load.selected-cells",function(){a(this).off("load.selected-cells"),ta().length>0&&d()}))}),b.events.$on(a(b.o_win),"resize",function(){N()}),b.events.on("toolbar.esc",function(){return ta().length>0?(b.events.disableBlur(),b.events.focus(),!1):void 0},!0),b.events.$on(a(b.o_win),"keydown",function(){Ba&&Aa&&(Ba=!1,Aa=!1,b.$el.removeClass("fr-no-selection"),b.edit.on(),b.selection.setAtEnd(b.$el.find(".fr-selected-cell:last").get(0)),b.selection.restore(),N())}),b.events.$on(b.$el,"keydown",function(a){a.shiftKey?wa(a)===!1&&setTimeout(function(){d()},0):aa(a)}),b.events.on("keydown",function(c){if(pa(c)===!1)return!1;var d=ta();if(d.length>0){if(d.length>0&&b.keys.ctrlKey(c)&&c.which==a.FE.KEYCODE.A)return N(),b.popups.isVisible("table.edit")&&b.popups.hide("table.edit"),d=[],!0;if(c.which==a.FE.KEYCODE.ESC&&b.popups.isVisible("table.edit"))return N(),b.popups.hide("table.edit"),c.preventDefault(),c.stopPropagation(),c.stopImmediatePropagation(),d=[],!1;if(d.length>1&&(c.which==a.FE.KEYCODE.BACKSPACE||c.which==a.FE.KEYCODE.DELETE)){b.undo.saveStep();for(var e=0;e<d.length;e++)a(d[e]).html("<br>"),e==d.length-1&&a(d[e]).prepend(a.FE.MARKERS);return b.selection.restore(),b.undo.saveStep(),d=[],!1}if(d.length>1&&c.which!=a.FE.KEYCODE.F10&&!b.keys.isBrowserAction(c))return c.preventDefault(),d=[],!1}else if(d=[],va(c)===!1)return!1},!0);var c=[];b.events.on("html.beforeGet",function(){c=ta();for(var a=0;a<c.length;a++)c[a].className=(c[a].className||"").replace(/fr-selected-cell/g,"")}),b.events.on("html.afterGet",function(){for(var a=0;a<c.length;a++)c[a].className=(c[a].className?c[a].className.trim()+" ":"")+"fr-selected-cell";c=[]}),g(!0),k(!0)}b.events.on("destroy",ra)}var ya,za,Aa,Ba,Ca,Da,Ea;return{_init:xa,insert:q,remove:r,insertRow:u,deleteRow:v,insertColumn:w,deleteColumn:x,mergeCells:C,splitCellVertically:E,splitCellHorizontally:D,addHeader:s,removeHeader:t,setBackground:F,showInsertPopup:c,showEditPopup:d,showColorsPopup:e,back:sa,verticalAlign:G,horizontalAlign:H,applyStyle:I,selectedTable:ua,selectedCells:ta,customColor:n}},a.FE.DefineIcon("insertTable",{NAME:"table"}),a.FE.RegisterCommand("insertTable",{title:"Insert Table",undo:!1,focus:!0,refreshOnCallback:!1,popup:!0,callback:function(){this.popups.isVisible("table.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("table.insert")):this.table.showInsertPopup()},plugin:"table"}),a.FE.RegisterCommand("tableInsert",{callback:function(a,b,c){this.table.insert(b,c),this.popups.hide("table.insert")}}),a.FE.DefineIcon("tableHeader",{NAME:"header",FA5NAME:"heading"}),a.FE.RegisterCommand("tableHeader",{title:"Table Header",focus:!1,toggle:!0,callback:function(){var a=this.popups.get("table.edit").find('.fr-command[data-cmd="tableHeader"]');a.hasClass("fr-active")?this.table.removeHeader():this.table.addHeader()},refresh:function(a){var b=this.table.selectedTable();b.length>0&&(0===b.find("th").length?a.removeClass("fr-active").attr("aria-pressed",!1):a.addClass("fr-active").attr("aria-pressed",!0))}}),a.FE.DefineIcon("tableRows",{NAME:"bars"}),a.FE.RegisterCommand("tableRows",{type:"dropdown",focus:!1,title:"Row",options:{above:"Insert row above",below:"Insert row below","delete":"Delete row"},html:function(){var b='<ul class="fr-dropdown-list" role="presentation">',c=a.FE.COMMANDS.tableRows.options;for(var d in c)c.hasOwnProperty(d)&&(b+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableRows" data-param1="'+d+'" title="'+this.language.translate(c[d])+'">'+this.language.translate(c[d])+"</a></li>");return b+="</ul>"},callback:function(a,b){"above"==b||"below"==b?this.table.insertRow(b):this.table.deleteRow()}}),a.FE.DefineIcon("tableColumns",{NAME:"bars fa-rotate-90"}),a.FE.RegisterCommand("tableColumns",{type:"dropdown",focus:!1,title:"Column",options:{before:"Insert column before",after:"Insert column after","delete":"Delete column"},html:function(){var b='<ul class="fr-dropdown-list" role="presentation">',c=a.FE.COMMANDS.tableColumns.options;for(var d in c)c.hasOwnProperty(d)&&(b+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableColumns" data-param1="'+d+'" title="'+this.language.translate(c[d])+'">'+this.language.translate(c[d])+"</a></li>");return b+="</ul>"},callback:function(a,b){"before"==b||"after"==b?this.table.insertColumn(b):this.table.deleteColumn()}}),a.FE.DefineIcon("tableCells",{NAME:"square-o",FA5NAME:"square"}),a.FE.RegisterCommand("tableCells",{type:"dropdown",focus:!1,title:"Cell",options:{merge:"Merge cells","vertical-split":"Vertical split","horizontal-split":"Horizontal split"},html:function(){var b='<ul class="fr-dropdown-list" role="presentation">',c=a.FE.COMMANDS.tableCells.options;for(var d in c)c.hasOwnProperty(d)&&(b+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableCells" data-param1="'+d+'" title="'+this.language.translate(c[d])+'">'+this.language.translate(c[d])+"</a></li>");return b+="</ul>"},callback:function(a,b){"merge"==b?this.table.mergeCells():"vertical-split"==b?this.table.splitCellVertically():this.table.splitCellHorizontally()},refreshOnShow:function(a,b){this.$el.find(".fr-selected-cell").length>1?(b.find('a[data-param1="vertical-split"]').addClass("fr-disabled").attr("aria-disabled",!0),b.find('a[data-param1="horizontal-split"]').addClass("fr-disabled").attr("aria-disabled",!0),b.find('a[data-param1="merge"]').removeClass("fr-disabled").attr("aria-disabled",!1)):(b.find('a[data-param1="merge"]').addClass("fr-disabled").attr("aria-disabled",!0),b.find('a[data-param1="vertical-split"]').removeClass("fr-disabled").attr("aria-disabled",!1),b.find('a[data-param1="horizontal-split"]').removeClass("fr-disabled").attr("aria-disabled",!1))}}),a.FE.DefineIcon("tableRemove",{NAME:"trash"}),a.FE.RegisterCommand("tableRemove",{title:"Remove Table",focus:!1,callback:function(){this.table.remove()}}),a.FE.DefineIcon("tableStyle",{NAME:"paint-brush"}),a.FE.RegisterCommand("tableStyle",{title:"Table Style",type:"dropdown",focus:!1,html:function(){var a='<ul class="fr-dropdown-list" role="presentation">',b=this.opts.tableStyles;for(var c in b)b.hasOwnProperty(c)&&(a+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableStyle" data-param1="'+c+'" title="'+this.language.translate(b[c])+'">'+this.language.translate(b[c])+"</a></li>");return a+="</ul>"},callback:function(a,b){this.table.applyStyle(b,this.$el.find(".fr-selected-cell").closest("table"),this.opts.tableMultipleStyles,this.opts.tableStyles)},refreshOnShow:function(b,c){var d=this.$el.find(".fr-selected-cell").closest("table");d&&c.find(".fr-command").each(function(){var b=a(this).data("param1"),c=d.hasClass(b);a(this).toggleClass("fr-active",c).attr("aria-selected",c)})}}),a.FE.DefineIcon("tableCellBackground",{NAME:"tint"}),a.FE.RegisterCommand("tableCellBackground",{title:"Cell Background",focus:!1,popup:!0,callback:function(){this.table.showColorsPopup()}}),a.FE.RegisterCommand("tableCellBackgroundColor",{undo:!0,focus:!1,callback:function(a,b){this.table.setBackground(b)}}),a.FE.DefineIcon("tableBack",{NAME:"arrow-left"}),a.FE.RegisterCommand("tableBack",{title:"Back",undo:!1,focus:!1,back:!0,callback:function(){this.table.back()},refresh:function(a){0!==this.table.selectedCells().length||this.opts.toolbarInline?(a.removeClass("fr-hidden"),a.next(".fr-separator").removeClass("fr-hidden")):(a.addClass("fr-hidden"),a.next(".fr-separator").addClass("fr-hidden"))}}),a.FE.DefineIcon("tableCellVerticalAlign",{NAME:"arrows-v",FA5NAME:"arrows-alt-v"}),a.FE.RegisterCommand("tableCellVerticalAlign",{type:"dropdown",focus:!1,title:"Vertical Align",options:{Top:"Align Top",Middle:"Align Middle",Bottom:"Align Bottom"},html:function(){var b='<ul class="fr-dropdown-list" role="presentation">',c=a.FE.COMMANDS.tableCellVerticalAlign.options;for(var d in c)c.hasOwnProperty(d)&&(b+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableCellVerticalAlign" data-param1="'+d.toLowerCase()+'" title="'+this.language.translate(c[d])+'">'+this.language.translate(d)+"</a></li>");return b+="</ul>"},callback:function(a,b){this.table.verticalAlign(b)},refreshOnShow:function(a,b){b.find('.fr-command[data-param1="'+this.$el.find(".fr-selected-cell").css("vertical-align")+'"]').addClass("fr-active").attr("aria-selected",!0)}}),a.FE.DefineIcon("tableCellHorizontalAlign",{NAME:"align-left"}),a.FE.DefineIcon("align-left",{NAME:"align-left"}),a.FE.DefineIcon("align-right",{NAME:"align-right"}),a.FE.DefineIcon("align-center",{NAME:"align-center"}),a.FE.DefineIcon("align-justify",{NAME:"align-justify"}),a.FE.RegisterCommand("tableCellHorizontalAlign",{type:"dropdown",focus:!1,title:"Horizontal Align",options:{left:"Align Left",center:"Align Center",right:"Align Right",justify:"Align Justify"},html:function(){var b='<ul class="fr-dropdown-list" role="presentation">',c=a.FE.COMMANDS.tableCellHorizontalAlign.options;for(var d in c)c.hasOwnProperty(d)&&(b+='<li role="presentation"><a class="fr-command fr-title" tabIndex="-1" role="option" data-cmd="tableCellHorizontalAlign" data-param1="'+d+'" title="'+this.language.translate(c[d])+'">'+this.icon.create("align-"+d)+'<span class="fr-sr-only">'+this.language.translate(c[d])+"</span></a></li>");return b+="</ul>"},callback:function(a,b){this.table.horizontalAlign(b)},refresh:function(b){var c=this.table.selectedCells();c.length&&b.find("> *:first").replaceWith(this.icon.create("align-"+this.helpers.getAlignment(a(c[0]))))},refreshOnShow:function(a,b){b.find('.fr-command[data-param1="'+this.helpers.getAlignment(this.$el.find(".fr-selected-cell:first"))+'"]').addClass("fr-active").attr("aria-selected",!0)}}),a.FE.DefineIcon("tableCellStyle",{NAME:"magic"}),a.FE.RegisterCommand("tableCellStyle",{title:"Cell Style",type:"dropdown",focus:!1,html:function(){var a='<ul class="fr-dropdown-list" role="presentation">',b=this.opts.tableCellStyles;for(var c in b)b.hasOwnProperty(c)&&(a+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableCellStyle" data-param1="'+c+'" title="'+this.language.translate(b[c])+'">'+this.language.translate(b[c])+"</a></li>");return a+="</ul>"},callback:function(a,b){this.table.applyStyle(b,this.$el.find(".fr-selected-cell"),this.opts.tableCellMultipleStyles,this.opts.tableCellStyles)},refreshOnShow:function(b,c){var d=this.$el.find(".fr-selected-cell:first");d&&c.find(".fr-command").each(function(){var b=a(this).data("param1"),c=d.hasClass(b);a(this).toggleClass("fr-active",c).attr("aria-selected",c)})}}),a.FE.RegisterCommand("tableCellBackgroundCustomColor",{title:"OK",undo:!0,callback:function(){this.table.customColor()}}),a.FE.DefineIcon("tableColorRemove",{NAME:"eraser"})}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/url.min.js b/Mobile.Search.Web/Scripts/froala-editor/js/plugins/url.min.js deleted file mode 100644 index dd13d68..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/url.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.FE.URLRegEx="(^| |\\u00A0)("+a.FE.LinkRegEx+"|([a-z0-9+-_.]{1,}@[a-z0-9+-_.]{1,}\\.[a-z0-9+-_]{1,}))$",a.FE.PLUGINS.url=function(b){function c(a,c,d){for(var e="";d.length&&"."==d[d.length-1];)e+=".",d=d.substring(0,d.length-1);var f=d;if(b.opts.linkConvertEmailAddress)b.helpers.isEmail(f)&&!/^mailto:.*/i.test(f)&&(f="mailto:"+f);else if(b.helpers.isEmail(f))return c+d;return/^((http|https|ftp|ftps|mailto|tel|sms|notes|data)\:)/i.test(f)||(f="//"+f),(c?c:"")+"<a"+(b.opts.linkAlwaysBlank?' target="_blank"':"")+(j?' rel="'+j+'"':"")+' data-fr-linked="true" href="'+f+'">'+d.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/&/g,"&")+"</a>"+e}function d(){return new RegExp(a.FE.URLRegEx,"gi")}function e(a){return b.opts.linkAlwaysNoFollow&&(j="nofollow"),b.opts.linkAlwaysBlank&&(b.opts.linkNoOpener&&(j?j+=" noopener":j="noopener"),b.opts.linkNoReferrer&&(j?j+=" noreferrer":j="noreferrer")),a.replace(d(),c)}function f(a){return a?"A"===a.tagName?!0:a.parentNode&&a.parentNode!=b.el?f(a.parentNode):!1:!1}function g(a){var b=a.split(" ");return b[b.length-1]}function h(){var c=b.selection.ranges(0),h=c.startContainer;if(!h||h.nodeType!==Node.TEXT_NODE)return!1;if(f(h))return!1;if(d().test(g(h.textContent))){a(h).before(e(h.textContent));var i=a(h.parentNode).find("a[data-fr-linked]");i.removeAttr("data-fr-linked"),h.parentNode.removeChild(h),b.events.trigger("url.linked",[i.get(0)])}else if(h.textContent.split(" ").length<=2&&h.previousSibling&&"A"===h.previousSibling.tagName){var j=h.previousSibling.innerText+h.textContent;d().test(g(j))&&(a(h.previousSibling).replaceWith(e(j)),h.parentNode.removeChild(h))}}function i(){b.events.on("keypress",function(a){!b.selection.isCollapsed()||"."!=a.key&&")"!=a.key&&"("!=a.key||h()},!0),b.events.on("keydown",function(c){var d=c.which;!b.selection.isCollapsed()||d!=a.FE.KEYCODE.ENTER&&d!=a.FE.KEYCODE.SPACE||h()},!0),b.events.on("paste.beforeCleanup",function(a){if(b.helpers.isURL(a)){var c=null;return b.opts.linkAlwaysBlank&&(b.opts.linkNoOpener&&(c?c+=" noopener":c="noopener"),b.opts.linkNoReferrer&&(c?c+=" noreferrer":c="noreferrer")),"<a"+(b.opts.linkAlwaysBlank?' target="_blank"':"")+(c?' rel="'+c+'"':"")+' href="'+a+'" >'+a+"</a>"}})}var j=null;return{_init:i}}}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/video.min.js b/Mobile.Search.Web/Scripts/froala-editor/js/plugins/video.min.js deleted file mode 100644 index 53c5802..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/video.min.js +++ /dev/null @@ -1,8 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.POPUP_TEMPLATES,{"video.insert":"[_BUTTONS_][_BY_URL_LAYER_][_EMBED_LAYER_][_UPLOAD_LAYER_][_PROGRESS_BAR_]","video.edit":"[_BUTTONS_]","video.size":"[_BUTTONS_][_SIZE_LAYER_]"}),a.extend(a.FE.DEFAULTS,{videoAllowedTypes:["mp4","webm","ogg"],videoAllowedProviders:[".*"],videoDefaultAlign:"center",videoDefaultDisplay:"block",videoDefaultWidth:600,videoEditButtons:["videoReplace","videoRemove","|","videoDisplay","videoAlign","videoSize"],videoInsertButtons:["videoBack","|","videoByURL","videoEmbed","videoUpload"],videoMaxSize:52428800,videoMove:!0,videoResize:!0,videoSizeButtons:["videoBack","|"],videoSplitHTML:!1,videoTextNear:!0,videoUpload:!0,videoUploadMethod:"POST",videoUploadParam:"file",videoUploadParams:{},videoUploadToS3:!1,videoUploadURL:"https://i.froala.com/upload"}),a.FE.VIDEO_PROVIDERS=[{test_regex:/^.*((youtu.be)|(youtube.com))\/((v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))?\??v?=?([^#\&\?]*).*/,url_regex:/(?:https?:\/\/)?(?:www\.)?(?:m\.)?(?:youtube\.com|youtu\.be)\/(?:watch\?v=|embed\/)?([0-9a-zA-Z_\-]+)(.+)?/g,url_text:"https://www.youtube.com/embed/$1",html:'<iframe width="640" height="360" src="{url}?wmode=opaque" frameborder="0" allowfullscreen></iframe>',provider:"youtube"},{test_regex:/^.*(?:vimeo.com)\/(?:channels(\/\w+\/)?|groups\/*\/videos\/\u200b\d+\/|video\/|)(\d+)(?:$|\/|\?)/,url_regex:/(?:https?:\/\/)?(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/(?:[^\/]*)\/videos\/|album\/(?:\d+)\/video\/|video\/|)(\d+)(?:[a-zA-Z0-9_\-]+)?/i,url_text:"https://player.vimeo.com/video/$1",html:'<iframe width="640" height="360" src="{url}" frameborder="0" allowfullscreen></iframe>',provider:"vimeo"},{test_regex:/^.+(dailymotion.com|dai.ly)\/(video|hub)?\/?([^_]+)[^#]*(#video=([^_&]+))?/,url_regex:/(?:https?:\/\/)?(?:www\.)?(?:dailymotion\.com|dai\.ly)\/(?:video|hub)?\/?(.+)/g,url_text:"https://www.dailymotion.com/embed/video/$1",html:'<iframe width="640" height="360" src="{url}" frameborder="0" allowfullscreen></iframe>',provider:"dailymotion"},{test_regex:/^.+(screen.yahoo.com)\/[^_&]+/,url_regex:"",url_text:"",html:'<iframe width="640" height="360" src="{url}?format=embed" frameborder="0" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true" allowtransparency="true"></iframe>',provider:"yahoo"},{test_regex:/^.+(rutube.ru)\/[^_&]+/,url_regex:/(?:https?:\/\/)?(?:www\.)?(?:rutube\.ru)\/(?:video)?\/?(.+)/g,url_text:"https://rutube.ru/play/embed/$1",html:'<iframe width="640" height="360" src="{url}" frameborder="0" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true" allowtransparency="true"></iframe>',provider:"rutube"},{test_regex:/^(?:.+)vidyard.com\/(?:watch)?\/?([^.&\/]+)\/?(?:[^_.&]+)?/,url_regex:/^(?:.+)vidyard.com\/(?:watch)?\/?([^.&\/]+)\/?(?:[^_.&]+)?/g,url_text:"https://play.vidyard.com/$1",html:'<iframe width="640" height="360" src="{url}" frameborder="0" allowfullscreen></iframe>',provider:"vidyard"}],a.FE.VIDEO_EMBED_REGEX=/^\W*((<iframe.*><\/iframe>)|(<embed.*>))\W*$/i,a.FE.PLUGINS.video=function(b){function c(){var a=b.popups.get("video.insert"),c=a.find(".fr-video-by-url-layer input");c.val("").trigger("change");var d=a.find(".fr-video-embed-layer textarea");d.val("").trigger("change"),d=a.find(".fr-video-upload-layer input"),d.val("").trigger("change")}function d(){var a=b.$tb.find('.fr-command[data-cmd="insertVideo"]'),c=b.popups.get("video.insert");if(c||(c=f()),o(),!c.hasClass("fr-active"))if(b.popups.refresh("video.insert"),b.popups.setContainer("video.insert",b.$tb),a.is(":visible")){var d=a.offset().left+a.outerWidth()/2,e=a.offset().top+(b.opts.toolbarBottom?10:a.outerHeight()-10);b.popups.show("video.insert",d,e,a.outerHeight())}else b.position.forSelection(c),b.popups.show("video.insert")}function e(){var a=b.popups.get("video.edit");if(a||(a=T()),a){b.popups.setContainer("video.edit",b.$sc),b.popups.refresh("video.edit");var c=ra.find("iframe, embed, video"),d=c.offset().left+c.outerWidth()/2,e=c.offset().top+c.outerHeight();b.popups.show("video.edit",d,e,c.outerHeight())}}function f(a){if(a)return b.popups.onRefresh("video.insert",c),b.popups.onHide("image.insert",ea),!0;var d="";b.opts.videoUpload||b.opts.videoInsertButtons.splice(b.opts.videoInsertButtons.indexOf("videoUpload"),1),b.opts.videoInsertButtons.length>1&&(d='<div class="fr-buttons">'+b.button.buildList(b.opts.videoInsertButtons)+"</div>");var e,f="",g=b.opts.videoInsertButtons.indexOf("videoUpload"),h=b.opts.videoInsertButtons.indexOf("videoByURL"),i=b.opts.videoInsertButtons.indexOf("videoEmbed");h>=0&&(e=" fr-active",(h>g&&g>=0||h>i&&i>=0)&&(e=""),f='<div class="fr-video-by-url-layer fr-layer'+e+'" id="fr-video-by-url-layer-'+b.id+'"><div class="fr-input-line"><input id="fr-video-by-url-layer-text-'+b.id+'" type="text" placeholder="'+b.language.translate("Paste in a video URL")+'" tabIndex="1" aria-required="true"></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="videoInsertByURL" tabIndex="2" role="button">'+b.language.translate("Insert")+"</button></div></div>");var j="";i>=0&&(e=" fr-active",(i>g&&g>=0||i>h&&h>=0)&&(e=""),j='<div class="fr-video-embed-layer fr-layer'+e+'" id="fr-video-embed-layer-'+b.id+'"><div class="fr-input-line"><textarea id="fr-video-embed-layer-text'+b.id+'" type="text" placeholder="'+b.language.translate("Embedded Code")+'" tabIndex="1" aria-required="true" rows="5"></textarea></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="videoInsertEmbed" tabIndex="2" role="button">'+b.language.translate("Insert")+"</button></div></div>");var k="";g>=0&&(e=" fr-active",(g>i&&i>=0||g>h&&h>=0)&&(e=""),k='<div class="fr-video-upload-layer fr-layer'+e+'" id="fr-video-upload-layer-'+b.id+'"><strong>'+b.language.translate("Drop video")+"</strong><br>("+b.language.translate("or click")+')<div class="fr-form"><input type="file" accept="video/'+b.opts.videoAllowedTypes.join(", video/").toLowerCase()+'" tabIndex="-1" aria-labelledby="fr-video-upload-layer-'+b.id+'" role="button"></div></div>');var l='<div class="fr-video-progress-bar-layer fr-layer"><h3 tabIndex="-1" class="fr-message">Uploading</h3><div class="fr-loader"><span class="fr-progress"></span></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-dismiss" data-cmd="videoDismissError" tabIndex="2" role="button">OK</button></div></div>',m={buttons:d,by_url_layer:f,embed_layer:j,upload_layer:k,progress_bar:l},n=b.popups.create("video.insert",m);return Q(n),n}function g(a){var c,d,e=b.popups.get("video.insert");if(!ra&&!b.opts.toolbarInline){var f=b.$tb.find('.fr-command[data-cmd="insertVideo"]');c=f.offset().left+f.outerWidth()/2,d=f.offset().top+(b.opts.toolbarBottom?10:f.outerHeight()-10)}b.opts.toolbarInline&&(d=e.offset().top-b.helpers.getPX(e.css("margin-top")),e.hasClass("fr-above")&&(d+=e.outerHeight())),e.find(".fr-layer").removeClass("fr-active"),e.find(".fr-"+a+"-layer").addClass("fr-active"),b.popups.show("video.insert",c,d,0),b.accessibility.focusPopup(e)}function h(a){var c=b.popups.get("video.insert");c.find(".fr-video-by-url-layer").hasClass("fr-active")&&a.addClass("fr-active").attr("aria-pressed",!0)}function i(a){var c=b.popups.get("video.insert");c.find(".fr-video-embed-layer").hasClass("fr-active")&&a.addClass("fr-active").attr("aria-pressed",!0)}function j(a){var c=b.popups.get("video.insert");c.find(".fr-video-upload-layer").hasClass("fr-active")&&a.addClass("fr-active").attr("aria-pressed",!0)}function k(a){b.events.focus(!0),b.selection.restore();var c=!1;ra&&(da(),c=!0),b.html.insert('<span contenteditable="false" draggable="true" class="fr-jiv fr-video">'+a+"</span>",!1,b.opts.videoSplitHTML),b.popups.hide("video.insert");var d=b.$el.find(".fr-jiv");d.removeClass("fr-jiv"),fa(d,b.opts.videoDefaultDisplay,b.opts.videoDefaultAlign),d.toggleClass("fr-draggable",b.opts.videoMove),b.events.trigger(c?"video.replaced":"video.inserted",[d])}function l(){var c=a(this);b.popups.hide("video.insert"),c.removeClass("fr-uploading"),c.parent().next().is("br")&&c.parent().next().remove(),t(c.parent()),b.events.trigger("video.loaded",[c.parent()])}function m(a,c,d,e,f){b.edit.off(),p("Loading video"),c&&(a=b.helpers.sanitizeURL(a));var g=function(){var c,g;if(e){b.undo.canDo()||e.find("video").hasClass("fr-uploading")||b.undo.saveStep();var h=e.find("video").data("fr-old-src"),i=e.data("fr-replaced");e.data("fr-replaced",!1),b.$wp?(c=e.clone(),c.find("video").removeData("fr-old-src").removeClass("fr-uploading"),c.find("video").off("canplay"),h&&e.find("video").attr("src",h),e.replaceWith(c)):c=e;for(var j=c.find("video").get(0).attributes,k=0;k<j.length;k++){var m=j[k];0===m.nodeName.indexOf("data-")&&c.find("video").removeAttr(m.nodeName)}if("undefined"!=typeof d)for(g in d)d.hasOwnProperty(g)&&"link"!=g&&c.find("video").attr("data-"+g,d[g]);c.find("video").on("canplay",l),c.find("video").attr("src",a),b.edit.on(),H(),b.undo.saveStep(),b.$el.blur(),b.events.trigger(i?"video.replaced":"video.inserted",[c,f])}else c=A(a,d,l),H(),b.undo.saveStep(),b.events.trigger("video.inserted",[c,f])};n("Loading video"),g()}function n(a){var c=b.popups.get("video.insert");if(c||(c=f()),c.find(".fr-layer.fr-active").removeClass("fr-active").addClass("fr-pactive"),c.find(".fr-video-progress-bar-layer").addClass("fr-active"),c.find(".fr-buttons").hide(),ra){var d=ra.find("video");b.popups.setContainer("video.insert",b.$sc);var e=d.offset().left+d.width()/2,g=d.offset().top+d.height();b.popups.show("video.insert",e,g,d.outerHeight())}"undefined"==typeof a&&p(b.language.translate("Uploading"),0)}function o(a){var c=b.popups.get("video.insert");if(c&&(c.find(".fr-layer.fr-pactive").addClass("fr-active").removeClass("fr-pactive"),c.find(".fr-video-progress-bar-layer").removeClass("fr-active"),c.find(".fr-buttons").show(),a||b.$el.find("video.fr-error").length)){if(b.events.focus(),b.$el.find("video.fr-error").length&&(b.$el.find("video.fr-error").parent().remove(),b.undo.saveStep(),b.undo.run(),b.undo.dropRedo()),!b.$wp&&ra){var d=ra;K(!0),b.selection.setAfter(d.find("video").get(0)),b.selection.restore()}b.popups.hide("video.insert")}}function p(a,c){var d=b.popups.get("video.insert");if(d){var e=d.find(".fr-video-progress-bar-layer");e.find("h3").text(a+(c?" "+c+"%":"")),e.removeClass("fr-error"),c?(e.find("div").removeClass("fr-indeterminate"),e.find("div > span").css("width",c+"%")):e.find("div").addClass("fr-indeterminate")}}function q(a){n();var c=b.popups.get("video.insert"),d=c.find(".fr-video-progress-bar-layer");d.addClass("fr-error");var e=d.find("h3");e.text(a),b.events.disableBlur(),e.focus()}function r(c){if("undefined"==typeof c){var d=b.popups.get("video.insert");c=(d.find('.fr-video-by-url-layer input[type="text"]').val()||"").trim()}var e=null;if(/^http/.test(c)||(c="https://"+c),b.helpers.isURL(c))for(var f=0;f<a.FE.VIDEO_PROVIDERS.length;f++){var g=a.FE.VIDEO_PROVIDERS[f];if(g.test_regex.test(c)&&new RegExp(b.opts.videoAllowedProviders.join("|")).test(g.provider)){e=c.replace(g.url_regex,g.url_text),e=g.html.replace(/\{url\}/,e);break}}e?k(e):b.events.trigger("video.linkError",[c])}function s(c){if("undefined"==typeof c){var d=b.popups.get("video.insert");c=d.find(".fr-video-embed-layer textarea").val()||""}0!==c.length&&a.FE.VIDEO_EMBED_REGEX.test(c)?k(c):b.events.trigger("video.codeError",[c])}function t(a){J.call(a.get(0))}function u(a){try{if(b.events.trigger("video.uploaded",[a],!0)===!1)return b.edit.on(),!1;var c=JSON.parse(a);return c.link?c:(S(ta,a),!1)}catch(d){return S(va,a),!1}}function v(c){try{var d=a(c).find("Location").text(),e=a(c).find("Key").text();return b.events.trigger("video.uploadedToS3",[d,e,c],!0)===!1?(b.edit.on(),!1):d}catch(f){return S(va,c),!1}}function w(a){p("Loading video");var c=this.status,d=this.response,e=this.responseXML,f=this.responseText;try{if(b.opts.videoUploadToS3)if(201==c){var g=v(e);g&&m(g,!1,[],a,d||e)}else S(va,d||e);else if(c>=200&&300>c){var h=u(f);h&&m(h.link,!1,h,a,d||f)}else S(ua,d||f)}catch(i){S(va,d||f)}}function x(){S(va,this.response||this.responseText||this.responseXML)}function y(a){if(a.lengthComputable){var c=a.loaded/a.total*100|0;p(b.language.translate("Uploading"),c)}}function z(){b.edit.on(),o(!0)}function A(c,d,e){var f,g="";if(d&&"undefined"!=typeof d)for(f in d)d.hasOwnProperty(f)&&"link"!=f&&(g+=" data-"+f+'="'+d[f]+'"');var h=b.opts.videoDefaultWidth;h&&"auto"!=h&&(h+="px");var i=a('<span contenteditable="false" draggable="true" class="fr-video fr-dv'+b.opts.videoDefaultDisplay[0]+("center"!=b.opts.videoDefaultAlign?" fr-fv"+b.opts.videoDefaultAlign[0]:"")+'"><video src="'+c+'" '+g+(h?' style="width: '+h+';" ':"")+" controls>"+b.language.translate("Your browser does not support HTML5 video.")+"</video></span>");i.toggleClass("fr-draggable",b.opts.videoMove),b.edit.on(),b.events.focus(!0),b.selection.restore(),b.undo.saveStep(),b.opts.videoSplitHTML?b.markers.split():b.markers.insert(),b.html.wrap();var j=b.$el.find(".fr-marker");return b.node.isLastSibling(j)&&j.parent().hasClass("fr-deletable")&&j.insertAfter(j.parent()),j.replaceWith(i),b.selection.clear(),i.find("video").get(0).readyState>i.find("video").get(0).HAVE_FUTURE_DATA||b.helpers.isIOS()?e.call(i.find("video").get(0)):i.find("video").on("canplaythrough load",e),i}function B(c){if(!b.core.sameInstance(qa))return!0;c.preventDefault(),c.stopPropagation();var d=c.pageX||(c.originalEvent.touches?c.originalEvent.touches[0].pageX:null),e=c.pageY||(c.originalEvent.touches?c.originalEvent.touches[0].pageY:null);if(!d||!e)return!1;if("mousedown"==c.type){var f=b.$oel.get(0),g=f.ownerDocument,h=g.defaultView||g.parentWindow,i=!1;try{i=h.location!=h.parent.location&&!(h.$&&h.$.FE)}catch(j){}i&&h.frameElement&&(d+=b.helpers.getPX(a(h.frameElement).offset().left)+h.frameElement.clientLeft,e=c.clientY+b.helpers.getPX(a(h.frameElement).offset().top)+h.frameElement.clientTop)}b.undo.canDo()||b.undo.saveStep(),pa=a(this),pa.data("start-x",d),pa.data("start-y",e),oa.show(),b.popups.hideAll(),M()}function C(a){if(!b.core.sameInstance(qa))return!0;if(pa){a.preventDefault();var c=a.pageX||(a.originalEvent.touches?a.originalEvent.touches[0].pageX:null),d=a.pageY||(a.originalEvent.touches?a.originalEvent.touches[0].pageY:null);if(!c||!d)return!1;var e=pa.data("start-x"),f=pa.data("start-y");pa.data("start-x",c),pa.data("start-y",d);var g=c-e,h=d-f,i=ra.find("iframe, embed, video"),j=i.width(),k=i.height();(pa.hasClass("fr-hnw")||pa.hasClass("fr-hsw"))&&(g=0-g),(pa.hasClass("fr-hnw")||pa.hasClass("fr-hne"))&&(h=0-h),i.css("width",j+g),i.css("height",k+h),i.removeAttr("width"),i.removeAttr("height"),I()}}function D(a){return b.core.sameInstance(qa)?void(pa&&ra&&(a&&a.stopPropagation(),pa=null,oa.hide(),I(),e(),b.undo.saveStep())):!0}function E(a){return'<div class="fr-handler fr-h'+a+'"></div>'}function F(a,b,c,d){return a.pageX=b,a.pageY=b,B.call(this,a),a.pageX=a.pageX+c*Math.floor(Math.pow(1.1,d)),a.pageY=a.pageY+c*Math.floor(Math.pow(1.1,d)),C.call(this,a),D.call(this,a),++d}function G(){var c;if(b.shared.$video_resizer?(qa=b.shared.$video_resizer,oa=b.shared.$vid_overlay,b.events.on("destroy",function(){qa.removeClass("fr-active").appendTo(a("body:first"))},!0)):(b.shared.$video_resizer=a('<div class="fr-video-resizer"></div>'),qa=b.shared.$video_resizer,b.events.$on(qa,"mousedown",function(a){a.stopPropagation()},!0),b.opts.videoResize&&(qa.append(E("nw")+E("ne")+E("sw")+E("se")),b.shared.$vid_overlay=a('<div class="fr-video-overlay"></div>'),oa=b.shared.$vid_overlay,c=qa.get(0).ownerDocument,a(c).find("body:first").append(oa))),b.events.on("shared.destroy",function(){qa.html("").removeData().remove(),qa=null,b.opts.videoResize&&(oa.remove(),oa=null)},!0),b.helpers.isMobile()||b.events.$on(a(b.o_win),"resize.video",function(){K(!0)}),b.opts.videoResize){c=qa.get(0).ownerDocument,b.events.$on(qa,b._mousedown,".fr-handler",B),b.events.$on(a(c),b._mousemove,C),b.events.$on(a(c.defaultView||c.parentWindow),b._mouseup,D),b.events.$on(oa,"mouseleave",D);var d=1,e=null,f=0;b.events.on("keydown",function(c){if(ra){var g=-1!=navigator.userAgent.indexOf("Mac OS X")?c.metaKey:c.ctrlKey,h=c.which;(h!==e||c.timeStamp-f>200)&&(d=1),(h==a.FE.KEYCODE.EQUALS||b.browser.mozilla&&h==a.FE.KEYCODE.FF_EQUALS)&&g&&!c.altKey?d=F.call(this,c,1,1,d):(h==a.FE.KEYCODE.HYPHEN||b.browser.mozilla&&h==a.FE.KEYCODE.FF_HYPHEN)&&g&&!c.altKey&&(d=F.call(this,c,2,-1,d)),e=h,f=c.timeStamp}}),b.events.on("keyup",function(){d=1})}}function H(){var c,d=Array.prototype.slice.call(b.el.querySelectorAll("video, .fr-video > *")),e=[];for(c=0;c<d.length;c++)e.push(d[c].getAttribute("src")),a(d[c]).toggleClass("fr-draggable",b.opts.videoMove),""===d[c].getAttribute("class")&&d[c].removeAttribute("class"),""===d[c].getAttribute("style")&&d[c].removeAttribute("style");if(Aa)for(c=0;c<Aa.length;c++)e.indexOf(Aa[c].getAttribute("src"))<0&&b.events.trigger("video.removed",[a(Aa[c])]);Aa=d}function I(){qa||G(),(b.$wp||b.$sc).append(qa),qa.data("instance",b);var a=ra.find("iframe, embed, video");qa.css("top",(b.opts.iframe?a.offset().top-1:a.offset().top-b.$wp.offset().top-1)+b.$wp.scrollTop()).css("left",(b.opts.iframe?a.offset().left-1:a.offset().left-b.$wp.offset().left-1)+b.$wp.scrollLeft()).css("width",a.get(0).getBoundingClientRect().width).css("height",a.get(0).getBoundingClientRect().height).addClass("fr-active")}function J(c){if(c&&"touchend"==c.type&&Ba)return!0;if(c&&b.edit.isDisabled())return c.stopPropagation(),c.preventDefault(),!1;if(b.edit.isDisabled())return!1;for(var d=0;d<a.FE.INSTANCES.length;d++)a.FE.INSTANCES[d]!=b&&a.FE.INSTANCES[d].events.trigger("video.hideResizer");b.toolbar.disable(),b.helpers.isMobile()&&(b.events.disableBlur(),b.$el.blur(),b.events.enableBlur()),b.$el.find(".fr-video.fr-active").removeClass("fr-active"),ra=a(this),ra.addClass("fr-active"),b.opts.iframe&&b.size.syncIframe(),ka(),I(),e(),b.selection.clear(),b.button.bulkRefresh(),b.events.trigger("image.hideResizer")}function K(a){ra&&(N()||a===!0)&&(qa.removeClass("fr-active"),b.toolbar.enable(),ra.removeClass("fr-active"),ra=null,M())}function L(){b.shared.vid_exit_flag=!0}function M(){b.shared.vid_exit_flag=!1}function N(){return b.shared.vid_exit_flag}function O(c){var d=c.originalEvent.dataTransfer;if(d&&d.files&&d.files.length){var e=d.files[0];if(e&&e.type&&-1!==e.type.indexOf("video")){if(!b.opts.videoUpload)return c.preventDefault(),c.stopPropagation(),!1;b.markers.remove(),b.markers.insertAtPoint(c.originalEvent),b.$el.find(".fr-marker").replaceWith(a.FE.MARKERS),b.popups.hideAll();var g=b.popups.get("video.insert");return g||(g=f()),b.popups.setContainer("video.insert",b.$sc),b.popups.show("video.insert",c.originalEvent.pageX,c.originalEvent.pageY),n(),b.opts.videoAllowedTypes.indexOf(e.type.replace(/video\//g,""))>=0?P(d.files):S(xa),c.preventDefault(),c.stopPropagation(),!1}}}function P(a){if("undefined"!=typeof a&&a.length>0){if(b.events.trigger("video.beforeUpload",[a])===!1)return!1;var c=a[0];if(c.size>b.opts.videoMaxSize)return S(wa),!1;if(b.opts.videoAllowedTypes.indexOf(c.type.replace(/video\//g,""))<0)return S(xa),!1;var d;if(b.drag_support.formdata&&(d=b.drag_support.formdata?new FormData:null),d){var e;if(b.opts.videoUploadToS3!==!1){d.append("key",b.opts.videoUploadToS3.keyStart+(new Date).getTime()+"-"+(c.name||"untitled")),d.append("success_action_status","201"),d.append("X-Requested-With","xhr"),d.append("Content-Type",c.type);for(e in b.opts.videoUploadToS3.params)b.opts.videoUploadToS3.params.hasOwnProperty(e)&&d.append(e,b.opts.videoUploadToS3.params[e])}for(e in b.opts.videoUploadParams)b.opts.videoUploadParams.hasOwnProperty(e)&&d.append(e,b.opts.videoUploadParams[e]);d.append(b.opts.videoUploadParam,c);var f=b.opts.videoUploadURL;b.opts.videoUploadToS3&&(f=b.opts.videoUploadToS3.uploadURL?b.opts.videoUploadToS3.uploadURL:"https://"+b.opts.videoUploadToS3.region+".amazonaws.com/"+b.opts.videoUploadToS3.bucket);var g=b.core.getXHR(f,b.opts.videoUploadMethod);g.onload=function(){w.call(g,ra)},g.onerror=x,g.upload.onprogress=y,g.onabort=z,n(),b.events.disableBlur(),b.edit.off(),b.events.enableBlur();var h=b.popups.get("video.insert");h&&h.off("abortUpload").on("abortUpload",function(){4!=g.readyState&&g.abort()}),g.send(d)}}}function Q(c){b.events.$on(c,"dragover dragenter",".fr-video-upload-layer",function(){return a(this).addClass("fr-drop"),!1},!0),b.events.$on(c,"dragleave dragend",".fr-video-upload-layer",function(){return a(this).removeClass("fr-drop"),!1},!0),b.events.$on(c,"drop",".fr-video-upload-layer",function(d){d.preventDefault(),d.stopPropagation(),a(this).removeClass("fr-drop");var e=d.originalEvent.dataTransfer;if(e&&e.files){var f=c.data("instance")||b;f.events.disableBlur(),f.video.upload(e.files),f.events.enableBlur()}},!0),b.helpers.isIOS()&&b.events.$on(c,"touchstart",'.fr-video-upload-layer input[type="file"]',function(){a(this).trigger("click")},!0),b.events.$on(c,"change",'.fr-video-upload-layer input[type="file"]',function(){if(this.files){var d=c.data("instance")||b;d.events.disableBlur(),c.find("input:focus").blur(),d.events.enableBlur(),d.video.upload(this.files)}a(this).val("")},!0)}function R(){b.events.on("drop",O,!0),b.events.on("mousedown window.mousedown",L),b.events.on("window.touchmove",M),b.events.on("mouseup window.mouseup",K),b.events.on("commands.mousedown",function(a){a.parents(".fr-toolbar").length>0&&K()}),b.events.on("video.hideResizer commands.undo commands.redo element.dropped",function(){K(!0)})}function S(a,c){b.edit.on(),ra&&ra.find("video").addClass("fr-error"),q(b.language.translate("Something went wrong. Please try again.")),b.events.trigger("video.error",[{code:a,message:za[a]},c])}function T(){var a="";if(b.opts.videoEditButtons.length>0){a+='<div class="fr-buttons">',a+=b.button.buildList(b.opts.videoEditButtons),a+="</div>";var c={buttons:a},d=b.popups.create("video.edit",c);return b.events.$on(b.$wp,"scroll.video-edit",function(){ra&&b.popups.isVisible("video.edit")&&(b.events.disableBlur(),t(ra))}),d}return!1}function U(){if(ra){var a=b.popups.get("video.size"),c=ra.find("iframe, embed, video");a.find('input[name="width"]').val(c.get(0).style.width||c.attr("width")).trigger("change"),a.find('input[name="height"]').val(c.get(0).style.height||c.attr("height")).trigger("change")}}function V(){var a=b.popups.get("video.size");a||(a=W()),o(),b.popups.refresh("video.size"),b.popups.setContainer("video.size",b.$sc);var c=ra.find("iframe, embed, video"),d=c.offset().left+c.width()/2,e=c.offset().top+c.height();b.popups.show("video.size",d,e,c.height())}function W(a){if(a)return b.popups.onRefresh("video.size",U),!0;var c="";c='<div class="fr-buttons">'+b.button.buildList(b.opts.videoSizeButtons)+"</div>";var d="";d='<div class="fr-video-size-layer fr-layer fr-active" id="fr-video-size-layer-'+b.id+'"><div class="fr-video-group"><div class="fr-input-line"><input id="fr-video-size-layer-width-'+b.id+'" type="text" name="width" placeholder="'+b.language.translate("Width")+'" tabIndex="1"></div><div class="fr-input-line"><input id="fr-video-size-layer-height-'+b.id+'" type="text" name="height" placeholder="'+b.language.translate("Height")+'" tabIndex="1"></div></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="videoSetSize" tabIndex="2" role="button">'+b.language.translate("Update")+"</button></div></div>";var e={buttons:c,size_layer:d},f=b.popups.create("video.size",e);return b.events.$on(b.$wp,"scroll",function(){ra&&b.popups.isVisible("video.size")&&(b.events.disableBlur(),t(ra))}),f}function X(a){if("undefined"==typeof a&&(a=ra),a){if(a.hasClass("fr-fvl"))return"left";if(a.hasClass("fr-fvr"))return"right";if(a.hasClass("fr-dvb")||a.hasClass("fr-dvi"))return"center";if("block"==a.css("display")){if("left"==a.css("text-algin"))return"left";if("right"==a.css("text-align"))return"right"}else{if("left"==a.css("float"))return"left";if("right"==a.css("float"))return"right"}}return"center"}function Y(a){ra.removeClass("fr-fvr fr-fvl"),!b.opts.htmlUntouched&&b.opts.useClasses?"left"==a?ra.addClass("fr-fvl"):"right"==a&&ra.addClass("fr-fvr"):fa(ra,_(),a),ka(),I(),e(),b.selection.clear()}function Z(a){return ra?void a.find("> *:first").replaceWith(b.icon.create("video-align-"+X())):!1}function $(a,b){ra&&b.find('.fr-command[data-param1="'+X()+'"]').addClass("fr-active").attr("aria-selected",!0)}function _(a){"undefined"==typeof a&&(a=ra);var b=a.css("float");return a.css("float","none"),"block"==a.css("display")?(a.css("float",""),a.css("float")!=b&&a.css("float",b),"block"):(a.css("float",""),a.css("float")!=b&&a.css("float",b),"inline")}function aa(a){ra.removeClass("fr-dvi fr-dvb"),!b.opts.htmlUntouched&&b.opts.useClasses?"inline"==a?ra.addClass("fr-dvi"):"block"==a&&ra.addClass("fr-dvb"):fa(ra,a,X()),ka(),I(),e(),b.selection.clear()}function ba(a,b){ra&&b.find('.fr-command[data-param1="'+_()+'"]').addClass("fr-active").attr("aria-selected",!0)}function ca(){var a=b.popups.get("video.insert");a||(a=f()),b.popups.isVisible("video.insert")||(o(),b.popups.refresh("video.insert"),b.popups.setContainer("video.insert",b.$sc));var c=ra.offset().left+ra.width()/2,d=ra.offset().top+ra.height();b.popups.show("video.insert",c,d,ra.outerHeight())}function da(){if(ra&&b.events.trigger("video.beforeRemove",[ra])!==!1){var a=ra;b.popups.hideAll(),K(!0),b.selection.setBefore(a.get(0))||b.selection.setAfter(a.get(0)),a.remove(),b.selection.restore(),b.html.fillEmptyBlocks(),b.events.trigger("video.removed",[a])}}function ea(){o()}function fa(a,c,d){!b.opts.htmlUntouched&&b.opts.useClasses?(a.removeClass("fr-fvl fr-fvr fr-dvb fr-dvi"),a.addClass("fr-fv"+d[0]+" fr-dv"+c[0])):"inline"==c?(a.css({display:"inline-block"}),"center"==d?a.css({"float":"none"}):"left"==d?a.css({"float":"left"}):a.css({"float":"right"})):(a.css({display:"block",clear:"both"}),"left"==d?a.css({textAlign:"left"}):"right"==d?a.css({textAlign:"right"}):a.css({textAlign:"center"}))}function ga(a){a.hasClass("fr-dvi")||a.hasClass("fr-dvb")||(a.addClass("fr-fv"+X(a)[0]),a.addClass("fr-dv"+_(a)[0]))}function ha(a){var b=a.hasClass("fr-dvb")?"block":a.hasClass("fr-dvi")?"inline":null,c=a.hasClass("fr-fvl")?"left":a.hasClass("fr-fvr")?"right":X(a);fa(a,b,c),a.removeClass("fr-dvb fr-dvi fr-fvr fr-fvl")}function ia(){b.$el.find("video").filter(function(){return 0===a(this).parents("span.fr-video").length}).wrap('<span class="fr-video" contenteditable="false"></span>'),b.$el.find("embed, iframe").filter(function(){if(b.browser.safari&&this.getAttribute("src")&&this.setAttribute("src",this.src),a(this).parents("span.fr-video").length>0)return!1;for(var c=a(this).attr("src"),d=0;d<a.FE.VIDEO_PROVIDERS.length;d++){var e=a.FE.VIDEO_PROVIDERS[d];if(e.test_regex.test(c)&&new RegExp(b.opts.videoAllowedProviders.join("|")).test(e.provider))return!0}return!1}).map(function(){return 0===a(this).parents("object").length?this:a(this).parents("object").get(0)}).wrap('<span class="fr-video" contenteditable="false"></span>');for(var c=b.$el.find("span.fr-video, video"),d=0;d<c.length;d++){var e=a(c[d]);!b.opts.htmlUntouched&&b.opts.useClasses?(ga(e),b.opts.videoTextNear||e.removeClass("fr-dvi").addClass("fr-dvb")):b.opts.htmlUntouched||b.opts.useClasses||ha(e)}c.toggleClass("fr-draggable",b.opts.videoMove)}function ja(){R(),b.helpers.isMobile()&&(b.events.$on(b.$el,"touchstart","span.fr-video",function(){Ba=!1}),b.events.$on(b.$el,"touchmove",function(){Ba=!0})),b.events.on("html.set",ia),ia(),b.events.$on(b.$el,"mousedown","span.fr-video",function(a){a.stopPropagation()}),b.events.$on(b.$el,"click touchend","span.fr-video",function(b){return"false"==a(this).parents("[contenteditable]:not(.fr-element):not(.fr-img-caption):not(body):first").attr("contenteditable")?!0:void J.call(this,b)}),b.events.on("keydown",function(c){var d=c.which;return!ra||d!=a.FE.KEYCODE.BACKSPACE&&d!=a.FE.KEYCODE.DELETE?ra&&d==a.FE.KEYCODE.ESC?(K(!0),c.preventDefault(),!1):ra&&d!=a.FE.KEYCODE.F10&&!b.keys.isBrowserAction(c)?(c.preventDefault(),!1):void 0:(c.preventDefault(),da(),b.undo.saveStep(),!1)},!0),b.events.on("toolbar.esc",function(){return ra?(b.events.disableBlur(),b.events.focus(),!1):void 0},!0),b.events.on("toolbar.focusEditor",function(){return ra?!1:void 0},!0),b.events.on("keydown",function(){b.$el.find("span.fr-video:empty").remove()}),b.$wp&&(H(),b.events.on("contentChanged",H)),f(!0),W(!0)}function ka(){if(ra){b.selection.clear();var a=b.doc.createRange();a.selectNode(ra.get(0));var c=b.selection.get();c.addRange(a)}}function la(){ra?(b.events.disableBlur(),ra.trigger("click")):(b.events.disableBlur(),b.selection.restore(),b.events.enableBlur(),b.popups.hide("video.insert"),b.toolbar.showInline())}function ma(a,c){if(ra){var d=b.popups.get("video.size"),e=ra.find("iframe, embed, video");e.css("width",a||d.find('input[name="width"]').val()),e.css("height",c||d.find('input[name="height"]').val()),e.get(0).style.width&&e.removeAttr("width"),e.get(0).style.height&&e.removeAttr("height"),d.find("input:focus").blur(),setTimeout(function(){ra.trigger("click")},b.helpers.isAndroid()?50:0)}}function na(){return ra}var oa,pa,qa,ra,sa=1,ta=2,ua=3,va=4,wa=5,xa=6,ya=7,za={};za[sa]="Video cannot be loaded from the passed link.",za[ta]="No link in upload response.",za[ua]="Error during file upload.",za[va]="Parsing response failed.",za[wa]="File is too large.",za[xa]="Video file type is invalid.",za[ya]="Files can be uploaded only to same domain in IE 8 and IE 9.";var Aa,Ba;return b.shared.vid_exit_flag=!1,{_init:ja,showInsertPopup:d,showLayer:g,refreshByURLButton:h,refreshEmbedButton:i,refreshUploadButton:j,upload:P,insertByURL:r,insertEmbed:s,insert:k,align:Y,refreshAlign:Z,refreshAlignOnShow:$,display:aa,refreshDisplayOnShow:ba,remove:da,hideProgressBar:o,showSizePopup:V,replace:ca,back:la,setSize:ma,get:na}},a.FE.RegisterCommand("insertVideo",{title:"Insert Video",undo:!1,focus:!0,refreshAfterCallback:!1,popup:!0,callback:function(){this.popups.isVisible("video.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("video.insert")):this.video.showInsertPopup()},plugin:"video"}),a.FE.DefineIcon("insertVideo",{NAME:"video-camera",FA5NAME:"camera"}),a.FE.DefineIcon("videoByURL",{NAME:"link"}),a.FE.RegisterCommand("videoByURL",{title:"By URL",undo:!1,focus:!1,toggle:!0,callback:function(){this.video.showLayer("video-by-url")},refresh:function(a){this.video.refreshByURLButton(a)}}),a.FE.DefineIcon("videoEmbed",{NAME:"code"}),a.FE.RegisterCommand("videoEmbed",{title:"Embedded Code",undo:!1,focus:!1,toggle:!0,callback:function(){this.video.showLayer("video-embed")},refresh:function(a){this.video.refreshEmbedButton(a)}}),a.FE.DefineIcon("videoUpload",{NAME:"upload"}),a.FE.RegisterCommand("videoUpload",{title:"Upload Video",undo:!1,focus:!1,toggle:!0,callback:function(){this.video.showLayer("video-upload")},refresh:function(a){this.video.refreshUploadButton(a)}}),a.FE.RegisterCommand("videoInsertByURL",{undo:!0,focus:!0,callback:function(){this.video.insertByURL()}}),a.FE.RegisterCommand("videoInsertEmbed",{undo:!0,focus:!0,callback:function(){this.video.insertEmbed()}}),a.FE.DefineIcon("videoDisplay",{NAME:"star"}),a.FE.RegisterCommand("videoDisplay",{title:"Display",type:"dropdown",options:{inline:"Inline",block:"Break Text"},callback:function(a,b){this.video.display(b)},refresh:function(a){this.opts.videoTextNear||a.addClass("fr-hidden")},refreshOnShow:function(a,b){this.video.refreshDisplayOnShow(a,b)}}),a.FE.DefineIcon("video-align",{NAME:"align-left"}),a.FE.DefineIcon("video-align-left",{NAME:"align-left"}),a.FE.DefineIcon("video-align-right",{NAME:"align-right"}),a.FE.DefineIcon("video-align-center",{NAME:"align-justify" -}),a.FE.DefineIcon("videoAlign",{NAME:"align-center"}),a.FE.RegisterCommand("videoAlign",{type:"dropdown",title:"Align",options:{left:"Align Left",center:"None",right:"Align Right"},html:function(){var b='<ul class="fr-dropdown-list" role="presentation">',c=a.FE.COMMANDS.videoAlign.options;for(var d in c)c.hasOwnProperty(d)&&(b+='<li role="presentation"><a class="fr-command fr-title" tabIndex="-1" role="option" data-cmd="videoAlign" data-param1="'+d+'" title="'+this.language.translate(c[d])+'">'+this.icon.create("video-align-"+d)+'<span class="fr-sr-only">'+this.language.translate(c[d])+"</span></a></li>");return b+="</ul>"},callback:function(a,b){this.video.align(b)},refresh:function(a){this.video.refreshAlign(a)},refreshOnShow:function(a,b){this.video.refreshAlignOnShow(a,b)}}),a.FE.DefineIcon("videoReplace",{NAME:"exchange"}),a.FE.RegisterCommand("videoReplace",{title:"Replace",undo:!1,focus:!1,popup:!0,refreshAfterCallback:!1,callback:function(){this.video.replace()}}),a.FE.DefineIcon("videoRemove",{NAME:"trash"}),a.FE.RegisterCommand("videoRemove",{title:"Remove",callback:function(){this.video.remove()}}),a.FE.DefineIcon("videoSize",{NAME:"arrows-alt"}),a.FE.RegisterCommand("videoSize",{undo:!1,focus:!1,popup:!0,title:"Change Size",callback:function(){this.video.showSizePopup()}}),a.FE.DefineIcon("videoBack",{NAME:"arrow-left"}),a.FE.RegisterCommand("videoBack",{title:"Back",undo:!1,focus:!1,back:!0,callback:function(){this.video.back()},refresh:function(a){var b=this.video.get();b||this.opts.toolbarInline?(a.removeClass("fr-hidden"),a.next(".fr-separator").removeClass("fr-hidden")):(a.addClass("fr-hidden"),a.next(".fr-separator").addClass("fr-hidden"))}}),a.FE.RegisterCommand("videoDismissError",{title:"OK",undo:!1,callback:function(){this.video.hideProgressBar(!0)}}),a.FE.RegisterCommand("videoSetSize",{undo:!0,focus:!1,title:"Update",refreshAfterCallback:!1,callback:function(){this.video.setSize()}})}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/word_paste.min.js b/Mobile.Search.Web/Scripts/froala-editor/js/plugins/word_paste.min.js deleted file mode 100644 index 6644799..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/plugins/word_paste.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.DEFAULTS,{wordDeniedTags:[],wordDeniedAttrs:[],wordAllowedStyleProps:["font-family","font-size","background","color","width","text-align","vertical-align","background-color","padding","margin","height","margin-top","margin-left","margin-right","margin-bottom","text-decoration","font-weight","font-style"],wordPasteModal:!0}),a.FE.PLUGINS.wordPaste=function(b){function c(){b.events.on("paste.wordPaste",function(a){return C=a,b.opts.wordPasteModal?e():g(!0),!1})}function d(){var a='<div class="fr-word-paste-modal" style="padding: 20px 20px 10px 20px;">';return a+='<p style="text-align: left;">'+b.language.translate("The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?")+"</p>",a+='<div style="text-align: right; margin-top: 50px;"><button class="fr-remove-word fr-command">'+b.language.translate("Clean")+'</button> <button class="fr-keep-word fr-command">'+b.language.translate("Keep")+"</button></div>",a+="</div>"}function e(){if(!B){var c='<h4><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 74.95 73.23" style="height: 25px; vertical-align: text-bottom; margin-right: 5px; display: inline-block"><defs><style>.a{fill:#2a5699;}.b{fill:#fff;}</style></defs><path class="a" d="M615.15,827.22h5.09V834c9.11.05,18.21-.09,27.32.05a2.93,2.93,0,0,1,3.29,3.25c.14,16.77,0,33.56.09,50.33-.09,1.72.17,3.63-.83,5.15-1.24.89-2.85.78-4.3.84-8.52,0-17,0-25.56,0v6.81h-5.32c-13-2.37-26-4.54-38.94-6.81q0-29.8,0-59.59c13.05-2.28,26.11-4.5,39.17-6.83Z" transform="translate(-575.97 -827.22)"/><path class="b" d="M620.24,836.59h28.1v54.49h-28.1v-6.81h22.14v-3.41H620.24v-4.26h22.14V873.2H620.24v-4.26h22.14v-3.41H620.24v-4.26h22.14v-3.41H620.24v-4.26h22.14v-3.41H620.24V846h22.14v-3.41H620.24Zm-26.67,15c1.62-.09,3.24-.16,4.85-.25,1.13,5.75,2.29,11.49,3.52,17.21,1-5.91,2-11.8,3.06-17.7,1.7-.06,3.41-.15,5.1-.26-1.92,8.25-3.61,16.57-5.71,24.77-1.42.74-3.55,0-5.24.09-1.13-5.64-2.45-11.24-3.47-16.9-1,5.5-2.29,10.95-3.43,16.42q-2.45-.13-4.92-.3c-1.41-7.49-3.07-14.93-4.39-22.44l4.38-.18c.88,5.42,1.87,10.82,2.64,16.25,1.2-5.57,2.43-11.14,3.62-16.71Z" transform="translate(-575.97 -827.22)"/></svg> '+b.language.translate("Word Paste Detected")+"</h4>",e=d(),f=b.modals.create(D,c,e),g=f.$body;B=f.$modal,f.$modal.addClass("fr-middle"),b.events.bindClick(g,"button.fr-remove-word",function(){var a=B.data("instance")||b;a.wordPaste.clean()}),b.events.bindClick(g,"button.fr-keep-word",function(){var a=B.data("instance")||b;a.wordPaste.clean(!0)}),b.events.$on(a(b.o_win),"resize",function(){b.modals.resize(D)})}b.modals.show(D),b.modals.resize(D)}function f(){b.modals.hide(D)}function g(a){var c=b.opts.wordAllowedStyleProps;a||(b.opts.wordAllowedStyleProps=[]),0===C.indexOf("<colgroup>")&&(C="<table>"+C+"</table>"),C=C.replace(/<span[\n\r ]*style='mso-spacerun:yes'>[\r\n\u00a0 ]*<\/span>/g," "),C=A(C,b.paste.getRtfClipboard());var d=b.doc.createElement("DIV");d.innerHTML=C,b.html.cleanBlankSpaces(d),C=d.innerHTML,C=b.paste.cleanEmptyTagsAndDivs(C),C=C.replace(/\u200b/g,""),f(),b.paste.clean(C,!0,!0),b.opts.wordAllowedStyleProps=c}function h(a){var b=a.parentNode;b&&a.parentNode.removeChild(a)}function i(a,b){if(b(a))for(var c=a.firstChild;c;){var d=c,e=c.previousSibling;c=c.nextSibling,i(d,b),d.previousSibling||d.nextSibling||d.parentNode||!c||e==c.previousSibling||!c.parentNode?d.previousSibling||d.nextSibling||d.parentNode||!c||c.previousSibling||c.nextSibling||c.parentNode||(e?c=e.nextSibling?e.nextSibling.nextSibling:null:a.firstChild&&(c=a.firstChild.nextSibling)):c=e?e.nextSibling:a.firstChild}}function j(a){if(!a.getAttribute("style")||!/mso-list:[\s]*l/gi.test(a.getAttribute("style").replace(/\n/gi,"")))return!1;try{if(!a.querySelector('[style="mso-list:Ignore"]'))return!1}catch(b){return!1}return!0}function k(a){return a.getAttribute("style").replace(/\n/gi,"").replace(/.*level([0-9]+?).*/gi,"$1")}function l(a,b){var c=a.cloneNode(!0);if(-1!=["H1","H2","H3","H4","H5","H6"].indexOf(a.tagName)){var d=document.createElement(a.tagName.toLowerCase());d.setAttribute("style",a.getAttribute("style")),d.innerHTML=c.innerHTML,c.innerHTML=d.outerHTML}i(c,function(a){return a.nodeType==Node.ELEMENT_NODE&&("mso-list:Ignore"==a.getAttribute("style")&&a.parentNode.removeChild(a),x(a,b)),!0});var e=c.innerHTML;return e=e.replace(/<!--[\s\S]*?-->/gi,"")}function m(a,b){var c=/[0-9a-zA-Z]./gi,d=!1;a.firstElementChild&&a.firstElementChild.firstElementChild&&a.firstElementChild.firstElementChild.firstChild&&(d=d||c.test(a.firstElementChild.firstElementChild.firstChild.data||""),!d&&a.firstElementChild.firstElementChild.firstElementChild&&a.firstElementChild.firstElementChild.firstElementChild.firstChild&&(d=d||c.test(a.firstElementChild.firstElementChild.firstElementChild.firstChild.data||"")));var e=d?"ol":"ul",f=k(a),g="<"+e+"><li>"+l(a,b),i=a.nextElementSibling,n=a.parentNode;for(h(a),a=null;i&&j(i);){var o=i.previousElementSibling,p=k(i);if(p>f)g+=m(i,b).outerHTML;else{if(f>p)break;g+="</li><li>"+l(i,b)}if(f=p,i.previousElementSibling||i.nextElementSibling||i.parentNode){var q=i;i=i.nextElementSibling,h(q),q=null}else i=o?o.nextElementSibling:n.firstElementChild}g+="</li></"+e+">";var r=document.createElement("div");r.innerHTML=g;var s=r.firstElementChild;return s}function n(a,b){for(var c=document.createElement(b),d=0;d<a.attributes.length;d++){var e=a.attributes[d].name;c.setAttribute(e,a.getAttribute(e))}return c.innerHTML=a.innerHTML,a.parentNode.replaceChild(c,a),c}function o(c,d){b.node.clearAttributes(c);for(var e=c.firstElementChild,f=0,g=!1,i=null;e;){e.firstElementChild&&-1!=e.firstElementChild.tagName.indexOf("W:")&&(e.innerHTML=e.firstElementChild.innerHTML),i=e.getAttribute("width"),i||g||(g=!0),f+=parseInt(i,10),(!e.firstChild||e.firstChild&&e.firstChild.data==a.FE.UNICODE_NBSP)&&(e.firstChild&&h(e.firstChild),e.innerHTML="<br>");for(var k=e.firstElementChild,l=1==e.children.length;k;)"P"!=k.tagName||j(k)||l&&p(k),k=k.nextElementSibling;if(d){var m=e.getAttribute("class");if(m){m=q(m);var n=m.match(/xl[0-9]+/gi);if(n){var o=n[0],s="."+o;d[s]&&r(e,d[s])}}d.td&&r(e,d.td)}var t=e.getAttribute("style");t&&(t=q(t),t&&";"!=t.slice(-1)&&(t+=";"));var u=e.getAttribute("valign");if(!u&&t){var v=t.match(/vertical-align:.+?[; "]{1,1}/gi);v&&(u=v[v.length-1].replace(/vertical-align:(.+?)[; "]{1,1}/gi,"$1"))}var w=null;if(t){var x=t.match(/text-align:.+?[; "]{1,1}/gi);x&&(w=x[x.length-1].replace(/text-align:(.+?)[; "]{1,1}/gi,"$1")),"general"==w&&(w=null)}var y=null;if(t){var z=t.match(/background:.+?[; "]{1,1}/gi);z&&(y=z[z.length-1].replace(/background:(.+?)[; "]{1,1}/gi,"$1"))}var A=e.getAttribute("colspan"),B=e.getAttribute("rowspan");A&&e.setAttribute("colspan",A),B&&e.setAttribute("rowspan",B),u&&(e.style["vertical-align"]=u),w&&(e.style["text-align"]=w),y&&(e.style["background-color"]=y),i&&e.setAttribute("width",i),e=e.nextElementSibling}for(e=c.firstElementChild;e;)i=e.getAttribute("width"),g?e.removeAttribute("width"):e.setAttribute("width",100*parseInt(i,10)/f+"%"),e=e.nextElementSibling}function p(a){var b=a.parentNode,c=a.getAttribute("align");c&&(b&&"TD"==b.tagName?(b.setAttribute("style",b.getAttribute("style")+"text-align:"+c+";"),a.removeAttribute("align")):(a.style["text-align"]=c,a.removeAttribute("align")))}function q(a){return a.replace(/\n|\r|\n\r|"/g,"")}function r(a,b,c){if(b){var d=a.getAttribute("style");d&&";"!=d.slice(-1)&&(d+=";"),b&&";"!=b.slice(-1)&&(b+=";"),b=b.replace(/\n/gi,"");var e=null;e=c?(d||"")+b:b+(d||""),a.setAttribute("style",e)}}function s(a){var b=a.getAttribute("style");if(b){b=q(b),b&&";"!=b.slice(-1)&&(b+=";");var c=b.match(/(^|\S+?):.+?;{1,1}/gi);if(c){for(var d={},e=0;e<c.length;e++){var f=c[e],g=f.split(":");2==g.length&&("text-align"!=g[0]||"SPAN"!=a.tagName)&&(d[g[0]]=g[1])}var h="";for(var i in d)if(d.hasOwnProperty(i)){if("font-size"==i&&"pt;"==d[i].slice(-3)){var j=null;try{j=parseFloat(d[i].slice(0,-3),10)}catch(k){}j&&(j=Math.round(1.33*j),d[i]=j+"px;")}h+=i+":"+d[i]}h&&a.setAttribute("style",h)}}}function t(a){for(var b=a.match(/[0-9a-f]{2}/gi),c=[],d=0;d<b.length;d++)c.push(String.fromCharCode(parseInt(b[d],16)));var e=c.join("");return btoa(e)}function u(a,b,c){for(var d=a.split(c),e=1;e<d.length;e++){var f=d[e];if(f=f.split("shplid"),f.length>1){f=f[1];for(var g="",h=0;h<f.length&&"\\"!=f[h]&&"{"!=f[h]&&" "!=f[h]&&"\r"!=f[h]&&"\n"!=f[h];)g+=f[h],h++;var i=f.split("bliptag");if(i&&i.length<2)continue;var j=null;if(-1!=i[0].indexOf("pngblip")?j="image/png":-1!=i[0].indexOf("jpegblip")&&(j="image/jpeg"),!j)continue;var k=i[1].split("}");if(k&&k.length<2)continue;var l;if(k.length>2&&-1!=k[0].indexOf("blipuid"))l=k[1].split(" ");else{if(l=k[0].split(" "),l&&l.length<2)continue;l.shift()}var m=l.join("");E[b+g]={image_hex:m,image_type:j}}}}function v(a){E={},u(a,"i","\\shppict"),u(a,"s","\\shp{")}function w(b,c){if(c){var d;if("IMG"==b.tagName){var e=b.getAttribute("src");if(!e||-1==e.indexOf("file://"))return;d=F[b.getAttribute("v:shapes")],d||(d=b.getAttribute("v:shapes"))}else d=b.parentNode.getAttribute("o:spid");if(b.removeAttribute("height"),d){v(c);var f=E[d.substring(7)];if(f){var g=t(f.image_hex),h="data:"+f.image_type+";base64,"+g;"IMG"===b.tagName?(b.src=h,b.setAttribute("data-fr-image-pasted",!0)):a(b.parentNode).before('<img data-fr-image-pasted="true" src="'+h+'" style="'+b.parentNode.getAttribute("style")+'">').remove()}}}}function x(a,b){var c=a.tagName,d=c.toLowerCase();a.firstElementChild&&("I"==a.firstElementChild.tagName?n(a.firstElementChild,"em"):"B"==a.firstElementChild.tagName&&n(a.firstElementChild,"strong"));var e=["SCRIPT","APPLET","EMBED","NOFRAMES","NOSCRIPT"];if(-1!=e.indexOf(c))return h(a),!1;var f=-1,g=["META","LINK","XML","ST1:","O:","W:","FONT"];for(f=0;f<g.length;f++)if(-1!=c.indexOf(g[f]))return a.innerHTML?(a.outerHTML=a.innerHTML,h(a),!1):(h(a),!1);if("TD"!=c){var i=a.getAttribute("class");if(b&&i){i=q(i);var j=i.split(" ");for(f=0;f<j.length;f++){var k=j[f],l=[],m="."+k;l.push(m),m=d+m,l.push(m);for(var s=0;s<l.length;s++)b[l[s]]&&r(a,b[l[s]])}a.removeAttribute("class")}b&&b[d]&&r(a,b[d])}var t=["P","H1","H2","H3","H4","H5","H6","PRE"];if(-1!=t.indexOf(c)){var u=a.getAttribute("class");if(u&&(b&&b[c.toLowerCase()+"."+u]&&r(a,b[c.toLowerCase()+"."+u]),-1!=u.toLowerCase().indexOf("mso"))){var v=q(u);v=v.replace(/[0-9a-z-_]*mso[0-9a-z-_]*/gi,""),v?a.setAttribute("class",v):a.removeAttribute("class")}var w=a.getAttribute("style"),x=null;if(w){var y=w.match(/text-align:.+?[; "]{1,1}/gi);y&&(x=y[y.length-1].replace(/(text-align:.+?[; "]{1,1})/gi,"$1"))}p(a)}if("TR"==c&&o(a,b),"A"==c&&!a.attributes.getNamedItem("href")&&a.innerHTML&&(a.outerHTML=a.innerHTML),"TD"!=c&&"TH"!=c||a.innerHTML||(a.innerHTML="<br>"),"TABLE"==c&&(a.style.width="100%"),a.getAttribute("lang")&&a.removeAttribute("lang"),a.getAttribute("style")&&-1!=a.getAttribute("style").toLowerCase().indexOf("mso")){var z=q(a.getAttribute("style"));z=z.replace(/[0-9a-z-_]*mso[0-9a-z-_]*:.+?(;{1,1}|$)/gi,""),z?a.setAttribute("style",z):a.removeAttribute("style")}return!0}function y(a){var b={},c=a.getElementsByTagName("style");if(c.length){var d=c[0],e=d.innerHTML.match(/[\S ]+\s+{[\s\S]+?}/gi);if(e)for(var f=0;f<e.length;f++){var g=e[f],h=g.replace(/([\S ]+\s+){[\s\S]+?}/gi,"$1"),i=g.replace(/[\S ]+\s+{([\s\S]+?)}/gi,"$1");h=h.replace(/^[\s]|[\s]$/gm,""),i=i.replace(/^[\s]|[\s]$/gm,""),h=h.replace(/\n|\r|\n\r/g,""),i=i.replace(/\n|\r|\n\r/g,"");for(var j=h.split(", "),k=0;k<j.length;k++)b[j[k]]=i}}return b}function z(a){for(var b=a.split("v:shape"),c=1;c<b.length;c++){var d=b[c],e=d.split(' id="')[1];if(e&&e.length>1){e=e.split('"')[0];var f=d.split(' o:spid="')[1];f&&f.length>1&&(f=f.split('"')[0],F[e]=f)}}}function A(c,d){c=c.replace(/[.\s\S\w\W<>]*(<html[^>]*>[.\s\S\w\W<>]*<\/html>)[.\s\S\w\W<>]*/i,"$1"),z(c);var e=new DOMParser,f=e.parseFromString(c,"text/html"),g=f.head,k=f.body,l=y(g);i(k,function(b){if(b.nodeType==Node.TEXT_NODE&&/\n|\u00a0|\r/.test(b.data)){if(!/\S| /.test(b.data))return b.data==a.FE.UNICODE_NBSP?(b.data="\u200b",!0):1==b.data.length&&10==b.data.charCodeAt(0)?(b.data=" ",!0):(h(b),!1);b.data=b.data.replace(/\n|\r/gi," ")}return!0}),i(k,function(a){return a.nodeType!=Node.ELEMENT_NODE||"V:IMAGEDATA"!=a.tagName&&"IMG"!=a.tagName||w(a,d),!0});for(var n=k.querySelectorAll("ul > ul, ul > ol, ol > ul, ol > ol"),o=n.length-1;o>=0;o--)n[o].previousElementSibling&&"LI"===n[o].previousElementSibling.tagName&&n[o].previousElementSibling.appendChild(n[o]);i(k,function(a){if(a.nodeType==Node.TEXT_NODE)return a.data=a.data.replace(/<br>(\n|\r)/gi,"<br>"),!1;if(a.nodeType==Node.ELEMENT_NODE){if(j(a)){var b=a.parentNode,c=a.previousSibling,d=m(a,l),e=null;return e=c?c.nextSibling:b.firstChild,e?b.insertBefore(d,e):b.appendChild(d),!1}return x(a,l)}return a.nodeType==Node.COMMENT_NODE?(h(a),!1):!0}),i(k,function(a){if(a.nodeType==Node.ELEMENT_NODE){var b=a.tagName;if(!a.innerHTML&&-1==["BR","IMG"].indexOf(b)){for(var c=a.parentNode;c&&(h(a),a=c,!a.innerHTML);)c=a.parentNode;return!1}s(a)}return!0});var p=k.outerHTML,q=b.opts.htmlAllowedStyleProps;return b.opts.htmlAllowedStyleProps=b.opts.wordAllowedStyleProps,p=b.clean.html(p,b.opts.wordDeniedTags,b.opts.wordDeniedAttrs,!1),b.opts.htmlAllowedStyleProps=q,p}var B,C,D="word_paste",E=null,F={};return{_init:c,clean:g}}}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/third_party/embedly.min.js b/Mobile.Search.Web/Scripts/froala-editor/js/third_party/embedly.min.js deleted file mode 100644 index 50becbf..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/third_party/embedly.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.POPUP_TEMPLATES,{"embedly.insert":"[_BUTTONS_][_URL_LAYER_]","embedly.edit":"[_BUTTONS_]"}),a.extend(a.FE.DEFAULTS,{embedlyKey:null,embedlyInsertButtons:["embedlyBack","|"],embedlyEditButtons:["embedlyRemove"],embedlyScriptPath:"https://cdn.embedly.com/widgets/platform.js"}),a.FE.PLUGINS.embedly=function(b){function c(){b.events.on("html.processGet",k),b.events.$on(b.$el,"click touchend","div.fr-embedly",e),b.events.on("mousedown window.mousedown",s),b.events.on("window.touchmove",t),b.events.on("mouseup window.mouseup",r),b.events.on("commands.mousedown",function(a){a.parents(".fr-toolbar").length>0&&r()}),b.events.on("blur video.hideResizer commands.undo commands.redo element.dropped",function(){r(!0)}),b.events.on("element.beforeDrop",function(a){return a.hasClass("fr-embedly")?(a.html(a.attr("data-original-embed")),a):void 0}),b.events.on("keydown",function(c){var d=c.which;return!x||d!=a.FE.KEYCODE.BACKSPACE&&d!=a.FE.KEYCODE.DELETE?x&&d==a.FE.KEYCODE.ESC?(r(!0),c.preventDefault(),!1):x&&d!=a.FE.KEYCODE.F10&&!b.keys.isBrowserAction(c)?(c.preventDefault(),!1):void 0:(c.preventDefault(),q(),!1)},!0),b.events.on("toolbar.esc",function(){return x?(b.events.disableBlur(),b.events.focus(),!1):void 0},!0),b.events.on("toolbar.focusEditor",function(){return x?!1:void 0},!0),b.events.on("snapshot.after",function(a){var c=b.doc.createElement("div");c.innerHTML=a.html,k(c),a.html=c.innerHTML}),b.win.embedly("on","card.resize",function(b){var c=a(b),d=c.parents(".fr-embedly");d.attr("contenteditable",!1).attr("draggable",!0).css("height",c.height()).addClass("fr-draggable")}),l(!0)}function d(){if(!b.$wp)return!1;if("undefined"!=typeof embedly)c();else if(b.shared.embedlyLoaded||(b.shared.embedlyCallbacks=[]),b.shared.embedlyCallbacks.push(c),!b.shared.embedlyLoaded){b.shared.embedlyLoaded=!0;var a=b.doc.createElement("script");a.type="text/javascript",a.src=b.opts.embedlyScriptPath,a.innerText="",a.onload=function(){for(var a=0;a<b.shared.embedlyCallbacks.length;a++)b.shared.embedlyCallbacks[a]()},b.doc.getElementsByTagName("head")[0].appendChild(a)}}function e(b){x=a(this),j(),h()}function f(){var a="";if(b.opts.embedlyEditButtons.length>0){a+='<div class="fr-buttons">',a+=b.button.buildList(b.opts.embedlyEditButtons),a+="</div>";var c={buttons:a},d=b.popups.create("embedly.edit",c);return b.events.$on(b.$wp,"scroll.emebdly-edit",function(){x&&b.popups.isVisible("embedly.edit")&&(b.events.disableBlur(),g(x))}),d}return!1}function g(a){e.call(a.get(0))}function h(){var a=b.popups.get("embedly.edit");if(a||(a=f()),a){b.popups.setContainer("embedly.edit",b.$sc),b.popups.refresh("embedly.edit");var c=x.offset().left+x.outerWidth()/2,d=x.offset().top+x.outerHeight();b.popups.show("embedly.edit",c,d,x.outerHeight())}}function i(){b.shared.$embedly_resizer?(y=b.shared.$embedly_resizer,z=b.shared.$embedly_overlay,b.events.on("destroy",function(){y.appendTo(a("body:first"))},!0)):(b.shared.$embedly_resizer=a('<div class="fr-embedly-resizer"></div>'),y=b.shared.$embedly_resizer,b.events.$on(y,"mousedown",function(a){a.stopPropagation()},!0)),b.events.on("shared.destroy",function(){y.html("").removeData().remove(),y=null},!0)}function j(){y||i(),(b.$wp||b.$sc).append(y),y.data("instance",b),y.css("top",(b.opts.iframe?x.offset().top-1+b.$iframe.position().top:x.offset().top-b.$wp.offset().top-1)+b.$wp.scrollTop()).css("left",(b.opts.iframe?x.offset().left-1:x.offset().left-b.$wp.offset().left-1)+b.$wp.scrollLeft()).css("width",x.outerWidth()).css("height",x.height()).addClass("fr-active")}function k(a){if(a&&b.node.hasClass(a,"fr-embedly"))a.innerHTML=a.getAttribute("data-original-embed"),a.removeAttribute("draggable"),a.removeAttribute("contenteditable"),a.setAttribute("class",(a.getAttribute("class")||"").replace("fr-draggable",""));else if(a&&a.nodeType==Node.ELEMENT_NODE)for(var c=a.querySelectorAll(".fr-embedly"),d=0;d<c.length;d++)k(c[d])}function l(a){if(a)return b.popups.onRefresh("embedly.insert",m),!0;var c="";b.opts.embedlyInsertButtons.length>0&&(c+='<div class="fr-buttons">',c+=b.button.buildList(b.opts.embedlyInsertButtons),c+="</div>");var d="";d='<div class="fr-embedly-layer fr-active fr-layer" id="fr-embedly-layer-'+b.id+'"><div class="fr-input-line"><input id="fr-embedly-layer-text-'+b.id+'" type="text" placeholder="'+b.language.translate("Paste in a URL to embed")+'" tabIndex="1" aria-required="true"></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="embedlyInsert" tabIndex="2" role="button">'+b.language.translate("Insert")+"</button></div></div>";var e={buttons:c,url_layer:d},f=b.popups.create("embedly.insert",e);return f}function m(){var a=b.popups.get("embedly.insert"),c=a.find(".fr-embedly-layer input");c.val("").trigger("change")}function n(){var a=b.$tb.find('.fr-command[data-cmd="embedly"]'),c=b.popups.get("embedly.insert");if(c||(c=l()),!c.hasClass("fr-active"))if(b.popups.refresh("embedly.insert"),b.popups.setContainer("embedly.insert",b.$tb),a.is(":visible")){var d=a.offset().left+a.outerWidth()/2,e=a.offset().top+(b.opts.toolbarBottom?10:a.outerHeight()-10);b.popups.show("embedly.insert",d,e,a.outerHeight())}else b.position.forSelection(c),b.popups.show("embedly.insert")}function o(){var a=b.popups.get("embedly.insert"),c=a.find(".fr-embedly-layer input");p(c.val())}function p(a){if(a.length){var c="<a href='"+a+"' class='embedly-card'"+(b.opts.embedlyKey?" data-card-key='"+b.opts.embedlyKey+"'":"")+"></a>";b.html.insert('<div class="fr-embedly fr-draggable" draggable="true" contenteditable="false" data-original-embed="'+c+'">'+c+"</div>"),b.popups.hideAll()}}function q(){if(x&&b.events.trigger("embedly.beforeRemove",[x])!==!1){var a=x;b.popups.hideAll(),r(!0),b.selection.setBefore(a.get(0))||b.selection.setAfter(a.get(0)),a.remove(),b.selection.restore(),b.html.fillEmptyBlocks(),b.undo.saveStep(),b.events.trigger("video.removed",[a])}}function r(a){x&&(u()||a===!0)&&(y.removeClass("fr-active"),b.toolbar.enable(),x.removeClass("fr-active"),x=null,t())}function s(){b.shared.embedly_exit_flag=!0}function t(){b.shared.embedly_exit_flag=!1}function u(){return b.shared.embedly_exit_flag}function v(){return x}function w(){x?(b.events.disableBlur(),x.trigger("click")):(b.events.disableBlur(),b.selection.restore(),b.events.enableBlur(),b.popups.hide("embedly.insert"),b.toolbar.showInline())}var x,y,z;return b.shared.embedly_exit_flag=!1,{_init:d,showInsertPopup:n,insert:o,remove:q,get:v,add:p,back:w}},a.FE.DefineIcon("embedly",{NAME:"share-alt"}),a.FE.RegisterCommand("embedly",{undo:!0,focus:!0,title:"Embed URL",popup:!0,callback:function(){this.popups.isVisible("embedly.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("embedly.insert")):this.embedly.showInsertPopup()},plugin:"embedly"}),a.FE.RegisterCommand("embedlyInsert",{undo:!0,focus:!0,callback:function(){this.embedly.insert()}}),a.FE.DefineIcon("embedlyRemove",{NAME:"trash"}),a.FE.RegisterCommand("embedlyRemove",{title:"Remove",undo:!1,callback:function(){this.embedly.remove()}}),a.FE.DefineIcon("embedlyBack",{NAME:"arrow-left"}),a.FE.RegisterCommand("embedlyBack",{title:"Back",undo:!1,focus:!1,back:!0,callback:function(){this.embedly.back()},refresh:function(a){var b=this.embedly.get();b||this.opts.toolbarInline?(a.removeClass("fr-hidden"),a.next(".fr-separator").removeClass("fr-hidden")):(a.addClass("fr-hidden"),a.next(".fr-separator").addClass("fr-hidden"))}})}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/third_party/image_aviary.min.js b/Mobile.Search.Web/Scripts/froala-editor/js/third_party/image_aviary.min.js deleted file mode 100644 index 3c27736..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/third_party/image_aviary.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){if(a.extend(a.FE.DEFAULTS,{aviaryKey:"542e1ff5d5144b9b81cef846574ba6cf",aviaryScriptURL:"https://dme0ih8comzn4.cloudfront.net/imaging/v3/editor.js",aviaryOptions:{displayImageSize:!0,theme:"minimum"}}),a.FE.PLUGINS.imageAviary=function(b){function c(a,b){var c=document.createElement("script");c.type="text/javascript",c.defer="defer",c.src=a,c.innerText="",c.onload=b,document.getElementsByTagName("head")[0].appendChild(c)}function d(){b.shared.feather_editor||(b.shared.feather_editor=!0,"undefined"==typeof Aviary?c(b.opts.aviaryScriptURL,e):e())}function e(){b.shared.feather_editor=new Aviary.Feather(a.extend({apiKey:b.opts.aviaryKey,onSave:function(c,d){var e=new Image;e.crossOrigin="Anonymous",e.onload=function(){var c=document.createElement("CANVAS"),d=c.getContext("2d");c.height=this.height,c.width=this.width,d.drawImage(this,0,0);for(var e=c.toDataURL("image/png"),f=atob(e.split(",")[1]),g=[],h=0;h<f.length;h++)g.push(f.charCodeAt(h));var i=new Blob([new Uint8Array(g)],{type:"image/png"});b.shared.feather_editor.instance.image.edit(a(b.shared.feather_editor.current_image)),b.shared.feather_editor.instance.image.upload([i]),b.shared.feather_editor.close()},e.src=d,b.shared.feather_editor.showWaitIndicator()},onError:function(a){throw new Error(a.message)},onClose:function(){b.shared.feather_editor.instance.image.get()||b.shared.feather_editor.instance.image.edit(a(b.shared.feather_editor.current_image))}},b.opts.aviaryOptions))}function f(a){"object"==typeof a.shared.feather_editor&&(a.shared.feather_editor.current_image=a.image.get()[0],a.shared.feather_editor.instance=a,a.shared.feather_editor.launch({image:a.image.get()[0],url:a.image.get()[0].src}))}return{_init:d,launch:f}},a.FE.DefineIcon("aviary",{NAME:"sliders",FA5NAME:"sliders-h"}),a.FE.RegisterCommand("aviary",{title:"Advanced Edit",undo:!1,focus:!1,callback:function(a,b){this.imageAviary.launch(this)},plugin:"imageAviary"}),!a.FE.PLUGINS.image)throw new Error("Image Aviary plugin requires image plugin.");a.FE.DEFAULTS.imageEditButtons.push("aviary")}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/third_party/spell_checker.min.js b/Mobile.Search.Web/Scripts/froala-editor/js/third_party/spell_checker.min.js deleted file mode 100644 index a5f7934..0000000 --- a/Mobile.Search.Web/Scripts/froala-editor/js/third_party/spell_checker.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) - * License https://froala.com/wysiwyg-editor/terms/ - * Copyright 2014-2018 Froala Labs - */ - -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.FE.DEFAULT_SCAYT_OPTIONS={enableOnTouchDevices:!1,disableOptionsStorage:["all"],localization:"en",extraModules:"ui",DefaultSelection:"American English",spellcheckLang:"en_US",contextMenuSections:"suggest|moresuggest",serviceProtocol:"https",servicePort:"80",serviceHost:"svc.webspellchecker.net",servicePath:"spellcheck/script/ssrv.cgi",contextMenuForMisspelledOnly:!0,scriptPath:"https://svc.webspellchecker.net/spellcheck31/lf/scayt3/customscayt/customscayt.js"},a.extend(a.FE.DEFAULTS,{scaytAutoload:!1,scaytCustomerId:"1:tLBmI3-7rr3J1-GMEFA1-mIewo-hynTZ1-PV38I1-uEXCy2-Rn81L-gXuG4-NUNri4-5q9Q34-Jd",scaytOptions:{}}),a.FE.PLUGINS.spellChecker=function(b){function c(a){if(l){var c=!l.isDisabled();a.toggleClass("fr-active",c).attr("aria-pressed",c),b.$el.attr("spellcheck",b.opts.spellcheck&&!c)}}function d(a){l&&!l.isDisabled()&&(["bold","italic","underline","strikeThrough","subscript","superscript","fontFamily","fontSize"].indexOf(a)>=0&&l.removeMarkupInSelectionNode({removeInside:!0}),"html"==a&&g())}function e(a){l&&!l.isDisabled()&&["bold","italic","underline","strikeThrough","subscript","superscript","fontFamily","fontSize"].indexOf(a)>=0&&l.reloadMarkup()}function f(b){if(l&&!l.isDisabled()){var c=b.which;c==a.FE.KEYCODE.ENTER&&setTimeout(l.reloadMarkup,0)}}function g(){l&&l.setDisabled(!l.isDisabled())}function h(a){if(a&&a.getAttribute&&a.getAttribute("data-scayt-word"))a.outerHTML=a.innerHTML;else if(a&&a.nodeType==Node.ELEMENT_NODE)for(var b=a.querySelectorAll("[data-scayt-word]"),c=0;c<b.length;c++)b[c].outerHTML=b[c].innerHTML}function i(){b.events.on("commands.before",d),b.events.on("commands.after",e),b.events.on("keydown",f,!0),b.events.on("html.processGet",h),c(b.$tb.find('[data-cmd="spellChecker"]'))}function j(){var a=b.opts.scaytOptions;a.customerId=b.opts.scaytCustomerId,a.container=b.$iframe?b.$iframe.get(0):b.$el.get(0),a.autoStartup=b.opts.scaytAutoload,a.onLoad=i,null!==b.opts.language&&(b.opts.spellCheckerLanguage=b.opts.language),b.opts.scaytAutoload===!0&&(b.opts.spellcheck=!1),l=new SCAYT.CUSTOMSCAYT(a)}function k(){if(!b.$wp)return!1;if(b.opts.scaytOptions=a.extend({},a.FE.DEFAULT_SCAYT_OPTIONS,b.opts.scaytOptions),"undefined"!=typeof SCAYT)j();else if(b.shared.spellCheckerLoaded||(b.shared.spellCheckerCallbacks=[]),b.shared.spellCheckerCallbacks.push(j),!b.shared.spellCheckerLoaded){b.shared.spellCheckerLoaded=!0;var c=document.createElement("script");c.type="text/javascript",c.src=b.opts.scaytOptions.scriptPath,c.innerText="",c.onload=function(){for(var a=0;a<b.shared.spellCheckerCallbacks.length;a++)b.shared.spellCheckerCallbacks[a]()},document.getElementsByTagName("head")[0].appendChild(c)}}var l;return{_init:k,refresh:c,toggle:g}},a.FE.DefineIcon("spellChecker",{NAME:"keyboard-o"}),a.FE.RegisterCommand("spellChecker",{title:"Spell Checker",undo:!1,focus:!1,accessibilityFocus:!0,forcedRefresh:!0,toggle:!0,callback:function(){this.spellChecker.toggle()},refresh:function(a){this.spellChecker.refresh(a)},plugin:"spellChecker"})}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/jquery.validate-vsdoc.js b/Mobile.Search.Web/Scripts/jquery.validate-vsdoc.js deleted file mode 100644 index 57684e1..0000000 --- a/Mobile.Search.Web/Scripts/jquery.validate-vsdoc.js +++ /dev/null @@ -1,1288 +0,0 @@ -/* -* This file has been commented to support Visual Studio Intellisense. -* You should not use this file at runtime inside the browser--it is only -* intended to be used only for design-time IntelliSense. Please use the -* standard jQuery library for all production use. -* -* Comment version: 1.15.0 -*/ - -/* -* Note: While Microsoft is not the author of this file, Microsoft is -* offering you a license subject to the terms of the Microsoft Software -* License Terms for Microsoft ASP.NET Model View Controller 3. -* Microsoft reserves all other rights. The notices below are provided -* for informational purposes only and are not the license terms under -* which Microsoft distributed this file. -* -* jQuery Validation Plugin - v1.15.0 - 2/4/2013 -* https://github.com/jzaefferer/jquery-validation -* Copyright (c) 2013 Jörn Zaefferer; Licensed MIT -* -*/ - -(function($) { - -$.extend($.fn, { - // http://docs.jquery.com/Plugins/Validation/validate - validate: function( options ) { - /// <summary> - /// Validates the selected form. This method sets up event handlers for submit, focus, - /// keyup, blur and click to trigger validation of the entire form or individual - /// elements. Each one can be disabled, see the onxxx options (onsubmit, onfocusout, - /// onkeyup, onclick). focusInvalid focuses elements when submitting a invalid form. - /// </summary> - /// <param name="options" type="Object"> - /// A set of key/value pairs that configure the validate. All options are optional. - /// </param> - - // if nothing is selected, return nothing; can't chain anyway - if (!this.length) { - options && options.debug && window.console && console.warn( "nothing selected, can't validate, returning nothing" ); - return; - } - - // check if a validator for this form was already created - var validator = $.data(this[0], 'validator'); - if ( validator ) { - return validator; - } - - validator = new $.validator( options, this[0] ); - $.data(this[0], 'validator', validator); - - if ( validator.settings.onsubmit ) { - - // allow suppresing validation by adding a cancel class to the submit button - this.find("input, button").filter(".cancel").click(function() { - validator.cancelSubmit = true; - }); - - // when a submitHandler is used, capture the submitting button - if (validator.settings.submitHandler) { - this.find("input, button").filter(":submit").click(function() { - validator.submitButton = this; - }); - } - - // validate the form on submit - this.submit( function( event ) { - if ( validator.settings.debug ) - // prevent form submit to be able to see console output - event.preventDefault(); - - function handle() { - if ( validator.settings.submitHandler ) { - if (validator.submitButton) { - // insert a hidden input as a replacement for the missing submit button - var hidden = $("<input type='hidden'/>").attr("name", validator.submitButton.name).val(validator.submitButton.value).appendTo(validator.currentForm); - } - validator.settings.submitHandler.call( validator, validator.currentForm ); - if (validator.submitButton) { - // and clean up afterwards; thanks to no-block-scope, hidden can be referenced - hidden.remove(); - } - return false; - } - return true; - } - - // prevent submit for invalid forms or custom submit handlers - if ( validator.cancelSubmit ) { - validator.cancelSubmit = false; - return handle(); - } - if ( validator.form() ) { - if ( validator.pendingRequest ) { - validator.formSubmitted = true; - return false; - } - return handle(); - } else { - validator.focusInvalid(); - return false; - } - }); - } - - return validator; - }, - // http://docs.jquery.com/Plugins/Validation/valid - valid: function() { - /// <summary> - /// Checks if the selected form is valid or if all selected elements are valid. - /// validate() needs to be called on the form before checking it using this method. - /// </summary> - /// <returns type="Boolean" /> - - if ( $(this[0]).is('form')) { - return this.validate().form(); - } else { - var valid = true; - var validator = $(this[0].form).validate(); - this.each(function() { - valid &= validator.element(this); - }); - return valid; - } - }, - // attributes: space seperated list of attributes to retrieve and remove - removeAttrs: function(attributes) { - /// <summary> - /// Remove the specified attributes from the first matched element and return them. - /// </summary> - /// <param name="attributes" type="String"> - /// A space-seperated list of attribute names to remove. - /// </param> - - var result = {}, - $element = this; - $.each(attributes.split(/\s/), function(index, value) { - result[value] = $element.attr(value); - $element.removeAttr(value); - }); - return result; - }, - // http://docs.jquery.com/Plugins/Validation/rules - rules: function(command, argument) { - /// <summary> - /// Return the validations rules for the first selected element. - /// </summary> - /// <param name="command" type="String"> - /// Can be either "add" or "remove". - /// </param> - /// <param name="argument" type=""> - /// A list of rules to add or remove. - /// </param> - - var element = this[0]; - - if (command) { - var settings = $.data(element.form, 'validator').settings; - var staticRules = settings.rules; - var existingRules = $.validator.staticRules(element); - switch(command) { - case "add": - $.extend(existingRules, $.validator.normalizeRule(argument)); - staticRules[element.name] = existingRules; - if (argument.messages) - settings.messages[element.name] = $.extend( settings.messages[element.name], argument.messages ); - break; - case "remove": - if (!argument) { - delete staticRules[element.name]; - return existingRules; - } - var filtered = {}; - $.each(argument.split(/\s/), function(index, method) { - filtered[method] = existingRules[method]; - delete existingRules[method]; - }); - return filtered; - } - } - - var data = $.validator.normalizeRules( - $.extend( - {}, - $.validator.metadataRules(element), - $.validator.classRules(element), - $.validator.attributeRules(element), - $.validator.staticRules(element) - ), element); - - // make sure required is at front - if (data.required) { - var param = data.required; - delete data.required; - data = $.extend({required: param}, data); - } - - return data; - } -}); - -// Custom selectors -$.extend($.expr[":"], { - // http://docs.jquery.com/Plugins/Validation/blank - blank: function(a) {return !$.trim("" + a.value);}, - // http://docs.jquery.com/Plugins/Validation/filled - filled: function(a) {return !!$.trim("" + a.value);}, - // http://docs.jquery.com/Plugins/Validation/unchecked - unchecked: function(a) {return !a.checked;} -}); - -// constructor for validator -$.validator = function( options, form ) { - this.settings = $.extend( true, {}, $.validator.defaults, options ); - this.currentForm = form; - this.init(); -}; - -$.validator.format = function(source, params) { - /// <summary> - /// Replaces {n} placeholders with arguments. - /// One or more arguments can be passed, in addition to the string template itself, to insert - /// into the string. - /// </summary> - /// <param name="source" type="String"> - /// The string to format. - /// </param> - /// <param name="params" type="String"> - /// The first argument to insert, or an array of Strings to insert - /// </param> - /// <returns type="String" /> - - if ( arguments.length == 1 ) - return function() { - var args = $.makeArray(arguments); - args.unshift(source); - return $.validator.format.apply( this, args ); - }; - if ( arguments.length > 2 && params.constructor != Array ) { - params = $.makeArray(arguments).slice(1); - } - if ( params.constructor != Array ) { - params = [ params ]; - } - $.each(params, function(i, n) { - source = source.replace(new RegExp("\\{" + i + "\\}", "g"), n); - }); - return source; -}; - -$.extend($.validator, { - - defaults: { - messages: {}, - groups: {}, - rules: {}, - errorClass: "error", - validClass: "valid", - errorElement: "label", - focusInvalid: true, - errorContainer: $( [] ), - errorLabelContainer: $( [] ), - onsubmit: true, - ignore: [], - ignoreTitle: false, - onfocusin: function(element) { - this.lastActive = element; - - // hide error label and remove error class on focus if enabled - if ( this.settings.focusCleanup && !this.blockFocusCleanup ) { - this.settings.unhighlight && this.settings.unhighlight.call( this, element, this.settings.errorClass, this.settings.validClass ); - this.addWrapper(this.errorsFor(element)).hide(); - } - }, - onfocusout: function(element) { - if ( !this.checkable(element) && (element.name in this.submitted || !this.optional(element)) ) { - this.element(element); - } - }, - onkeyup: function(element) { - if ( element.name in this.submitted || element == this.lastElement ) { - this.element(element); - } - }, - onclick: function(element) { - // click on selects, radiobuttons and checkboxes - if ( element.name in this.submitted ) - this.element(element); - // or option elements, check parent select in that case - else if (element.parentNode.name in this.submitted) - this.element(element.parentNode); - }, - highlight: function( element, errorClass, validClass ) { - $(element).addClass(errorClass).removeClass(validClass); - }, - unhighlight: function( element, errorClass, validClass ) { - $(element).removeClass(errorClass).addClass(validClass); - } - }, - - // http://docs.jquery.com/Plugins/Validation/Validator/setDefaults - setDefaults: function(settings) { - /// <summary> - /// Modify default settings for validation. - /// Accepts everything that Plugins/Validation/validate accepts. - /// </summary> - /// <param name="settings" type="Options"> - /// Options to set as default. - /// </param> - - $.extend( $.validator.defaults, settings ); - }, - - messages: { - required: "This field is required.", - remote: "Please fix this field.", - email: "Please enter a valid email address.", - url: "Please enter a valid URL.", - date: "Please enter a valid date.", - dateISO: "Please enter a valid date (ISO).", - number: "Please enter a valid number.", - digits: "Please enter only digits.", - creditcard: "Please enter a valid credit card number.", - equalTo: "Please enter the same value again.", - accept: "Please enter a value with a valid extension.", - maxlength: $.validator.format("Please enter no more than {0} characters."), - minlength: $.validator.format("Please enter at least {0} characters."), - rangelength: $.validator.format("Please enter a value between {0} and {1} characters long."), - range: $.validator.format("Please enter a value between {0} and {1}."), - max: $.validator.format("Please enter a value less than or equal to {0}."), - min: $.validator.format("Please enter a value greater than or equal to {0}.") - }, - - autoCreateRanges: false, - - prototype: { - - init: function() { - this.labelContainer = $(this.settings.errorLabelContainer); - this.errorContext = this.labelContainer.length && this.labelContainer || $(this.currentForm); - this.containers = $(this.settings.errorContainer).add( this.settings.errorLabelContainer ); - this.submitted = {}; - this.valueCache = {}; - this.pendingRequest = 0; - this.pending = {}; - this.invalid = {}; - this.reset(); - - var groups = (this.groups = {}); - $.each(this.settings.groups, function(key, value) { - $.each(value.split(/\s/), function(index, name) { - groups[name] = key; - }); - }); - var rules = this.settings.rules; - $.each(rules, function(key, value) { - rules[key] = $.validator.normalizeRule(value); - }); - - function delegate(event) { - var validator = $.data(this[0].form, "validator"), - eventType = "on" + event.type.replace(/^validate/, ""); - validator.settings[eventType] && validator.settings[eventType].call(validator, this[0] ); - } - $(this.currentForm) - .validateDelegate(":text, :password, :file, select, textarea", "focusin focusout keyup", delegate) - .validateDelegate(":radio, :checkbox, select, option", "click", delegate); - - if (this.settings.invalidHandler) - $(this.currentForm).bind("invalid-form.validate", this.settings.invalidHandler); - }, - - // http://docs.jquery.com/Plugins/Validation/Validator/form - form: function() { - /// <summary> - /// Validates the form, returns true if it is valid, false otherwise. - /// This behaves as a normal submit event, but returns the result. - /// </summary> - /// <returns type="Boolean" /> - - this.checkForm(); - $.extend(this.submitted, this.errorMap); - this.invalid = $.extend({}, this.errorMap); - if (!this.valid()) - $(this.currentForm).triggerHandler("invalid-form", [this]); - this.showErrors(); - return this.valid(); - }, - - checkForm: function() { - this.prepareForm(); - for ( var i = 0, elements = (this.currentElements = this.elements()); elements[i]; i++ ) { - this.check( elements[i] ); - } - return this.valid(); - }, - - // http://docs.jquery.com/Plugins/Validation/Validator/element - element: function( element ) { - /// <summary> - /// Validates a single element, returns true if it is valid, false otherwise. - /// This behaves as validation on blur or keyup, but returns the result. - /// </summary> - /// <param name="element" type="Selector"> - /// An element to validate, must be inside the validated form. - /// </param> - /// <returns type="Boolean" /> - - element = this.clean( element ); - this.lastElement = element; - this.prepareElement( element ); - this.currentElements = $(element); - var result = this.check( element ); - if ( result ) { - delete this.invalid[element.name]; - } else { - this.invalid[element.name] = true; - } - if ( !this.numberOfInvalids() ) { - // Hide error containers on last error - this.toHide = this.toHide.add( this.containers ); - } - this.showErrors(); - return result; - }, - - // http://docs.jquery.com/Plugins/Validation/Validator/showErrors - showErrors: function(errors) { - /// <summary> - /// Show the specified messages. - /// Keys have to refer to the names of elements, values are displayed for those elements, using the configured error placement. - /// </summary> - /// <param name="errors" type="Object"> - /// One or more key/value pairs of input names and messages. - /// </param> - - if(errors) { - // add items to error list and map - $.extend( this.errorMap, errors ); - this.errorList = []; - for ( var name in errors ) { - this.errorList.push({ - message: errors[name], - element: this.findByName(name)[0] - }); - } - // remove items from success list - this.successList = $.grep( this.successList, function(element) { - return !(element.name in errors); - }); - } - this.settings.showErrors - ? this.settings.showErrors.call( this, this.errorMap, this.errorList ) - : this.defaultShowErrors(); - }, - - // http://docs.jquery.com/Plugins/Validation/Validator/resetForm - resetForm: function() { - /// <summary> - /// Resets the controlled form. - /// Resets input fields to their original value (requires form plugin), removes classes - /// indicating invalid elements and hides error messages. - /// </summary> - - if ( $.fn.resetForm ) - $( this.currentForm ).resetForm(); - this.submitted = {}; - this.prepareForm(); - this.hideErrors(); - this.elements().removeClass( this.settings.errorClass ); - }, - - numberOfInvalids: function() { - /// <summary> - /// Returns the number of invalid fields. - /// This depends on the internal validator state. It covers all fields only after - /// validating the complete form (on submit or via $("form").valid()). After validating - /// a single element, only that element is counted. Most useful in combination with the - /// invalidHandler-option. - /// </summary> - /// <returns type="Number" /> - - return this.objectLength(this.invalid); - }, - - objectLength: function( obj ) { - var count = 0; - for ( var i in obj ) - count++; - return count; - }, - - hideErrors: function() { - this.addWrapper( this.toHide ).hide(); - }, - - valid: function() { - return this.size() == 0; - }, - - size: function() { - return this.errorList.length; - }, - - focusInvalid: function() { - if( this.settings.focusInvalid ) { - try { - $(this.findLastActive() || this.errorList.length && this.errorList[0].element || []) - .filter(":visible") - .focus() - // manually trigger focusin event; without it, focusin handler isn't called, findLastActive won't have anything to find - .trigger("focusin"); - } catch(e) { - // ignore IE throwing errors when focusing hidden elements - } - } - }, - - findLastActive: function() { - var lastActive = this.lastActive; - return lastActive && $.grep(this.errorList, function(n) { - return n.element.name == lastActive.name; - }).length == 1 && lastActive; - }, - - elements: function() { - var validator = this, - rulesCache = {}; - - // select all valid inputs inside the form (no submit or reset buttons) - // workaround $Query([]).add until http://dev.jquery.com/ticket/2114 is solved - return $([]).add(this.currentForm.elements) - .filter(":input") - .not(":submit, :reset, :image, [disabled]") - .not( this.settings.ignore ) - .filter(function() { - !this.name && validator.settings.debug && window.console && console.error( "%o has no name assigned", this); - - // select only the first element for each name, and only those with rules specified - if ( this.name in rulesCache || !validator.objectLength($(this).rules()) ) - return false; - - rulesCache[this.name] = true; - return true; - }); - }, - - clean: function( selector ) { - return $( selector )[0]; - }, - - errors: function() { - return $( this.settings.errorElement + "." + this.settings.errorClass, this.errorContext ); - }, - - reset: function() { - this.successList = []; - this.errorList = []; - this.errorMap = {}; - this.toShow = $([]); - this.toHide = $([]); - this.currentElements = $([]); - }, - - prepareForm: function() { - this.reset(); - this.toHide = this.errors().add( this.containers ); - }, - - prepareElement: function( element ) { - this.reset(); - this.toHide = this.errorsFor(element); - }, - - check: function( element ) { - element = this.clean( element ); - - // if radio/checkbox, validate first element in group instead - if (this.checkable(element)) { - element = this.findByName(element.name).not(this.settings.ignore)[0]; - } - - var rules = $(element).rules(); - var dependencyMismatch = false; - for (var method in rules) { - var rule = { method: method, parameters: rules[method] }; - try { - var result = $.validator.methods[method].call( this, element.value.replace(/\r/g, ""), element, rule.parameters ); - - // if a method indicates that the field is optional and therefore valid, - // don't mark it as valid when there are no other rules - if ( result == "dependency-mismatch" ) { - dependencyMismatch = true; - continue; - } - dependencyMismatch = false; - - if ( result == "pending" ) { - this.toHide = this.toHide.not( this.errorsFor(element) ); - return; - } - - if( !result ) { - this.formatAndAdd( element, rule ); - return false; - } - } catch(e) { - this.settings.debug && window.console && console.log("exception occured when checking element " + element.id - + ", check the '" + rule.method + "' method", e); - throw e; - } - } - if (dependencyMismatch) - return; - if ( this.objectLength(rules) ) - this.successList.push(element); - return true; - }, - - // return the custom message for the given element and validation method - // specified in the element's "messages" metadata - customMetaMessage: function(element, method) { - if (!$.metadata) - return; - - var meta = this.settings.meta - ? $(element).metadata()[this.settings.meta] - : $(element).metadata(); - - return meta && meta.messages && meta.messages[method]; - }, - - // return the custom message for the given element name and validation method - customMessage: function( name, method ) { - var m = this.settings.messages[name]; - return m && (m.constructor == String - ? m - : m[method]); - }, - - // return the first defined argument, allowing empty strings - findDefined: function() { - for(var i = 0; i < arguments.length; i++) { - if (arguments[i] !== undefined) - return arguments[i]; - } - return undefined; - }, - - defaultMessage: function( element, method) { - return this.findDefined( - this.customMessage( element.name, method ), - this.customMetaMessage( element, method ), - // title is never undefined, so handle empty string as undefined - !this.settings.ignoreTitle && element.title || undefined, - $.validator.messages[method], - "<strong>Warning: No message defined for " + element.name + "</strong>" - ); - }, - - formatAndAdd: function( element, rule ) { - var message = this.defaultMessage( element, rule.method ), - theregex = /\$?\{(\d+)\}/g; - if ( typeof message == "function" ) { - message = message.call(this, rule.parameters, element); - } else if (theregex.test(message)) { - message = jQuery.format(message.replace(theregex, '{$1}'), rule.parameters); - } - this.errorList.push({ - message: message, - element: element - }); - - this.errorMap[element.name] = message; - this.submitted[element.name] = message; - }, - - addWrapper: function(toToggle) { - if ( this.settings.wrapper ) - toToggle = toToggle.add( toToggle.parent( this.settings.wrapper ) ); - return toToggle; - }, - - defaultShowErrors: function() { - for ( var i = 0; this.errorList[i]; i++ ) { - var error = this.errorList[i]; - this.settings.highlight && this.settings.highlight.call( this, error.element, this.settings.errorClass, this.settings.validClass ); - this.showLabel( error.element, error.message ); - } - if( this.errorList.length ) { - this.toShow = this.toShow.add( this.containers ); - } - if (this.settings.success) { - for ( var i = 0; this.successList[i]; i++ ) { - this.showLabel( this.successList[i] ); - } - } - if (this.settings.unhighlight) { - for ( var i = 0, elements = this.validElements(); elements[i]; i++ ) { - this.settings.unhighlight.call( this, elements[i], this.settings.errorClass, this.settings.validClass ); - } - } - this.toHide = this.toHide.not( this.toShow ); - this.hideErrors(); - this.addWrapper( this.toShow ).show(); - }, - - validElements: function() { - return this.currentElements.not(this.invalidElements()); - }, - - invalidElements: function() { - return $(this.errorList).map(function() { - return this.element; - }); - }, - - showLabel: function(element, message) { - var label = this.errorsFor( element ); - if ( label.length ) { - // refresh error/success class - label.removeClass().addClass( this.settings.errorClass ); - - // check if we have a generated label, replace the message then - label.attr("generated") && label.html(message); - } else { - // create label - label = $("<" + this.settings.errorElement + "/>") - .attr({"for": this.idOrName(element), generated: true}) - .addClass(this.settings.errorClass) - .html(message || ""); - if ( this.settings.wrapper ) { - // make sure the element is visible, even in IE - // actually showing the wrapped element is handled elsewhere - label = label.hide().show().wrap("<" + this.settings.wrapper + "/>").parent(); - } - if ( !this.labelContainer.append(label).length ) - this.settings.errorPlacement - ? this.settings.errorPlacement(label, $(element) ) - : label.insertAfter(element); - } - if ( !message && this.settings.success ) { - label.text(""); - typeof this.settings.success == "string" - ? label.addClass( this.settings.success ) - : this.settings.success( label ); - } - this.toShow = this.toShow.add(label); - }, - - errorsFor: function(element) { - var name = this.idOrName(element); - return this.errors().filter(function() { - return $(this).attr('for') == name; - }); - }, - - idOrName: function(element) { - return this.groups[element.name] || (this.checkable(element) ? element.name : element.id || element.name); - }, - - checkable: function( element ) { - return /radio|checkbox/i.test(element.type); - }, - - findByName: function( name ) { - // select by name and filter by form for performance over form.find("[name=...]") - var form = this.currentForm; - return $(document.getElementsByName(name)).map(function(index, element) { - return element.form == form && element.name == name && element || null; - }); - }, - - getLength: function(value, element) { - switch( element.nodeName.toLowerCase() ) { - case 'select': - return $("option:selected", element).length; - case 'input': - if( this.checkable( element) ) - return this.findByName(element.name).filter(':checked').length; - } - return value.length; - }, - - depend: function(param, element) { - return this.dependTypes[typeof param] - ? this.dependTypes[typeof param](param, element) - : true; - }, - - dependTypes: { - "boolean": function(param, element) { - return param; - }, - "string": function(param, element) { - return !!$(param, element.form).length; - }, - "function": function(param, element) { - return param(element); - } - }, - - optional: function(element) { - return !$.validator.methods.required.call(this, $.trim(element.value), element) && "dependency-mismatch"; - }, - - startRequest: function(element) { - if (!this.pending[element.name]) { - this.pendingRequest++; - this.pending[element.name] = true; - } - }, - - stopRequest: function(element, valid) { - this.pendingRequest--; - // sometimes synchronization fails, make sure pendingRequest is never < 0 - if (this.pendingRequest < 0) - this.pendingRequest = 0; - delete this.pending[element.name]; - if ( valid && this.pendingRequest == 0 && this.formSubmitted && this.form() ) { - $(this.currentForm).submit(); - this.formSubmitted = false; - } else if (!valid && this.pendingRequest == 0 && this.formSubmitted) { - $(this.currentForm).triggerHandler("invalid-form", [this]); - this.formSubmitted = false; - } - }, - - previousValue: function(element) { - return $.data(element, "previousValue") || $.data(element, "previousValue", { - old: null, - valid: true, - message: this.defaultMessage( element, "remote" ) - }); - } - - }, - - classRuleSettings: { - required: {required: true}, - email: {email: true}, - url: {url: true}, - date: {date: true}, - dateISO: {dateISO: true}, - dateDE: {dateDE: true}, - number: {number: true}, - numberDE: {numberDE: true}, - digits: {digits: true}, - creditcard: {creditcard: true} - }, - - addClassRules: function(className, rules) { - /// <summary> - /// Add a compound class method - useful to refactor common combinations of rules into a single - /// class. - /// </summary> - /// <param name="name" type="String"> - /// The name of the class rule to add - /// </param> - /// <param name="rules" type="Options"> - /// The compound rules - /// </param> - - className.constructor == String ? - this.classRuleSettings[className] = rules : - $.extend(this.classRuleSettings, className); - }, - - classRules: function(element) { - var rules = {}; - var classes = $(element).attr('class'); - classes && $.each(classes.split(' '), function() { - if (this in $.validator.classRuleSettings) { - $.extend(rules, $.validator.classRuleSettings[this]); - } - }); - return rules; - }, - - attributeRules: function(element) { - var rules = {}; - var $element = $(element); - - for (var method in $.validator.methods) { - var value = $element.attr(method); - if (value) { - rules[method] = value; - } - } - - // maxlength may be returned as -1, 2147483647 (IE) and 524288 (safari) for text inputs - if (rules.maxlength && /-1|2147483647|524288/.test(rules.maxlength)) { - delete rules.maxlength; - } - - return rules; - }, - - metadataRules: function(element) { - if (!$.metadata) return {}; - - var meta = $.data(element.form, 'validator').settings.meta; - return meta ? - $(element).metadata()[meta] : - $(element).metadata(); - }, - - staticRules: function(element) { - var rules = {}; - var validator = $.data(element.form, 'validator'); - if (validator.settings.rules) { - rules = $.validator.normalizeRule(validator.settings.rules[element.name]) || {}; - } - return rules; - }, - - normalizeRules: function(rules, element) { - // handle dependency check - $.each(rules, function(prop, val) { - // ignore rule when param is explicitly false, eg. required:false - if (val === false) { - delete rules[prop]; - return; - } - if (val.param || val.depends) { - var keepRule = true; - switch (typeof val.depends) { - case "string": - keepRule = !!$(val.depends, element.form).length; - break; - case "function": - keepRule = val.depends.call(element, element); - break; - } - if (keepRule) { - rules[prop] = val.param !== undefined ? val.param : true; - } else { - delete rules[prop]; - } - } - }); - - // evaluate parameters - $.each(rules, function(rule, parameter) { - rules[rule] = $.isFunction(parameter) ? parameter(element) : parameter; - }); - - // clean number parameters - $.each(['minlength', 'maxlength', 'min', 'max'], function() { - if (rules[this]) { - rules[this] = Number(rules[this]); - } - }); - $.each(['rangelength', 'range'], function() { - if (rules[this]) { - rules[this] = [Number(rules[this][0]), Number(rules[this][1])]; - } - }); - - if ($.validator.autoCreateRanges) { - // auto-create ranges - if (rules.min && rules.max) { - rules.range = [rules.min, rules.max]; - delete rules.min; - delete rules.max; - } - if (rules.minlength && rules.maxlength) { - rules.rangelength = [rules.minlength, rules.maxlength]; - delete rules.minlength; - delete rules.maxlength; - } - } - - // To support custom messages in metadata ignore rule methods titled "messages" - if (rules.messages) { - delete rules.messages; - } - - return rules; - }, - - // Converts a simple string to a {string: true} rule, e.g., "required" to {required:true} - normalizeRule: function(data) { - if( typeof data == "string" ) { - var transformed = {}; - $.each(data.split(/\s/), function() { - transformed[this] = true; - }); - data = transformed; - } - return data; - }, - - // http://docs.jquery.com/Plugins/Validation/Validator/addMethod - addMethod: function(name, method, message) { - /// <summary> - /// Add a custom validation method. It must consist of a name (must be a legal javascript - /// identifier), a javascript based function and a default string message. - /// </summary> - /// <param name="name" type="String"> - /// The name of the method, used to identify and referencing it, must be a valid javascript - /// identifier - /// </param> - /// <param name="method" type="Function"> - /// The actual method implementation, returning true if an element is valid - /// </param> - /// <param name="message" type="String" optional="true"> - /// (Optional) The default message to display for this method. Can be a function created by - /// jQuery.validator.format(value). When undefined, an already existing message is used - /// (handy for localization), otherwise the field-specific messages have to be defined. - /// </param> - - $.validator.methods[name] = method; - $.validator.messages[name] = message != undefined ? message : $.validator.messages[name]; - if (method.length < 3) { - $.validator.addClassRules(name, $.validator.normalizeRule(name)); - } - }, - - methods: { - - // http://docs.jquery.com/Plugins/Validation/Methods/required - required: function(value, element, param) { - // check if dependency is met - if ( !this.depend(param, element) ) - return "dependency-mismatch"; - switch( element.nodeName.toLowerCase() ) { - case 'select': - // could be an array for select-multiple or a string, both are fine this way - var val = $(element).val(); - return val && val.length > 0; - case 'input': - if ( this.checkable(element) ) - return this.getLength(value, element) > 0; - default: - return $.trim(value).length > 0; - } - }, - - // http://docs.jquery.com/Plugins/Validation/Methods/remote - remote: function(value, element, param) { - if ( this.optional(element) ) - return "dependency-mismatch"; - - var previous = this.previousValue(element); - if (!this.settings.messages[element.name] ) - this.settings.messages[element.name] = {}; - previous.originalMessage = this.settings.messages[element.name].remote; - this.settings.messages[element.name].remote = previous.message; - - param = typeof param == "string" && {url:param} || param; - - if ( this.pending[element.name] ) { - return "pending"; - } - if ( previous.old === value ) { - return previous.valid; - } - - previous.old = value; - var validator = this; - this.startRequest(element); - var data = {}; - data[element.name] = value; - $.ajax($.extend(true, { - url: param, - mode: "abort", - port: "validate" + element.name, - dataType: "json", - data: data, - success: function(response) { - validator.settings.messages[element.name].remote = previous.originalMessage; - var valid = response === true; - if ( valid ) { - var submitted = validator.formSubmitted; - validator.prepareElement(element); - validator.formSubmitted = submitted; - validator.successList.push(element); - validator.showErrors(); - } else { - var errors = {}; - var message = response || validator.defaultMessage(element, "remote"); - errors[element.name] = previous.message = $.isFunction(message) ? message(value) : message; - validator.showErrors(errors); - } - previous.valid = valid; - validator.stopRequest(element, valid); - } - }, param)); - return "pending"; - }, - - // http://docs.jquery.com/Plugins/Validation/Methods/minlength - minlength: function(value, element, param) { - return this.optional(element) || this.getLength($.trim(value), element) >= param; - }, - - // http://docs.jquery.com/Plugins/Validation/Methods/maxlength - maxlength: function(value, element, param) { - return this.optional(element) || this.getLength($.trim(value), element) <= param; - }, - - // http://docs.jquery.com/Plugins/Validation/Methods/rangelength - rangelength: function(value, element, param) { - var length = this.getLength($.trim(value), element); - return this.optional(element) || ( length >= param[0] && length <= param[1] ); - }, - - // http://docs.jquery.com/Plugins/Validation/Methods/min - min: function( value, element, param ) { - return this.optional(element) || value >= param; - }, - - // http://docs.jquery.com/Plugins/Validation/Methods/max - max: function( value, element, param ) { - return this.optional(element) || value <= param; - }, - - // http://docs.jquery.com/Plugins/Validation/Methods/range - range: function( value, element, param ) { - return this.optional(element) || ( value >= param[0] && value <= param[1] ); - }, - - // http://docs.jquery.com/Plugins/Validation/Methods/email - email: function(value, element) { - // contributed by Scott Gonzalez: http://projects.scottsplayground.com/email_address_validation/ - return this.optional(element) || /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(value); - }, - - // http://docs.jquery.com/Plugins/Validation/Methods/url - url: function(value, element) { - // contributed by Scott Gonzalez: http://projects.scottsplayground.com/iri/ - return this.optional(element) || /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(value); - }, - - // http://docs.jquery.com/Plugins/Validation/Methods/date - date: function(value, element) { - return this.optional(element) || !/Invalid|NaN/.test(new Date(value)); - }, - - // http://docs.jquery.com/Plugins/Validation/Methods/dateISO - dateISO: function(value, element) { - return this.optional(element) || /^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(value); - }, - - // http://docs.jquery.com/Plugins/Validation/Methods/number - number: function(value, element) { - return this.optional(element) || /^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(value); - }, - - // http://docs.jquery.com/Plugins/Validation/Methods/digits - digits: function(value, element) { - return this.optional(element) || /^\d+$/.test(value); - }, - - // http://docs.jquery.com/Plugins/Validation/Methods/creditcard - // based on http://en.wikipedia.org/wiki/Luhn - creditcard: function(value, element) { - if ( this.optional(element) ) - return "dependency-mismatch"; - // accept only digits and dashes - if (/[^0-9-]+/.test(value)) - return false; - var nCheck = 0, - nDigit = 0, - bEven = false; - - value = value.replace(/\D/g, ""); - - for (var n = value.length - 1; n >= 0; n--) { - var cDigit = value.charAt(n); - var nDigit = parseInt(cDigit, 10); - if (bEven) { - if ((nDigit *= 2) > 9) - nDigit -= 9; - } - nCheck += nDigit; - bEven = !bEven; - } - - return (nCheck % 10) == 0; - }, - - // http://docs.jquery.com/Plugins/Validation/Methods/accept - accept: function(value, element, param) { - param = typeof param == "string" ? param.replace(/,/g, '|') : "png|jpe?g|gif"; - return this.optional(element) || value.match(new RegExp(".(" + param + ")$", "i")); - }, - - // http://docs.jquery.com/Plugins/Validation/Methods/equalTo - equalTo: function(value, element, param) { - // bind to the blur event of the target in order to revalidate whenever the target field is updated - // TODO find a way to bind the event just once, avoiding the unbind-rebind overhead - var target = $(param).unbind(".validate-equalTo").bind("blur.validate-equalTo", function() { - $(element).valid(); - }); - return value == target.val(); - } - - } - -}); - -// deprecated, use $.validator.format instead -$.format = $.validator.format; - -})(jQuery); - -// ajax mode: abort -// usage: $.ajax({ mode: "abort"[, port: "uniqueport"]}); -// if mode:"abort" is used, the previous request on that port (port can be undefined) is aborted via XMLHttpRequest.abort() -;(function($) { - var pendingRequests = {}; - // Use a prefilter if available (1.5+) - if ( $.ajaxPrefilter ) { - $.ajaxPrefilter(function(settings, _, xhr) { - var port = settings.port; - if (settings.mode == "abort") { - if ( pendingRequests[port] ) { - pendingRequests[port].abort(); - } pendingRequests[port] = xhr; - } - }); - } else { - // Proxy ajax - var ajax = $.ajax; - $.ajax = function(settings) { - var mode = ( "mode" in settings ? settings : $.ajaxSettings ).mode, - port = ( "port" in settings ? settings : $.ajaxSettings ).port; - if (mode == "abort") { - if ( pendingRequests[port] ) { - pendingRequests[port].abort(); - } - - return (pendingRequests[port] = ajax.apply(this, arguments)); - } - return ajax.apply(this, arguments); - }; - } -})(jQuery); - -// provides cross-browser focusin and focusout events -// IE has native support, in other browsers, use event caputuring (neither bubbles) - -// provides delegate(type: String, delegate: Selector, handler: Callback) plugin for easier event delegation -// handler is only called when $(event.target).is(delegate), in the scope of the jquery-object for event.target -;(function($) { - // only implement if not provided by jQuery core (since 1.4) - // TODO verify if jQuery 1.4's implementation is compatible with older jQuery special-event APIs - if (!jQuery.event.special.focusin && !jQuery.event.special.focusout && document.addEventListener) { - $.each({ - focus: 'focusin', - blur: 'focusout' - }, function( original, fix ){ - $.event.special[fix] = { - setup:function() { - this.addEventListener( original, handler, true ); - }, - teardown:function() { - this.removeEventListener( original, handler, true ); - }, - handler: function(e) { - arguments[0] = $.event.fix(e); - arguments[0].type = fix; - return $.event.handle.apply(this, arguments); - } - }; - function handler(e) { - e = $.event.fix(e); - e.type = fix; - return $.event.handle.call(this, e); - } - }); - }; - $.extend($.fn, { - validateDelegate: function(delegate, type, handler) { - return this.bind(type, function(event) { - var target = $(event.target); - if (target.is(delegate)) { - return handler.apply(target, arguments); - } - }); - } - }); -})(jQuery); diff --git a/Mobile.Search.Web/Scripts/jquery.validate.js b/Mobile.Search.Web/Scripts/jquery.validate.js deleted file mode 100644 index e110f1d..0000000 --- a/Mobile.Search.Web/Scripts/jquery.validate.js +++ /dev/null @@ -1,1574 +0,0 @@ -/*! - * jQuery Validation Plugin v1.15.1 - * - * http://jqueryvalidation.org/ - * - * Copyright (c) 2016 Jörn Zaefferer - * Released under the MIT license - */ -(function( factory ) { - if ( typeof define === "function" && define.amd ) { - define( ["jquery"], factory ); - } else if (typeof module === "object" && module.exports) { - module.exports = factory( require( "jquery" ) ); - } else { - factory( jQuery ); - } -}(function( $ ) { - -$.extend( $.fn, { - - // http://jqueryvalidation.org/validate/ - validate: function( options ) { - - // If nothing is selected, return nothing; can't chain anyway - if ( !this.length ) { - if ( options && options.debug && window.console ) { - console.warn( "Nothing selected, can't validate, returning nothing." ); - } - return; - } - - // Check if a validator for this form was already created - var validator = $.data( this[ 0 ], "validator" ); - if ( validator ) { - return validator; - } - - // Add novalidate tag if HTML5. - this.attr( "novalidate", "novalidate" ); - - validator = new $.validator( options, this[ 0 ] ); - $.data( this[ 0 ], "validator", validator ); - - if ( validator.settings.onsubmit ) { - - this.on( "click.validate", ":submit", function( event ) { - if ( validator.settings.submitHandler ) { - validator.submitButton = event.target; - } - - // Allow suppressing validation by adding a cancel class to the submit button - if ( $( this ).hasClass( "cancel" ) ) { - validator.cancelSubmit = true; - } - - // Allow suppressing validation by adding the html5 formnovalidate attribute to the submit button - if ( $( this ).attr( "formnovalidate" ) !== undefined ) { - validator.cancelSubmit = true; - } - } ); - - // Validate the form on submit - this.on( "submit.validate", function( event ) { - if ( validator.settings.debug ) { - - // Prevent form submit to be able to see console output - event.preventDefault(); - } - function handle() { - var hidden, result; - if ( validator.settings.submitHandler ) { - if ( validator.submitButton ) { - - // Insert a hidden input as a replacement for the missing submit button - hidden = $( "<input type='hidden'/>" ) - .attr( "name", validator.submitButton.name ) - .val( $( validator.submitButton ).val() ) - .appendTo( validator.currentForm ); - } - result = validator.settings.submitHandler.call( validator, validator.currentForm, event ); - if ( validator.submitButton ) { - - // And clean up afterwards; thanks to no-block-scope, hidden can be referenced - hidden.remove(); - } - if ( result !== undefined ) { - return result; - } - return false; - } - return true; - } - - // Prevent submit for invalid forms or custom submit handlers - if ( validator.cancelSubmit ) { - validator.cancelSubmit = false; - return handle(); - } - if ( validator.form() ) { - if ( validator.pendingRequest ) { - validator.formSubmitted = true; - return false; - } - return handle(); - } else { - validator.focusInvalid(); - return false; - } - } ); - } - - return validator; - }, - - // http://jqueryvalidation.org/valid/ - valid: function() { - var valid, validator, errorList; - - if ( $( this[ 0 ] ).is( "form" ) ) { - valid = this.validate().form(); - } else { - errorList = []; - valid = true; - validator = $( this[ 0 ].form ).validate(); - this.each( function() { - valid = validator.element( this ) && valid; - if ( !valid ) { - errorList = errorList.concat( validator.errorList ); - } - } ); - validator.errorList = errorList; - } - return valid; - }, - - // http://jqueryvalidation.org/rules/ - rules: function( command, argument ) { - var element = this[ 0 ], - settings, staticRules, existingRules, data, param, filtered; - - // If nothing is selected, return empty object; can't chain anyway - if ( element == null || element.form == null ) { - return; - } - - if ( command ) { - settings = $.data( element.form, "validator" ).settings; - staticRules = settings.rules; - existingRules = $.validator.staticRules( element ); - switch ( command ) { - case "add": - $.extend( existingRules, $.validator.normalizeRule( argument ) ); - - // Remove messages from rules, but allow them to be set separately - delete existingRules.messages; - staticRules[ element.name ] = existingRules; - if ( argument.messages ) { - settings.messages[ element.name ] = $.extend( settings.messages[ element.name ], argument.messages ); - } - break; - case "remove": - if ( !argument ) { - delete staticRules[ element.name ]; - return existingRules; - } - filtered = {}; - $.each( argument.split( /\s/ ), function( index, method ) { - filtered[ method ] = existingRules[ method ]; - delete existingRules[ method ]; - if ( method === "required" ) { - $( element ).removeAttr( "aria-required" ); - } - } ); - return filtered; - } - } - - data = $.validator.normalizeRules( - $.extend( - {}, - $.validator.classRules( element ), - $.validator.attributeRules( element ), - $.validator.dataRules( element ), - $.validator.staticRules( element ) - ), element ); - - // Make sure required is at front - if ( data.required ) { - param = data.required; - delete data.required; - data = $.extend( { required: param }, data ); - $( element ).attr( "aria-required", "true" ); - } - - // Make sure remote is at back - if ( data.remote ) { - param = data.remote; - delete data.remote; - data = $.extend( data, { remote: param } ); - } - - return data; - } -} ); - -// Custom selectors -$.extend( $.expr[ ":" ], { - - // http://jqueryvalidation.org/blank-selector/ - blank: function( a ) { - return !$.trim( "" + $( a ).val() ); - }, - - // http://jqueryvalidation.org/filled-selector/ - filled: function( a ) { - var val = $( a ).val(); - return val !== null && !!$.trim( "" + val ); - }, - - // http://jqueryvalidation.org/unchecked-selector/ - unchecked: function( a ) { - return !$( a ).prop( "checked" ); - } -} ); - -// Constructor for validator -$.validator = function( options, form ) { - this.settings = $.extend( true, {}, $.validator.defaults, options ); - this.currentForm = form; - this.init(); -}; - -// http://jqueryvalidation.org/jQuery.validator.format/ -$.validator.format = function( source, params ) { - if ( arguments.length === 1 ) { - return function() { - var args = $.makeArray( arguments ); - args.unshift( source ); - return $.validator.format.apply( this, args ); - }; - } - if ( params === undefined ) { - return source; - } - if ( arguments.length > 2 && params.constructor !== Array ) { - params = $.makeArray( arguments ).slice( 1 ); - } - if ( params.constructor !== Array ) { - params = [ params ]; - } - $.each( params, function( i, n ) { - source = source.replace( new RegExp( "\\{" + i + "\\}", "g" ), function() { - return n; - } ); - } ); - return source; -}; - -$.extend( $.validator, { - - defaults: { - messages: {}, - groups: {}, - rules: {}, - errorClass: "error", - pendingClass: "pending", - validClass: "valid", - errorElement: "label", - focusCleanup: false, - focusInvalid: true, - errorContainer: $( [] ), - errorLabelContainer: $( [] ), - onsubmit: true, - ignore: ":hidden", - ignoreTitle: false, - onfocusin: function( element ) { - this.lastActive = element; - - // Hide error label and remove error class on focus if enabled - if ( this.settings.focusCleanup ) { - if ( this.settings.unhighlight ) { - this.settings.unhighlight.call( this, element, this.settings.errorClass, this.settings.validClass ); - } - this.hideThese( this.errorsFor( element ) ); - } - }, - onfocusout: function( element ) { - if ( !this.checkable( element ) && ( element.name in this.submitted || !this.optional( element ) ) ) { - this.element( element ); - } - }, - onkeyup: function( element, event ) { - - // Avoid revalidate the field when pressing one of the following keys - // Shift => 16 - // Ctrl => 17 - // Alt => 18 - // Caps lock => 20 - // End => 35 - // Home => 36 - // Left arrow => 37 - // Up arrow => 38 - // Right arrow => 39 - // Down arrow => 40 - // Insert => 45 - // Num lock => 144 - // AltGr key => 225 - var excludedKeys = [ - 16, 17, 18, 20, 35, 36, 37, - 38, 39, 40, 45, 144, 225 - ]; - - if ( event.which === 9 && this.elementValue( element ) === "" || $.inArray( event.keyCode, excludedKeys ) !== -1 ) { - return; - } else if ( element.name in this.submitted || element.name in this.invalid ) { - this.element( element ); - } - }, - onclick: function( element ) { - - // Click on selects, radiobuttons and checkboxes - if ( element.name in this.submitted ) { - this.element( element ); - - // Or option elements, check parent select in that case - } else if ( element.parentNode.name in this.submitted ) { - this.element( element.parentNode ); - } - }, - highlight: function( element, errorClass, validClass ) { - if ( element.type === "radio" ) { - this.findByName( element.name ).addClass( errorClass ).removeClass( validClass ); - } else { - $( element ).addClass( errorClass ).removeClass( validClass ); - } - }, - unhighlight: function( element, errorClass, validClass ) { - if ( element.type === "radio" ) { - this.findByName( element.name ).removeClass( errorClass ).addClass( validClass ); - } else { - $( element ).removeClass( errorClass ).addClass( validClass ); - } - } - }, - - // http://jqueryvalidation.org/jQuery.validator.setDefaults/ - setDefaults: function( settings ) { - $.extend( $.validator.defaults, settings ); - }, - - messages: { - required: "This field is required.", - remote: "Please fix this field.", - email: "Please enter a valid email address.", - url: "Please enter a valid URL.", - date: "Please enter a valid date.", - dateISO: "Please enter a valid date (ISO).", - number: "Please enter a valid number.", - digits: "Please enter only digits.", - equalTo: "Please enter the same value again.", - maxlength: $.validator.format( "Please enter no more than {0} characters." ), - minlength: $.validator.format( "Please enter at least {0} characters." ), - rangelength: $.validator.format( "Please enter a value between {0} and {1} characters long." ), - range: $.validator.format( "Please enter a value between {0} and {1}." ), - max: $.validator.format( "Please enter a value less than or equal to {0}." ), - min: $.validator.format( "Please enter a value greater than or equal to {0}." ), - step: $.validator.format( "Please enter a multiple of {0}." ) - }, - - autoCreateRanges: false, - - prototype: { - - init: function() { - this.labelContainer = $( this.settings.errorLabelContainer ); - this.errorContext = this.labelContainer.length && this.labelContainer || $( this.currentForm ); - this.containers = $( this.settings.errorContainer ).add( this.settings.errorLabelContainer ); - this.submitted = {}; - this.valueCache = {}; - this.pendingRequest = 0; - this.pending = {}; - this.invalid = {}; - this.reset(); - - var groups = ( this.groups = {} ), - rules; - $.each( this.settings.groups, function( key, value ) { - if ( typeof value === "string" ) { - value = value.split( /\s/ ); - } - $.each( value, function( index, name ) { - groups[ name ] = key; - } ); - } ); - rules = this.settings.rules; - $.each( rules, function( key, value ) { - rules[ key ] = $.validator.normalizeRule( value ); - } ); - - function delegate( event ) { - - // Set form expando on contenteditable - if ( !this.form && this.hasAttribute( "contenteditable" ) ) { - this.form = $( this ).closest( "form" )[ 0 ]; - } - - var validator = $.data( this.form, "validator" ), - eventType = "on" + event.type.replace( /^validate/, "" ), - settings = validator.settings; - if ( settings[ eventType ] && !$( this ).is( settings.ignore ) ) { - settings[ eventType ].call( validator, this, event ); - } - } - - $( this.currentForm ) - .on( "focusin.validate focusout.validate keyup.validate", - ":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], " + - "[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], " + - "[type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], " + - "[type='radio'], [type='checkbox'], [contenteditable]", delegate ) - - // Support: Chrome, oldIE - // "select" is provided as event.target when clicking a option - .on( "click.validate", "select, option, [type='radio'], [type='checkbox']", delegate ); - - if ( this.settings.invalidHandler ) { - $( this.currentForm ).on( "invalid-form.validate", this.settings.invalidHandler ); - } - - // Add aria-required to any Static/Data/Class required fields before first validation - // Screen readers require this attribute to be present before the initial submission http://www.w3.org/TR/WCAG-TECHS/ARIA2.html - $( this.currentForm ).find( "[required], [data-rule-required], .required" ).attr( "aria-required", "true" ); - }, - - // http://jqueryvalidation.org/Validator.form/ - form: function() { - this.checkForm(); - $.extend( this.submitted, this.errorMap ); - this.invalid = $.extend( {}, this.errorMap ); - if ( !this.valid() ) { - $( this.currentForm ).triggerHandler( "invalid-form", [ this ] ); - } - this.showErrors(); - return this.valid(); - }, - - checkForm: function() { - this.prepareForm(); - for ( var i = 0, elements = ( this.currentElements = this.elements() ); elements[ i ]; i++ ) { - this.check( elements[ i ] ); - } - return this.valid(); - }, - - // http://jqueryvalidation.org/Validator.element/ - element: function( element ) { - var cleanElement = this.clean( element ), - checkElement = this.validationTargetFor( cleanElement ), - v = this, - result = true, - rs, group; - - if ( checkElement === undefined ) { - delete this.invalid[ cleanElement.name ]; - } else { - this.prepareElement( checkElement ); - this.currentElements = $( checkElement ); - - // If this element is grouped, then validate all group elements already - // containing a value - group = this.groups[ checkElement.name ]; - if ( group ) { - $.each( this.groups, function( name, testgroup ) { - if ( testgroup === group && name !== checkElement.name ) { - cleanElement = v.validationTargetFor( v.clean( v.findByName( name ) ) ); - if ( cleanElement && cleanElement.name in v.invalid ) { - v.currentElements.push( cleanElement ); - result = v.check( cleanElement ) && result; - } - } - } ); - } - - rs = this.check( checkElement ) !== false; - result = result && rs; - if ( rs ) { - this.invalid[ checkElement.name ] = false; - } else { - this.invalid[ checkElement.name ] = true; - } - - if ( !this.numberOfInvalids() ) { - - // Hide error containers on last error - this.toHide = this.toHide.add( this.containers ); - } - this.showErrors(); - - // Add aria-invalid status for screen readers - $( element ).attr( "aria-invalid", !rs ); - } - - return result; - }, - - // http://jqueryvalidation.org/Validator.showErrors/ - showErrors: function( errors ) { - if ( errors ) { - var validator = this; - - // Add items to error list and map - $.extend( this.errorMap, errors ); - this.errorList = $.map( this.errorMap, function( message, name ) { - return { - message: message, - element: validator.findByName( name )[ 0 ] - }; - } ); - - // Remove items from success list - this.successList = $.grep( this.successList, function( element ) { - return !( element.name in errors ); - } ); - } - if ( this.settings.showErrors ) { - this.settings.showErrors.call( this, this.errorMap, this.errorList ); - } else { - this.defaultShowErrors(); - } - }, - - // http://jqueryvalidation.org/Validator.resetForm/ - resetForm: function() { - if ( $.fn.resetForm ) { - $( this.currentForm ).resetForm(); - } - this.invalid = {}; - this.submitted = {}; - this.prepareForm(); - this.hideErrors(); - var elements = this.elements() - .removeData( "previousValue" ) - .removeAttr( "aria-invalid" ); - - this.resetElements( elements ); - }, - - resetElements: function( elements ) { - var i; - - if ( this.settings.unhighlight ) { - for ( i = 0; elements[ i ]; i++ ) { - this.settings.unhighlight.call( this, elements[ i ], - this.settings.errorClass, "" ); - this.findByName( elements[ i ].name ).removeClass( this.settings.validClass ); - } - } else { - elements - .removeClass( this.settings.errorClass ) - .removeClass( this.settings.validClass ); - } - }, - - numberOfInvalids: function() { - return this.objectLength( this.invalid ); - }, - - objectLength: function( obj ) { - /* jshint unused: false */ - var count = 0, - i; - for ( i in obj ) { - if ( obj[ i ] ) { - count++; - } - } - return count; - }, - - hideErrors: function() { - this.hideThese( this.toHide ); - }, - - hideThese: function( errors ) { - errors.not( this.containers ).text( "" ); - this.addWrapper( errors ).hide(); - }, - - valid: function() { - return this.size() === 0; - }, - - size: function() { - return this.errorList.length; - }, - - focusInvalid: function() { - if ( this.settings.focusInvalid ) { - try { - $( this.findLastActive() || this.errorList.length && this.errorList[ 0 ].element || [] ) - .filter( ":visible" ) - .focus() - - // Manually trigger focusin event; without it, focusin handler isn't called, findLastActive won't have anything to find - .trigger( "focusin" ); - } catch ( e ) { - - // Ignore IE throwing errors when focusing hidden elements - } - } - }, - - findLastActive: function() { - var lastActive = this.lastActive; - return lastActive && $.grep( this.errorList, function( n ) { - return n.element.name === lastActive.name; - } ).length === 1 && lastActive; - }, - - elements: function() { - var validator = this, - rulesCache = {}; - - // Select all valid inputs inside the form (no submit or reset buttons) - return $( this.currentForm ) - .find( "input, select, textarea, [contenteditable]" ) - .not( ":submit, :reset, :image, :disabled" ) - .not( this.settings.ignore ) - .filter( function() { - var name = this.name || $( this ).attr( "name" ); // For contenteditable - if ( !name && validator.settings.debug && window.console ) { - console.error( "%o has no name assigned", this ); - } - - // Set form expando on contenteditable - if ( this.hasAttribute( "contenteditable" ) ) { - this.form = $( this ).closest( "form" )[ 0 ]; - } - - // Select only the first element for each name, and only those with rules specified - if ( name in rulesCache || !validator.objectLength( $( this ).rules() ) ) { - return false; - } - - rulesCache[ name ] = true; - return true; - } ); - }, - - clean: function( selector ) { - return $( selector )[ 0 ]; - }, - - errors: function() { - var errorClass = this.settings.errorClass.split( " " ).join( "." ); - return $( this.settings.errorElement + "." + errorClass, this.errorContext ); - }, - - resetInternals: function() { - this.successList = []; - this.errorList = []; - this.errorMap = {}; - this.toShow = $( [] ); - this.toHide = $( [] ); - }, - - reset: function() { - this.resetInternals(); - this.currentElements = $( [] ); - }, - - prepareForm: function() { - this.reset(); - this.toHide = this.errors().add( this.containers ); - }, - - prepareElement: function( element ) { - this.reset(); - this.toHide = this.errorsFor( element ); - }, - - elementValue: function( element ) { - var $element = $( element ), - type = element.type, - val, idx; - - if ( type === "radio" || type === "checkbox" ) { - return this.findByName( element.name ).filter( ":checked" ).val(); - } else if ( type === "number" && typeof element.validity !== "undefined" ) { - return element.validity.badInput ? "NaN" : $element.val(); - } - - if ( element.hasAttribute( "contenteditable" ) ) { - val = $element.text(); - } else { - val = $element.val(); - } - - if ( type === "file" ) { - - // Modern browser (chrome & safari) - if ( val.substr( 0, 12 ) === "C:\\fakepath\\" ) { - return val.substr( 12 ); - } - - // Legacy browsers - // Unix-based path - idx = val.lastIndexOf( "/" ); - if ( idx >= 0 ) { - return val.substr( idx + 1 ); - } - - // Windows-based path - idx = val.lastIndexOf( "\\" ); - if ( idx >= 0 ) { - return val.substr( idx + 1 ); - } - - // Just the file name - return val; - } - - if ( typeof val === "string" ) { - return val.replace( /\r/g, "" ); - } - return val; - }, - - check: function( element ) { - element = this.validationTargetFor( this.clean( element ) ); - - var rules = $( element ).rules(), - rulesCount = $.map( rules, function( n, i ) { - return i; - } ).length, - dependencyMismatch = false, - val = this.elementValue( element ), - result, method, rule; - - // If a normalizer is defined for this element, then - // call it to retreive the changed value instead - // of using the real one. - // Note that `this` in the normalizer is `element`. - if ( typeof rules.normalizer === "function" ) { - val = rules.normalizer.call( element, val ); - - if ( typeof val !== "string" ) { - throw new TypeError( "The normalizer should return a string value." ); - } - - // Delete the normalizer from rules to avoid treating - // it as a pre-defined method. - delete rules.normalizer; - } - - for ( method in rules ) { - rule = { method: method, parameters: rules[ method ] }; - try { - result = $.validator.methods[ method ].call( this, val, element, rule.parameters ); - - // If a method indicates that the field is optional and therefore valid, - // don't mark it as valid when there are no other rules - if ( result === "dependency-mismatch" && rulesCount === 1 ) { - dependencyMismatch = true; - continue; - } - dependencyMismatch = false; - - if ( result === "pending" ) { - this.toHide = this.toHide.not( this.errorsFor( element ) ); - return; - } - - if ( !result ) { - this.formatAndAdd( element, rule ); - return false; - } - } catch ( e ) { - if ( this.settings.debug && window.console ) { - console.log( "Exception occurred when checking element " + element.id + ", check the '" + rule.method + "' method.", e ); - } - if ( e instanceof TypeError ) { - e.message += ". Exception occurred when checking element " + element.id + ", check the '" + rule.method + "' method."; - } - - throw e; - } - } - if ( dependencyMismatch ) { - return; - } - if ( this.objectLength( rules ) ) { - this.successList.push( element ); - } - return true; - }, - - // Return the custom message for the given element and validation method - // specified in the element's HTML5 data attribute - // return the generic message if present and no method specific message is present - customDataMessage: function( element, method ) { - return $( element ).data( "msg" + method.charAt( 0 ).toUpperCase() + - method.substring( 1 ).toLowerCase() ) || $( element ).data( "msg" ); - }, - - // Return the custom message for the given element name and validation method - customMessage: function( name, method ) { - var m = this.settings.messages[ name ]; - return m && ( m.constructor === String ? m : m[ method ] ); - }, - - // Return the first defined argument, allowing empty strings - findDefined: function() { - for ( var i = 0; i < arguments.length; i++ ) { - if ( arguments[ i ] !== undefined ) { - return arguments[ i ]; - } - } - return undefined; - }, - - // The second parameter 'rule' used to be a string, and extended to an object literal - // of the following form: - // rule = { - // method: "method name", - // parameters: "the given method parameters" - // } - // - // The old behavior still supported, kept to maintain backward compatibility with - // old code, and will be removed in the next major release. - defaultMessage: function( element, rule ) { - if ( typeof rule === "string" ) { - rule = { method: rule }; - } - - var message = this.findDefined( - this.customMessage( element.name, rule.method ), - this.customDataMessage( element, rule.method ), - - // 'title' is never undefined, so handle empty string as undefined - !this.settings.ignoreTitle && element.title || undefined, - $.validator.messages[ rule.method ], - "<strong>Warning: No message defined for " + element.name + "</strong>" - ), - theregex = /\$?\{(\d+)\}/g; - if ( typeof message === "function" ) { - message = message.call( this, rule.parameters, element ); - } else if ( theregex.test( message ) ) { - message = $.validator.format( message.replace( theregex, "{$1}" ), rule.parameters ); - } - - return message; - }, - - formatAndAdd: function( element, rule ) { - var message = this.defaultMessage( element, rule ); - - this.errorList.push( { - message: message, - element: element, - method: rule.method - } ); - - this.errorMap[ element.name ] = message; - this.submitted[ element.name ] = message; - }, - - addWrapper: function( toToggle ) { - if ( this.settings.wrapper ) { - toToggle = toToggle.add( toToggle.parent( this.settings.wrapper ) ); - } - return toToggle; - }, - - defaultShowErrors: function() { - var i, elements, error; - for ( i = 0; this.errorList[ i ]; i++ ) { - error = this.errorList[ i ]; - if ( this.settings.highlight ) { - this.settings.highlight.call( this, error.element, this.settings.errorClass, this.settings.validClass ); - } - this.showLabel( error.element, error.message ); - } - if ( this.errorList.length ) { - this.toShow = this.toShow.add( this.containers ); - } - if ( this.settings.success ) { - for ( i = 0; this.successList[ i ]; i++ ) { - this.showLabel( this.successList[ i ] ); - } - } - if ( this.settings.unhighlight ) { - for ( i = 0, elements = this.validElements(); elements[ i ]; i++ ) { - this.settings.unhighlight.call( this, elements[ i ], this.settings.errorClass, this.settings.validClass ); - } - } - this.toHide = this.toHide.not( this.toShow ); - this.hideErrors(); - this.addWrapper( this.toShow ).show(); - }, - - validElements: function() { - return this.currentElements.not( this.invalidElements() ); - }, - - invalidElements: function() { - return $( this.errorList ).map( function() { - return this.element; - } ); - }, - - showLabel: function( element, message ) { - var place, group, errorID, v, - error = this.errorsFor( element ), - elementID = this.idOrName( element ), - describedBy = $( element ).attr( "aria-describedby" ); - - if ( error.length ) { - - // Refresh error/success class - error.removeClass( this.settings.validClass ).addClass( this.settings.errorClass ); - - // Replace message on existing label - error.html( message ); - } else { - - // Create error element - error = $( "<" + this.settings.errorElement + ">" ) - .attr( "id", elementID + "-error" ) - .addClass( this.settings.errorClass ) - .html( message || "" ); - - // Maintain reference to the element to be placed into the DOM - place = error; - if ( this.settings.wrapper ) { - - // Make sure the element is visible, even in IE - // actually showing the wrapped element is handled elsewhere - place = error.hide().show().wrap( "<" + this.settings.wrapper + "/>" ).parent(); - } - if ( this.labelContainer.length ) { - this.labelContainer.append( place ); - } else if ( this.settings.errorPlacement ) { - this.settings.errorPlacement.call( this, place, $( element ) ); - } else { - place.insertAfter( element ); - } - - // Link error back to the element - if ( error.is( "label" ) ) { - - // If the error is a label, then associate using 'for' - error.attr( "for", elementID ); - - // If the element is not a child of an associated label, then it's necessary - // to explicitly apply aria-describedby - } else if ( error.parents( "label[for='" + this.escapeCssMeta( elementID ) + "']" ).length === 0 ) { - errorID = error.attr( "id" ); - - // Respect existing non-error aria-describedby - if ( !describedBy ) { - describedBy = errorID; - } else if ( !describedBy.match( new RegExp( "\\b" + this.escapeCssMeta( errorID ) + "\\b" ) ) ) { - - // Add to end of list if not already present - describedBy += " " + errorID; - } - $( element ).attr( "aria-describedby", describedBy ); - - // If this element is grouped, then assign to all elements in the same group - group = this.groups[ element.name ]; - if ( group ) { - v = this; - $.each( v.groups, function( name, testgroup ) { - if ( testgroup === group ) { - $( "[name='" + v.escapeCssMeta( name ) + "']", v.currentForm ) - .attr( "aria-describedby", error.attr( "id" ) ); - } - } ); - } - } - } - if ( !message && this.settings.success ) { - error.text( "" ); - if ( typeof this.settings.success === "string" ) { - error.addClass( this.settings.success ); - } else { - this.settings.success( error, element ); - } - } - this.toShow = this.toShow.add( error ); - }, - - errorsFor: function( element ) { - var name = this.escapeCssMeta( this.idOrName( element ) ), - describer = $( element ).attr( "aria-describedby" ), - selector = "label[for='" + name + "'], label[for='" + name + "'] *"; - - // 'aria-describedby' should directly reference the error element - if ( describer ) { - selector = selector + ", #" + this.escapeCssMeta( describer ) - .replace( /\s+/g, ", #" ); - } - - return this - .errors() - .filter( selector ); - }, - - // See https://api.jquery.com/category/selectors/, for CSS - // meta-characters that should be escaped in order to be used with JQuery - // as a literal part of a name/id or any selector. - escapeCssMeta: function( string ) { - return string.replace( /([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g, "\\$1" ); - }, - - idOrName: function( element ) { - return this.groups[ element.name ] || ( this.checkable( element ) ? element.name : element.id || element.name ); - }, - - validationTargetFor: function( element ) { - - // If radio/checkbox, validate first element in group instead - if ( this.checkable( element ) ) { - element = this.findByName( element.name ); - } - - // Always apply ignore filter - return $( element ).not( this.settings.ignore )[ 0 ]; - }, - - checkable: function( element ) { - return ( /radio|checkbox/i ).test( element.type ); - }, - - findByName: function( name ) { - return $( this.currentForm ).find( "[name='" + this.escapeCssMeta( name ) + "']" ); - }, - - getLength: function( value, element ) { - switch ( element.nodeName.toLowerCase() ) { - case "select": - return $( "option:selected", element ).length; - case "input": - if ( this.checkable( element ) ) { - return this.findByName( element.name ).filter( ":checked" ).length; - } - } - return value.length; - }, - - depend: function( param, element ) { - return this.dependTypes[ typeof param ] ? this.dependTypes[ typeof param ]( param, element ) : true; - }, - - dependTypes: { - "boolean": function( param ) { - return param; - }, - "string": function( param, element ) { - return !!$( param, element.form ).length; - }, - "function": function( param, element ) { - return param( element ); - } - }, - - optional: function( element ) { - var val = this.elementValue( element ); - return !$.validator.methods.required.call( this, val, element ) && "dependency-mismatch"; - }, - - startRequest: function( element ) { - if ( !this.pending[ element.name ] ) { - this.pendingRequest++; - $( element ).addClass( this.settings.pendingClass ); - this.pending[ element.name ] = true; - } - }, - - stopRequest: function( element, valid ) { - this.pendingRequest--; - - // Sometimes synchronization fails, make sure pendingRequest is never < 0 - if ( this.pendingRequest < 0 ) { - this.pendingRequest = 0; - } - delete this.pending[ element.name ]; - $( element ).removeClass( this.settings.pendingClass ); - if ( valid && this.pendingRequest === 0 && this.formSubmitted && this.form() ) { - $( this.currentForm ).submit(); - this.formSubmitted = false; - } else if ( !valid && this.pendingRequest === 0 && this.formSubmitted ) { - $( this.currentForm ).triggerHandler( "invalid-form", [ this ] ); - this.formSubmitted = false; - } - }, - - previousValue: function( element, method ) { - method = typeof method === "string" && method || "remote"; - - return $.data( element, "previousValue" ) || $.data( element, "previousValue", { - old: null, - valid: true, - message: this.defaultMessage( element, { method: method } ) - } ); - }, - - // Cleans up all forms and elements, removes validator-specific events - destroy: function() { - this.resetForm(); - - $( this.currentForm ) - .off( ".validate" ) - .removeData( "validator" ) - .find( ".validate-equalTo-blur" ) - .off( ".validate-equalTo" ) - .removeClass( "validate-equalTo-blur" ); - } - - }, - - classRuleSettings: { - required: { required: true }, - email: { email: true }, - url: { url: true }, - date: { date: true }, - dateISO: { dateISO: true }, - number: { number: true }, - digits: { digits: true }, - creditcard: { creditcard: true } - }, - - addClassRules: function( className, rules ) { - if ( className.constructor === String ) { - this.classRuleSettings[ className ] = rules; - } else { - $.extend( this.classRuleSettings, className ); - } - }, - - classRules: function( element ) { - var rules = {}, - classes = $( element ).attr( "class" ); - - if ( classes ) { - $.each( classes.split( " " ), function() { - if ( this in $.validator.classRuleSettings ) { - $.extend( rules, $.validator.classRuleSettings[ this ] ); - } - } ); - } - return rules; - }, - - normalizeAttributeRule: function( rules, type, method, value ) { - - // Convert the value to a number for number inputs, and for text for backwards compability - // allows type="date" and others to be compared as strings - if ( /min|max|step/.test( method ) && ( type === null || /number|range|text/.test( type ) ) ) { - value = Number( value ); - - // Support Opera Mini, which returns NaN for undefined minlength - if ( isNaN( value ) ) { - value = undefined; - } - } - - if ( value || value === 0 ) { - rules[ method ] = value; - } else if ( type === method && type !== "range" ) { - - // Exception: the jquery validate 'range' method - // does not test for the html5 'range' type - rules[ method ] = true; - } - }, - - attributeRules: function( element ) { - var rules = {}, - $element = $( element ), - type = element.getAttribute( "type" ), - method, value; - - for ( method in $.validator.methods ) { - - // Support for <input required> in both html5 and older browsers - if ( method === "required" ) { - value = element.getAttribute( method ); - - // Some browsers return an empty string for the required attribute - // and non-HTML5 browsers might have required="" markup - if ( value === "" ) { - value = true; - } - - // Force non-HTML5 browsers to return bool - value = !!value; - } else { - value = $element.attr( method ); - } - - this.normalizeAttributeRule( rules, type, method, value ); - } - - // 'maxlength' may be returned as -1, 2147483647 ( IE ) and 524288 ( safari ) for text inputs - if ( rules.maxlength && /-1|2147483647|524288/.test( rules.maxlength ) ) { - delete rules.maxlength; - } - - return rules; - }, - - dataRules: function( element ) { - var rules = {}, - $element = $( element ), - type = element.getAttribute( "type" ), - method, value; - - for ( method in $.validator.methods ) { - value = $element.data( "rule" + method.charAt( 0 ).toUpperCase() + method.substring( 1 ).toLowerCase() ); - this.normalizeAttributeRule( rules, type, method, value ); - } - return rules; - }, - - staticRules: function( element ) { - var rules = {}, - validator = $.data( element.form, "validator" ); - - if ( validator.settings.rules ) { - rules = $.validator.normalizeRule( validator.settings.rules[ element.name ] ) || {}; - } - return rules; - }, - - normalizeRules: function( rules, element ) { - - // Handle dependency check - $.each( rules, function( prop, val ) { - - // Ignore rule when param is explicitly false, eg. required:false - if ( val === false ) { - delete rules[ prop ]; - return; - } - if ( val.param || val.depends ) { - var keepRule = true; - switch ( typeof val.depends ) { - case "string": - keepRule = !!$( val.depends, element.form ).length; - break; - case "function": - keepRule = val.depends.call( element, element ); - break; - } - if ( keepRule ) { - rules[ prop ] = val.param !== undefined ? val.param : true; - } else { - $.data( element.form, "validator" ).resetElements( $( element ) ); - delete rules[ prop ]; - } - } - } ); - - // Evaluate parameters - $.each( rules, function( rule, parameter ) { - rules[ rule ] = $.isFunction( parameter ) && rule !== "normalizer" ? parameter( element ) : parameter; - } ); - - // Clean number parameters - $.each( [ "minlength", "maxlength" ], function() { - if ( rules[ this ] ) { - rules[ this ] = Number( rules[ this ] ); - } - } ); - $.each( [ "rangelength", "range" ], function() { - var parts; - if ( rules[ this ] ) { - if ( $.isArray( rules[ this ] ) ) { - rules[ this ] = [ Number( rules[ this ][ 0 ] ), Number( rules[ this ][ 1 ] ) ]; - } else if ( typeof rules[ this ] === "string" ) { - parts = rules[ this ].replace( /[\[\]]/g, "" ).split( /[\s,]+/ ); - rules[ this ] = [ Number( parts[ 0 ] ), Number( parts[ 1 ] ) ]; - } - } - } ); - - if ( $.validator.autoCreateRanges ) { - - // Auto-create ranges - if ( rules.min != null && rules.max != null ) { - rules.range = [ rules.min, rules.max ]; - delete rules.min; - delete rules.max; - } - if ( rules.minlength != null && rules.maxlength != null ) { - rules.rangelength = [ rules.minlength, rules.maxlength ]; - delete rules.minlength; - delete rules.maxlength; - } - } - - return rules; - }, - - // Converts a simple string to a {string: true} rule, e.g., "required" to {required:true} - normalizeRule: function( data ) { - if ( typeof data === "string" ) { - var transformed = {}; - $.each( data.split( /\s/ ), function() { - transformed[ this ] = true; - } ); - data = transformed; - } - return data; - }, - - // http://jqueryvalidation.org/jQuery.validator.addMethod/ - addMethod: function( name, method, message ) { - $.validator.methods[ name ] = method; - $.validator.messages[ name ] = message !== undefined ? message : $.validator.messages[ name ]; - if ( method.length < 3 ) { - $.validator.addClassRules( name, $.validator.normalizeRule( name ) ); - } - }, - - // http://jqueryvalidation.org/jQuery.validator.methods/ - methods: { - - // http://jqueryvalidation.org/required-method/ - required: function( value, element, param ) { - - // Check if dependency is met - if ( !this.depend( param, element ) ) { - return "dependency-mismatch"; - } - if ( element.nodeName.toLowerCase() === "select" ) { - - // Could be an array for select-multiple or a string, both are fine this way - var val = $( element ).val(); - return val && val.length > 0; - } - if ( this.checkable( element ) ) { - return this.getLength( value, element ) > 0; - } - return value.length > 0; - }, - - // http://jqueryvalidation.org/email-method/ - email: function( value, element ) { - - // From https://html.spec.whatwg.org/multipage/forms.html#valid-e-mail-address - // Retrieved 2014-01-14 - // If you have a problem with this implementation, report a bug against the above spec - // Or use custom methods to implement your own email validation - return this.optional( element ) || /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test( value ); - }, - - // http://jqueryvalidation.org/url-method/ - url: function( value, element ) { - - // Copyright (c) 2010-2013 Diego Perini, MIT licensed - // https://gist.github.com/dperini/729294 - // see also https://mathiasbynens.be/demo/url-regex - // modified to allow protocol-relative URLs - return this.optional( element ) || /^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test( value ); - }, - - // http://jqueryvalidation.org/date-method/ - date: function( value, element ) { - return this.optional( element ) || !/Invalid|NaN/.test( new Date( value ).toString() ); - }, - - // http://jqueryvalidation.org/dateISO-method/ - dateISO: function( value, element ) { - return this.optional( element ) || /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test( value ); - }, - - // http://jqueryvalidation.org/number-method/ - number: function( value, element ) { - return this.optional( element ) || /^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test( value ); - }, - - // http://jqueryvalidation.org/digits-method/ - digits: function( value, element ) { - return this.optional( element ) || /^\d+$/.test( value ); - }, - - // http://jqueryvalidation.org/minlength-method/ - minlength: function( value, element, param ) { - var length = $.isArray( value ) ? value.length : this.getLength( value, element ); - return this.optional( element ) || length >= param; - }, - - // http://jqueryvalidation.org/maxlength-method/ - maxlength: function( value, element, param ) { - var length = $.isArray( value ) ? value.length : this.getLength( value, element ); - return this.optional( element ) || length <= param; - }, - - // http://jqueryvalidation.org/rangelength-method/ - rangelength: function( value, element, param ) { - var length = $.isArray( value ) ? value.length : this.getLength( value, element ); - return this.optional( element ) || ( length >= param[ 0 ] && length <= param[ 1 ] ); - }, - - // http://jqueryvalidation.org/min-method/ - min: function( value, element, param ) { - return this.optional( element ) || value >= param; - }, - - // http://jqueryvalidation.org/max-method/ - max: function( value, element, param ) { - return this.optional( element ) || value <= param; - }, - - // http://jqueryvalidation.org/range-method/ - range: function( value, element, param ) { - return this.optional( element ) || ( value >= param[ 0 ] && value <= param[ 1 ] ); - }, - - // http://jqueryvalidation.org/step-method/ - step: function( value, element, param ) { - var type = $( element ).attr( "type" ), - errorMessage = "Step attribute on input type " + type + " is not supported.", - supportedTypes = [ "text", "number", "range" ], - re = new RegExp( "\\b" + type + "\\b" ), - notSupported = type && !re.test( supportedTypes.join() ), - decimalPlaces = function( num ) { - var match = ( "" + num ).match( /(?:\.(\d+))?$/ ); - if ( !match ) { - return 0; - } - - // Number of digits right of decimal point. - return match[ 1 ] ? match[ 1 ].length : 0; - }, - toInt = function( num ) { - return Math.round( num * Math.pow( 10, decimals ) ); - }, - valid = true, - decimals; - - // Works only for text, number and range input types - // TODO find a way to support input types date, datetime, datetime-local, month, time and week - if ( notSupported ) { - throw new Error( errorMessage ); - } - - decimals = decimalPlaces( param ); - - // Value can't have too many decimals - if ( decimalPlaces( value ) > decimals || toInt( value ) % toInt( param ) !== 0 ) { - valid = false; - } - - return this.optional( element ) || valid; - }, - - // http://jqueryvalidation.org/equalTo-method/ - equalTo: function( value, element, param ) { - - // Bind to the blur event of the target in order to revalidate whenever the target field is updated - var target = $( param ); - if ( this.settings.onfocusout && target.not( ".validate-equalTo-blur" ).length ) { - target.addClass( "validate-equalTo-blur" ).on( "blur.validate-equalTo", function() { - $( element ).valid(); - } ); - } - return value === target.val(); - }, - - // http://jqueryvalidation.org/remote-method/ - remote: function( value, element, param, method ) { - if ( this.optional( element ) ) { - return "dependency-mismatch"; - } - - method = typeof method === "string" && method || "remote"; - - var previous = this.previousValue( element, method ), - validator, data, optionDataString; - - if ( !this.settings.messages[ element.name ] ) { - this.settings.messages[ element.name ] = {}; - } - previous.originalMessage = previous.originalMessage || this.settings.messages[ element.name ][ method ]; - this.settings.messages[ element.name ][ method ] = previous.message; - - param = typeof param === "string" && { url: param } || param; - optionDataString = $.param( $.extend( { data: value }, param.data ) ); - if ( previous.old === optionDataString ) { - return previous.valid; - } - - previous.old = optionDataString; - validator = this; - this.startRequest( element ); - data = {}; - data[ element.name ] = value; - $.ajax( $.extend( true, { - mode: "abort", - port: "validate" + element.name, - dataType: "json", - data: data, - context: validator.currentForm, - success: function( response ) { - var valid = response === true || response === "true", - errors, message, submitted; - - validator.settings.messages[ element.name ][ method ] = previous.originalMessage; - if ( valid ) { - submitted = validator.formSubmitted; - validator.resetInternals(); - validator.toHide = validator.errorsFor( element ); - validator.formSubmitted = submitted; - validator.successList.push( element ); - validator.invalid[ element.name ] = false; - validator.showErrors(); - } else { - errors = {}; - message = response || validator.defaultMessage( element, { method: method, parameters: value } ); - errors[ element.name ] = previous.message = message; - validator.invalid[ element.name ] = true; - validator.showErrors( errors ); - } - previous.valid = valid; - validator.stopRequest( element, valid ); - } - }, param ) ); - return "pending"; - } - } - -} ); - -// Ajax mode: abort -// usage: $.ajax({ mode: "abort"[, port: "uniqueport"]}); -// if mode:"abort" is used, the previous request on that port (port can be undefined) is aborted via XMLHttpRequest.abort() - -var pendingRequests = {}, - ajax; - -// Use a prefilter if available (1.5+) -if ( $.ajaxPrefilter ) { - $.ajaxPrefilter( function( settings, _, xhr ) { - var port = settings.port; - if ( settings.mode === "abort" ) { - if ( pendingRequests[ port ] ) { - pendingRequests[ port ].abort(); - } - pendingRequests[ port ] = xhr; - } - } ); -} else { - - // Proxy ajax - ajax = $.ajax; - $.ajax = function( settings ) { - var mode = ( "mode" in settings ? settings : $.ajaxSettings ).mode, - port = ( "port" in settings ? settings : $.ajaxSettings ).port; - if ( mode === "abort" ) { - if ( pendingRequests[ port ] ) { - pendingRequests[ port ].abort(); - } - pendingRequests[ port ] = ajax.apply( this, arguments ); - return pendingRequests[ port ]; - } - return ajax.apply( this, arguments ); - }; -} - -})); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/jquery.validate.min.js b/Mobile.Search.Web/Scripts/jquery.validate.min.js deleted file mode 100644 index 9da901f..0000000 --- a/Mobile.Search.Web/Scripts/jquery.validate.min.js +++ /dev/null @@ -1,4 +0,0 @@ -/*! jQuery Validation Plugin - v1.15.1 - 7/22/2016 - * http://jqueryvalidation.org/ - * Copyright (c) 2016 Jörn Zaefferer; Licensed MIT */ -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){a.extend(a.fn,{validate:function(b){if(!this.length)return void(b&&b.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."));var c=a.data(this[0],"validator");return c?c:(this.attr("novalidate","novalidate"),c=new a.validator(b,this[0]),a.data(this[0],"validator",c),c.settings.onsubmit&&(this.on("click.validate",":submit",function(b){c.settings.submitHandler&&(c.submitButton=b.target),a(this).hasClass("cancel")&&(c.cancelSubmit=!0),void 0!==a(this).attr("formnovalidate")&&(c.cancelSubmit=!0)}),this.on("submit.validate",function(b){function d(){var d,e;return!c.settings.submitHandler||(c.submitButton&&(d=a("<input type='hidden'/>").attr("name",c.submitButton.name).val(a(c.submitButton).val()).appendTo(c.currentForm)),e=c.settings.submitHandler.call(c,c.currentForm,b),c.submitButton&&d.remove(),void 0!==e&&e)}return c.settings.debug&&b.preventDefault(),c.cancelSubmit?(c.cancelSubmit=!1,d()):c.form()?c.pendingRequest?(c.formSubmitted=!0,!1):d():(c.focusInvalid(),!1)})),c)},valid:function(){var b,c,d;return a(this[0]).is("form")?b=this.validate().form():(d=[],b=!0,c=a(this[0].form).validate(),this.each(function(){b=c.element(this)&&b,b||(d=d.concat(c.errorList))}),c.errorList=d),b},rules:function(b,c){var d,e,f,g,h,i,j=this[0];if(null!=j&&null!=j.form){if(b)switch(d=a.data(j.form,"validator").settings,e=d.rules,f=a.validator.staticRules(j),b){case"add":a.extend(f,a.validator.normalizeRule(c)),delete f.messages,e[j.name]=f,c.messages&&(d.messages[j.name]=a.extend(d.messages[j.name],c.messages));break;case"remove":return c?(i={},a.each(c.split(/\s/),function(b,c){i[c]=f[c],delete f[c],"required"===c&&a(j).removeAttr("aria-required")}),i):(delete e[j.name],f)}return g=a.validator.normalizeRules(a.extend({},a.validator.classRules(j),a.validator.attributeRules(j),a.validator.dataRules(j),a.validator.staticRules(j)),j),g.required&&(h=g.required,delete g.required,g=a.extend({required:h},g),a(j).attr("aria-required","true")),g.remote&&(h=g.remote,delete g.remote,g=a.extend(g,{remote:h})),g}}}),a.extend(a.expr[":"],{blank:function(b){return!a.trim(""+a(b).val())},filled:function(b){var c=a(b).val();return null!==c&&!!a.trim(""+c)},unchecked:function(b){return!a(b).prop("checked")}}),a.validator=function(b,c){this.settings=a.extend(!0,{},a.validator.defaults,b),this.currentForm=c,this.init()},a.validator.format=function(b,c){return 1===arguments.length?function(){var c=a.makeArray(arguments);return c.unshift(b),a.validator.format.apply(this,c)}:void 0===c?b:(arguments.length>2&&c.constructor!==Array&&(c=a.makeArray(arguments).slice(1)),c.constructor!==Array&&(c=[c]),a.each(c,function(a,c){b=b.replace(new RegExp("\\{"+a+"\\}","g"),function(){return c})}),b)},a.extend(a.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(a){this.lastActive=a,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,a,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(a)))},onfocusout:function(a){this.checkable(a)||!(a.name in this.submitted)&&this.optional(a)||this.element(a)},onkeyup:function(b,c){var d=[16,17,18,20,35,36,37,38,39,40,45,144,225];9===c.which&&""===this.elementValue(b)||a.inArray(c.keyCode,d)!==-1||(b.name in this.submitted||b.name in this.invalid)&&this.element(b)},onclick:function(a){a.name in this.submitted?this.element(a):a.parentNode.name in this.submitted&&this.element(a.parentNode)},highlight:function(b,c,d){"radio"===b.type?this.findByName(b.name).addClass(c).removeClass(d):a(b).addClass(c).removeClass(d)},unhighlight:function(b,c,d){"radio"===b.type?this.findByName(b.name).removeClass(c).addClass(d):a(b).removeClass(c).addClass(d)}},setDefaults:function(b){a.extend(a.validator.defaults,b)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:a.validator.format("Please enter no more than {0} characters."),minlength:a.validator.format("Please enter at least {0} characters."),rangelength:a.validator.format("Please enter a value between {0} and {1} characters long."),range:a.validator.format("Please enter a value between {0} and {1}."),max:a.validator.format("Please enter a value less than or equal to {0}."),min:a.validator.format("Please enter a value greater than or equal to {0}."),step:a.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){function b(b){!this.form&&this.hasAttribute("contenteditable")&&(this.form=a(this).closest("form")[0]);var c=a.data(this.form,"validator"),d="on"+b.type.replace(/^validate/,""),e=c.settings;e[d]&&!a(this).is(e.ignore)&&e[d].call(c,this,b)}this.labelContainer=a(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||a(this.currentForm),this.containers=a(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var c,d=this.groups={};a.each(this.settings.groups,function(b,c){"string"==typeof c&&(c=c.split(/\s/)),a.each(c,function(a,c){d[c]=b})}),c=this.settings.rules,a.each(c,function(b,d){c[b]=a.validator.normalizeRule(d)}),a(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable]",b).on("click.validate","select, option, [type='radio'], [type='checkbox']",b),this.settings.invalidHandler&&a(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler),a(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),a.extend(this.submitted,this.errorMap),this.invalid=a.extend({},this.errorMap),this.valid()||a(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var a=0,b=this.currentElements=this.elements();b[a];a++)this.check(b[a]);return this.valid()},element:function(b){var c,d,e=this.clean(b),f=this.validationTargetFor(e),g=this,h=!0;return void 0===f?delete this.invalid[e.name]:(this.prepareElement(f),this.currentElements=a(f),d=this.groups[f.name],d&&a.each(this.groups,function(a,b){b===d&&a!==f.name&&(e=g.validationTargetFor(g.clean(g.findByName(a))),e&&e.name in g.invalid&&(g.currentElements.push(e),h=g.check(e)&&h))}),c=this.check(f)!==!1,h=h&&c,c?this.invalid[f.name]=!1:this.invalid[f.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),a(b).attr("aria-invalid",!c)),h},showErrors:function(b){if(b){var c=this;a.extend(this.errorMap,b),this.errorList=a.map(this.errorMap,function(a,b){return{message:a,element:c.findByName(b)[0]}}),this.successList=a.grep(this.successList,function(a){return!(a.name in b)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){a.fn.resetForm&&a(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var b=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(b)},resetElements:function(a){var b;if(this.settings.unhighlight)for(b=0;a[b];b++)this.settings.unhighlight.call(this,a[b],this.settings.errorClass,""),this.findByName(a[b].name).removeClass(this.settings.validClass);else a.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(a){var b,c=0;for(b in a)a[b]&&c++;return c},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(a){a.not(this.containers).text(""),this.addWrapper(a).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{a(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(a){}},findLastActive:function(){var b=this.lastActive;return b&&1===a.grep(this.errorList,function(a){return a.element.name===b.name}).length&&b},elements:function(){var b=this,c={};return a(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var d=this.name||a(this).attr("name");return!d&&b.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.hasAttribute("contenteditable")&&(this.form=a(this).closest("form")[0]),!(d in c||!b.objectLength(a(this).rules()))&&(c[d]=!0,!0)})},clean:function(b){return a(b)[0]},errors:function(){var b=this.settings.errorClass.split(" ").join(".");return a(this.settings.errorElement+"."+b,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=a([]),this.toHide=a([])},reset:function(){this.resetInternals(),this.currentElements=a([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(a){this.reset(),this.toHide=this.errorsFor(a)},elementValue:function(b){var c,d,e=a(b),f=b.type;return"radio"===f||"checkbox"===f?this.findByName(b.name).filter(":checked").val():"number"===f&&"undefined"!=typeof b.validity?b.validity.badInput?"NaN":e.val():(c=b.hasAttribute("contenteditable")?e.text():e.val(),"file"===f?"C:\\fakepath\\"===c.substr(0,12)?c.substr(12):(d=c.lastIndexOf("/"),d>=0?c.substr(d+1):(d=c.lastIndexOf("\\"),d>=0?c.substr(d+1):c)):"string"==typeof c?c.replace(/\r/g,""):c)},check:function(b){b=this.validationTargetFor(this.clean(b));var c,d,e,f=a(b).rules(),g=a.map(f,function(a,b){return b}).length,h=!1,i=this.elementValue(b);if("function"==typeof f.normalizer){if(i=f.normalizer.call(b,i),"string"!=typeof i)throw new TypeError("The normalizer should return a string value.");delete f.normalizer}for(d in f){e={method:d,parameters:f[d]};try{if(c=a.validator.methods[d].call(this,i,b,e.parameters),"dependency-mismatch"===c&&1===g){h=!0;continue}if(h=!1,"pending"===c)return void(this.toHide=this.toHide.not(this.errorsFor(b)));if(!c)return this.formatAndAdd(b,e),!1}catch(a){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+b.id+", check the '"+e.method+"' method.",a),a instanceof TypeError&&(a.message+=". Exception occurred when checking element "+b.id+", check the '"+e.method+"' method."),a}}if(!h)return this.objectLength(f)&&this.successList.push(b),!0},customDataMessage:function(b,c){return a(b).data("msg"+c.charAt(0).toUpperCase()+c.substring(1).toLowerCase())||a(b).data("msg")},customMessage:function(a,b){var c=this.settings.messages[a];return c&&(c.constructor===String?c:c[b])},findDefined:function(){for(var a=0;a<arguments.length;a++)if(void 0!==arguments[a])return arguments[a]},defaultMessage:function(b,c){"string"==typeof c&&(c={method:c});var d=this.findDefined(this.customMessage(b.name,c.method),this.customDataMessage(b,c.method),!this.settings.ignoreTitle&&b.title||void 0,a.validator.messages[c.method],"<strong>Warning: No message defined for "+b.name+"</strong>"),e=/\$?\{(\d+)\}/g;return"function"==typeof d?d=d.call(this,c.parameters,b):e.test(d)&&(d=a.validator.format(d.replace(e,"{$1}"),c.parameters)),d},formatAndAdd:function(a,b){var c=this.defaultMessage(a,b);this.errorList.push({message:c,element:a,method:b.method}),this.errorMap[a.name]=c,this.submitted[a.name]=c},addWrapper:function(a){return this.settings.wrapper&&(a=a.add(a.parent(this.settings.wrapper))),a},defaultShowErrors:function(){var a,b,c;for(a=0;this.errorList[a];a++)c=this.errorList[a],this.settings.highlight&&this.settings.highlight.call(this,c.element,this.settings.errorClass,this.settings.validClass),this.showLabel(c.element,c.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(a=0;this.successList[a];a++)this.showLabel(this.successList[a]);if(this.settings.unhighlight)for(a=0,b=this.validElements();b[a];a++)this.settings.unhighlight.call(this,b[a],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return a(this.errorList).map(function(){return this.element})},showLabel:function(b,c){var d,e,f,g,h=this.errorsFor(b),i=this.idOrName(b),j=a(b).attr("aria-describedby");h.length?(h.removeClass(this.settings.validClass).addClass(this.settings.errorClass),h.html(c)):(h=a("<"+this.settings.errorElement+">").attr("id",i+"-error").addClass(this.settings.errorClass).html(c||""),d=h,this.settings.wrapper&&(d=h.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(d):this.settings.errorPlacement?this.settings.errorPlacement.call(this,d,a(b)):d.insertAfter(b),h.is("label")?h.attr("for",i):0===h.parents("label[for='"+this.escapeCssMeta(i)+"']").length&&(f=h.attr("id"),j?j.match(new RegExp("\\b"+this.escapeCssMeta(f)+"\\b"))||(j+=" "+f):j=f,a(b).attr("aria-describedby",j),e=this.groups[b.name],e&&(g=this,a.each(g.groups,function(b,c){c===e&&a("[name='"+g.escapeCssMeta(b)+"']",g.currentForm).attr("aria-describedby",h.attr("id"))})))),!c&&this.settings.success&&(h.text(""),"string"==typeof this.settings.success?h.addClass(this.settings.success):this.settings.success(h,b)),this.toShow=this.toShow.add(h)},errorsFor:function(b){var c=this.escapeCssMeta(this.idOrName(b)),d=a(b).attr("aria-describedby"),e="label[for='"+c+"'], label[for='"+c+"'] *";return d&&(e=e+", #"+this.escapeCssMeta(d).replace(/\s+/g,", #")),this.errors().filter(e)},escapeCssMeta:function(a){return a.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(a){return this.groups[a.name]||(this.checkable(a)?a.name:a.id||a.name)},validationTargetFor:function(b){return this.checkable(b)&&(b=this.findByName(b.name)),a(b).not(this.settings.ignore)[0]},checkable:function(a){return/radio|checkbox/i.test(a.type)},findByName:function(b){return a(this.currentForm).find("[name='"+this.escapeCssMeta(b)+"']")},getLength:function(b,c){switch(c.nodeName.toLowerCase()){case"select":return a("option:selected",c).length;case"input":if(this.checkable(c))return this.findByName(c.name).filter(":checked").length}return b.length},depend:function(a,b){return!this.dependTypes[typeof a]||this.dependTypes[typeof a](a,b)},dependTypes:{boolean:function(a){return a},string:function(b,c){return!!a(b,c.form).length},function:function(a,b){return a(b)}},optional:function(b){var c=this.elementValue(b);return!a.validator.methods.required.call(this,c,b)&&"dependency-mismatch"},startRequest:function(b){this.pending[b.name]||(this.pendingRequest++,a(b).addClass(this.settings.pendingClass),this.pending[b.name]=!0)},stopRequest:function(b,c){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[b.name],a(b).removeClass(this.settings.pendingClass),c&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(a(this.currentForm).submit(),this.formSubmitted=!1):!c&&0===this.pendingRequest&&this.formSubmitted&&(a(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(b,c){return c="string"==typeof c&&c||"remote",a.data(b,"previousValue")||a.data(b,"previousValue",{old:null,valid:!0,message:this.defaultMessage(b,{method:c})})},destroy:function(){this.resetForm(),a(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(b,c){b.constructor===String?this.classRuleSettings[b]=c:a.extend(this.classRuleSettings,b)},classRules:function(b){var c={},d=a(b).attr("class");return d&&a.each(d.split(" "),function(){this in a.validator.classRuleSettings&&a.extend(c,a.validator.classRuleSettings[this])}),c},normalizeAttributeRule:function(a,b,c,d){/min|max|step/.test(c)&&(null===b||/number|range|text/.test(b))&&(d=Number(d),isNaN(d)&&(d=void 0)),d||0===d?a[c]=d:b===c&&"range"!==b&&(a[c]=!0)},attributeRules:function(b){var c,d,e={},f=a(b),g=b.getAttribute("type");for(c in a.validator.methods)"required"===c?(d=b.getAttribute(c),""===d&&(d=!0),d=!!d):d=f.attr(c),this.normalizeAttributeRule(e,g,c,d);return e.maxlength&&/-1|2147483647|524288/.test(e.maxlength)&&delete e.maxlength,e},dataRules:function(b){var c,d,e={},f=a(b),g=b.getAttribute("type");for(c in a.validator.methods)d=f.data("rule"+c.charAt(0).toUpperCase()+c.substring(1).toLowerCase()),this.normalizeAttributeRule(e,g,c,d);return e},staticRules:function(b){var c={},d=a.data(b.form,"validator");return d.settings.rules&&(c=a.validator.normalizeRule(d.settings.rules[b.name])||{}),c},normalizeRules:function(b,c){return a.each(b,function(d,e){if(e===!1)return void delete b[d];if(e.param||e.depends){var f=!0;switch(typeof e.depends){case"string":f=!!a(e.depends,c.form).length;break;case"function":f=e.depends.call(c,c)}f?b[d]=void 0===e.param||e.param:(a.data(c.form,"validator").resetElements(a(c)),delete b[d])}}),a.each(b,function(d,e){b[d]=a.isFunction(e)&&"normalizer"!==d?e(c):e}),a.each(["minlength","maxlength"],function(){b[this]&&(b[this]=Number(b[this]))}),a.each(["rangelength","range"],function(){var c;b[this]&&(a.isArray(b[this])?b[this]=[Number(b[this][0]),Number(b[this][1])]:"string"==typeof b[this]&&(c=b[this].replace(/[\[\]]/g,"").split(/[\s,]+/),b[this]=[Number(c[0]),Number(c[1])]))}),a.validator.autoCreateRanges&&(null!=b.min&&null!=b.max&&(b.range=[b.min,b.max],delete b.min,delete b.max),null!=b.minlength&&null!=b.maxlength&&(b.rangelength=[b.minlength,b.maxlength],delete b.minlength,delete b.maxlength)),b},normalizeRule:function(b){if("string"==typeof b){var c={};a.each(b.split(/\s/),function(){c[this]=!0}),b=c}return b},addMethod:function(b,c,d){a.validator.methods[b]=c,a.validator.messages[b]=void 0!==d?d:a.validator.messages[b],c.length<3&&a.validator.addClassRules(b,a.validator.normalizeRule(b))},methods:{required:function(b,c,d){if(!this.depend(d,c))return"dependency-mismatch";if("select"===c.nodeName.toLowerCase()){var e=a(c).val();return e&&e.length>0}return this.checkable(c)?this.getLength(b,c)>0:b.length>0},email:function(a,b){return this.optional(b)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(a)},url:function(a,b){return this.optional(b)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(a)},date:function(a,b){return this.optional(b)||!/Invalid|NaN/.test(new Date(a).toString())},dateISO:function(a,b){return this.optional(b)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(a)},number:function(a,b){return this.optional(b)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(a)},digits:function(a,b){return this.optional(b)||/^\d+$/.test(a)},minlength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||e>=d},maxlength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||e<=d},rangelength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||e>=d[0]&&e<=d[1]},min:function(a,b,c){return this.optional(b)||a>=c},max:function(a,b,c){return this.optional(b)||a<=c},range:function(a,b,c){return this.optional(b)||a>=c[0]&&a<=c[1]},step:function(b,c,d){var e,f=a(c).attr("type"),g="Step attribute on input type "+f+" is not supported.",h=["text","number","range"],i=new RegExp("\\b"+f+"\\b"),j=f&&!i.test(h.join()),k=function(a){var b=(""+a).match(/(?:\.(\d+))?$/);return b&&b[1]?b[1].length:0},l=function(a){return Math.round(a*Math.pow(10,e))},m=!0;if(j)throw new Error(g);return e=k(d),(k(b)>e||l(b)%l(d)!==0)&&(m=!1),this.optional(c)||m},equalTo:function(b,c,d){var e=a(d);return this.settings.onfocusout&&e.not(".validate-equalTo-blur").length&&e.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){a(c).valid()}),b===e.val()},remote:function(b,c,d,e){if(this.optional(c))return"dependency-mismatch";e="string"==typeof e&&e||"remote";var f,g,h,i=this.previousValue(c,e);return this.settings.messages[c.name]||(this.settings.messages[c.name]={}),i.originalMessage=i.originalMessage||this.settings.messages[c.name][e],this.settings.messages[c.name][e]=i.message,d="string"==typeof d&&{url:d}||d,h=a.param(a.extend({data:b},d.data)),i.old===h?i.valid:(i.old=h,f=this,this.startRequest(c),g={},g[c.name]=b,a.ajax(a.extend(!0,{mode:"abort",port:"validate"+c.name,dataType:"json",data:g,context:f.currentForm,success:function(a){var d,g,h,j=a===!0||"true"===a;f.settings.messages[c.name][e]=i.originalMessage,j?(h=f.formSubmitted,f.resetInternals(),f.toHide=f.errorsFor(c),f.formSubmitted=h,f.successList.push(c),f.invalid[c.name]=!1,f.showErrors()):(d={},g=a||f.defaultMessage(c,{method:e,parameters:b}),d[c.name]=i.message=g,f.invalid[c.name]=!0,f.showErrors(d)),i.valid=j,f.stopRequest(c,j)}},d)),"pending")}}});var b,c={};a.ajaxPrefilter?a.ajaxPrefilter(function(a,b,d){var e=a.port;"abort"===a.mode&&(c[e]&&c[e].abort(),c[e]=d)}):(b=a.ajax,a.ajax=function(d){var e=("mode"in d?d:a.ajaxSettings).mode,f=("port"in d?d:a.ajaxSettings).port;return"abort"===e?(c[f]&&c[f].abort(),c[f]=b.apply(this,arguments),c[f]):b.apply(this,arguments)})}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/jquery.validate.unobtrusive.js b/Mobile.Search.Web/Scripts/jquery.validate.unobtrusive.js deleted file mode 100644 index 0503334..0000000 --- a/Mobile.Search.Web/Scripts/jquery.validate.unobtrusive.js +++ /dev/null @@ -1,429 +0,0 @@ -/* NUGET: BEGIN LICENSE TEXT - * - * Microsoft grants you the right to use these script files for the sole - * purpose of either: (i) interacting through your browser with the Microsoft - * website or online service, subject to the applicable licensing or use - * terms; or (ii) using the files as included with a Microsoft product subject - * to that product's license terms. Microsoft reserves all other rights to the - * files not expressly granted by Microsoft, whether by implication, estoppel - * or otherwise. Insofar as a script file is dual licensed under GPL, - * Microsoft neither took the code under GPL nor distributes it thereunder but - * under the terms set out in this paragraph. All notices and licenses - * below are for informational purposes only. - * - * NUGET: END LICENSE TEXT */ -/*! -** Unobtrusive validation support library for jQuery and jQuery Validate -** Copyright (C) Microsoft Corporation. All rights reserved. -*/ - -/*jslint white: true, browser: true, onevar: true, undef: true, nomen: true, eqeqeq: true, plusplus: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: false */ -/*global document: false, jQuery: false */ - -(function ($) { - var $jQval = $.validator, - adapters, - data_validation = "unobtrusiveValidation"; - - function setValidationValues(options, ruleName, value) { - options.rules[ruleName] = value; - if (options.message) { - options.messages[ruleName] = options.message; - } - } - - function splitAndTrim(value) { - return value.replace(/^\s+|\s+$/g, "").split(/\s*,\s*/g); - } - - function escapeAttributeValue(value) { - // As mentioned on http://api.jquery.com/category/selectors/ - return value.replace(/([!"#$%&'()*+,./:;<=>?@\[\\\]^`{|}~])/g, "\\$1"); - } - - function getModelPrefix(fieldName) { - return fieldName.substr(0, fieldName.lastIndexOf(".") + 1); - } - - function appendModelPrefix(value, prefix) { - if (value.indexOf("*.") === 0) { - value = value.replace("*.", prefix); - } - return value; - } - - function onError(error, inputElement) { // 'this' is the form element - var container = $(this).find("[data-valmsg-for='" + escapeAttributeValue(inputElement[0].name) + "']"), - replaceAttrValue = container.attr("data-valmsg-replace"), - replace = replaceAttrValue ? $.parseJSON(replaceAttrValue) !== false : null; - - container.removeClass("field-validation-valid").addClass("field-validation-error"); - error.data("unobtrusiveContainer", container); - - if (replace) { - container.empty(); - error.removeClass("input-validation-error").appendTo(container); - } - else { - error.hide(); - } - } - - function onErrors(event, validator) { // 'this' is the form element - var container = $(this).find("[data-valmsg-summary=true]"), - list = container.find("ul"); - - if (list && list.length && validator.errorList.length) { - list.empty(); - container.addClass("validation-summary-errors").removeClass("validation-summary-valid"); - - $.each(validator.errorList, function () { - $("<li />").html(this.message).appendTo(list); - }); - } - } - - function onSuccess(error) { // 'this' is the form element - var container = error.data("unobtrusiveContainer"), - replaceAttrValue = container.attr("data-valmsg-replace"), - replace = replaceAttrValue ? $.parseJSON(replaceAttrValue) : null; - - if (container) { - container.addClass("field-validation-valid").removeClass("field-validation-error"); - error.removeData("unobtrusiveContainer"); - - if (replace) { - container.empty(); - } - } - } - - function onReset(event) { // 'this' is the form element - var $form = $(this), - key = '__jquery_unobtrusive_validation_form_reset'; - if ($form.data(key)) { - return; - } - // Set a flag that indicates we're currently resetting the form. - $form.data(key, true); - try { - $form.data("validator").resetForm(); - } finally { - $form.removeData(key); - } - - $form.find(".validation-summary-errors") - .addClass("validation-summary-valid") - .removeClass("validation-summary-errors"); - $form.find(".field-validation-error") - .addClass("field-validation-valid") - .removeClass("field-validation-error") - .removeData("unobtrusiveContainer") - .find(">*") // If we were using valmsg-replace, get the underlying error - .removeData("unobtrusiveContainer"); - } - - function validationInfo(form) { - var $form = $(form), - result = $form.data(data_validation), - onResetProxy = $.proxy(onReset, form), - defaultOptions = $jQval.unobtrusive.options || {}, - execInContext = function (name, args) { - var func = defaultOptions[name]; - func && $.isFunction(func) && func.apply(form, args); - } - - if (!result) { - result = { - options: { // options structure passed to jQuery Validate's validate() method - errorClass: defaultOptions.errorClass || "input-validation-error", - errorElement: defaultOptions.errorElement || "span", - errorPlacement: function () { - onError.apply(form, arguments); - execInContext("errorPlacement", arguments); - }, - invalidHandler: function () { - onErrors.apply(form, arguments); - execInContext("invalidHandler", arguments); - }, - messages: {}, - rules: {}, - success: function () { - onSuccess.apply(form, arguments); - execInContext("success", arguments); - } - }, - attachValidation: function () { - $form - .off("reset." + data_validation, onResetProxy) - .on("reset." + data_validation, onResetProxy) - .validate(this.options); - }, - validate: function () { // a validation function that is called by unobtrusive Ajax - $form.validate(); - return $form.valid(); - } - }; - $form.data(data_validation, result); - } - - return result; - } - - $jQval.unobtrusive = { - adapters: [], - - parseElement: function (element, skipAttach) { - /// <summary> - /// Parses a single HTML element for unobtrusive validation attributes. - /// </summary> - /// <param name="element" domElement="true">The HTML element to be parsed.</param> - /// <param name="skipAttach" type="Boolean">[Optional] true to skip attaching the - /// validation to the form. If parsing just this single element, you should specify true. - /// If parsing several elements, you should specify false, and manually attach the validation - /// to the form when you are finished. The default is false.</param> - var $element = $(element), - form = $element.parents("form")[0], - valInfo, rules, messages; - - if (!form) { // Cannot do client-side validation without a form - return; - } - - valInfo = validationInfo(form); - valInfo.options.rules[element.name] = rules = {}; - valInfo.options.messages[element.name] = messages = {}; - - $.each(this.adapters, function () { - var prefix = "data-val-" + this.name, - message = $element.attr(prefix), - paramValues = {}; - - if (message !== undefined) { // Compare against undefined, because an empty message is legal (and falsy) - prefix += "-"; - - $.each(this.params, function () { - paramValues[this] = $element.attr(prefix + this); - }); - - this.adapt({ - element: element, - form: form, - message: message, - params: paramValues, - rules: rules, - messages: messages - }); - } - }); - - $.extend(rules, { "__dummy__": true }); - - if (!skipAttach) { - valInfo.attachValidation(); - } - }, - - parse: function (selector) { - /// <summary> - /// Parses all the HTML elements in the specified selector. It looks for input elements decorated - /// with the [data-val=true] attribute value and enables validation according to the data-val-* - /// attribute values. - /// </summary> - /// <param name="selector" type="String">Any valid jQuery selector.</param> - - // $forms includes all forms in selector's DOM hierarchy (parent, children and self) that have at least one - // element with data-val=true - var $selector = $(selector), - $forms = $selector.parents() - .addBack() - .filter("form") - .add($selector.find("form")) - .has("[data-val=true]"); - - $selector.find("[data-val=true]").each(function () { - $jQval.unobtrusive.parseElement(this, true); - }); - - $forms.each(function () { - var info = validationInfo(this); - if (info) { - info.attachValidation(); - } - }); - } - }; - - adapters = $jQval.unobtrusive.adapters; - - adapters.add = function (adapterName, params, fn) { - /// <summary>Adds a new adapter to convert unobtrusive HTML into a jQuery Validate validation.</summary> - /// <param name="adapterName" type="String">The name of the adapter to be added. This matches the name used - /// in the data-val-nnnn HTML attribute (where nnnn is the adapter name).</param> - /// <param name="params" type="Array" optional="true">[Optional] An array of parameter names (strings) that will - /// be extracted from the data-val-nnnn-mmmm HTML attributes (where nnnn is the adapter name, and - /// mmmm is the parameter name).</param> - /// <param name="fn" type="Function">The function to call, which adapts the values from the HTML - /// attributes into jQuery Validate rules and/or messages.</param> - /// <returns type="jQuery.validator.unobtrusive.adapters" /> - if (!fn) { // Called with no params, just a function - fn = params; - params = []; - } - this.push({ name: adapterName, params: params, adapt: fn }); - return this; - }; - - adapters.addBool = function (adapterName, ruleName) { - /// <summary>Adds a new adapter to convert unobtrusive HTML into a jQuery Validate validation, where - /// the jQuery Validate validation rule has no parameter values.</summary> - /// <param name="adapterName" type="String">The name of the adapter to be added. This matches the name used - /// in the data-val-nnnn HTML attribute (where nnnn is the adapter name).</param> - /// <param name="ruleName" type="String" optional="true">[Optional] The name of the jQuery Validate rule. If not provided, the value - /// of adapterName will be used instead.</param> - /// <returns type="jQuery.validator.unobtrusive.adapters" /> - return this.add(adapterName, function (options) { - setValidationValues(options, ruleName || adapterName, true); - }); - }; - - adapters.addMinMax = function (adapterName, minRuleName, maxRuleName, minMaxRuleName, minAttribute, maxAttribute) { - /// <summary>Adds a new adapter to convert unobtrusive HTML into a jQuery Validate validation, where - /// the jQuery Validate validation has three potential rules (one for min-only, one for max-only, and - /// one for min-and-max). The HTML parameters are expected to be named -min and -max.</summary> - /// <param name="adapterName" type="String">The name of the adapter to be added. This matches the name used - /// in the data-val-nnnn HTML attribute (where nnnn is the adapter name).</param> - /// <param name="minRuleName" type="String">The name of the jQuery Validate rule to be used when you only - /// have a minimum value.</param> - /// <param name="maxRuleName" type="String">The name of the jQuery Validate rule to be used when you only - /// have a maximum value.</param> - /// <param name="minMaxRuleName" type="String">The name of the jQuery Validate rule to be used when you - /// have both a minimum and maximum value.</param> - /// <param name="minAttribute" type="String" optional="true">[Optional] The name of the HTML attribute that - /// contains the minimum value. The default is "min".</param> - /// <param name="maxAttribute" type="String" optional="true">[Optional] The name of the HTML attribute that - /// contains the maximum value. The default is "max".</param> - /// <returns type="jQuery.validator.unobtrusive.adapters" /> - return this.add(adapterName, [minAttribute || "min", maxAttribute || "max"], function (options) { - var min = options.params.min, - max = options.params.max; - - if (min && max) { - setValidationValues(options, minMaxRuleName, [min, max]); - } - else if (min) { - setValidationValues(options, minRuleName, min); - } - else if (max) { - setValidationValues(options, maxRuleName, max); - } - }); - }; - - adapters.addSingleVal = function (adapterName, attribute, ruleName) { - /// <summary>Adds a new adapter to convert unobtrusive HTML into a jQuery Validate validation, where - /// the jQuery Validate validation rule has a single value.</summary> - /// <param name="adapterName" type="String">The name of the adapter to be added. This matches the name used - /// in the data-val-nnnn HTML attribute(where nnnn is the adapter name).</param> - /// <param name="attribute" type="String">[Optional] The name of the HTML attribute that contains the value. - /// The default is "val".</param> - /// <param name="ruleName" type="String" optional="true">[Optional] The name of the jQuery Validate rule. If not provided, the value - /// of adapterName will be used instead.</param> - /// <returns type="jQuery.validator.unobtrusive.adapters" /> - return this.add(adapterName, [attribute || "val"], function (options) { - setValidationValues(options, ruleName || adapterName, options.params[attribute]); - }); - }; - - $jQval.addMethod("__dummy__", function (value, element, params) { - return true; - }); - - $jQval.addMethod("regex", function (value, element, params) { - var match; - if (this.optional(element)) { - return true; - } - - match = new RegExp(params).exec(value); - return (match && (match.index === 0) && (match[0].length === value.length)); - }); - - $jQval.addMethod("nonalphamin", function (value, element, nonalphamin) { - var match; - if (nonalphamin) { - match = value.match(/\W/g); - match = match && match.length >= nonalphamin; - } - return match; - }); - - if ($jQval.methods.extension) { - adapters.addSingleVal("accept", "mimtype"); - adapters.addSingleVal("extension", "extension"); - } else { - // for backward compatibility, when the 'extension' validation method does not exist, such as with versions - // of JQuery Validation plugin prior to 1.10, we should use the 'accept' method for - // validating the extension, and ignore mime-type validations as they are not supported. - adapters.addSingleVal("extension", "extension", "accept"); - } - - adapters.addSingleVal("regex", "pattern"); - adapters.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url"); - adapters.addMinMax("length", "minlength", "maxlength", "rangelength").addMinMax("range", "min", "max", "range"); - adapters.addMinMax("minlength", "minlength").addMinMax("maxlength", "minlength", "maxlength"); - adapters.add("equalto", ["other"], function (options) { - var prefix = getModelPrefix(options.element.name), - other = options.params.other, - fullOtherName = appendModelPrefix(other, prefix), - element = $(options.form).find(":input").filter("[name='" + escapeAttributeValue(fullOtherName) + "']")[0]; - - setValidationValues(options, "equalTo", element); - }); - adapters.add("required", function (options) { - // jQuery Validate equates "required" with "mandatory" for checkbox elements - if (options.element.tagName.toUpperCase() !== "INPUT" || options.element.type.toUpperCase() !== "CHECKBOX") { - setValidationValues(options, "required", true); - } - }); - adapters.add("remote", ["url", "type", "additionalfields"], function (options) { - var value = { - url: options.params.url, - type: options.params.type || "GET", - data: {} - }, - prefix = getModelPrefix(options.element.name); - - $.each(splitAndTrim(options.params.additionalfields || options.element.name), function (i, fieldName) { - var paramName = appendModelPrefix(fieldName, prefix); - value.data[paramName] = function () { - var field = $(options.form).find(":input").filter("[name='" + escapeAttributeValue(paramName) + "']"); - // For checkboxes and radio buttons, only pick up values from checked fields. - if (field.is(":checkbox")) { - return field.filter(":checked").val() || field.filter(":hidden").val() || ''; - } - else if (field.is(":radio")) { - return field.filter(":checked").val() || ''; - } - return field.val(); - }; - }); - - setValidationValues(options, "remote", value); - }); - adapters.add("password", ["min", "nonalphamin", "regex"], function (options) { - if (options.params.min) { - setValidationValues(options, "minlength", options.params.min); - } - if (options.params.nonalphamin) { - setValidationValues(options, "nonalphamin", options.params.nonalphamin); - } - if (options.params.regex) { - setValidationValues(options, "regex", options.params.regex); - } - }); - - $(function () { - $jQval.unobtrusive.parse(document); - }); -}(jQuery)); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/jquery.validate.unobtrusive.min.js b/Mobile.Search.Web/Scripts/jquery.validate.unobtrusive.min.js deleted file mode 100644 index dfeaf38..0000000 --- a/Mobile.Search.Web/Scripts/jquery.validate.unobtrusive.min.js +++ /dev/null @@ -1,19 +0,0 @@ -/* NUGET: BEGIN LICENSE TEXT - * - * Microsoft grants you the right to use these script files for the sole - * purpose of either: (i) interacting through your browser with the Microsoft - * website or online service, subject to the applicable licensing or use - * terms; or (ii) using the files as included with a Microsoft product subject - * to that product's license terms. Microsoft reserves all other rights to the - * files not expressly granted by Microsoft, whether by implication, estoppel - * or otherwise. Insofar as a script file is dual licensed under GPL, - * Microsoft neither took the code under GPL nor distributes it thereunder but - * under the terms set out in this paragraph. All notices and licenses - * below are for informational purposes only. - * - * NUGET: END LICENSE TEXT */ -/* -** Unobtrusive validation support library for jQuery and jQuery Validate -** Copyright (C) Microsoft Corporation. All rights reserved. -*/ -(function(a){var d=a.validator,b,e="unobtrusiveValidation";function c(a,b,c){a.rules[b]=c;if(a.message)a.messages[b]=a.message}function j(a){return a.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g)}function f(a){return a.replace(/([!"#$%&'()*+,./:;<=>?@\[\\\]^`{|}~])/g,"\\$1")}function h(a){return a.substr(0,a.lastIndexOf(".")+1)}function g(a,b){if(a.indexOf("*.")===0)a=a.replace("*.",b);return a}function m(c,e){var b=a(this).find("[data-valmsg-for='"+f(e[0].name)+"']"),d=b.attr("data-valmsg-replace"),g=d?a.parseJSON(d)!==false:null;b.removeClass("field-validation-valid").addClass("field-validation-error");c.data("unobtrusiveContainer",b);if(g){b.empty();c.removeClass("input-validation-error").appendTo(b)}else c.hide()}function l(e,d){var c=a(this).find("[data-valmsg-summary=true]"),b=c.find("ul");if(b&&b.length&&d.errorList.length){b.empty();c.addClass("validation-summary-errors").removeClass("validation-summary-valid");a.each(d.errorList,function(){a("<li />").html(this.message).appendTo(b)})}}function k(d){var b=d.data("unobtrusiveContainer"),c=b.attr("data-valmsg-replace"),e=c?a.parseJSON(c):null;if(b){b.addClass("field-validation-valid").removeClass("field-validation-error");d.removeData("unobtrusiveContainer");e&&b.empty()}}function n(){var b=a(this),c="__jquery_unobtrusive_validation_form_reset";if(b.data(c))return;b.data(c,true);try{b.data("validator").resetForm()}finally{b.removeData(c)}b.find(".validation-summary-errors").addClass("validation-summary-valid").removeClass("validation-summary-errors");b.find(".field-validation-error").addClass("field-validation-valid").removeClass("field-validation-error").removeData("unobtrusiveContainer").find(">*").removeData("unobtrusiveContainer")}function i(b){var c=a(b),f=c.data(e),i=a.proxy(n,b),g=d.unobtrusive.options||{},h=function(e,d){var c=g[e];c&&a.isFunction(c)&&c.apply(b,d)};if(!f){f={options:{errorClass:g.errorClass||"input-validation-error",errorElement:g.errorElement||"span",errorPlacement:function(){m.apply(b,arguments);h("errorPlacement",arguments)},invalidHandler:function(){l.apply(b,arguments);h("invalidHandler",arguments)},messages:{},rules:{},success:function(){k.apply(b,arguments);h("success",arguments)}},attachValidation:function(){c.off("reset."+e,i).on("reset."+e,i).validate(this.options)},validate:function(){c.validate();return c.valid()}};c.data(e,f)}return f}d.unobtrusive={adapters:[],parseElement:function(b,h){var d=a(b),f=d.parents("form")[0],c,e,g;if(!f)return;c=i(f);c.options.rules[b.name]=e={};c.options.messages[b.name]=g={};a.each(this.adapters,function(){var c="data-val-"+this.name,i=d.attr(c),h={};if(i!==undefined){c+="-";a.each(this.params,function(){h[this]=d.attr(c+this)});this.adapt({element:b,form:f,message:i,params:h,rules:e,messages:g})}});a.extend(e,{__dummy__:true});!h&&c.attachValidation()},parse:function(c){var b=a(c),e=b.parents().addBack().filter("form").add(b.find("form")).has("[data-val=true]");b.find("[data-val=true]").each(function(){d.unobtrusive.parseElement(this,true)});e.each(function(){var a=i(this);a&&a.attachValidation()})}};b=d.unobtrusive.adapters;b.add=function(c,a,b){if(!b){b=a;a=[]}this.push({name:c,params:a,adapt:b});return this};b.addBool=function(a,b){return this.add(a,function(d){c(d,b||a,true)})};b.addMinMax=function(e,g,f,a,d,b){return this.add(e,[d||"min",b||"max"],function(b){var e=b.params.min,d=b.params.max;if(e&&d)c(b,a,[e,d]);else if(e)c(b,g,e);else d&&c(b,f,d)})};b.addSingleVal=function(a,b,d){return this.add(a,[b||"val"],function(e){c(e,d||a,e.params[b])})};d.addMethod("__dummy__",function(){return true});d.addMethod("regex",function(b,c,d){var a;if(this.optional(c))return true;a=(new RegExp(d)).exec(b);return a&&a.index===0&&a[0].length===b.length});d.addMethod("nonalphamin",function(c,d,b){var a;if(b){a=c.match(/\W/g);a=a&&a.length>=b}return a});if(d.methods.extension){b.addSingleVal("accept","mimtype");b.addSingleVal("extension","extension")}else b.addSingleVal("extension","extension","accept");b.addSingleVal("regex","pattern");b.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url");b.addMinMax("length","minlength","maxlength","rangelength").addMinMax("range","min","max","range");b.addMinMax("minlength","minlength").addMinMax("maxlength","minlength","maxlength");b.add("equalto",["other"],function(b){var i=h(b.element.name),j=b.params.other,d=g(j,i),e=a(b.form).find(":input").filter("[name='"+f(d)+"']")[0];c(b,"equalTo",e)});b.add("required",function(a){(a.element.tagName.toUpperCase()!=="INPUT"||a.element.type.toUpperCase()!=="CHECKBOX")&&c(a,"required",true)});b.add("remote",["url","type","additionalfields"],function(b){var d={url:b.params.url,type:b.params.type||"GET",data:{}},e=h(b.element.name);a.each(j(b.params.additionalfields||b.element.name),function(i,h){var c=g(h,e);d.data[c]=function(){var d=a(b.form).find(":input").filter("[name='"+f(c)+"']");return d.is(":checkbox")?d.filter(":checked").val()||d.filter(":hidden").val()||"":d.is(":radio")?d.filter(":checked").val()||"":d.val()}});c(b,"remote",d)});b.add("password",["min","nonalphamin","regex"],function(a){a.params.min&&c(a,"minlength",a.params.min);a.params.nonalphamin&&c(a,"nonalphamin",a.params.nonalphamin);a.params.regex&&c(a,"regex",a.params.regex)});a(function(){d.unobtrusive.parse(document)})})(jQuery); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/modernizr-2.6.2.js b/Mobile.Search.Web/Scripts/modernizr-2.6.2.js deleted file mode 100644 index cbfe1f3..0000000 --- a/Mobile.Search.Web/Scripts/modernizr-2.6.2.js +++ /dev/null @@ -1,1416 +0,0 @@ -/* NUGET: BEGIN LICENSE TEXT - * - * Microsoft grants you the right to use these script files for the sole - * purpose of either: (i) interacting through your browser with the Microsoft - * website or online service, subject to the applicable licensing or use - * terms; or (ii) using the files as included with a Microsoft product subject - * to that product's license terms. Microsoft reserves all other rights to the - * files not expressly granted by Microsoft, whether by implication, estoppel - * or otherwise. Insofar as a script file is dual licensed under GPL, - * Microsoft neither took the code under GPL nor distributes it thereunder but - * under the terms set out in this paragraph. All notices and licenses - * below are for informational purposes only. - * - * Copyright (c) Faruk Ates, Paul Irish, Alex Sexton; http://www.modernizr.com/license/ - * - * Includes matchMedia polyfill; Copyright (c) 2010 Filament Group, Inc; http://opensource.org/licenses/MIT - * - * Includes material adapted from ES5-shim https://github.com/kriskowal/es5-shim/blob/master/es5-shim.js; Copyright 2009-2012 by contributors; http://opensource.org/licenses/MIT - * - * Includes material from css-support; Copyright (c) 2005-2012 Diego Perini; https://github.com/dperini/css-support/blob/master/LICENSE - * - * NUGET: END LICENSE TEXT */ - -/*! - * Modernizr v2.6.2 - * www.modernizr.com - * - * Copyright (c) Faruk Ates, Paul Irish, Alex Sexton - * Available under the BSD and MIT licenses: www.modernizr.com/license/ - */ - -/* - * Modernizr tests which native CSS3 and HTML5 features are available in - * the current UA and makes the results available to you in two ways: - * as properties on a global Modernizr object, and as classes on the - * <html> element. This information allows you to progressively enhance - * your pages with a granular level of control over the experience. - * - * Modernizr has an optional (not included) conditional resource loader - * called Modernizr.load(), based on Yepnope.js (yepnopejs.com). - * To get a build that includes Modernizr.load(), as well as choosing - * which tests to include, go to www.modernizr.com/download/ - * - * Authors Faruk Ates, Paul Irish, Alex Sexton - * Contributors Ryan Seddon, Ben Alman - */ - -window.Modernizr = (function( window, document, undefined ) { - - var version = '2.6.2', - - Modernizr = {}, - - /*>>cssclasses*/ - // option for enabling the HTML classes to be added - enableClasses = true, - /*>>cssclasses*/ - - docElement = document.documentElement, - - /** - * Create our "modernizr" element that we do most feature tests on. - */ - mod = 'modernizr', - modElem = document.createElement(mod), - mStyle = modElem.style, - - /** - * Create the input element for various Web Forms feature tests. - */ - inputElem /*>>inputelem*/ = document.createElement('input') /*>>inputelem*/ , - - /*>>smile*/ - smile = ':)', - /*>>smile*/ - - toString = {}.toString, - - // TODO :: make the prefixes more granular - /*>>prefixes*/ - // List of property values to set for css tests. See ticket #21 - prefixes = ' -webkit- -moz- -o- -ms- '.split(' '), - /*>>prefixes*/ - - /*>>domprefixes*/ - // Following spec is to expose vendor-specific style properties as: - // elem.style.WebkitBorderRadius - // and the following would be incorrect: - // elem.style.webkitBorderRadius - - // Webkit ghosts their properties in lowercase but Opera & Moz do not. - // Microsoft uses a lowercase `ms` instead of the correct `Ms` in IE8+ - // erik.eae.net/archives/2008/03/10/21.48.10/ - - // More here: github.com/Modernizr/Modernizr/issues/issue/21 - omPrefixes = 'Webkit Moz O ms', - - cssomPrefixes = omPrefixes.split(' '), - - domPrefixes = omPrefixes.toLowerCase().split(' '), - /*>>domprefixes*/ - - /*>>ns*/ - ns = {'svg': 'http://www.w3.org/2000/svg'}, - /*>>ns*/ - - tests = {}, - inputs = {}, - attrs = {}, - - classes = [], - - slice = classes.slice, - - featureName, // used in testing loop - - - /*>>teststyles*/ - // Inject element with style element and some CSS rules - injectElementWithStyles = function( rule, callback, nodes, testnames ) { - - var style, ret, node, docOverflow, - div = document.createElement('div'), - // After page load injecting a fake body doesn't work so check if body exists - body = document.body, - // IE6 and 7 won't return offsetWidth or offsetHeight unless it's in the body element, so we fake it. - fakeBody = body || document.createElement('body'); - - if ( parseInt(nodes, 10) ) { - // In order not to give false positives we create a node for each test - // This also allows the method to scale for unspecified uses - while ( nodes-- ) { - node = document.createElement('div'); - node.id = testnames ? testnames[nodes] : mod + (nodes + 1); - div.appendChild(node); - } - } - - // <style> elements in IE6-9 are considered 'NoScope' elements and therefore will be removed - // when injected with innerHTML. To get around this you need to prepend the 'NoScope' element - // with a 'scoped' element, in our case the soft-hyphen entity as it won't mess with our measurements. - // msdn.microsoft.com/en-us/library/ms533897%28VS.85%29.aspx - // Documents served as xml will throw if using ­ so use xml friendly encoded version. See issue #277 - style = ['­','<style id="s', mod, '">', rule, '</style>'].join(''); - div.id = mod; - // IE6 will false positive on some tests due to the style element inside the test div somehow interfering offsetHeight, so insert it into body or fakebody. - // Opera will act all quirky when injecting elements in documentElement when page is served as xml, needs fakebody too. #270 - (body ? div : fakeBody).innerHTML += style; - fakeBody.appendChild(div); - if ( !body ) { - //avoid crashing IE8, if background image is used - fakeBody.style.background = ''; - //Safari 5.13/5.1.4 OSX stops loading if ::-webkit-scrollbar is used and scrollbars are visible - fakeBody.style.overflow = 'hidden'; - docOverflow = docElement.style.overflow; - docElement.style.overflow = 'hidden'; - docElement.appendChild(fakeBody); - } - - ret = callback(div, rule); - // If this is done after page load we don't want to remove the body so check if body exists - if ( !body ) { - fakeBody.parentNode.removeChild(fakeBody); - docElement.style.overflow = docOverflow; - } else { - div.parentNode.removeChild(div); - } - - return !!ret; - - }, - /*>>teststyles*/ - - /*>>mq*/ - // adapted from matchMedia polyfill - // by Scott Jehl and Paul Irish - // gist.github.com/786768 - testMediaQuery = function( mq ) { - - var matchMedia = window.matchMedia || window.msMatchMedia; - if ( matchMedia ) { - return matchMedia(mq).matches; - } - - var bool; - - injectElementWithStyles('@media ' + mq + ' { #' + mod + ' { position: absolute; } }', function( node ) { - bool = (window.getComputedStyle ? - getComputedStyle(node, null) : - node.currentStyle)['position'] == 'absolute'; - }); - - return bool; - - }, - /*>>mq*/ - - - /*>>hasevent*/ - // - // isEventSupported determines if a given element supports the given event - // kangax.github.com/iseventsupported/ - // - // The following results are known incorrects: - // Modernizr.hasEvent("webkitTransitionEnd", elem) // false negative - // Modernizr.hasEvent("textInput") // in Webkit. github.com/Modernizr/Modernizr/issues/333 - // ... - isEventSupported = (function() { - - var TAGNAMES = { - 'select': 'input', 'change': 'input', - 'submit': 'form', 'reset': 'form', - 'error': 'img', 'load': 'img', 'abort': 'img' - }; - - function isEventSupported( eventName, element ) { - - element = element || document.createElement(TAGNAMES[eventName] || 'div'); - eventName = 'on' + eventName; - - // When using `setAttribute`, IE skips "unload", WebKit skips "unload" and "resize", whereas `in` "catches" those - var isSupported = eventName in element; - - if ( !isSupported ) { - // If it has no `setAttribute` (i.e. doesn't implement Node interface), try generic element - if ( !element.setAttribute ) { - element = document.createElement('div'); - } - if ( element.setAttribute && element.removeAttribute ) { - element.setAttribute(eventName, ''); - isSupported = is(element[eventName], 'function'); - - // If property was created, "remove it" (by setting value to `undefined`) - if ( !is(element[eventName], 'undefined') ) { - element[eventName] = undefined; - } - element.removeAttribute(eventName); - } - } - - element = null; - return isSupported; - } - return isEventSupported; - })(), - /*>>hasevent*/ - - // TODO :: Add flag for hasownprop ? didn't last time - - // hasOwnProperty shim by kangax needed for Safari 2.0 support - _hasOwnProperty = ({}).hasOwnProperty, hasOwnProp; - - if ( !is(_hasOwnProperty, 'undefined') && !is(_hasOwnProperty.call, 'undefined') ) { - hasOwnProp = function (object, property) { - return _hasOwnProperty.call(object, property); - }; - } - else { - hasOwnProp = function (object, property) { /* yes, this can give false positives/negatives, but most of the time we don't care about those */ - return ((property in object) && is(object.constructor.prototype[property], 'undefined')); - }; - } - - // Adapted from ES5-shim https://github.com/kriskowal/es5-shim/blob/master/es5-shim.js - // es5.github.com/#x15.3.4.5 - - if (!Function.prototype.bind) { - Function.prototype.bind = function bind(that) { - - var target = this; - - if (typeof target != "function") { - throw new TypeError(); - } - - var args = slice.call(arguments, 1), - bound = function () { - - if (this instanceof bound) { - - var F = function(){}; - F.prototype = target.prototype; - var self = new F(); - - var result = target.apply( - self, - args.concat(slice.call(arguments)) - ); - if (Object(result) === result) { - return result; - } - return self; - - } else { - - return target.apply( - that, - args.concat(slice.call(arguments)) - ); - - } - - }; - - return bound; - }; - } - - /** - * setCss applies given styles to the Modernizr DOM node. - */ - function setCss( str ) { - mStyle.cssText = str; - } - - /** - * setCssAll extrapolates all vendor-specific css strings. - */ - function setCssAll( str1, str2 ) { - return setCss(prefixes.join(str1 + ';') + ( str2 || '' )); - } - - /** - * is returns a boolean for if typeof obj is exactly type. - */ - function is( obj, type ) { - return typeof obj === type; - } - - /** - * contains returns a boolean for if substr is found within str. - */ - function contains( str, substr ) { - return !!~('' + str).indexOf(substr); - } - - /*>>testprop*/ - - // testProps is a generic CSS / DOM property test. - - // In testing support for a given CSS property, it's legit to test: - // `elem.style[styleName] !== undefined` - // If the property is supported it will return an empty string, - // if unsupported it will return undefined. - - // We'll take advantage of this quick test and skip setting a style - // on our modernizr element, but instead just testing undefined vs - // empty string. - - // Because the testing of the CSS property names (with "-", as - // opposed to the camelCase DOM properties) is non-portable and - // non-standard but works in WebKit and IE (but not Gecko or Opera), - // we explicitly reject properties with dashes so that authors - // developing in WebKit or IE first don't end up with - // browser-specific content by accident. - - function testProps( props, prefixed ) { - for ( var i in props ) { - var prop = props[i]; - if ( !contains(prop, "-") && mStyle[prop] !== undefined ) { - return prefixed == 'pfx' ? prop : true; - } - } - return false; - } - /*>>testprop*/ - - // TODO :: add testDOMProps - /** - * testDOMProps is a generic DOM property test; if a browser supports - * a certain property, it won't return undefined for it. - */ - function testDOMProps( props, obj, elem ) { - for ( var i in props ) { - var item = obj[props[i]]; - if ( item !== undefined) { - - // return the property name as a string - if (elem === false) return props[i]; - - // let's bind a function - if (is(item, 'function')){ - // default to autobind unless override - return item.bind(elem || obj); - } - - // return the unbound function or obj or value - return item; - } - } - return false; - } - - /*>>testallprops*/ - /** - * testPropsAll tests a list of DOM properties we want to check against. - * We specify literally ALL possible (known and/or likely) properties on - * the element including the non-vendor prefixed one, for forward- - * compatibility. - */ - function testPropsAll( prop, prefixed, elem ) { - - var ucProp = prop.charAt(0).toUpperCase() + prop.slice(1), - props = (prop + ' ' + cssomPrefixes.join(ucProp + ' ') + ucProp).split(' '); - - // did they call .prefixed('boxSizing') or are we just testing a prop? - if(is(prefixed, "string") || is(prefixed, "undefined")) { - return testProps(props, prefixed); - - // otherwise, they called .prefixed('requestAnimationFrame', window[, elem]) - } else { - props = (prop + ' ' + (domPrefixes).join(ucProp + ' ') + ucProp).split(' '); - return testDOMProps(props, prefixed, elem); - } - } - /*>>testallprops*/ - - - /** - * Tests - * ----- - */ - - // The *new* flexbox - // dev.w3.org/csswg/css3-flexbox - - tests['flexbox'] = function() { - return testPropsAll('flexWrap'); - }; - - // The *old* flexbox - // www.w3.org/TR/2009/WD-css3-flexbox-20090723/ - - tests['flexboxlegacy'] = function() { - return testPropsAll('boxDirection'); - }; - - // On the S60 and BB Storm, getContext exists, but always returns undefined - // so we actually have to call getContext() to verify - // github.com/Modernizr/Modernizr/issues/issue/97/ - - tests['canvas'] = function() { - var elem = document.createElement('canvas'); - return !!(elem.getContext && elem.getContext('2d')); - }; - - tests['canvastext'] = function() { - return !!(Modernizr['canvas'] && is(document.createElement('canvas').getContext('2d').fillText, 'function')); - }; - - // webk.it/70117 is tracking a legit WebGL feature detect proposal - - // We do a soft detect which may false positive in order to avoid - // an expensive context creation: bugzil.la/732441 - - tests['webgl'] = function() { - return !!window.WebGLRenderingContext; - }; - - /* - * The Modernizr.touch test only indicates if the browser supports - * touch events, which does not necessarily reflect a touchscreen - * device, as evidenced by tablets running Windows 7 or, alas, - * the Palm Pre / WebOS (touch) phones. - * - * Additionally, Chrome (desktop) used to lie about its support on this, - * but that has since been rectified: crbug.com/36415 - * - * We also test for Firefox 4 Multitouch Support. - * - * For more info, see: modernizr.github.com/Modernizr/touch.html - */ - - tests['touch'] = function() { - var bool; - - if(('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch) { - bool = true; - } else { - injectElementWithStyles(['@media (',prefixes.join('touch-enabled),('),mod,')','{#modernizr{top:9px;position:absolute}}'].join(''), function( node ) { - bool = node.offsetTop === 9; - }); - } - - return bool; - }; - - - // geolocation is often considered a trivial feature detect... - // Turns out, it's quite tricky to get right: - // - // Using !!navigator.geolocation does two things we don't want. It: - // 1. Leaks memory in IE9: github.com/Modernizr/Modernizr/issues/513 - // 2. Disables page caching in WebKit: webk.it/43956 - // - // Meanwhile, in Firefox < 8, an about:config setting could expose - // a false positive that would throw an exception: bugzil.la/688158 - - tests['geolocation'] = function() { - return 'geolocation' in navigator; - }; - - - tests['postmessage'] = function() { - return !!window.postMessage; - }; - - - // Chrome incognito mode used to throw an exception when using openDatabase - // It doesn't anymore. - tests['websqldatabase'] = function() { - return !!window.openDatabase; - }; - - // Vendors had inconsistent prefixing with the experimental Indexed DB: - // - Webkit's implementation is accessible through webkitIndexedDB - // - Firefox shipped moz_indexedDB before FF4b9, but since then has been mozIndexedDB - // For speed, we don't test the legacy (and beta-only) indexedDB - tests['indexedDB'] = function() { - return !!testPropsAll("indexedDB", window); - }; - - // documentMode logic from YUI to filter out IE8 Compat Mode - // which false positives. - tests['hashchange'] = function() { - return isEventSupported('hashchange', window) && (document.documentMode === undefined || document.documentMode > 7); - }; - - // Per 1.6: - // This used to be Modernizr.historymanagement but the longer - // name has been deprecated in favor of a shorter and property-matching one. - // The old API is still available in 1.6, but as of 2.0 will throw a warning, - // and in the first release thereafter disappear entirely. - tests['history'] = function() { - return !!(window.history && history.pushState); - }; - - tests['draganddrop'] = function() { - var div = document.createElement('div'); - return ('draggable' in div) || ('ondragstart' in div && 'ondrop' in div); - }; - - // FF3.6 was EOL'ed on 4/24/12, but the ESR version of FF10 - // will be supported until FF19 (2/12/13), at which time, ESR becomes FF17. - // FF10 still uses prefixes, so check for it until then. - // for more ESR info, see: mozilla.org/en-US/firefox/organizations/faq/ - tests['websockets'] = function() { - return 'WebSocket' in window || 'MozWebSocket' in window; - }; - - - // css-tricks.com/rgba-browser-support/ - tests['rgba'] = function() { - // Set an rgba() color and check the returned value - - setCss('background-color:rgba(150,255,150,.5)'); - - return contains(mStyle.backgroundColor, 'rgba'); - }; - - tests['hsla'] = function() { - // Same as rgba(), in fact, browsers re-map hsla() to rgba() internally, - // except IE9 who retains it as hsla - - setCss('background-color:hsla(120,40%,100%,.5)'); - - return contains(mStyle.backgroundColor, 'rgba') || contains(mStyle.backgroundColor, 'hsla'); - }; - - tests['multiplebgs'] = function() { - // Setting multiple images AND a color on the background shorthand property - // and then querying the style.background property value for the number of - // occurrences of "url(" is a reliable method for detecting ACTUAL support for this! - - setCss('background:url(https://),url(https://),red url(https://)'); - - // If the UA supports multiple backgrounds, there should be three occurrences - // of the string "url(" in the return value for elemStyle.background - - return (/(url\s*\(.*?){3}/).test(mStyle.background); - }; - - - - // this will false positive in Opera Mini - // github.com/Modernizr/Modernizr/issues/396 - - tests['backgroundsize'] = function() { - return testPropsAll('backgroundSize'); - }; - - tests['borderimage'] = function() { - return testPropsAll('borderImage'); - }; - - - // Super comprehensive table about all the unique implementations of - // border-radius: muddledramblings.com/table-of-css3-border-radius-compliance - - tests['borderradius'] = function() { - return testPropsAll('borderRadius'); - }; - - // WebOS unfortunately false positives on this test. - tests['boxshadow'] = function() { - return testPropsAll('boxShadow'); - }; - - // FF3.0 will false positive on this test - tests['textshadow'] = function() { - return document.createElement('div').style.textShadow === ''; - }; - - - tests['opacity'] = function() { - // Browsers that actually have CSS Opacity implemented have done so - // according to spec, which means their return values are within the - // range of [0.0,1.0] - including the leading zero. - - setCssAll('opacity:.55'); - - // The non-literal . in this regex is intentional: - // German Chrome returns this value as 0,55 - // github.com/Modernizr/Modernizr/issues/#issue/59/comment/516632 - return (/^0.55$/).test(mStyle.opacity); - }; - - - // Note, Android < 4 will pass this test, but can only animate - // a single property at a time - // daneden.me/2011/12/putting-up-with-androids-bullshit/ - tests['cssanimations'] = function() { - return testPropsAll('animationName'); - }; - - - tests['csscolumns'] = function() { - return testPropsAll('columnCount'); - }; - - - tests['cssgradients'] = function() { - /** - * For CSS Gradients syntax, please see: - * webkit.org/blog/175/introducing-css-gradients/ - * developer.mozilla.org/en/CSS/-moz-linear-gradient - * developer.mozilla.org/en/CSS/-moz-radial-gradient - * dev.w3.org/csswg/css3-images/#gradients- - */ - - var str1 = 'background-image:', - str2 = 'gradient(linear,left top,right bottom,from(#9f9),to(white));', - str3 = 'linear-gradient(left top,#9f9, white);'; - - setCss( - // legacy webkit syntax (FIXME: remove when syntax not in use anymore) - (str1 + '-webkit- '.split(' ').join(str2 + str1) + - // standard syntax // trailing 'background-image:' - prefixes.join(str3 + str1)).slice(0, -str1.length) - ); - - return contains(mStyle.backgroundImage, 'gradient'); - }; - - - tests['cssreflections'] = function() { - return testPropsAll('boxReflect'); - }; - - - tests['csstransforms'] = function() { - return !!testPropsAll('transform'); - }; - - - tests['csstransforms3d'] = function() { - - var ret = !!testPropsAll('perspective'); - - // Webkit's 3D transforms are passed off to the browser's own graphics renderer. - // It works fine in Safari on Leopard and Snow Leopard, but not in Chrome in - // some conditions. As a result, Webkit typically recognizes the syntax but - // will sometimes throw a false positive, thus we must do a more thorough check: - if ( ret && 'webkitPerspective' in docElement.style ) { - - // Webkit allows this media query to succeed only if the feature is enabled. - // `@media (transform-3d),(-webkit-transform-3d){ ... }` - injectElementWithStyles('@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}', function( node, rule ) { - ret = node.offsetLeft === 9 && node.offsetHeight === 3; - }); - } - return ret; - }; - - - tests['csstransitions'] = function() { - return testPropsAll('transition'); - }; - - - /*>>fontface*/ - // @font-face detection routine by Diego Perini - // javascript.nwbox.com/CSSSupport/ - - // false positives: - // WebOS github.com/Modernizr/Modernizr/issues/342 - // WP7 github.com/Modernizr/Modernizr/issues/538 - tests['fontface'] = function() { - var bool; - - injectElementWithStyles('@font-face {font-family:"font";src:url("https://")}', function( node, rule ) { - var style = document.getElementById('smodernizr'), - sheet = style.sheet || style.styleSheet, - cssText = sheet ? (sheet.cssRules && sheet.cssRules[0] ? sheet.cssRules[0].cssText : sheet.cssText || '') : ''; - - bool = /src/i.test(cssText) && cssText.indexOf(rule.split(' ')[0]) === 0; - }); - - return bool; - }; - /*>>fontface*/ - - // CSS generated content detection - tests['generatedcontent'] = function() { - var bool; - - injectElementWithStyles(['#',mod,'{font:0/0 a}#',mod,':after{content:"',smile,'";visibility:hidden;font:3px/1 a}'].join(''), function( node ) { - bool = node.offsetHeight >= 3; - }); - - return bool; - }; - - - - // These tests evaluate support of the video/audio elements, as well as - // testing what types of content they support. - // - // We're using the Boolean constructor here, so that we can extend the value - // e.g. Modernizr.video // true - // Modernizr.video.ogg // 'probably' - // - // Codec values from : github.com/NielsLeenheer/html5test/blob/9106a8/index.html#L845 - // thx to NielsLeenheer and zcorpan - - // Note: in some older browsers, "no" was a return value instead of empty string. - // It was live in FF3.5.0 and 3.5.1, but fixed in 3.5.2 - // It was also live in Safari 4.0.0 - 4.0.4, but fixed in 4.0.5 - - tests['video'] = function() { - var elem = document.createElement('video'), - bool = false; - - // IE9 Running on Windows Server SKU can cause an exception to be thrown, bug #224 - try { - if ( bool = !!elem.canPlayType ) { - bool = new Boolean(bool); - bool.ogg = elem.canPlayType('video/ogg; codecs="theora"') .replace(/^no$/,''); - - // Without QuickTime, this value will be `undefined`. github.com/Modernizr/Modernizr/issues/546 - bool.h264 = elem.canPlayType('video/mp4; codecs="avc1.42E01E"') .replace(/^no$/,''); - - bool.webm = elem.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,''); - } - - } catch(e) { } - - return bool; - }; - - tests['audio'] = function() { - var elem = document.createElement('audio'), - bool = false; - - try { - if ( bool = !!elem.canPlayType ) { - bool = new Boolean(bool); - bool.ogg = elem.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,''); - bool.mp3 = elem.canPlayType('audio/mpeg;') .replace(/^no$/,''); - - // Mimetypes accepted: - // developer.mozilla.org/En/Media_formats_supported_by_the_audio_and_video_elements - // bit.ly/iphoneoscodecs - bool.wav = elem.canPlayType('audio/wav; codecs="1"') .replace(/^no$/,''); - bool.m4a = ( elem.canPlayType('audio/x-m4a;') || - elem.canPlayType('audio/aac;')) .replace(/^no$/,''); - } - } catch(e) { } - - return bool; - }; - - - // In FF4, if disabled, window.localStorage should === null. - - // Normally, we could not test that directly and need to do a - // `('localStorage' in window) && ` test first because otherwise Firefox will - // throw bugzil.la/365772 if cookies are disabled - - // Also in iOS5 Private Browsing mode, attempting to use localStorage.setItem - // will throw the exception: - // QUOTA_EXCEEDED_ERRROR DOM Exception 22. - // Peculiarly, getItem and removeItem calls do not throw. - - // Because we are forced to try/catch this, we'll go aggressive. - - // Just FWIW: IE8 Compat mode supports these features completely: - // www.quirksmode.org/dom/html5.html - // But IE8 doesn't support either with local files - - tests['localstorage'] = function() { - try { - localStorage.setItem(mod, mod); - localStorage.removeItem(mod); - return true; - } catch(e) { - return false; - } - }; - - tests['sessionstorage'] = function() { - try { - sessionStorage.setItem(mod, mod); - sessionStorage.removeItem(mod); - return true; - } catch(e) { - return false; - } - }; - - - tests['webworkers'] = function() { - return !!window.Worker; - }; - - - tests['applicationcache'] = function() { - return !!window.applicationCache; - }; - - - // Thanks to Erik Dahlstrom - tests['svg'] = function() { - return !!document.createElementNS && !!document.createElementNS(ns.svg, 'svg').createSVGRect; - }; - - // specifically for SVG inline in HTML, not within XHTML - // test page: paulirish.com/demo/inline-svg - tests['inlinesvg'] = function() { - var div = document.createElement('div'); - div.innerHTML = '<svg/>'; - return (div.firstChild && div.firstChild.namespaceURI) == ns.svg; - }; - - // SVG SMIL animation - tests['smil'] = function() { - return !!document.createElementNS && /SVGAnimate/.test(toString.call(document.createElementNS(ns.svg, 'animate'))); - }; - - // This test is only for clip paths in SVG proper, not clip paths on HTML content - // demo: srufaculty.sru.edu/david.dailey/svg/newstuff/clipPath4.svg - - // However read the comments to dig into applying SVG clippaths to HTML content here: - // github.com/Modernizr/Modernizr/issues/213#issuecomment-1149491 - tests['svgclippaths'] = function() { - return !!document.createElementNS && /SVGClipPath/.test(toString.call(document.createElementNS(ns.svg, 'clipPath'))); - }; - - /*>>webforms*/ - // input features and input types go directly onto the ret object, bypassing the tests loop. - // Hold this guy to execute in a moment. - function webforms() { - /*>>input*/ - // Run through HTML5's new input attributes to see if the UA understands any. - // We're using f which is the <input> element created early on - // Mike Taylr has created a comprehensive resource for testing these attributes - // when applied to all input types: - // miketaylr.com/code/input-type-attr.html - // spec: www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary - - // Only input placeholder is tested while textarea's placeholder is not. - // Currently Safari 4 and Opera 11 have support only for the input placeholder - // Both tests are available in feature-detects/forms-placeholder.js - Modernizr['input'] = (function( props ) { - for ( var i = 0, len = props.length; i < len; i++ ) { - attrs[ props[i] ] = !!(props[i] in inputElem); - } - if (attrs.list){ - // safari false positive's on datalist: webk.it/74252 - // see also github.com/Modernizr/Modernizr/issues/146 - attrs.list = !!(document.createElement('datalist') && window.HTMLDataListElement); - } - return attrs; - })('autocomplete autofocus list placeholder max min multiple pattern required step'.split(' ')); - /*>>input*/ - - /*>>inputtypes*/ - // Run through HTML5's new input types to see if the UA understands any. - // This is put behind the tests runloop because it doesn't return a - // true/false like all the other tests; instead, it returns an object - // containing each input type with its corresponding true/false value - - // Big thanks to @miketaylr for the html5 forms expertise. miketaylr.com/ - Modernizr['inputtypes'] = (function(props) { - - for ( var i = 0, bool, inputElemType, defaultView, len = props.length; i < len; i++ ) { - - inputElem.setAttribute('type', inputElemType = props[i]); - bool = inputElem.type !== 'text'; - - // We first check to see if the type we give it sticks.. - // If the type does, we feed it a textual value, which shouldn't be valid. - // If the value doesn't stick, we know there's input sanitization which infers a custom UI - if ( bool ) { - - inputElem.value = smile; - inputElem.style.cssText = 'position:absolute;visibility:hidden;'; - - if ( /^range$/.test(inputElemType) && inputElem.style.WebkitAppearance !== undefined ) { - - docElement.appendChild(inputElem); - defaultView = document.defaultView; - - // Safari 2-4 allows the smiley as a value, despite making a slider - bool = defaultView.getComputedStyle && - defaultView.getComputedStyle(inputElem, null).WebkitAppearance !== 'textfield' && - // Mobile android web browser has false positive, so must - // check the height to see if the widget is actually there. - (inputElem.offsetHeight !== 0); - - docElement.removeChild(inputElem); - - } else if ( /^(search|tel)$/.test(inputElemType) ){ - // Spec doesn't define any special parsing or detectable UI - // behaviors so we pass these through as true - - // Interestingly, opera fails the earlier test, so it doesn't - // even make it here. - - } else if ( /^(url|email)$/.test(inputElemType) ) { - // Real url and email support comes with prebaked validation. - bool = inputElem.checkValidity && inputElem.checkValidity() === false; - - } else { - // If the upgraded input compontent rejects the :) text, we got a winner - bool = inputElem.value != smile; - } - } - - inputs[ props[i] ] = !!bool; - } - return inputs; - })('search tel url email datetime date month week time datetime-local number range color'.split(' ')); - /*>>inputtypes*/ - } - /*>>webforms*/ - - - // End of test definitions - // ----------------------- - - - - // Run through all tests and detect their support in the current UA. - // todo: hypothetically we could be doing an array of tests and use a basic loop here. - for ( var feature in tests ) { - if ( hasOwnProp(tests, feature) ) { - // run the test, throw the return value into the Modernizr, - // then based on that boolean, define an appropriate className - // and push it into an array of classes we'll join later. - featureName = feature.toLowerCase(); - Modernizr[featureName] = tests[feature](); - - classes.push((Modernizr[featureName] ? '' : 'no-') + featureName); - } - } - - /*>>webforms*/ - // input tests need to run. - Modernizr.input || webforms(); - /*>>webforms*/ - - - /** - * addTest allows the user to define their own feature tests - * the result will be added onto the Modernizr object, - * as well as an appropriate className set on the html element - * - * @param feature - String naming the feature - * @param test - Function returning true if feature is supported, false if not - */ - Modernizr.addTest = function ( feature, test ) { - if ( typeof feature == 'object' ) { - for ( var key in feature ) { - if ( hasOwnProp( feature, key ) ) { - Modernizr.addTest( key, feature[ key ] ); - } - } - } else { - - feature = feature.toLowerCase(); - - if ( Modernizr[feature] !== undefined ) { - // we're going to quit if you're trying to overwrite an existing test - // if we were to allow it, we'd do this: - // var re = new RegExp("\\b(no-)?" + feature + "\\b"); - // docElement.className = docElement.className.replace( re, '' ); - // but, no rly, stuff 'em. - return Modernizr; - } - - test = typeof test == 'function' ? test() : test; - - if (typeof enableClasses !== "undefined" && enableClasses) { - docElement.className += ' ' + (test ? '' : 'no-') + feature; - } - Modernizr[feature] = test; - - } - - return Modernizr; // allow chaining. - }; - - - // Reset modElem.cssText to nothing to reduce memory footprint. - setCss(''); - modElem = inputElem = null; - - /*>>shiv*/ - /*! HTML5 Shiv v3.6.1 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed */ - ;(function(window, document) { - /*jshint evil:true */ - /** Preset options */ - var options = window.html5 || {}; - - /** Used to skip problem elements */ - var reSkip = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i; - - /** Not all elements can be cloned in IE **/ - var saveClones = /^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i; - - /** Detect whether the browser supports default html5 styles */ - var supportsHtml5Styles; - - /** Name of the expando, to work with multiple documents or to re-shiv one document */ - var expando = '_html5shiv'; - - /** The id for the the documents expando */ - var expanID = 0; - - /** Cached data for each document */ - var expandoData = {}; - - /** Detect whether the browser supports unknown elements */ - var supportsUnknownElements; - - (function() { - try { - var a = document.createElement('a'); - a.innerHTML = '<xyz></xyz>'; - //if the hidden property is implemented we can assume, that the browser supports basic HTML5 Styles - supportsHtml5Styles = ('hidden' in a); - - supportsUnknownElements = a.childNodes.length == 1 || (function() { - // assign a false positive if unable to shiv - (document.createElement)('a'); - var frag = document.createDocumentFragment(); - return ( - typeof frag.cloneNode == 'undefined' || - typeof frag.createDocumentFragment == 'undefined' || - typeof frag.createElement == 'undefined' - ); - }()); - } catch(e) { - supportsHtml5Styles = true; - supportsUnknownElements = true; - } - - }()); - - /*--------------------------------------------------------------------------*/ - - /** - * Creates a style sheet with the given CSS text and adds it to the document. - * @private - * @param {Document} ownerDocument The document. - * @param {String} cssText The CSS text. - * @returns {StyleSheet} The style element. - */ - function addStyleSheet(ownerDocument, cssText) { - var p = ownerDocument.createElement('p'), - parent = ownerDocument.getElementsByTagName('head')[0] || ownerDocument.documentElement; - - p.innerHTML = 'x<style>' + cssText + '</style>'; - return parent.insertBefore(p.lastChild, parent.firstChild); - } - - /** - * Returns the value of `html5.elements` as an array. - * @private - * @returns {Array} An array of shived element node names. - */ - function getElements() { - var elements = html5.elements; - return typeof elements == 'string' ? elements.split(' ') : elements; - } - - /** - * Returns the data associated to the given document - * @private - * @param {Document} ownerDocument The document. - * @returns {Object} An object of data. - */ - function getExpandoData(ownerDocument) { - var data = expandoData[ownerDocument[expando]]; - if (!data) { - data = {}; - expanID++; - ownerDocument[expando] = expanID; - expandoData[expanID] = data; - } - return data; - } - - /** - * returns a shived element for the given nodeName and document - * @memberOf html5 - * @param {String} nodeName name of the element - * @param {Document} ownerDocument The context document. - * @returns {Object} The shived element. - */ - function createElement(nodeName, ownerDocument, data){ - if (!ownerDocument) { - ownerDocument = document; - } - if(supportsUnknownElements){ - return ownerDocument.createElement(nodeName); - } - if (!data) { - data = getExpandoData(ownerDocument); - } - var node; - - if (data.cache[nodeName]) { - node = data.cache[nodeName].cloneNode(); - } else if (saveClones.test(nodeName)) { - node = (data.cache[nodeName] = data.createElem(nodeName)).cloneNode(); - } else { - node = data.createElem(nodeName); - } - - // Avoid adding some elements to fragments in IE < 9 because - // * Attributes like `name` or `type` cannot be set/changed once an element - // is inserted into a document/fragment - // * Link elements with `src` attributes that are inaccessible, as with - // a 403 response, will cause the tab/window to crash - // * Script elements appended to fragments will execute when their `src` - // or `text` property is set - return node.canHaveChildren && !reSkip.test(nodeName) ? data.frag.appendChild(node) : node; - } - - /** - * returns a shived DocumentFragment for the given document - * @memberOf html5 - * @param {Document} ownerDocument The context document. - * @returns {Object} The shived DocumentFragment. - */ - function createDocumentFragment(ownerDocument, data){ - if (!ownerDocument) { - ownerDocument = document; - } - if(supportsUnknownElements){ - return ownerDocument.createDocumentFragment(); - } - data = data || getExpandoData(ownerDocument); - var clone = data.frag.cloneNode(), - i = 0, - elems = getElements(), - l = elems.length; - for(;i<l;i++){ - clone.createElement(elems[i]); - } - return clone; - } - - /** - * Shivs the `createElement` and `createDocumentFragment` methods of the document. - * @private - * @param {Document|DocumentFragment} ownerDocument The document. - * @param {Object} data of the document. - */ - function shivMethods(ownerDocument, data) { - if (!data.cache) { - data.cache = {}; - data.createElem = ownerDocument.createElement; - data.createFrag = ownerDocument.createDocumentFragment; - data.frag = data.createFrag(); - } - - - ownerDocument.createElement = function(nodeName) { - //abort shiv - if (!html5.shivMethods) { - return data.createElem(nodeName); - } - return createElement(nodeName, ownerDocument, data); - }; - - ownerDocument.createDocumentFragment = Function('h,f', 'return function(){' + - 'var n=f.cloneNode(),c=n.createElement;' + - 'h.shivMethods&&(' + - // unroll the `createElement` calls - getElements().join().replace(/\w+/g, function(nodeName) { - data.createElem(nodeName); - data.frag.createElement(nodeName); - return 'c("' + nodeName + '")'; - }) + - ');return n}' - )(html5, data.frag); - } - - /*--------------------------------------------------------------------------*/ - - /** - * Shivs the given document. - * @memberOf html5 - * @param {Document} ownerDocument The document to shiv. - * @returns {Document} The shived document. - */ - function shivDocument(ownerDocument) { - if (!ownerDocument) { - ownerDocument = document; - } - var data = getExpandoData(ownerDocument); - - if (html5.shivCSS && !supportsHtml5Styles && !data.hasCSS) { - data.hasCSS = !!addStyleSheet(ownerDocument, - // corrects block display not defined in IE6/7/8/9 - 'article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}' + - // adds styling not present in IE6/7/8/9 - 'mark{background:#FF0;color:#000}' - ); - } - if (!supportsUnknownElements) { - shivMethods(ownerDocument, data); - } - return ownerDocument; - } - - /*--------------------------------------------------------------------------*/ - - /** - * The `html5` object is exposed so that more elements can be shived and - * existing shiving can be detected on iframes. - * @type Object - * @example - * - * // options can be changed before the script is included - * html5 = { 'elements': 'mark section', 'shivCSS': false, 'shivMethods': false }; - */ - var html5 = { - - /** - * An array or space separated string of node names of the elements to shiv. - * @memberOf html5 - * @type Array|String - */ - 'elements': options.elements || 'abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video', - - /** - * A flag to indicate that the HTML5 style sheet should be inserted. - * @memberOf html5 - * @type Boolean - */ - 'shivCSS': (options.shivCSS !== false), - - /** - * Is equal to true if a browser supports creating unknown/HTML5 elements - * @memberOf html5 - * @type boolean - */ - 'supportsUnknownElements': supportsUnknownElements, - - /** - * A flag to indicate that the document's `createElement` and `createDocumentFragment` - * methods should be overwritten. - * @memberOf html5 - * @type Boolean - */ - 'shivMethods': (options.shivMethods !== false), - - /** - * A string to describe the type of `html5` object ("default" or "default print"). - * @memberOf html5 - * @type String - */ - 'type': 'default', - - // shivs the document according to the specified `html5` object options - 'shivDocument': shivDocument, - - //creates a shived element - createElement: createElement, - - //creates a shived documentFragment - createDocumentFragment: createDocumentFragment - }; - - /*--------------------------------------------------------------------------*/ - - // expose html5 - window.html5 = html5; - - // shiv the document - shivDocument(document); - - }(this, document)); - /*>>shiv*/ - - // Assign private properties to the return object with prefix - Modernizr._version = version; - - // expose these for the plugin API. Look in the source for how to join() them against your input - /*>>prefixes*/ - Modernizr._prefixes = prefixes; - /*>>prefixes*/ - /*>>domprefixes*/ - Modernizr._domPrefixes = domPrefixes; - Modernizr._cssomPrefixes = cssomPrefixes; - /*>>domprefixes*/ - - /*>>mq*/ - // Modernizr.mq tests a given media query, live against the current state of the window - // A few important notes: - // * If a browser does not support media queries at all (eg. oldIE) the mq() will always return false - // * A max-width or orientation query will be evaluated against the current state, which may change later. - // * You must specify values. Eg. If you are testing support for the min-width media query use: - // Modernizr.mq('(min-width:0)') - // usage: - // Modernizr.mq('only screen and (max-width:768)') - Modernizr.mq = testMediaQuery; - /*>>mq*/ - - /*>>hasevent*/ - // Modernizr.hasEvent() detects support for a given event, with an optional element to test on - // Modernizr.hasEvent('gesturestart', elem) - Modernizr.hasEvent = isEventSupported; - /*>>hasevent*/ - - /*>>testprop*/ - // Modernizr.testProp() investigates whether a given style property is recognized - // Note that the property names must be provided in the camelCase variant. - // Modernizr.testProp('pointerEvents') - Modernizr.testProp = function(prop){ - return testProps([prop]); - }; - /*>>testprop*/ - - /*>>testallprops*/ - // Modernizr.testAllProps() investigates whether a given style property, - // or any of its vendor-prefixed variants, is recognized - // Note that the property names must be provided in the camelCase variant. - // Modernizr.testAllProps('boxSizing') - Modernizr.testAllProps = testPropsAll; - /*>>testallprops*/ - - - /*>>teststyles*/ - // Modernizr.testStyles() allows you to add custom styles to the document and test an element afterwards - // Modernizr.testStyles('#modernizr { position:absolute }', function(elem, rule){ ... }) - Modernizr.testStyles = injectElementWithStyles; - /*>>teststyles*/ - - - /*>>prefixed*/ - // Modernizr.prefixed() returns the prefixed or nonprefixed property name variant of your input - // Modernizr.prefixed('boxSizing') // 'MozBoxSizing' - - // Properties must be passed as dom-style camelcase, rather than `box-sizing` hypentated style. - // Return values will also be the camelCase variant, if you need to translate that to hypenated style use: - // - // str.replace(/([A-Z])/g, function(str,m1){ return '-' + m1.toLowerCase(); }).replace(/^ms-/,'-ms-'); - - // If you're trying to ascertain which transition end event to bind to, you might do something like... - // - // var transEndEventNames = { - // 'WebkitTransition' : 'webkitTransitionEnd', - // 'MozTransition' : 'transitionend', - // 'OTransition' : 'oTransitionEnd', - // 'msTransition' : 'MSTransitionEnd', - // 'transition' : 'transitionend' - // }, - // transEndEventName = transEndEventNames[ Modernizr.prefixed('transition') ]; - - Modernizr.prefixed = function(prop, obj, elem){ - if(!obj) { - return testPropsAll(prop, 'pfx'); - } else { - // Testing DOM property e.g. Modernizr.prefixed('requestAnimationFrame', window) // 'mozRequestAnimationFrame' - return testPropsAll(prop, obj, elem); - } - }; - /*>>prefixed*/ - - - /*>>cssclasses*/ - // Remove "no-js" class from <html> element, if it exists: - docElement.className = docElement.className.replace(/(^|\s)no-js(\s|$)/, '$1$2') + - - // Add the new classes to the <html> element. - (enableClasses ? ' js ' + classes.join(' ') : ''); - /*>>cssclasses*/ - - return Modernizr; - -})(this, this.document); diff --git a/Mobile.Search.Web/Scripts/modernizr-2.8.3.js b/Mobile.Search.Web/Scripts/modernizr-2.8.3.js deleted file mode 100644 index 3365339..0000000 --- a/Mobile.Search.Web/Scripts/modernizr-2.8.3.js +++ /dev/null @@ -1,1406 +0,0 @@ -/*! - * Modernizr v2.8.3 - * www.modernizr.com - * - * Copyright (c) Faruk Ates, Paul Irish, Alex Sexton - * Available under the BSD and MIT licenses: www.modernizr.com/license/ - */ - -/* - * Modernizr tests which native CSS3 and HTML5 features are available in - * the current UA and makes the results available to you in two ways: - * as properties on a global Modernizr object, and as classes on the - * <html> element. This information allows you to progressively enhance - * your pages with a granular level of control over the experience. - * - * Modernizr has an optional (not included) conditional resource loader - * called Modernizr.load(), based on Yepnope.js (yepnopejs.com). - * To get a build that includes Modernizr.load(), as well as choosing - * which tests to include, go to www.modernizr.com/download/ - * - * Authors Faruk Ates, Paul Irish, Alex Sexton - * Contributors Ryan Seddon, Ben Alman - */ - -window.Modernizr = (function( window, document, undefined ) { - - var version = '2.8.3', - - Modernizr = {}, - - /*>>cssclasses*/ - // option for enabling the HTML classes to be added - enableClasses = true, - /*>>cssclasses*/ - - docElement = document.documentElement, - - /** - * Create our "modernizr" element that we do most feature tests on. - */ - mod = 'modernizr', - modElem = document.createElement(mod), - mStyle = modElem.style, - - /** - * Create the input element for various Web Forms feature tests. - */ - inputElem /*>>inputelem*/ = document.createElement('input') /*>>inputelem*/ , - - /*>>smile*/ - smile = ':)', - /*>>smile*/ - - toString = {}.toString, - - // TODO :: make the prefixes more granular - /*>>prefixes*/ - // List of property values to set for css tests. See ticket #21 - prefixes = ' -webkit- -moz- -o- -ms- '.split(' '), - /*>>prefixes*/ - - /*>>domprefixes*/ - // Following spec is to expose vendor-specific style properties as: - // elem.style.WebkitBorderRadius - // and the following would be incorrect: - // elem.style.webkitBorderRadius - - // Webkit ghosts their properties in lowercase but Opera & Moz do not. - // Microsoft uses a lowercase `ms` instead of the correct `Ms` in IE8+ - // erik.eae.net/archives/2008/03/10/21.48.10/ - - // More here: github.com/Modernizr/Modernizr/issues/issue/21 - omPrefixes = 'Webkit Moz O ms', - - cssomPrefixes = omPrefixes.split(' '), - - domPrefixes = omPrefixes.toLowerCase().split(' '), - /*>>domprefixes*/ - - /*>>ns*/ - ns = {'svg': 'http://www.w3.org/2000/svg'}, - /*>>ns*/ - - tests = {}, - inputs = {}, - attrs = {}, - - classes = [], - - slice = classes.slice, - - featureName, // used in testing loop - - - /*>>teststyles*/ - // Inject element with style element and some CSS rules - injectElementWithStyles = function( rule, callback, nodes, testnames ) { - - var style, ret, node, docOverflow, - div = document.createElement('div'), - // After page load injecting a fake body doesn't work so check if body exists - body = document.body, - // IE6 and 7 won't return offsetWidth or offsetHeight unless it's in the body element, so we fake it. - fakeBody = body || document.createElement('body'); - - if ( parseInt(nodes, 10) ) { - // In order not to give false positives we create a node for each test - // This also allows the method to scale for unspecified uses - while ( nodes-- ) { - node = document.createElement('div'); - node.id = testnames ? testnames[nodes] : mod + (nodes + 1); - div.appendChild(node); - } - } - - // <style> elements in IE6-9 are considered 'NoScope' elements and therefore will be removed - // when injected with innerHTML. To get around this you need to prepend the 'NoScope' element - // with a 'scoped' element, in our case the soft-hyphen entity as it won't mess with our measurements. - // msdn.microsoft.com/en-us/library/ms533897%28VS.85%29.aspx - // Documents served as xml will throw if using ­ so use xml friendly encoded version. See issue #277 - style = ['­','<style id="s', mod, '">', rule, '</style>'].join(''); - div.id = mod; - // IE6 will false positive on some tests due to the style element inside the test div somehow interfering offsetHeight, so insert it into body or fakebody. - // Opera will act all quirky when injecting elements in documentElement when page is served as xml, needs fakebody too. #270 - (body ? div : fakeBody).innerHTML += style; - fakeBody.appendChild(div); - if ( !body ) { - //avoid crashing IE8, if background image is used - fakeBody.style.background = ''; - //Safari 5.13/5.1.4 OSX stops loading if ::-webkit-scrollbar is used and scrollbars are visible - fakeBody.style.overflow = 'hidden'; - docOverflow = docElement.style.overflow; - docElement.style.overflow = 'hidden'; - docElement.appendChild(fakeBody); - } - - ret = callback(div, rule); - // If this is done after page load we don't want to remove the body so check if body exists - if ( !body ) { - fakeBody.parentNode.removeChild(fakeBody); - docElement.style.overflow = docOverflow; - } else { - div.parentNode.removeChild(div); - } - - return !!ret; - - }, - /*>>teststyles*/ - - /*>>mq*/ - // adapted from matchMedia polyfill - // by Scott Jehl and Paul Irish - // gist.github.com/786768 - testMediaQuery = function( mq ) { - - var matchMedia = window.matchMedia || window.msMatchMedia; - if ( matchMedia ) { - return matchMedia(mq) && matchMedia(mq).matches || false; - } - - var bool; - - injectElementWithStyles('@media ' + mq + ' { #' + mod + ' { position: absolute; } }', function( node ) { - bool = (window.getComputedStyle ? - getComputedStyle(node, null) : - node.currentStyle)['position'] == 'absolute'; - }); - - return bool; - - }, - /*>>mq*/ - - - /*>>hasevent*/ - // - // isEventSupported determines if a given element supports the given event - // kangax.github.com/iseventsupported/ - // - // The following results are known incorrects: - // Modernizr.hasEvent("webkitTransitionEnd", elem) // false negative - // Modernizr.hasEvent("textInput") // in Webkit. github.com/Modernizr/Modernizr/issues/333 - // ... - isEventSupported = (function() { - - var TAGNAMES = { - 'select': 'input', 'change': 'input', - 'submit': 'form', 'reset': 'form', - 'error': 'img', 'load': 'img', 'abort': 'img' - }; - - function isEventSupported( eventName, element ) { - - element = element || document.createElement(TAGNAMES[eventName] || 'div'); - eventName = 'on' + eventName; - - // When using `setAttribute`, IE skips "unload", WebKit skips "unload" and "resize", whereas `in` "catches" those - var isSupported = eventName in element; - - if ( !isSupported ) { - // If it has no `setAttribute` (i.e. doesn't implement Node interface), try generic element - if ( !element.setAttribute ) { - element = document.createElement('div'); - } - if ( element.setAttribute && element.removeAttribute ) { - element.setAttribute(eventName, ''); - isSupported = is(element[eventName], 'function'); - - // If property was created, "remove it" (by setting value to `undefined`) - if ( !is(element[eventName], 'undefined') ) { - element[eventName] = undefined; - } - element.removeAttribute(eventName); - } - } - - element = null; - return isSupported; - } - return isEventSupported; - })(), - /*>>hasevent*/ - - // TODO :: Add flag for hasownprop ? didn't last time - - // hasOwnProperty shim by kangax needed for Safari 2.0 support - _hasOwnProperty = ({}).hasOwnProperty, hasOwnProp; - - if ( !is(_hasOwnProperty, 'undefined') && !is(_hasOwnProperty.call, 'undefined') ) { - hasOwnProp = function (object, property) { - return _hasOwnProperty.call(object, property); - }; - } - else { - hasOwnProp = function (object, property) { /* yes, this can give false positives/negatives, but most of the time we don't care about those */ - return ((property in object) && is(object.constructor.prototype[property], 'undefined')); - }; - } - - // Adapted from ES5-shim https://github.com/kriskowal/es5-shim/blob/master/es5-shim.js - // es5.github.com/#x15.3.4.5 - - if (!Function.prototype.bind) { - Function.prototype.bind = function bind(that) { - - var target = this; - - if (typeof target != "function") { - throw new TypeError(); - } - - var args = slice.call(arguments, 1), - bound = function () { - - if (this instanceof bound) { - - var F = function(){}; - F.prototype = target.prototype; - var self = new F(); - - var result = target.apply( - self, - args.concat(slice.call(arguments)) - ); - if (Object(result) === result) { - return result; - } - return self; - - } else { - - return target.apply( - that, - args.concat(slice.call(arguments)) - ); - - } - - }; - - return bound; - }; - } - - /** - * setCss applies given styles to the Modernizr DOM node. - */ - function setCss( str ) { - mStyle.cssText = str; - } - - /** - * setCssAll extrapolates all vendor-specific css strings. - */ - function setCssAll( str1, str2 ) { - return setCss(prefixes.join(str1 + ';') + ( str2 || '' )); - } - - /** - * is returns a boolean for if typeof obj is exactly type. - */ - function is( obj, type ) { - return typeof obj === type; - } - - /** - * contains returns a boolean for if substr is found within str. - */ - function contains( str, substr ) { - return !!~('' + str).indexOf(substr); - } - - /*>>testprop*/ - - // testProps is a generic CSS / DOM property test. - - // In testing support for a given CSS property, it's legit to test: - // `elem.style[styleName] !== undefined` - // If the property is supported it will return an empty string, - // if unsupported it will return undefined. - - // We'll take advantage of this quick test and skip setting a style - // on our modernizr element, but instead just testing undefined vs - // empty string. - - // Because the testing of the CSS property names (with "-", as - // opposed to the camelCase DOM properties) is non-portable and - // non-standard but works in WebKit and IE (but not Gecko or Opera), - // we explicitly reject properties with dashes so that authors - // developing in WebKit or IE first don't end up with - // browser-specific content by accident. - - function testProps( props, prefixed ) { - for ( var i in props ) { - var prop = props[i]; - if ( !contains(prop, "-") && mStyle[prop] !== undefined ) { - return prefixed == 'pfx' ? prop : true; - } - } - return false; - } - /*>>testprop*/ - - // TODO :: add testDOMProps - /** - * testDOMProps is a generic DOM property test; if a browser supports - * a certain property, it won't return undefined for it. - */ - function testDOMProps( props, obj, elem ) { - for ( var i in props ) { - var item = obj[props[i]]; - if ( item !== undefined) { - - // return the property name as a string - if (elem === false) return props[i]; - - // let's bind a function - if (is(item, 'function')){ - // default to autobind unless override - return item.bind(elem || obj); - } - - // return the unbound function or obj or value - return item; - } - } - return false; - } - - /*>>testallprops*/ - /** - * testPropsAll tests a list of DOM properties we want to check against. - * We specify literally ALL possible (known and/or likely) properties on - * the element including the non-vendor prefixed one, for forward- - * compatibility. - */ - function testPropsAll( prop, prefixed, elem ) { - - var ucProp = prop.charAt(0).toUpperCase() + prop.slice(1), - props = (prop + ' ' + cssomPrefixes.join(ucProp + ' ') + ucProp).split(' '); - - // did they call .prefixed('boxSizing') or are we just testing a prop? - if(is(prefixed, "string") || is(prefixed, "undefined")) { - return testProps(props, prefixed); - - // otherwise, they called .prefixed('requestAnimationFrame', window[, elem]) - } else { - props = (prop + ' ' + (domPrefixes).join(ucProp + ' ') + ucProp).split(' '); - return testDOMProps(props, prefixed, elem); - } - } - /*>>testallprops*/ - - - /** - * Tests - * ----- - */ - - // The *new* flexbox - // dev.w3.org/csswg/css3-flexbox - - tests['flexbox'] = function() { - return testPropsAll('flexWrap'); - }; - - // The *old* flexbox - // www.w3.org/TR/2009/WD-css3-flexbox-20090723/ - - tests['flexboxlegacy'] = function() { - return testPropsAll('boxDirection'); - }; - - // On the S60 and BB Storm, getContext exists, but always returns undefined - // so we actually have to call getContext() to verify - // github.com/Modernizr/Modernizr/issues/issue/97/ - - tests['canvas'] = function() { - var elem = document.createElement('canvas'); - return !!(elem.getContext && elem.getContext('2d')); - }; - - tests['canvastext'] = function() { - return !!(Modernizr['canvas'] && is(document.createElement('canvas').getContext('2d').fillText, 'function')); - }; - - // webk.it/70117 is tracking a legit WebGL feature detect proposal - - // We do a soft detect which may false positive in order to avoid - // an expensive context creation: bugzil.la/732441 - - tests['webgl'] = function() { - return !!window.WebGLRenderingContext; - }; - - /* - * The Modernizr.touch test only indicates if the browser supports - * touch events, which does not necessarily reflect a touchscreen - * device, as evidenced by tablets running Windows 7 or, alas, - * the Palm Pre / WebOS (touch) phones. - * - * Additionally, Chrome (desktop) used to lie about its support on this, - * but that has since been rectified: crbug.com/36415 - * - * We also test for Firefox 4 Multitouch Support. - * - * For more info, see: modernizr.github.com/Modernizr/touch.html - */ - - tests['touch'] = function() { - var bool; - - if(('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch) { - bool = true; - } else { - injectElementWithStyles(['@media (',prefixes.join('touch-enabled),('),mod,')','{#modernizr{top:9px;position:absolute}}'].join(''), function( node ) { - bool = node.offsetTop === 9; - }); - } - - return bool; - }; - - - // geolocation is often considered a trivial feature detect... - // Turns out, it's quite tricky to get right: - // - // Using !!navigator.geolocation does two things we don't want. It: - // 1. Leaks memory in IE9: github.com/Modernizr/Modernizr/issues/513 - // 2. Disables page caching in WebKit: webk.it/43956 - // - // Meanwhile, in Firefox < 8, an about:config setting could expose - // a false positive that would throw an exception: bugzil.la/688158 - - tests['geolocation'] = function() { - return 'geolocation' in navigator; - }; - - - tests['postmessage'] = function() { - return !!window.postMessage; - }; - - - // Chrome incognito mode used to throw an exception when using openDatabase - // It doesn't anymore. - tests['websqldatabase'] = function() { - return !!window.openDatabase; - }; - - // Vendors had inconsistent prefixing with the experimental Indexed DB: - // - Webkit's implementation is accessible through webkitIndexedDB - // - Firefox shipped moz_indexedDB before FF4b9, but since then has been mozIndexedDB - // For speed, we don't test the legacy (and beta-only) indexedDB - tests['indexedDB'] = function() { - return !!testPropsAll("indexedDB", window); - }; - - // documentMode logic from YUI to filter out IE8 Compat Mode - // which false positives. - tests['hashchange'] = function() { - return isEventSupported('hashchange', window) && (document.documentMode === undefined || document.documentMode > 7); - }; - - // Per 1.6: - // This used to be Modernizr.historymanagement but the longer - // name has been deprecated in favor of a shorter and property-matching one. - // The old API is still available in 1.6, but as of 2.0 will throw a warning, - // and in the first release thereafter disappear entirely. - tests['history'] = function() { - return !!(window.history && history.pushState); - }; - - tests['draganddrop'] = function() { - var div = document.createElement('div'); - return ('draggable' in div) || ('ondragstart' in div && 'ondrop' in div); - }; - - // FF3.6 was EOL'ed on 4/24/12, but the ESR version of FF10 - // will be supported until FF19 (2/12/13), at which time, ESR becomes FF17. - // FF10 still uses prefixes, so check for it until then. - // for more ESR info, see: mozilla.org/en-US/firefox/organizations/faq/ - tests['websockets'] = function() { - return 'WebSocket' in window || 'MozWebSocket' in window; - }; - - - // css-tricks.com/rgba-browser-support/ - tests['rgba'] = function() { - // Set an rgba() color and check the returned value - - setCss('background-color:rgba(150,255,150,.5)'); - - return contains(mStyle.backgroundColor, 'rgba'); - }; - - tests['hsla'] = function() { - // Same as rgba(), in fact, browsers re-map hsla() to rgba() internally, - // except IE9 who retains it as hsla - - setCss('background-color:hsla(120,40%,100%,.5)'); - - return contains(mStyle.backgroundColor, 'rgba') || contains(mStyle.backgroundColor, 'hsla'); - }; - - tests['multiplebgs'] = function() { - // Setting multiple images AND a color on the background shorthand property - // and then querying the style.background property value for the number of - // occurrences of "url(" is a reliable method for detecting ACTUAL support for this! - - setCss('background:url(https://),url(https://),red url(https://)'); - - // If the UA supports multiple backgrounds, there should be three occurrences - // of the string "url(" in the return value for elemStyle.background - - return (/(url\s*\(.*?){3}/).test(mStyle.background); - }; - - - - // this will false positive in Opera Mini - // github.com/Modernizr/Modernizr/issues/396 - - tests['backgroundsize'] = function() { - return testPropsAll('backgroundSize'); - }; - - tests['borderimage'] = function() { - return testPropsAll('borderImage'); - }; - - - // Super comprehensive table about all the unique implementations of - // border-radius: muddledramblings.com/table-of-css3-border-radius-compliance - - tests['borderradius'] = function() { - return testPropsAll('borderRadius'); - }; - - // WebOS unfortunately false positives on this test. - tests['boxshadow'] = function() { - return testPropsAll('boxShadow'); - }; - - // FF3.0 will false positive on this test - tests['textshadow'] = function() { - return document.createElement('div').style.textShadow === ''; - }; - - - tests['opacity'] = function() { - // Browsers that actually have CSS Opacity implemented have done so - // according to spec, which means their return values are within the - // range of [0.0,1.0] - including the leading zero. - - setCssAll('opacity:.55'); - - // The non-literal . in this regex is intentional: - // German Chrome returns this value as 0,55 - // github.com/Modernizr/Modernizr/issues/#issue/59/comment/516632 - return (/^0.55$/).test(mStyle.opacity); - }; - - - // Note, Android < 4 will pass this test, but can only animate - // a single property at a time - // goo.gl/v3V4Gp - tests['cssanimations'] = function() { - return testPropsAll('animationName'); - }; - - - tests['csscolumns'] = function() { - return testPropsAll('columnCount'); - }; - - - tests['cssgradients'] = function() { - /** - * For CSS Gradients syntax, please see: - * webkit.org/blog/175/introducing-css-gradients/ - * developer.mozilla.org/en/CSS/-moz-linear-gradient - * developer.mozilla.org/en/CSS/-moz-radial-gradient - * dev.w3.org/csswg/css3-images/#gradients- - */ - - var str1 = 'background-image:', - str2 = 'gradient(linear,left top,right bottom,from(#9f9),to(white));', - str3 = 'linear-gradient(left top,#9f9, white);'; - - setCss( - // legacy webkit syntax (FIXME: remove when syntax not in use anymore) - (str1 + '-webkit- '.split(' ').join(str2 + str1) + - // standard syntax // trailing 'background-image:' - prefixes.join(str3 + str1)).slice(0, -str1.length) - ); - - return contains(mStyle.backgroundImage, 'gradient'); - }; - - - tests['cssreflections'] = function() { - return testPropsAll('boxReflect'); - }; - - - tests['csstransforms'] = function() { - return !!testPropsAll('transform'); - }; - - - tests['csstransforms3d'] = function() { - - var ret = !!testPropsAll('perspective'); - - // Webkit's 3D transforms are passed off to the browser's own graphics renderer. - // It works fine in Safari on Leopard and Snow Leopard, but not in Chrome in - // some conditions. As a result, Webkit typically recognizes the syntax but - // will sometimes throw a false positive, thus we must do a more thorough check: - if ( ret && 'webkitPerspective' in docElement.style ) { - - // Webkit allows this media query to succeed only if the feature is enabled. - // `@media (transform-3d),(-webkit-transform-3d){ ... }` - injectElementWithStyles('@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}', function( node, rule ) { - ret = node.offsetLeft === 9 && node.offsetHeight === 3; - }); - } - return ret; - }; - - - tests['csstransitions'] = function() { - return testPropsAll('transition'); - }; - - - /*>>fontface*/ - // @font-face detection routine by Diego Perini - // javascript.nwbox.com/CSSSupport/ - - // false positives: - // WebOS github.com/Modernizr/Modernizr/issues/342 - // WP7 github.com/Modernizr/Modernizr/issues/538 - tests['fontface'] = function() { - var bool; - - injectElementWithStyles('@font-face {font-family:"font";src:url("https://")}', function( node, rule ) { - var style = document.getElementById('smodernizr'), - sheet = style.sheet || style.styleSheet, - cssText = sheet ? (sheet.cssRules && sheet.cssRules[0] ? sheet.cssRules[0].cssText : sheet.cssText || '') : ''; - - bool = /src/i.test(cssText) && cssText.indexOf(rule.split(' ')[0]) === 0; - }); - - return bool; - }; - /*>>fontface*/ - - // CSS generated content detection - tests['generatedcontent'] = function() { - var bool; - - injectElementWithStyles(['#',mod,'{font:0/0 a}#',mod,':after{content:"',smile,'";visibility:hidden;font:3px/1 a}'].join(''), function( node ) { - bool = node.offsetHeight >= 3; - }); - - return bool; - }; - - - - // These tests evaluate support of the video/audio elements, as well as - // testing what types of content they support. - // - // We're using the Boolean constructor here, so that we can extend the value - // e.g. Modernizr.video // true - // Modernizr.video.ogg // 'probably' - // - // Codec values from : github.com/NielsLeenheer/html5test/blob/9106a8/index.html#L845 - // thx to NielsLeenheer and zcorpan - - // Note: in some older browsers, "no" was a return value instead of empty string. - // It was live in FF3.5.0 and 3.5.1, but fixed in 3.5.2 - // It was also live in Safari 4.0.0 - 4.0.4, but fixed in 4.0.5 - - tests['video'] = function() { - var elem = document.createElement('video'), - bool = false; - - // IE9 Running on Windows Server SKU can cause an exception to be thrown, bug #224 - try { - if ( bool = !!elem.canPlayType ) { - bool = new Boolean(bool); - bool.ogg = elem.canPlayType('video/ogg; codecs="theora"') .replace(/^no$/,''); - - // Without QuickTime, this value will be `undefined`. github.com/Modernizr/Modernizr/issues/546 - bool.h264 = elem.canPlayType('video/mp4; codecs="avc1.42E01E"') .replace(/^no$/,''); - - bool.webm = elem.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,''); - } - - } catch(e) { } - - return bool; - }; - - tests['audio'] = function() { - var elem = document.createElement('audio'), - bool = false; - - try { - if ( bool = !!elem.canPlayType ) { - bool = new Boolean(bool); - bool.ogg = elem.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,''); - bool.mp3 = elem.canPlayType('audio/mpeg;') .replace(/^no$/,''); - - // Mimetypes accepted: - // developer.mozilla.org/En/Media_formats_supported_by_the_audio_and_video_elements - // bit.ly/iphoneoscodecs - bool.wav = elem.canPlayType('audio/wav; codecs="1"') .replace(/^no$/,''); - bool.m4a = ( elem.canPlayType('audio/x-m4a;') || - elem.canPlayType('audio/aac;')) .replace(/^no$/,''); - } - } catch(e) { } - - return bool; - }; - - - // In FF4, if disabled, window.localStorage should === null. - - // Normally, we could not test that directly and need to do a - // `('localStorage' in window) && ` test first because otherwise Firefox will - // throw bugzil.la/365772 if cookies are disabled - - // Also in iOS5 Private Browsing mode, attempting to use localStorage.setItem - // will throw the exception: - // QUOTA_EXCEEDED_ERRROR DOM Exception 22. - // Peculiarly, getItem and removeItem calls do not throw. - - // Because we are forced to try/catch this, we'll go aggressive. - - // Just FWIW: IE8 Compat mode supports these features completely: - // www.quirksmode.org/dom/html5.html - // But IE8 doesn't support either with local files - - tests['localstorage'] = function() { - try { - localStorage.setItem(mod, mod); - localStorage.removeItem(mod); - return true; - } catch(e) { - return false; - } - }; - - tests['sessionstorage'] = function() { - try { - sessionStorage.setItem(mod, mod); - sessionStorage.removeItem(mod); - return true; - } catch(e) { - return false; - } - }; - - - tests['webworkers'] = function() { - return !!window.Worker; - }; - - - tests['applicationcache'] = function() { - return !!window.applicationCache; - }; - - - // Thanks to Erik Dahlstrom - tests['svg'] = function() { - return !!document.createElementNS && !!document.createElementNS(ns.svg, 'svg').createSVGRect; - }; - - // specifically for SVG inline in HTML, not within XHTML - // test page: paulirish.com/demo/inline-svg - tests['inlinesvg'] = function() { - var div = document.createElement('div'); - div.innerHTML = '<svg/>'; - return (div.firstChild && div.firstChild.namespaceURI) == ns.svg; - }; - - // SVG SMIL animation - tests['smil'] = function() { - return !!document.createElementNS && /SVGAnimate/.test(toString.call(document.createElementNS(ns.svg, 'animate'))); - }; - - // This test is only for clip paths in SVG proper, not clip paths on HTML content - // demo: srufaculty.sru.edu/david.dailey/svg/newstuff/clipPath4.svg - - // However read the comments to dig into applying SVG clippaths to HTML content here: - // github.com/Modernizr/Modernizr/issues/213#issuecomment-1149491 - tests['svgclippaths'] = function() { - return !!document.createElementNS && /SVGClipPath/.test(toString.call(document.createElementNS(ns.svg, 'clipPath'))); - }; - - /*>>webforms*/ - // input features and input types go directly onto the ret object, bypassing the tests loop. - // Hold this guy to execute in a moment. - function webforms() { - /*>>input*/ - // Run through HTML5's new input attributes to see if the UA understands any. - // We're using f which is the <input> element created early on - // Mike Taylr has created a comprehensive resource for testing these attributes - // when applied to all input types: - // miketaylr.com/code/input-type-attr.html - // spec: www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary - - // Only input placeholder is tested while textarea's placeholder is not. - // Currently Safari 4 and Opera 11 have support only for the input placeholder - // Both tests are available in feature-detects/forms-placeholder.js - Modernizr['input'] = (function( props ) { - for ( var i = 0, len = props.length; i < len; i++ ) { - attrs[ props[i] ] = !!(props[i] in inputElem); - } - if (attrs.list){ - // safari false positive's on datalist: webk.it/74252 - // see also github.com/Modernizr/Modernizr/issues/146 - attrs.list = !!(document.createElement('datalist') && window.HTMLDataListElement); - } - return attrs; - })('autocomplete autofocus list placeholder max min multiple pattern required step'.split(' ')); - /*>>input*/ - - /*>>inputtypes*/ - // Run through HTML5's new input types to see if the UA understands any. - // This is put behind the tests runloop because it doesn't return a - // true/false like all the other tests; instead, it returns an object - // containing each input type with its corresponding true/false value - - // Big thanks to @miketaylr for the html5 forms expertise. miketaylr.com/ - Modernizr['inputtypes'] = (function(props) { - - for ( var i = 0, bool, inputElemType, defaultView, len = props.length; i < len; i++ ) { - - inputElem.setAttribute('type', inputElemType = props[i]); - bool = inputElem.type !== 'text'; - - // We first check to see if the type we give it sticks.. - // If the type does, we feed it a textual value, which shouldn't be valid. - // If the value doesn't stick, we know there's input sanitization which infers a custom UI - if ( bool ) { - - inputElem.value = smile; - inputElem.style.cssText = 'position:absolute;visibility:hidden;'; - - if ( /^range$/.test(inputElemType) && inputElem.style.WebkitAppearance !== undefined ) { - - docElement.appendChild(inputElem); - defaultView = document.defaultView; - - // Safari 2-4 allows the smiley as a value, despite making a slider - bool = defaultView.getComputedStyle && - defaultView.getComputedStyle(inputElem, null).WebkitAppearance !== 'textfield' && - // Mobile android web browser has false positive, so must - // check the height to see if the widget is actually there. - (inputElem.offsetHeight !== 0); - - docElement.removeChild(inputElem); - - } else if ( /^(search|tel)$/.test(inputElemType) ){ - // Spec doesn't define any special parsing or detectable UI - // behaviors so we pass these through as true - - // Interestingly, opera fails the earlier test, so it doesn't - // even make it here. - - } else if ( /^(url|email)$/.test(inputElemType) ) { - // Real url and email support comes with prebaked validation. - bool = inputElem.checkValidity && inputElem.checkValidity() === false; - - } else { - // If the upgraded input compontent rejects the :) text, we got a winner - bool = inputElem.value != smile; - } - } - - inputs[ props[i] ] = !!bool; - } - return inputs; - })('search tel url email datetime date month week time datetime-local number range color'.split(' ')); - /*>>inputtypes*/ - } - /*>>webforms*/ - - - // End of test definitions - // ----------------------- - - - - // Run through all tests and detect their support in the current UA. - // todo: hypothetically we could be doing an array of tests and use a basic loop here. - for ( var feature in tests ) { - if ( hasOwnProp(tests, feature) ) { - // run the test, throw the return value into the Modernizr, - // then based on that boolean, define an appropriate className - // and push it into an array of classes we'll join later. - featureName = feature.toLowerCase(); - Modernizr[featureName] = tests[feature](); - - classes.push((Modernizr[featureName] ? '' : 'no-') + featureName); - } - } - - /*>>webforms*/ - // input tests need to run. - Modernizr.input || webforms(); - /*>>webforms*/ - - - /** - * addTest allows the user to define their own feature tests - * the result will be added onto the Modernizr object, - * as well as an appropriate className set on the html element - * - * @param feature - String naming the feature - * @param test - Function returning true if feature is supported, false if not - */ - Modernizr.addTest = function ( feature, test ) { - if ( typeof feature == 'object' ) { - for ( var key in feature ) { - if ( hasOwnProp( feature, key ) ) { - Modernizr.addTest( key, feature[ key ] ); - } - } - } else { - - feature = feature.toLowerCase(); - - if ( Modernizr[feature] !== undefined ) { - // we're going to quit if you're trying to overwrite an existing test - // if we were to allow it, we'd do this: - // var re = new RegExp("\\b(no-)?" + feature + "\\b"); - // docElement.className = docElement.className.replace( re, '' ); - // but, no rly, stuff 'em. - return Modernizr; - } - - test = typeof test == 'function' ? test() : test; - - if (typeof enableClasses !== "undefined" && enableClasses) { - docElement.className += ' ' + (test ? '' : 'no-') + feature; - } - Modernizr[feature] = test; - - } - - return Modernizr; // allow chaining. - }; - - - // Reset modElem.cssText to nothing to reduce memory footprint. - setCss(''); - modElem = inputElem = null; - - /*>>shiv*/ - /** - * @preserve HTML5 Shiv prev3.7.1 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed - */ - ;(function(window, document) { - /*jshint evil:true */ - /** version */ - var version = '3.7.0'; - - /** Preset options */ - var options = window.html5 || {}; - - /** Used to skip problem elements */ - var reSkip = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i; - - /** Not all elements can be cloned in IE **/ - var saveClones = /^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i; - - /** Detect whether the browser supports default html5 styles */ - var supportsHtml5Styles; - - /** Name of the expando, to work with multiple documents or to re-shiv one document */ - var expando = '_html5shiv'; - - /** The id for the the documents expando */ - var expanID = 0; - - /** Cached data for each document */ - var expandoData = {}; - - /** Detect whether the browser supports unknown elements */ - var supportsUnknownElements; - - (function() { - try { - var a = document.createElement('a'); - a.innerHTML = '<xyz></xyz>'; - //if the hidden property is implemented we can assume, that the browser supports basic HTML5 Styles - supportsHtml5Styles = ('hidden' in a); - - supportsUnknownElements = a.childNodes.length == 1 || (function() { - // assign a false positive if unable to shiv - (document.createElement)('a'); - var frag = document.createDocumentFragment(); - return ( - typeof frag.cloneNode == 'undefined' || - typeof frag.createDocumentFragment == 'undefined' || - typeof frag.createElement == 'undefined' - ); - }()); - } catch(e) { - // assign a false positive if detection fails => unable to shiv - supportsHtml5Styles = true; - supportsUnknownElements = true; - } - - }()); - - /*--------------------------------------------------------------------------*/ - - /** - * Creates a style sheet with the given CSS text and adds it to the document. - * @private - * @param {Document} ownerDocument The document. - * @param {String} cssText The CSS text. - * @returns {StyleSheet} The style element. - */ - function addStyleSheet(ownerDocument, cssText) { - var p = ownerDocument.createElement('p'), - parent = ownerDocument.getElementsByTagName('head')[0] || ownerDocument.documentElement; - - p.innerHTML = 'x<style>' + cssText + '</style>'; - return parent.insertBefore(p.lastChild, parent.firstChild); - } - - /** - * Returns the value of `html5.elements` as an array. - * @private - * @returns {Array} An array of shived element node names. - */ - function getElements() { - var elements = html5.elements; - return typeof elements == 'string' ? elements.split(' ') : elements; - } - - /** - * Returns the data associated to the given document - * @private - * @param {Document} ownerDocument The document. - * @returns {Object} An object of data. - */ - function getExpandoData(ownerDocument) { - var data = expandoData[ownerDocument[expando]]; - if (!data) { - data = {}; - expanID++; - ownerDocument[expando] = expanID; - expandoData[expanID] = data; - } - return data; - } - - /** - * returns a shived element for the given nodeName and document - * @memberOf html5 - * @param {String} nodeName name of the element - * @param {Document} ownerDocument The context document. - * @returns {Object} The shived element. - */ - function createElement(nodeName, ownerDocument, data){ - if (!ownerDocument) { - ownerDocument = document; - } - if(supportsUnknownElements){ - return ownerDocument.createElement(nodeName); - } - if (!data) { - data = getExpandoData(ownerDocument); - } - var node; - - if (data.cache[nodeName]) { - node = data.cache[nodeName].cloneNode(); - } else if (saveClones.test(nodeName)) { - node = (data.cache[nodeName] = data.createElem(nodeName)).cloneNode(); - } else { - node = data.createElem(nodeName); - } - - // Avoid adding some elements to fragments in IE < 9 because - // * Attributes like `name` or `type` cannot be set/changed once an element - // is inserted into a document/fragment - // * Link elements with `src` attributes that are inaccessible, as with - // a 403 response, will cause the tab/window to crash - // * Script elements appended to fragments will execute when their `src` - // or `text` property is set - return node.canHaveChildren && !reSkip.test(nodeName) && !node.tagUrn ? data.frag.appendChild(node) : node; - } - - /** - * returns a shived DocumentFragment for the given document - * @memberOf html5 - * @param {Document} ownerDocument The context document. - * @returns {Object} The shived DocumentFragment. - */ - function createDocumentFragment(ownerDocument, data){ - if (!ownerDocument) { - ownerDocument = document; - } - if(supportsUnknownElements){ - return ownerDocument.createDocumentFragment(); - } - data = data || getExpandoData(ownerDocument); - var clone = data.frag.cloneNode(), - i = 0, - elems = getElements(), - l = elems.length; - for(;i<l;i++){ - clone.createElement(elems[i]); - } - return clone; - } - - /** - * Shivs the `createElement` and `createDocumentFragment` methods of the document. - * @private - * @param {Document|DocumentFragment} ownerDocument The document. - * @param {Object} data of the document. - */ - function shivMethods(ownerDocument, data) { - if (!data.cache) { - data.cache = {}; - data.createElem = ownerDocument.createElement; - data.createFrag = ownerDocument.createDocumentFragment; - data.frag = data.createFrag(); - } - - - ownerDocument.createElement = function(nodeName) { - //abort shiv - if (!html5.shivMethods) { - return data.createElem(nodeName); - } - return createElement(nodeName, ownerDocument, data); - }; - - ownerDocument.createDocumentFragment = Function('h,f', 'return function(){' + - 'var n=f.cloneNode(),c=n.createElement;' + - 'h.shivMethods&&(' + - // unroll the `createElement` calls - getElements().join().replace(/[\w\-]+/g, function(nodeName) { - data.createElem(nodeName); - data.frag.createElement(nodeName); - return 'c("' + nodeName + '")'; - }) + - ');return n}' - )(html5, data.frag); - } - - /*--------------------------------------------------------------------------*/ - - /** - * Shivs the given document. - * @memberOf html5 - * @param {Document} ownerDocument The document to shiv. - * @returns {Document} The shived document. - */ - function shivDocument(ownerDocument) { - if (!ownerDocument) { - ownerDocument = document; - } - var data = getExpandoData(ownerDocument); - - if (html5.shivCSS && !supportsHtml5Styles && !data.hasCSS) { - data.hasCSS = !!addStyleSheet(ownerDocument, - // corrects block display not defined in IE6/7/8/9 - 'article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}' + - // adds styling not present in IE6/7/8/9 - 'mark{background:#FF0;color:#000}' + - // hides non-rendered elements - 'template{display:none}' - ); - } - if (!supportsUnknownElements) { - shivMethods(ownerDocument, data); - } - return ownerDocument; - } - - /*--------------------------------------------------------------------------*/ - - /** - * The `html5` object is exposed so that more elements can be shived and - * existing shiving can be detected on iframes. - * @type Object - * @example - * - * // options can be changed before the script is included - * html5 = { 'elements': 'mark section', 'shivCSS': false, 'shivMethods': false }; - */ - var html5 = { - - /** - * An array or space separated string of node names of the elements to shiv. - * @memberOf html5 - * @type Array|String - */ - 'elements': options.elements || 'abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video', - - /** - * current version of html5shiv - */ - 'version': version, - - /** - * A flag to indicate that the HTML5 style sheet should be inserted. - * @memberOf html5 - * @type Boolean - */ - 'shivCSS': (options.shivCSS !== false), - - /** - * Is equal to true if a browser supports creating unknown/HTML5 elements - * @memberOf html5 - * @type boolean - */ - 'supportsUnknownElements': supportsUnknownElements, - - /** - * A flag to indicate that the document's `createElement` and `createDocumentFragment` - * methods should be overwritten. - * @memberOf html5 - * @type Boolean - */ - 'shivMethods': (options.shivMethods !== false), - - /** - * A string to describe the type of `html5` object ("default" or "default print"). - * @memberOf html5 - * @type String - */ - 'type': 'default', - - // shivs the document according to the specified `html5` object options - 'shivDocument': shivDocument, - - //creates a shived element - createElement: createElement, - - //creates a shived documentFragment - createDocumentFragment: createDocumentFragment - }; - - /*--------------------------------------------------------------------------*/ - - // expose html5 - window.html5 = html5; - - // shiv the document - shivDocument(document); - - }(this, document)); - /*>>shiv*/ - - // Assign private properties to the return object with prefix - Modernizr._version = version; - - // expose these for the plugin API. Look in the source for how to join() them against your input - /*>>prefixes*/ - Modernizr._prefixes = prefixes; - /*>>prefixes*/ - /*>>domprefixes*/ - Modernizr._domPrefixes = domPrefixes; - Modernizr._cssomPrefixes = cssomPrefixes; - /*>>domprefixes*/ - - /*>>mq*/ - // Modernizr.mq tests a given media query, live against the current state of the window - // A few important notes: - // * If a browser does not support media queries at all (eg. oldIE) the mq() will always return false - // * A max-width or orientation query will be evaluated against the current state, which may change later. - // * You must specify values. Eg. If you are testing support for the min-width media query use: - // Modernizr.mq('(min-width:0)') - // usage: - // Modernizr.mq('only screen and (max-width:768)') - Modernizr.mq = testMediaQuery; - /*>>mq*/ - - /*>>hasevent*/ - // Modernizr.hasEvent() detects support for a given event, with an optional element to test on - // Modernizr.hasEvent('gesturestart', elem) - Modernizr.hasEvent = isEventSupported; - /*>>hasevent*/ - - /*>>testprop*/ - // Modernizr.testProp() investigates whether a given style property is recognized - // Note that the property names must be provided in the camelCase variant. - // Modernizr.testProp('pointerEvents') - Modernizr.testProp = function(prop){ - return testProps([prop]); - }; - /*>>testprop*/ - - /*>>testallprops*/ - // Modernizr.testAllProps() investigates whether a given style property, - // or any of its vendor-prefixed variants, is recognized - // Note that the property names must be provided in the camelCase variant. - // Modernizr.testAllProps('boxSizing') - Modernizr.testAllProps = testPropsAll; - /*>>testallprops*/ - - - /*>>teststyles*/ - // Modernizr.testStyles() allows you to add custom styles to the document and test an element afterwards - // Modernizr.testStyles('#modernizr { position:absolute }', function(elem, rule){ ... }) - Modernizr.testStyles = injectElementWithStyles; - /*>>teststyles*/ - - - /*>>prefixed*/ - // Modernizr.prefixed() returns the prefixed or nonprefixed property name variant of your input - // Modernizr.prefixed('boxSizing') // 'MozBoxSizing' - - // Properties must be passed as dom-style camelcase, rather than `box-sizing` hypentated style. - // Return values will also be the camelCase variant, if you need to translate that to hypenated style use: - // - // str.replace(/([A-Z])/g, function(str,m1){ return '-' + m1.toLowerCase(); }).replace(/^ms-/,'-ms-'); - - // If you're trying to ascertain which transition end event to bind to, you might do something like... - // - // var transEndEventNames = { - // 'WebkitTransition' : 'webkitTransitionEnd', - // 'MozTransition' : 'transitionend', - // 'OTransition' : 'oTransitionEnd', - // 'msTransition' : 'MSTransitionEnd', - // 'transition' : 'transitionend' - // }, - // transEndEventName = transEndEventNames[ Modernizr.prefixed('transition') ]; - - Modernizr.prefixed = function(prop, obj, elem){ - if(!obj) { - return testPropsAll(prop, 'pfx'); - } else { - // Testing DOM property e.g. Modernizr.prefixed('requestAnimationFrame', window) // 'mozRequestAnimationFrame' - return testPropsAll(prop, obj, elem); - } - }; - /*>>prefixed*/ - - - /*>>cssclasses*/ - // Remove "no-js" class from <html> element, if it exists: - docElement.className = docElement.className.replace(/(^|\s)no-js(\s|$)/, '$1$2') + - - // Add the new classes to the <html> element. - (enableClasses ? ' js ' + classes.join(' ') : ''); - /*>>cssclasses*/ - - return Modernizr; - -})(this, this.document); diff --git a/Mobile.Search.Web/Scripts/respond.js b/Mobile.Search.Web/Scripts/respond.js deleted file mode 100644 index b1298d0..0000000 --- a/Mobile.Search.Web/Scripts/respond.js +++ /dev/null @@ -1,224 +0,0 @@ -/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license */ -/*! NOTE: If you're already including a window.matchMedia polyfill via Modernizr or otherwise, you don't need this part */ -(function(w) { - "use strict"; - w.matchMedia = w.matchMedia || function(doc, undefined) { - var bool, docElem = doc.documentElement, refNode = docElem.firstElementChild || docElem.firstChild, fakeBody = doc.createElement("body"), div = doc.createElement("div"); - div.id = "mq-test-1"; - div.style.cssText = "position:absolute;top:-100em"; - fakeBody.style.background = "none"; - fakeBody.appendChild(div); - return function(q) { - div.innerHTML = '­<style media="' + q + '"> #mq-test-1 { width: 42px; }</style>'; - docElem.insertBefore(fakeBody, refNode); - bool = div.offsetWidth === 42; - docElem.removeChild(fakeBody); - return { - matches: bool, - media: q - }; - }; - }(w.document); -})(this); - -/*! Respond.js v1.4.0: min/max-width media query polyfill. (c) Scott Jehl. MIT Lic. j.mp/respondjs */ -(function(w) { - "use strict"; - var respond = {}; - w.respond = respond; - respond.update = function() {}; - var requestQueue = [], xmlHttp = function() { - var xmlhttpmethod = false; - try { - xmlhttpmethod = new w.XMLHttpRequest(); - } catch (e) { - xmlhttpmethod = new w.ActiveXObject("Microsoft.XMLHTTP"); - } - return function() { - return xmlhttpmethod; - }; - }(), ajax = function(url, callback) { - var req = xmlHttp(); - if (!req) { - return; - } - req.open("GET", url, true); - req.onreadystatechange = function() { - if (req.readyState !== 4 || req.status !== 200 && req.status !== 304) { - return; - } - callback(req.responseText); - }; - if (req.readyState === 4) { - return; - } - req.send(null); - }; - respond.ajax = ajax; - respond.queue = requestQueue; - respond.regex = { - media: /@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi, - keyframes: /@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi, - urls: /(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g, - findStyles: /@media *([^\{]+)\{([\S\s]+?)$/, - only: /(only\s+)?([a-zA-Z]+)\s?/, - minw: /\([\s]*min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/, - maxw: /\([\s]*max\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/ - }; - respond.mediaQueriesSupported = w.matchMedia && w.matchMedia("only all") !== null && w.matchMedia("only all").matches; - if (respond.mediaQueriesSupported) { - return; - } - var doc = w.document, docElem = doc.documentElement, mediastyles = [], rules = [], appendedEls = [], parsedSheets = {}, resizeThrottle = 30, head = doc.getElementsByTagName("head")[0] || docElem, base = doc.getElementsByTagName("base")[0], links = head.getElementsByTagName("link"), lastCall, resizeDefer, eminpx, getEmValue = function() { - var ret, div = doc.createElement("div"), body = doc.body, originalHTMLFontSize = docElem.style.fontSize, originalBodyFontSize = body && body.style.fontSize, fakeUsed = false; - div.style.cssText = "position:absolute;font-size:1em;width:1em"; - if (!body) { - body = fakeUsed = doc.createElement("body"); - body.style.background = "none"; - } - docElem.style.fontSize = "100%"; - body.style.fontSize = "100%"; - body.appendChild(div); - if (fakeUsed) { - docElem.insertBefore(body, docElem.firstChild); - } - ret = div.offsetWidth; - if (fakeUsed) { - docElem.removeChild(body); - } else { - body.removeChild(div); - } - docElem.style.fontSize = originalHTMLFontSize; - if (originalBodyFontSize) { - body.style.fontSize = originalBodyFontSize; - } - ret = eminpx = parseFloat(ret); - return ret; - }, applyMedia = function(fromResize) { - var name = "clientWidth", docElemProp = docElem[name], currWidth = doc.compatMode === "CSS1Compat" && docElemProp || doc.body[name] || docElemProp, styleBlocks = {}, lastLink = links[links.length - 1], now = new Date().getTime(); - if (fromResize && lastCall && now - lastCall < resizeThrottle) { - w.clearTimeout(resizeDefer); - resizeDefer = w.setTimeout(applyMedia, resizeThrottle); - return; - } else { - lastCall = now; - } - for (var i in mediastyles) { - if (mediastyles.hasOwnProperty(i)) { - var thisstyle = mediastyles[i], min = thisstyle.minw, max = thisstyle.maxw, minnull = min === null, maxnull = max === null, em = "em"; - if (!!min) { - min = parseFloat(min) * (min.indexOf(em) > -1 ? eminpx || getEmValue() : 1); - } - if (!!max) { - max = parseFloat(max) * (max.indexOf(em) > -1 ? eminpx || getEmValue() : 1); - } - if (!thisstyle.hasquery || (!minnull || !maxnull) && (minnull || currWidth >= min) && (maxnull || currWidth <= max)) { - if (!styleBlocks[thisstyle.media]) { - styleBlocks[thisstyle.media] = []; - } - styleBlocks[thisstyle.media].push(rules[thisstyle.rules]); - } - } - } - for (var j in appendedEls) { - if (appendedEls.hasOwnProperty(j)) { - if (appendedEls[j] && appendedEls[j].parentNode === head) { - head.removeChild(appendedEls[j]); - } - } - } - appendedEls.length = 0; - for (var k in styleBlocks) { - if (styleBlocks.hasOwnProperty(k)) { - var ss = doc.createElement("style"), css = styleBlocks[k].join("\n"); - ss.type = "text/css"; - ss.media = k; - head.insertBefore(ss, lastLink.nextSibling); - if (ss.styleSheet) { - ss.styleSheet.cssText = css; - } else { - ss.appendChild(doc.createTextNode(css)); - } - appendedEls.push(ss); - } - } - }, translate = function(styles, href, media) { - var qs = styles.replace(respond.regex.keyframes, "").match(respond.regex.media), ql = qs && qs.length || 0; - href = href.substring(0, href.lastIndexOf("/")); - var repUrls = function(css) { - return css.replace(respond.regex.urls, "$1" + href + "$2$3"); - }, useMedia = !ql && media; - if (href.length) { - href += "/"; - } - if (useMedia) { - ql = 1; - } - for (var i = 0; i < ql; i++) { - var fullq, thisq, eachq, eql; - if (useMedia) { - fullq = media; - rules.push(repUrls(styles)); - } else { - fullq = qs[i].match(respond.regex.findStyles) && RegExp.$1; - rules.push(RegExp.$2 && repUrls(RegExp.$2)); - } - eachq = fullq.split(","); - eql = eachq.length; - for (var j = 0; j < eql; j++) { - thisq = eachq[j]; - mediastyles.push({ - media: thisq.split("(")[0].match(respond.regex.only) && RegExp.$2 || "all", - rules: rules.length - 1, - hasquery: thisq.indexOf("(") > -1, - minw: thisq.match(respond.regex.minw) && parseFloat(RegExp.$1) + (RegExp.$2 || ""), - maxw: thisq.match(respond.regex.maxw) && parseFloat(RegExp.$1) + (RegExp.$2 || "") - }); - } - } - applyMedia(); - }, makeRequests = function() { - if (requestQueue.length) { - var thisRequest = requestQueue.shift(); - ajax(thisRequest.href, function(styles) { - translate(styles, thisRequest.href, thisRequest.media); - parsedSheets[thisRequest.href] = true; - w.setTimeout(function() { - makeRequests(); - }, 0); - }); - } - }, ripCSS = function() { - for (var i = 0; i < links.length; i++) { - var sheet = links[i], href = sheet.href, media = sheet.media, isCSS = sheet.rel && sheet.rel.toLowerCase() === "stylesheet"; - if (!!href && isCSS && !parsedSheets[href]) { - if (sheet.styleSheet && sheet.styleSheet.rawCssText) { - translate(sheet.styleSheet.rawCssText, href, media); - parsedSheets[href] = true; - } else { - if (!/^([a-zA-Z:]*\/\/)/.test(href) && !base || href.replace(RegExp.$1, "").split("/")[0] === w.location.host) { - if (href.substring(0, 2) === "//") { - href = w.location.protocol + href; - } - requestQueue.push({ - href: href, - media: media - }); - } - } - } - } - makeRequests(); - }; - ripCSS(); - respond.update = ripCSS; - respond.getEmValue = getEmValue; - function callMedia() { - applyMedia(true); - } - if (w.addEventListener) { - w.addEventListener("resize", callMedia, false); - } else if (w.attachEvent) { - w.attachEvent("onresize", callMedia); - } -})(this); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/respond.matchmedia.addListener.js b/Mobile.Search.Web/Scripts/respond.matchmedia.addListener.js deleted file mode 100644 index 31571cd..0000000 --- a/Mobile.Search.Web/Scripts/respond.matchmedia.addListener.js +++ /dev/null @@ -1,273 +0,0 @@ -/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license */ -/*! NOTE: If you're already including a window.matchMedia polyfill via Modernizr or otherwise, you don't need this part */ -(function(w) { - "use strict"; - w.matchMedia = w.matchMedia || function(doc, undefined) { - var bool, docElem = doc.documentElement, refNode = docElem.firstElementChild || docElem.firstChild, fakeBody = doc.createElement("body"), div = doc.createElement("div"); - div.id = "mq-test-1"; - div.style.cssText = "position:absolute;top:-100em"; - fakeBody.style.background = "none"; - fakeBody.appendChild(div); - return function(q) { - div.innerHTML = '­<style media="' + q + '"> #mq-test-1 { width: 42px; }</style>'; - docElem.insertBefore(fakeBody, refNode); - bool = div.offsetWidth === 42; - docElem.removeChild(fakeBody); - return { - matches: bool, - media: q - }; - }; - }(w.document); -})(this); - -/*! matchMedia() polyfill addListener/removeListener extension. Author & copyright (c) 2012: Scott Jehl. Dual MIT/BSD license */ -(function(w) { - "use strict"; - if (w.matchMedia && w.matchMedia("all").addListener) { - return false; - } - var localMatchMedia = w.matchMedia, hasMediaQueries = localMatchMedia("only all").matches, isListening = false, timeoutID = 0, queries = [], handleChange = function(evt) { - w.clearTimeout(timeoutID); - timeoutID = w.setTimeout(function() { - for (var i = 0, il = queries.length; i < il; i++) { - var mql = queries[i].mql, listeners = queries[i].listeners || [], matches = localMatchMedia(mql.media).matches; - if (matches !== mql.matches) { - mql.matches = matches; - for (var j = 0, jl = listeners.length; j < jl; j++) { - listeners[j].call(w, mql); - } - } - } - }, 30); - }; - w.matchMedia = function(media) { - var mql = localMatchMedia(media), listeners = [], index = 0; - mql.addListener = function(listener) { - if (!hasMediaQueries) { - return; - } - if (!isListening) { - isListening = true; - w.addEventListener("resize", handleChange, true); - } - if (index === 0) { - index = queries.push({ - mql: mql, - listeners: listeners - }); - } - listeners.push(listener); - }; - mql.removeListener = function(listener) { - for (var i = 0, il = listeners.length; i < il; i++) { - if (listeners[i] === listener) { - listeners.splice(i, 1); - } - } - }; - return mql; - }; -})(this); - -/*! Respond.js v1.4.0: min/max-width media query polyfill. (c) Scott Jehl. MIT Lic. j.mp/respondjs */ -(function(w) { - "use strict"; - var respond = {}; - w.respond = respond; - respond.update = function() {}; - var requestQueue = [], xmlHttp = function() { - var xmlhttpmethod = false; - try { - xmlhttpmethod = new w.XMLHttpRequest(); - } catch (e) { - xmlhttpmethod = new w.ActiveXObject("Microsoft.XMLHTTP"); - } - return function() { - return xmlhttpmethod; - }; - }(), ajax = function(url, callback) { - var req = xmlHttp(); - if (!req) { - return; - } - req.open("GET", url, true); - req.onreadystatechange = function() { - if (req.readyState !== 4 || req.status !== 200 && req.status !== 304) { - return; - } - callback(req.responseText); - }; - if (req.readyState === 4) { - return; - } - req.send(null); - }; - respond.ajax = ajax; - respond.queue = requestQueue; - respond.regex = { - media: /@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi, - keyframes: /@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi, - urls: /(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g, - findStyles: /@media *([^\{]+)\{([\S\s]+?)$/, - only: /(only\s+)?([a-zA-Z]+)\s?/, - minw: /\([\s]*min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/, - maxw: /\([\s]*max\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/ - }; - respond.mediaQueriesSupported = w.matchMedia && w.matchMedia("only all") !== null && w.matchMedia("only all").matches; - if (respond.mediaQueriesSupported) { - return; - } - var doc = w.document, docElem = doc.documentElement, mediastyles = [], rules = [], appendedEls = [], parsedSheets = {}, resizeThrottle = 30, head = doc.getElementsByTagName("head")[0] || docElem, base = doc.getElementsByTagName("base")[0], links = head.getElementsByTagName("link"), lastCall, resizeDefer, eminpx, getEmValue = function() { - var ret, div = doc.createElement("div"), body = doc.body, originalHTMLFontSize = docElem.style.fontSize, originalBodyFontSize = body && body.style.fontSize, fakeUsed = false; - div.style.cssText = "position:absolute;font-size:1em;width:1em"; - if (!body) { - body = fakeUsed = doc.createElement("body"); - body.style.background = "none"; - } - docElem.style.fontSize = "100%"; - body.style.fontSize = "100%"; - body.appendChild(div); - if (fakeUsed) { - docElem.insertBefore(body, docElem.firstChild); - } - ret = div.offsetWidth; - if (fakeUsed) { - docElem.removeChild(body); - } else { - body.removeChild(div); - } - docElem.style.fontSize = originalHTMLFontSize; - if (originalBodyFontSize) { - body.style.fontSize = originalBodyFontSize; - } - ret = eminpx = parseFloat(ret); - return ret; - }, applyMedia = function(fromResize) { - var name = "clientWidth", docElemProp = docElem[name], currWidth = doc.compatMode === "CSS1Compat" && docElemProp || doc.body[name] || docElemProp, styleBlocks = {}, lastLink = links[links.length - 1], now = new Date().getTime(); - if (fromResize && lastCall && now - lastCall < resizeThrottle) { - w.clearTimeout(resizeDefer); - resizeDefer = w.setTimeout(applyMedia, resizeThrottle); - return; - } else { - lastCall = now; - } - for (var i in mediastyles) { - if (mediastyles.hasOwnProperty(i)) { - var thisstyle = mediastyles[i], min = thisstyle.minw, max = thisstyle.maxw, minnull = min === null, maxnull = max === null, em = "em"; - if (!!min) { - min = parseFloat(min) * (min.indexOf(em) > -1 ? eminpx || getEmValue() : 1); - } - if (!!max) { - max = parseFloat(max) * (max.indexOf(em) > -1 ? eminpx || getEmValue() : 1); - } - if (!thisstyle.hasquery || (!minnull || !maxnull) && (minnull || currWidth >= min) && (maxnull || currWidth <= max)) { - if (!styleBlocks[thisstyle.media]) { - styleBlocks[thisstyle.media] = []; - } - styleBlocks[thisstyle.media].push(rules[thisstyle.rules]); - } - } - } - for (var j in appendedEls) { - if (appendedEls.hasOwnProperty(j)) { - if (appendedEls[j] && appendedEls[j].parentNode === head) { - head.removeChild(appendedEls[j]); - } - } - } - appendedEls.length = 0; - for (var k in styleBlocks) { - if (styleBlocks.hasOwnProperty(k)) { - var ss = doc.createElement("style"), css = styleBlocks[k].join("\n"); - ss.type = "text/css"; - ss.media = k; - head.insertBefore(ss, lastLink.nextSibling); - if (ss.styleSheet) { - ss.styleSheet.cssText = css; - } else { - ss.appendChild(doc.createTextNode(css)); - } - appendedEls.push(ss); - } - } - }, translate = function(styles, href, media) { - var qs = styles.replace(respond.regex.keyframes, "").match(respond.regex.media), ql = qs && qs.length || 0; - href = href.substring(0, href.lastIndexOf("/")); - var repUrls = function(css) { - return css.replace(respond.regex.urls, "$1" + href + "$2$3"); - }, useMedia = !ql && media; - if (href.length) { - href += "/"; - } - if (useMedia) { - ql = 1; - } - for (var i = 0; i < ql; i++) { - var fullq, thisq, eachq, eql; - if (useMedia) { - fullq = media; - rules.push(repUrls(styles)); - } else { - fullq = qs[i].match(respond.regex.findStyles) && RegExp.$1; - rules.push(RegExp.$2 && repUrls(RegExp.$2)); - } - eachq = fullq.split(","); - eql = eachq.length; - for (var j = 0; j < eql; j++) { - thisq = eachq[j]; - mediastyles.push({ - media: thisq.split("(")[0].match(respond.regex.only) && RegExp.$2 || "all", - rules: rules.length - 1, - hasquery: thisq.indexOf("(") > -1, - minw: thisq.match(respond.regex.minw) && parseFloat(RegExp.$1) + (RegExp.$2 || ""), - maxw: thisq.match(respond.regex.maxw) && parseFloat(RegExp.$1) + (RegExp.$2 || "") - }); - } - } - applyMedia(); - }, makeRequests = function() { - if (requestQueue.length) { - var thisRequest = requestQueue.shift(); - ajax(thisRequest.href, function(styles) { - translate(styles, thisRequest.href, thisRequest.media); - parsedSheets[thisRequest.href] = true; - w.setTimeout(function() { - makeRequests(); - }, 0); - }); - } - }, ripCSS = function() { - for (var i = 0; i < links.length; i++) { - var sheet = links[i], href = sheet.href, media = sheet.media, isCSS = sheet.rel && sheet.rel.toLowerCase() === "stylesheet"; - if (!!href && isCSS && !parsedSheets[href]) { - if (sheet.styleSheet && sheet.styleSheet.rawCssText) { - translate(sheet.styleSheet.rawCssText, href, media); - parsedSheets[href] = true; - } else { - if (!/^([a-zA-Z:]*\/\/)/.test(href) && !base || href.replace(RegExp.$1, "").split("/")[0] === w.location.host) { - if (href.substring(0, 2) === "//") { - href = w.location.protocol + href; - } - requestQueue.push({ - href: href, - media: media - }); - } - } - } - } - makeRequests(); - }; - ripCSS(); - respond.update = ripCSS; - respond.getEmValue = getEmValue; - function callMedia() { - applyMedia(true); - } - if (w.addEventListener) { - w.addEventListener("resize", callMedia, false); - } else if (w.attachEvent) { - w.attachEvent("onresize", callMedia); - } -})(this); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/respond.matchmedia.addListener.min.js b/Mobile.Search.Web/Scripts/respond.matchmedia.addListener.min.js deleted file mode 100644 index 50ac74c..0000000 --- a/Mobile.Search.Web/Scripts/respond.matchmedia.addListener.min.js +++ /dev/null @@ -1,5 +0,0 @@ -/*! Respond.js v1.4.2: min/max-width media query polyfill * Copyright 2013 Scott Jehl - * Licensed under https://github.com/scottjehl/Respond/blob/master/LICENSE-MIT - * */ - -!function(a){"use strict";a.matchMedia=a.matchMedia||function(a){var b,c=a.documentElement,d=c.firstElementChild||c.firstChild,e=a.createElement("body"),f=a.createElement("div");return f.id="mq-test-1",f.style.cssText="position:absolute;top:-100em",e.style.background="none",e.appendChild(f),function(a){return f.innerHTML='­<style media="'+a+'"> #mq-test-1 { width: 42px; }</style>',c.insertBefore(e,d),b=42===f.offsetWidth,c.removeChild(e),{matches:b,media:a}}}(a.document)}(this),function(a){"use strict";if(a.matchMedia&&a.matchMedia("all").addListener)return!1;var b=a.matchMedia,c=b("only all").matches,d=!1,e=0,f=[],g=function(){a.clearTimeout(e),e=a.setTimeout(function(){for(var c=0,d=f.length;d>c;c++){var e=f[c].mql,g=f[c].listeners||[],h=b(e.media).matches;if(h!==e.matches){e.matches=h;for(var i=0,j=g.length;j>i;i++)g[i].call(a,e)}}},30)};a.matchMedia=function(e){var h=b(e),i=[],j=0;return h.addListener=function(b){c&&(d||(d=!0,a.addEventListener("resize",g,!0)),0===j&&(j=f.push({mql:h,listeners:i})),i.push(b))},h.removeListener=function(a){for(var b=0,c=i.length;c>b;b++)i[b]===a&&i.splice(b,1)},h}}(this),function(a){"use strict";function b(){u(!0)}var c={};a.respond=c,c.update=function(){};var d=[],e=function(){var b=!1;try{b=new a.XMLHttpRequest}catch(c){b=new a.ActiveXObject("Microsoft.XMLHTTP")}return function(){return b}}(),f=function(a,b){var c=e();c&&(c.open("GET",a,!0),c.onreadystatechange=function(){4!==c.readyState||200!==c.status&&304!==c.status||b(c.responseText)},4!==c.readyState&&c.send(null))};if(c.ajax=f,c.queue=d,c.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\([\s]*min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/,maxw:/\([\s]*max\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/},c.mediaQueriesSupported=a.matchMedia&&null!==a.matchMedia("only all")&&a.matchMedia("only all").matches,!c.mediaQueriesSupported){var g,h,i,j=a.document,k=j.documentElement,l=[],m=[],n=[],o={},p=30,q=j.getElementsByTagName("head")[0]||k,r=j.getElementsByTagName("base")[0],s=q.getElementsByTagName("link"),t=function(){var a,b=j.createElement("div"),c=j.body,d=k.style.fontSize,e=c&&c.style.fontSize,f=!1;return b.style.cssText="position:absolute;font-size:1em;width:1em",c||(c=f=j.createElement("body"),c.style.background="none"),k.style.fontSize="100%",c.style.fontSize="100%",c.appendChild(b),f&&k.insertBefore(c,k.firstChild),a=b.offsetWidth,f?k.removeChild(c):c.removeChild(b),k.style.fontSize=d,e&&(c.style.fontSize=e),a=i=parseFloat(a)},u=function(b){var c="clientWidth",d=k[c],e="CSS1Compat"===j.compatMode&&d||j.body[c]||d,f={},o=s[s.length-1],r=(new Date).getTime();if(b&&g&&p>r-g)return a.clearTimeout(h),h=a.setTimeout(u,p),void 0;g=r;for(var v in l)if(l.hasOwnProperty(v)){var w=l[v],x=w.minw,y=w.maxw,z=null===x,A=null===y,B="em";x&&(x=parseFloat(x)*(x.indexOf(B)>-1?i||t():1)),y&&(y=parseFloat(y)*(y.indexOf(B)>-1?i||t():1)),w.hasquery&&(z&&A||!(z||e>=x)||!(A||y>=e))||(f[w.media]||(f[w.media]=[]),f[w.media].push(m[w.rules]))}for(var C in n)n.hasOwnProperty(C)&&n[C]&&n[C].parentNode===q&&q.removeChild(n[C]);n.length=0;for(var D in f)if(f.hasOwnProperty(D)){var E=j.createElement("style"),F=f[D].join("\n");E.type="text/css",E.media=D,q.insertBefore(E,o.nextSibling),E.styleSheet?E.styleSheet.cssText=F:E.appendChild(j.createTextNode(F)),n.push(E)}},v=function(a,b,d){var e=a.replace(c.regex.keyframes,"").match(c.regex.media),f=e&&e.length||0;b=b.substring(0,b.lastIndexOf("/"));var g=function(a){return a.replace(c.regex.urls,"$1"+b+"$2$3")},h=!f&&d;b.length&&(b+="/"),h&&(f=1);for(var i=0;f>i;i++){var j,k,n,o;h?(j=d,m.push(g(a))):(j=e[i].match(c.regex.findStyles)&&RegExp.$1,m.push(RegExp.$2&&g(RegExp.$2))),n=j.split(","),o=n.length;for(var p=0;o>p;p++)k=n[p],l.push({media:k.split("(")[0].match(c.regex.only)&&RegExp.$2||"all",rules:m.length-1,hasquery:k.indexOf("(")>-1,minw:k.match(c.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:k.match(c.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}u()},w=function(){if(d.length){var b=d.shift();f(b.href,function(c){v(c,b.href,b.media),o[b.href]=!0,a.setTimeout(function(){w()},0)})}},x=function(){for(var b=0;b<s.length;b++){var c=s[b],e=c.href,f=c.media,g=c.rel&&"stylesheet"===c.rel.toLowerCase();e&&g&&!o[e]&&(c.styleSheet&&c.styleSheet.rawCssText?(v(c.styleSheet.rawCssText,e,f),o[e]=!0):(!/^([a-zA-Z:]*\/\/)/.test(e)&&!r||e.replace(RegExp.$1,"").split("/")[0]===a.location.host)&&("//"===e.substring(0,2)&&(e=a.location.protocol+e),d.push({href:e,media:f})))}w()};x(),c.update=x,c.getEmValue=t,a.addEventListener?a.addEventListener("resize",b,!1):a.attachEvent&&a.attachEvent("onresize",b)}}(this); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/respond.min.js b/Mobile.Search.Web/Scripts/respond.min.js deleted file mode 100644 index 80a7b69..0000000 --- a/Mobile.Search.Web/Scripts/respond.min.js +++ /dev/null @@ -1,5 +0,0 @@ -/*! Respond.js v1.4.2: min/max-width media query polyfill * Copyright 2013 Scott Jehl - * Licensed under https://github.com/scottjehl/Respond/blob/master/LICENSE-MIT - * */ - -!function(a){"use strict";a.matchMedia=a.matchMedia||function(a){var b,c=a.documentElement,d=c.firstElementChild||c.firstChild,e=a.createElement("body"),f=a.createElement("div");return f.id="mq-test-1",f.style.cssText="position:absolute;top:-100em",e.style.background="none",e.appendChild(f),function(a){return f.innerHTML='­<style media="'+a+'"> #mq-test-1 { width: 42px; }</style>',c.insertBefore(e,d),b=42===f.offsetWidth,c.removeChild(e),{matches:b,media:a}}}(a.document)}(this),function(a){"use strict";function b(){u(!0)}var c={};a.respond=c,c.update=function(){};var d=[],e=function(){var b=!1;try{b=new a.XMLHttpRequest}catch(c){b=new a.ActiveXObject("Microsoft.XMLHTTP")}return function(){return b}}(),f=function(a,b){var c=e();c&&(c.open("GET",a,!0),c.onreadystatechange=function(){4!==c.readyState||200!==c.status&&304!==c.status||b(c.responseText)},4!==c.readyState&&c.send(null))};if(c.ajax=f,c.queue=d,c.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\([\s]*min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/,maxw:/\([\s]*max\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/},c.mediaQueriesSupported=a.matchMedia&&null!==a.matchMedia("only all")&&a.matchMedia("only all").matches,!c.mediaQueriesSupported){var g,h,i,j=a.document,k=j.documentElement,l=[],m=[],n=[],o={},p=30,q=j.getElementsByTagName("head")[0]||k,r=j.getElementsByTagName("base")[0],s=q.getElementsByTagName("link"),t=function(){var a,b=j.createElement("div"),c=j.body,d=k.style.fontSize,e=c&&c.style.fontSize,f=!1;return b.style.cssText="position:absolute;font-size:1em;width:1em",c||(c=f=j.createElement("body"),c.style.background="none"),k.style.fontSize="100%",c.style.fontSize="100%",c.appendChild(b),f&&k.insertBefore(c,k.firstChild),a=b.offsetWidth,f?k.removeChild(c):c.removeChild(b),k.style.fontSize=d,e&&(c.style.fontSize=e),a=i=parseFloat(a)},u=function(b){var c="clientWidth",d=k[c],e="CSS1Compat"===j.compatMode&&d||j.body[c]||d,f={},o=s[s.length-1],r=(new Date).getTime();if(b&&g&&p>r-g)return a.clearTimeout(h),h=a.setTimeout(u,p),void 0;g=r;for(var v in l)if(l.hasOwnProperty(v)){var w=l[v],x=w.minw,y=w.maxw,z=null===x,A=null===y,B="em";x&&(x=parseFloat(x)*(x.indexOf(B)>-1?i||t():1)),y&&(y=parseFloat(y)*(y.indexOf(B)>-1?i||t():1)),w.hasquery&&(z&&A||!(z||e>=x)||!(A||y>=e))||(f[w.media]||(f[w.media]=[]),f[w.media].push(m[w.rules]))}for(var C in n)n.hasOwnProperty(C)&&n[C]&&n[C].parentNode===q&&q.removeChild(n[C]);n.length=0;for(var D in f)if(f.hasOwnProperty(D)){var E=j.createElement("style"),F=f[D].join("\n");E.type="text/css",E.media=D,q.insertBefore(E,o.nextSibling),E.styleSheet?E.styleSheet.cssText=F:E.appendChild(j.createTextNode(F)),n.push(E)}},v=function(a,b,d){var e=a.replace(c.regex.keyframes,"").match(c.regex.media),f=e&&e.length||0;b=b.substring(0,b.lastIndexOf("/"));var g=function(a){return a.replace(c.regex.urls,"$1"+b+"$2$3")},h=!f&&d;b.length&&(b+="/"),h&&(f=1);for(var i=0;f>i;i++){var j,k,n,o;h?(j=d,m.push(g(a))):(j=e[i].match(c.regex.findStyles)&&RegExp.$1,m.push(RegExp.$2&&g(RegExp.$2))),n=j.split(","),o=n.length;for(var p=0;o>p;p++)k=n[p],l.push({media:k.split("(")[0].match(c.regex.only)&&RegExp.$2||"all",rules:m.length-1,hasquery:k.indexOf("(")>-1,minw:k.match(c.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:k.match(c.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}u()},w=function(){if(d.length){var b=d.shift();f(b.href,function(c){v(c,b.href,b.media),o[b.href]=!0,a.setTimeout(function(){w()},0)})}},x=function(){for(var b=0;b<s.length;b++){var c=s[b],e=c.href,f=c.media,g=c.rel&&"stylesheet"===c.rel.toLowerCase();e&&g&&!o[e]&&(c.styleSheet&&c.styleSheet.rawCssText?(v(c.styleSheet.rawCssText,e,f),o[e]=!0):(!/^([a-zA-Z:]*\/\/)/.test(e)&&!r||e.replace(RegExp.$1,"").split("/")[0]===a.location.host)&&("//"===e.substring(0,2)&&(e=a.location.protocol+e),d.push({href:e,media:f})))}w()};x(),c.update=x,c.getEmValue=t,a.addEventListener?a.addEventListener("resize",b,!1):a.attachEvent&&a.attachEvent("onresize",b)}}(this); \ No newline at end of file diff --git a/Mobile.Search.Web/Startup.cs b/Mobile.Search.Web/Startup.cs deleted file mode 100644 index 39856c7..0000000 --- a/Mobile.Search.Web/Startup.cs +++ /dev/null @@ -1,14 +0,0 @@ -using Microsoft.Owin; -using Owin; - -[assembly: OwinStartupAttribute(typeof(Mobile.Search.Web.Startup))] -namespace Mobile.Search.Web -{ - public partial class Startup - { - public void Configuration(IAppBuilder app) - { - ConfigureAuth(app); - } - } -} diff --git a/Mobile.Search.Web/Utils/Utils.cs b/Mobile.Search.Web/Utils/Utils.cs deleted file mode 100644 index ae96b74..0000000 --- a/Mobile.Search.Web/Utils/Utils.cs +++ /dev/null @@ -1,106 +0,0 @@ -using System; -using System.Security.Cryptography; -using System.Text; - -namespace FroalaEditor -{ - /// <summary> - /// Basic utility functionality. - /// </summary> - public static class Utils - { - /// <summary> - /// Compute hash for string encoded as UTF8 - /// </summary> - /// <param name="s">String to be hashed</param> - /// <returns>40-character hex string</returns> - public static string SHA1HashStringForUTF8String(string s) - { - byte[] bytes = Encoding.UTF8.GetBytes(s); - - var sha1 = SHA1.Create(); - byte[] hashBytes = sha1.ComputeHash(bytes); - - return HexStringFromBytes(hashBytes); - } - - /// <summary> - /// Convert an array of bytes to a string of hex digits - /// </summary> - /// <param name="bytes">array of bytes</param> - /// <returns>String of hex digits</returns> - public static string HexStringFromBytes(byte[] bytes) - { - var sb = new StringBuilder(); - foreach (byte b in bytes) - { - var hex = b.ToString("x2"); - sb.Append(hex); - } - return sb.ToString(); - } - - /// <summary> - /// Generate an unique string based on current timestamp. - /// </summary> - /// <returns>Unique sha1 string</returns> - public static string GenerateUniqueString() - { - long milliseconds = DateTime.Now.Ticks / TimeSpan.TicksPerMillisecond; - return SHA1HashStringForUTF8String(milliseconds.ToString()); - } - - /// <summary> - /// Get file extension. - /// </summary> - /// <param name="filename">Filename.</param> - /// <returns>Extension without the dot.</returns> - public static string GetFileExtension(string filename) - { - return filename.Substring(filename.LastIndexOf('.') + 1); - } - - /// <summary> - /// Convert plain text string to a base 64 encoded string. - /// </summary> - /// <param name="plainText">String to convert.</param> - /// <returns>Base 64 converted string.</returns> - public static string Base64Encode(string plainText) - { - var plainTextBytes = Encoding.UTF8.GetBytes(plainText); - return Convert.ToBase64String(plainTextBytes); - } - - /// <summary> - /// Convert a string to a byte array. - /// </summary> - /// <param name="str">String to convert</param> - /// <returns>Converted bye array.</returns> - public static byte[] ToBytes(string str) - { - return Encoding.UTF8.GetBytes(str.ToCharArray()); - } - - /// <summary> - /// Convert byte array to a hex string. - /// </summary> - /// <param name="bytes">Byte array.</param> - /// <returns>Hex string.</returns> - public static string HexEncode(byte[] bytes) - { - return BitConverter.ToString(bytes).Replace("-", string.Empty).ToLowerInvariant(); - } - - /// <summary> - /// Generate HMAC256 hash. - /// </summary> - /// <param name="key">Byte array key.</param> - /// <param name="value">String value to hash.</param> - /// <returns>Byte array hash.</returns> - public static byte[] HMAC256(byte[] key, string value) - { - HMACSHA256 hmac = new HMACSHA256(key); - return hmac.ComputeHash(ToBytes(value)); - } - } -} diff --git a/Mobile.Search.Web/Views/Account/Login.cshtml b/Mobile.Search.Web/Views/Account/Login.cshtml deleted file mode 100644 index 6f81618..0000000 --- a/Mobile.Search.Web/Views/Account/Login.cshtml +++ /dev/null @@ -1,37 +0,0 @@ -@model Mobile.Search.Web.Controllers.LoginModel -@{ - ViewBag.Title = "Login"; -} - -<hgroup class="title"> - <h1>@ViewBag.Title.</h1> -</hgroup> - -<section id="loginForm"> - <h3>Use your ADK windows credentials to log in.</h3> - @using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl })) - { - @Html.AntiForgeryToken() - @Html.ValidationSummary(true) - - <fieldset> - <ul style="list-style-type: none"> - <li> - @Html.LabelFor(m => m.UserName) - @Html.TextBoxFor(m => m.UserName, new { @class = "form-control"}) - @Html.ValidationMessageFor(m => m.UserName) - </li> - <li> - @Html.LabelFor(m => m.Password) - @Html.PasswordFor(m => m.Password, new { @class = "form-control"}) - @Html.ValidationMessageFor(m => m.Password) - </li> - </ul> - <input type="submit" value="Log in" /> - </fieldset> - } -</section> - -@section Scripts { - @Scripts.Render("~/bundles/jqueryval") -} diff --git a/Mobile.Search.Web/Views/Home/Index.cshtml b/Mobile.Search.Web/Views/Home/Index.cshtml deleted file mode 100644 index 16bafce..0000000 --- a/Mobile.Search.Web/Views/Home/Index.cshtml +++ /dev/null @@ -1,128 +0,0 @@ -@model Mobile.Search.Web.Controllers.SearchPageViewModel -@{ - ViewBag.Title = "Index"; - Layout = null; -} - -<html> - <head> - <title></title> - <link href="~/Content/bootstrap.min.css" rel="stylesheet" /> - <style> - #custom-search-input{ - padding: 3px; - border: solid 1px #E4E4E4; - border-radius: 6px; - margin-top: 5px; - background-color: #fff; - } - - #custom-search-input input{ - border: 0; - box-shadow: none; - } - - #custom-search-input button{ - margin: 2px 0 0 0; - background: none; - box-shadow: none; - border: 0; - color: #666666; - padding: 0 8px 0 10px; - } - - #custom-search-input button:hover{ - border: 0; - box-shadow: none; - border-left: solid 1px #ccc; - } - - #custom-search-input .glyphicon-search{ - font-size: 19px; - margin-top: -7px; - margin-right: -11px; - } - body { - background-color: #eee; - } - .header-bar { - background-color: #f1f1f1; - height: 69px; - margin-top: -15px; - position: absolute; - left: 0; - top: 0; - width: 100%; - border-bottom: 1px solid #e5e5e5; - } - - .home-page-search { - margin-top: 200px; - } - .search-results { - margin-top: 60px; - } - </style> - </head> - <body> - <div class="header-bar"></div> - @if (string.IsNullOrEmpty(Model.Html)) - { - using (Html.BeginForm("Index", "Home", FormMethod.Get)) - { - <div class="home-page-search"> - <div class="container"> - <div class="row"> - <div class="col-md-3 col-xs-2"></div> - <div class="col-md-6 col-xs-8"> - <div id="custom-search-input"> - <div class="input-group col-xs-12"> - <input type="text" name="q" class="form-control" placeholder="Search" /> - <span class="input-group-btn"> - <button class="btn btn-info btn-sm" type="button"> - <i class="glyphicon glyphicon-search"></i> - </button> - </span> - </div> - </div> - </div> - <div class="col-md-3 col-xs-2"></div> - </div> - </div> - </div> - } - } - else - { - <div class="row" style="margin-left:10px; margin-right:10px;"> - <div class="col-md-4 col-sm-6 col-xs-12"> - @using (Html.BeginForm("Index", "Home", FormMethod.Get)) - { - <div id="custom-search-input"> - <div class="input-group col-xs-12"> - <input type="text" name="q" class="form-control" placeholder="Search" /> - <span class="input-group-btn"> - <button class="btn btn-info btn-sm" type="button"> - <i class="glyphicon glyphicon-search"></i> - </button> - </span> - </div> - </div> - } - </div> - <div class="col-md-8 col-sm-6"></div> - <div class="search-results"> - @Html.Raw(Model.Html) - </div> - </div> - } - <!--@ViewBag.ExceptionBody--> - - <!--URL: @ViewBag.Url--> - </body> -</html> - - - - - diff --git a/Mobile.Search.Web/Views/InboxMobi/Index.cshtml b/Mobile.Search.Web/Views/InboxMobi/Index.cshtml deleted file mode 100644 index a9d0646..0000000 --- a/Mobile.Search.Web/Views/InboxMobi/Index.cshtml +++ /dev/null @@ -1,218 +0,0 @@ -@model Mobile.Search.Web.Controllers.SearchPageViewModel -@{ - ViewBag.Title = "Index"; - Layout = null; -} - -<html> -<head> - <title></title> - <link href="~/Content/bootstrap.min.css" rel="stylesheet" /> - <title>InboxMobi | Search</title> - <meta name="viewport" content="width=device-width, initial-scale=1"> - <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" /> - <style type="text/css"> - .ybox input[type=text] { - border-radius: 2px; - font-size: 16px; - color: #333; - display: inline-block; - font-family: 'helvetica neue', helvetica, arial, sans-serif; - } - - body { - background-color: white; - margin: 0; - padding: 0; - } - - .contain { - border-top: solid 1px #ccc; - background-color: #eee; - max-width: 700px; - margin: auto; - font-family: arial; - height: 300px; - overflow: hidden; - } - - .contain-box { - background-color: white; - margin: 0; - padding-top: 10px; - padding-bottom: 10px; - width: 100%; - max-width: 556px; - border: 1px solid transparent; - border-bottom: 1px solid #ccc; - } - - .contain-box.search-bar { - margin-top: -1px; - margin-bottom: 6px; - } - - .contain-box .title { - margin-left: 10px; - margin-right: 10px; - color: #0000db; - font-size: 18px; - text-decoration: none; - font-family: helvetica, arial, sans-serif; - cursor: pointer; - } - - .contain-box .site { - color: #1B6F75; - margin-left: 10px; - margin-right: 10px; - font-family: helvetica, arial, sans-serif; - font-size: 13px; - } - - .contain-box .description { - color: #585962; - margin-left: 10px; - margin-right: 10px; - line-height: 17px; - font-family: helvetica, arial, sans-serif; - font-size: 13px; - } - - .search-results { - margin-top: 5px; - margin-left: 10px; - margin-right: 10px; - overflow: hidden; - } - - .header-bar { - margin-top: -15px; - position: absolute; - left: 0; - top: 0; - width: 100%; - } - - .home-page-search { - margin-top: 200px; - } - - .search-results { - } - - .search_button { - padding: 5px; - background: #0000DB; - width: 40px; - height: 37px; - border: none; - position: absolute; - top: 0; - right: 0; - opacity: 1; - z-index: 5; - -webkit-user-select: none; - -moz-user-select: none; - user-select: none; - } - - .search_button .loupe { - display: inline-block; - position: relative; - width: 20px; - height: 20px; - } - - .search_button .glass { - position: absolute; - width: 14px; - height: 14px; - border: 2px solid #fff; - border-radius: 100%; - top: 3px; - left: 0; - } - - .search_button .handle { - position: absolute; - display: inline-block; - border: 0; - background-color: #fff; - width: 9px; - height: 3px; - right: 1px; - bottom: 1px; - -webkit-transform: rotate(45deg); - transform: rotate(45deg); - } - </style> -</head> -<body> - <img src="@Model.PixelUrl" style="visibility: hidden;" /> - <div class="header-bar"></div> - @if (string.IsNullOrEmpty(Model.Html)) - { - using (Html.BeginForm("Index", "InboxMobi", FormMethod.Get)) - { - @Html.Hidden("uuid", Request.QueryString["uuid"]) - @Html.Hidden("product", Request.QueryString["product"]) - @Html.Hidden("src", Request.QueryString["src"]) - @Html.Hidden("pubid", Request.QueryString["pubid"]) - <div class="home-page-search"> - <div class="container"> - <div class="row"> - <div class="col-md-3 col-xs-2"></div> - <div class="col-md-6 col-xs-8"> - <div id="custom-search-input"> - <div class="input-group col-xs-12"> - <input type="text" name="q" class="form-control" placeholder="Search" style="height:37px" /> - <button type="submit" class="search_button" data-reactid=".7rbt1slc0.1.1.0.0.a.1"><span class="loupe" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1"><span class="glass" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1.0"></span><span class="handle" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1.1"></span></span></button> - </div> - </div> - </div> - <div class="col-md-3 col-xs-2"></div> - </div> - </div> - </div> - } - } - else - { - <div class="row" style="margin-left:10px; margin-right:10px;"> - <div class="col-md-4 col-sm-6 col-xs-12"> - @using (Html.BeginForm("Index", "InboxMobi", FormMethod.Get)) - { - <div id="custom-search-input"> - <div class="input-group col-xs-12"> - <div id="custom-search-input"> - <div class="input-group col-xs-12"> - <input type="text" name="q" class="form-control" value="@Model.Query" placeholder="Search" style="height:37px" /> - <button type="submit" class="search_button" data-reactid=".7rbt1slc0.1.1.0.0.a.1"><span class="loupe" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1"><span class="glass" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1.0"></span><span class="handle" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1.1"></span></span></button> - </div> - </div> - </div> - </div> - } - </div> - <div class="col-md-8 col-sm-6"></div> - </div> - <div class="search-results"> - @Html.Raw(Model.Html) - </div> - } - - <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script> - - <script> -$(function() { - $('.contain-box').click(function() { - window.document.location = $(this).data('href'); - }); - $('.arrow').click(function() { - window.document.location = $(this).data('href'); - }); -}) - </script> -</body> -</html> \ No newline at end of file diff --git a/Mobile.Search.Web/Views/InboxMobi/IndexB.cshtml b/Mobile.Search.Web/Views/InboxMobi/IndexB.cshtml deleted file mode 100644 index 2b97a01..0000000 --- a/Mobile.Search.Web/Views/InboxMobi/IndexB.cshtml +++ /dev/null @@ -1,233 +0,0 @@ -@model Mobile.Search.Web.Controllers.SearchPageViewModel -@{ - ViewBag.Title = "Index"; - Layout = null; -} - -<html> -<head> - <title></title> - <link href="~/Content/bootstrap.min.css" rel="stylesheet" /> - <title>InboxMobi | Search</title> - <meta name="viewport" content="width=device-width, initial-scale=1"> - <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" /> - <style type="text/css"> - .ybox input[type=text] { - border-radius: 2px; - font-size: 16px; - color: #333; - display: inline-block; - font-family: 'helvetica neue', helvetica, arial, sans-serif; - } - - body { - background-color: white; - margin: 0; - overflow-x: hidden; - padding: 0; - } - - .contain { - border-top: solid 1px #ccc; - background-color: #eee; - max-width: 700px; - margin: auto; - font-family: arial; - height: 300px; - overflow: hidden; - } - - .contain-box { - background-color: white; - margin: 0; - padding-top: 10px; - padding-bottom: 10px; - width: 100%; - max-width: 556px; - border: 1px solid transparent; - border-bottom: 1px solid #ccc; - } - - .contain-box.search-bar { - margin-top: -1px; - margin-bottom: 6px; - } - - .contain-box .title { - margin-left: 10px; - margin-right: 10px; - color: #0000db; - font-size: 18px; - text-decoration: none; - font-family: helvetica, arial, sans-serif; - cursor: pointer; - } - - .contain-box .site { - color: #1B6F75; - margin-left: 10px; - margin-right: 10px; - font-family: helvetica, arial, sans-serif; - font-size: 13px; - } - - .contain-box .description { - color: #585962; - margin-left: 10px; - margin-right: 10px; - line-height: 17px; - font-family: helvetica, arial, sans-serif; - font-size: 13px; - } - - .search-results { - margin-top: 5px; - margin-left: 10px; - margin-right: 10px; - overflow: hidden; - } - - .header-bar { - margin-top: -15px; - position: absolute; - left: 0; - top: 0; - width: 100%; - } - - .home-page-search { - margin-top: 200px; - } - - .search-results { - } - - .search_button { - padding: 5px; - background: #0000DB; - width: 40px; - height: 37px; - border: none; - position: absolute; - top: 0; - right: 0; - opacity: 1; - z-index: 5; - -webkit-user-select: none; - -moz-user-select: none; - user-select: none; - } - - .search_button .loupe { - display: inline-block; - position: relative; - width: 20px; - height: 20px; - } - - .search_button .glass { - position: absolute; - width: 14px; - height: 14px; - border: 2px solid #fff; - border-radius: 100%; - top: 3px; - left: 0; - } - - .search_button .handle { - position: absolute; - display: inline-block; - border: 0; - background-color: #fff; - width: 9px; - height: 3px; - right: 1px; - bottom: 1px; - -webkit-transform: rotate(45deg); - transform: rotate(45deg); - } - </style> -</head> -<body> - <img src="@Model.PixelUrl" style="visibility: hidden;" /> - <div class="header-bar"></div> - @if (string.IsNullOrEmpty(Model.Html)) - { - using (Html.BeginForm("Index", "InboxMobi", FormMethod.Get)) - { - @Html.Hidden("uuid", Request.QueryString["uuid"]) - @Html.Hidden("product", Request.QueryString["product"]) - @Html.Hidden("src", Request.QueryString["src"]) - @Html.Hidden("pubid", Request.QueryString["pubid"]) - @Html.Hidden("view", "IndexB") - <div class="home-page-search"> - <div class="container"> - <div class="row"> - <div class="col-md-3 col-xs-2"></div> - <div class="col-md-6 col-xs-8"> - <div id="custom-search-input"> - <div class="input-group col-xs-12"> - <input type="text" name="q" class="form-control" placeholder="Search" style="height:37px" /> - <button type="submit" class="search_button" data-reactid=".7rbt1slc0.1.1.0.0.a.1"><span class="loupe" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1"><span class="glass" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1.0"></span><span class="handle" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1.1"></span></span></button> - </div> - </div> - </div> - <div class="col-md-3 col-xs-2"></div> - </div> - </div> - </div> - } - } - else - { - <div class="row" style=""> - <div class="col-md-4 col-sm-6 col-xs-12"> - @using (Html.BeginForm("Index", "InboxMobi", FormMethod.Get)) - { - @Html.Hidden("uuid", Request.QueryString["uuid"]) - @Html.Hidden("product", Request.QueryString["product"]) - @Html.Hidden("src", Request.QueryString["src"]) - @Html.Hidden("pubid", Request.QueryString["pubid"]) - @Html.Hidden("view", "IndexB") - <div id="custom-search-input"> - <div class="input-group col-xs-12"> - <div id="custom-search-input"> - <div class="input-group col-xs-12"> - <div style="width:100%;height:47px;border-bottom:1px solid #a9a9a9;background-color:#f8f8f8;margin:0 auto;text-align:center;position:fixed;top:0px;"> - <div style="width:100%;max-width:475px;margin:0 auto;text-align:left;padding-top:9px;"> - <div style="background-color:#e5e6e8;border-radius:5px;text-align:center;margin:0 auto;width:90%;"> - <div style="font-size:11pt;color:#8e8e90;text-align:left;padding:2px;padding-left:6px;"> - <input type="search" width="100%" style="border: none;border-color: transparent;-webkit-appearance: none;-moz-appearance: none;appearance: none;width:100%;outline: none;background-color:#e5e6e8;-webkit-box-shadow: none;box-shadow: none;" placeholder="Enter Safe Search Term" name="q" id="searchTerm" onclick="this.value='';" /> - </div> - </div> - <div style="clear:both"></div> - </div> - </div> - </div> - </div> - </div> - </div> - } - </div> - <div class="col-md-8 col-sm-6"></div> - </div> - <div class="search-results"> - @Html.Raw(Model.Html) - </div> - } - - <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script> - - <script> -$(function() { - $('.contain-box').click(function() { - window.document.location = $(this).data('href'); - }); - $('.arrow').click(function() { - window.document.location = $(this).data('href'); - }); -}) - </script> -</body> -</html> diff --git a/Mobile.Search.Web/Views/Lightning/Bible.cshtml b/Mobile.Search.Web/Views/Lightning/Bible.cshtml deleted file mode 100644 index 675f979..0000000 --- a/Mobile.Search.Web/Views/Lightning/Bible.cshtml +++ /dev/null @@ -1,446 +0,0 @@ - -@model Mobile.Search.Web.Controllers.SearchPageViewModel -@{ - ViewBag.Title = "Bible Search"; - Layout = null; - ViewBag.design = Request["design"]; -} -<html> -<head> - <title>Lightning | Search</title> - <link href="~/Content/bootstrap.min.css" rel="stylesheet" /> - <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> - <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" /> - <link href="https://fonts.googleapis.com/css?family=Roboto:300,400" rel="stylesheet"> - <style type="text/css"> - .ybox input[type=text] { - font-size: 16px; - color: #333; - display: inline-block; - font-family: 'helvetica neue', helvetica, arial, sans-serif; - } - - body { - background-color: #f2f2f2; - padding: 0; - margin: 0; - font-family: Roboto; - } - - .custom-search-input { - } - - .contain { - border-top: solid 1px #ccc; - background-color: white; - max-width: 960px; - margin: auto; - font-family: arial; - height: 300px; - overflow: hidden; - } - - .contain-box { - background-color: white; - margin: 0 auto; - margin-top: 8px; - margin-bottom: 8px; - padding-top: 10px; - padding-bottom: 10px; - width: 100%; - max-width: 960px; - border: 1px solid #e1e1e1; - width: 100%; - border-bottom: 1px solid #d2d2d2; - } - - .contain-box.search-bar { - } - - .contain-box .title { - margin-left: 10px; - margin-right: 10px; - margin-bottom: 8px; - color: #0000db; - font-size: 18px; - text-decoration: none; - font-family: helvetica, arial, sans-serif; - cursor: pointer; - border-bottom: 1px solid #ebebeb; - } - - .contain-box .site { - color: #1B6F75; - margin-left: 10px; - margin-right: 10px; - font-family: helvetica, arial, sans-serif; - font-size: 13px; - } - - .contain-box .description { - color: #585962; - margin-left: 10px; - margin-right: 10px; - line-height: 17px; - font-family: helvetica, arial, sans-serif; - font-size: 13px; - } - - .search-results { - margin-top: 5px; - margin-left: 10px; - margin-right: 10px; - text-align: left; - background-color: #f2f2f2; - overflow: hidden; - } - - .home-page-search { - margin: 0 auto; - text-align: center; - } - - - .search_button { - padding: 5px; - background: #3b78e7; - width: 40px; - height: 37px; - border: none; - position: absolute; - top: 0; - right: 0; - opacity: 1; - z-index: 5; - -webkit-user-select: none; - -moz-user-select: none; - user-select: none; - } - - .search_button .loupe { - display: inline-block; - position: relative; - width: 20px; - height: 20px; - } - - .search_button .glass { - position: absolute; - width: 14px; - height: 14px; - border: 2px solid #fff; - border-radius: 100%; - top: 3px; - left: 0; - } - - .search_button .handle { - position: absolute; - display: inline-block; - border: 0; - background-color: #fff; - width: 9px; - height: 3px; - right: 1px; - bottom: 1px; - -webkit-transform: rotate(45deg); - transform: rotate(45deg); - } - - #search_input { - height: 35px; - width: 100%; - max-width: 960px; - outline: none; - border: none; - font-size: 16px; - background-color: transparent; - } - - span { - display: block; - overflow: hidden; - padding-left: 5px; - vertical-align: middle; - } - - .search_bar { - width: 100%; - height: 35px; - max-width: 940px; - margin: 0 auto; - background-color: #fff; - box-shadow: 0px 2px 3px rgba( 0, 0, 0, 0.25 ); - font-family: Arial; - color: #444; - } - - #search_submit { - outline: none; - height: 37px; - float: right; - color: #404040; - font-size: 16px; - font-weight: bold; - border: none; - background-color: transparent; - } - - .outer { - } - - .middle { - display: table-cell; - vertical-align: middle; - } - - .inner { - margin-left: auto; - margin-right: auto; - margin-bottom: 10%; - width: 100%; - } - - img.smaller { - width: 50%; - max-width: 300px; - } - - .box { - vertical-align: middle; - position: relative; - display: block; - margin: 10px; - padding-left: 10px; - padding-right: 10px; - padding-top: 5px; - padding-bottom: 5px; - background-color: #fff; - box-shadow: 0px 3px rgba( 0, 0, 0, 0.1 ); - font-family: Arial; - color: #444; - font-size: 12px; - } - - .topper { - } - - .widget { - margin-top: 10px; - } - - #table-wrapper { - width: 100%; - height: 200px; - display: table; - vertical-align: middle; - text-align: center; - max-width: 800px; - margin: 0 auto; - } - - #carousel { - width: 100%; - height: 180px; - background-color: #ffffff; - overflow: auto; - white-space: nowrap; - } - - #carousel .slide { - display: inline-block; - width: 169px; - text-overflow: ellipsis; - font: 10pt roboto; - } - </style> - -</head> -<body> - @if (string.IsNullOrEmpty(Model.Html)) - { - <div style="width:100%;margin:0 auto; text-align:center;"> - <div id="table-wrapper"> - <div style="background-image:url('http://biblicalbuddy.com/Content/Images/Bible/bible-backer.jpg');background-size:cover;height:150px; width:100%; display:table-cell; - vertical-align:middle;background-position:bottom"> - <form action="http://search.lightningbrowser.com/Lightning/Bible" method="get"> - - @Html.Hidden("uuid", Request.QueryString["uuid"]) - @Html.Hidden("src", Request.QueryString["src"]) - <div class="home-page-search"> - - <div style="color:#ffffff;font-size:18pt;font-family:'Roboto';font-weight:300">Bible Browser</div> - <div class="topper" style="margin-left:10px; margin-right:10px;margin-top:10px;margin-bottom:10px;"> - - <div class="custom-search-input"> - <div class="input-group col-xs-12"> - - <input type="text" name="q" class="form-control" value="@Model.Query" placeholder="Search" style="height:37px;border-radius:0px;" /> - <button type="submit" class="search_button" data-reactid=".7rbt1slc0.1.1.0.0.a.1"><span class="loupe" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1"><span class="glass" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1.0"></span><span class="handle" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1.1"></span></span></button> - </div> - </div> - - - </div> - </div> - - - </form> - </div> - </div> - - <div style="background-color:#ffffff;margin-top:10px;padding:10px; width:100%;max-width:800px;text-align:center;margin:0 auto;"> - - - - <img src="http://search.lightningbrowser.com/Content/Images/BibleBrowser/temp-verse.jpg" style="width:100%;max-width:540px;"/> - </div> - </div> - - <div style="background-color:#ffffff;margin-top:10px;padding:10px; width:100%;max-width:800px;text-align:center;margin:0 auto;"> - <div style="font-size:20pt;">Past Verses</div> - - - <img src="http://search.lightningbrowser.com/Content/Images/BibleBrowser/temp-img2.jpg" style="width:100%;max-width:540px;" /> - <br /><br /> - <img src="http://search.lightningbrowser.com/Content/Images/BibleBrowser/temp-image3.jpg" style="width:100%;max-width:540px;" /> - </div> - - - - - - <!-- <a href="http://www.whatsmysignsay.com/5-reasons-your-sign-is-best/"> - <div style="background-color:#ffffff;margin-top:10px;padding:10px; width:95%;max-width:800px;text-align:center;margin:0 auto;margin-top:10px;border:1px solid #acacac"> - <div style="float:left"><img src="http://search.lightningbrowser.com/Content/Images/playstore-icon.png" width="25" /></div> - <div style="float:left;font:6pt;color:#808080;margin-top:5px;margin-left:5px;">Astrology</div> - <div style="clear:both"></div> - <div style="text-align:left;font-weight:bolder;margin-top:5px;font-size:14pt;">5 Reasons Your Sign Is The Best Sign</div> - <div style="float:left;width:60%;text-align:left;">In this three part article we will review the top five, most positive traits possessed by each of the 12 zodiac signs. Read Part 1 Now!</div> - <div style="float:right"> - <div style="width:125px;height:75px;background-image:url('http://dqqrlago0bb5s.cloudfront.net/wp-content/uploads/2016/09/22044925/bestsign_taurus-203x150.jpg');background-size:cover;"></div> - - </div> - <div style="clear:both"></div> - </div> - </a> - <a href="http://www.whatsmysignsay.com/numerology-basics/"> - <div style="background-color:#ffffff;margin-top:10px;padding:10px; width:95%;max-width:800px;text-align:center;margin:0 auto;margin-top:10px;border:1px solid #acacac"> - <div style="float:left"><img src="http://search.lightningbrowser.com/Content/Images/playstore-icon.png" width="25" /></div> - <div style="float:left;font:6pt;color:#808080;margin-top:5px;margin-left:5px;">Numerology</div> - <div style="clear:both"></div> - <div style="text-align:left;font-weight:bolder;margin-top:5px;font-size:14pt;">The Basics Of Numerology Part One</div> - <div style="float:left;width:60%;text-align:left;">Numerology is intriguingly interesting part of the occult. As mathematics, more and more, is defining the universe and the world around us – Learn more now!</div> - <div style="float:right"> - <div style="width:125px;height:75px;;background-image:url('http://dqqrlago0bb5s.cloudfront.net/wp-content/uploads/2016/09/23040512/numerology2.jpg');background-size:cover;"></div> - - </div> - <div style="clear:both"></div> - </div> - </a> - <a href="http://www.whatsmysignsay.com/compatible-zodiac-signs/"> - - <div style="background-color:#ffffff;margin-top:10px;padding:10px; width:95%;max-width:800px;text-align:center;margin:0 auto;margin-top:10px;border:1px solid #acacac"> - <div style="float:left"><img src="http://search.lightningbrowser.com/Content/Images/playstore-icon.png" width="25" /></div> - <div style="float:left;font:6pt;color:#808080;margin-top:5px;margin-left:5px;">Love</div> - <div style="clear:both"></div> - <div style="text-align:left;font-weight:bolder;margin-top:5px;font-size:14pt;">Which Zodiac Sign Are You Compatible With?</div> - <div style="float:left;width:60%;text-align:left;">One of the most common questions people who follow and consult astrology have is: “Which zodiac sign am I most compatible with?”</div> - <div style="float:right"> - <div style="width:125px;height:75px;background-image:url('http://dqqrlago0bb5s.cloudfront.net/wp-content/uploads/2016/10/04153136/compatible_zodiac_1.jpg');background-size:cover;"></div> - - </div> - <div style="clear:both"></div> - </div> - </a>--> - - - - - - - - <!-- <div style="background-color:#ffffff;margin-top:10px;padding:10px;"> - <table style="text-align:center;margin:0 auto;width:100%;max-width:475px;"> - <tr> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.yahoo.com')"><img src="~/content/Images/image-Yahoo-app-icon.png" width="40" /><br />Yahoo</td> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.youtube.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-youtube.png" width="40" /><br />Youtube</td> - <td style="text-align:center;padding-top:10px;margin:0 auto;" onclick="goURL('http://www.facebook.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-facebook.png" width="40" /><br />Facebook</td> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.twitter.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-twitter.png" width="40" /><br />Twitter</td> - </tr> - <tr> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.instagram.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-instagram.png" width="40" /><br />Instagram</td> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('https://login.yahoo.com')"><img src="~/Content/Images/Yahoo-Mail-3.0-for-iOS-app-icon-small.png" width="40" /><br />E-Mail</td> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.cnn.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-cnn.png" width="40" /><br />CNN</td> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.weather.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-weather.png" width="40" /><br />Weather</td> - - </tr> - <tr> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://maps.google.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-maps.png" width="40" /><br />Maps</td> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.bloomberg.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-bloomberg.png" width="40" /><br />Bloomberg</td> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.amazon.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-amazon.png" width="40" /><br />Amazon</td> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.ebay.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-ebay.png" width="40" /><br />ebay</td> - </tr> - <tr> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.wikipedia.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-wikipedia.png" width="40" /><br />wikipedia</td> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.nytimes.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-nyt.png" width="40" /><br />NY Times</td> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.espn.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-espn.png" width="40" /><br />ESPN</td> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.imdb.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-imdb.png" width="40" /><br />iMDb</td> - </tr> - </table> - </div>--> - } - else - { - - <div class="topper"> - <div id="table-wrapper"> - <div style="background-image:url('http://biblicalbuddy.com/Content/Images/Bible/bible-backer.jpg');background-size:cover;height:150px; width:100%; display:table-cell; - vertical-align:middle;background-position:bottom"> - <form action="http://search.lightningbrowser.com/Lightning/Bible" method="get"> - - @Html.Hidden("uuid", Request.QueryString["uuid"]) - @Html.Hidden("src", Request.QueryString["src"]) - <div class="home-page-search"> - - <div style="color:#ffffff;font-size:18pt;font-family:'Roboto';font-weight:300">Bible Browser</div> - <div class="topper" style="margin-left:10px; margin-right:10px;margin-top:10px;margin-bottom:10px;"> - - <div class="custom-search-input"> - <div class="input-group col-xs-12"> - - <input type="text" name="q" class="form-control" value="@Model.Query" placeholder="Search" style="height:37px;border-radius:0px;" /> - <button type="submit" class="search_button" data-reactid=".7rbt1slc0.1.1.0.0.a.1"><span class="loupe" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1"><span class="glass" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1.0"></span><span class="handle" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1.1"></span></span></button> - </div> - </div> - - - </div> - </div> - - - </form> - </div> - </div> - - </div> - <div class="search-results"> - @Html.Raw(Model.Html) - </div> - } - <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script> - <script> - $(function () { - $('.contain-box').click(function () { - window.document.location = $(this).data('href'); - }); - $('.arrow').click(function () { - window.document.location = $(this).data('href'); - }); - }) - </script> -</body> - -</html> - - diff --git a/Mobile.Search.Web/Views/Lightning/Discounts.cshtml b/Mobile.Search.Web/Views/Lightning/Discounts.cshtml deleted file mode 100644 index 917b20e..0000000 --- a/Mobile.Search.Web/Views/Lightning/Discounts.cshtml +++ /dev/null @@ -1,473 +0,0 @@ - -@model Mobile.Search.Web.Controllers.SearchPageViewModel -@{ - ViewBag.Title = "Discount Search"; - Layout = null; - ViewBag.design = Request["design"]; -} -<html> -<head> - <title>Lightning | Search</title> - <link href="~/Content/bootstrap.min.css" rel="stylesheet" /> - <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> - <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" /> - <link href="https://fonts.googleapis.com/css?family=Roboto:300,400" rel="stylesheet"> - <style type="text/css"> - .ybox input[type=text] { - font-size: 16px; - color: #333; - display: inline-block; - font-family: 'helvetica neue', helvetica, arial, sans-serif; - } - - body { - background-color: #f2f2f2; - padding: 0; - margin: 0; - font-family: Roboto; - } - - .custom-search-input { - } - - .contain { - border-top: solid 1px #ccc; - background-color: white; - max-width: 960px; - margin: auto; - font-family: arial; - height: 300px; - overflow: hidden; - } - - .contain-box { - background-color: white; - margin: 0 auto; - margin-top: 8px; - margin-bottom: 8px; - padding-top: 10px; - padding-bottom: 10px; - width: 100%; - max-width: 960px; - border: 1px solid #e1e1e1; - width: 100%; - border-bottom: 1px solid #d2d2d2; - } - - .contain-box.search-bar { - } - - .contain-box .title { - margin-left: 10px; - margin-right: 10px; - margin-bottom: 8px; - color: #0000db; - font-size: 18px; - text-decoration: none; - font-family: helvetica, arial, sans-serif; - cursor: pointer; - border-bottom: 1px solid #ebebeb; - } - - .contain-box .site { - color: #1B6F75; - margin-left: 10px; - margin-right: 10px; - font-family: helvetica, arial, sans-serif; - font-size: 13px; - } - - .contain-box .description { - color: #585962; - margin-left: 10px; - margin-right: 10px; - line-height: 17px; - font-family: helvetica, arial, sans-serif; - font-size: 13px; - } - - .search-results { - margin-top: 5px; - margin-left: 10px; - margin-right: 10px; - text-align: left; - background-color: #f2f2f2; - overflow: hidden; - } - - .home-page-search { - margin: 0 auto; - text-align: center; - } - - - .search_button { - padding: 5px; - background: #3b78e7; - width: 40px; - height: 37px; - border: none; - position: absolute; - top: 0; - right: 0; - opacity: 1; - z-index: 5; - -webkit-user-select: none; - -moz-user-select: none; - user-select: none; - } - - .search_button .loupe { - display: inline-block; - position: relative; - width: 20px; - height: 20px; - } - - .search_button .glass { - position: absolute; - width: 14px; - height: 14px; - border: 2px solid #fff; - border-radius: 100%; - top: 3px; - left: 0; - } - - .search_button .handle { - position: absolute; - display: inline-block; - border: 0; - background-color: #fff; - width: 9px; - height: 3px; - right: 1px; - bottom: 1px; - -webkit-transform: rotate(45deg); - transform: rotate(45deg); - } - - #search_input { - height: 35px; - width: 100%; - max-width: 960px; - outline: none; - border: none; - font-size: 16px; - background-color: transparent; - } - - span { - display: block; - overflow: hidden; - padding-left: 5px; - vertical-align: middle; - } - - .search_bar { - width: 100%; - height: 35px; - max-width: 940px; - margin: 0 auto; - background-color: #fff; - box-shadow: 0px 2px 3px rgba( 0, 0, 0, 0.25 ); - font-family: Arial; - color: #444; - } - - #search_submit { - outline: none; - height: 37px; - float: right; - color: #404040; - font-size: 16px; - font-weight: bold; - border: none; - background-color: transparent; - } - - .outer { - } - - .middle { - display: table-cell; - vertical-align: middle; - } - - .inner { - margin-left: auto; - margin-right: auto; - margin-bottom: 10%; - width: 100%; - } - - img.smaller { - width: 50%; - max-width: 300px; - } - - .box { - vertical-align: middle; - position: relative; - display: block; - margin: 10px; - padding-left: 10px; - padding-right: 10px; - padding-top: 5px; - padding-bottom: 5px; - background-color: #fff; - box-shadow: 0px 3px rgba( 0, 0, 0, 0.1 ); - font-family: Arial; - color: #444; - font-size: 12px; - } - - .topper { - } - - .widget { - margin-top: 10px; - } - - #table-wrapper { - width: 100%; - height: 200px; - display: table; - vertical-align: middle; - text-align: center; - max-width: 800px; - margin: 0 auto; - } - - #carousel { - width: 100%; - height: 180px; - background-color: #ffffff; - overflow: auto; - white-space: nowrap; - } - - #carousel .slide { - display: inline-block; - width: 169px; - text-overflow: ellipsis; - font: 10pt roboto; - } - </style> - -</head> -<body> - @if (string.IsNullOrEmpty(Model.Html)) - { - <div style=" width:95%;max-width:800px;margin:0 auto; text-align:center;border:1px solid #acacac;margin-top:10px;"> - <div id="table-wrapper"> - <div style="background-image:url('');background-color:#FFFFFF;background-size:cover;height:150px; width:100%; display:table-cell; - vertical-align:middle;"> - <form action="http://search.lightningbrowser.com/Lightning/Discounts" method="get"> - - @Html.Hidden("uuid", Request.QueryString["uuid"]) - @Html.Hidden("src", Request.QueryString["src"]) - <div class="home-page-search"> - <img src="http://search.lightningbrowser.com/Content/Images/BargainExplorer/icon-small.png" width="200"/> - <div style="color:#ffffff;font-size:18pt;font-family:'Roboto';font-weight:300;margin-bottom:10px;"><img src="http://search.lightningbrowser.com/Content/Images/BargainExplorer/bargain-icon.png" style="width:98%;max-width:500px;" /></div> - <div class="topper" style="margin-left:10px; margin-right:10px;margin-top:20px;"> - - <div class="custom-search-input"> - <div class="input-group col-xs-12"> - - <input type="text" name="q" class="form-control" value="@Model.Query" placeholder="Search For Discounts" style="height:37px;border-radius:0px;" /> - <button type="submit" class="search_button" data-reactid=".7rbt1slc0.1.1.0.0.a.1"><span class="loupe" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1"><span class="glass" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1.0"></span><span class="handle" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1.1"></span></span></button> - </div> - </div> - - - </div> - </div> - - - </form> - </div> - </div> - - <div style="background-color:#ffffff;margin-top:10px;padding:10px; width:100%;max-width:800px;text-align:center;margin:0 auto;"> - <div style="font-size:20pt;"><img src="http://search.lightningbrowser.com/Content/Images/BargainExplorer/suggested.png" style="width:98%;max-width:500px;" /></div> - - - <table border="0" style="width:100%;max-width:500px;padding: 0; border-spacing: 0;text-align:left;margin:0 auto; color:#000;font-size:13px;background-color:white;-webkit-border-radius: 10px;"> - <tbody> - <tr style="background-color: #F9F9F9;"> - <td width="50%" style="padding-left:5px;" valign="middle"> - <label><a href="discounts?q=grocery discounts" style="font-size:15pt;">Grocery</a></label> - </td> - - <td width="50%" style="padding-left:5px;"> - <label><a href="discounts?q=household discounts" style="font-size:15pt;">Home</a></label> - </td> - - </tr> - - - <tr> - <td width="50%" style="padding-left:5px;"> - <label><a href="discounts?q=personal care discounts" style="font-size:15pt;">Personal Care</a></label> - </td> - <td width="50%" style="padding-left:5px;"> - <label> <a href="discounts?q=health" style="font-size:15pt;">Health</a></label> - </td> - - - </tr> - <tr style="background-color: #F9F9F9;"> - - <td width="50%" style="padding-left:5px;"> - <label><a href="discounts?q=beverage discounts" style="font-size:15pt;">Beverage</a></label> - </td> - <td width="50%" style="padding-left:5px;"> - <label><a href="discounts?q=baby discounts" style="font-size:15pt;">Baby</a></label> - </td> - - </tr> - - <tr> - <td width="60%" style="padding-left:5px;"> - <label><a href="discounts?q=automotive discounts" style="font-size:15pt;">Automotive</a></label> - </td> - <td width="50%" style="padding-left:5px;"> - <label><a href="discounts?q=pet care discounts" style="font-size:15pt;">Pet Care</a></label> - </td> - - </tr> - - - - - - </tbody> - </table> - - </div> - - </div> - - - <a href="#"> - <div style="background-color:#ffffff;margin-top:10px;padding:10px; width:95%;max-width:800px;text-align:center;margin:0 auto;margin-top:10px;border:1px solid #acacac"> - <div style="float:left"><img src="http://search.lightningbrowser.com/Content/Images/BargainExplorer/icon-small.png" width="25" /></div> - <div style="float:left;font:6pt;color:#808080;margin-top:5px;margin-left:5px;">Coupons</div> - <div style="clear:both"></div> - <div style="text-align:left;font-weight:bolder;margin-top:5px;font-size:14pt;">Top 10 Couponing Tricks</div> - <div style="float:left;width:60%;text-align:left;">In this three part article we will review the top ten, most valueable tricks to couponing! Read Part 1 Now!</div> - <div style="float:right"> - <div style="width:125px;height:75px;background-image:url('http://cdn.moneycrashers.com/wp-content/uploads/2010/11/coupons-scissors-brown-bag.jpg');background-size:cover;"></div> - - </div> - <div style="clear:both"></div> - </div> - </a> - <a href="#"> - <div style="background-color:#ffffff;margin-top:10px;padding:10px; width:95%;max-width:800px;text-align:center;margin:0 auto;margin-top:10px;border:1px solid #acacac"> - <div style="float:left"><img src="http://search.lightningbrowser.com/Content/Images/BargainExplorer/icon-small.png" width="25" /></div> - <div style="float:left;font:6pt;color:#808080;margin-top:5px;margin-left:5px;">Discount Travel</div> - <div style="clear:both"></div> - <div style="text-align:left;font-weight:bolder;margin-top:5px;font-size:14pt;">8 Inexpensive Places To Visit</div> - <div style="float:left;width:60%;text-align:left;">Travel the world in style and comfort on a shoestring budget! Read about the top destination for penny pinchers</div> - <div style="float:right"> - <div style="width:125px;height:75px;;background-image:url('http://weknowyourdreams.com/images/travel/travel-02.jpg');background-size:cover;"></div> - - </div> - <div style="clear:both"></div> - </div> - </a> - - - - - - - - - <!-- <div style="background-color:#ffffff;margin-top:10px;padding:10px;"> - <table style="text-align:center;margin:0 auto;width:100%;max-width:475px;"> - <tr> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.yahoo.com')"><img src="~/content/Images/image-Yahoo-app-icon.png" width="40" /><br />Yahoo</td> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.youtube.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-youtube.png" width="40" /><br />Youtube</td> - <td style="text-align:center;padding-top:10px;margin:0 auto;" onclick="goURL('http://www.facebook.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-facebook.png" width="40" /><br />Facebook</td> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.twitter.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-twitter.png" width="40" /><br />Twitter</td> - </tr> - <tr> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.instagram.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-instagram.png" width="40" /><br />Instagram</td> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('https://login.yahoo.com')"><img src="~/Content/Images/Yahoo-Mail-3.0-for-iOS-app-icon-small.png" width="40" /><br />E-Mail</td> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.cnn.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-cnn.png" width="40" /><br />CNN</td> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.weather.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-weather.png" width="40" /><br />Weather</td> - - </tr> - <tr> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://maps.google.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-maps.png" width="40" /><br />Maps</td> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.bloomberg.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-bloomberg.png" width="40" /><br />Bloomberg</td> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.amazon.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-amazon.png" width="40" /><br />Amazon</td> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.ebay.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-ebay.png" width="40" /><br />ebay</td> - </tr> - <tr> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.wikipedia.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-wikipedia.png" width="40" /><br />wikipedia</td> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.nytimes.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-nyt.png" width="40" /><br />NY Times</td> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.espn.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-espn.png" width="40" /><br />ESPN</td> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.imdb.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-imdb.png" width="40" /><br />iMDb</td> - </tr> - </table> - </div>--> - } - else - { - - <div style=" width:95%;max-width:800px;margin:0 auto; text-align:center;border:1px solid #acacac;margin-top:10px;"> - <div class="topper"> - <div id="table-wrapper"> - <div style="background-image:url('');background-color:#FFFFFF;background-size:cover;height:150px; width:100%; display:table-cell; - vertical-align:middle;"> - <form action="http://search.lightningbrowser.com/Lightning/Discounts" method="get"> - - @Html.Hidden("uuid", Request.QueryString["uuid"]) - @Html.Hidden("src", Request.QueryString["src"]) - <div class="home-page-search"> - <img src="~/Content/Images/BargainExplorer/icon-small.png" width="200" /> - <div style="color:#ffffff;font-size:18pt;font-family:'Roboto';font-weight:300;margin-bottom:10px;"><img src="~/Content/Images/BargainExplorer/bargain-icon.png" style="width:98%;max-width:500px;" /></div> - <div class="topper" style="margin-left:10px; margin-right:10px;margin-top:20px;"> - - <div class="custom-search-input"> - <div class="input-group col-xs-12"> - - <input type="text" name="q" class="form-control" value="@Model.Query" placeholder="Search For Discounts" style="height:37px;border-radius:0px;" /> - <button type="submit" class="search_button" data-reactid=".7rbt1slc0.1.1.0.0.a.1"><span class="loupe" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1"><span class="glass" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1.0"></span><span class="handle" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1.1"></span></span></button> - </div> - </div> - - - </div> - </div> - - - </form> - </div> - </div> - - </div> - </div> - <div class="search-results"> - @Html.Raw(Model.Html) - </div> - } - <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script> - <script> - $(function () { - $('.contain-box').click(function () { - window.document.location = $(this).data('href'); - }); - $('.arrow').click(function () { - window.document.location = $(this).data('href'); - }); - }) - </script> -</body> - -</html> - diff --git a/Mobile.Search.Web/Views/Lightning/Horoscope.cshtml b/Mobile.Search.Web/Views/Lightning/Horoscope.cshtml deleted file mode 100644 index a89baf5..0000000 --- a/Mobile.Search.Web/Views/Lightning/Horoscope.cshtml +++ /dev/null @@ -1,465 +0,0 @@ - -@model Mobile.Search.Web.Controllers.SearchPageViewModel -@{ - ViewBag.Title = "Astro Browser"; - Layout = null; - ViewBag.design = Request["design"]; -} -<html> -<head> - <title>Lightning | Search</title> - <link href="~/Content/bootstrap.min.css" rel="stylesheet" /> - <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> - <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" /> - <link href="https://fonts.googleapis.com/css?family=Roboto:300,400" rel="stylesheet"> - <style type="text/css"> - .ybox input[type=text] { - - font-size: 16px; - color: #333; - display: inline-block; - font-family: 'helvetica neue', helvetica, arial, sans-serif; - } - - body { - background-color: #f2f2f2; - - padding: 0; - margin: 0; - font-family:Roboto; - - } - - .custom-search-input { - } - - .contain { - border-top: solid 1px #ccc; - background-color: white; - max-width: 960px; - margin: auto; - font-family: arial; - height: 300px; - overflow: hidden; - } - - .contain-box { - background-color: white; - - margin: 0 auto; - margin-top: 8px; - margin-bottom: 8px; - padding-top: 10px; - padding-bottom: 10px; - width: 100%; - max-width: 960px; - border: 1px solid #e1e1e1; - width: 100%; - border-bottom: 1px solid #d2d2d2; - } - - .contain-box.search-bar { - } - - .contain-box .title { - margin-left: 10px; - margin-right: 10px; - margin-bottom: 8px; - color: #0000db; - font-size: 18px; - text-decoration: none; - font-family: helvetica, arial, sans-serif; - cursor: pointer; - border-bottom: 1px solid #ebebeb; - } - - .contain-box .site { - color: #1B6F75; - margin-left: 10px; - margin-right: 10px; - font-family: helvetica, arial, sans-serif; - font-size: 13px; - } - - .contain-box .description { - color: #585962; - margin-left: 10px; - margin-right: 10px; - line-height: 17px; - font-family: helvetica, arial, sans-serif; - font-size: 13px; - } - - .search-results { - margin-top: 5px; - margin-left: 10px; - margin-right: 10px; - text-align: left; - background-color: #f2f2f2; - overflow: hidden; - } - - .home-page-search { - - margin: 0 auto; - text-align: center; - - } - - - .search_button { - padding: 5px; - background: #3b78e7; - width: 40px; - height: 37px; - border: none; - position: absolute; - top: 0; - right: 0; - opacity: 1; - z-index: 5; - -webkit-user-select: none; - -moz-user-select: none; - user-select: none; - } - - .search_button .loupe { - display: inline-block; - position: relative; - width: 20px; - height: 20px; - } - - .search_button .glass { - position: absolute; - width: 14px; - height: 14px; - border: 2px solid #fff; - border-radius: 100%; - top: 3px; - left: 0; - } - - .search_button .handle { - position: absolute; - display: inline-block; - border: 0; - background-color: #fff; - width: 9px; - height: 3px; - right: 1px; - bottom: 1px; - -webkit-transform: rotate(45deg); - transform: rotate(45deg); - } - - #search_input { - height: 35px; - width: 100%; - max-width: 960px; - outline: none; - border: none; - font-size: 16px; - background-color: transparent; - } - - span { - display: block; - overflow: hidden; - padding-left: 5px; - vertical-align: middle; - } - - .search_bar { - width: 100%; - height: 35px; - max-width: 940px; - margin: 0 auto; - background-color: #fff; - box-shadow: 0px 2px 3px rgba( 0, 0, 0, 0.25 ); - font-family: Arial; - color: #444; - - } - - #search_submit { - outline: none; - height: 37px; - float: right; - color: #404040; - font-size: 16px; - font-weight: bold; - border: none; - background-color: transparent; - } - - .outer { - } - - .middle { - display: table-cell; - vertical-align: middle; - } - - .inner { - margin-left: auto; - margin-right: auto; - margin-bottom: 10%; - width: 100%; - } - - img.smaller { - width: 50%; - max-width: 300px; - } - - .box { - vertical-align: middle; - position: relative; - display: block; - margin: 10px; - padding-left: 10px; - padding-right: 10px; - padding-top: 5px; - padding-bottom: 5px; - background-color: #fff; - box-shadow: 0px 3px rgba( 0, 0, 0, 0.1 ); - font-family: Arial; - color: #444; - font-size: 12px; - - } - - .topper { - } - - .widget{ - margin-top:10px; - } - - #table-wrapper { - width: 100%; - height: 200px; - display: table; - vertical-align: middle; - text-align: center; - max-width:800px; - margin:0 auto; -} - - #carousel { - width: 100%; - height: 180px; - background-color: #ffffff; - - overflow: auto; - white-space:nowrap; -} - -#carousel .slide { - display: inline-block; - width:169px; - text-overflow: ellipsis; - font:10pt roboto; -} - </style> - -</head> -<body> - @if (string.IsNullOrEmpty(Model.Html)) - { - <div style="width:100%;margin:0 auto; text-align:center;"> - <div id="table-wrapper"> - <div style="background-image:url('http://search.lightningbrowser.com/Content/Images/searchbacker.jpg');background-size:cover;height:150px; width:100%; display:table-cell; - vertical-align:middle;"> - <form action="http://search.lightningbrowser.com/Lightning/Horoscope" method="get"> - - @Html.Hidden("uuid", Request.QueryString["uuid"]) - @Html.Hidden("src", Request.QueryString["src"]) - <div class="home-page-search"> - - <div style="color:#ffffff;font-size:18pt;font-family:'Roboto';font-weight:300">Astro Browser</div> - <div class="topper" style="margin-left:10px; margin-right:10px;;margin-top:10px;"> - - <div class="custom-search-input"> - <div class="input-group col-xs-12"> - - <input type="text" name="q" class="form-control" value="@Model.Query" placeholder="Search" style="height:37px;border-radius:0px;" /> - <button type="submit" class="search_button" data-reactid=".7rbt1slc0.1.1.0.0.a.1"><span class="loupe" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1"><span class="glass" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1.0"></span><span class="handle" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1.1"></span></span></button> - </div> - </div> - - - </div> - </div> - - - </form> - </div> - </div> - - <div style="background-color:#ffffff;margin-top:10px;padding:10px; width:100%;max-width:800px;text-align:center;margin:0 auto;"> - <div style="font-size:20pt;">Your Daily Horoscope</div> - - - <div id="option1" style="max-width:800px;width:100%;text-align:center;margin:0 auto;"> - <table cellpadding="0" cellspacing="0" border="0" align="center" style="border:1px solid #ededed;width:100%;margin:0 auto;text-align:center;"> - <tr> - <td style="padding:5px;"><div id="img1" style="padding:5px;border:none;" ><a href="http://www.whatsmysignsay.com/daily-horoscope-12/#virgo1"><img src="http://astrosignmatch.com/Content/Images/Horoscope/signmatch/1.png" width="60" /></a></div><div style="width:60px;font-family:'roboto';text-align:center;color:#337ab7;margin:0 auto;">Virgo</div></td> - <td style="padding:5px;"><div id="img2" style="padding:5px;border:none;" ><a href="http://www.whatsmysignsay.com/daily-horoscope-12/#taurus1"><img src="http://astrosignmatch.com/Content/Images/Horoscope/signmatch/2.png" width="60" /></a></div><div style="width:60px;font-family:'roboto';text-align:center;color:#337ab7;margin:0 auto;">Taurus</div></td> - <td style="padding:5px;"><div id="img3" style="padding:5px;border:none;" ><a href="http://www.whatsmysignsay.com/daily-horoscope-12/#scorpio1"><img src="http://astrosignmatch.com/Content/Images/Horoscope/signmatch/3.png" width="60" /></a></div><div style="width:60px;font-family:'roboto';text-align:center;color:#337ab7;margin:0 auto;">Scorpio</div></td> - <td style="padding:5px;"><div id="img4" style="padding:5px;border:none;" ><a href="http://www.whatsmysignsay.com/daily-horoscope-12/#sagittarius1"><img src="http://astrosignmatch.com/Content/Images/Horoscope/signmatch/4.png" width="60" /></a></div><div style="width:60px;font-family:'roboto';text-align:center;color:#337ab7;margin:0 auto;font-size:10pt;">Sagittarius</div></td> - </tr> - <tr> - <td style="padding:5px;"><div id="img5" style="padding:5px;border:none;"><a href="http://www.whatsmysignsay.com/daily-horoscope-12/#pisces1"><img src="http://astrosignmatch.com/Content/Images/Horoscope/signmatch/5.png" width="60" /></a></div><div style="width:60px;font-family:'roboto';text-align:center;color:#337ab7;margin:0 auto;">Pisces</div></td> - <td style="padding:5px;"><div id="img6" style="padding:5px;border:none;"><a href="http://www.whatsmysignsay.com/daily-horoscope-12/#libra1"><img src="http://astrosignmatch.com/Content/Images/Horoscope/signmatch/6.png" width="60" /></a></div><div style="width:60px;font-family:'roboto';text-align:center;color:#337ab7;margin:0 auto;">Libra</div></td> - <td style="padding:5px;"><div id="img7" style="padding:5px;border:none;"><a href="http://www.whatsmysignsay.com/daily-horoscope-12/#leo1"><img src="http://astrosignmatch.com/Content/Images/Horoscope/signmatch/7.png" width="60" /></a></div><div style="width:60px;font-family:'roboto';text-align:center;color:#337ab7;margin:0 auto;">Leo</div></td> - <td style="padding:5px;"><div id="img8" style="padding:5px;border:none;"><a href="http://www.whatsmysignsay.com/daily-horoscope-12/#gemini1"><img src="http://astrosignmatch.com/Content/Images/Horoscope/signmatch/8.png" width="60" /></a></div><div style="width:60px;font-family:'roboto';text-align:center;color:#337ab7;margin:0 auto;">Gemini</div></td> - </tr> - <tr> - <td style="padding:5px;"><div id="img9" style="padding:5px;border:none;"><a href="http://www.whatsmysignsay.com/daily-horoscope-12/#capricorn1"><img src="http://astrosignmatch.com/Content/Images/Horoscope/signmatch/9.png" width="60" /></a></div><div style="width:60px;font-family:'roboto';text-align:center;color:#337ab7;margin:0 auto;">Capricorn</div></td> - <td style="padding:5px;"><div id="img10" style="padding:5px;border:none;"><a href="http://www.whatsmysignsay.com/daily-horoscope-12/#cancer1"><img src="http://astrosignmatch.com/Content/Images/Horoscope/signmatch/10.png" width="60" /></a></div><div style="width:60px;font-family:'roboto';text-align:center;color:#337ab7;margin:0 auto;">Cancer</div></td> - <td style="padding:5px;"><div id="img11" style="padding:5px;border:none;"><a href="http://www.whatsmysignsay.com/daily-horoscope-12/#aires1"><img src="http://astrosignmatch.com/Content/Images/Horoscope/signmatch/11.png" width="60" /></a></div><div style="width:60px;font-family:'roboto';text-align:center;color:#337ab7;margin:0 auto;">Aires</div></td> - <td style="padding:5px;"><div id="img12" style="padding:5px;border:none;"><a href="http://www.whatsmysignsay.com/daily-horoscope-12/#aquarius1"><img src="http://astrosignmatch.com/Content/Images/Horoscope/signmatch/12.png" width="60" /></a></div><div style="width:60px;font-family:'roboto';text-align:center;color:#337ab7;margin:0 auto;">Aquarius</div></td> - </tr> - </table> - </div> - </div> - - </div> - - - <a href="http://www.whatsmysignsay.com/5-reasons-your-sign-is-best/"> - <div style="background-color:#ffffff;margin-top:10px;padding:10px; width:95%;max-width:800px;text-align:center;margin:0 auto;margin-top:10px;border:1px solid #acacac"> - <div style="float:left"><img src="http://search.lightningbrowser.com/Content/Images/playstore-icon.png" width="25" /></div> - <div style="float:left;font:6pt;color:#808080;margin-top:5px;margin-left:5px;">Astrology</div> - <div style="clear:both"></div> - <div style="text-align:left;font-weight:bolder;margin-top:5px;font-size:14pt;">5 Reasons Your Sign Is The Best Sign</div> - <div style="float:left;width:60%;text-align:left;">In this three part article we will review the top five, most positive traits possessed by each of the 12 zodiac signs. Read Part 1 Now!</div> - <div style="float:right"> - <div style="width:125px;height:75px;background-image:url('http://dqqrlago0bb5s.cloudfront.net/wp-content/uploads/2016/09/22044925/bestsign_taurus-203x150.jpg');background-size:cover;"></div> - - </div> - <div style="clear:both"></div> - </div> - </a> - <a href="http://www.whatsmysignsay.com/numerology-basics/"> - <div style="background-color:#ffffff;margin-top:10px;padding:10px; width:95%;max-width:800px;text-align:center;margin:0 auto;margin-top:10px;border:1px solid #acacac"> - <div style="float:left"><img src="http://search.lightningbrowser.com/Content/Images/playstore-icon.png" width="25" /></div> - <div style="float:left;font:6pt;color:#808080;margin-top:5px;margin-left:5px;">Numerology</div> - <div style="clear:both"></div> - <div style="text-align:left;font-weight:bolder;margin-top:5px;font-size:14pt;">The Basics Of Numerology Part One</div> - <div style="float:left;width:60%;text-align:left;">Numerology is intriguingly interesting part of the occult. As mathematics, more and more, is defining the universe and the world around us – Learn more now!</div> - <div style="float:right"> - <div style="width:125px;height:75px;;background-image:url('http://dqqrlago0bb5s.cloudfront.net/wp-content/uploads/2016/09/23040512/numerology2.jpg');background-size:cover;"></div> - - </div> - <div style="clear:both"></div> - </div> - </a> - <a href="http://www.whatsmysignsay.com/compatible-zodiac-signs/"> - - <div style="background-color:#ffffff;margin-top:10px;padding:10px; width:95%;max-width:800px;text-align:center;margin:0 auto;margin-top:10px;border:1px solid #acacac"> - <div style="float:left"><img src="http://search.lightningbrowser.com/Content/Images/playstore-icon.png" width="25" /></div> - <div style="float:left;font:6pt;color:#808080;margin-top:5px;margin-left:5px;">Love</div> - <div style="clear:both"></div> - <div style="text-align:left;font-weight:bolder;margin-top:5px;font-size:14pt;">Which Zodiac Sign Are You Compatible With?</div> - <div style="float:left;width:60%;text-align:left;">One of the most common questions people who follow and consult astrology have is: “Which zodiac sign am I most compatible with?”</div> - <div style="float:right"> - <div style="width:125px;height:75px;background-image:url('http://dqqrlago0bb5s.cloudfront.net/wp-content/uploads/2016/10/04153136/compatible_zodiac_1.jpg');background-size:cover;"></div> - - </div> - <div style="clear:both"></div> - </div> - </a> - - - - - - - - <!-- <div style="background-color:#ffffff;margin-top:10px;padding:10px;"> - <table style="text-align:center;margin:0 auto;width:100%;max-width:475px;"> - <tr> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.yahoo.com')"><img src="~/content/Images/image-Yahoo-app-icon.png" width="40" /><br />Yahoo</td> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.youtube.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-youtube.png" width="40" /><br />Youtube</td> - <td style="text-align:center;padding-top:10px;margin:0 auto;" onclick="goURL('http://www.facebook.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-facebook.png" width="40" /><br />Facebook</td> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.twitter.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-twitter.png" width="40" /><br />Twitter</td> - </tr> - <tr> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.instagram.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-instagram.png" width="40" /><br />Instagram</td> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('https://login.yahoo.com')"><img src="~/Content/Images/Yahoo-Mail-3.0-for-iOS-app-icon-small.png" width="40" /><br />E-Mail</td> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.cnn.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-cnn.png" width="40" /><br />CNN</td> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.weather.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-weather.png" width="40" /><br />Weather</td> - - </tr> - <tr> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://maps.google.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-maps.png" width="40" /><br />Maps</td> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.bloomberg.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-bloomberg.png" width="40" /><br />Bloomberg</td> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.amazon.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-amazon.png" width="40" /><br />Amazon</td> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.ebay.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-ebay.png" width="40" /><br />ebay</td> - </tr> - <tr> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.wikipedia.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-wikipedia.png" width="40" /><br />wikipedia</td> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.nytimes.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-nyt.png" width="40" /><br />NY Times</td> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.espn.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-espn.png" width="40" /><br />ESPN</td> - <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.imdb.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-imdb.png" width="40" /><br />iMDb</td> - </tr> - </table> - </div>--> - } - else - { - - <div class="topper"> - <div id="table-wrapper"> - <div style="background-image:url('http://search.lightningbrowser.com/Content/Images/searchbacker.jpg');background-size:cover;height:150px; width:100%; display:table-cell; - vertical-align:middle;"> - <form action="http://search.lightningbrowser.com/Lightning/Horoscope" method="get"> - <div class="home-page-search"> - - <div style="color:#ffffff;font-size:18pt;">Astro Browser</div> - <div class="topper" style="margin-left:10px; margin-right:10px;;margin-top:10px;"> - - <div class="custom-search-input"> - <div class="input-group col-xs-12"> - @Html.Hidden("uuid", Request.QueryString["uuid"]) - @Html.Hidden("src", Request.QueryString["src"]) - <input type="text" name="q" class="form-control" value="@Model.Query" placeholder="Search" style="height:37px;border-radius:0px;" /> - <button type="submit" class="search_button" data-reactid=".7rbt1slc0.1.1.0.0.a.1"><span class="loupe" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1"><span class="glass" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1.0"></span><span class="handle" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1.1"></span></span></button> - </div> - </div> - - - </div> - </div> - - - </form> - </div> - </div> - - </div> - <div class="search-results"> - @Html.Raw(Model.Html) - </div> - } - <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script> - <script> - $(function () { - $('.contain-box').click(function () { - window.document.location = $(this).data('href'); - }); - $('.arrow').click(function () { - window.document.location = $(this).data('href'); - }); - }) - </script> -</body> - -</html> - - - - diff --git a/Mobile.Search.Web/Views/Lightning/Index.cshtml b/Mobile.Search.Web/Views/Lightning/Index.cshtml deleted file mode 100644 index 6383c86..0000000 --- a/Mobile.Search.Web/Views/Lightning/Index.cshtml +++ /dev/null @@ -1,381 +0,0 @@ -@model PagedList.IPagedList< HtmlNode> -@using PagedList.Mvc; - - - -@using HtmlAgilityPack -@{ - ViewBag.Title = "Lightning Browser Search"; - Layout = null; - - - } -<html> -<head> - <title>Lightning | Search</title> - <link href="~/Content/bootstrap.min.css" rel="stylesheet" /> - <meta name="viewport" content="width=device-width, initial-scale=1"> - <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" /> - <style type="text/css"> - .ybox input[type=text] { - border-radius: 2px; - font-size: 16px; - color: #333; - display: inline-block; - font-family: 'helvetica neue', helvetica, arial, sans-serif; - } - - body { - background-color: #f2f2f2; - padding: 0; - margin: 0; - } - - .custom-search-input { - } - - .contain { - border-top: solid 1px #ccc; - background-color: white; - max-width: 960px; - margin: auto; - font-family: arial; - height: 300px; - overflow: hidden; - } - - .contain-box { - background-color: white; - border-radius: 5px; - margin: 0 auto; - margin-top: 8px; - margin-bottom: 8px; - padding-top: 10px; - padding-bottom: 10px; - width: 100%; - max-width: 960px; - border: 1px solid #e1e1e1; - width: 100%; - border-bottom: 1px solid #d2d2d2; - } - - .contain-box.search-bar { - } - - .contain-box .title { - margin-left: 10px; - margin-right: 10px; - margin-bottom: 8px; - color: #0000db; - font-size: 18px; - text-decoration: none; - font-family: helvetica, arial, sans-serif; - cursor: pointer; - border-bottom: 1px solid #ebebeb; - } - - .contain-box .site { - color: #1B6F75; - margin-left: 10px; - margin-right: 10px; - font-family: helvetica, arial, sans-serif; - font-size: 13px; - } - - .contain-box .description { - color: #585962; - margin-left: 10px; - margin-right: 10px; - line-height: 17px; - font-family: helvetica, arial, sans-serif; - font-size: 13px; - } - - .search-results { - - margin-left: 10px; - margin-right: 10px; - text-align: left; - background-color: #f2f2f2; - overflow: hidden; - } - - .home-page-search { - margin-top: 100px; - margin: 0 auto; - text-align: center; - } - - - .search_button { - padding: 5px; - background: #3b78e7; - width: 40px; - height: 37px; - border: none; - position: absolute; - top: 0; - right: 0; - opacity: 1; - z-index: 5; - -webkit-user-select: none; - -moz-user-select: none; - user-select: none; - } - - .search_button .loupe { - display: inline-block; - position: relative; - width: 20px; - height: 20px; - } - - .search_button .glass { - position: absolute; - width: 14px; - height: 14px; - border: 2px solid #fff; - border-radius: 100%; - top: 3px; - left: 0; - } - - .search_button .handle { - position: absolute; - display: inline-block; - border: 0; - background-color: #fff; - width: 9px; - height: 3px; - right: 1px; - bottom: 1px; - -webkit-transform: rotate(45deg); - transform: rotate(45deg); - } - - #search_input { - height: 35px; - width: 100%; - max-width: 960px; - outline: none; - border: none; - font-size: 16px; - background-color: transparent; - } - - span { - display: block; - overflow: hidden; - padding-left: 5px; - vertical-align: middle; - } - - .search_bar { - width: 100%; - height: 35px; - max-width: 940px; - margin: 0 auto; - background-color: #fff; - box-shadow: 0px 2px 3px rgba( 0, 0, 0, 0.25 ); - font-family: Arial; - color: #444; - -moz-border-radius: 2px; - -webkit-border-radius: 2px; - border-radius: 2px; - } - - #search_submit { - outline: none; - height: 37px; - float: right; - color: #404040; - font-size: 16px; - font-weight: bold; - border: none; - background-color: transparent; - } - - .outer { - } - - .middle { - display: table-cell; - vertical-align: middle; - } - - .inner { - margin-left: auto; - margin-right: auto; - margin-bottom: 10%; - width: 100%; - } - - img.smaller { - width: 50%; - max-width: 300px; - } - - .box { - vertical-align: middle; - position: relative; - display: block; - margin: 10px; - padding-left: 10px; - padding-right: 10px; - padding-top: 5px; - padding-bottom: 5px; - background-color: #fff; - box-shadow: 0px 3px rgba( 0, 0, 0, 0.1 ); - font-family: Arial; - color: #444; - font-size: 12px; - -moz-border-radius: 2px; - -webkit-border-radius: 2px; - border-radius: 2px; - } - - .topper { - } - </style> - -</head> -<body> - @if (Model == null) - { - - <div style="width:100%;text-align:center;margin:0 auto;"> - <div style="text-align:center;margin:0 auto;"> - <div style="text-align:center;margin:0 auto;"> - <div class="inner" style="text-align:center;margin:0 auto;width:90%; position: absolute; - left: 50%; - top: 50%; - -webkit-transform: translate(-50%, -50%); - transform: translate(-50%, -50%);"> - <!--<img class="smaller" src="http://www.appfueler.com/Content/LightningBrowser/Google_2015_logo.png" width="100" style="text-align:center;margin:0 auto;" /><br />--> - <br /> - <form action="http://search.lightningbrowser.com/Lightning" method="get" class="search_bar"> - @Html.Hidden("uuid", Request.QueryString["uuid"]) - @Html.Hidden("src", Request.QueryString["src"]) - <input type="submit" id="search_submit" value="Search" /><span> - <input class="search" type="text" name="q" id="search_input" /> - </span> - </form><br /> - <br /> - </div> - </div> - </div> - </div> - <span style="color:#f2f2f2">@Request["uuid"]</span> - - } - else - { - var uuid = Request.QueryString["uuid"]; - var q = Request.QueryString["q"]; - - <span style="color:#f2f2f2">@Request["uuid"]</span> - <div style="width:100%;text-align:center;margin:0 auto;"> - <div style="text-align:center;margin:0 auto;"> - <div style="text-align:center;margin:0 auto;"> - <div class="inner" style="text-align:center;margin:0 auto;width:95%;max-width:960px;"> - <!--<img class="smaller" src="http://www.appfueler.com/Content/LightningBrowser/Google_2015_logo.png" width="100" style="text-align:center;margin:0 auto;" /><br />--> - <br /> - <form action="http://search.lightningbrowser.com/Lightning" method="get" class="search_bar"> - @Html.Hidden("uuid", Request.QueryString["uuid"]) - @Html.Hidden("src", Request.QueryString["src"]) - <input type="submit" id="search_submit" value="Search" /><span> - <input class="search" type="text" name="q" value="@ViewBag.searchTerm"id="search_input" /> - </span> - </form><br /> - <br /> - </div> - </div> - </div> - </div> - <div class="search-results"> - - @foreach (var node in Model) - { - @Html.Raw(node.OuterHtml); - - - } - <br /> - <div style="text-align:center;margin:0 auto"> - Page @(Model.PageCount < Model.PageNumber ? 0 : Model.PageNumber) of @Model.PageCount - - @Html.PagedListPager(Model, page => Url.Action("Index", - new { page, uuid = uuid, q = q, sortOrder = ViewBag.CurrentSort, currentFilter = ViewBag.CurrentFilter })) - </div> - </div> - } - <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script> - <script> - $(function () { - $('.contain-box').click(function () { - window.document.location = $(this).data('href'); - }); - $('.arrow').click(function () { - window.document.location = $(this).data('href'); - }); - }) - </script> - - <!-- firebase events--> - <script> - function logEvent(name, params) { - if (!name) { - return; - } - - if (window.AnalyticsWebInterface) { - // Call Android interface - window.AnalyticsWebInterface.logEvent(name, JSON.stringify(params)); - } else if (window.webkit - && window.webkit.messageHandlers - && window.webkit.messageHandlers.firebase) { - // Call iOS interface - var message = { - command: 'logEvent', - name: name, - parameters: params - }; - window.webkit.messageHandlers.firebase.postMessage(message); - } else { - // No Android or iOS interface found - console.log("No native APIs found."); - } - } - - function setUserProperty(name, value) { - if (!name || !value) { - return; - } - - if (window.AnalyticsWebInterface) { - // Call Android interface - window.AnalyticsWebInterface.setUserProperty(name, value); - } else if (window.webkit - && window.webkit.messageHandlers - && window.webkit.messageHandlers.firebase) { - // Call iOS interface - var message = { - command: 'setUserProperty', - name: name, - value: value - }; - window.webkit.messageHandlers.firebase.postMessage(message); - } else { - // No Android or iOS interface found - console.log("No native APIs found."); - } - } - </script> - <script> - - - logEvent("TestEvent") - </script> -</body> - -</html> diff --git a/Mobile.Search.Web/Views/Lightning/Index2.cshtml b/Mobile.Search.Web/Views/Lightning/Index2.cshtml deleted file mode 100644 index bec29cf..0000000 --- a/Mobile.Search.Web/Views/Lightning/Index2.cshtml +++ /dev/null @@ -1,386 +0,0 @@ -@model PagedList.IPagedList<HtmlNode> -@using PagedList.Mvc; - - - -@using HtmlAgilityPack -@{ - ViewBag.Title = "Lightning Browser Search"; - Layout = null; - - -} -<html> -<head> - <title>Lightning | Search</title> - <link href="~/Content/bootstrap.min.css" rel="stylesheet" /> - <meta name="viewport" content="width=device-width, initial-scale=1"> - <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" /> - <style type="text/css"> - .ybox input[type=text] { - border-radius: 2px; - font-size: 16px; - color: #333; - display: inline-block; - font-family: 'helvetica neue', helvetica, arial, sans-serif; - } - - body { - background-color: #f2f2f2; - padding: 0; - margin: 0; - } - - .custom-search-input { - } - - .contain { - border-top: solid 1px #ccc; - background-color: white; - max-width: 960px; - margin: auto; - font-family: arial; - height: 300px; - overflow: hidden; - } - - .contain-box { - background-color: white; - border-radius: 5px; - margin: 0 auto; - margin-top: 8px; - margin-bottom: 8px; - padding-top: 10px; - padding-bottom: 10px; - width: 100%; - max-width: 960px; - border: 1px solid #e1e1e1; - width: 100%; - border-bottom: 1px solid #d2d2d2; - } - - .contain-box.search-bar { - } - - .contain-box .title { - margin-left: 10px; - margin-right: 10px; - margin-bottom: 8px; - color: #0000db; - font-size: 18px; - text-decoration: none; - font-family: helvetica, arial, sans-serif; - cursor: pointer; - border-bottom: 1px solid #ebebeb; - } - - .contain-box .site { - color: #1B6F75; - margin-left: 10px; - margin-right: 10px; - font-family: helvetica, arial, sans-serif; - font-size: 13px; - } - - .contain-box .description { - color: #585962; - margin-left: 10px; - margin-right: 10px; - line-height: 17px; - font-family: helvetica, arial, sans-serif; - font-size: 13px; - } - - .search-results { - margin-left: 10px; - margin-right: 10px; - text-align: left; - background-color: #f2f2f2; - overflow: hidden; - } - - .home-page-search { - margin-top: 100px; - margin: 0 auto; - text-align: center; - } - - - .search_button { - padding: 5px; - background: #3b78e7; - width: 40px; - height: 37px; - border: none; - position: absolute; - top: 0; - right: 0; - opacity: 1; - z-index: 5; - -webkit-user-select: none; - -moz-user-select: none; - user-select: none; - } - - .search_button .loupe { - display: inline-block; - position: relative; - width: 20px; - height: 20px; - } - - .search_button .glass { - position: absolute; - width: 14px; - height: 14px; - border: 2px solid #fff; - border-radius: 100%; - top: 3px; - left: 0; - } - - .search_button .handle { - position: absolute; - display: inline-block; - border: 0; - background-color: #fff; - width: 9px; - height: 3px; - right: 1px; - bottom: 1px; - -webkit-transform: rotate(45deg); - transform: rotate(45deg); - } - - #search_input { - height: 35px; - width: 100%; - max-width: 960px; - outline: none; - border: none; - font-size: 16px; - background-color: transparent; - } - - span { - display: block; - overflow: hidden; - padding-left: 5px; - vertical-align: middle; - } - - .search_bar { - width: 100%; - height: 35px; - max-width: 940px; - margin: 0 auto; - background-color: #fff; - box-shadow: 0px 2px 3px rgba( 0, 0, 0, 0.25 ); - font-family: Arial; - color: #444; - -moz-border-radius: 2px; - -webkit-border-radius: 2px; - border-radius: 2px; - } - - #search_submit { - outline: none; - height: 37px; - float: right; - color: #404040; - font-size: 16px; - font-weight: bold; - border: none; - background-color: transparent; - } - - .outer { - } - - .middle { - display: table-cell; - vertical-align: middle; - } - - .inner { - margin-left: auto; - margin-right: auto; - margin-bottom: 10%; - width: 100%; - } - - img.smaller { - width: 50%; - max-width: 300px; - } - - .box { - vertical-align: middle; - position: relative; - display: block; - margin: 10px; - padding-left: 10px; - padding-right: 10px; - padding-top: 5px; - padding-bottom: 5px; - background-color: #fff; - box-shadow: 0px 3px rgba( 0, 0, 0, 0.1 ); - font-family: Arial; - color: #444; - font-size: 12px; - -moz-border-radius: 2px; - -webkit-border-radius: 2px; - border-radius: 2px; - } - - .topper { - } - </style> - -</head> -<body> - @if (Model == null) - { - - <div style="width:100%;text-align:center;margin:0 auto;"> - <div style="text-align:center;margin:0 auto;"> - <div style="text-align:center;margin:0 auto;"> - <div class="inner" style="text-align:center;margin:0 auto;width:90%; position: absolute; - left: 50%; - top: 50%; - -webkit-transform: translate(-50%, -50%); - transform: translate(-50%, -50%);"> - <!--<img class="smaller" src="http://www.appfueler.com/Content/LightningBrowser/Google_2015_logo.png" width="100" style="text-align:center;margin:0 auto;" /><br />--> - <br /> - <form action="http://search.lightningbrowser.com/Lightning" method="get" class="search_bar"> - @Html.Hidden("uuid", Request.QueryString["uuid"]) - @Html.Hidden("src", Request.QueryString["src"]) - <input type="submit" id="search_submit" value="Search" /><span> - <input class="search" type="text" name="q" id="search_input" /> - </span> - </form><br /> - <br /> - </div> - </div> - </div> - </div> - <span style="color:#f2f2f2">@Request["uuid"]</span> - - } - else - { - var uuid = Request.QueryString["uuid"]; - var q = Request.QueryString["q"]; - - <span style="color:#f2f2f2">@Request["uuid"]</span> - <div style="width:100%;text-align:center;margin:0 auto;"> - <div style="text-align:center;margin:0 auto;"> - <div style="text-align:center;margin:0 auto;"> - <div class="inner" style="text-align:center;margin:0 auto;width:95%;max-width:960px;"> - <!--<img class="smaller" src="http://www.appfueler.com/Content/LightningBrowser/Google_2015_logo.png" width="100" style="text-align:center;margin:0 auto;" /><br />--> - <br /> - <form action="http://search.lightningbrowser.com/Lightning/Index2" method="get" class="search_bar"> - @Html.Hidden("uuid", Request.QueryString["uuid"]) - @Html.Hidden("src", Request.QueryString["src"]) - <input type="submit" id="search_submit" value="Search" /><span> - <input class="search" type="text" name="q" value="@ViewBag.searchTerm" id="search_input" /> - </span> - </form><br /> - <br /> - </div> - </div> - </div> - </div> - <div class="search-results"> - - @foreach (var node in Model) - { - @Html.Raw(node.OuterHtml); - - - } - <br /> - <div style="text-align:center;margin:0 auto"> - Page @(Model.PageCount < Model.PageNumber ? 0 : Model.PageNumber) of @Model.PageCount - - @Html.PagedListPager(Model, page => Url.Action("Index", - new { page, uuid = uuid, q = q, sortOrder = ViewBag.CurrentSort, currentFilter = ViewBag.CurrentFilter })) - </div> - </div> - } - <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script> - <script> - $(function () { - $('.contain-box').click(function () { - window.document.location = $(this).data('href'); - }); - $('.arrow').click(function () { - window.document.location = $(this).data('href'); - }); - }) - </script> - - <!-- firebase events--> - <script> - function logEvent(name, params) { - if (!name) { - return; - } - - if (window.AnalyticsWebInterface) { - // Call Android interface - alert("Android Interface Found"); - window.AnalyticsWebInterface.logEvent(name, JSON.stringify(params)); - } else if (window.webkit - && window.webkit.messageHandlers - && window.webkit.messageHandlers.firebase) { - alert("ios Interface Found"); - var message = { - command: 'logEvent', - name: name, - parameters: params - }; - alert("Posting:"+message.name) - window.webkit.messageHandlers.firebase.postMessage(message); - } else { - // No Android or iOS interface found - alert("No native APIs found."); - } - } - - function setUserProperty(name, value) { - if (!name || !value) { - return; - } - - if (window.AnalyticsWebInterface) { - // Call Android interface - window.AnalyticsWebInterface.setUserProperty(name, value); - } else if (window.webkit - && window.webkit.messageHandlers - && window.webkit.messageHandlers.firebase) { - // Call iOS interface - var message = { - command: 'setUserProperty', - name: name, - value: value - }; - window.webkit.messageHandlers.firebase.postMessage(message); - } else { - // No Android or iOS interface found - console.log("No native APIs found."); - } - } - </script> - <script> - - - logEvent("TestEvent") - </script> -</body> - -</html> - - - - diff --git a/Mobile.Search.Web/Views/Manage/AddPhoneNumber.cshtml b/Mobile.Search.Web/Views/Manage/AddPhoneNumber.cshtml deleted file mode 100644 index 183caaa..0000000 --- a/Mobile.Search.Web/Views/Manage/AddPhoneNumber.cshtml +++ /dev/null @@ -1,29 +0,0 @@ -@model Mobile.Search.Web.Models.AddPhoneNumberViewModel -@{ - ViewBag.Title = "Phone Number"; -} - -<h2>@ViewBag.Title.</h2> - -@using (Html.BeginForm("AddPhoneNumber", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) -{ - @Html.AntiForgeryToken() - <h4>Add a phone number</h4> - <hr /> - @Html.ValidationSummary("", new { @class = "text-danger" }) - <div class="form-group"> - @Html.LabelFor(m => m.Number, new { @class = "col-md-2 control-label" }) - <div class="col-md-10"> - @Html.TextBoxFor(m => m.Number, new { @class = "form-control" }) - </div> - </div> - <div class="form-group"> - <div class="col-md-offset-2 col-md-10"> - <input type="submit" class="btn btn-default" value="Submit" /> - </div> - </div> -} - -@section Scripts { - @Scripts.Render("~/bundles/jqueryval") -} diff --git a/Mobile.Search.Web/Views/Manage/ChangePassword.cshtml b/Mobile.Search.Web/Views/Manage/ChangePassword.cshtml deleted file mode 100644 index 7e72d8e..0000000 --- a/Mobile.Search.Web/Views/Manage/ChangePassword.cshtml +++ /dev/null @@ -1,40 +0,0 @@ -@model Mobile.Search.Web.Models.ChangePasswordViewModel -@{ - ViewBag.Title = "Change Password"; -} - -<h2>@ViewBag.Title.</h2> - -@using (Html.BeginForm("ChangePassword", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) -{ - @Html.AntiForgeryToken() - <h4>Change Password Form</h4> - <hr /> - @Html.ValidationSummary("", new { @class = "text-danger" }) - <div class="form-group"> - @Html.LabelFor(m => m.OldPassword, new { @class = "col-md-2 control-label" }) - <div class="col-md-10"> - @Html.PasswordFor(m => m.OldPassword, new { @class = "form-control" }) - </div> - </div> - <div class="form-group"> - @Html.LabelFor(m => m.NewPassword, new { @class = "col-md-2 control-label" }) - <div class="col-md-10"> - @Html.PasswordFor(m => m.NewPassword, new { @class = "form-control" }) - </div> - </div> - <div class="form-group"> - @Html.LabelFor(m => m.ConfirmPassword, new { @class = "col-md-2 control-label" }) - <div class="col-md-10"> - @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-control" }) - </div> - </div> - <div class="form-group"> - <div class="col-md-offset-2 col-md-10"> - <input type="submit" value="Change password" class="btn btn-default" /> - </div> - </div> -} -@section Scripts { - @Scripts.Render("~/bundles/jqueryval") -} \ No newline at end of file diff --git a/Mobile.Search.Web/Views/Manage/Index.cshtml b/Mobile.Search.Web/Views/Manage/Index.cshtml deleted file mode 100644 index 7846ab1..0000000 --- a/Mobile.Search.Web/Views/Manage/Index.cshtml +++ /dev/null @@ -1,84 +0,0 @@ -@model Mobile.Search.Web.Models.IndexViewModel -@{ - ViewBag.Title = "Manage"; -} - -<h2>@ViewBag.Title.</h2> - -<p class="text-success">@ViewBag.StatusMessage</p> -<div> - <h4>Change your account settings</h4> - <hr /> - <dl class="dl-horizontal"> - <dt>Password:</dt> - <dd> - [ - @if (Model.HasPassword) - { - @Html.ActionLink("Change your password", "ChangePassword") - } - else - { - @Html.ActionLink("Create", "SetPassword") - } - ] - </dd> - <dt>External Logins:</dt> - <dd> - @Model.Logins.Count [ - @Html.ActionLink("Manage", "ManageLogins") ] - </dd> - @* - Phone Numbers can used as a second factor of verification in a two-factor authentication system. - - See <a href="http://go.microsoft.com/fwlink/?LinkId=403804">this article</a> - for details on setting up this ASP.NET application to support two-factor authentication using SMS. - - Uncomment the following block after you have set up two-factor authentication - *@ - @* - <dt>Phone Number:</dt> - <dd> - @(Model.PhoneNumber ?? "None") [ - @if (Model.PhoneNumber != null) - { - @Html.ActionLink("Change", "AddPhoneNumber") - @: | - @Html.ActionLink("Remove", "RemovePhoneNumber") - } - else - { - @Html.ActionLink("Add", "AddPhoneNumber") - } - ] - </dd> - *@ - <dt>Two-Factor Authentication:</dt> - <dd> - <p> - There are no two-factor authentication providers configured. See <a href="http://go.microsoft.com/fwlink/?LinkId=403804">this article</a> - for details on setting up this ASP.NET application to support two-factor authentication. - </p> - @*@if (Model.TwoFactor) - { - using (Html.BeginForm("DisableTwoFactorAuthentication", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) - { - @Html.AntiForgeryToken() - <text>Enabled - <input type="submit" value="Disable" class="btn btn-link" /> - </text> - } - } - else - { - using (Html.BeginForm("EnableTwoFactorAuthentication", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) - { - @Html.AntiForgeryToken() - <text>Disabled - <input type="submit" value="Enable" class="btn btn-link" /> - </text> - } - }*@ - </dd> - </dl> -</div> diff --git a/Mobile.Search.Web/Views/Manage/ManageLogins.cshtml b/Mobile.Search.Web/Views/Manage/ManageLogins.cshtml deleted file mode 100644 index f1ccdfc..0000000 --- a/Mobile.Search.Web/Views/Manage/ManageLogins.cshtml +++ /dev/null @@ -1,70 +0,0 @@ -@model Mobile.Search.Web.Models.ManageLoginsViewModel -@using Microsoft.Owin.Security -@{ - ViewBag.Title = "Manage your external logins"; -} - -<h2>@ViewBag.Title.</h2> - -<p class="text-success">@ViewBag.StatusMessage</p> -@{ - var loginProviders = Context.GetOwinContext().Authentication.GetExternalAuthenticationTypes(); - if (loginProviders.Count() == 0) { - <div> - <p> - There are no external authentication services configured. See <a href="http://go.microsoft.com/fwlink/?LinkId=313242">this article</a> - for details on setting up this ASP.NET application to support logging in via external services. - </p> - </div> - } - else - { - if (Model.CurrentLogins.Count > 0) - { - <h4>Registered Logins</h4> - <table class="table"> - <tbody> - @foreach (var account in Model.CurrentLogins) - { - <tr> - <td>@account.LoginProvider</td> - <td> - @if (ViewBag.ShowRemoveButton) - { - using (Html.BeginForm("RemoveLogin", "Manage")) - { - @Html.AntiForgeryToken() - <div> - @Html.Hidden("loginProvider", account.LoginProvider) - @Html.Hidden("providerKey", account.ProviderKey) - <input type="submit" class="btn btn-default" value="Remove" title="Remove this @account.LoginProvider login from your account" /> - </div> - } - } - else - { - @: - } - </td> - </tr> - } - </tbody> - </table> - } - if (Model.OtherLogins.Count > 0) - { - using (Html.BeginForm("LinkLogin", "Manage")) - { - @Html.AntiForgeryToken() - <div id="socialLoginList"> - <p> - @foreach (AuthenticationDescription p in Model.OtherLogins) - { - <button type="submit" class="btn btn-default" id="@p.AuthenticationType" name="provider" value="@p.AuthenticationType" title="Log in using your @p.Caption account">@p.AuthenticationType</button> - } - </p> - </div> - } - } - } -} diff --git a/Mobile.Search.Web/Views/Manage/SetPassword.cshtml b/Mobile.Search.Web/Views/Manage/SetPassword.cshtml deleted file mode 100644 index 856665e..0000000 --- a/Mobile.Search.Web/Views/Manage/SetPassword.cshtml +++ /dev/null @@ -1,39 +0,0 @@ -@model Mobile.Search.Web.Models.SetPasswordViewModel -@{ - ViewBag.Title = "Create Password"; -} - -<h2>@ViewBag.Title.</h2> -<p class="text-info"> - You do not have a local username/password for this site. Add a local - account so you can log in without an external login. -</p> - -@using (Html.BeginForm("SetPassword", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) -{ - @Html.AntiForgeryToken() - - <h4>Create Local Login</h4> - <hr /> - @Html.ValidationSummary("", new { @class = "text-danger" }) - <div class="form-group"> - @Html.LabelFor(m => m.NewPassword, new { @class = "col-md-2 control-label" }) - <div class="col-md-10"> - @Html.PasswordFor(m => m.NewPassword, new { @class = "form-control" }) - </div> - </div> - <div class="form-group"> - @Html.LabelFor(m => m.ConfirmPassword, new { @class = "col-md-2 control-label" }) - <div class="col-md-10"> - @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-control" }) - </div> - </div> - <div class="form-group"> - <div class="col-md-offset-2 col-md-10"> - <input type="submit" value="Set password" class="btn btn-default" /> - </div> - </div> -} -@section Scripts { - @Scripts.Render("~/bundles/jqueryval") -} \ No newline at end of file diff --git a/Mobile.Search.Web/Views/Manage/VerifyPhoneNumber.cshtml b/Mobile.Search.Web/Views/Manage/VerifyPhoneNumber.cshtml deleted file mode 100644 index 37c60a7..0000000 --- a/Mobile.Search.Web/Views/Manage/VerifyPhoneNumber.cshtml +++ /dev/null @@ -1,31 +0,0 @@ -@model Mobile.Search.Web.Models.VerifyPhoneNumberViewModel -@{ - ViewBag.Title = "Verify Phone Number"; -} - -<h2>@ViewBag.Title.</h2> - -@using (Html.BeginForm("VerifyPhoneNumber", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) -{ - @Html.AntiForgeryToken() - @Html.Hidden("phoneNumber", @Model.PhoneNumber) - <h4>Enter verification code</h4> - <h5>@ViewBag.Status</h5> - <hr /> - @Html.ValidationSummary("", new { @class = "text-danger" }) - <div class="form-group"> - @Html.LabelFor(m => m.Code, new { @class = "col-md-2 control-label" }) - <div class="col-md-10"> - @Html.TextBoxFor(m => m.Code, new { @class = "form-control" }) - </div> - </div> - <div class="form-group"> - <div class="col-md-offset-2 col-md-10"> - <input type="submit" class="btn btn-default" value="Submit" /> - </div> - </div> -} - -@section Scripts { - @Scripts.Render("~/bundles/jqueryval") -} diff --git a/Mobile.Search.Web/Views/Quiz/AirHead.cshtml b/Mobile.Search.Web/Views/Quiz/AirHead.cshtml deleted file mode 100644 index df9aa92..0000000 --- a/Mobile.Search.Web/Views/Quiz/AirHead.cshtml +++ /dev/null @@ -1,312 +0,0 @@ -@{ - ViewBag.Title = "Index"; -} - -<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> -<script> - - function showAd(keyword) { - document.getElementById('adspace').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - function showFinalAd(keyword) { - document.getElementById('final').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - function showFinalAd2(keyword) { - document.getElementById('final2').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - - - -</script> -<script> - $(document).ready( - function() { - $("#q1").click(function() { - $("#q1").hide(); - $("#q2").show(); - }); - - - $("#q2y").click(function () { - $("#q2").hide(); - $("#q3").show(); - }); - - $("#q2n").click(function () { - $("#q2").hide(); - showAd('luxury+watch+brands'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#next1").click(function () { - $("#adspace").hide(); - $("#next1").hide(); - $("#q3").show(); - }); - - - $("#q3").click(function () { - $("#q3").hide(); - $("#q4").show(); - }); - - - $("#q4").click(function () { - $("#q4").hide(); - $("#q5").show(); - }); - - $("#q5").click(function () { - $("#q5").hide(); - showAd('printable+coupons+oil+change'); - $("#adspace").show(); - $("#next2").show(); - - }); - - $("#next2").click(function () { - $("#adspace").hide(); - $("#next2").hide(); - $("#q6").show(); - }); - - - - $("#q6").click(function () { - $("#q6").hide(); - $("#q7").show(); - }); - - $("#q7").click(function () { - $("#q7").hide(); - $("#q8").show(); - }); - - - $("#q8y").click(function () { - $("#q8").hide(); - showAd('attention+deficit+disorder'); - $("#adspace").show(); - $("#next3").show(); - }); - - $("#q8n").click(function () { - $("#q8").hide(); - $("#q9").show(); - }); - - $("#next3").click(function () { - $("#adspace").hide(); - $("#next3").hide(); - $("#q9").show(); - }); - - - $("#q9y").click(function () { - $("#q9").hide(); - showFinalAd('brain+games'); - $("#finaly").show(); - }); - - $("#q9n").click(function () { - $("#q9").hide(); - showFinalAd2('custom+closet+organization'); - $("#finaln").show(); - }); - - - $("#q13").click(function () { - $("#q13").hide(); - $("#q14").show(); - }); - - $("#q14n").click(function () { - $("#q14").hide(); - showAd('car+dealers'); - $("#adspace").show(); - $("#next5").show(); - }); - - $("#next5").click(function () { - $("#adspace").hide(); - $("#next5").hide(); - $("#q15").show(); - }); - - $("#q14y").click(function () { - $("#q14").hide(); - $("#q15").show(); - }); - - $("#q15").click(function () { - $("#q15").hide(); - $("#q16").show(); - }); - - - - $("#q16n").click(function () { - $("#q16").hide(); - showAd('galaxy+s6+edge'); - $("#adspace").show(); - $("#next6").show(); - }); - - $("#q16y").click(function () { - $("#q16").hide(); - showAd('protective+cell+phone+covers'); - $("#adspace").show(); - $("#next6").show(); - }); - - $("#next6").click(function () { - $("#adspace").hide(); - $("#next6").hide(); - $("#q17").show(); - }); - - - - $("#q17").click(function () { - $("#q17").hide(); - $("#q18").show(); - }); - - $("#q18").click(function () { - $("#q18").hide(); - $("#q19").show(); - }); - - $("#q19y").click(function () { - $("#q19").hide(); - $("#finaly").show(); - }); - - $("#q19n").click(function () { - $("#q19").hide(); - $("#finaln").show(); - }); - - - - - - - - - - - }); -</script> - - -<div style="width: 100%; margin: 0 auto;"> - - <div text align="center"> - <div id="q1"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Ever miss an appointment or meeting?</div> - <div id="q1y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q1n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q2" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are you generally on time for work and appointments?</div> - <div id="q2y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q2n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q3" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Have you ever misplaced your keys?</div> - <div id="q3y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q3n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q4" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Ever drive off with something on the roof of your car?</div> - <div id="q4y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q4n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q5" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Is your car maintenance always on schedule? (oil changes, tire rotation, etc.)</div> - <div id="q5y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q5n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - - </div> - - - - <div id="q6" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Have you ever needed someone to call your phone so you could find it?</div> - <div id="q6y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q6n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q7" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Anyone ever accused you of having ADD?</div> - <div id="q7y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q7n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q8" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Ever lost your shoes in your home?</div> - <div id="q8y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q8n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q9" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Ever been late paying a bill because you forgot or misplaced it?</div> - <div id="q9y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q9n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - - - - <div id="finaly" style="display: none"> - <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">"You are 70% absent-minded. That makes you a little bit scatterbrained sometimes! You've experienced your share of embarrassing brain slips, -but you're not a complete space-cadet. You tend to be relatively -attentive, but do live in your own world sometimes. Want to improve your brainpower?"</div> - <div id="final"></div> - <div style="clear: both"></div> - </div> - - <div id="finaln" style="display: none"> - <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">You are 30% absent-minded. You're generally aware and attentive of your surroundings! Not much slips through the cracks with you. You have a clear sense of presence and purpose and are generally on time. Organization is your strong: suit from your mail, to your cosmetics, to your clothes... everything has a place!</div> - <div id="final2"></div> - <div style="clear: both"></div> - </div> - - - - - - - <div id="adspace" style="display: none"> - </div> - - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next5">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next6">Next ></div> - - </div> - -</div> - diff --git a/Mobile.Search.Web/Views/Quiz/Career.cshtml b/Mobile.Search.Web/Views/Quiz/Career.cshtml deleted file mode 100644 index 3e5c115..0000000 --- a/Mobile.Search.Web/Views/Quiz/Career.cshtml +++ /dev/null @@ -1,412 +0,0 @@ -@{ - ViewBag.Title = "Index"; -} - -<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> -<script> - - function showAd(keyword) { - document.getElementById('adspace').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - function showFinalAd(keyword) { - document.getElementById('final').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - function showFinalAd2(keyword) { - document.getElementById('final2').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - - - -</script> -<script> - $(document).ready( - function() { - $("#q1").click(function() { - $("#q1").hide(); - $("#q2").show(); - }); - - - $("#q2").click(function () { - $("#q2").hide(); - $("#q3").show(); - }); - - - $("#q3n").click(function () { - $("#q3").hide(); - $("#q4").show(); - }); - - $("#q3y").click(function () { - $("#q3").hide(); - showAd('online+nursing+schools'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#next1").click(function () { - $("#adspace").hide(); - $("#next1").hide(); - $("#q4").show(); - }); - - $("#q4").click(function () { - $("#q4").hide(); - $("#q5").show(); - }); - - $("#q5").click(function () { - $("#q5").hide(); - $("#q6").show(); - }); - - - - $("#q6n").click(function () { - $("#q6").hide(); - $("#q7").show(); - }); - - $("#q6y").click(function () { - $("#q6").hide(); - showAd('online+college'); - $("#adspace").show(); - $("#next2").show(); - }); - - - - - - $("#next2").click(function () { - $("#adspace").hide(); - $("#next2").hide(); - $("#q7").show(); - }); - - $("#q7").click(function () { - $("#q7").hide(); - $("#q8").show(); - }); - - - $("#q8").click(function () { - $("#q8").hide(); - $("#q9").show(); - }); - - - $("#q9y").click(function () { - $("#q9").hide(); - showAd('online+accounting+degree'); - $("#adspace").show(); - $("#next3").show(); - }); - - $("#next3").click(function () { - $("#adspace").hide(); - $("#next3").hide(); - $("#q10").show(); - }); - - $("#q9n").click(function () { - $("#q9").hide(); - $("#q10").show(); - }); - - - $("#q10").click(function () { - $("#q10").hide(); - $("#q11").show(); - }); - - $("#q111").click(function () { - $("#q11").hide(); - showAd('online+nursing+schools'); - $("#adspace").show(); - $("#next4").show(); - }); - - $("#q112").click(function () { - $("#q11").hide(); - showAd('online+accounting+degree'); - $("#adspace").show(); - $("#next4").show(); - }); - - $("#q113").click(function () { - $("#q11").hide(); - showAd('medical+billing+and+coding'); - $("#adspace").show(); - $("#next4").show(); - }); - - $("#q114").click(function () { - $("#q11").hide(); - showAd('early+childhood+education'); - $("#adspace").show(); - $("#next4").show(); - }); - - $("#q115").click(function () { - $("#q11").hide(); - showAd('online+seminary'); - $("#adspace").show(); - $("#next4").show(); - }); - - $("#q116").click(function () { - $("#q11").hide(); - showAd('physical+therapy+certification'); - $("#adspace").show(); - $("#next4").show(); - }); - - $("#q117").click(function () { - $("#q11").hide(); - $("#q12").show(); - }); - - $("#next4").click(function () { - $("#adspace").hide(); - $("#next4").hide(); - $("#q12").show(); - }); - - - - - $("#q12y").click(function () { - $("#q12").hide(); - showFinalAd('online+college'); - $("#finaly").show(); - }); - - $("#q12n").click(function () { - $("#q12").hide(); - - $("#finaln").show(); - }); - - - $("#q13").click(function () { - $("#q13").hide(); - $("#q14").show(); - }); - - $("#q14n").click(function () { - $("#q14").hide(); - showAd('car+dealers'); - $("#adspace").show(); - $("#next5").show(); - }); - - $("#next5").click(function () { - $("#adspace").hide(); - $("#next5").hide(); - $("#q15").show(); - }); - - $("#q14y").click(function () { - $("#q14").hide(); - $("#q15").show(); - }); - - $("#q15").click(function () { - $("#q15").hide(); - $("#q16").show(); - }); - - - - $("#q16n").click(function () { - $("#q16").hide(); - showAd('galaxy+s6+edge'); - $("#adspace").show(); - $("#next6").show(); - }); - - $("#q16y").click(function () { - $("#q16").hide(); - showAd('protective+cell+phone+covers'); - $("#adspace").show(); - $("#next6").show(); - }); - - $("#next6").click(function () { - $("#adspace").hide(); - $("#next6").hide(); - $("#q17").show(); - }); - - - - $("#q17").click(function () { - $("#q17").hide(); - $("#q18").show(); - }); - - $("#q18").click(function () { - $("#q18").hide(); - $("#q19").show(); - }); - - $("#q19y").click(function () { - $("#q19").hide(); - $("#finaly").show(); - }); - - $("#q19n").click(function () { - $("#q19").hide(); - $("#finaln").show(); - }); - - - - - - - - - - - }); -</script> - - -<div style="width: 100%; margin: 0 auto;"> - - <div text align="center"> - <div id="q1"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Comfortable working with the human body?</div> - <div id="q1y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q1n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q2" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are you comfortable around sick individuals?</div> - <div id="q2y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q2n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q3" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are you interested nursing school?</div> - <div id="q3y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q3n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q4" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you communicate well with others?</div> - <div id="q4y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q4n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q5" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Where do you prefer to study?</div> - <div id="q5y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Home</div> - <div id="q5n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">Campus</div> - - </div> - - - - <div id="q6" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are online courses interesting?</div> - <div id="q6y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q6n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q7" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are you good with numbers?</div> - <div id="q7y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q7n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q8" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are you good with excel?</div> - <div id="q8y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q8n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q9" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are you excited by the idea of accounting?</div> - <div id="q9y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q9n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - - - <div id="q10" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Have you completed any major schooling so far?</div> - <div id="q10y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q10n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q11" style="display: none"> - <div style="font-family: 'arial'; font-size: 20pt; padding: 10px; height: 200px">We think we know where this is going... To make sure, what degree interests you?</div> - <div id="q111" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">online nursing school</div> - <div id="q112" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">online accounting degree</div> - <div id="q113" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">medical billing and coding</div> - <div id="q114" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">early childhood education</div> - <div id="q115" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">online seminary</div> - <div id="q116" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">physical therapy</div> - <div id="q117" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">none of these</div> - - <div style="clear: both"></div> - </div> - - <div id="q12" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Compelled to work towards a education?</div> - <div id="q12y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q12n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - - - <div id="finaly" style="display: none"> - <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">You'll do well in life. Your interests make for an interesting match of skillsets and you should look to advance them at every chance you get. Consider taking the next steps. </div> - <div id="final"></div> - <div style="clear: both"></div> - </div> - - <div id="finaln" style="display: none"> - <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">You'll do well in life. Your interests make for an interesting match of skillsets and you should look to advance them at every chance you get. Consider taking the next steps. </div> - <div id="final2"></div> - <div style="clear: both"></div> - </div> - - - - - - - <div id="adspace" style="display: none"> - </div> - - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next5">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next6">Next ></div> - - </div> - -</div> - diff --git a/Mobile.Search.Web/Views/Quiz/Fake.cshtml b/Mobile.Search.Web/Views/Quiz/Fake.cshtml deleted file mode 100644 index 20f57a5..0000000 --- a/Mobile.Search.Web/Views/Quiz/Fake.cshtml +++ /dev/null @@ -1,394 +0,0 @@ -@{ - ViewBag.Title = "Index"; -} - -<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> -<script> - - function showAd(keyword) { - document.getElementById('adspace').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - function showFinalAd(keyword) { - document.getElementById('final').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - - - -</script> -<script> - $(document).ready( - function() { - $("#q1").click(function() { - $("#q1").hide(); - $("#q2").show(); - }); - - $("#q2y").click(function () { - $("#q2").hide(); - showAd('teeth+whitening'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#q2n").click(function () { - $("#q2").hide(); - $("#q3").show(); - - }); - - $("#next1").click(function () { - $("#adspace").hide(); - $("#next1").hide(); - $("#q3").show(); - }); - - $("#q3").click(function () { - $("#q3").hide(); - $("#q4").show(); - }); - - $("#q4").click(function () { - $("#q4").hide(); - $("#q5").show(); - }); - - $("#q5y").click(function () { - $("#q5").hide(); - showAd('brand+name+clothes'); - $("#adspace").show(); - $("#next2").show(); - }); - - $("#q5n").click(function () { - $("#q5").hide(); - $("#q6").show(); - - }); - - $("#next2").click(function () { - $("#adspace").hide(); - $("#next2").hide(); - $("#q6").show(); - }); - - $("#q6").click(function () { - $("#q6").hide(); - $("#q7").show(); - }); - - $("#q7").click(function () { - $("#q7").hide(); - $("#q8").show(); - }); - - $("#q8y").click(function () { - $("#q8").hide(); - showAd('ladies+leather+handbag'); - $("#adspace").show(); - $("#next3").show(); - }); - - $("#q8n").click(function () { - $("#q8").hide(); - $("#q9").show(); - - }); - - $("#next3").click(function () { - $("#adspace").hide(); - $("#next3").hide(); - $("#q9").show(); - }); - - $("#q9").click(function () { - $("#q9").hide(); - $("#q10").show(); - }); - - $("#q10y").click(function () { - $("#q10").hide(); - showAd('workout+clothes'); - $("#adspace").show(); - $("#next4").show(); - }); - - $("#q10n").click(function () { - $("#q10").hide(); - $("#q11").show(); - - }); - - $("#next4").click(function () { - $("#adspace").hide(); - $("#next4").hide(); - $("#q11").show(); - }); - - $("#q11").click(function () { - $("#q11").hide(); - $("#q12").show(); - }); - - $("#q12").click(function () { - $("#q12").hide(); - $("#q13").show(); - }); - - $("#q13y").click(function () { - $("#q13").hide(); - showAd('organic+spray+tanning'); - $("#adspace").show(); - $("#next5").show(); - }); - - $("#q13n").click(function () { - $("#q13").hide(); - $("#q14").show(); - - }); - - $("#next5").click(function () { - $("#adspace").hide(); - $("#next5").hide(); - $("#q14").show(); - }); - - $("#q14").click(function () { - $("#q14").hide(); - $("#q15").show(); - }); - - $("#q15y").click(function () { - $("#q15").hide(); - showAd('online+masters+degree'); - $("#adspace").show(); - $("#next6").show(); - }); - - $("#q15n").click(function () { - $("#q15").hide(); - $("#q16").show(); - - }); - - $("#next6").click(function () { - $("#adspace").hide(); - $("#next6").hide(); - $("#q16").show(); - }); - - $("#q16").click(function () { - $("#q16").hide(); - $("#q17").show(); - }); - - $("#q17n").click(function () { - $("#q17").hide(); - showAd('house+cleaning+services'); - $("#adspace").show(); - $("#next7").show(); - }); - - $("#q17y").click(function () { - $("#q17").hide(); - $("#q18").show(); - - }); - - $("#next7").click(function () { - $("#adspace").hide(); - $("#next7").hide(); - $("#q18").show(); - }); - - $("#q18y").click(function () { - $("#q18").hide(); - $("#finaly").show(); - - }); - - $("#q18n").click(function () { - $("#q18").hide(); - $("#finaln").show(); - - }); - - - - - - - - - - - }); -</script> - - -<div style="width: 100%; margin: 0 auto;"> - - <div text align="center"> - <div id="q1"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you lie often?</div> - <div id="q1y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q1n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q2" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are you impressed by white teeth?</div> - <div id="q2y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q2n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q3" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you often talk about yourself?</div> - <div id="q3y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q3n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q4" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are your friendships strategic to help you get ahead?</div> - <div id="q4y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q4n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q5" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you prefer brand names in fashion?</div> - <div id="q5y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q5n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - - </div> - - - - <div id="q6" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Is having a perfect body important to you?</div> - <div id="q6y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q6n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q7" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you like to find bargains?</div> - <div id="q7y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q7n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q8" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you love desginer bags?</div> - <div id="q8y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q8n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q9" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Have you ever flirted just to get a free drink?</div> - <div id="q9y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q9n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - - <div id="q10" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you work out to improve your appearance?</div> - <div id="q10y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q10n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q11" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you kiss up to the boss?</div> - <div id="q11y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q11n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q12" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Have you ever lied on a job application?</div> - <div id="q12y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q12n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q13" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you like tan skin?</div> - <div id="q13y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q13n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - - <div id="q14" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Have you ever had plastic surgery?</div> - <div id="q14y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q14n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q15" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do think an advanced degree is important?</div> - <div id="q15y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q15n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - <div id="q16" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you play politics at work?</div> - <div id="q16y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q16n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - <div id="q17" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are you a clean freak?</div> - <div id="q17y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q17n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - <div id="q18" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are you comfortable in your own skin and confident in your relationships?</div> - <div id="q18y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q18n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - - - - <div id="finaly" style="display: none"> - <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">People may think you are a little too fake or superficial. You may be too wrapped up in brand names and have difficulty managing your money. You should realize that quality does not necessarily come with a brand attached, and the most important things in life are free. It may be time to reevaluate and get new priorities in life. Remember to ask questions about others and really listen to their answers.</div> - <div id="final"></div> - <div style="clear: both"></div> - </div> - - <div id="finaln" style="display: none"> - <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">You are a genuine soul. You realize that the best things in life are free and quality does not necessarily come with a brand label. You may enjoy crafting or getting handmade or personalized gifts. You value family and security and are a sentimental person. You often put other people's needs before your own. It may be time to take some time pampering yourself or spend some quality time with friends.</div> - <div id="final"></div> - <div style="clear: both"></div> - </div> - - - - - <div id="adspace" style="display: none"> - </div> - - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next5">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next6">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next7">Next ></div> - - </div> - -</div> - diff --git a/Mobile.Search.Web/Views/Quiz/Fake2.cshtml b/Mobile.Search.Web/Views/Quiz/Fake2.cshtml deleted file mode 100644 index 288a382..0000000 --- a/Mobile.Search.Web/Views/Quiz/Fake2.cshtml +++ /dev/null @@ -1,359 +0,0 @@ -@{ - ViewBag.Title = "Index"; -} - -<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> -<script> - - function showAd(keyword) { - document.getElementById('adspace').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - function showFinalAd(keyword) { - document.getElementById('final').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - - - -</script> -<script> - $(document).ready( - function() { - $("#q1").click(function() { - $("#q1").hide(); - $("#q2").show(); - }); - - $("#q2y").click(function () { - $("#q2").hide(); - showAd('teeth+whitening'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#q2n").click(function () { - $("#q2").hide(); - $("#q3").show(); - - }); - - $("#next1").click(function () { - $("#adspace").hide(); - $("#next1").hide(); - $("#q3").show(); - }); - - $("#q3y").click(function () { - $("#q3").hide(); - $("#q4").show(); - }); - - $("#q3n").click(function () { - - - $("#q3").hide(); - showAd('house+cleaning+services'); - $("#adspace").show(); - $("#next2").show(); - - - }); - - $("#next2").click(function () { - $("#adspace").hide(); - $("#next2").hide(); - $("#q4").show(); - }); - - $("#q4").click(function () { - $("#q4").hide(); - $("#q5").show(); - }); - - $("#q5").click(function () { - $("#q5").hide(); - $("#q6").show(); - }); - - $("#q6").click(function () { - $("#q6").hide(); - $("#q7").show(); - }); - - - - - $("#q7y").click(function () { - $("#q7").hide(); - showAd('suv+dealer'); - $("#adspace").show(); - $("#next3").show(); - }); - - - $("#next3").click(function () { - $("#adspace").hide(); - $("#next3").hide(); - $("#q8").show(); - }); - - $("#q7n").click(function () { - $("#q7").hide(); - $("#q8").show(); - - }); - - $("#q8").click(function () { - $("#q8").hide(); - $("#q9").show(); - }); - - - $("#q9").click(function () { - $("#q9").hide(); - $("#q10").show(); - }); - - $("#q10").click(function () { - $("#q10").hide(); - $("#q11").show(); - }); - - $("#q11").click(function () { - $("#q11").hide(); - $("#q12").show(); - }); - - $("#q12").click(function () { - $("#q12").hide(); - $("#q13").show(); - }); - - $("#q13y").click(function () { - $("#q13").hide(); - showAd('mba'); - $("#adspace").show(); - $("#next4").show(); - }); - - $("#q13n").click(function () { - $("#q13").hide(); - $("#q14").show(); - - }); - - $("#next4").click(function () { - $("#adspace").hide(); - $("#next4").hide(); - $("#q14").show(); - }); - - - - - $("#q14y").click(function () { - $("#q14").hide(); - showAd('brand+name+clothes'); - $("#adspace").show(); - $("#next5").show(); - }); - - $("#q14n").click(function () { - $("#q14").hide(); - $("#q15").show(); - - }); - - $("#next5").click(function () { - $("#adspace").hide(); - $("#next5").hide(); - $("#q15").show(); - }); - - $("#q15").click(function () { - $("#q15").hide(); - $("#q16").show(); - }); - - - $("#q16y").click(function () { - $("#q16").hide(); - $("#finaly").show(); - - }); - - $("#q16n").click(function () { - $("#q16").hide(); - $("#finaln").show(); - - }); - - - - - - - - - - - - - }); -</script> - - -<div style="width: 100%; margin: 0 auto;"> - - <div text align="center"> - <div id="q1"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you lie often?</div> - <div id="q1y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q1n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q2" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are you impressed by white teeth?</div> - <div id="q2y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q2n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q3" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are you a clean person?</div> - <div id="q3y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q3n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q4" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you often talk about yourself?</div> - <div id="q4y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q4n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q5" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are your friendships strategic to help you get ahead?</div> - <div id="q5y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q5n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - - </div> - - - - <div id="q6" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Is having a perfect body important to you?</div> - <div id="q6y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q6n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q7" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Want a new car?</div> - <div id="q7y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q7n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q8" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you like to find bargains?</div> - <div id="q8y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q8n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q9" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Have you ever flirted just to get a free drink?</div> - <div id="q9y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q9n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - - <div id="q10" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you kiss up to the boss?</div> - <div id="q10y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q10n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q11" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Have you ever lied on a job application?</div> - <div id="q11y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q11n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q12" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Have you ever had plastic surgery?</div> - <div id="q12y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q12n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q13" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do think an advanced degree is important?</div> - <div id="q13y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q13n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - - <div id="q14" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you prefer brand name clothes?</div> - <div id="q14y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q14n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q15" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you play politics at work?</div> - <div id="q15y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q15n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - <div id="q16" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are you comfortable in your own skin and confident in your relationships?</div> - <div id="q16y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q16n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - - - - <div id="finaly" style="display: none"> - <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">People may think you are a little too fake or superficial. You may be too wrapped up in brand names and have difficulty managing your money. You should realize that quality does not necessarily come with a brand attached, and the most important things in life are free. It may be time to reevaluate and get new priorities in life. Remember to ask questions about others and really listen to their answers.</div> - <div id="final"></div> - <div style="clear: both"></div> - </div> - - <div id="finaln" style="display: none"> - <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">You are a genuine soul. You realize that the best things in life are free and quality does not necessarily come with a brand label. You may enjoy crafting or getting handmade or personalized gifts. You value family and security and are a sentimental person. You often put other people's needs before your own. It may be time to take some time pampering yourself or spend some quality time with friends.</div> - <div id="final"></div> - <div style="clear: both"></div> - </div> - - - - - <div id="adspace" style="display: none"> - </div> - - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next5">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next6">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next7">Next ></div> - - </div> - -</div> - - diff --git a/Mobile.Search.Web/Views/Quiz/Fitness2.cshtml b/Mobile.Search.Web/Views/Quiz/Fitness2.cshtml deleted file mode 100644 index 4e3b681..0000000 --- a/Mobile.Search.Web/Views/Quiz/Fitness2.cshtml +++ /dev/null @@ -1,313 +0,0 @@ -@{ - ViewBag.Title = "Index"; -} - -<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> -<script> - - function showAd(keyword) { - document.getElementById('adspace').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - function showFinalAd(keyword) { - document.getElementById('final').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - function showFinalAd2(keyword) { - document.getElementById('final2').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - - - -</script> -<script> - $(document).ready( - function() { - $("#q1").click(function() { - $("#q1").hide(); - $("#q2").show(); - }); - - - $("#q2").click(function () { - $("#q2").hide(); - $("#q3").show(); - }); - - - $("#q3n").click(function () { - $("#q3").hide(); - $("#q4").show(); - }); - - $("#q3y").click(function () { - $("#q3").hide(); - showAd('personal+trainer+certification'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#next1").click(function () { - $("#adspace").hide(); - $("#next1").hide(); - $("#q4").show(); - }); - - $("#q4n").click(function () { - $("#q5").hide(); - $("#q6").show(); - }); - - $("#q4y").click(function () { - $("#q4").hide(); - showAd('find+personal+trainer'); - $("#adspace").show(); - $("#next2").show(); - }); - - $("#next2").click(function () { - $("#adspace").hide(); - $("#next2").hide(); - $("#q5").show(); - }); - - $("#q5").click(function () { - $("#q5").hide(); - $("#q6").show(); - }); - - - - $("#q6n").click(function () { - $("#q6").hide(); - $("#q7").show(); - }); - - $("#q6y").click(function () { - $("#q6").hide(); - showAd('weight+loss'); - $("#adspace").show(); - $("#next3").show(); - }); - - $("#next3").click(function () { - $("#adspace").hide(); - $("#next3").hide(); - $("#q7").show(); - }); - - $("#q7").click(function () { - $("#q7").hide(); - $("#q8").show(); - }); - - - $("#q8y").click(function () { - $("#q8").hide(); - showFinalAd('yoga+classes'); - $("#finaly").show(); - }); - - $("#q8n").click(function () { - $("#q8").hide(); - showFinalAd2('colon+cleanse'); - $("#finaln").show(); - }); - - - - - - - - - - $("#q16n").click(function () { - $("#q16").hide(); - showAd('galaxy+s6+edge'); - $("#adspace").show(); - $("#next6").show(); - }); - - $("#q16y").click(function () { - $("#q16").hide(); - showAd('protective+cell+phone+covers'); - $("#adspace").show(); - $("#next6").show(); - }); - - $("#next6").click(function () { - $("#adspace").hide(); - $("#next6").hide(); - $("#q17").show(); - }); - - - - $("#q17").click(function () { - $("#q17").hide(); - $("#q18").show(); - }); - - $("#q18").click(function () { - $("#q18").hide(); - $("#q19").show(); - }); - - $("#q19y").click(function () { - $("#q19").hide(); - $("#finaly").show(); - }); - - $("#q19n").click(function () { - $("#q19").hide(); - $("#finaln").show(); - }); - - - - - - - - - - - }); -</script> - - -<div style="width: 100%; margin: 0 auto;"> - - <div text align="center"> - <div id="q1"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px"> - Are you afraid of the weights?</div> - <div id="q1y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q1n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q2" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Feel in better shape than others?</div> - <div id="q2y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q2n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q3" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Ever consider personal training?</div> - <div id="q3y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q3n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q4" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Want to be coached yourself?</div> - <div id="q4y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q4n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q5" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you feel good about your body?</div> - <div id="q5y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q5n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - - </div> - - - - <div id="q6" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Time To Lose A Few Pounds</div> - <div id="q6y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q6n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q7" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Overall, do you feel good?</div> - <div id="q7y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q7n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q8" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you visit the gym regularly?</div> - <div id="q8y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q8n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q9" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are you excited by the idea of accounting?</div> - <div id="q9y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q9n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - - - <div id="q10" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Have you completed any major schooling so far?</div> - <div id="q10y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q10n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q11" style="display: none"> - <div style="font-family: 'arial'; font-size: 20pt; padding: 10px; height: 200px">We think we know where this is going... To make sure, what degree interests you?</div> - <div id="q111" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">online nursing school</div> - <div id="q112" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">online accounting degree</div> - <div id="q113" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">medical billing and coding</div> - <div id="q114" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">early childhood education</div> - <div id="q115" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">online seminary</div> - <div id="q116" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">physical therapy</div> - <div id="q117" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">none of these</div> - - <div style="clear: both"></div> - </div> - - <div id="q12" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Compelled to work towards a education?</div> - <div id="q12y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q12n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - - - <div id="finaly" style="display: none"> - <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">You're a gym god. Lift those weights and make them yours, nothing can stop you now. Consider taking on a new hobby within fitness to keep yourself challenged.</div> - <div id="final"></div> - <div style="clear: both"></div> - </div> - - <div id="finaln" style="display: none"> - <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">If may be time to get back into the groove. Ditch the things holding you back and take another look at your habits. It may do you well to be receptive to new, healthier habits that can replace old ones. </div> - <div id="final2"></div> - <div style="clear: both"></div> - </div> - - - - - - - <div id="adspace" style="display: none"> - </div> - - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next5">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next6">Next ></div> - - </div> - - </div> - diff --git a/Mobile.Search.Web/Views/Quiz/Image.cshtml b/Mobile.Search.Web/Views/Quiz/Image.cshtml deleted file mode 100644 index 95bc1fe..0000000 --- a/Mobile.Search.Web/Views/Quiz/Image.cshtml +++ /dev/null @@ -1,396 +0,0 @@ -@{ - ViewBag.Title = "Index"; -} - -<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> -<script> - - function showAd(keyword) { - document.getElementById('adspace').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - function showFinalAd(keyword) { - document.getElementById('final').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - - - -</script> -<script> - $(document).ready( - function() { - $("#q1").click(function() { - $("#q1").hide(); - $("#q2").show(); - }); - - $("#q2y").click(function () { - $("#q2").hide(); - $("#q3").show(); - }); - - $("#q2n").click(function () { - $("#q2").hide(); - showAd('symptoms+of+depression'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#next1").click(function () { - $("#adspace").hide(); - $("#next1").hide(); - $("#q3").show(); - }); - - $("#q3").click(function () { - $("#q3").hide(); - $("#q4").show(); - }); - - - $("#q4y").click(function () { - $("#q4").hide(); - $("#q5").show(); - }); - - $("#q4n").click(function () { - $("#q4").hide(); - showAd('teeth+whitening+with+baking+soda'); - $("#adspace").show(); - $("#next2").show(); - }); - - $("#next2").click(function () { - $("#adspace").hide(); - $("#next2").hide(); - $("#q5").show(); - }); - - $("#q5").click(function () { - $("#q5").hide(); - $("#q6").show(); - }); - - $("#q6").click(function () { - $("#q6").hide(); - $("#q7").show(); - }); - - - - - - $("#q7y").click(function () { - $("#q7").hide(); - showAd('maxi+dress'); - $("#adspace").show(); - $("#next3").show(); - }); - - $("#next3").click(function () { - $("#adspace").hide(); - $("#next3").hide(); - $("#q8").show(); - }); - - $("#q7n").click(function () { - $("#q7").hide(); - $("#q8").show(); - }); - - - $("#q8").click(function () { - $("#q8").hide(); - $("#q9").show(); - }); - - - $("#q9").click(function () { - $("#q9").hide(); - $("#q10").show(); - }); - - - $("#q10").click(function () { - $("#q10").hide(); - $("#q11").show(); - }); - - $("#q11y").click(function () { - $("#q11").hide(); - showAd('wavy+hair'); - $("#adspace").show(); - $("#next4").show(); - }); - - $("#next4").click(function () { - $("#adspace").hide(); - $("#next4").hide(); - $("#q12").show(); - }); - - $("#q11n").click(function () { - $("#q11").hide(); - $("#q12").show(); - }); - - - $("#q12").click(function () { - $("#q12").hide(); - $("#q13").show(); - }); - - $("#q13").click(function () { - $("#q13").hide(); - $("#q14").show(); - }); - - $("#q14n").click(function () { - $("#q14").hide(); - showAd('suv+dealer'); - $("#adspace").show(); - $("#next5").show(); - }); - - $("#next5").click(function () { - $("#adspace").hide(); - $("#next5").hide(); - $("#q15").show(); - }); - - $("#q14y").click(function () { - $("#q14").hide(); - $("#q15").show(); - }); - - $("#q15").click(function () { - $("#q15").hide(); - $("#q16").show(); - }); - - - - $("#q16n").click(function () { - $("#q16").hide(); - showAd('galaxy+s6+edge'); - $("#adspace").show(); - $("#next6").show(); - }); - - $("#q16y").click(function () { - $("#q16").hide(); - showAd('protective+cell+phone+covers'); - $("#adspace").show(); - $("#next6").show(); - }); - - $("#next6").click(function () { - $("#adspace").hide(); - $("#next6").hide(); - $("#q17").show(); - }); - - - - $("#q17").click(function () { - $("#q17").hide(); - $("#q18").show(); - }); - - $("#q18").click(function () { - $("#q18").hide(); - $("#q19").show(); - }); - - $("#q19y").click(function () { - $("#q19").hide(); - $("#finaly").show(); - }); - - $("#q19n").click(function () { - $("#q19").hide(); - $("#finaln").show(); - }); - - - - - - - - - - - }); -</script> - - -<div style="width: 100%; margin: 0 auto;"> - - <div text align="center"> - <div id="q1"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you make eye contact when talking with others?</div> - <div id="q1y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q1n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q2" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you generally feel happy?</div> - <div id="q2y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q2n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q3" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you smile often at strangers?</div> - <div id="q3y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q3n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q4" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you feel confident in the appearance of your teeth?</div> - <div id="q4y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q4n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q5" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you prefer brand names in fashion?</div> - <div id="q5y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q5n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - - </div> - - - - <div id="q6" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you keep up with style trends?</div> - <div id="q6y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q6n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q7" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you like to dress up?</div> - <div id="q7y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q7n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q8" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you normally wear makeup?</div> - <div id="q8y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q8n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q9" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you get professional manicures/pedicures?</div> - <div id="q9y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q9n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - - <div id="q10" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you change up your makeup often?</div> - <div id="q10y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q10n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q11" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you update your hair style or color often?</div> - <div id="q11y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q11n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q12" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you shop more than once a week?</div> - <div id="q12y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q12n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q13" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you generally enjoy sex?</div> - <div id="q13y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q13n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - - <div id="q14" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Is your car model newer than 5 years?</div> - <div id="q14y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q14n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q15" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you drink socially?</div> - <div id="q15y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q15n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - <div id="q16" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you have a smartphone?</div> - <div id="q16y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q16n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - <div id="q17" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you have a lot of energy?</div> - <div id="q17y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q17n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - <div id="q18" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you work out regularly?</div> - <div id="q18y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q18n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - <div id="q19" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you have a lot of friends?</div> - <div id="q19y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q19n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - - - <div id="finaly" style="display: none"> - <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">You are generally perceived by others as a positive, stylish, intelligent person. You project an image of confidence and hip style. People gravitate toward you like a magnet and want to include you in social activities and work groups. Youger people see you as a role model and older people envy your youth and confidence but are wary of your reliability and money management skills.</div> - <div id="final"></div> - <div style="clear: both"></div> - </div> - - <div id="finaln" style="display: none"> - <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">You are generally percieved by others as a shy, conservative, conscientious person. You project an easy going image of quiet confidence. People may be intimidated by your reserved demeanor or nervous about approaching you since they are unsure how to talk to you. Younger people may overlook you due to your reserved vibe and older people think you are mature beyond your years.</div> - <div id="final"></div> - <div style="clear: both"></div> - </div> - - - - - <div id="adspace" style="display: none"> - </div> - - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next5">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next6">Next ></div> - - </div> - -</div> - diff --git a/Mobile.Search.Web/Views/Quiz/Image2.cshtml b/Mobile.Search.Web/Views/Quiz/Image2.cshtml deleted file mode 100644 index 328b100..0000000 --- a/Mobile.Search.Web/Views/Quiz/Image2.cshtml +++ /dev/null @@ -1,249 +0,0 @@ -@{ - ViewBag.Title = "Index"; -} - -<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> -<script> - - function showAd(keyword) { - document.getElementById('adspace').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - function showFinalAd(keyword) { - document.getElementById('final').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - - - -</script> -<script> - $(document).ready( - function() { - $("#q1").click(function() { - $("#q1").hide(); - $("#q2").show(); - }); - - $("#q2y").click(function () { - $("#q2").hide(); - showAd('cheapest+cell+phone+plans'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#q2n").click(function () { - $("#q2").hide(); - showAd('phone'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#next1").click(function () { - $("#adspace").hide(); - $("#next1").hide(); - $("#q3").show(); - }); - - $("#q3").click(function () { - $("#q3").hide(); - $("#q4").show(); - }); - - - $("#q4").click(function () { - $("#q4").hide(); - $("#q5").show(); - }); - - - $("#q5").click(function () { - $("#q5").hide(); - $("#q6").show(); - }); - - $("#q6").click(function () { - $("#q6").hide(); - $("#q7").show(); - }); - - $("#q7").click(function () { - $("#q7").hide(); - $("#q8").show(); - }); - - $("#q8y").click(function () { - $("#q8").hide(); - showAd('suv+dealer'); - $("#adspace").show(); - $("#next2").show(); - }); - - $("#q8n").click(function () { - $("#q8").hide(); - $("#q9").show(); - - }); - - $("#next2").click(function () { - $("#adspace").hide(); - $("#next2").hide(); - $("#q9").show(); - }); - - - - - - $("#q9").click(function () { - $("#q9").hide(); - $("#q10").show(); - }); - - - $("#q10").click(function () { - $("#q10").hide(); - $("#q11").show(); - }); - - $("#q11y").click(function () { - $("#q11").hide(); - $("#finaly").show(); - }); - - $("#q11n").click(function () { - $("#q11").hide(); - $("#finaln").show(); - }); - - - - - - - - - - - - }); -</script> - - -<div style="width: 100%; margin: 0 auto;"> - - <div text align="center"> - <div id="q1"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you make eye contact when talking with others?</div> - <div id="q1y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q1n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q2" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you have a smartphone?</div> - <div id="q2y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q2n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q3" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you smile often at strangers?</div> - <div id="q3y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q3n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q4" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you prefer brand names in fashion?</div> - <div id="q4y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q4n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q5" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you keep up with style trends?</div> - <div id="q5y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q5n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - - </div> - - - - <div id="q6" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you change up your makeup often?</div> - <div id="q6y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q6n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q7" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you shop more than once a week?</div> - <div id="q7y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q7n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q8" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Want a new car?</div> - <div id="q8y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q8n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q9" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you have a lot of energy?</div> - <div id="q9y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q9n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - - <div id="q10" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you work out regularly?</div> - <div id="q10y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q10n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q11" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you have a lot of friends?</div> - <div id="q11y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q11n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - - - <div id="finaly" style="display: none"> - <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">You are generally perceived by others as a positive, stylish, intelligent person. You project an image of confidence and hip style. People gravitate toward you like a magnet and want to include you in social activities and work groups. Youger people see you as a role model and older people envy your youth and confidence but are wary of your reliability and money management skills.</div> - <div id="final"></div> - <div style="clear: both"></div> - </div> - - <div id="finaln" style="display: none"> - <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">You are generally percieved by others as a shy, conservative, conscientious person. You project an easy going image of quiet confidence. People may be intimidated by your reserved demeanor or nervous about approaching you since they are unsure how to talk to you. Younger people may overlook you due to your reserved vibe and older people think you are mature beyond your years.</div> - <div id="final"></div> - <div style="clear: both"></div> - </div> - - - - - <div id="adspace" style="display: none"> - </div> - - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next5">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next6">Next ></div> - - </div> - -</div> - - diff --git a/Mobile.Search.Web/Views/Quiz/Index.cshtml b/Mobile.Search.Web/Views/Quiz/Index.cshtml deleted file mode 100644 index b833307..0000000 --- a/Mobile.Search.Web/Views/Quiz/Index.cshtml +++ /dev/null @@ -1,347 +0,0 @@ - -@{ - ViewBag.Title = "Index"; -} - - <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> - <script> - - function showAd1() { - document.getElementById('adspace1').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - function showAd2() { - document.getElementById('adspace2').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=meal+kit&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=meal+kit&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - function showAd3() { - document.getElementById('adspace3').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=dating+sites&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=dating+sites&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - function showAd4() { - document.getElementById('adspace4').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=short+hairstyles&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=short+hairstyles&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - function showAd5() { - document.getElementById('adspace5').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=austin&keyword=psychic-reader&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=austin&keyword=psychic-reader&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - - - </script> - <script> - $(document).ready( - function() { - $("#q1y").click(function() { - $("#q1").hide(); - $("#q2").show(); - }); - - $("#q1n").click(function () { - $("#q1").hide(); - $("#q2").show(); - }); - - $("#q2y").click(function () { - $("#q2").hide(); - $("#q3").show(); - }); - - $("#q2n").click(function () { - $("#q2").hide(); - $("#q3").show(); - }); - - $("#q3y").click(function () { - $("#q3").hide(); - showAd1(); - $("#adspace1").show(); - $("#next1").show(); - }); - - $("#q3n").click(function () { - $("#q3").hide(); - $("#q6").show(); - }); - - $("#q4y").click(function () { - $("#q2").hide(); - $("#q3").show(); - }); - - $("#q4n").click(function () { - $("#q2").hide(); - $("#q3").show(); - }); - - - $("#next1").click(function() { - $("#adspace1").hide(); - $("#next1").hide(); - $("#q6").show(); - }); - - $("#q6y").click(function () { - $("#q6").hide(); - $("#q7").show(); - }); - - $("#q6n").click(function () { - $("#q6").hide(); - $("#q7").show(); - }); - - $("#q7y").click(function () { - $("#q7").hide(); - $("#q8").show(); - }); - - $("#q7n").click(function () { - $("#q7").hide(); - $("#q8").show(); - }); - - $("#q8y").click(function () { - $("#q8").hide(); - $("#q9").show(); - }); - - $("#q8n").click(function () { - $("#q8").hide(); - $("#q9").show(); - }); - - $("#q9y").click(function () { - $("#q9").hide(); - $("#q10").show(); - }); - - $("#q9n").click(function () { - $("#q9").hide(); - $("#q10").show(); - }); - - $("#q10y").click(function () { - $("#q10").hide(); - showAd2(); - $("#adspace2").show(); - $("#next2").show(); - }); - - $("#q10n").click(function () { - $("#q10").hide(); - $("#q11").show(); - }); - - - $("#next2").click(function () { - $("#adspace2").hide(); - $("#next2").hide(); - $("#q11").show(); - }); - - $("#q11y").click(function () { - $("#q11").hide(); - $("#q12").show(); - }); - - $("#q11n").click(function () { - $("#q11").hide(); - $("#q12").show(); - }); - - $("#q12y").click(function () { - $("#q12").hide(); - $("#q13").show(); - }); - - $("#q12n").click(function () { - $("#q12").hide(); - $("#q13").show(); - }); - - $("#q13y").click(function () { - $("#q13").hide(); - showAd3(); - $("#adspace3").show(); - $("#next3").show(); - }); - - $("#q13n").click(function () { - $("#q13").hide(); - $("#q14").show(); - }); - - - $("#next3").click(function () { - $("#adspace3").hide(); - $("#next3").hide(); - $("#q14").show(); - }); - - $("#q14").click(function () { - $("#q14").hide(); - $("#q15").show(); - }); - - $("#q15y").click(function () { - $("#q15").hide(); - showAd4(); - $("#adspace4").show(); - $("#next4").show(); - }); - - $("#q15n").click(function () { - $("#q15").hide(); - $("#final").show(); - }); - - - $("#next4").click(function () { - $("#adspace4").hide(); - showAd5(); - $("#next4").hide(); - $("#final").show(); - }); - - - - }); - </script> - - - <div style="width: 100%; margin: 0 auto;"> - - <div text align="center"> - <div id="q1"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Caught him cheating before?</div> - <div id="q1y" style="background-color: #74c680; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">YES!</div> - <div id="q1n" style="background-color: #da6767; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">NO!</div> - <div style="clear: both"></div> - </div> - - <div id="q2" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Does he receive mysterious calls/ texts?</div> - <div id="q2y" style="background-color: #74c680; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">YES!</div> - <div id="q2n" style="background-color: #da6767; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">NO!</div> - <div style="clear: both"></div> - </div> - - <div id="q3" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Want To Know Who He Is Texting?</div> - <div id="q3y" style="background-color: #74c680; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">YES!</div> - <div id="q3n" style="background-color: #da6767; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">NO!</div> - <div style="clear: both"></div> - </div> - - <div id="q4" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px"> No Answer Goes Here</div> - <div id="q4y" style="background-color: #74c680; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">YES!</div> - <div id="q4n" style="background-color: #da6767; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">NO!</div> - <div style="clear: both"></div> - </div> - - - - <div id="q6" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Have you caught him checking out another girl?</div> - <div id="q6y" style="background-color: #74c680; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">YES!</div> - <div id="q6n" style="background-color: #da6767; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">NO!</div> - <div style="clear: both"></div> - </div> - - <div id="q7" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Does he have many girl friends?</div> - <div id="q7y" style="background-color: #74c680; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">YES!</div> - <div id="q7n" style="background-color: #da6767; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">NO!</div> - <div style="clear: both"></div> - </div> - - <div id="q8" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Fail to invite you out with friends?</div> - <div id="q8y" style="background-color: #74c680; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">YES!</div> - <div id="q8n" style="background-color: #da6767; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">NO!</div> - <div style="clear: both"></div> - </div> - - <div id="q9" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you share interests?</div> - <div id="q9y" style="background-color: #74c680; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">YES!</div> - <div id="q9n" style="background-color: #da6767; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">NO!</div> - <div style="clear: both"></div> - </div> - - <div id="q10" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Interested in cooking together?</div> - <div id="q10y" style="background-color: #74c680; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">YES!</div> - <div id="q10n" style="background-color: #da6767; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">NO!</div> - <div style="clear: both"></div> - </div> - - <div id="q11" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Does he get up in the middle of the night?</div> - <div id="q11y" style="background-color: #74c680; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">YES!</div> - <div id="q11n" style="background-color: #da6767; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">NO!</div> - <div style="clear: both"></div> - </div> - - <div id="q12" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Smell Other Perfume?</div> - <div id="q12y" style="background-color: #74c680; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">YES!</div> - <div id="q12n" style="background-color: #da6767; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">NO!</div> - <div style="clear: both"></div> - </div> - - <div id="q13" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Time To Meet a New Guy?</div> - <div id="q13y" style="background-color: #74c680; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">YES!</div> - <div id="q13n" style="background-color: #da6767; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">NO!</div> - <div style="clear: both"></div> - - </div> - - <div id="q14" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Changed how he looks recently?</div> - <div id="q14y" style="background-color: #74c680; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">YES!</div> - <div id="q14n" style="background-color: #da6767; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">NO!</div> - <div style="clear: both"></div> - </div> - - <div id="q15" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Time to change your looks?</div> - <div id="q15y" style="background-color: #74c680; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">YES!</div> - <div id="q15n" style="background-color: #da6767; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">NO!</div> - <div style="clear: both"></div> - </div> - <div id="final" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">“Something makes this situation tingle, maybe you should keep an eye out”</div> - <hr style="border: none; border-top: 1px dotted #82c68b; color: #fff; background-color: #fff; height: 1px; width: 100%;" /> - <div id="adspace5"></div> - </div> - - - - - <div id="adspace1" style="display: none"> - </div> - <div id="adspace2" style="display: none"> - </div> - <div id="adspace3" style="display: none"> - </div> - <div id="adspace4" style="display: none"> - </div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> - - </div> - - </div> - - diff --git a/Mobile.Search.Web/Views/Quiz/Marry.cshtml b/Mobile.Search.Web/Views/Quiz/Marry.cshtml deleted file mode 100644 index a34deac..0000000 --- a/Mobile.Search.Web/Views/Quiz/Marry.cshtml +++ /dev/null @@ -1,357 +0,0 @@ -@{ - ViewBag.Title = "Index"; -} - -<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> -<script> - - function showAd(keyword) { - document.getElementById('adspace').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - function showFinalAd(keyword) { - document.getElementById('final').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - - - -</script> -<script> - $(document).ready( - function() { - $("#q1y").click(function() { - $("#q1").hide(); - $("#q2").show(); - }); - - $("#q1n").click(function () { - $("#q1").hide(); - $("#q2").show(); - }); - - $("#q2y").click(function () { - $("#q2").hide(); - $("#q3").show(); - }); - - $("#q2n").click(function () { - $("#q2").hide(); - $("#q3").show(); - }); - - $("#q31").click(function () { - $("#q3").hide(); - $("#q4").show(); - }); - - $("#q32").click(function () { - $("#q3").hide(); - $("#q4").show(); - }); - - $("#q33").click(function () { - $("#q3").hide(); - $("#q4").show(); - }); - - $("#q4y").click(function () { - $("#q4").hide(); - $("#q5").show(); - }); - - $("#q4n").click(function () { - $("#q4").hide(); - $("#q5").show(); - }); - - $("#q55").click(function () { - $("#q5").hide(); - $("#q6").show(); - }); - - $("#q51").click(function () { - $("#q5").hide(); - showAd('las+vegas+hotel'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#q52").click(function () { - $("#q5").hide(); - showAd('new+york+hotel'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#q53").click(function () { - $("#q5").hide(); - showAd('cheap+all+inclusive'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#q54").click(function () { - $("#q5").hide(); - showAd('eastern+carribean+cruise'); - $("#adspace").show(); - $("#next1").show(); - }); - - - - - $("#next1").click(function() { - $("#adspace").hide(); - $("#next1").hide(); - $("#q6").show(); - }); - - $("#q6").click(function () { - $("#q6").hide(); - $("#q7").show(); - }); - - - $("#q7").click(function () { - $("#q7").hide(); - $("#q8").show(); - }); - - - $("#q8").click(function () { - $("#q8").hide(); - $("#q9").show(); - }); - - $("#q9y").click(function () { - $("#q9").hide(); - showAd('dating+sites'); - $("#adspace").show(); - $("#next2").show(); - }); - - $("#q9n").click(function () { - $("#q9").hide(); - $("#q10").show(); - }); - - $("#next2").click(function () { - $("#adspace").hide(); - $("#next2").hide(); - $("#q10").show(); - }); - - - $("#q10").click(function () { - $("#q10").hide(); - $("#q11").show(); - }); - - $("#q11").click(function () { - $("#q11").hide(); - $("#q12").show(); - }); - - $("#q12").click(function () { - $("#q12").hide(); - $("#q13").show(); - }); - - $("#q13y").click(function () { - $("#q13").hide(); - showAd('psychic+reading'); - $("#adspace").show(); - $("#next3").show(); - }); - - $("#q13n").click(function () { - $("#q13").hide(); - $("#q14").show(); - }); - - $("#next3").click(function () { - $("#adspace").hide(); - $("#next3").hide(); - $("#q14").show(); - }); - - $("#q14").click(function () { - $("#q14").hide(); - $("#q15").show(); - }); - - $("#q15").click(function () { - $("#q15").hide(); - $("#q16").show(); - }); - - $("#q16").click(function () { - $("#q16").hide(); - showFinalAd('free+online+dating'); - $("#q17").show(); - }); - - - - - - }); -</script> - - -<div style="width: 100%; margin: 0 auto;"> - - <div text align="center"> - <div id="q1"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">What Is Your Gender?</div> - <div id="q1y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Male</div> - <div id="q1n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">Female</div> - <div style="clear: both"></div> - </div> - - <div id="q2" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Would You Have Traditional Wedding Attire?</div> - <div id="q2y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q2n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q3" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Where Would You Get Married?</div> - <div id="q31" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">Church</div> - <div id="q32" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Castle</div> - <div id="q33" style="background-color: #5b8fc4; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Big House</div> - <div style="clear: both"></div> - </div> - - <div id="q4" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Would You Honeymoon Right After The Wedding?</div> - <div id="q4y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q4n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q5" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Where Are You Most Interested In Going?</div> - <div id="q51" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%; ">Las Vegas</div> - <div id="q52" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">New York</div> - <div id="q53" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%; ">All-inclusive Resort</div> - <div id="q54" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%; ">Carribean Cruise</div> - - <div id="q55" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 10pt; width: 75%;">None Of These</div> - - </div> - - - - <div id="q6" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Which Do You Most Desire In Your Partner?</div> - <div id="q61" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%; ">Compassion</div> - <div id="q62" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">Generosity</div> - <div id="q63" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%; ">Empathy</div> - <div id="q64" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%; ">Adventure</div> - - <div style="clear: both"></div> - </div> - - <div id="q7" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Which Movie Would You Watch As A Couple?</div> - <div id="q71" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">Dispicable Me</div> - <div id="q72" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">Penguins Of Madagascar</div> - <div id="q73" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">Frozen</div> - <div id="q74" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">None Of The Above</div> - - <div style="clear: both"></div> - </div> - - <div id="q8" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">When Did You Last Have A Partner?</div> - <div id="q81" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%; ">Currently Do</div> - <div id="q82" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">< 6 Months</div> - <div id="q83" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">< 12 Months</div> - <div id="q84" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">12+ Months</div> - - <div style="clear: both"></div> - </div> - - <div id="q9" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Is It Time To Meet Someone New?</div> - <div id="q9y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q9n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - - <div id="q10" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Big And Lavish Wedding?</div> - <div id="q10y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q10y" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q11" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Would Your Partner Help Plan It?</div> - <div id="q11y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q11n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q12" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do You Beleive In Fate?</div> - <div id="q12y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q12n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q13" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do You Beleive In Psychic Powers?</div> - <div id="q13y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q13n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - - <div id="q14" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Did You Complete College?</div> - <div id="q14y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q14n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q15" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Did You Want Kids?</div> - <div id="q15y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q15n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - <div id="q16" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Did You Have Kids Already?</div> - <div id="q16y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q16n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q17" style="display: none"> - <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">"Your Best Match Is An Adventurious Lover!...They're out there, meet them."</div> - <div id="final"></div> - <div style="clear: both"></div> - </div> - - - - - <div id="adspace" style="display: none"> - </div> - - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> - - </div> - -</div> - diff --git a/Mobile.Search.Web/Views/Quiz/MarryContent.cshtml b/Mobile.Search.Web/Views/Quiz/MarryContent.cshtml deleted file mode 100644 index 367f21c..0000000 --- a/Mobile.Search.Web/Views/Quiz/MarryContent.cshtml +++ /dev/null @@ -1,358 +0,0 @@ -@{ - ViewBag.Title = "Index"; -} - -<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> -<script> - - function showAd(keyword) { - document.getElementById('adspace').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=content-marry&typeTagSuffix=content-marry&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - function showFinalAd(keyword) { - document.getElementById('final').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=content-marry&typeTagSuffix=content-marry&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - - - -</script> -<script> - $(document).ready( - function() { - $("#q1y").click(function() { - $("#q1").hide(); - $("#q2").show(); - }); - - $("#q1n").click(function () { - $("#q1").hide(); - $("#q2").show(); - }); - - $("#q2y").click(function () { - $("#q2").hide(); - $("#q3").show(); - }); - - $("#q2n").click(function () { - $("#q2").hide(); - $("#q3").show(); - }); - - $("#q31").click(function () { - $("#q3").hide(); - $("#q4").show(); - }); - - $("#q32").click(function () { - $("#q3").hide(); - $("#q4").show(); - }); - - $("#q33").click(function () { - $("#q3").hide(); - $("#q4").show(); - }); - - $("#q4y").click(function () { - $("#q4").hide(); - $("#q5").show(); - }); - - $("#q4n").click(function () { - $("#q4").hide(); - $("#q5").show(); - }); - - $("#q55").click(function () { - $("#q5").hide(); - $("#q6").show(); - }); - - $("#q51").click(function () { - $("#q5").hide(); - showAd('las+vegas+hotel'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#q52").click(function () { - $("#q5").hide(); - showAd('new+york+hotel'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#q53").click(function () { - $("#q5").hide(); - showAd('all+inclusive+resort'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#q54").click(function () { - $("#q5").hide(); - showAd('carribean+cruise'); - $("#adspace").show(); - $("#next1").show(); - }); - - - - - $("#next1").click(function() { - $("#adspace").hide(); - $("#next1").hide(); - $("#q6").show(); - }); - - $("#q6").click(function () { - $("#q6").hide(); - $("#q7").show(); - }); - - - $("#q7").click(function () { - $("#q7").hide(); - $("#q8").show(); - }); - - - $("#q8").click(function () { - $("#q8").hide(); - $("#q9").show(); - }); - - $("#q9y").click(function () { - $("#q9").hide(); - showAd('free+online+dating'); - $("#adspace").show(); - $("#next2").show(); - }); - - $("#q9n").click(function () { - $("#q9").hide(); - $("#q10").show(); - }); - - $("#next2").click(function () { - $("#adspace").hide(); - $("#next2").hide(); - $("#q10").show(); - }); - - - $("#q10").click(function () { - $("#q10").hide(); - $("#q11").show(); - }); - - $("#q11").click(function () { - $("#q11").hide(); - $("#q12").show(); - }); - - $("#q12").click(function () { - $("#q12").hide(); - $("#q13").show(); - }); - - $("#q13y").click(function () { - $("#q13").hide(); - showAd('psychic+reading'); - $("#adspace").show(); - $("#next3").show(); - }); - - $("#q13n").click(function () { - $("#q13").hide(); - $("#q14").show(); - }); - - $("#next3").click(function () { - $("#adspace").hide(); - $("#next3").hide(); - $("#q14").show(); - }); - - $("#q14").click(function () { - $("#q14").hide(); - $("#q15").show(); - }); - - $("#q15").click(function () { - $("#q15").hide(); - $("#q16").show(); - }); - - $("#q16").click(function () { - $("#q16").hide(); - showFinalAd('free+online+dating'); - $("#q17").show(); - }); - - - - - - }); -</script> - - -<div style="width: 100%; margin: 0 auto;"> - - <div text align="center"> - <div id="q1"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">What Is Your Gender?</div> - <div id="q1y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Male</div> - <div id="q1n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">Female</div> - <div style="clear: both"></div> - </div> - - <div id="q2" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Would You Have Traditional Wedding Attire?</div> - <div id="q2y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q2n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q3" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Where Would You Get Married?</div> - <div id="q31" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">Church</div> - <div id="q32" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Castle</div> - <div id="q33" style="background-color: #5b8fc4; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Big House</div> - <div style="clear: both"></div> - </div> - - <div id="q4" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Would You Honeymoon Right After The Wedding?</div> - <div id="q4y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q4n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q5" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Where Are You Most Interested In Going?</div> - <div id="q51" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%; ">Las Vegas</div> - <div id="q52" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">New York</div> - <div id="q53" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%; ">All-inclusive Resort</div> - <div id="q54" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%; ">Carribean Cruise</div> - - <div id="q55" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 10pt; width: 75%;">None Of These</div> - - </div> - - - - <div id="q6" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Which Do You Most Desire In Your Partner?</div> - <div id="q61" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%; ">Compassion</div> - <div id="q62" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">Generosity</div> - <div id="q63" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%; ">Empathy</div> - <div id="q64" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%; ">Adventure</div> - - <div style="clear: both"></div> - </div> - - <div id="q7" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Which Movie Would You Watch As A Couple?</div> - <div id="q71" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">Dispicable Me</div> - <div id="q72" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">Penguins Of Madagascar</div> - <div id="q73" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">Frozen</div> - <div id="q74" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">None Of The Above</div> - - <div style="clear: both"></div> - </div> - - <div id="q8" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">When Did You Last Have A Partner?</div> - <div id="q81" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%; ">Currently Do</div> - <div id="q82" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">< 6 Months</div> - <div id="q83" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">< 12 Months</div> - <div id="q84" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">12+ Months</div> - - <div style="clear: both"></div> - </div> - - <div id="q9" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Is It Time To Meet Someone New?</div> - <div id="q9y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q9n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - - <div id="q10" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Big And Lavish Wedding?</div> - <div id="q10y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q10y" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q11" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Would Your Partner Help Plan It?</div> - <div id="q11y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q11n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q12" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do You Beleive In Fate?</div> - <div id="q12y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q12n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q13" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do You Beleive In Psychic Powers?</div> - <div id="q13y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q13n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - - <div id="q14" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Did You Complete College?</div> - <div id="q14y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q14n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q15" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Did You Want Kids?</div> - <div id="q15y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q15n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - <div id="q16" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Did You Have Kids Already?</div> - <div id="q16y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q16n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q17" style="display: none"> - <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">"Your Best Match Is An Adventurious Lover!...They're out there, meet them."</div> - <div id="final"></div> - <div style="clear: both"></div> - </div> - - - - - <div id="adspace" style="display: none"> - </div> - - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> - - </div> - -</div> - - diff --git a/Mobile.Search.Web/Views/Quiz/PerfectMatch.cshtml b/Mobile.Search.Web/Views/Quiz/PerfectMatch.cshtml deleted file mode 100644 index 5491ed7..0000000 --- a/Mobile.Search.Web/Views/Quiz/PerfectMatch.cshtml +++ /dev/null @@ -1,224 +0,0 @@ -@{ - ViewBag.Title = "Index"; -} - -<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> -<script> - - function showAd(keyword) { - document.getElementById('adspace').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - function showFinalAd(keyword) { - document.getElementById('final').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - - - -</script> -<script> - $(document).ready( - function() { - $("#q1").click(function() { - $("#q1").hide(); - $("#q2").show(); - }); - - $("#q2").click(function () { - $("#q2").hide(); - showAd('house+cleaning+services'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#next1").click(function () { - $("#adspace").hide(); - $("#next1").hide(); - $("#q3").show(); - }); - - $("#q3").click(function () { - $("#q3").hide(); - $("#q4").show(); - }); - - - $("#q4y").click(function () { - $("#q4").hide(); - showAd('printable+coupons+oil+change'); - $("#adspace").show(); - $("#next2").show(); - }); - - $("#q4n").click(function () { - $("#q4").hide(); - $("#q5").show(); - }); - - - $("#next2").click(function () { - $("#adspace").hide(); - $("#next2").hide(); - $("#q5").show(); - }); - - $("#q5").click(function () { - $("#q5").hide(); - $("#q6").show(); - }); - - $("#q6").click(function () { - $("#q6").hide(); - $("#q7").show(); - }); - - $("#q7y").click(function () { - $("#q7").hide(); - showAd('cheap+airline+tickets'); - $("#adspace").show(); - $("#next3").show(); - }); - - $("#q7n").click(function () { - $("#q7").hide(); - $("#q8").show(); - }); - - - $("#next3").click(function () { - $("#adspace").hide(); - $("#next3").hide(); - $("#q8").show(); - }); - - $("#q8").click(function () { - $("#q8").hide(); - $("#q9").show(); - }); - - $("#q91").click(function () { - $("#q9").hide(); - showFinalAd('free+dating+site'); - document.getElementById('finalText').innerHTML = "You really need a SMART and ambitious man in your life. Someone who is likes to read, enjoys politics, and keeps up on current events. Your guy will work hard to get ahead at work and work hard to improve your home and surroundings. Find a guy who makes you feel secure in your future together."; - $("#finalholder").show(); - - }); - - $("#q92").click(function () { - $("#q9").hide(); - showFinalAd('free+dating+site'); - document.getElementById('finalText').innerHTML = "You really need a HOT and sexy man in your life. Someone who is passionate about fitness, and fashion, and food. Your guy will like to travel, play games, and try new things. Find someone who will keep your relationship hot and steamy and keep you on your toes."; - $("#finalholder").show(); - - }); - - $("#q93").click(function () { - $("#q9").hide(); - showFinalAd('free+dating+site'); - document.getElementById('finalText').innerHTML = "You really need a ZEN man in your life. Someone who believes in the powers of the spirit, in natural healing, and nourishing the body. Your guy will like yoga, outdoor activities, and learning new things. Find someone who feeds your soul and makes you feel enchanted."; - $("#finalholder").show(); - - }); - - - - - }); -</script> - - -<div style="width: 100%; margin: 0 auto;"> - - <div text align="center"> - <div id="q1"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Have you ever had your heart broken?</div> - <div id="q1y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Yes</div> - <div id="q1n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">No</div> - <div style="clear: both"></div> - </div> - - - <div id="q2" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">How clean do you keep your home?</div> - <div id="q21" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 15pt; width: 75%; ">Organized and Spotless</div> - <div id="q22" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 15pt; width: 75%;">A Little Messy</div> - <div id="q23" style="background-color: #5b8fc4; padding: 10px; color: white; font-family: 'arial'; font-size: 15pt; width: 75%;">Disaster Zone</div> - <div style="clear: both"></div> - </div> - - <div id="q3" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are you usually the one to break up?</div> - <div id="q3y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q3n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q4" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do You Like To Save Money?</div> - <div id="q4y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q4n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q5" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you enjoy discussions about politics and current events?</div> - <div id="q5y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Yes</div> - <div id="q5n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">No</div> - <div style="clear: both"></div> - </div> - - <div id="q6" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Is Religion Important To You?</div> - <div id="q6y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Yes</div> - <div id="q6n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">No</div> - <div style="clear: both"></div> - </div> - - <div id="q7" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do You Like To Travel</div> - <div id="q7y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Yes</div> - <div id="q7n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">No</div> - <div style="clear: both"></div> - </div> - - <div id="q8" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you find ambition important in your mate?</div> - <div id="q8y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Yes</div> - <div id="q8n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">No</div> - <div style="clear: both"></div> - </div> - - <div id="q9" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you believe true love comes from the...</div> - <div id="q91" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 15pt; width: 75%; ">Mind</div> - <div id="q92" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 15pt; width: 75%;">Body</div> - <div id="q93" style="background-color: #5b8fc4; padding: 10px; color: white; font-family: 'arial'; font-size: 15pt; width: 75%;">Spirit</div> - <div style="clear: both"></div> - </div> - - - - <div id="finalholder" style="display: none"> - <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;" id="finalText"></div> - <div id="final"></div> - <div style="clear: both"></div> - </div> - - - - - <div id="adspace" style="display: none"> - </div> - - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> - - </div> - -</div> - diff --git a/Mobile.Search.Web/Views/Quiz/SeductionMaster.cshtml b/Mobile.Search.Web/Views/Quiz/SeductionMaster.cshtml deleted file mode 100644 index 38a6a47..0000000 --- a/Mobile.Search.Web/Views/Quiz/SeductionMaster.cshtml +++ /dev/null @@ -1,358 +0,0 @@ -@{ - ViewBag.Title = "Index"; -} - -<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> -<script> - - function showAd(keyword) { - document.getElementById('adspace').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper='; - } - - function showFinalAd(keyword) { - document.getElementById('final').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper='; - } - - function showFinalAd2(keyword) { - document.getElementById('final2').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper='; - } - - - - -</script> -<script> - $(document).ready( - function () { - $("#q1").click(function () { - $("#q1").hide(); - $("#q2").show(); - }); - - - $("#q2").click(function () { - $("#q2").hide(); - $("#q3").show(); - }); - - - $("#q3n").click(function () { - $("#q3").hide(); - $("#q4").show(); - }); - - $("#q3y").click(function () { - $("#q3").hide(); - showAd('lipstick'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#next1").click(function () { - $("#adspace").hide(); - $("#next1").hide(); - $("#q4").show(); - }); - - $("#q4").click(function () { - $("#q4").hide(); - $("#q5").show(); - }); - - $("#q5").click(function () { - $("#q5").hide(); - $("#q6").show(); - }); - - $("#q6").click(function () { - $("#q6").hide(); - $("#q7").show(); - }); - - $("#q7n").click(function () { - $("#q7").hide(); - $("#q8").show(); - }); - - $("#q7y").click(function () { - $("#q7").hide(); - showAd('psychic+love+reading'); - $("#adspace").show(); - $("#next2").show(); - }); - - - - - - $("#next2").click(function () { - $("#adspace").hide(); - $("#next2").hide(); - $("#q8").show(); - }); - - - $("#q8").click(function () { - $("#q8").hide(); - $("#q9").show(); - }); - - - $("#q9").click(function () { - $("#q9").hide(); - $("#q10").show(); - - }); - - - $("#q10").click(function () { - $("#q10").hide(); - $("#q11").show(); - }); - - $("#q11y").click(function () { - $("#q11").hide(); - showAd('dry+shampoo'); - $("#adspace").show(); - $("#next4").show(); - }); - - $("#next4").click(function () { - $("#adspace").hide(); - $("#next4").hide(); - $("#q12").show(); - }); - - $("#q11n").click(function () { - $("#q11").hide(); - $("#q12").show(); - }); - - - $("#q12y").click(function () { - $("#q12").hide(); - showFinalAd('yoga+classes+online'); - $("#finaly").show(); - }); - - $("#q12n").click(function () { - $("#q12").hide(); - showFinalAd2('dating+sites'); - $("#finaln").show(); - }); - - - $("#q13").click(function () { - $("#q13").hide(); - $("#q14").show(); - }); - - $("#q14n").click(function () { - $("#q14").hide(); - showAd('car+dealers'); - $("#adspace").show(); - $("#next5").show(); - }); - - $("#next5").click(function () { - $("#adspace").hide(); - $("#next5").hide(); - $("#q15").show(); - }); - - $("#q14y").click(function () { - $("#q14").hide(); - $("#q15").show(); - }); - - $("#q15").click(function () { - $("#q15").hide(); - $("#q16").show(); - }); - - - - $("#q16n").click(function () { - $("#q16").hide(); - showAd('galaxy+s6+edge'); - $("#adspace").show(); - $("#next6").show(); - }); - - $("#q16y").click(function () { - $("#q16").hide(); - showAd('protective+cell+phone+covers'); - $("#adspace").show(); - $("#next6").show(); - }); - - $("#next6").click(function () { - $("#adspace").hide(); - $("#next6").hide(); - $("#q17").show(); - }); - - - - $("#q17").click(function () { - $("#q17").hide(); - $("#q18").show(); - }); - - $("#q18").click(function () { - $("#q18").hide(); - $("#q19").show(); - }); - - $("#q19y").click(function () { - $("#q19").hide(); - $("#finaly").show(); - }); - - $("#q19n").click(function () { - $("#q19").hide(); - $("#finaln").show(); - }); - - - - - - - - - - - }); -</script> - - -<div style="width: 100%; margin: 0 auto;"> - - <div text align="center"> - <div id="q1"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you have sultry moves to turn anyone on?</div> - <div id="q1y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q1n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q2" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you feel kissable?</div> - <div id="q2y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q2n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q3" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Want lustious, kissable lips?</div> - <div id="q3y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q3n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q4" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are you the one that normally parts ways at the end of a relationship?</div> - <div id="q4y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q4n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q5" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you feel left behind in a relationship?</div> - <div id="q5y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q5n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - - </div> - - - - <div id="q6" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Wonder why your relationships end?</div> - <div id="q6y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q6n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q7" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Want to find out why it ended?</div> - <div id="q7y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q7n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q8" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are you the dominate personality?</div> - <div id="q8y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q8n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q9" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you pay for dinner?</div> - <div id="q9y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q9n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - - - <div id="q10" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Does your style exude sex?</div> - <div id="q10y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q10n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q11" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Time for your hair to catchup with the rest of your style?</div> - <div id="q11y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q11n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q12" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Is it easy for you to meet the opposite sex?</div> - <div id="q12y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q12n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - - - <div id="finaly" style="display: none"> - <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">Keep working it! You may not be celebrity status yet, but things are going well enough to keep things rolling just fine. Get out there and have fun. Look for ways to revitalize yourself with more energy to help along the way. </div> - <div id="final"></div> - <div style="clear: both"></div> - </div> - - <div id="finaln" style="display: none"> - <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">Your on your way, don't get frustrated just yet. Maybe throw yourself online more and try more in-person meetups. </div> - <div id="final2"></div> - <div style="clear: both"></div> - </div> - - - - - - - <div id="adspace" style="display: none"> - </div> - - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next5">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next6">Next ></div> - - </div> - -</div> - - - - diff --git a/Mobile.Search.Web/Views/Quiz/SeductionMaster2.cshtml b/Mobile.Search.Web/Views/Quiz/SeductionMaster2.cshtml deleted file mode 100644 index d9f3d34..0000000 --- a/Mobile.Search.Web/Views/Quiz/SeductionMaster2.cshtml +++ /dev/null @@ -1,363 +0,0 @@ -@{ - ViewBag.Title = "Index"; -} - -<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> -<script> - - function showAd(keyword) { - document.getElementById('adspace').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - function showFinalAd(keyword) { - document.getElementById('final').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - function showFinalAd2(keyword) { - document.getElementById('final2').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - - - -</script> -<script> - $(document).ready( - function() { - $("#q1").click(function() { - $("#q1").hide(); - $("#q2").show(); - }); - - - $("#q2").click(function () { - $("#q2").hide(); - $("#q3").show(); - }); - - - $("#q3n").click(function () { - $("#q3").hide(); - $("#q4").show(); - }); - - $("#q3y").click(function () { - $("#q3").hide(); - showAd('free+cat+litter+coupons'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#next1").click(function () { - $("#adspace").hide(); - $("#next1").hide(); - $("#q4").show(); - }); - - $("#q4").click(function () { - $("#q4").hide(); - $("#q5").show(); - }); - - $("#q5n").click(function () { - $("#q5").hide(); - $("#q6").show(); - }); - - $("#q5y").click(function () { - $("#q5").hide(); - showAd('smoking+treatment'); - $("#adspace").show(); - $("#next2").show(); - }); - - $("#next2").click(function () { - $("#adspace").hide(); - $("#next2").hide(); - $("#q6").show(); - }); - - $("#q6").click(function () { - $("#q6").hide(); - $("#q7").show(); - }); - - $("#q7n").click(function () { - $("#q7").hide(); - $("#q8").show(); - }); - - $("#q7y").click(function () { - $("#q7").hide(); - showAd('lip+color'); - $("#adspace").show(); - $("#next3").show(); - }); - - - - - - $("#next3").click(function () { - $("#adspace").hide(); - $("#next3").hide(); - $("#q8").show(); - }); - - - $("#q8").click(function () { - $("#q8").hide(); - $("#q9").show(); - }); - - - $("#q9").click(function () { - $("#q9").hide(); - $("#q10").show(); - - }); - - - $("#q10").click(function () { - $("#q10").hide(); - $("#q11").show(); - }); - - $("#q11y").click(function () { - $("#q11").hide(); - showAd('psychic+love+reading'); - $("#adspace").show(); - $("#next4").show(); - }); - - $("#next4").click(function () { - $("#adspace").hide(); - $("#next4").hide(); - $("#q12").show(); - }); - - $("#q11n").click(function () { - $("#q11").hide(); - $("#q12").show(); - }); - - $("#q12").click(function () { - $("#q12").hide(); - $("#q13").show(); - }); - - $("#q13").click(function () { - $("#q13").hide(); - $("#q15").show(); - }); - - $("#q14").click(function () { - $("#q14").hide(); - $("#q15").show(); - }); - - $("#q15").click(function () { - $("#q15").hide(); - $("#q16").show(); - }); - - $("#q16y").click(function () { - $("#q16").hide(); - showAd('dry+shampoo'); - $("#adspace").show(); - $("#next5").show(); - }); - - $("#next5").click(function () { - $("#adspace").hide(); - $("#next5").hide(); - $("#q17").show(); - }); - - $("#q16n").click(function () { - $("#q16").hide(); - $("#q17").show(); - }); - - - - - $("#q17y").click(function () { - $("#q17").hide(); - showFinalAd('yoga+wear') - $("#finaly").show(); - }); - - $("#q17n").click(function () { - $("#q17").hide(); - showFinalAd2('dating+sites') - $("#finaln").show(); - }); - - - - - - - - - - - }); -</script> - - -<div style="width: 100%; margin: 0 auto;"> - - <div text align="center"> - <div id="q1"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you have sultry moves to turn anyone on?</div> - <div id="q1y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q1n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q2" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you have a basement full of cats?</div> - <div id="q2y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q2n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q3" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you have at least one cat?</div> - <div id="q3y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q3n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q4" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Would you kiss a smoker?</div> - <div id="q4y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q4n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q5" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you smoke?</div> - <div id="q5y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q5n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - - </div> - - - - <div id="q6" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you feel kissable?</div> - <div id="q6y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q6n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q7" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Want lustious, kissable lips?</div> - <div id="q7y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q7n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q8" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are you the one that normally parts ways?</div> - <div id="q8y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q8n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q9" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you feel left behind in a relationship?</div> - <div id="q9y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q9n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - - - <div id="q10" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Wonder why your relationships end?</div> - <div id="q10y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q10n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q11" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Want to find out why it ended?</div> - <div id="q11y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q11n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q12" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are you the dominate personality?</div> - <div id="q12y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q12n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q13" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you pay for dinner?</div> - <div id="q13y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q13n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q15" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Does your style exude sex?</div> - <div id="q15y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q15n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q16" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Time for your hair to catchup with the rest of your style?</div> - <div id="q16y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q16n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q17" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Is it easy for you to meet the opposite sex?</div> - <div id="q17y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q17n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - - - <div id="finaly" style="display: none"> - <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">Keep working it! You may not be celebrity status yet, but things are going well enough to keep things rolling just fine. Get out there and have fun. Look for ways to revitalize yourself with more energy to help along the way. </div> - <div id="final"></div> - <div style="clear: both"></div> - </div> - - <div id="finaln" style="display: none"> - <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">Your on your way, don't get frustrated just yet. Maybe throw yourself online more and try more in-person meetups. </div> - <div id="final2"></div> - <div style="clear: both"></div> - </div> - - - - - - - <div id="adspace" style="display: none"> - </div> - - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next5">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next6">Next ></div> - - </div> - -</div> - diff --git a/Mobile.Search.Web/Views/Quiz/SpiritAnimal.cshtml b/Mobile.Search.Web/Views/Quiz/SpiritAnimal.cshtml deleted file mode 100644 index fc381ba..0000000 --- a/Mobile.Search.Web/Views/Quiz/SpiritAnimal.cshtml +++ /dev/null @@ -1,332 +0,0 @@ -@{ - ViewBag.Title = "Index"; -} - -<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> -<script> - - function showAd(keyword) { - document.getElementById('adspace').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - function showFinalAd(keyword) { - document.getElementById('final').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - function showFinalAd2(keyword) { - document.getElementById('final2').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - - - -</script> -<script> - $(document).ready( - function() { - $("#q1").click(function() { - $("#q1").hide(); - $("#q2").show(); - }); - - - $("#q2").click(function () { - $("#q2").hide(); - $("#q3").show(); - }); - - - $("#q3").click(function () { - $("#q3").hide(); - $("#q4").show(); - }); - - $("#q41").click(function () { - $("#q4").hide(); - showAd('online+culinary+schools'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#q42").click(function () { - $("#q4").hide(); - showAd('online+nurses'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#q43").click(function () { - $("#q4").hide(); - showAd('master+degree+in+teaching'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#q44").click(function () { - $("#q4").hide(); - showAd('mba'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#q45").click(function () { - $("#q4").hide(); - showAd('degree+in+web+design'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#next1").click(function () { - $("#adspace").hide(); - $("#next1").hide(); - $("#q5").show(); - }); - - - $("#q5").click(function () { - $("#q5").hide(); - $("#q6").show(); - }); - - $("#q6").click(function () { - $("#q6").hide(); - $("#q7").show(); - }); - - - $("#q7").click(function () { - $("#q7").hide(); - $("#q8").show(); - }); - - - $("#q81").click(function () { - $("#q8").hide(); - $("#final1").show(); - }); - - $("#q82").click(function () { - $("#q8").hide(); - - $("#final2").show(); - }); - - - $("#q83").click(function () { - $("#q8").hide(); - - $("#final3").show(); - }); - - - $("#q84").click(function () { - $("#q8").hide(); - - $("#final4").show(); - }); - - - - - - - - - - $("#q16n").click(function () { - $("#q16").hide(); - showAd('galaxy+s6+edge'); - $("#adspace").show(); - $("#next6").show(); - }); - - $("#q16y").click(function () { - $("#q16").hide(); - showAd('protective+cell+phone+covers'); - $("#adspace").show(); - $("#next6").show(); - }); - - $("#next6").click(function () { - $("#adspace").hide(); - $("#next6").hide(); - $("#q17").show(); - }); - - - - $("#q17").click(function () { - $("#q17").hide(); - $("#q18").show(); - }); - - $("#q18").click(function () { - $("#q18").hide(); - $("#q19").show(); - }); - - $("#q19y").click(function () { - $("#q19").hide(); - $("#finaly").show(); - }); - - $("#q19n").click(function () { - $("#q19").hide(); - $("#finaln").show(); - }); - - - - - - - - - - - }); -</script> - - -<div style="width: 100%; margin: 0 auto;"> - - <div text align="center"> - <div id="q1"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px"> - How do you comfort a friend? - </div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Funny story</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Nurture them</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Just be there</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Send a card</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Nothing</div> - <div style="clear: both"></div> - </div> - - <div id="q2" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Favorite sport?</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Baseball</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Basketball</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Football</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Soccer</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">None of above</div> - <div style="clear: both"></div> - </div> - - <div id="q3" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Favorite subject in School?</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Math</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">English</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Art</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Phys Ed</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">None of above</div> - <div style="clear: both"></div> - </div> - - <div id="q4" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Greatest Interest For Study?</div> - <div id="q41" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Culinary School</div> - <div id="q42" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Nursing School</div> - <div id="q43" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Teaching Degree</div> - <div id="q44" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">MBA</div> - <div id="q45" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Web Design</div> - <div style="clear: both"></div> - </div> - - <div id="q5" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">At a party, which room do you choose?</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Kitchen</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Living Room</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Porch</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Wherever food is</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">None of above</div> - - </div> - - - - <div id="q6" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do You Have A Mate In Life?</div> - <div id="q6y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q6n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q7" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">How often do you visit family</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">1x week</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">1x month</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">< 1x month</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;"><1x year</div> - - - </div> - - <div id="q8" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do You Consider Yourself?</div> - <div id="q81" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Strategic</div> - <div id="q82" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Analytic</div> - <div id="q83" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Emotional</div> - <div id="q84" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Powerful</div> - - - </div> - - <div id="final1" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px">Your Spirit Animal:</div> - <div style="font-family: 'arial'; font-size: 30pt; padding: 10px">Bear</div> - <div style="font-family: 'arial'; font-size: 15pt; padding: 10px">Powers: Fighting ability—strength and speed—along with powers of strategic thinking </div> - - - - </div> - - <div id="final2" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px">Your Spirit Animal:</div> - <div style="font-family: 'arial'; font-size: 30pt; padding: 10px">Spider</div> - <div style="font-family: 'arial'; font-size: 15pt; padding: 10px">Powers: Artistic genius, ability to see patterns and sense trouble from a distance</div> - - - - </div> - - <div id="final3" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px">Your Spirit Animal:</div> - <div style="font-family: 'arial'; font-size: 30pt; padding: 10px">Swan</div> - <div style="font-family: 'arial'; font-size: 15pt; padding: 10px">Powers: Foretelling future through dreams, dream-walking</div> - - - - </div> - - <div id="final4" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px">Your Spirit Animal:</div> - <div style="font-family: 'arial'; font-size: 30pt; padding: 10px">Fox</div> - <div style="font-family: 'arial'; font-size: 15pt; padding: 10px">Powers: Stealth, night vision, ability to read and manipulate others' emotions</div> - - - - </div> - - - - - - - - <div id="adspace" style="display: none"> - </div> - - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next5">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next6">Next ></div> - - </div> - -</div> diff --git a/Mobile.Search.Web/Views/Quiz/SpiritAnimal2.cshtml b/Mobile.Search.Web/Views/Quiz/SpiritAnimal2.cshtml deleted file mode 100644 index 6611775..0000000 --- a/Mobile.Search.Web/Views/Quiz/SpiritAnimal2.cshtml +++ /dev/null @@ -1,344 +0,0 @@ -@{ - ViewBag.Title = "Index"; -} - -<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> -<script> - - function showAd(keyword) { - //document.getElementById('adspace').innerHTML = "<iframe id ='theiframe' src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400' ></iframe>"; - - document.getElementById('adspace').innerHTML = "<iframe id ='theiframe' src='/Quiz/Test' frameborder='0' width='100%' height='400' ></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - function showFinalAd(keyword) { - document.getElementById('final').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - function showFinalAd2(keyword) { - document.getElementById('final2').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - - - -</script> -<script> - $(document).ready( - function() { - $("#q1").click(function() { - $("#q1").hide(); - $("#q2").show(); - }); - - - $("#q2").click(function () { - $("#q2").hide(); - $("#q3").show(); - }); - - - $("#q3").click(function () { - $("#q3").hide(); - $("#q4").show(); - - }); - - $("#q41").click(function () { - $("#q4").hide(); - showAd('online+culinary+schools'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#q42").click(function () { - $("#q4").hide(); - showAd('online+nurses'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#q43").click(function () { - $("#q4").hide(); - showAd('master+degree+in+teaching'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#q44").click(function () { - $("#q4").hide(); - showAd('mba'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#q45").click(function () { - $("#q4").hide(); - showAd('degree+in+web+design'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#next1").click(function () { - $("#adspace").hide(); - $("#next1").hide(); - $("#q5").show(); - }); - - - $("#q5").click(function () { - $("#q5").hide(); - $("#q6").show(); - }); - - $("#q6").click(function () { - $("#q6").hide(); - $("#q7").show(); - }); - - - $("#q7").click(function () { - $("#q7").hide(); - $("#q8").show(); - }); - - - $("#q81").click(function () { - $("#q8").hide(); - $("#final1").show(); - }); - - $("#q82").click(function () { - $("#q8").hide(); - - $("#final2").show(); - }); - - - $("#q83").click(function () { - $("#q8").hide(); - - $("#final3").show(); - }); - - - $("#q84").click(function () { - $("#q8").hide(); - - $("#final4").show(); - }); - - - - - - - - - - $("#q16n").click(function () { - $("#q16").hide(); - showAd('galaxy+s6+edge'); - $("#adspace").show(); - $("#next6").show(); - }); - - $("#q16y").click(function () { - $("#q16").hide(); - showAd('protective+cell+phone+covers'); - $("#adspace").show(); - $("#next6").show(); - }); - - $("#next6").click(function () { - $("#adspace").hide(); - $("#next6").hide(); - $("#q17").show(); - }); - - - - $("#q17").click(function () { - $("#q17").hide(); - $("#q18").show(); - }); - - $("#q18").click(function () { - $("#q18").hide(); - $("#q19").show(); - }); - - $("#q19y").click(function () { - $("#q19").hide(); - $("#finaly").show(); - }); - - $("#q19n").click(function () { - $("#q19").hide(); - $("#finaln").show(); - }); - - - - - - - - - - - - - }); - function goNext(question) { - alert(question); - } -</script> -<style> -.container{position:relative;} -.overlay{top:0;left:0;width:90%;height:100%;position:absolute;} -</style> - -<div style="width: 100%; margin: 0 auto;"> - - <div text align="center"> - <div id="q1"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px"> - How do you comfort a friend? - </div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Funny story</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Nurture them</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Just be there</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Send a card</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Nothing</div> - <div style="clear: both"></div> - </div> - - <div id="q2" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Favorite sport?</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Baseball</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Basketball</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Football</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Soccer</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">None of above</div> - <div style="clear: both"></div> - </div> - - <div id="q3" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Favorite subject in School?</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Math</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">English</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Art</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Phys Ed</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">None of above</div> - <div style="clear: both"></div> - </div> - - <div id="q4" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Greatest Interest For Study?</div> - <div id="q41" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Culinary School</div> - <div id="q42" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Nursing School</div> - <div id="q43" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Teaching Degree</div> - <div id="q44" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">MBA</div> - <div id="q45" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Web Design</div> - <div style="clear: both"></div> - </div> - - <div id="q5" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">At a party, which room do you choose?</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Kitchen</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Living Room</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Porch</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Wherever food is</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">None of above</div> - - </div> - - - - <div id="q6" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do You Have A Mate In Life?</div> - <div id="q6y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q6n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q7" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">How often do you visit family</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">1x week</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">1x month</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">< 1x month</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;"><1x year</div> - - - </div> - - <div id="q8" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do You Consider Yourself?</div> - <div id="q81" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Strategic</div> - <div id="q82" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Analytic</div> - <div id="q83" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Emotional</div> - <div id="q84" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Powerful</div> - - - </div> - - <div id="final1" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px">Your Spirit Animal:</div> - <div style="font-family: 'arial'; font-size: 30pt; padding: 10px">Bear</div> - <div style="font-family: 'arial'; font-size: 15pt; padding: 10px">Powers: Fighting ability—strength and speed—along with powers of strategic thinking </div> - - - - </div> - - <div id="final2" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px">Your Spirit Animal:</div> - <div style="font-family: 'arial'; font-size: 30pt; padding: 10px">Spider</div> - <div style="font-family: 'arial'; font-size: 15pt; padding: 10px">Powers: Artistic genius, ability to see patterns and sense trouble from a distance</div> - - - - </div> - - <div id="final3" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px">Your Spirit Animal:</div> - <div style="font-family: 'arial'; font-size: 30pt; padding: 10px">Swan</div> - <div style="font-family: 'arial'; font-size: 15pt; padding: 10px">Powers: Foretelling future through dreams, dream-walking</div> - - - - </div> - - <div id="final4" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px">Your Spirit Animal:</div> - <div style="font-family: 'arial'; font-size: 30pt; padding: 10px">Fox</div> - <div style="font-family: 'arial'; font-size: 15pt; padding: 10px">Powers: Stealth, night vision, ability to read and manipulate others' emotions</div> - - - - </div> - - - - - - - <div id="adspace" style="display: none"> - </div> - - - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next5">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next6">Next ></div> - - </div> - -</div> - diff --git a/Mobile.Search.Web/Views/Quiz/SpiritAnimalContent.cshtml b/Mobile.Search.Web/Views/Quiz/SpiritAnimalContent.cshtml deleted file mode 100644 index 526e6c8..0000000 --- a/Mobile.Search.Web/Views/Quiz/SpiritAnimalContent.cshtml +++ /dev/null @@ -1,331 +0,0 @@ - - -<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> -<script> - - function showAd(keyword) { - document.getElementById('adspace').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=content-spiritanimal&typeTagSuffix=content-spiritanimal&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='1000'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - function showFinalAd(keyword) { - document.getElementById('final').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=content-spiritanimal&typeTagSuffix=content-spiritanimal&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='1000'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - function showFinalAd2(keyword) { - document.getElementById('final2').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=content-spiritanimal&typeTagSuffix=content-spiritanimal&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='1000'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - - - -</script> -<script> - $(document).ready( - function() { - $("#q1").click(function() { - $("#q1").hide(); - $("#q2").show(); - }); - - - $("#q2").click(function () { - $("#q2").hide(); - $("#q3").show(); - }); - - - $("#q3").click(function () { - $("#q3").hide(); - $("#q4").show(); - }); - - $("#q41").click(function () { - $("#q4").hide(); - showAd('online+culinary+schools'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#q42").click(function () { - $("#q4").hide(); - showAd('nursing+programs+online'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#q43").click(function () { - $("#q4").hide(); - showAd('master+degree+in+teaching'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#q44").click(function () { - $("#q4").hide(); - showAd('mba+entreprenuership'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#q45").click(function () { - $("#q4").hide(); - showAd('degree+in+web+design'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#next1").click(function () { - $("#adspace").hide(); - $("#next1").hide(); - $("#q5").show(); - }); - - - $("#q5").click(function () { - $("#q5").hide(); - $("#q6").show(); - }); - - $("#q6").click(function () { - $("#q6").hide(); - $("#q7").show(); - }); - - - $("#q7").click(function () { - $("#q7").hide(); - $("#q8").show(); - }); - - - $("#q81").click(function () { - $("#q8").hide(); - $("#final1").show(); - }); - - $("#q82").click(function () { - $("#q8").hide(); - - $("#final2").show(); - }); - - - $("#q83").click(function () { - $("#q8").hide(); - - $("#final3").show(); - }); - - - $("#q84").click(function () { - $("#q8").hide(); - - $("#final4").show(); - }); - - - - - - - - - - $("#q16n").click(function () { - $("#q16").hide(); - showAd('galaxy+s6+edge'); - $("#adspace").show(); - $("#next6").show(); - }); - - $("#q16y").click(function () { - $("#q16").hide(); - showAd('protective+cell+phone+covers'); - $("#adspace").show(); - $("#next6").show(); - }); - - $("#next6").click(function () { - $("#adspace").hide(); - $("#next6").hide(); - $("#q17").show(); - }); - - - - $("#q17").click(function () { - $("#q17").hide(); - $("#q18").show(); - }); - - $("#q18").click(function () { - $("#q18").hide(); - $("#q19").show(); - }); - - $("#q19y").click(function () { - $("#q19").hide(); - $("#finaly").show(); - }); - - $("#q19n").click(function () { - $("#q19").hide(); - $("#finaln").show(); - }); - - - - - - - - - - - }); -</script> - - -<div style="width: 100%; margin: 0 auto;"> - - <div text align="center"> - <div id="q1"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px"> - How do you comfort a friend? - </div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Funny story</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Nurture them</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Just be there</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Send a card</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Nothing</div> - <div style="clear: both"></div> - </div> - - <div id="q2" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Favorite sport?</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Baseball</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Basketball</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Football</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Soccer</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">None of above</div> - <div style="clear: both"></div> - </div> - - <div id="q3" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Favorite subject in School?</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Math</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">English</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Art</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Phys Ed</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">None of above</div> - <div style="clear: both"></div> - </div> - - <div id="q4" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Greatest Interest For Study?</div> - <div id="q41" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Culinary School</div> - <div id="q42" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Nursing School</div> - <div id="q43" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Teaching Degree</div> - <div id="q44" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">MBA</div> - <div id="q45" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Web Design</div> - <div style="clear: both"></div> - </div> - - <div id="q5" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">At a party, which room do you choose?</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Kitchen</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Living Room</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Porch</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Wherever food is</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">None of above</div> - - </div> - - - - <div id="q6" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do You Have A Mate In Life?</div> - <div id="q6y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q6n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q7" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">How often do you visit family</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">1x week</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">1x month</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">< 1x month</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;"><1x year</div> - - - </div> - - <div id="q8" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do You Consider Yourself?</div> - <div id="q81" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Strategic</div> - <div id="q82" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Analytic</div> - <div id="q83" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Emotional</div> - <div id="q84" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Powerful</div> - - - </div> - - <div id="final1" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px">Your Spirit Animal:</div> - <div style="font-family: 'arial'; font-size: 30pt; padding: 10px">Bear</div> - <div style="font-family: 'arial'; font-size: 15pt; padding: 10px">Powers: Fighting ability—strength and speed—along with powers of strategic thinking </div> - - - - </div> - - <div id="final2" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px">Your Spirit Animal:</div> - <div style="font-family: 'arial'; font-size: 30pt; padding: 10px">Spider</div> - <div style="font-family: 'arial'; font-size: 15pt; padding: 10px">Powers: Artistic genius, ability to see patterns and sense trouble from a distance</div> - - - - </div> - - <div id="final3" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px">Your Spirit Animal:</div> - <div style="font-family: 'arial'; font-size: 30pt; padding: 10px">Swan</div> - <div style="font-family: 'arial'; font-size: 15pt; padding: 10px">Powers: Foretelling future through dreams, dream-walking</div> - - - - </div> - - <div id="final4" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px">Your Spirit Animal:</div> - <div style="font-family: 'arial'; font-size: 30pt; padding: 10px">Fox</div> - <div style="font-family: 'arial'; font-size: 15pt; padding: 10px">Powers: Stealth, night vision, ability to read and manipulate others' emotions</div> - - - - </div> - - - - - - - - <div id="adspace" style="display: none"> - </div> - - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next5">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next6">Next ></div> - - </div> - -</div> - diff --git a/Mobile.Search.Web/Views/Quiz/SpiritAnimalExpanded.cshtml b/Mobile.Search.Web/Views/Quiz/SpiritAnimalExpanded.cshtml deleted file mode 100644 index 6c60747..0000000 --- a/Mobile.Search.Web/Views/Quiz/SpiritAnimalExpanded.cshtml +++ /dev/null @@ -1,337 +0,0 @@ -@{ - ViewBag.Title = "Index"; -} - -<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> -<script> - - function showAd(keyword) { - document.getElementById('adspace').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quizexpanded&keyword=" + keyword + "&c=4&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='1000'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - function showFinalAd(keyword) { - document.getElementById('final').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quizexpanded&keyword=" + keyword + "&c=4&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='1000'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - function showFinalAd2(keyword) { - document.getElementById('final2').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quizexpanded&keyword=" + keyword + "&c=4&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='1000'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - - - -</script> -<script> - $(document).ready( - function() { - $("#q1").click(function() { - $("#q1").hide(); - $("#q2").show(); - }); - - - $("#q2").click(function () { - $("#q2").hide(); - $("#q3").show(); - }); - - - $("#q3").click(function () { - $("#q3").hide(); - $("#q4").show(); - }); - - $("#q41").click(function () { - $("#q4").hide(); - showAd('online+culinary+schools'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#q42").click(function () { - $("#q4").hide(); - showAd('online+nurses'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#q43").click(function () { - $("#q4").hide(); - showAd('master+degree+in+teaching'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#q44").click(function () { - $("#q4").hide(); - showAd('mba'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#q45").click(function () { - $("#q4").hide(); - showAd('degree+in+web+design'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#next1").click(function () { - $("#adspace").hide(); - $("#next1").hide(); - $("#q5").show(); - }); - - - $("#q5").click(function () { - $("#q5").hide(); - $("#q6").show(); - }); - - $("#q6").click(function () { - $("#q6").hide(); - $("#q7").show(); - }); - - - $("#q7").click(function () { - $("#q7").hide(); - $("#q8").show(); - }); - - - $("#q81").click(function () { - $("#q8").hide(); - $("#final1").show(); - }); - - $("#q82").click(function () { - $("#q8").hide(); - - $("#final2").show(); - }); - - - $("#q83").click(function () { - $("#q8").hide(); - - $("#final3").show(); - }); - - - $("#q84").click(function () { - $("#q8").hide(); - - $("#final4").show(); - }); - - - - - - - - - - $("#q16n").click(function () { - $("#q16").hide(); - showAd('galaxy+s6+edge'); - $("#adspace").show(); - $("#next6").show(); - }); - - $("#q16y").click(function () { - $("#q16").hide(); - showAd('protective+cell+phone+covers'); - $("#adspace").show(); - $("#next6").show(); - }); - - $("#next6").click(function () { - $("#adspace").hide(); - $("#next6").hide(); - $("#q17").show(); - }); - - - - $("#q17").click(function () { - $("#q17").hide(); - $("#q18").show(); - }); - - $("#q18").click(function () { - $("#q18").hide(); - $("#q19").show(); - }); - - $("#q19y").click(function () { - $("#q19").hide(); - $("#finaly").show(); - }); - - $("#q19n").click(function () { - $("#q19").hide(); - $("#finaln").show(); - }); - - - - - - - - - - - }); -</script> - - -<div style="width: 100%; margin: 0 auto;"> - - <div text align="center"> - - - <div id="q1"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px"> - How do you comfort a friend? - </div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Funny story</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Nurture them</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Just be there</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Send a card</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Nothing</div> - <div style="clear: both"></div> - </div> - - <div id="q2" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Favorite sport?</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Baseball</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Basketball</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Football</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Soccer</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">None of above</div> - <div style="clear: both"></div> - </div> - - <div id="q3" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Favorite subject in School?</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Math</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">English</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Art</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Phys Ed</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">None of above</div> - <div style="clear: both"></div> - </div> - - <div id="q4" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Greatest Interest For Study?</div> - <div id="q41" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Culinary School</div> - <div id="q42" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Nursing School</div> - <div id="q43" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Teaching Degree</div> - <div id="q44" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">MBA</div> - <div id="q45" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Web Design</div> - <div style="clear: both"></div> - </div> - - <div id="q5" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">At a party, which room do you choose?</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Kitchen</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Living Room</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Porch</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Wherever food is</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">None of above</div> - - </div> - - - - <div id="q6" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do You Have A Mate In Life?</div> - <div id="q6y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q6n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q7" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">How often do you visit family</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">1x week</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">1x month</div> - <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">< 1x month</div> - <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;"><1x year</div> - - - </div> - - <div id="q8" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do You Consider Yourself?</div> - <div id="q81" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Strategic</div> - <div id="q82" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Analytic</div> - <div id="q83" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Emotional</div> - <div id="q84" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Powerful</div> - - - </div> - - <div id="final1" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px">Your Spirit Animal:</div> - <div style="font-family: 'arial'; font-size: 30pt; padding: 10px">Bear</div> - <div style="font-family: 'arial'; font-size: 15pt; padding: 10px">Powers: Fighting ability—strength and speed—along with powers of strategic thinking </div> - - - - </div> - - <div id="final2" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px">Your Spirit Animal:</div> - <div style="font-family: 'arial'; font-size: 30pt; padding: 10px">Spider</div> - <div style="font-family: 'arial'; font-size: 15pt; padding: 10px">Powers: Artistic genius, ability to see patterns and sense trouble from a distance</div> - - - - </div> - - <div id="final3" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px">Your Spirit Animal:</div> - <div style="font-family: 'arial'; font-size: 30pt; padding: 10px">Swan</div> - <div style="font-family: 'arial'; font-size: 15pt; padding: 10px">Powers: Foretelling future through dreams, dream-walking</div> - - - - </div> - - <div id="final4" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px">Your Spirit Animal:</div> - <div style="font-family: 'arial'; font-size: 30pt; padding: 10px">Fox</div> - <div style="font-family: 'arial'; font-size: 15pt; padding: 10px">Powers: Stealth, night vision, ability to read and manipulate others' emotions</div> - - - - </div> - - - - - - - - <div id="adspace" style="display: none"> - </div> - - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next5">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next6">Next ></div> - - - - </div> - -</div> - diff --git a/Mobile.Search.Web/Views/Quiz/Stalker.cshtml b/Mobile.Search.Web/Views/Quiz/Stalker.cshtml deleted file mode 100644 index 8a140ce..0000000 --- a/Mobile.Search.Web/Views/Quiz/Stalker.cshtml +++ /dev/null @@ -1,328 +0,0 @@ -@{ - ViewBag.Title = "Index"; -} - -<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> -<script> - - function showAd(keyword) { - document.getElementById('adspace').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - function showFinalAd(keyword) { - document.getElementById('final').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - - - -</script> -<script> - $(document).ready( - function() { - $("#q1").click(function() { - $("#q1").hide(); - $("#q2").show(); - }); - - $("#q2n").click(function () { - $("#q2").hide(); - $("#q3").show(); - }); - - $("#q2y").click(function () { - $("#q2").hide(); - showAd('mobile+spy'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#next1").click(function () { - $("#adspace").hide(); - $("#next1").hide(); - $("#q3").show(); - }); - - $("#q3").click(function () { - $("#q3").hide(); - $("#q4").show(); - }); - - $("#q4").click(function () { - $("#q4").hide(); - $("#q5").show(); - }); - - - $("#q5n").click(function () { - $("#q5").hide(); - $("#q6").show(); - }); - - $("#q5y").click(function () { - $("#q5").hide(); - showAd('cat+food+coupons'); - $("#adspace").show(); - $("#next2").show(); - }); - - $("#next2").click(function () { - $("#adspace").hide(); - $("#next2").hide(); - $("#q6").show(); - }); - - - - $("#q6").click(function () { - $("#q6").hide(); - $("#q7").show(); - }); - - - - - - $("#q7y").click(function () { - $("#q7").hide(); - showAd('tattoo+remover'); - $("#adspace").show(); - $("#next3").show(); - }); - - $("#next3").click(function () { - $("#adspace").hide(); - $("#next3").hide(); - $("#q8").show(); - }); - - $("#q7n").click(function () { - $("#q7").hide(); - $("#q8").show(); - }); - - - $("#q8").click(function () { - $("#q8").hide(); - $("#q9").show(); - }); - - - $("#q9").click(function () { - $("#q9").hide(); - showFinalAd('reverse+phone+number'); - $("#finaly").show(); - }); - - - $("#q10").click(function () { - $("#q10").hide(); - $("#q11").show(); - }); - - $("#q11y").click(function () { - $("#q11").hide(); - showAd('wavy+hair'); - $("#adspace").show(); - $("#next4").show(); - }); - - $("#next4").click(function () { - $("#adspace").hide(); - $("#next4").hide(); - $("#q12").show(); - }); - - $("#q11n").click(function () { - $("#q11").hide(); - $("#q12").show(); - }); - - - $("#q12").click(function () { - $("#q12").hide(); - $("#q13").show(); - }); - - $("#q13").click(function () { - $("#q13").hide(); - $("#q14").show(); - }); - - $("#q14n").click(function () { - $("#q14").hide(); - showAd('car+dealers'); - $("#adspace").show(); - $("#next5").show(); - }); - - $("#next5").click(function () { - $("#adspace").hide(); - $("#next5").hide(); - $("#q15").show(); - }); - - $("#q14y").click(function () { - $("#q14").hide(); - $("#q15").show(); - }); - - $("#q15").click(function () { - $("#q15").hide(); - $("#q16").show(); - }); - - - - $("#q16n").click(function () { - $("#q16").hide(); - showAd('galaxy+s6+edge'); - $("#adspace").show(); - $("#next6").show(); - }); - - $("#q16y").click(function () { - $("#q16").hide(); - showAd('protective+cell+phone+covers'); - $("#adspace").show(); - $("#next6").show(); - }); - - $("#next6").click(function () { - $("#adspace").hide(); - $("#next6").hide(); - $("#q17").show(); - }); - - - - $("#q17").click(function () { - $("#q17").hide(); - $("#q18").show(); - }); - - $("#q18").click(function () { - $("#q18").hide(); - $("#q19").show(); - }); - - $("#q19y").click(function () { - $("#q19").hide(); - $("#finaly").show(); - }); - - $("#q19n").click(function () { - $("#q19").hide(); - $("#finaln").show(); - }); - - - - - - - - - - - }); -</script> - - -<div style="width: 100%; margin: 0 auto;"> - - <div text align="center"> - <div id="q1"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Have you searched someones info online yet?</div> - <div id="q1y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q1n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q2" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you want to search someones past/ current info?</div> - <div id="q2y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q2n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q3" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you say hi to attractive strangers?</div> - <div id="q3y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q3n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q4" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you keep pursuing someone after a breakup?</div> - <div id="q4y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q4n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q5" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Have too many cats?</div> - <div id="q5y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q5n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - - </div> - - - - <div id="q6" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Have a tattoo of a previous lover?</div> - <div id="q6y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q6n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q7" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Want it removed?</div> - <div id="q7y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q7n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q8" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Feel like your actions are compulsive?</div> - <div id="q8y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q8n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q9" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Can't get someone out of your mind, when you aren't in theirs?</div> - <div id="q9y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> - <div id="q9n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - - - <div id="finaly" style="display: none"> - <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">Borderline obsessing. Try taking your mind off of them while you working on improving yourself. You could give into temptation, but resist the urge...</div> - <div id="final"></div> - <div style="clear: both"></div> - </div> - - - - - - - <div id="adspace" style="display: none"> - </div> - - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next5">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next6">Next ></div> - - </div> - -</div> - diff --git a/Mobile.Search.Web/Views/Quiz/Test.cshtml b/Mobile.Search.Web/Views/Quiz/Test.cshtml deleted file mode 100644 index 32f9d4d..0000000 --- a/Mobile.Search.Web/Views/Quiz/Test.cshtml +++ /dev/null @@ -1 +0,0 @@ -<a href="http://www.google.com" target="_new" style="font:50pt arial">CLICK ME</a> \ No newline at end of file diff --git a/Mobile.Search.Web/Views/Quiz/Vacation.cshtml b/Mobile.Search.Web/Views/Quiz/Vacation.cshtml deleted file mode 100644 index 39ff752..0000000 --- a/Mobile.Search.Web/Views/Quiz/Vacation.cshtml +++ /dev/null @@ -1,363 +0,0 @@ -@{ - ViewBag.Title = "Index"; -} - -<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> -<script> - - function showAd(keyword) { - document.getElementById('adspace').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - function showFinalAd1(keyword) { - document.getElementById('finalad1').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - function showFinalAd2(keyword) { - document.getElementById('finalad2').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - function showFinalAd3(keyword) { - document.getElementById('finalad3').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - function showFinalAd4(keyword) { - document.getElementById('finalad4').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; - //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; - } - - - - -</script> -<script> - $(document).ready( - function() { - $("#q1").click(function() { - $("#q1").hide(); - $("#q2").show(); - }); - - - $("#q2y").click(function () { - $("#q2").hide(); - showAd('all+inclusive+family+vacation'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#q2n").click(function () { - $("#q2").hide(); - showAd('adult+only+all+inclusive+resort'); - $("#adspace").show(); - $("#next1").show(); - }); - - $("#next1").click(function () { - $("#adspace").hide(); - $("#next1").hide(); - $("#q3").show(); - }); - - - $("#q3").click(function () { - $("#q3").hide(); - $("#q4").show(); - }); - - - $("#q4").click(function () { - $("#q4").hide(); - $("#q5").show(); - }); - - $("#q51").click(function () { - $("#q5").hide(); - showFinalAd1('discounted+first+class+airfare'); - $("#final1").show(); - }); - - $("#q52").click(function () { - $("#q5").hide(); - showFinalAd2('hawaii+cruise+vacations'); - $("#final2").show(); - }); - - $("#q53").click(function () { - $("#q5").hide(); - showFinalAd3('bahamas+travel'); - $("#final3").show(); - }); - - $("#q54").click(function () { - $("#q5").hide(); - showFinalAd4('cruise+in+the+mediterranean'); - $("#final4").show(); - }); - - - $("#next2").click(function () { - $("#adspace").hide(); - $("#next2").hide(); - $("#q6").show(); - }); - - - - $("#q6").click(function () { - $("#q6").hide(); - $("#q7").show(); - }); - - $("#q7").click(function () { - $("#q7").hide(); - $("#q8").show(); - }); - - - $("#q8y").click(function () { - $("#q8").hide(); - showAd('attention+deficit+disorder'); - $("#adspace").show(); - $("#next3").show(); - }); - - $("#q8n").click(function () { - $("#q8").hide(); - $("#q9").show(); - }); - - $("#next3").click(function () { - $("#adspace").hide(); - $("#next3").hide(); - $("#q9").show(); - }); - - - $("#q9y").click(function () { - $("#q9").hide(); - showFinalAd('brain+games'); - $("#finaly").show(); - }); - - $("#q9n").click(function () { - $("#q9").hide(); - showFinalAd2('custom+closet+organization'); - $("#finaln").show(); - }); - - - $("#q13").click(function () { - $("#q13").hide(); - $("#q14").show(); - }); - - $("#q14n").click(function () { - $("#q14").hide(); - showAd('car+dealers'); - $("#adspace").show(); - $("#next5").show(); - }); - - $("#next5").click(function () { - $("#adspace").hide(); - $("#next5").hide(); - $("#q15").show(); - }); - - $("#q14y").click(function () { - $("#q14").hide(); - $("#q15").show(); - }); - - $("#q15").click(function () { - $("#q15").hide(); - $("#q16").show(); - }); - - - - $("#q16n").click(function () { - $("#q16").hide(); - showAd('galaxy+s6+edge'); - $("#adspace").show(); - $("#next6").show(); - }); - - $("#q16y").click(function () { - $("#q16").hide(); - showAd('protective+cell+phone+covers'); - $("#adspace").show(); - $("#next6").show(); - }); - - $("#next6").click(function () { - $("#adspace").hide(); - $("#next6").hide(); - $("#q17").show(); - }); - - - - $("#q17").click(function () { - $("#q17").hide(); - $("#q18").show(); - }); - - $("#q18").click(function () { - $("#q18").hide(); - $("#q19").show(); - }); - - $("#q19y").click(function () { - $("#q19").hide(); - $("#finaly").show(); - }); - - $("#q19n").click(function () { - $("#q19").hide(); - $("#finaln").show(); - }); - - - - - - - - - - - }); -</script> - - -<div style="width: 100%; margin: 0 auto;"> - - <div text align="center"> - <div id="q1"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">How important is budget when planning vacations?</div> - <div id="q1y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 15pt; width: 75%;">Huge concern - on a tight budget.</div> - <div id="q1n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 15pt; width: 75%; ">It's important, but I plan for it.</div> - <div id="q1n" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 15pt; width: 75%; ">Money is no object.</div> - <div style="clear: both"></div> - </div> - - <div id="q2" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Who will be going with you?</div> - <div id="q2y" style="background-color: #74c680; padding: 11px; color: white; font-family: 'arial'; font-size: 15pt; width: 75%;">Kids and Adults</div> - <div id="q2n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 15pt; width: 75%;">Adults only.</div> - <div style="clear: both"></div> - </div> - - <div id="q3" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">I think the primary purpose of vacation is</div> - <div id="q3y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Having New Experiences</div> - <div id="q3n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">Relaxation</div> - <div style="clear: both"></div> - </div> - - <div id="q4" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">When are planning to take your next vacation?</div> - <div id="q4y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 15pt; width: 75%; ">Soon! - Within a Few Months</div> - <div id="q4n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 15pt; width: 75%; ">Within 6-12 Months</div> - <div id="q4n" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 15pt; width: 75%; ">Over a Year</div> - <div style="clear: both"></div> - </div> - - <div id="q5" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Which word best describes you?</div> - <div id="q51" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Worldly</div> - <div id="q52" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">Cerebral</div> - <div id="q53" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">Chill</div> - <div id="q54" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">Adventurous</div> - - </div> - - - - <div id="q6" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Have you ever needed someone to call your phone so you could find it?</div> - <div id="q6y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q6n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q7" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Anyone ever accused you of having ADD?</div> - <div id="q7y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q7n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q8" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Ever lost your shoes in your home?</div> - <div id="q8y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q8n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> - <div style="clear: both"></div> - </div> - - <div id="q9" style="display: none"> - <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Ever been late paying a bill because you forgot or misplaced it?</div> - <div id="q9y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> - <div id="q9n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> - <div style="clear: both"></div> - </div> - - - - <div id="final1" style="display: none"> - <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;"> - Your ideal vacation spot is overseas or big cities. You enjoy experiencing other cultures and trying new foods and learning traditions of other people. You will especially enjoy meeting new people and experiencing native rituals and local hot spots. Look for festivals around the world to enjoy the celebrations of individual cultures, and take in local shopping and landmarks. Make your bucket list of places you want to visit and start filling up that passport with stamps. - </div> - <div id="finalad1"></div> - <div style="clear: both"></div> - </div> - - <div id="final2" style="display: none"> - <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;"> - Your ideal vacation spot is historical and educational. You are fulfilled by enriching your mind and honoring the accomplishments of others. Visit museums, historical destinations, and monuments. You will also enjoy science exhibits and animal habitats. Make a destination bucket list for yourself and start checking off your brain enriching destinations as you visit. You will feel accomplished and enriched as you journey about the world. Consider a cruise to visit many different spots on your next trip. - </div> - <div id="finalad2"></div> - <div style="clear: both"></div> - </div> - - <div id="final3" style="display: none"> - <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;"> - You ideal vacation spot is connecting with nature. You are enriched by connecting with the earth and enjoying the outdoors. Visit island resorts, take a cruise, or go on a camping trip. You would also enjoy float trips, spas, or mountain ski resorts. You want a vacation to be a renewal of your spirit and want the experience to nourish your body and soul. Find destinations where you can hide out from the world and renew yourself. - </div> - <div id="finalad3"></div> - <div style="clear: both"></div> - </div> - - <div id="final4" style="display: none"> - <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;"> - Your ideal vacation spot is is a thrilling adventure trip. You thrive on trying new experiences and get a rush from thrill seeking. Visit theme parks, take outdoor adventure excursions, and visit exotic cultures. You will especially enjoy physical activities like hiking, safaris, ziplining, and thrill rides. You want a vacation to be a rush of excitement to get your heart racing. Start your bucket list now! - </div> - <div id="finalad4"></div> - <div style="clear: both"></div> - </div> - - - - - - - - <div id="adspace" style="display: none"> - </div> - - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next5">Next ></div> - <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next6">Next ></div> - - </div> - -</div> diff --git a/Mobile.Search.Web/Views/Search/Adstation.cshtml b/Mobile.Search.Web/Views/Search/Adstation.cshtml deleted file mode 100644 index 56744d8..0000000 --- a/Mobile.Search.Web/Views/Search/Adstation.cshtml +++ /dev/null @@ -1,65 +0,0 @@ -@using Mobile.Search.Web.Helpers -@using Mobile.Search.Web.Models -@model Mobile.Search.Web.Models.AdStation - -@{ - ViewBag.Title = "GuideQ"; - Layout = "~/Views/Search/_GuideQLayout.cshtml"; - -} - -<div style="height:0px !important;font-size: 0 !important;line-height: 0 !important;color:white;background-color:black"> - <a href="@Url.Action("bclick", "Search", new {keyword=Model.Keyword,referrer=Url.Encode((Request.UrlReferrer != null ? Request.UrlReferrer.ToString() : string.Empty)),ip=Model.Ip})">Click for results</a> -</div> -<div id="framecontainer"></div> -@*<iframe onload="Orient(this)" id="frame" src="@Model.Url" frameborder="0" height="100%" width="100%" style="margin:-.4em;" scrolling="no"></iframe>*@ -<noscript> - <div> - <a href="@Url.Action("nscriptclick", "Search", new {keyword=Model.Keyword,referrer=Url.Encode((Request.UrlReferrer != null ? Request.UrlReferrer.ToString() : string.Empty)),ip=Model.Ip})">Click for results</a> - </div> - - -</noscript> - - -<script type="text/javascript" language="javascript"> - - var maxheight = window.innerHeight; - var maxwidth = window.innerWidth; - - - function Orient(obj) { - - var maxheight = window.innerHeight; - var maxwidth = window.innerWidth; - - obj.height = maxheight; - //obj.width = maxwidth; - obj.width = '100%'; - - } - function search() { - var url = '/search/frame?q=' + $('#q').val() + '&layout=' + $('#template').val(); - document.getElementById('frame').src = url; - return false; - } - - var frame = document.createElement('iframe'); - frame.src = '@Html.Raw(Model.Url.ToString().Replace("'","\'"))'; - frame.onload = 'Orient(this)'; - frame.id = "frame"; - frame.frameBorder = "0"; - frame.width = '100%'; - frame.height = maxheight; - frame.scrolling = 'no'; - - var framecontainer = document.getElementById('framecontainer'); - - if (framecontainer != null) { - framecontainer.appendChild(frame); - } else { - - document.body.appendChild(frame); - } - -</script> diff --git a/Mobile.Search.Web/Views/Search/CSearch.cshtml b/Mobile.Search.Web/Views/Search/CSearch.cshtml deleted file mode 100644 index e5d702b..0000000 --- a/Mobile.Search.Web/Views/Search/CSearch.cshtml +++ /dev/null @@ -1,27 +0,0 @@ -@model Mobile.Search.Web.Models.FormSubmitModel - -@{ - Layout = null; -} - -<!DOCTYPE html> - -<html> - <head> - <title>Search</title> - <meta http-equiv="cache-control" content="max-age=0" /> - <meta http-equiv="cache-control" content="no-cache" /> - <meta http-equiv="expires" content="0" /> - <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" /> - <meta http-equiv="pragma" content="no-cache" /> - <script> - @if (Request.Headers["HTTP_REFERER"] == null) - { - @Html.Raw("window.location.href = '" + Model.U + "';") - } - </script> - </head> - <body> - @Html.Raw(Request.Headers["HTTP_REFERER"]) - </body> -</html> \ No newline at end of file diff --git a/Mobile.Search.Web/Views/Search/FormSubmit.cshtml b/Mobile.Search.Web/Views/Search/FormSubmit.cshtml deleted file mode 100644 index 9bbc16d..0000000 --- a/Mobile.Search.Web/Views/Search/FormSubmit.cshtml +++ /dev/null @@ -1,5 +0,0 @@ -@model Mobile.Search.Web.Models.FormSubmitModel -@{ - Layout = null; -} -<!DOCTYPE html><html><head><title></title></head><body><form name="myform" action="/search" method="GET"><input type="hidden" name="rurl" value="@Model.U" /> <button type="submit">Click Here To Proceed</button> </form><script language="javascript">document.myform.submit();</script></body></html> \ No newline at end of file diff --git a/Mobile.Search.Web/Views/Search/Google.cshtml b/Mobile.Search.Web/Views/Search/Google.cshtml deleted file mode 100644 index df92220..0000000 --- a/Mobile.Search.Web/Views/Search/Google.cshtml +++ /dev/null @@ -1,47 +0,0 @@ -@using Mobile.Search.Web.Extensions -@model Mobile.Search.Shared.Models.SearchResult - -@{ - Layout = null; -} - -<!DOCTYPE html> - -<html> - <head> - <title>@Model.Query</title> - <meta name="viewport" content="width=device-width, initial-scale=1"> - </head> - <body> - <h4 style="font-family:Arial, sans-serif">Search Results for '@Model.Query'</h4> - <div> - @foreach (var listing in Model.Listings.Where(x => x.BiddedListing)) - { - listing.ClickUrl = Model.ClickUrlFunc(listing); - listing.Description = listing.Description.BoldQuery(Model.Query).ToString(); - @Html.Partial("_Listing", listing) - } - @if (!Model.Listings.Any(x => x.BiddedListing)) - { - <span class="alert alert-danger">No Sponsored Results Available!</span> - foreach (var listing in Model.Listings.Where(x => !x.BiddedListing)) - { - listing.ClickUrl = Model.ClickUrlFunc(listing); - @Html.Partial("_Listing", listing) - } - } - - </div> - - <script> - (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ - (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), - m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) - })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); - - ga('create', 'UA-61438112-1', 'auto'); - ga('send', 'pageview'); - - </script> - </body> -</html> \ No newline at end of file diff --git a/Mobile.Search.Web/Views/Search/GoogleSingle.cshtml b/Mobile.Search.Web/Views/Search/GoogleSingle.cshtml deleted file mode 100644 index 1c77da7..0000000 --- a/Mobile.Search.Web/Views/Search/GoogleSingle.cshtml +++ /dev/null @@ -1,55 +0,0 @@ -@model Mobile.Search.Shared.Models.SearchResult - -@{ - Layout = null; - var listing = Model.Listings.First(x => x.BiddedListing); -} - -<!DOCTYPE html> - -<html> - <head> - <title>@Model.Query</title> - </head> - <body> - <center> - <table border="0" cellpadding="0" cellspacing="0" bgcolor="#ffffff"> - <tr><td><div style="height:0; width:300; background-color:#ffffff; font-size:2px; text-align:center; color:#ffffff">{{tagline}}</div></td></tr> - <tr> - <td> - <table border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ffffff"> - <tr> - <td width="300" bgcolor="#ffffff" style="font-size: 16px; font-family:'Open Sans', Arial, Helvetica, sans-serif; color:#464646;" align="center" valign="middle"> - <a href="@Model.ClickUrlFunc(listing)" style="color:#464646; text-decoration:none"> - <span style="color:royalblue;line-height:1.5em; font-size:14pt"> - @WebUtility.HtmlDecode(listing.Title) - </span><br/> - <span style="line-height:1.7em; font-weight:normal"> - @WebUtility.HtmlDecode(listing.Description) - </span> - <br/> - <span style="line-height:1.7em; font-size:11px; font-weight:normal"> - @listing.SiteHost - </span> - </a> - </td> - </tr> - <tr> - <td width="300" align="center" style="padding:0px 0px 45px 0px;"> - <a href="@Model.ClickUrlFunc(listing)" style="text-decoration: none; color:#FFFFFF"> - <img src="http://image.email.horoscopedaily.email/ia?id=dc3161bf22d8a665c1a829f7278d59d6" alt=""> - </a> - </td> - </tr> - </table> - </td> - </tr> - </table> - </center> - - @if (ViewBag.FooterHtml != null) - { - @Html.Raw(ViewBag.FooterHtml) - } - </body> -</html> \ No newline at end of file diff --git a/Mobile.Search.Web/Views/Search/MultiListing.cshtml b/Mobile.Search.Web/Views/Search/MultiListing.cshtml deleted file mode 100644 index 6aa52a0..0000000 --- a/Mobile.Search.Web/Views/Search/MultiListing.cshtml +++ /dev/null @@ -1,101 +0,0 @@ -@using Mobile.Search.Shared.Models -@model Mobile.Search.Shared.Models.SearchResult - -@{ - Layout = null; - var biddedListings = Model.Listings.Where(x => x.BiddedListing).OrderBy(x => x.Rank).ToList(); - var listing1 = default(Listing); - var listing2 = default(Listing); - var listing3 = default(Listing); - var listing4 = default(Listing); - - if (biddedListings.Count > 0) - { - listing1 = biddedListings[0]; - listing1.ClickUrl = Model.ClickUrlFunc(listing1); - } - if (biddedListings.Count > 1) - { - listing2 = biddedListings[1]; - listing2.ClickUrl = Model.ClickUrlFunc(listing2); - } - if (biddedListings.Count > 2) - { - listing3 = biddedListings[2]; - listing3.ClickUrl = Model.ClickUrlFunc(listing3); - } - if (biddedListings.Count > 3) - { - listing4 = biddedListings[3]; - listing4.ClickUrl = Model.ClickUrlFunc(listing4); - } - -} - -<!DOCTYPE html> - -<html> - <head> - <title>@Model.Query</title> - </head> - <body> - <center> - <table border="0" cellpadding="0" cellspacing="0" bgcolor="#ffffff"> - <tr> - <td><div style="height:0; width:300; background-color:#ffffff; font-size:2px; text-align:center; color:#ffffff">${HOTSPOT_TEXT}$</div></td> - </tr> - <tr> - <td> - <table border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ffffff"> - <tr> - <td width="320" bgcolor="#ffffff" style="font-size: 16px; font-family:Arial, Helvetica, sans-serif; color:#464646;" align="center" valign="middle"> - <a href="@listing1.ClickUrl" style="color:#464646; text-decoration:none"> - <table style="width:320px;" bgcolor="#ffffff" cellpadding="0" cellspacing="0" border="0"> - <tbody> - <tr> - <td style="color:#0053f9; font-family: Roboto, Arial, sans-serif; line-height:40px; font-size: 32px; text-align:center; padding:3px 10px 0px 10px;">@listing1.Title</td> - </tr> - <tr> - <td style="color:#000000; font-family: Roboto, Arial, sans-serif; font-size: 22px; padding:8px 10px 0px 10px; text-align:center;">@listing1.Description</td> - </tr> - <tr> - <td style="color:#000000; font-family: Roboto, Arial, sans-serif; font-size: 11px; padding-top:8px; padding-bottom:0px; text-align:center;">@listing1.SiteHost</td> - </tr> - </tbody> - </table> - </a> - </td> - </tr> - <tr> - <td width="320" align="center"> - <a href="@listing1.ClickUrl" style="text-decoration:none; color:#FFFFFF"> - <img src="/Content/Templates/images/one_click_cta.png" style="border:none" alt=""> - </a> - </td> - </tr> - </table> - </td> - </tr> - </table> - <table border="0" align="center" cellpadding="0" cellspacing="0"> - <tr> - <td height="1px" colspan="2" bgcolor="#515151"></td> - </tr> - @Html.Partial("_SubListing", listing2) - <tr> - <td height="1px" colspan="2" bgcolor="#515151"></td> - </tr> - - @Html.Partial("_SubListing", listing3) - <tr> - <td height="1px" colspan="2" bgcolor="#515151"></td> - </tr> - @Html.Partial("_SubListing", listing4) - </table> - </center> - @if (ViewBag.FooterHtml != null) - { - @Html.Raw(ViewBag.FooterHtml) - } - </body> -</html> \ No newline at end of file diff --git a/Mobile.Search.Web/Views/Search/MultiTerms.cshtml b/Mobile.Search.Web/Views/Search/MultiTerms.cshtml deleted file mode 100644 index 0c13fe1..0000000 --- a/Mobile.Search.Web/Views/Search/MultiTerms.cshtml +++ /dev/null @@ -1,218 +0,0 @@ -@model Mobile.Search.Web.Controllers.MultiTermsViewModel -@{ - Layout = null; -} - -<!DOCTYPE html> -<html> - <head> - <title>Search</title> - <meta name="viewport" content="width=device-width, initial-scale=1"> - <style> - /** - * base styles - **/ - html, body { - margin: 0; - padding: 0; - } - ul { - margin: 0; - padding: 0; - - } - .search-button { - list-style: none; - height: 2em; - font-size: 1.3em; - line-height: 2em; - } - ul li span { - font-family: arial, sans-serif; - font-weight:bolder; - width:100%; - } - /* hide these things */ - input[type=radio] { - position: absolute; - top: -9999px; - left: -9999px; - } - .search-results { - width: 100%; - padding-top:10px; - -webkit-box-shadow: 0px -5px 5px rgba(50, 50, 50, 0.5); - -moz-box-shadow: 0px -5px 5px rgba(50, 50, 50, 0.5); - box-shadow: 0px -5px 5px rgba(50, 50, 50, 0.5); - } - /**********************/ - - /** - * active/inactive states - **/ - .header { - background-color: #6a8bc9; - padding:10px; - } - .header span { - color: white; - font-size: 1.5em; - } - /************************/ - - /** - * button 1 (2nd li in the ul) - **/ - #listing-1 ~ ul li:nth-child(2) { - background-color: #f2f1ef; - border-bottom: solid 1px #bbb; - background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpBN0Y3NjZENkU1MTUxMUU0QUQ3MTk1MEI0NjIxREZFNSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpBN0Y3NjZEN0U1MTUxMUU0QUQ3MTk1MEI0NjIxREZFNSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkE3Rjc2NkQ0RTUxNTExRTRBRDcxOTUwQjQ2MjFERkU1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkE3Rjc2NkQ1RTUxNTExRTRBRDcxOTUwQjQ2MjFERkU1Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+We2GnwAAArRJREFUeNrcmi9IQ1EUxq/igsWgYQaDxeDCykAMGlYMFsOKRaMLE6YwQYUJOtCBggpO0KDBsrJgMVgsBhUsBovFYFnQYFlQmN+B80AU9d3z7vbOPPDxQO8d7+e59/ybbfV63fwHawsCktm66ccjAfVCb9AVdGfzGaXckBOQjgAQE3isQ7FPP36ClqGTZnukXQgRxyP7BYKsj+FyLQECm4GSP/yOYDaJtxVAJnysWfS5LhwQHKslPKI+lpJn9n7xXOge6YYiPtd6d2ZAI8gLh1q/NgxtQD2qQBD36aWuLbel+Jipu+wXwgCxpA3k0DaDwzqh1UbBiEBwvCiDL0CPllsjnEhTWjxCMOecwV8tt0bZK0kVIAxTwaMg2Jrg7J9QAcK2xeFVApNDgo1oATFc8ZYE+yYpLLuAaXd4TPehS2EBmtcEcg+loTPB3jy8ktEC4sHscoNla5tBYFyDkJ3znbHNMZ0MM64FxHCrS9GsJoCZAUxUC4jhKHYorMmymkDI5vjO2NqoNhCyI+jZck+XRpCY5MW0gVAEWrNojT170ASS4BpsQABxpAXEK9XjktCNqtq6OuhoAAQNGQ6MbKZVBkRByx3JCiFOuesUmWuPrBnZ3JfKmjS8UdUAQuX4oiBCUaFZCALh8mgl+UhJwuw8IC6DvoALkBFox3z/iuEvo2nlBg8xwk2IqFJ7uLuLCyCK0HHomR0QVHJvQ2OC7QSxoqVEoXHOlGDfmXBQ4R4E3qDph6QtPeV9VRUgXAxK+vmioAVuDAi8MSW4F1W+E1eayvhB4++rN8+euYCsaOtH3i3X77sMsy5BaGbldwJfch1mnYEgE9Nk5NbHUjpKs6ZJJo1ax+b3aeIFT1CMahB4hQZw5Z86PGjayMamYgv630E5Lhr7PmVt6tNrFn+U8EE02b8B+RBgADA1p/qLw9EIAAAAAElFTkSuQmCC') /*/Content/Images/blue-arrow.png*/; - background-size: 25px 25px; - background-repeat:no-repeat; - background-position: center left; - } - #listing-1 ~ ul li:nth-child(2) span { - color: #4d4d4d; - padding-left:30px; - } - - #listing-1:checked ~ ul li:nth-child(2) { - background-color: #6c6c6c; - background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCMTYwNzU5NkU1MTUxMUU0ODExQkM0RjREMjVCQTIxRiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCMTYwNzU5N0U1MTUxMUU0ODExQkM0RjREMjVCQTIxRiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkIxNjA3NTk0RTUxNTExRTQ4MTFCQzRGNEQyNUJBMjFGIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkIxNjA3NTk1RTUxNTExRTQ4MTFCQzRGNEQyNUJBMjFGIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+KyLN9wAAAr5JREFUeNrkmiFMY0EQhreECgziED2BOIMAUVODAFGDOIPAYDgJgsv1SCChJJBAk4OkJMAFLgFBBQaDwCAwmApOnEFgMAgMAgQGAUn5/2Re0kDgdue9lgEm+dOk3Unel9mdnZnXVK1Wc+/BUlqQ39VhfnyBctBn6A46hk58/H/07SYK0hrDdxD6BfXUfXcBzUA7zY5IizIaWXwUHkHQOgVu8k2AwEah/DO/EaYMjb8FkEGPNdOe614HBNuqiI+Mx1JGZv2FyL16RD5Bac+10ZnpsghyLanW13qhRajDFAjyPx/qb6DbkGwzc4f9SJkgitZAtnxv8Dprg+YbBaMCwfbiDT4FnQe6puUiHbISEdqh3OA3gX5M3UWk8bwVENoeVFL4sdAsAyZnBYS2LOlVAzMJmLQVECcV74bCj73AehIwLQlu0z9QVVmAzloCOYXGoAOF7yyiMm4FJIJZkwYr1MpxYJIGidLyjOKOaROYr1ZAnLS6zGa3CphRwGSsgDjJYlvKmqxgCYT2U85MqPVbA6FtQ1eBPu0WQXo0D2YNhBloIaA1juzMEkhOarAuBcS2FZCMNFBZTepGvxNcHbQ2AIJDhk2nm2ntAqJk5YwUlBD70nWqLOmILDjd3JdlzRiicWkBhOX4tCJDsdAsxYFIcmvlZUtp0uwEIKpxHyAJkD5o1T19xfA/47RyERCHFi7EDunusgqIJUBULNzsLLlXoAGFLyHmrJQofJkzovA7UA4qkgdB48Pph6Yt3Re/SxMgUgxq+vklRQvcGBBEY0RxLhgBnoljS2V8t/N79RbZlRSQe9b6kfvA9RzcVVyDTQPCmZXvBH5DtpQzB4L8z8nIP4+l3ErfXZNMm7Uq7uVp4pFMUJxpEESFA7jn/hXD37453dhUbXHK+ClJqywaO+tubfbpt67Jlvrw/9eyZg8CDAD9LKEpW+mYRgAAAABJRU5ErkJggg==') /*/Content/Images/green-arrow.png*/; - background-size: 25px 25px; - background-repeat:no-repeat; - background-position: center left; - width:100% - } - #listing-1:checked ~ ul li:nth-child(2) span { - color: white; - padding-left:30px; - } - - /** - * button 2 - **/ - #listing-2 ~ ul li:nth-child(3) { - background-color: #f2f1ef; - border-bottom: solid 1px #bbb; - background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpBN0Y3NjZENkU1MTUxMUU0QUQ3MTk1MEI0NjIxREZFNSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpBN0Y3NjZEN0U1MTUxMUU0QUQ3MTk1MEI0NjIxREZFNSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkE3Rjc2NkQ0RTUxNTExRTRBRDcxOTUwQjQ2MjFERkU1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkE3Rjc2NkQ1RTUxNTExRTRBRDcxOTUwQjQ2MjFERkU1Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+We2GnwAAArRJREFUeNrcmi9IQ1EUxq/igsWgYQaDxeDCykAMGlYMFsOKRaMLE6YwQYUJOtCBggpO0KDBsrJgMVgsBhUsBovFYFnQYFlQmN+B80AU9d3z7vbOPPDxQO8d7+e59/ybbfV63fwHawsCktm66ccjAfVCb9AVdGfzGaXckBOQjgAQE3isQ7FPP36ClqGTZnukXQgRxyP7BYKsj+FyLQECm4GSP/yOYDaJtxVAJnysWfS5LhwQHKslPKI+lpJn9n7xXOge6YYiPtd6d2ZAI8gLh1q/NgxtQD2qQBD36aWuLbel+Jipu+wXwgCxpA3k0DaDwzqh1UbBiEBwvCiDL0CPllsjnEhTWjxCMOecwV8tt0bZK0kVIAxTwaMg2Jrg7J9QAcK2xeFVApNDgo1oATFc8ZYE+yYpLLuAaXd4TPehS2EBmtcEcg+loTPB3jy8ktEC4sHscoNla5tBYFyDkJ3znbHNMZ0MM64FxHCrS9GsJoCZAUxUC4jhKHYorMmymkDI5vjO2NqoNhCyI+jZck+XRpCY5MW0gVAEWrNojT170ASS4BpsQABxpAXEK9XjktCNqtq6OuhoAAQNGQ6MbKZVBkRByx3JCiFOuesUmWuPrBnZ3JfKmjS8UdUAQuX4oiBCUaFZCALh8mgl+UhJwuw8IC6DvoALkBFox3z/iuEvo2nlBg8xwk2IqFJ7uLuLCyCK0HHomR0QVHJvQ2OC7QSxoqVEoXHOlGDfmXBQ4R4E3qDph6QtPeV9VRUgXAxK+vmioAVuDAi8MSW4F1W+E1eayvhB4++rN8+euYCsaOtH3i3X77sMsy5BaGbldwJfch1mnYEgE9Nk5NbHUjpKs6ZJJo1ax+b3aeIFT1CMahB4hQZw5Z86PGjayMamYgv630E5Lhr7PmVt6tNrFn+U8EE02b8B+RBgADA1p/qLw9EIAAAAAElFTkSuQmCC') /*/Content/Images/blue-arrow.png*/; - background-size: 25px 25px; - background-repeat:no-repeat; - background-position: center left; - } - #listing-2 ~ ul li:nth-child(3) span { - color: #4d4d4d; - padding-left:30px; - } - - #listing-2:checked ~ ul li:nth-child(3) { - background-color: #6c6c6c; - background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCMTYwNzU5NkU1MTUxMUU0ODExQkM0RjREMjVCQTIxRiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCMTYwNzU5N0U1MTUxMUU0ODExQkM0RjREMjVCQTIxRiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkIxNjA3NTk0RTUxNTExRTQ4MTFCQzRGNEQyNUJBMjFGIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkIxNjA3NTk1RTUxNTExRTQ4MTFCQzRGNEQyNUJBMjFGIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+KyLN9wAAAr5JREFUeNrkmiFMY0EQhreECgziED2BOIMAUVODAFGDOIPAYDgJgsv1SCChJJBAk4OkJMAFLgFBBQaDwCAwmApOnEFgMAgMAgQGAUn5/2Re0kDgdue9lgEm+dOk3Unel9mdnZnXVK1Wc+/BUlqQ39VhfnyBctBn6A46hk58/H/07SYK0hrDdxD6BfXUfXcBzUA7zY5IizIaWXwUHkHQOgVu8k2AwEah/DO/EaYMjb8FkEGPNdOe614HBNuqiI+Mx1JGZv2FyL16RD5Bac+10ZnpsghyLanW13qhRajDFAjyPx/qb6DbkGwzc4f9SJkgitZAtnxv8Dprg+YbBaMCwfbiDT4FnQe6puUiHbISEdqh3OA3gX5M3UWk8bwVENoeVFL4sdAsAyZnBYS2LOlVAzMJmLQVECcV74bCj73AehIwLQlu0z9QVVmAzloCOYXGoAOF7yyiMm4FJIJZkwYr1MpxYJIGidLyjOKOaROYr1ZAnLS6zGa3CphRwGSsgDjJYlvKmqxgCYT2U85MqPVbA6FtQ1eBPu0WQXo0D2YNhBloIaA1juzMEkhOarAuBcS2FZCMNFBZTepGvxNcHbQ2AIJDhk2nm2ntAqJk5YwUlBD70nWqLOmILDjd3JdlzRiicWkBhOX4tCJDsdAsxYFIcmvlZUtp0uwEIKpxHyAJkD5o1T19xfA/47RyERCHFi7EDunusgqIJUBULNzsLLlXoAGFLyHmrJQofJkzovA7UA4qkgdB48Pph6Yt3Re/SxMgUgxq+vklRQvcGBBEY0RxLhgBnoljS2V8t/N79RbZlRSQe9b6kfvA9RzcVVyDTQPCmZXvBH5DtpQzB4L8z8nIP4+l3ErfXZNMm7Uq7uVp4pFMUJxpEESFA7jn/hXD37453dhUbXHK+ClJqywaO+tubfbpt67Jlvrw/9eyZg8CDAD9LKEpW+mYRgAAAABJRU5ErkJggg==') /*/Content/Images/green-arrow.png*/; - background-size: 25px 25px; - background-repeat:no-repeat; - background-position: center left; - width:100% - } - #listing-2:checked ~ ul li:nth-child(3) span { - color: white; - padding-left:30px; - } - - /** - * button 3 - **/ - #listing-3 ~ ul li:nth-child(4) { - background-color: #f2f1ef; - border-bottom: solid 1px #bbb; - background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpBN0Y3NjZENkU1MTUxMUU0QUQ3MTk1MEI0NjIxREZFNSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpBN0Y3NjZEN0U1MTUxMUU0QUQ3MTk1MEI0NjIxREZFNSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkE3Rjc2NkQ0RTUxNTExRTRBRDcxOTUwQjQ2MjFERkU1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkE3Rjc2NkQ1RTUxNTExRTRBRDcxOTUwQjQ2MjFERkU1Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+We2GnwAAArRJREFUeNrcmi9IQ1EUxq/igsWgYQaDxeDCykAMGlYMFsOKRaMLE6YwQYUJOtCBggpO0KDBsrJgMVgsBhUsBovFYFnQYFlQmN+B80AU9d3z7vbOPPDxQO8d7+e59/ybbfV63fwHawsCktm66ccjAfVCb9AVdGfzGaXckBOQjgAQE3isQ7FPP36ClqGTZnukXQgRxyP7BYKsj+FyLQECm4GSP/yOYDaJtxVAJnysWfS5LhwQHKslPKI+lpJn9n7xXOge6YYiPtd6d2ZAI8gLh1q/NgxtQD2qQBD36aWuLbel+Jipu+wXwgCxpA3k0DaDwzqh1UbBiEBwvCiDL0CPllsjnEhTWjxCMOecwV8tt0bZK0kVIAxTwaMg2Jrg7J9QAcK2xeFVApNDgo1oATFc8ZYE+yYpLLuAaXd4TPehS2EBmtcEcg+loTPB3jy8ktEC4sHscoNla5tBYFyDkJ3znbHNMZ0MM64FxHCrS9GsJoCZAUxUC4jhKHYorMmymkDI5vjO2NqoNhCyI+jZck+XRpCY5MW0gVAEWrNojT170ASS4BpsQABxpAXEK9XjktCNqtq6OuhoAAQNGQ6MbKZVBkRByx3JCiFOuesUmWuPrBnZ3JfKmjS8UdUAQuX4oiBCUaFZCALh8mgl+UhJwuw8IC6DvoALkBFox3z/iuEvo2nlBg8xwk2IqFJ7uLuLCyCK0HHomR0QVHJvQ2OC7QSxoqVEoXHOlGDfmXBQ4R4E3qDph6QtPeV9VRUgXAxK+vmioAVuDAi8MSW4F1W+E1eayvhB4++rN8+euYCsaOtH3i3X77sMsy5BaGbldwJfch1mnYEgE9Nk5NbHUjpKs6ZJJo1ax+b3aeIFT1CMahB4hQZw5Z86PGjayMamYgv630E5Lhr7PmVt6tNrFn+U8EE02b8B+RBgADA1p/qLw9EIAAAAAElFTkSuQmCC') /*/Content/Images/blue-arrow.png*/; - background-size: 25px 25px; - background-repeat:no-repeat; - background-position: center left; - } - #listing-3 ~ ul li:nth-child(4) span { - color: #4d4d4d; - padding-left:30px; - } - - #listing-3:checked ~ ul li:nth-child(4) { - background-color: #6c6c6c; - background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCMTYwNzU5NkU1MTUxMUU0ODExQkM0RjREMjVCQTIxRiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCMTYwNzU5N0U1MTUxMUU0ODExQkM0RjREMjVCQTIxRiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkIxNjA3NTk0RTUxNTExRTQ4MTFCQzRGNEQyNUJBMjFGIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkIxNjA3NTk1RTUxNTExRTQ4MTFCQzRGNEQyNUJBMjFGIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+KyLN9wAAAr5JREFUeNrkmiFMY0EQhreECgziED2BOIMAUVODAFGDOIPAYDgJgsv1SCChJJBAk4OkJMAFLgFBBQaDwCAwmApOnEFgMAgMAgQGAUn5/2Re0kDgdue9lgEm+dOk3Unel9mdnZnXVK1Wc+/BUlqQ39VhfnyBctBn6A46hk58/H/07SYK0hrDdxD6BfXUfXcBzUA7zY5IizIaWXwUHkHQOgVu8k2AwEah/DO/EaYMjb8FkEGPNdOe614HBNuqiI+Mx1JGZv2FyL16RD5Bac+10ZnpsghyLanW13qhRajDFAjyPx/qb6DbkGwzc4f9SJkgitZAtnxv8Dprg+YbBaMCwfbiDT4FnQe6puUiHbISEdqh3OA3gX5M3UWk8bwVENoeVFL4sdAsAyZnBYS2LOlVAzMJmLQVECcV74bCj73AehIwLQlu0z9QVVmAzloCOYXGoAOF7yyiMm4FJIJZkwYr1MpxYJIGidLyjOKOaROYr1ZAnLS6zGa3CphRwGSsgDjJYlvKmqxgCYT2U85MqPVbA6FtQ1eBPu0WQXo0D2YNhBloIaA1juzMEkhOarAuBcS2FZCMNFBZTepGvxNcHbQ2AIJDhk2nm2ntAqJk5YwUlBD70nWqLOmILDjd3JdlzRiicWkBhOX4tCJDsdAsxYFIcmvlZUtp0uwEIKpxHyAJkD5o1T19xfA/47RyERCHFi7EDunusgqIJUBULNzsLLlXoAGFLyHmrJQofJkzovA7UA4qkgdB48Pph6Yt3Re/SxMgUgxq+vklRQvcGBBEY0RxLhgBnoljS2V8t/N79RbZlRSQe9b6kfvA9RzcVVyDTQPCmZXvBH5DtpQzB4L8z8nIP4+l3ErfXZNMm7Uq7uVp4pFMUJxpEESFA7jn/hXD37453dhUbXHK+ClJqywaO+tubfbpt67Jlvrw/9eyZg8CDAD9LKEpW+mYRgAAAABJRU5ErkJggg==') /*/Content/Images/green-arrow.png*/; - background-size: 25px 25px; - background-repeat:no-repeat; - background-position: center left; - width:100% - } - #listing-3:checked ~ ul li:nth-child(4) span { - color: white; - padding-left:30px; - } - - - - /* Hide the correct div when the keyword isn't selected'*/ - #listing-1 ~ div.search-results > div:nth-child(1) { - display: none; - } - #listing-2 ~ div.search-results > div:nth-child(2) { - display: none; - } - #listing-3 ~ div.search-results > div:nth-child(3) { - display: none; - } - - /* Show the correct div when the keyword is selected */ - #listing-1:checked ~ div.search-results > div:nth-child(1) { - display: block; - } - #listing-2:checked ~ div.search-results > div:nth-child(2) { - display: block; - } - #listing-3:checked ~ div.search-results > div:nth-child(3) { - display: block; - } - </style> - </head> - <body> - <input type="radio" name="g" id="listing-1"> - <input type="radio" name="g" checked="checked" id="listing-2"> - <input type="radio" name="g" id="listing-3"> - <ul> - <li class="header"> - <span> - What's Your Passion? - </span> - </li> - <li class="search-button"> - <label for="listing-1"> - <span> - Online Nursing Schools - </span> - </label> - </li> - <li class="search-button"> - <label for="listing-2"> - <span> - Interior Design School - </span> - </label> - </li> - <li class="search-button listing-3"> - <label for="listing-3"> - <span> - Photography Courses - </span> - </label> - </li> - </ul> - - - <!--Search Results are shown within here--> - <div class="search-results"> - @Html.Action("Listing","Search",new { keyword = "online+nursing+schools", type = 1, subid = Model.Subid, clickWrapper = Model.ClickWrapper}) - @Html.Action("Listing","Search",new { keyword = "interior+design+school", type = 1, subid = Model.Subid, clickWrapper = Model.ClickWrapper}) - @Html.Action("Listing","Search",new { keyword = "photography+courses", type = 1, subid = Model.Subid, clickWrapper = Model.ClickWrapper}) - </div> - - @Html.Raw(Model.FooterHtml) - </body> -</html> \ No newline at end of file diff --git a/Mobile.Search.Web/Views/Search/RedBlack.cshtml b/Mobile.Search.Web/Views/Search/RedBlack.cshtml deleted file mode 100644 index 18642ab..0000000 --- a/Mobile.Search.Web/Views/Search/RedBlack.cshtml +++ /dev/null @@ -1,65 +0,0 @@ -@using System.Activities.Statements -@using Mobile.Search.Web.Extensions -@model Mobile.Search.Shared.Models.SearchResult - -@{ - Layout = null; -} - -<!DOCTYPE html> - -<html> -<head> - <title>@Model.Query</title> - <link rel="stylesheet" href="~/Content/redblack.css"/> -</head> -<body> - <div id="container"> - <div class="adk_re_primary"> - <div class="adk_re_panel"> - <div class="adk_re_head"> - <div class="adk_re_logo_left"> - <span class="adk_re_logo_text"></span> - </div> - <span class="adk_re_results_tag" style="font-size:24pt;"> - Top 5 Results for <strong>@Model.Query</strong>! - </span> - @if (!Model.Listings.Any(x => x.BiddedListing)) - { - <span class="alert alert-danger">No Results Found</span> - } - @foreach (var listing in Model.Listings.Where(x => x.BiddedListing)) - { - <a class="adk_re_ahref" target="_blank" href="@Model.ClickUrlFunc(listing)"> - <li class="adk_re_siteLink"> - <table class="adk_re_link_table"> - <tbody> - <tr> - <td class="adk_re_index">@listing.Rank</td> - <td class="adk_re_title_desc"> - <div class="adk_re_title"> - @Html.Raw(listing.Title.BoldQuery(Model.Query)) - </div> - <div class="adk_re_desc"> - Sponsored: @Html.Raw(listing.SiteHost) - <br/> - @Html.Raw(listing.Description.BoldQuery(Model.Query)) - </div> - </td> - </tr> - </tbody> - </table> - </li> - </a> - } - </div> - </div> - </div> - </div> - <div class="width:90%"></div> - @if (ViewBag.FooterHtml != null) - { - @Html.Raw(ViewBag.FooterHtml) - } -</body> -</html> diff --git a/Mobile.Search.Web/Views/Search/Test.cshtml b/Mobile.Search.Web/Views/Search/Test.cshtml deleted file mode 100644 index a76371b..0000000 --- a/Mobile.Search.Web/Views/Search/Test.cshtml +++ /dev/null @@ -1,93 +0,0 @@ -@using Mobile.Search.Shared -@{ - ViewBag.Title = "GuideQ"; - Layout = "~/Views/Search/_GuideQLayout.cshtml"; - -} -<br /><br /> -<div class="container"> - <form id="testform" class="form-horizontal" role="form"> - <div class="form-group"> - <label class="control-label col-sm-2">Search Query</label> - <div class="col-sm-10"> - <input id="q" type="text" class="form-control" placeholder="Search" /> - </div> - </div> - <div class="form-group"> - <label class="control-label col-sm-2">Template</label> - <div class="col-sm-10"> - <select class="form-control" id="template"> - <option id="google">Google</option> - <option id="redblack">RedBlack</option> - <option id="google_single">Google_Single</option> - <option id="multi_listing">Multi_Listing</option> - </select> - </div> - </div> - <div class="form-group"> - <label class="control-label col-sm-2">Source Tag</label> - <div class="col-sm-10"> - <select class="form-control" style="max-width:330px" id="source-tag"> - @foreach (var kvp in YahooTags.SourceTagDictionary) - { - if (kvp.Key == 2) - { - <option id="@kvp.Key" selected>@kvp.Value</option> - } - else - { - <option id="@kvp.Key">@kvp.Value</option> - } - } - </select> - </div> - </div> - <div class="form-group"> - <label class="control-label col-sm-2">Ad Count</label> - <div class="col-sm-10"> - <input id="c" type="text" class="form-control" value="5"/> - </div> - </div> - <div class="form-group"> - <label class="control-label col-sm-2"> - User Agent - </label> - <div class="col-sm-10"> - <pre><code>Mozilla/5.0 (Linux; U; Android 4.0.3; ko-kr; LG-L160L Build/IML74K) AppleWebkit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30</code></pre> - </div> - </div> - <div class="form-group"> - <label class="control-label col-sm-2"> - Frame Url - </label> - <div class="col-sm-10"> - <pre><code id="frameUrl">n/a</code></pre> - </div> - </div> - <button type="submit" class="btn btn-lg btn-primary">Test</button> - </form> -</div> -<iframe onload="Orient(this)" id="frame" src="about:blank" frameborder="0" height="100%" width="100%" scrolling="no"></iframe> - - -@section scripts { - <script type="text/javascript" language="javascript"> - $(function() { - $('#testform').submit(function(e) { - e.preventDefault(); - var url = '/search/frame?keyword=' + $('#q').val() + '&layout=' + $('#template').val() + '&c=' + $('#c').val() + '&type=' + $('#source-tag').children(':selected').attr('id'); - document.getElementById('frame').src = url; - $('#frameUrl').html(url); - return false; - }); - }); - - function Orient(obj) { - var maxheight = window.innerHeight; - var maxWidth = window.innerWidth; - - obj.height = maxheight; - obj.width = maxWidth; - } - </script> -} diff --git a/Mobile.Search.Web/Views/Search/_GuideQLayout.cshtml b/Mobile.Search.Web/Views/Search/_GuideQLayout.cshtml deleted file mode 100644 index d9aa4a3..0000000 --- a/Mobile.Search.Web/Views/Search/_GuideQLayout.cshtml +++ /dev/null @@ -1,57 +0,0 @@ -<!DOCTYPE html> -<html> -<head> - <meta charset="utf-8" /> - <meta name="viewport" content="width=device-width, initial-scale=1.0"> - <title>@ViewBag.Title </title> - @Styles.Render("~/Content/css") - @Scripts.Render("~/bundles/modernizr") - -</head> -<body style="padding-top:0px;"> - @*<div class="navbar navbar-inverse navbar-fixed-top"> - <div class="container"> - <div class="navbar-header"> - <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> - <span class="icon-bar"></span> - <span class="icon-bar"></span> - <span class="icon-bar"></span> - </button> - @* @Html.ActionLink("Application name", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" }) * @ - <span class="navbar-brand">GuideQ</span> - </div> - <div class="navbar-collapse collapse"> - <ul class="nav navbar-nav"> - @*<li>@Html.ActionLink("Home", "Index", "Home")</li> - <li>@Html.ActionLink("About", "About", "Home")</li> - <li>@Html.ActionLink("Contact", "Contact", "Home")</li>* @ - </ul> - @* @Html.Partial("_LoginPartial")* @ - </div> - </div> - </div>*@ - <div class="container body-content" style="padding:0;max-width: 100%;"> - @RenderBody() - <hr /> - <footer> - <p>© @DateTime.Now.Year - GuideQ</p> - </footer> - </div> - - @Scripts.Render("~/bundles/jquery") - @Scripts.Render("~/bundles/bootstrap") - @RenderSection("scripts", required: false) - - <script> - (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ - (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), - m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) - })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); - - ga('create', 'UA-61438112-1', 'auto'); - ga('send', 'pageview'); - - </script> - -</body> -</html> diff --git a/Mobile.Search.Web/Views/Search/_Listing.cshtml b/Mobile.Search.Web/Views/Search/_Listing.cshtml deleted file mode 100644 index f310634..0000000 --- a/Mobile.Search.Web/Views/Search/_Listing.cshtml +++ /dev/null @@ -1,11 +0,0 @@ -@using Mobile.Search.Web.Extensions -@model Mobile.Search.Shared.Models.Listing - -<div style="font-family:arial, sans-serif"> - <a href="@Model.ClickUrl" target="_blank" style="text-decoration: none; color:#1a0dab; line-height:1.2; font-size:18px;"> - @Html.Raw(Model.Title) - </a> - <br/> - <cite style="color:green; line-height:15px; font-size:small; font-style: normal">@Model.SiteHost</cite> - <p style="margin-top:3px; color:#545454; font-size:small">@Html.Raw(Model.Description)</p> -</div> diff --git a/Mobile.Search.Web/Views/Search/_SubListing.cshtml b/Mobile.Search.Web/Views/Search/_SubListing.cshtml deleted file mode 100644 index da73cd4..0000000 --- a/Mobile.Search.Web/Views/Search/_SubListing.cshtml +++ /dev/null @@ -1,22 +0,0 @@ -@model Mobile.Search.Shared.Models.Listing - -<tr> - <td width="280" bgcolor="#ffffff" align="center" valign="top"> - <a href="@Model.ClickUrl"> - <table style="/*width:${WIDTH}$px;height:${HEIGHT}$px;*/" bgcolor="#ffffff" cellpadding="0" cellspacing="0" border="0"> - <tbody> - <tr> - <td width="280px" bgcolor="#ffffff" style="color:#0368f4; font-family:Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 17px; text-align:left; padding:10px 10px 0px 10px; font-weight:bold">@Model.Title</td> - </tr> - <tr> - <td width="280px" bgcolor="#ffffff" style="color:#000000; font-family:Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; padding:0px 10px 10px 10px; text-align:left;">@Model.Description</td> - </tr> - - </tbody> - </table> - </a> - </td> -<td width="40" bgcolor="#ffffff" align="center" valign="middle"> - <a href="@Model.ClickUrl"><img src="~/Content/Templates/images/ia.gif" alt="" width="40" height="63" border="0" style="display:block" /></a> -</td> -</tr> \ No newline at end of file diff --git a/Mobile.Search.Web/Views/Shared/Purple.cshtml b/Mobile.Search.Web/Views/Shared/Purple.cshtml deleted file mode 100644 index d9a5def..0000000 --- a/Mobile.Search.Web/Views/Shared/Purple.cshtml +++ /dev/null @@ -1,45 +0,0 @@ -@using Mobile.Search.Web.Extensions -@model Mobile.Search.Shared.Models.SearchResult -@{ - var fontSize = 18; -} - <div class="listing"> - @foreach (var listing in Model.Listings.Where(x => x.BiddedListing)) - { - listing.ClickUrl = Model.ClickUrlFunc(listing); - listing.Description = listing.Description.BoldQuery(Model.Query).ToString(); - - if (listing.Rank == 1) - { - - <div style="font-family: arial, sans-serif;padding-left:10px;margin-bottom:10px;float:left;width:280px;"> - <a href="@listing.ClickUrl" target="_blank" style="text-decoration: none; color: #6a8bc9; line-height: 1.2; font-size:25px; font-weight:bolder"> - @Html.Raw(listing.Title) - </a> - <br /> - <div style="margin-top: 3px; color: #545454; font-size: small; font-weight:bold;font-size:16px;">@Html.Raw(listing.Description)</div> - <cite style="color: #8ebb59; line-height: 15px; font-size: small; font-style: normal;font-weight:bolder;">@listing.SiteHost</cite> - </div> - <div style="clear:both"></div> - - } - else - { - - <div style="font-family: arial, sans-serif;margin-top:10px;margin-bottom:10px;padding-left:10px;"> - <a href="@listing.ClickUrl" target="_blank" style="text-decoration: none; color: #6a8bc9; line-height: 1.2; font-size: 18px;"> - @Html.Raw(listing.Title) - </a> - <br /> - <div style="margin-top: 3px; color: #545454; font-size: small">@Html.Raw(listing.Description)</div> - <cite style="color: #8ebb59; line-height: 15px; font-size: small; font-style: normal">@listing.SiteHost</cite> - </div> - - } - <hr style=" border: 0;height: 0;border-top: 1px solid rgba(0, 0, 0, 0.1);border-bottom: 1px solid rgba(255, 255, 255, 0.3);"/> - } - @if (!Model.Listings.Any(x => x.BiddedListing)) - { - <span class="alert alert-danger">No Sponsored Results Available!</span> - } - </div> diff --git a/Mobile.Search.Web/Views/Shared/_Layout.cshtml b/Mobile.Search.Web/Views/Shared/_Layout.cshtml deleted file mode 100644 index f9e54fe..0000000 --- a/Mobile.Search.Web/Views/Shared/_Layout.cshtml +++ /dev/null @@ -1,65 +0,0 @@ -<!DOCTYPE html> -<html> -<head> - <meta charset="utf-8" /> - <meta name="viewport" content="width=device-width, initial-scale=1.0"> - <title>@ViewBag.Title</title> - @Styles.Render("~/Content/css") - @Scripts.Render("~/bundles/modernizr") - @RenderSection("head", false) - - <style> - /* login page */ -#loginForm { - border-right: solid 2px #c8c8c8; - float: left; - width: 55%; -} - - #loginForm .validation-error { - display: block; - margin-left: 15px; - } - - #loginForm .validation-summary-errors ul { - margin: 0; - padding: 0; - } - - #loginForm .validation-summary-errors li { - display: inline; - list-style: none; - margin: 0; - } - - #loginForm input { - width: 250px; - } - - #loginForm input[type="checkbox"], - #loginForm input[type="submit"], - #loginForm input[type="button"], - #loginForm button { - width: auto; - } - </style> -</head> -<body> - <div class="navbar navbar-inverse navbar-fixed-top"> - <div class="container"> - <div class="navbar-header"> - </div> - <div class="navbar-collapse collapse"> - </div> - </div> - </div> - <div class="container body-content"> - @RenderBody() - <hr /> - </div> - - @Scripts.Render("~/bundles/jquery") - @Scripts.Render("~/bundles/bootstrap") - @RenderSection("scripts", required: false) -</body> -</html> diff --git a/Mobile.Search.Web/Views/Shared/_LoginPartial.cshtml b/Mobile.Search.Web/Views/Shared/_LoginPartial.cshtml deleted file mode 100644 index f996508..0000000 --- a/Mobile.Search.Web/Views/Shared/_LoginPartial.cshtml +++ /dev/null @@ -1,22 +0,0 @@ -@using Microsoft.AspNet.Identity -@if (Request.IsAuthenticated) -{ - using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm", @class = "navbar-right" })) - { - @Html.AntiForgeryToken() - - <ul class="nav navbar-nav navbar-right"> - <li> - @Html.ActionLink("Hello " + User.Identity.GetUserName() + "!", "Index", "Manage", routeValues: null, htmlAttributes: new { title = "Manage" }) - </li> - <li><a href="javascript:document.getElementById('logoutForm').submit()">Log off</a></li> - </ul> - } -} -else -{ - <ul class="nav navbar-nav navbar-right"> - <li>@Html.ActionLink("Register", "Register", "Account", routeValues: null, htmlAttributes: new { id = "registerLink" })</li> - <li>@Html.ActionLink("Log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })</li> - </ul> -} diff --git a/Mobile.Search.Web/Views/Template/AdvertiserBlacklist.cshtml b/Mobile.Search.Web/Views/Template/AdvertiserBlacklist.cshtml deleted file mode 100644 index 560e55d..0000000 --- a/Mobile.Search.Web/Views/Template/AdvertiserBlacklist.cshtml +++ /dev/null @@ -1,46 +0,0 @@ -@model List<Dictionary<string, string>> - -@{ - Layout = "~/Views/Shared/_Layout.cshtml"; -} - -<h2>Advertiser URL Blacklist</h2> -<table class="table table-bordered"> - <thead> - <tr> - <th>Keyword</th> - <th>Advertiser URL</th> - </tr> - </thead> - <tbody> - @foreach (var item in Model) - { - <tr> - <td>@item["keyword"]</td> - <td>@item["advertiserUrl"]</td> - <td> - <div class="btn-group"> - @Html.ActionLink("Remove", "AdvertiserBlacklist", new { keyword = item["keyword"], advertiserUrl = item["advertiserUrl"], remove = "true" }, new { @class = "btn btn-danger btn-sm" }) - </div> - </td> - </tr> - } - </tbody> -</table> -<script> - function add() { - var keyword = $('#add-keyword').val(); - var adveriserUrl = $('#add-advertiserUrl').val(); - if (keyword && keyword.length > 0 && adveriserUrl && adveriserUrl.length > 0) { - window.location = '/Template/AdvertiserBlacklist?add=true&advertiserUrl=' + encodeURIComponent(adveriserUrl) + '&keyword=' + encodeURIComponent(keyword); - } - } -</script> -<h4 style="margin-top:30px;">Add Advertiser URL</h4> -<div class="form-inline"> - <input type="text" value="" class="form-control form-group" name="keyword" id="add-keyword" style="width:300px;" placeholder="keyword" /> - <input type="text" value="" class="form-control form-group" name="advertiserUrl" id="add-advertiserUrl" style="width:300px;" placeholder="advertiser url" /> - <span class="input-group-btn form-group"> - <a href="#" class="btn btn-primary" onclick="add();">Add</a> - </span> -</div> diff --git a/Mobile.Search.Web/Views/Template/Edit.cshtml b/Mobile.Search.Web/Views/Template/Edit.cshtml deleted file mode 100644 index 5b58dc3..0000000 --- a/Mobile.Search.Web/Views/Template/Edit.cshtml +++ /dev/null @@ -1,144 +0,0 @@ -@model KeyValuePair<string,string> - -@{ - ViewBag.Title = "Edit"; - Layout = null; -} - -<html> -<head> - <title>Template Edit</title> - <link rel="stylesheet" href="~/Scripts/CodeMirror/lib/codemirror.css"/> - <link rel="stylesheet" href="~/Content/panes.css"/> - <link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/pure-min.css"> - <style> - /* Pane configuration */ - .left.col { width: 450px; } - .right.col {left: 450px;right: 0; } - .header.row {height: 45px;line-height: 45px; } - .body.row {top: 45px;bottom: 0px; } - .footer.row {height: 0;bottom: 0;line-height: 0; } - .wide{width:100%;} - .CodeMirror{ - height: auto; - } - - /* 5 min effort iOS-like styles */ - /* Very rough, 5-minute effort at iOS-like styles. I'm sure you can do better... */ - - body { font-family: 'Helvetica Neue', Arial, Sans-Serif; } - .header, .footer { - color: #eee;text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);padding: 0 0.5em; - background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #696f77), color-stop(100%, #28343b)); - background: -webkit-linear-gradient(top, #696f77 0%, #28343b 100%);background: -ms-linear-gradient(top, #696f77 0%, #28343b 100%); - } - .header { font-size: 1.4em; } - .right.col { border-left: 1px solid black; } - - </style> -</head> -<body> - @using (Html.BeginForm("Edit", "Template", FormMethod.Post, new {@class = "pure-form pure-form-stacked" })) - { - - <div class="left col"> - <div class="header row"> - Options - </div> - <div class="body row scroll-y"> - <div style="width: 90%; margin:auto "> - - <div class="pure-control-group"> - <label for="Key">Template Key</label> - @Html.TextBoxFor(x => x.Key, new { @class = "wide" }) - </div> - <div class="pure-controls"> - <button type="submit" class="pure-button pure-button-primary">Save Changes</button> - </div> - - </div> - <br/> - <div style="width: 100%; text-align: center"> - <h3>Preview </h3> - <iframe width="375" height="650" src="/search/template?templateKey=@Model.Key&keyword=audi+a4&debug=true" style="border: solid 1px black; margin: auto"></iframe> - </div> - - </div> - </div> - <div class="right col"> - <div class="header row"> - Html - </div> - <div class="body row scroll-y"> - @Html.TextAreaFor(x => x.Value) - </div> - </div> - } - @*@using (Html.BeginForm("Edit", "Template", FormMethod.Post)) - { - <div class="container"> - <div style="overflow-y: hidden; float: left;width: 24%;min-width:450px"> - <div class="options-container" style="overflow-y: auto; overflow-x: hidden; "> - <div class="form-group"> - <span><strong>Key:</strong><label class="control-label">@Model.Key</label></span> - </div> - <div class="form-group"> - <label class="control-label">Template Key</label> - @Html.TextBoxFor(x => x.Key, new {@class = "form-control"}) - </div> - <div class="form-group"> - <button type="submit" class="btn btn-primary">Save Changes</button> - </div> - - <br/> - Preview - <iframe width="375" height="650" style="border: solid 1px black;"></iframe> - - </div> - - </div> - <div class="code-container" style="float: left; width:70%"> - @Html.TextAreaFor(x => x.Value) - </div> - </div> - } - @Scripts.Render("~/bundles/bootstrap") - <script type="text/javascript" src="~/Scripts/codemirror-2.37/lib/codemirror.js"></script> - <script type="text/javascript" src="~/Scripts/codemirror-2.37/mode/xml/xml.js"></script> - <script type="text/javascript" src="~/Scripts/codemirror-2.37/mode/javascript/javascript.js"></script> - <script type="text/javascript" src="~/Scripts/codemirror-2.37/mode/css/css.js"></script> - <script type="text/javascript" src="~/Scripts/codemirror-2.37/mode/htmlmixed/htmlmixed.js"></script> - <script> - function sizeCodeMirror() { - $('.CodeMirror').css('height', ($(window).height()) + 'px'); - $('.CodeMirror').css('width', ($('.code-container').get(0).clientWidth) + 'px'); - $('.options-container').css('max-height', ($(window).height()) + 'px'); - } - $(function() { - CodeMirror.fromTextArea(document.getElementById('Value'), { - lineNumbers: true, - mode: "htmlmixed" - }); - - sizeCodeMirror(); - }); - $(window).resize(function() { - sizeCodeMirror(); - }); - </script>*@ - @Scripts.Render("~/bundles/jquery") - <script type="text/javascript" src="~/Scripts/CodeMirror/lib/codemirror.js"></script> - <script type="text/javascript" src="~/Scripts/CodeMirror/mode/xml/xml.js"></script> - <script type="text/javascript" src="~/Scripts/CodeMirror/mode/javascript/javascript.js"></script> - <script type="text/javascript" src="~/Scripts/CodeMirror/mode/css/css.js"></script> - <script type="text/javascript" src="~/Scripts/CodeMirror/mode/htmlmixed/htmlmixed.js"></script> -<script> - $(function() { - CodeMirror.fromTextArea(document.getElementById('Value'), { - lineNumbers: true, - mode: "htmlmixed" - }); - }); -</script> -</body> -</html> \ No newline at end of file diff --git a/Mobile.Search.Web/Views/Template/FroalaIndex.cshtml b/Mobile.Search.Web/Views/Template/FroalaIndex.cshtml deleted file mode 100644 index 0f33127..0000000 --- a/Mobile.Search.Web/Views/Template/FroalaIndex.cshtml +++ /dev/null @@ -1,286 +0,0 @@ -@model KeyValuePair<string, string> - -@{ - ViewBag.Title = "FroalaIndex"; - Layout = null; -} - -<html> -<head> - <title>Template Edit</title> - <link rel="stylesheet" href="~/Scripts/CodeMirror/lib/codemirror.css" /> - <link rel="stylesheet" href="~/Content/panes.css" /> - <link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/pure-min.css"> - <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/froala-editor/2.7.6/js/plugins/paragraph_style.min.js" type="text/javascript" /> - <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/froala-editor/2.7.6/js/plugins/video.min.js" type="text/javascript" /> - <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/froala-editor/2.7.6/js/plugins/inline_style.min.js" type="text/javascript" /> - <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/froala-editor/2.7.6/js/third_party/image_aviary.min.js" type="text/javascript" /> - <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/froala-editor/2.7.6/js/plugins/table.min.js" type="text/javascript" /> - <link rel="stylesheet" href="../css/plugins/table.min.css"> - <link href="https://cdnjs.cloudflare.com/ajax/libs/froala-editor/2.7.6/css/plugins/table.css" rel="stylesheet" type="text/css" /> - <link href="https://cdnjs.cloudflare.com/ajax/libs/froala-editor/2.7.6/css/plugins/table.min.css" rel="stylesheet" type="text/css" /> - <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" /> - <link href="https://cdnjs.cloudflare.com/ajax/libs/froala-editor/2.7.6/css/plugins/image.css" rel="stylesheet" type="text/css" /> - <link href="https://cdnjs.cloudflare.com/ajax/libs/froala-editor/2.7.6/css/plugins/video.css" rel="stylesheet" type="text/css" /> - <link href="https://cdnjs.cloudflare.com/ajax/libs/froala-editor/2.7.6/css/plugins/video.min.css" rel="stylesheet" type="text/css" /> - <link href="https://cdnjs.cloudflare.com/ajax/libs/froala-editor/2.7.6/css/plugins/image_manager.css" rel="stylesheet" type="text/css" /> - <link href="https://cdnjs.cloudflare.com/ajax/libs/froala-editor/2.7.6/css/plugins/image_manager.min.css" rel="stylesheet" type="text/css" /> - <link href="https://cdnjs.cloudflare.com/ajax/libs/froala-editor/2.7.6/css/plugins/image.min.css" rel="stylesheet" type="text/css" /> - <!-- Include Editor style. --> - <link href="https://cdnjs.cloudflare.com/ajax/libs/froala-editor/2.7.6/css/froala_editor.pkgd.min.css" rel="stylesheet" type="text/css" /> - <link href="https://cdnjs.cloudflare.com/ajax/libs/froala-editor/2.7.6/css/froala_style.min.css" rel="stylesheet" type="text/css" /> - - <!-- Create a tag that we will use as the editable area. --> - <style> - /* Pane configuration */ - .left.col { - width: 33%; - } - - .right.col { - left: 33%; - right: 0; - } - - .header.row { - height: 45px; - line-height: 45px; - text-align: center; - } - - .body.row { - top: 45px; - bottom: 0px; - } - - .footer.row { - height: 0; - bottom: 0; - line-height: 0; - } - - .wide { - width: 100%; - } - - .CodeMirror { - height: auto; - } - - /* 5 min effort iOS-like styles */ - /* Very rough, 5-minute effort at iOS-like styles. I'm sure you can do better... */ - - body { - font-family: 'Helvetica Neue', Arial, Sans-Serif; - } - - .header, .footer { - color: #eee; - text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5); - padding: 0 0.5em; - background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #696f77), color-stop(100%, #28343b)); - background: -webkit-linear-gradient(top, #696f77 0%, #28343b 100%); - background: -ms-linear-gradient(top, #696f77 0%, #28343b 100%); - } - - .header { - font-size: 1.4em; - } - - .right.col { - border-left: 1px solid black; - } - </style> -</head> -<body> - @using (Html.BeginForm("FroalaIndex", "Template", FormMethod.Post, new { @class = "pure-form pure-form-stacked" })) - { - - <div class="left col"> - <div class="header row"> - Options - </div> - <div class="body row scroll-y"> - <div style="width: 50%; margin-right:10px;margin-left:40px"> - - <div class="pure-control-group"> - <label for="Key">Template Key</label> - @Html.TextBoxFor(x => x.Key, new { @class = "wide", id = "KeyValue" }) - </div> - <br /> - <div class="pure-controls"> - <button type="submit" class="pure-button pure-button-primary">Save Changes</button> - </div> - - </div> - <br /> - <div style="width: 100%; margin-right:10px;margin-left:40px"> - <h3>Send test Email </h3> - - - @Html.TextBox("EmailId", "", new { align = "center!important", style = "display: inline-block !important", id = "EmailId" }) - <br /><br /> - <div class="pure-controls"> - <button type="submit" id="SendEmail" class="pure-button pure-button-primary">Send Email</button> - </div> - - <br /> <br /> - <div id="sent_to_email"> - <div class="alert alert-success" role="alert"> - <strong>Email to : <u><strong id="email_id"></strong></u> Send Successfully</strong> - </div> - <br /> <br /> - </div> - <div id="sent_to_email_failed"> - <div class="alert alert-success" role="alert"> - <strong>Email to : <u><strong id="email_id_failed"></strong></u> Send Failed</strong> - </div> - <br /> <br /> - </div> - <!-- <iframe width="375" height="650" src="/search/template?templateKey=@Model.Key&keyword=audi+a4&debug=true" style="border: solid 1px black; margin: auto"></iframe>--> - <div id="wrap_url_cb"> - <div> - <table> - <tr> - <td align="left"> - <b> Wrap Url :</b> - </td> - <td align="right" style="padding-left:10px"> - @Html.CheckBox("WrapUrl", false, new { id = "WrapUrl" }) - </td> - </tr> - <tr> - <td align="left"> - <b> Advertiser has Unsubscribed Url : </b> - </td> - <td align="right" style="padding-left:10px"> - @Html.CheckBox("WrapAdvertiserUrl", false, new { id = "WrapAdvertiserUrl" }) - </td> - </tr> - </table> - - - </div> - - </div> - </div> - - </div> - </div> - <div class="right col"> - <div class="header row"> - Html - </div> - <div class="body row scroll-y" id="froalaval"> - @Html.TextAreaFor(x => x.Value, new { @class = "FroalaHtmlEditor", id = "FroalaHtmlEditor", display = "none" }) - - </div> - </div> - } - - @Scripts.Render("~/bundles/jquery") - <script type="text/javascript" src="~/Scripts/CodeMirror/lib/codemirror.js"></script> - <script type="text/javascript" src="~/Scripts/CodeMirror/mode/xml/xml.js"></script> - <script type="text/javascript" src="~/Scripts/CodeMirror/mode/javascript/javascript.js"></script> - <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script> - <script type="text/javascript" src="~/Scripts/CodeMirror/mode/css/css.js"></script> - <script type="text/javascript" src="~/Scripts/CodeMirror/mode/htmlmixed/htmlmixed.js"></script> - <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> - <script src="../js/plugins/table.min.js"></script> - - <!-- Include Editor JS files. --> - <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/froala-editor/2.7.6/js/froala_editor.pkgd.min.js"></script> - <script> - //$(function () { - // $('textarea').froalaEditor({ - // heightMin: 900, - - - // }) - - //}); - //$(function () { - // $('textarea') - // .on('froalaEditor.contentChanged froalaEditor.initialized', function (e, editor) { - // $('pre#eg-previewer').text(editor.codeBeautifier.run(editor.html.get())) - // $('pre#eg-previewer').removeClass('prettyprinted'); - // prettyPrint() - // }) - // .froalaEditor() - //}); - $(document).ready(function () { - var original_helpers = $.FE.MODULES.helpers; - $.FE.MODULES.helpers = function (editor) { - var helpers = original_helpers(editor); - - var isURL = helpers.isURL(); - - // This is the original sanitizer. - helpers.sanitizeURL = function (url) { - console.log('hello :)') - - return url; - }; - - return helpers; - } - $('#sent_to_email').hide(); - $('#sent_to_email_failed').hide(); - $.get("/Template/S3Signature", {}) - .done(function (data) { - $('#FroalaHtmlEditor').froalaEditor({ - enter: $.FroalaEditor.ENTER_BR, - fullPage: true, - key: 'ukkyeD-11aB1gF-7C3uvxrpxB2G-7ol==', - htmlRemoveTags: [''], - htmlAllowedAttrs: ['.*'], - heightMin: 800, - htmlAllowedTags: ['.*'], - htmlAllowComments: true, - toolbarInline: false, - videoUploadToS3: data, - imageUploadToS3: data - }) - }); - $('#SendEmail').click(function (e) { - e.preventDefault(); - var Content = $('#FroalaHtmlEditor').froalaEditor('html.get'); - if (Content.length < 1) { - Content = $('#FroalaHtmlEditor').froalaEditor('codeView.get'); - } - - var EmailId = document.getElementById("EmailId").value; - var key = document.getElementById("KeyValue").value; - var WrapUrl = document.getElementById("WrapUrl").checked; - var WrapAdvertiserUrl = document.getElementById("WrapAdvertiserUrl").checked; - - - $.ajax({ - url: "/Template/FroalaIndex", - type: "POST", - data: JSON.stringify({ 'key': key, 'value': Content, 'EmailId': EmailId, 'isSendEmail': true, 'WrapUrl': WrapUrl, 'AdvertiserHasUnSub': WrapAdvertiserUrl }), - dataType: "json", - traditional: true, - contentType: "application/json; charset=utf-8", - success: function (data) { - if (data.status == "Success") { - $('#sent_to_email_failed').hide(); - $('#email_id').empty().append(EmailId); - $('#sent_to_email').show(); - document.getElementById("EmailId").value = "" - } else { - $('#sent_to_email').hide(); - $('#email_id_failed').empty().append(EmailId); - $('#sent_to_email_failed').show(); - document.getElementById("EmailId").value = "" - } - } - - - }); - - }); - }); - </script> -</body> -</html> \ No newline at end of file diff --git a/Mobile.Search.Web/Views/Template/Index.cshtml b/Mobile.Search.Web/Views/Template/Index.cshtml deleted file mode 100644 index 152665e..0000000 --- a/Mobile.Search.Web/Views/Template/Index.cshtml +++ /dev/null @@ -1,51 +0,0 @@ -@model Dictionary<string,string> - -@{ - Layout = "~/Views/Shared/_Layout.cshtml"; -} - -@section head { - <script src="//cdnjs.cloudflare.com/ajax/libs/list.js/1.2.0/list.min.js"></script> -} -<div class="row" style="padding-top:10px;padding-bottom:10px;"> - <div class="col-xs-9"> - <h2 style="margin:0;padding:0;line-height:normal;">Templates</h2> - </div> - <div class="col-xs-3"> - @Html.ActionLink("Create New", "Create", null, new { @class = "btn btn-primary pull-right" }) - </div> -</div> -<div id="templates"> - <input class="search form-control" placeholder="search"/> - <br/> - <table class="table table-striped table-bordered table-condensed"> - <thead> - <tr> - <th>Template Key</th> - <th>Options</th> - </tr> - </thead> - <tbody class="list"> - @foreach (var kvp in Model) - { - <tr> - <td class="key">@kvp.Key</td> - <td class="options"> - <div class="btn-group"> - @Html.ActionLink("Edit", "Edit", new {templateKey = kvp.Key}, new {@class = "btn btn-primary btn-sm"}) - <a class="btn btn-sm btn-primary" target="_blank" href="/search/template?templateKey=@kvp.Key&keyword=audi+a4&debug=true">View</a> - @Html.ActionLink("Delete", "Delete", new {templateKey = kvp.Key}, new {@class = "btn btn-danger btn-sm"}) - </div> - </td> - </tr> - } - </tbody> - </table> -</div> -<script> - var options = { - valueNames: ['key'] - }; - var templateList = new List('templates', options); -</script> -@Html.ActionLink("Create New", "CreateFroala", null, new { @class = "btn btn-primary" }) \ No newline at end of file diff --git a/Mobile.Search.Web/Views/Test/CheckboxHack.cshtml b/Mobile.Search.Web/Views/Test/CheckboxHack.cshtml deleted file mode 100644 index ae9ca43..0000000 --- a/Mobile.Search.Web/Views/Test/CheckboxHack.cshtml +++ /dev/null @@ -1,48 +0,0 @@ - -@{ - Layout = null; - ViewBag.Title = "CheckboxHack"; -} -<!doctype html> -<html> - <head> - <title></title> - - <style> - input[type=checkbox] { - position: absolute; - top: -9999px; - left: -9999px; - } - label { - -webkit-appearance: push-button; - -moz-appearance: button; - display: inline-block; - margin: 60px 0 10px 0; - cursor: pointer; - } - - /* Default State */ - div { - background: green; - width: 400px; - height: 100px; - line-height: 100px; - color: white; - text-align: center; - } - - /* Toggled State */ - input[type=checkbox]:checked ~ div { - background: red; - } - </style> - </head> - <body> - <label for="toggle-1">I'm a toggle</label> - <input type="checkbox" id="toggle-1"> - <div>I'm controlled by toggle. No JavaScript!</div> - </body> -</html> -<h2>CheckboxHack</h2> - diff --git a/Mobile.Search.Web/Views/Test/CssTarget.cshtml b/Mobile.Search.Web/Views/Test/CssTarget.cshtml deleted file mode 100644 index 4eebd30..0000000 --- a/Mobile.Search.Web/Views/Test/CssTarget.cshtml +++ /dev/null @@ -1,29 +0,0 @@ - -@{ - Layout = null; - ViewBag.Title = "CssTarget"; -} - -<html> - <head> - <style> - div { - display: none; - } - - :target { - display: block; - } - </style> - <title>Css pseudo test</title> - </head> - <body> - <a href="#foo">Click here to show the hidden <code>div</code> element</a><br> - <a href="#">Click here to hide it again</a>. - <div id="foo">This should only show when the link is clicked.</div> - </body> -</html> -<h2>CssTarget</h2> - - - diff --git a/Mobile.Search.Web/Views/Test/GoogleSingle.cshtml b/Mobile.Search.Web/Views/Test/GoogleSingle.cshtml deleted file mode 100644 index 6d059f2..0000000 --- a/Mobile.Search.Web/Views/Test/GoogleSingle.cshtml +++ /dev/null @@ -1,54 +0,0 @@ -@model Mobile.Search.Shared.Models.SearchResult - -@{ - Layout = null; - var listing = Model.Listings.First(x => x.BiddedListing); -} - -<!DOCTYPE html> - -<html> - <head> - <title>@Model.Query</title> - </head> - <body> - <center> - <table border="0" cellpadding="0" cellspacing="0" bgcolor="#ffffff"> - <tr><td><div style="height:0; width:300; background-color:#ffffff; font-size:2px; text-align:center; color:#ffffff">{{tagline}}</div></td></tr> - <tr> - <td> - <table border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ffffff"> - <tr> - <td width="300" bgcolor="#ffffff" style="font-size: 16px; font-family:'Open Sans', Arial, Helvetica, sans-serif; color:#464646;" align="center" valign="middle"> - <a href="@Model.ClickUrlFunc(listing)" style="color:#464646; text-decoration:none"> - <span style="color:royalblue;line-height:1.5em; font-size:14pt"> - @WebUtility.HtmlDecode(listing.Title) - </span><br/> - <span style="line-height:1.7em; font-weight:normal"> - @WebUtility.HtmlDecode(listing.Description) - </span> - <br/> - <span style="line-height:1.7em; font-size:11px; font-weight:normal"> - @listing.SiteHost - </span> - </a> - </td> - </tr> - <tr> - <td width="300" align="center" style="padding:0px 0px 45px 0px;"> - <a href="@Model.ClickUrlFunc(listing)" style="text-decoration: none; color:#FFFFFF"> - <img src="http://image.email.horoscopedaily.email/ia?id=dc3161bf22d8a665c1a829f7278d59d6" alt=""> - </a> - </td> - </tr> - </table> - </td> - </tr> - </table> - </center> - @if (ViewBag.FooterHtml != null) - { - @Html.Raw(ViewBag.FooterHtml) - } - </body> -</html> \ No newline at end of file diff --git a/Mobile.Search.Web/Views/Web.config b/Mobile.Search.Web/Views/Web.config deleted file mode 100644 index b71d5ef..0000000 --- a/Mobile.Search.Web/Views/Web.config +++ /dev/null @@ -1,35 +0,0 @@ -<?xml version="1.0"?> - -<configuration> - <configSections> - <sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> - <section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" /> - <section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" /> - </sectionGroup> - </configSections> - - <system.web.webPages.razor> - <host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.2.2.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> - <pages pageBaseType="System.Web.Mvc.WebViewPage"> - <namespaces> - <add namespace="System.Web.Mvc" /> - <add namespace="System.Web.Mvc.Ajax" /> - <add namespace="System.Web.Mvc.Html" /> - <add namespace="System.Web.Optimization"/> - <add namespace="System.Web.Routing" /> - <add namespace="Mobile.Search.Web" /> - </namespaces> - </pages> - </system.web.webPages.razor> - - <appSettings> - <add key="webpages:Enabled" value="false" /> - </appSettings> - - <system.webServer> - <handlers> - <remove name="BlockViewHandler"/> - <add name="BlockViewHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler" /> - </handlers> - </system.webServer> -</configuration> diff --git a/Mobile.Search.Web/Views/_ViewStart.cshtml b/Mobile.Search.Web/Views/_ViewStart.cshtml deleted file mode 100644 index 2de6241..0000000 --- a/Mobile.Search.Web/Views/_ViewStart.cshtml +++ /dev/null @@ -1,3 +0,0 @@ -@{ - Layout = "~/Views/Shared/_Layout.cshtml"; -} diff --git a/Mobile.Search.Web/Web.Debug.config b/Mobile.Search.Web/Web.Debug.config deleted file mode 100644 index 680849f..0000000 --- a/Mobile.Search.Web/Web.Debug.config +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version="1.0"?> - -<!-- For more information on using Web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=301874 --> - -<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> - <!-- - In the example below, the "SetAttributes" transform will change the value of - "connectionString" to use "ReleaseSQLServer" only when the "Match" locator - finds an attribute "name" that has a value of "MyDB". - - <connectionStrings> - <add name="MyDB" - connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True" - xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/> - </connectionStrings> - --> - <system.web> - <!-- - In the example below, the "Replace" transform will replace the entire - <customErrors> section of your Web.config file. - Note that because there is only one customErrors section under the - <system.web> node, there is no need to use the "xdt:Locator" attribute. - - <customErrors defaultRedirect="GenericError.htm" - mode="RemoteOnly" xdt:Transform="Replace"> - <error statusCode="500" redirect="InternalError.htm"/> - </customErrors> - --> - </system.web> -</configuration> diff --git a/Mobile.Search.Web/Web.Release.config b/Mobile.Search.Web/Web.Release.config deleted file mode 100644 index 826aeef..0000000 --- a/Mobile.Search.Web/Web.Release.config +++ /dev/null @@ -1,35 +0,0 @@ -<?xml version="1.0"?> - -<!-- For more information on using Web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=301874 --> - -<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> - <!-- - In the example below, the "SetAttributes" transform will change the value of - "connectionString" to use "ReleaseSQLServer" only when the "Match" locator - finds an attribute "name" that has a value of "MyDB". - - <connectionStrings> - <add name="MyDB" - connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True" - xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/> - </connectionStrings> - --> - <appSettings> - <add key="RedisConnString" value="inbox-mobi-api.5uev6x.0001.usw2.cache.amazonaws.com:6379" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/> - <add key="rabbitMq" value="rabbitMq://10.2.10.8:5672:adk-mobile@Yamika" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/> - </appSettings> - <system.web> - <compilation xdt:Transform="RemoveAttributes(debug)" /> - <!-- - In the example below, the "Replace" transform will replace the entire - <customErrors> section of your Web.config file. - Note that because there is only one customErrors section under the - <system.web> node, there is no need to use the "xdt:Locator" attribute. - - <customErrors defaultRedirect="GenericError.htm" - mode="RemoteOnly" xdt:Transform="Replace"> - <error statusCode="500" redirect="InternalError.htm"/> - </customErrors> - --> - </system.web> -</configuration> diff --git a/Mobile.Search.Web/Web.config b/Mobile.Search.Web/Web.config deleted file mode 100644 index 87423a0..0000000 --- a/Mobile.Search.Web/Web.config +++ /dev/null @@ -1,167 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> - -<!-- - For more information on how to configure your ASP.NET application, please visit - http://go.microsoft.com/fwlink/?LinkId=301880 - --> -<configuration> - <configSections> - - <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> - <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --></configSections> - <connectionStrings> - <add name="TopKeywordsRedshiftConnection" connectionString="Server=mobile-email.cejry5nesllx.us-west-2.redshift.amazonaws.com; Database=mobileemail; UID=mobsearch; PWD=44remember/TOKYO/shouted44; Port=5439" /> - <add name="EmailConfigCampaign" connectionString="data source=54.189.228.250;Initial Catalog=EmailConfig;Persist Security Info=True;User ID=campaign_management;Password=Children is learning!;MultipleActiveResultSets=True;App=EntityFramework;Connection Timeout=25" providerName="System.Data.SqlClient" /> - <add name="EmailConfig" connectionString="data source=54.189.228.250;Initial Catalog=EmailConfig;Persist Security Info=True;User ID=chuck;Password=Is our children learning?;MultipleActiveResultSets=True;App=EntityFramework;Connection Timeout=25" providerName="System.Data.SqlClient" /> - <add name="MobileEmailRedshift" connectionString="Server=mobile-email.cejry5nesllx.us-west-2.redshift.amazonaws.com; Database=mobileemail; UID=chuck; PWD=1Sourchildrenlearning?; Port=5439; Pooling=false;" /> - </connectionStrings> - <appSettings> - <add key="webpages:Version" value="3.0.0.0" /> - <add key="webpages:Enabled" value="false" /> - <add key="ClientValidationEnabled" value="true" /> - <add key="UnobtrusiveJavaScriptEnabled" value="true" /> - <!--Queue Server--> - <!-- Public IP Address is ec2-204-236-143-164.us-west-1.compute.amazonaws.com--> - <!-- Private IP Address is 10.254.202.91--> - <!--<add key="rabbitMq" value="rabbitMq://35.165.233.171:5672:adk-mobile@Yamika" />--> - <add key="rabbitMq" value="rabbitMq://ec2-54-215-42-24.us-west-1.compute.amazonaws.com:5672:adk-mobile@Yamika" /> - <!--Queues--> - <add key="ClickQueue" value="mobile.search.click.inq" /> - <add key="QueryQueue" value="mobile.search.query.inq" /> - <add key="BidSystemQueryQueue" value="mobile.search.bidsystem.query.inq" /> - <!--Provider Config--> - <add key="YahooSourceTag" value="adknowledge_mobile_1click_c_search" /> - <add key="AWSAccessKey" value="AKIAILPIR54LYZXOAXEA" /> - <add key="AWSSecretKey" value="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" /> - <add key="SMTPMinboxHost" value="smtp.email.minbox.email" /> - <add key="SMTPSendGridHost" value="smtp.sendgrid.net" /> - <add key="SMTPSendGridUser" value="adkmobile" /> - <add key="SMTPSendGridPass" value="Sh0w me the money!" /> - <add key="Port" value="587" /> - <add key="FromMailAddress" value="offers@minbox.email" /> - <!-- temp for stats d counters --> - <!-- this is using the bidder graphite server --> - <add key="StatsDServer" value="ec2-52-6-110-37.compute-1.amazonaws.com" /> - <!--Redis server that stores the last opened, and last clicked keywords--> - <add key="RedisConnString" value="localhost:6379,abortConnect=false,syncTimeout=3000" /> - <!-- D2S Dynamo Tables for Search--> - <add key="AWSRegion" value="us-west-2" /> - <add key="AWS.DynamoDBContext.TableNamePrefix" value="prd_" /> - <add key="LogPath" value="C:\Mobile\logs\MobSearch\web-{Date}.log" /> - <!--AWSProfileName is used to reference an account that has been registered with the SDK. -If using AWS Toolkit for Visual Studio then this value is the same value shown in the AWS Explorer. -It is also possible to register an account using the <solution-dir>/packages/AWSSDK-X.X.X.X/tools/account-management.ps1 PowerShell script -that is bundled with the nuget package under the tools folder. - - <add key="AWSProfileName" value="" /> ---> - </appSettings> - <!-- - For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367. - - The following attributes can be set on the <httpRuntime> tag. - <system.Web> - <httpRuntime targetFramework="4.5.2" /> - </system.Web> - --> - <system.web> - <compilation debug="true" targetFramework="4.6.1"> - <assemblies> - <add assembly="System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> - </assemblies> - </compilation> - <httpRuntime targetFramework="4.5" requestValidationMode="2.0" maxQueryStringLength="32768" maxUrlLength="65536" maxRequestLength="65536" requestPathInvalidCharacters="*,%,:,\" /> - <customErrors mode="RemoteOnly" /> - <membership defaultProvider="ADMembershipProvider"> - <providers> - <clear /> - <add name="ADMembershipProvider" type="ADKMembershipProvider.AdkMembershipProvider" /> - </providers> - </membership> - <authentication mode="Forms"> - <forms name=".ADAuthCookie" loginUrl="~/Account/Login" timeout="9440" slidingExpiration="false" protection="All" /> - </authentication> - <machineKey validationKey="9D917A96D5FCB1E02CB44567C415E175D54FB9352ED0F3F76C42F59149DECA28E1029A3F69080A4E876357974F5ED39E75FA50498A162CD2C8B62F7701531471" decryptionKey="3F660F6419346F1C477AC77ABF3B14E65BBBAC1FA3DBCEE48EDB0DD303033735" validation="SHA1" decryption="AES" /> - </system.web> - <system.webServer> - <httpProtocol> - <customHeaders> - <add name="Access-Control-Allow-Origin" value="*" /> - <add name="Access-Control-Allow-Methods" value="GET, PUT, POST, DELETE, HEAD" /> - <add name="Access-Control-Allow-Headers" value="Origin, X-Requested-With, Content-Type, Accept" /> - </customHeaders> - </httpProtocol> - <modules /> - <security> - <requestFiltering> - <requestLimits maxQueryString="32768" maxUrl="99999" /> - </requestFiltering> - </security> - </system.webServer> - <runtime> - <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> - <dependentAssembly> - <assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" /> - <bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" /> - </dependentAssembly> - <dependentAssembly> - <assemblyIdentity name="Microsoft.Owin.Security.OAuth" publicKeyToken="31bf3856ad364e35" /> - <bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" /> - </dependentAssembly> - <dependentAssembly> - <assemblyIdentity name="Microsoft.Owin.Security.Cookies" publicKeyToken="31bf3856ad364e35" /> - <bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" /> - </dependentAssembly> - <dependentAssembly> - <assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35" /> - <bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" /> - </dependentAssembly> - <dependentAssembly> - <assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" /> - <bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" /> - </dependentAssembly> - <dependentAssembly> - <assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" /> - <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" /> - </dependentAssembly> - <dependentAssembly> - <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" /> - <bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930" /> - </dependentAssembly> - <dependentAssembly> - <assemblyIdentity name="AWSSDK" publicKeyToken="9f476d3089b52be3" culture="neutral" /> - <bindingRedirect oldVersion="0.0.0.0-2.3.55.2" newVersion="2.3.55.2" /> - </dependentAssembly> - <dependentAssembly> - <assemblyIdentity name="Serilog" publicKeyToken="24c2f752a8e58a10" culture="neutral" /> - <bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="2.0.0.0" /> - </dependentAssembly> - <dependentAssembly> - <assemblyIdentity name="Npgsql" publicKeyToken="5d8b90d52f46fda7" culture="neutral" /> - <bindingRedirect oldVersion="0.0.0.0-3.1.9.0" newVersion="3.1.9.0" /> - </dependentAssembly> - <dependentAssembly> - <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" /> - <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" /> - </dependentAssembly> - <dependentAssembly> - <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" /> - <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" /> - </dependentAssembly> - <dependentAssembly> - <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" /> - <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" /> - </dependentAssembly> - <dependentAssembly> - <assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral" /> - <bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" /> - </dependentAssembly> - </assemblyBinding> - </runtime> - <entityFramework> - <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" /> - <providers> - <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" /> - </providers> - </entityFramework> -</configuration> \ No newline at end of file diff --git a/Mobile.Search.Web/favicon.ico b/Mobile.Search.Web/favicon.ico deleted file mode 100644 index a3a7999..0000000 Binary files a/Mobile.Search.Web/favicon.ico and /dev/null differ diff --git a/Mobile.Search.Web/fonts/fontawesome-webfont.woff2 b/Mobile.Search.Web/fonts/fontawesome-webfont.woff2 deleted file mode 100644 index 7eb74fd..0000000 Binary files a/Mobile.Search.Web/fonts/fontawesome-webfont.woff2 and /dev/null differ diff --git a/Mobile.Search.Web/fonts/glyphicons-halflings-regular.eot b/Mobile.Search.Web/fonts/glyphicons-halflings-regular.eot deleted file mode 100644 index b93a495..0000000 Binary files a/Mobile.Search.Web/fonts/glyphicons-halflings-regular.eot and /dev/null differ diff --git a/Mobile.Search.Web/fonts/glyphicons-halflings-regular.ttf b/Mobile.Search.Web/fonts/glyphicons-halflings-regular.ttf deleted file mode 100644 index 1413fc6..0000000 Binary files a/Mobile.Search.Web/fonts/glyphicons-halflings-regular.ttf and /dev/null differ diff --git a/Mobile.Search.Web/fonts/glyphicons-halflings-regular.woff b/Mobile.Search.Web/fonts/glyphicons-halflings-regular.woff deleted file mode 100644 index 9e61285..0000000 Binary files a/Mobile.Search.Web/fonts/glyphicons-halflings-regular.woff and /dev/null differ diff --git a/Mobile.Search.Web/fonts/glyphicons-halflings-regular.woff2 b/Mobile.Search.Web/fonts/glyphicons-halflings-regular.woff2 deleted file mode 100644 index 64539b5..0000000 Binary files a/Mobile.Search.Web/fonts/glyphicons-halflings-regular.woff2 and /dev/null differ diff --git a/Mobile.Search.Web/job_scheduling_data_2_0.xsd b/Mobile.Search.Web/job_scheduling_data_2_0.xsd deleted file mode 100644 index d1dabc1..0000000 --- a/Mobile.Search.Web/job_scheduling_data_2_0.xsd +++ /dev/null @@ -1,361 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" - xmlns="http://quartznet.sourceforge.net/JobSchedulingData" - targetNamespace="http://quartznet.sourceforge.net/JobSchedulingData" - elementFormDefault="qualified" - version="2.0"> - - <xs:element name="job-scheduling-data"> - <xs:annotation> - <xs:documentation>Root level node</xs:documentation> - </xs:annotation> - <xs:complexType> - <xs:sequence maxOccurs="unbounded"> - <xs:element name="pre-processing-commands" type="pre-processing-commandsType" minOccurs="0" maxOccurs="1"> - <xs:annotation> - <xs:documentation>Commands to be executed before scheduling the jobs and triggers in this file.</xs:documentation> - </xs:annotation> - </xs:element> - <xs:element name="processing-directives" type="processing-directivesType" minOccurs="0" maxOccurs="1"> - <xs:annotation> - <xs:documentation>Directives to be followed while scheduling the jobs and triggers in this file.</xs:documentation> - </xs:annotation> - </xs:element> - <xs:element name="schedule" minOccurs="0" maxOccurs="unbounded"> - <xs:complexType> - <xs:sequence maxOccurs="unbounded"> - <xs:element name="job" type="job-detailType" minOccurs="0" maxOccurs="unbounded" /> - <xs:element name="trigger" type="triggerType" minOccurs="0" maxOccurs="unbounded" /> - </xs:sequence> - </xs:complexType> - </xs:element> - </xs:sequence> - <xs:attribute name="version" type="xs:string"> - <xs:annotation> - <xs:documentation>Version of the XML Schema instance</xs:documentation> - </xs:annotation> - </xs:attribute> - </xs:complexType> - </xs:element> - - <xs:complexType name="pre-processing-commandsType"> - <xs:sequence maxOccurs="unbounded"> - <xs:element name="delete-jobs-in-group" type="xs:string" minOccurs="0" maxOccurs="unbounded"> - <xs:annotation> - <xs:documentation>Delete all jobs, if any, in the identified group. "*" can be used to identify all groups. Will also result in deleting all triggers related to the jobs.</xs:documentation> - </xs:annotation> - </xs:element> - <xs:element name="delete-triggers-in-group" type="xs:string" minOccurs="0" maxOccurs="unbounded"> - <xs:annotation> - <xs:documentation>Delete all triggers, if any, in the identified group. "*" can be used to identify all groups. Will also result in deletion of related jobs that are non-durable.</xs:documentation> - </xs:annotation> - </xs:element> - <xs:element name="delete-job" minOccurs="0" maxOccurs="unbounded"> - <xs:annotation> - <xs:documentation>Delete the identified job if it exists (will also result in deleting all triggers related to it).</xs:documentation> - </xs:annotation> - <xs:complexType> - <xs:sequence> - <xs:element name="name" type="xs:string" /> - <xs:element name="group" type="xs:string" minOccurs="0" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="delete-trigger" minOccurs="0" maxOccurs="unbounded"> - <xs:annotation> - <xs:documentation>Delete the identified trigger if it exists (will also result in deletion of related jobs that are non-durable).</xs:documentation> - </xs:annotation> - <xs:complexType> - <xs:sequence> - <xs:element name="name" type="xs:string" /> - <xs:element name="group" type="xs:string" minOccurs="0" /> - </xs:sequence> - </xs:complexType> - </xs:element> - </xs:sequence> - </xs:complexType> - - <xs:complexType name="processing-directivesType"> - <xs:sequence> - <xs:element name="overwrite-existing-data" type="xs:boolean" minOccurs="0" default="true"> - <xs:annotation> - <xs:documentation>Whether the existing scheduling data (with same identifiers) will be overwritten. If false, and ignore-duplicates is not false, and jobs or triggers with the same names already exist as those in the file, an error will occur.</xs:documentation> - </xs:annotation> - </xs:element> - <xs:element name="ignore-duplicates" type="xs:boolean" minOccurs="0" default="false"> - <xs:annotation> - <xs:documentation>If true (and overwrite-existing-data is false) then any job/triggers encountered in this file that have names that already exist in the scheduler will be ignored, and no error will be produced.</xs:documentation> - </xs:annotation> - </xs:element> - <xs:element name="schedule-trigger-relative-to-replaced-trigger" type="xs:boolean" minOccurs="0" default="false"> - <xs:annotation> - <xs:documentation>If true trigger's start time is calculated based on earlier run time instead of fixed value. Trigger's start time must be undefined for this to work.</xs:documentation> - </xs:annotation> - </xs:element> - </xs:sequence> - </xs:complexType> - - <xs:complexType name="job-detailType"> - <xs:annotation> - <xs:documentation>Define a JobDetail</xs:documentation> - </xs:annotation> - <xs:sequence> - <xs:element name="name" type="xs:string" /> - <xs:element name="group" type="xs:string" minOccurs="0" /> - <xs:element name="description" type="xs:string" minOccurs="0" /> - <xs:element name="job-type" type="xs:string" /> - <xs:sequence minOccurs="0"> - <xs:element name="durable" type="xs:boolean" /> - <xs:element name="recover" type="xs:boolean" /> - </xs:sequence> - <xs:element name="job-data-map" type="job-data-mapType" minOccurs="0" /> - </xs:sequence> - </xs:complexType> - - <xs:complexType name="job-data-mapType"> - <xs:annotation> - <xs:documentation>Define a JobDataMap</xs:documentation> - </xs:annotation> - <xs:sequence minOccurs="0" maxOccurs="unbounded"> - <xs:element name="entry" type="entryType" /> - </xs:sequence> - </xs:complexType> - - <xs:complexType name="entryType"> - <xs:annotation> - <xs:documentation>Define a JobDataMap entry</xs:documentation> - </xs:annotation> - <xs:sequence> - <xs:element name="key" type="xs:string" /> - <xs:element name="value" type="xs:string" /> - </xs:sequence> - </xs:complexType> - - <xs:complexType name="triggerType"> - <xs:annotation> - <xs:documentation>Define a Trigger</xs:documentation> - </xs:annotation> - <xs:choice> - <xs:element name="simple" type="simpleTriggerType" /> - <xs:element name="cron" type="cronTriggerType" /> - <xs:element name="calendar-interval" type="calendarIntervalTriggerType" /> - </xs:choice> - </xs:complexType> - - <xs:complexType name="abstractTriggerType" abstract="true"> - <xs:annotation> - <xs:documentation>Common Trigger definitions</xs:documentation> - </xs:annotation> - <xs:sequence> - <xs:element name="name" type="xs:string" /> - <xs:element name="group" type="xs:string" minOccurs="0" /> - <xs:element name="description" type="xs:string" minOccurs="0" /> - <xs:element name="job-name" type="xs:string" /> - <xs:element name="job-group" type="xs:string" minOccurs="0" /> - <xs:element name="priority" type="xs:nonNegativeInteger" minOccurs="0" /> - <xs:element name="calendar-name" type="xs:string" minOccurs="0" /> - <xs:element name="job-data-map" type="job-data-mapType" minOccurs="0" /> - <xs:sequence minOccurs="0"> - <xs:choice> - <xs:element name="start-time" type="xs:dateTime" /> - <xs:element name="start-time-seconds-in-future" type="xs:nonNegativeInteger" /> - </xs:choice> - <xs:element name="end-time" type="xs:dateTime" minOccurs="0" /> - </xs:sequence> - </xs:sequence> - </xs:complexType> - - <xs:complexType name="simpleTriggerType"> - <xs:annotation> - <xs:documentation>Define a SimpleTrigger</xs:documentation> - </xs:annotation> - <xs:complexContent> - <xs:extension base="abstractTriggerType"> - <xs:sequence> - <xs:element name="misfire-instruction" type="simple-trigger-misfire-instructionType" minOccurs="0" /> - <xs:sequence minOccurs="0"> - <xs:element name="repeat-count" type="repeat-countType" /> - <xs:element name="repeat-interval" type="xs:nonNegativeInteger" /> - </xs:sequence> - </xs:sequence> - </xs:extension> - </xs:complexContent> - </xs:complexType> - - <xs:complexType name="cronTriggerType"> - <xs:annotation> - <xs:documentation>Define a CronTrigger</xs:documentation> - </xs:annotation> - <xs:complexContent> - <xs:extension base="abstractTriggerType"> - <xs:sequence> - <xs:element name="misfire-instruction" type="cron-trigger-misfire-instructionType" minOccurs="0" /> - <xs:element name="cron-expression" type="cron-expressionType" /> - <xs:element name="time-zone" type="xs:string" minOccurs="0" /> - </xs:sequence> - </xs:extension> - </xs:complexContent> - </xs:complexType> - - <xs:complexType name="calendarIntervalTriggerType"> - <xs:annotation> - <xs:documentation>Define a DateIntervalTrigger</xs:documentation> - </xs:annotation> - <xs:complexContent> - <xs:extension base="abstractTriggerType"> - <xs:sequence> - <xs:element name="misfire-instruction" type="date-interval-trigger-misfire-instructionType" minOccurs="0" /> - <xs:element name="repeat-interval" type="xs:nonNegativeInteger" /> - <xs:element name="repeat-interval-unit" type="interval-unitType" /> - </xs:sequence> - </xs:extension> - </xs:complexContent> - </xs:complexType> - - <xs:simpleType name="cron-expressionType"> - <xs:annotation> - <xs:documentation> - Cron expression (see JavaDoc for examples) - - Special thanks to Chris Thatcher (thatcher@butterfly.net) for the regular expression! - - Regular expressions are not my strong point but I believe this is complete, - with the caveat that order for expressions like 3-0 is not legal but will pass, - and month and day names must be capitalized. - If you want to examine the correctness look for the [\s] to denote the - seperation of individual regular expressions. This is how I break them up visually - to examine them: - - SECONDS: - ( - ((([0-9]|[0-5][0-9])(-([0-9]|[0-5][0-9]))?,)*([0-9]|[0-5][0-9])(-([0-9]|[0-5][0-9]))?) - | (([\*]|[0-9]|[0-5][0-9])/([0-9]|[0-5][0-9])) - | ([\?]) - | ([\*]) - ) [\s] - MINUTES: - ( - ((([0-9]|[0-5][0-9])(-([0-9]|[0-5][0-9]))?,)*([0-9]|[0-5][0-9])(-([0-9]|[0-5][0-9]))?) - | (([\*]|[0-9]|[0-5][0-9])/([0-9]|[0-5][0-9])) - | ([\?]) - | ([\*]) - ) [\s] - HOURS: - ( - ((([0-9]|[0-1][0-9]|[2][0-3])(-([0-9]|[0-1][0-9]|[2][0-3]))?,)*([0-9]|[0-1][0-9]|[2][0-3])(-([0-9]|[0-1][0-9]|[2][0-3]))?) - | (([\*]|[0-9]|[0-1][0-9]|[2][0-3])/([0-9]|[0-1][0-9]|[2][0-3])) - | ([\?]) - | ([\*]) - ) [\s] - DAY OF MONTH: - ( - ((([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1])(-([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1]))?,)*([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1])(-([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1]))?(C)?) - | (([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1])/([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1])(C)?) - | (L(-[0-9])?) - | (L(-[1-2][0-9])?) - | (L(-[3][0-1])?) - | (LW) - | ([1-9]W) - | ([1-3][0-9]W) - | ([\?]) - | ([\*]) - )[\s] - MONTH: - ( - ((([1-9]|0[1-9]|1[0-2])(-([1-9]|0[1-9]|1[0-2]))?,)*([1-9]|0[1-9]|1[0-2])(-([1-9]|0[1-9]|1[0-2]))?) - | (([1-9]|0[1-9]|1[0-2])/([1-9]|0[1-9]|1[0-2])) - | (((JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)(-(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC))?,)*(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)(-(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC))?) - | ((JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)/(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)) - | ([\?]) - | ([\*]) - )[\s] - DAY OF WEEK: - ( - (([1-7](-([1-7]))?,)*([1-7])(-([1-7]))?) - | ([1-7]/([1-7])) - | (((MON|TUE|WED|THU|FRI|SAT|SUN)(-(MON|TUE|WED|THU|FRI|SAT|SUN))?,)*(MON|TUE|WED|THU|FRI|SAT|SUN)(-(MON|TUE|WED|THU|FRI|SAT|SUN))?(C)?) - | ((MON|TUE|WED|THU|FRI|SAT|SUN)/(MON|TUE|WED|THU|FRI|SAT|SUN)(C)?) - | (([1-7]|(MON|TUE|WED|THU|FRI|SAT|SUN))(L|LW)?) - | (([1-7]|MON|TUE|WED|THU|FRI|SAT|SUN)#([1-7])?) - | ([\?]) - | ([\*]) - ) - YEAR (OPTIONAL): - ( - [\s]? - ([\*])? - | ((19[7-9][0-9])|(20[0-9][0-9]))? - | (((19[7-9][0-9])|(20[0-9][0-9]))/((19[7-9][0-9])|(20[0-9][0-9])))? - | ((((19[7-9][0-9])|(20[0-9][0-9]))(-((19[7-9][0-9])|(20[0-9][0-9])))?,)*((19[7-9][0-9])|(20[0-9][0-9]))(-((19[7-9][0-9])|(20[0-9][0-9])))?)? - ) - </xs:documentation> - </xs:annotation> - <xs:restriction base="xs:string"> - <xs:pattern - value="(((([0-9]|[0-5][0-9])(-([0-9]|[0-5][0-9]))?,)*([0-9]|[0-5][0-9])(-([0-9]|[0-5][0-9]))?)|(([\*]|[0-9]|[0-5][0-9])/([0-9]|[0-5][0-9]))|([\?])|([\*]))[\s](((([0-9]|[0-5][0-9])(-([0-9]|[0-5][0-9]))?,)*([0-9]|[0-5][0-9])(-([0-9]|[0-5][0-9]))?)|(([\*]|[0-9]|[0-5][0-9])/([0-9]|[0-5][0-9]))|([\?])|([\*]))[\s](((([0-9]|[0-1][0-9]|[2][0-3])(-([0-9]|[0-1][0-9]|[2][0-3]))?,)*([0-9]|[0-1][0-9]|[2][0-3])(-([0-9]|[0-1][0-9]|[2][0-3]))?)|(([\*]|[0-9]|[0-1][0-9]|[2][0-3])/([0-9]|[0-1][0-9]|[2][0-3]))|([\?])|([\*]))[\s](((([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1])(-([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1]))?,)*([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1])(-([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1]))?(C)?)|(([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1])/([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1])(C)?)|(L(-[0-9])?)|(L(-[1-2][0-9])?)|(L(-[3][0-1])?)|(LW)|([1-9]W)|([1-3][0-9]W)|([\?])|([\*]))[\s](((([1-9]|0[1-9]|1[0-2])(-([1-9]|0[1-9]|1[0-2]))?,)*([1-9]|0[1-9]|1[0-2])(-([1-9]|0[1-9]|1[0-2]))?)|(([1-9]|0[1-9]|1[0-2])/([1-9]|0[1-9]|1[0-2]))|(((JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)(-(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC))?,)*(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)(-(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC))?)|((JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)/(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC))|([\?])|([\*]))[\s]((([1-7](-([1-7]))?,)*([1-7])(-([1-7]))?)|([1-7]/([1-7]))|(((MON|TUE|WED|THU|FRI|SAT|SUN)(-(MON|TUE|WED|THU|FRI|SAT|SUN))?,)*(MON|TUE|WED|THU|FRI|SAT|SUN)(-(MON|TUE|WED|THU|FRI|SAT|SUN))?(C)?)|((MON|TUE|WED|THU|FRI|SAT|SUN)/(MON|TUE|WED|THU|FRI|SAT|SUN)(C)?)|(([1-7]|(MON|TUE|WED|THU|FRI|SAT|SUN))?(L|LW)?)|(([1-7]|MON|TUE|WED|THU|FRI|SAT|SUN)#([1-7])?)|([\?])|([\*]))([\s]?(([\*])?|(19[7-9][0-9])|(20[0-9][0-9]))?| (((19[7-9][0-9])|(20[0-9][0-9]))/((19[7-9][0-9])|(20[0-9][0-9])))?| ((((19[7-9][0-9])|(20[0-9][0-9]))(-((19[7-9][0-9])|(20[0-9][0-9])))?,)*((19[7-9][0-9])|(20[0-9][0-9]))(-((19[7-9][0-9])|(20[0-9][0-9])))?)?)" /> - </xs:restriction> - </xs:simpleType> - - <xs:simpleType name="repeat-countType"> - <xs:annotation> - <xs:documentation>Number of times to repeat the Trigger (-1 for indefinite)</xs:documentation> - </xs:annotation> - <xs:restriction base="xs:integer"> - <xs:minInclusive value="-1" /> - </xs:restriction> - </xs:simpleType> - - - <xs:simpleType name="simple-trigger-misfire-instructionType"> - <xs:annotation> - <xs:documentation>Simple Trigger Misfire Instructions</xs:documentation> - </xs:annotation> - <xs:restriction base="xs:string"> - <xs:pattern value="SmartPolicy" /> - <xs:pattern value="RescheduleNextWithExistingCount" /> - <xs:pattern value="RescheduleNextWithRemainingCount" /> - <xs:pattern value="RescheduleNowWithExistingRepeatCount" /> - <xs:pattern value="RescheduleNowWithRemainingRepeatCount" /> - <xs:pattern value="FireNow" /> - </xs:restriction> - </xs:simpleType> - - <xs:simpleType name="cron-trigger-misfire-instructionType"> - <xs:annotation> - <xs:documentation>Cron Trigger Misfire Instructions</xs:documentation> - </xs:annotation> - <xs:restriction base="xs:string"> - <xs:pattern value="SmartPolicy" /> - <xs:pattern value="DoNothing" /> - <xs:pattern value="FireOnceNow" /> - </xs:restriction> - </xs:simpleType> - - <xs:simpleType name="date-interval-trigger-misfire-instructionType"> - <xs:annotation> - <xs:documentation>Date Interval Trigger Misfire Instructions</xs:documentation> - </xs:annotation> - <xs:restriction base="xs:string"> - <xs:pattern value="SmartPolicy" /> - <xs:pattern value="DoNothing" /> - <xs:pattern value="FireOnceNow" /> - </xs:restriction> - </xs:simpleType> - - <xs:simpleType name="interval-unitType"> - <xs:annotation> - <xs:documentation>Interval Units</xs:documentation> - </xs:annotation> - <xs:restriction base="xs:string"> - <xs:pattern value="Day" /> - <xs:pattern value="Hour" /> - <xs:pattern value="Minute" /> - <xs:pattern value="Month" /> - <xs:pattern value="Second" /> - <xs:pattern value="Week" /> - <xs:pattern value="Year" /> - </xs:restriction> - </xs:simpleType> - -</xs:schema> \ No newline at end of file diff --git a/Mobile.Search.Web/packages.config b/Mobile.Search.Web/packages.config deleted file mode 100644 index 5ef249c..0000000 --- a/Mobile.Search.Web/packages.config +++ /dev/null @@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<packages> - <package id="ADKMembershipProvider" version="0.0.8" targetFramework="net461" /> - <package id="Antlr" version="3.5.0.2" targetFramework="net461" /> - <package id="AWSSDK" version="2.3.55.2" targetFramework="net461" /> - <package id="AWSSDK.Core" version="3.3.21.16" targetFramework="net461" /> - <package id="AWSSDK.S3" version="3.3.17.2" targetFramework="net461" /> - <package id="bootstrap" version="3.3.7" targetFramework="net461" /> - <package id="Chronos" version="0.0.153" targetFramework="net461" /> - <package id="Chronos.AWS" version="0.0.153" targetFramework="net461" /> - <package id="CodeMirror.NuGet" version="5.19.0" targetFramework="net461" /> - <package id="Common.Logging" version="3.3.1" targetFramework="net461" /> - <package id="Common.Logging.Core" version="3.3.1" targetFramework="net461" /> - <package id="EntityFramework" version="6.1.3" targetFramework="net461" /> - <package id="FontAwesome" version="4.6.3" targetFramework="net461" /> - <package id="FroalaEditor" version="2.7.6" targetFramework="net461" /> - <package id="FroalaEditorSDK" version="1.0.1" targetFramework="net461" /> - <package id="HtmlAgilityPack" version="1.4.9.5" targetFramework="net461" /> - <package id="Inferno" version="1.4.0" targetFramework="net461" /> - <package id="jQuery" version="3.1.1" targetFramework="net461" /> - <package id="jQuery.Validation" version="1.15.1" targetFramework="net461" /> - <package id="Magick.NET-Q16-AnyCPU" version="7.0.3.502" targetFramework="net461" /> - <package id="Magick.NET-Q16-x86" version="7.4.3" targetFramework="net461" /> - <package id="Microsoft.AspNet.Identity.Core" version="2.2.1" targetFramework="net461" /> - <package id="Microsoft.AspNet.Identity.EntityFramework" version="2.2.1" targetFramework="net461" /> - <package id="Microsoft.AspNet.Identity.Owin" version="2.2.1" targetFramework="net461" /> - <package id="Microsoft.AspNet.Mvc" version="5.2.3" targetFramework="net461" /> - <package id="Microsoft.AspNet.Razor" version="3.2.3" targetFramework="net461" /> - <package id="Microsoft.AspNet.Web.Optimization" version="1.1.3" targetFramework="net45" /> - <package id="Microsoft.AspNet.WebPages" version="3.2.3" targetFramework="net461" /> - <package id="Microsoft.jQuery.Unobtrusive.Validation" version="3.2.3" targetFramework="net461" /> - <package id="Microsoft.Owin" version="3.0.1" targetFramework="net461" /> - <package id="Microsoft.Owin.Host.SystemWeb" version="3.0.1" targetFramework="net461" /> - <package id="Microsoft.Owin.Security" version="3.0.1" targetFramework="net461" /> - <package id="Microsoft.Owin.Security.Cookies" version="3.0.1" targetFramework="net461" /> - <package id="Microsoft.Owin.Security.Facebook" version="3.0.1" targetFramework="net461" /> - <package id="Microsoft.Owin.Security.Google" version="3.0.1" targetFramework="net461" /> - <package id="Microsoft.Owin.Security.MicrosoftAccount" version="3.0.1" targetFramework="net461" /> - <package id="Microsoft.Owin.Security.OAuth" version="3.0.1" targetFramework="net461" /> - <package id="Microsoft.Owin.Security.Twitter" version="3.0.1" targetFramework="net461" /> - <package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net45" /> - <package id="Modernizr" version="2.8.3" targetFramework="net461" /> - <package id="Newtonsoft.Json" version="9.0.1" targetFramework="net461" /> - <package id="Npgsql" version="3.1.9" targetFramework="net461" /> - <package id="Nustache" version="1.16.0.4" targetFramework="net461" /> - <package id="OctoPack" version="3.4.6" targetFramework="net461" developmentDependency="true" /> - <package id="Owin" version="1.0" targetFramework="net45" /> - <package id="PagedList" version="1.17.0.0" targetFramework="net461" /> - <package id="PagedList.Mvc" version="4.5.0.0" targetFramework="net461" /> - <package id="Quartz" version="2.4.1" targetFramework="net461" /> - <package id="RabbitMQ.Client" version="3.5.0" targetFramework="net45" /> - <package id="Respond" version="1.4.2" targetFramework="net461" /> - <package id="Rx-Core" version="2.2.5" targetFramework="net45" /> - <package id="Rx-Interfaces" version="2.2.5" targetFramework="net45" /> - <package id="Rx-Linq" version="2.2.5" targetFramework="net45" /> - <package id="Serilog" version="2.3.0" targetFramework="net461" /> - <package id="Serilog.Enrichers.Environment" version="2.1.1" targetFramework="net461" /> - <package id="Serilog.Formatting.Compact" version="1.0.0" targetFramework="net461" /> - <package id="Serilog.Sinks.File" version="3.1.1" targetFramework="net461" /> - <package id="Serilog.Sinks.PeriodicBatching" version="2.1.0" targetFramework="net461" /> - <package id="Serilog.Sinks.RollingFile" version="3.2.0" targetFramework="net461" /> - <package id="Serilog.Sinks.Seq" version="3.1.1" targetFramework="net461" /> - <package id="ServiceStack.Text" version="4.5.4" targetFramework="net461" /> - <package id="StackExchange.Redis" version="1.1.608" targetFramework="net461" /> - <package id="StatsdClient" version="1.4.51" targetFramework="net461" /> - <package id="WebGrease" version="1.6.0" targetFramework="net461" /> -</packages> \ No newline at end of file diff --git a/Mobile.Search.Web/readme.md b/Mobile.Search.Web/readme.md deleted file mode 100644 index 2504179..0000000 --- a/Mobile.Search.Web/readme.md +++ /dev/null @@ -1,19 +0,0 @@ -http://mobsearch.adk-mobile.com/search/templatejson - -D2S Endpoint, expects these params - -``` -templateKey - the mobsearch template to use for showing results -keyword - the keyword to search for -clickWrapper - click wrapper to track clicks, {URL} macro must be present and be redirected to to work -footer - base64 encoded footer (only avail for some templates) -c = 5 - the number of ads -debug - if true the data won't be tracked in the searches schema -subject - no effect -hotspot - no effect, -partner - the source tag, -typeTag - the type tag to use, -userAgent - override the user agent if you want (to yahoo and tracking), -ip - override the ip address, -subid - can be whatever you want -``` \ No newline at end of file diff --git a/Mobile.Search.Web/robots.txt b/Mobile.Search.Web/robots.txt deleted file mode 100644 index f870a67..0000000 --- a/Mobile.Search.Web/robots.txt +++ /dev/null @@ -1,2 +0,0 @@ -User-agent: * -Disallow: / \ No newline at end of file diff --git a/Mobile.WYSIWYG.sln b/Mobile.WYSIWYG.sln index 1247508..f0f241e 100644 --- a/Mobile.WYSIWYG.sln +++ b/Mobile.WYSIWYG.sln @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 VisualStudioVersion = 15.0.26730.16 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mobile.WYSIWYG", "Mobile.Search.Web\Mobile.WYSIWYG.csproj", "{179419F5-BEEF-4A25-A69B-1BE2D9E1C453}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mobile.WYSIWYG", "Mobile.WYSIWYG\Mobile.WYSIWYG.csproj", "{179419F5-BEEF-4A25-A69B-1BE2D9E1C453}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mobile.Search.Providers", "Mobile.Search.Providers.Lib\Mobile.Search.Providers.csproj", "{9657E007-68ED-4FD1-B218-D108E36C1FF6}" EndProject diff --git a/Mobile.Search.Web/App_Start/BundleConfig.cs b/Mobile.WYSIWYG/App_Start/BundleConfig.cs similarity index 100% rename from Mobile.Search.Web/App_Start/BundleConfig.cs rename to Mobile.WYSIWYG/App_Start/BundleConfig.cs diff --git a/Mobile.Search.Web/App_Start/FilterConfig.cs b/Mobile.WYSIWYG/App_Start/FilterConfig.cs similarity index 100% rename from Mobile.Search.Web/App_Start/FilterConfig.cs rename to Mobile.WYSIWYG/App_Start/FilterConfig.cs diff --git a/Mobile.Search.Web/App_Start/IdentityConfig.cs b/Mobile.WYSIWYG/App_Start/IdentityConfig.cs similarity index 100% rename from Mobile.Search.Web/App_Start/IdentityConfig.cs rename to Mobile.WYSIWYG/App_Start/IdentityConfig.cs diff --git a/Mobile.Search.Web/App_Start/RouteConfig.cs b/Mobile.WYSIWYG/App_Start/RouteConfig.cs similarity index 100% rename from Mobile.Search.Web/App_Start/RouteConfig.cs rename to Mobile.WYSIWYG/App_Start/RouteConfig.cs diff --git a/Mobile.Search.Web/App_Start/Startup.Auth.cs b/Mobile.WYSIWYG/App_Start/Startup.Auth.cs similarity index 100% rename from Mobile.Search.Web/App_Start/Startup.Auth.cs rename to Mobile.WYSIWYG/App_Start/Startup.Auth.cs diff --git a/Mobile.Search.Web/Content/Apple-iPhone-5-Wireframe.jpg b/Mobile.WYSIWYG/Content/Apple-iPhone-5-Wireframe.jpg similarity index 100% rename from Mobile.Search.Web/Content/Apple-iPhone-5-Wireframe.jpg rename to Mobile.WYSIWYG/Content/Apple-iPhone-5-Wireframe.jpg diff --git a/Mobile.Search.Web/Content/Images/BargainExplorer/bargain-icon.png b/Mobile.WYSIWYG/Content/Images/BargainExplorer/bargain-icon.png similarity index 100% rename from Mobile.Search.Web/Content/Images/BargainExplorer/bargain-icon.png rename to Mobile.WYSIWYG/Content/Images/BargainExplorer/bargain-icon.png diff --git a/Mobile.Search.Web/Content/Images/BargainExplorer/icon-small.png b/Mobile.WYSIWYG/Content/Images/BargainExplorer/icon-small.png similarity index 100% rename from Mobile.Search.Web/Content/Images/BargainExplorer/icon-small.png rename to Mobile.WYSIWYG/Content/Images/BargainExplorer/icon-small.png diff --git a/Mobile.Search.Web/Content/Images/BargainExplorer/suggested.png b/Mobile.WYSIWYG/Content/Images/BargainExplorer/suggested.png similarity index 100% rename from Mobile.Search.Web/Content/Images/BargainExplorer/suggested.png rename to Mobile.WYSIWYG/Content/Images/BargainExplorer/suggested.png diff --git a/Mobile.Search.Web/Content/Images/BibleBrowser/temp-image3.jpg b/Mobile.WYSIWYG/Content/Images/BibleBrowser/temp-image3.jpg similarity index 100% rename from Mobile.Search.Web/Content/Images/BibleBrowser/temp-image3.jpg rename to Mobile.WYSIWYG/Content/Images/BibleBrowser/temp-image3.jpg diff --git a/Mobile.Search.Web/Content/Images/BibleBrowser/temp-img2.jpg b/Mobile.WYSIWYG/Content/Images/BibleBrowser/temp-img2.jpg similarity index 100% rename from Mobile.Search.Web/Content/Images/BibleBrowser/temp-img2.jpg rename to Mobile.WYSIWYG/Content/Images/BibleBrowser/temp-img2.jpg diff --git a/Mobile.Search.Web/Content/Images/BibleBrowser/temp-verse.jpg b/Mobile.WYSIWYG/Content/Images/BibleBrowser/temp-verse.jpg similarity index 100% rename from Mobile.Search.Web/Content/Images/BibleBrowser/temp-verse.jpg rename to Mobile.WYSIWYG/Content/Images/BibleBrowser/temp-verse.jpg diff --git a/Mobile.Search.Web/Content/Images/Black-Arrow.png b/Mobile.WYSIWYG/Content/Images/Black-Arrow.png similarity index 100% rename from Mobile.Search.Web/Content/Images/Black-Arrow.png rename to Mobile.WYSIWYG/Content/Images/Black-Arrow.png diff --git a/Mobile.Search.Web/Content/Images/Yahoo-Mail-3.0-for-iOS-app-icon-small.png b/Mobile.WYSIWYG/Content/Images/Yahoo-Mail-3.0-for-iOS-app-icon-small.png similarity index 100% rename from Mobile.Search.Web/Content/Images/Yahoo-Mail-3.0-for-iOS-app-icon-small.png rename to Mobile.WYSIWYG/Content/Images/Yahoo-Mail-3.0-for-iOS-app-icon-small.png diff --git a/Mobile.Search.Web/Content/Images/arrow-button.png b/Mobile.WYSIWYG/Content/Images/arrow-button.png similarity index 100% rename from Mobile.Search.Web/Content/Images/arrow-button.png rename to Mobile.WYSIWYG/Content/Images/arrow-button.png diff --git a/Mobile.Search.Web/Content/Images/ask-the-oracle.png b/Mobile.WYSIWYG/Content/Images/ask-the-oracle.png similarity index 100% rename from Mobile.Search.Web/Content/Images/ask-the-oracle.png rename to Mobile.WYSIWYG/Content/Images/ask-the-oracle.png diff --git a/Mobile.Search.Web/Content/Images/blue-arrow.png b/Mobile.WYSIWYG/Content/Images/blue-arrow.png similarity index 100% rename from Mobile.Search.Web/Content/Images/blue-arrow.png rename to Mobile.WYSIWYG/Content/Images/blue-arrow.png diff --git a/Mobile.Search.Web/Content/Images/green-arrow.png b/Mobile.WYSIWYG/Content/Images/green-arrow.png similarity index 100% rename from Mobile.Search.Web/Content/Images/green-arrow.png rename to Mobile.WYSIWYG/Content/Images/green-arrow.png diff --git a/Mobile.Search.Web/Content/Images/image-Yahoo-app-icon.png b/Mobile.WYSIWYG/Content/Images/image-Yahoo-app-icon.png similarity index 100% rename from Mobile.Search.Web/Content/Images/image-Yahoo-app-icon.png rename to Mobile.WYSIWYG/Content/Images/image-Yahoo-app-icon.png diff --git a/Mobile.Search.Web/Content/Images/instant-tarot.png b/Mobile.WYSIWYG/Content/Images/instant-tarot.png similarity index 100% rename from Mobile.Search.Web/Content/Images/instant-tarot.png rename to Mobile.WYSIWYG/Content/Images/instant-tarot.png diff --git a/Mobile.Search.Web/Content/Images/lightningbrowser-icon.png b/Mobile.WYSIWYG/Content/Images/lightningbrowser-icon.png similarity index 100% rename from Mobile.Search.Web/Content/Images/lightningbrowser-icon.png rename to Mobile.WYSIWYG/Content/Images/lightningbrowser-icon.png diff --git a/Mobile.Search.Web/Content/Images/love-horoscope.png b/Mobile.WYSIWYG/Content/Images/love-horoscope.png similarity index 100% rename from Mobile.Search.Web/Content/Images/love-horoscope.png rename to Mobile.WYSIWYG/Content/Images/love-horoscope.png diff --git a/Mobile.Search.Web/Content/Images/lucky-numbers.png b/Mobile.WYSIWYG/Content/Images/lucky-numbers.png similarity index 100% rename from Mobile.Search.Web/Content/Images/lucky-numbers.png rename to Mobile.WYSIWYG/Content/Images/lucky-numbers.png diff --git a/Mobile.Search.Web/Content/Images/magic-8-ball.png b/Mobile.WYSIWYG/Content/Images/magic-8-ball.png similarity index 100% rename from Mobile.Search.Web/Content/Images/magic-8-ball.png rename to Mobile.WYSIWYG/Content/Images/magic-8-ball.png diff --git a/Mobile.Search.Web/Content/Images/playstore-icon.png b/Mobile.WYSIWYG/Content/Images/playstore-icon.png similarity index 100% rename from Mobile.Search.Web/Content/Images/playstore-icon.png rename to Mobile.WYSIWYG/Content/Images/playstore-icon.png diff --git a/Mobile.Search.Web/Content/Images/searchbacker.jpg b/Mobile.WYSIWYG/Content/Images/searchbacker.jpg similarity index 100% rename from Mobile.Search.Web/Content/Images/searchbacker.jpg rename to Mobile.WYSIWYG/Content/Images/searchbacker.jpg diff --git a/Mobile.Search.Web/Content/PagedList.css b/Mobile.WYSIWYG/Content/PagedList.css similarity index 100% rename from Mobile.Search.Web/Content/PagedList.css rename to Mobile.WYSIWYG/Content/PagedList.css diff --git a/Mobile.Search.Web/Content/Site.css b/Mobile.WYSIWYG/Content/Site.css similarity index 100% rename from Mobile.Search.Web/Content/Site.css rename to Mobile.WYSIWYG/Content/Site.css diff --git a/Mobile.Search.Web/Content/Templates/images/ia.gif b/Mobile.WYSIWYG/Content/Templates/images/ia.gif similarity index 100% rename from Mobile.Search.Web/Content/Templates/images/ia.gif rename to Mobile.WYSIWYG/Content/Templates/images/ia.gif diff --git a/Mobile.Search.Web/Content/Templates/images/one_click_cta.png b/Mobile.WYSIWYG/Content/Templates/images/one_click_cta.png similarity index 100% rename from Mobile.Search.Web/Content/Templates/images/one_click_cta.png rename to Mobile.WYSIWYG/Content/Templates/images/one_click_cta.png diff --git a/Mobile.Search.Web/Content/bootstrap-theme.css b/Mobile.WYSIWYG/Content/bootstrap-theme.css similarity index 100% rename from Mobile.Search.Web/Content/bootstrap-theme.css rename to Mobile.WYSIWYG/Content/bootstrap-theme.css diff --git a/Mobile.Search.Web/Content/bootstrap-theme.css.map b/Mobile.WYSIWYG/Content/bootstrap-theme.css.map similarity index 100% rename from Mobile.Search.Web/Content/bootstrap-theme.css.map rename to Mobile.WYSIWYG/Content/bootstrap-theme.css.map diff --git a/Mobile.Search.Web/Content/bootstrap-theme.min.css b/Mobile.WYSIWYG/Content/bootstrap-theme.min.css similarity index 100% rename from Mobile.Search.Web/Content/bootstrap-theme.min.css rename to Mobile.WYSIWYG/Content/bootstrap-theme.min.css diff --git a/Mobile.Search.Web/Content/bootstrap-theme.min.css.map b/Mobile.WYSIWYG/Content/bootstrap-theme.min.css.map similarity index 100% rename from Mobile.Search.Web/Content/bootstrap-theme.min.css.map rename to Mobile.WYSIWYG/Content/bootstrap-theme.min.css.map diff --git a/Mobile.Search.Web/Content/bootstrap.css b/Mobile.WYSIWYG/Content/bootstrap.css similarity index 100% rename from Mobile.Search.Web/Content/bootstrap.css rename to Mobile.WYSIWYG/Content/bootstrap.css diff --git a/Mobile.Search.Web/Content/bootstrap.css.map b/Mobile.WYSIWYG/Content/bootstrap.css.map similarity index 100% rename from Mobile.Search.Web/Content/bootstrap.css.map rename to Mobile.WYSIWYG/Content/bootstrap.css.map diff --git a/Mobile.Search.Web/Content/bootstrap.min.css b/Mobile.WYSIWYG/Content/bootstrap.min.css similarity index 100% rename from Mobile.Search.Web/Content/bootstrap.min.css rename to Mobile.WYSIWYG/Content/bootstrap.min.css diff --git a/Mobile.Search.Web/Content/bootstrap.min.css.map b/Mobile.WYSIWYG/Content/bootstrap.min.css.map similarity index 100% rename from Mobile.Search.Web/Content/bootstrap.min.css.map rename to Mobile.WYSIWYG/Content/bootstrap.min.css.map diff --git a/Mobile.Search.Web/Content/font-awesome.css b/Mobile.WYSIWYG/Content/font-awesome.css similarity index 100% rename from Mobile.Search.Web/Content/font-awesome.css rename to Mobile.WYSIWYG/Content/font-awesome.css diff --git a/Mobile.Search.Web/Content/font-awesome.min.css b/Mobile.WYSIWYG/Content/font-awesome.min.css similarity index 100% rename from Mobile.Search.Web/Content/font-awesome.min.css rename to Mobile.WYSIWYG/Content/font-awesome.min.css diff --git a/Mobile.Search.Web/Content/panes.css b/Mobile.WYSIWYG/Content/panes.css similarity index 100% rename from Mobile.Search.Web/Content/panes.css rename to Mobile.WYSIWYG/Content/panes.css diff --git a/Mobile.Search.Web/Content/redblack.css b/Mobile.WYSIWYG/Content/redblack.css similarity index 100% rename from Mobile.Search.Web/Content/redblack.css rename to Mobile.WYSIWYG/Content/redblack.css diff --git a/Mobile.Search.Web/Controllers/AccountController.cs b/Mobile.WYSIWYG/Controllers/AccountController.cs similarity index 100% rename from Mobile.Search.Web/Controllers/AccountController.cs rename to Mobile.WYSIWYG/Controllers/AccountController.cs diff --git a/Mobile.Search.Web/Controllers/BidSystemController.cs b/Mobile.WYSIWYG/Controllers/BidSystemController.cs similarity index 100% rename from Mobile.Search.Web/Controllers/BidSystemController.cs rename to Mobile.WYSIWYG/Controllers/BidSystemController.cs diff --git a/Mobile.Search.Web/Controllers/DesktopController.cs b/Mobile.WYSIWYG/Controllers/DesktopController.cs similarity index 100% rename from Mobile.Search.Web/Controllers/DesktopController.cs rename to Mobile.WYSIWYG/Controllers/DesktopController.cs diff --git a/Mobile.Search.Web/Controllers/HomeController.cs b/Mobile.WYSIWYG/Controllers/HomeController.cs similarity index 100% rename from Mobile.Search.Web/Controllers/HomeController.cs rename to Mobile.WYSIWYG/Controllers/HomeController.cs diff --git a/Mobile.Search.Web/Controllers/InboxMobiController.cs b/Mobile.WYSIWYG/Controllers/InboxMobiController.cs similarity index 100% rename from Mobile.Search.Web/Controllers/InboxMobiController.cs rename to Mobile.WYSIWYG/Controllers/InboxMobiController.cs diff --git a/Mobile.Search.Web/Controllers/KeywordBlockController.cs b/Mobile.WYSIWYG/Controllers/KeywordBlockController.cs similarity index 100% rename from Mobile.Search.Web/Controllers/KeywordBlockController.cs rename to Mobile.WYSIWYG/Controllers/KeywordBlockController.cs diff --git a/Mobile.Search.Web/Controllers/LightningController.cs b/Mobile.WYSIWYG/Controllers/LightningController.cs similarity index 100% rename from Mobile.Search.Web/Controllers/LightningController.cs rename to Mobile.WYSIWYG/Controllers/LightningController.cs diff --git a/Mobile.Search.Web/Controllers/PingController.cs b/Mobile.WYSIWYG/Controllers/PingController.cs similarity index 100% rename from Mobile.Search.Web/Controllers/PingController.cs rename to Mobile.WYSIWYG/Controllers/PingController.cs diff --git a/Mobile.Search.Web/Controllers/QuizController.cs b/Mobile.WYSIWYG/Controllers/QuizController.cs similarity index 100% rename from Mobile.Search.Web/Controllers/QuizController.cs rename to Mobile.WYSIWYG/Controllers/QuizController.cs diff --git a/Mobile.Search.Web/Controllers/ResultsController.cs b/Mobile.WYSIWYG/Controllers/ResultsController.cs similarity index 100% rename from Mobile.Search.Web/Controllers/ResultsController.cs rename to Mobile.WYSIWYG/Controllers/ResultsController.cs diff --git a/Mobile.Search.Web/Controllers/SearchController.cs b/Mobile.WYSIWYG/Controllers/SearchController.cs similarity index 100% rename from Mobile.Search.Web/Controllers/SearchController.cs rename to Mobile.WYSIWYG/Controllers/SearchController.cs diff --git a/Mobile.Search.Web/Controllers/TemplateController.cs b/Mobile.WYSIWYG/Controllers/TemplateController.cs similarity index 100% rename from Mobile.Search.Web/Controllers/TemplateController.cs rename to Mobile.WYSIWYG/Controllers/TemplateController.cs diff --git a/Mobile.Search.Web/Controllers/TestController.cs b/Mobile.WYSIWYG/Controllers/TestController.cs similarity index 100% rename from Mobile.Search.Web/Controllers/TestController.cs rename to Mobile.WYSIWYG/Controllers/TestController.cs diff --git a/Mobile.Search.Web/Controllers/UserStatsController.cs b/Mobile.WYSIWYG/Controllers/UserStatsController.cs similarity index 100% rename from Mobile.Search.Web/Controllers/UserStatsController.cs rename to Mobile.WYSIWYG/Controllers/UserStatsController.cs diff --git a/Mobile.Search.Web/Controllers/WebClipController.cs b/Mobile.WYSIWYG/Controllers/WebClipController.cs similarity index 100% rename from Mobile.Search.Web/Controllers/WebClipController.cs rename to Mobile.WYSIWYG/Controllers/WebClipController.cs diff --git a/Mobile.Search.Web/Extensions/HtmlExtensions.cs b/Mobile.WYSIWYG/Extensions/HtmlExtensions.cs similarity index 100% rename from Mobile.Search.Web/Extensions/HtmlExtensions.cs rename to Mobile.WYSIWYG/Extensions/HtmlExtensions.cs diff --git a/Mobile.Search.Web/Extensions/UrlHelperExtensions.cs b/Mobile.WYSIWYG/Extensions/UrlHelperExtensions.cs similarity index 100% rename from Mobile.Search.Web/Extensions/UrlHelperExtensions.cs rename to Mobile.WYSIWYG/Extensions/UrlHelperExtensions.cs diff --git a/Mobile.Search.Web/File.cs b/Mobile.WYSIWYG/File.cs similarity index 100% rename from Mobile.Search.Web/File.cs rename to Mobile.WYSIWYG/File.cs diff --git a/Mobile.Search.Web/File/FileOptions.cs b/Mobile.WYSIWYG/File/FileOptions.cs similarity index 100% rename from Mobile.Search.Web/File/FileOptions.cs rename to Mobile.WYSIWYG/File/FileOptions.cs diff --git a/Mobile.Search.Web/File/FileValidation.cs b/Mobile.WYSIWYG/File/FileValidation.cs similarity index 100% rename from Mobile.Search.Web/File/FileValidation.cs rename to Mobile.WYSIWYG/File/FileValidation.cs diff --git a/Mobile.Search.Web/FroalaEditor.cs b/Mobile.WYSIWYG/FroalaEditor.cs similarity index 100% rename from Mobile.Search.Web/FroalaEditor.cs rename to Mobile.WYSIWYG/FroalaEditor.cs diff --git a/Mobile.Search.Web/FroalaEditorSDK.nuspec b/Mobile.WYSIWYG/FroalaEditorSDK.nuspec similarity index 100% rename from Mobile.Search.Web/FroalaEditorSDK.nuspec rename to Mobile.WYSIWYG/FroalaEditorSDK.nuspec diff --git a/Mobile.Search.Web/Global.asax b/Mobile.WYSIWYG/Global.asax similarity index 100% rename from Mobile.Search.Web/Global.asax rename to Mobile.WYSIWYG/Global.asax diff --git a/Mobile.Search.Web/Global.asax.cs b/Mobile.WYSIWYG/Global.asax.cs similarity index 100% rename from Mobile.Search.Web/Global.asax.cs rename to Mobile.WYSIWYG/Global.asax.cs diff --git a/Mobile.Search.Web/Helpers/ClickUrlStorage.cs b/Mobile.WYSIWYG/Helpers/ClickUrlStorage.cs similarity index 100% rename from Mobile.Search.Web/Helpers/ClickUrlStorage.cs rename to Mobile.WYSIWYG/Helpers/ClickUrlStorage.cs diff --git a/Mobile.Search.Web/Helpers/DynamoHelper.cs b/Mobile.WYSIWYG/Helpers/DynamoHelper.cs similarity index 100% rename from Mobile.Search.Web/Helpers/DynamoHelper.cs rename to Mobile.WYSIWYG/Helpers/DynamoHelper.cs diff --git a/Mobile.Search.Web/Helpers/JobListener.cs b/Mobile.WYSIWYG/Helpers/JobListener.cs similarity index 100% rename from Mobile.Search.Web/Helpers/JobListener.cs rename to Mobile.WYSIWYG/Helpers/JobListener.cs diff --git a/Mobile.Search.Web/Helpers/JobScheduler.cs b/Mobile.WYSIWYG/Helpers/JobScheduler.cs similarity index 100% rename from Mobile.Search.Web/Helpers/JobScheduler.cs rename to Mobile.WYSIWYG/Helpers/JobScheduler.cs diff --git a/Mobile.Search.Web/Helpers/PublisherCloudWatchMetricsJob.cs b/Mobile.WYSIWYG/Helpers/PublisherCloudWatchMetricsJob.cs similarity index 100% rename from Mobile.Search.Web/Helpers/PublisherCloudWatchMetricsJob.cs rename to Mobile.WYSIWYG/Helpers/PublisherCloudWatchMetricsJob.cs diff --git a/Mobile.Search.Web/Helpers/RedisHelper.cs b/Mobile.WYSIWYG/Helpers/RedisHelper.cs similarity index 100% rename from Mobile.Search.Web/Helpers/RedisHelper.cs rename to Mobile.WYSIWYG/Helpers/RedisHelper.cs diff --git a/Mobile.Search.Web/Helpers/RelatedKeywordsHelper.cs b/Mobile.WYSIWYG/Helpers/RelatedKeywordsHelper.cs similarity index 100% rename from Mobile.Search.Web/Helpers/RelatedKeywordsHelper.cs rename to Mobile.WYSIWYG/Helpers/RelatedKeywordsHelper.cs diff --git a/Mobile.Search.Web/Helpers/RequestHelper.cs b/Mobile.WYSIWYG/Helpers/RequestHelper.cs similarity index 100% rename from Mobile.Search.Web/Helpers/RequestHelper.cs rename to Mobile.WYSIWYG/Helpers/RequestHelper.cs diff --git a/Mobile.Search.Web/Helpers/SourceTagDynamoHelper.cs b/Mobile.WYSIWYG/Helpers/SourceTagDynamoHelper.cs similarity index 100% rename from Mobile.Search.Web/Helpers/SourceTagDynamoHelper.cs rename to Mobile.WYSIWYG/Helpers/SourceTagDynamoHelper.cs diff --git a/Mobile.Search.Web/Helpers/TemplateCache.cs b/Mobile.WYSIWYG/Helpers/TemplateCache.cs similarity index 100% rename from Mobile.Search.Web/Helpers/TemplateCache.cs rename to Mobile.WYSIWYG/Helpers/TemplateCache.cs diff --git a/Mobile.Search.Web/Helpers/TopKeywordsCache.cs b/Mobile.WYSIWYG/Helpers/TopKeywordsCache.cs similarity index 100% rename from Mobile.Search.Web/Helpers/TopKeywordsCache.cs rename to Mobile.WYSIWYG/Helpers/TopKeywordsCache.cs diff --git a/Mobile.Search.Web/Image.cs b/Mobile.WYSIWYG/Image.cs similarity index 100% rename from Mobile.Search.Web/Image.cs rename to Mobile.WYSIWYG/Image.cs diff --git a/Mobile.Search.Web/Image/ImageOptions.cs b/Mobile.WYSIWYG/Image/ImageOptions.cs similarity index 100% rename from Mobile.Search.Web/Image/ImageOptions.cs rename to Mobile.WYSIWYG/Image/ImageOptions.cs diff --git a/Mobile.Search.Web/Image/ImageValidation.cs b/Mobile.WYSIWYG/Image/ImageValidation.cs similarity index 100% rename from Mobile.Search.Web/Image/ImageValidation.cs rename to Mobile.WYSIWYG/Image/ImageValidation.cs diff --git a/Mobile.Search.Web/Mobile.Search.Web.csproj.orig b/Mobile.WYSIWYG/Mobile.Search.Web.csproj.orig similarity index 100% rename from Mobile.Search.Web/Mobile.Search.Web.csproj.orig rename to Mobile.WYSIWYG/Mobile.Search.Web.csproj.orig diff --git a/Mobile.Search.Web/Mobile.WYSIWYG.csproj b/Mobile.WYSIWYG/Mobile.WYSIWYG.csproj similarity index 100% rename from Mobile.Search.Web/Mobile.WYSIWYG.csproj rename to Mobile.WYSIWYG/Mobile.WYSIWYG.csproj diff --git a/Mobile.Search.Web/Models/AccountViewModels.cs b/Mobile.WYSIWYG/Models/AccountViewModels.cs similarity index 100% rename from Mobile.Search.Web/Models/AccountViewModels.cs rename to Mobile.WYSIWYG/Models/AccountViewModels.cs diff --git a/Mobile.Search.Web/Models/AdStation.cs b/Mobile.WYSIWYG/Models/AdStation.cs similarity index 100% rename from Mobile.Search.Web/Models/AdStation.cs rename to Mobile.WYSIWYG/Models/AdStation.cs diff --git a/Mobile.Search.Web/Models/FormSubmitModel.cs b/Mobile.WYSIWYG/Models/FormSubmitModel.cs similarity index 100% rename from Mobile.Search.Web/Models/FormSubmitModel.cs rename to Mobile.WYSIWYG/Models/FormSubmitModel.cs diff --git a/Mobile.Search.Web/Models/IdentityModels.cs b/Mobile.WYSIWYG/Models/IdentityModels.cs similarity index 100% rename from Mobile.Search.Web/Models/IdentityModels.cs rename to Mobile.WYSIWYG/Models/IdentityModels.cs diff --git a/Mobile.Search.Web/Models/ManageViewModels.cs b/Mobile.WYSIWYG/Models/ManageViewModels.cs similarity index 100% rename from Mobile.Search.Web/Models/ManageViewModels.cs rename to Mobile.WYSIWYG/Models/ManageViewModels.cs diff --git a/Mobile.Search.Web/Models/QuizQuestion.cs b/Mobile.WYSIWYG/Models/QuizQuestion.cs similarity index 100% rename from Mobile.Search.Web/Models/QuizQuestion.cs rename to Mobile.WYSIWYG/Models/QuizQuestion.cs diff --git a/Mobile.Search.Web/Models/SourceTagMapping.cs b/Mobile.WYSIWYG/Models/SourceTagMapping.cs similarity index 100% rename from Mobile.Search.Web/Models/SourceTagMapping.cs rename to Mobile.WYSIWYG/Models/SourceTagMapping.cs diff --git a/Mobile.Search.Web/Models/TemplateVariables.cs b/Mobile.WYSIWYG/Models/TemplateVariables.cs similarity index 100% rename from Mobile.Search.Web/Models/TemplateVariables.cs rename to Mobile.WYSIWYG/Models/TemplateVariables.cs diff --git a/Mobile.Search.Web/Project_Readme.html b/Mobile.WYSIWYG/Project_Readme.html similarity index 100% rename from Mobile.Search.Web/Project_Readme.html rename to Mobile.WYSIWYG/Project_Readme.html diff --git a/Mobile.Search.Web/Properties/AssemblyInfo.cs b/Mobile.WYSIWYG/Properties/AssemblyInfo.cs similarity index 100% rename from Mobile.Search.Web/Properties/AssemblyInfo.cs rename to Mobile.WYSIWYG/Properties/AssemblyInfo.cs diff --git a/Mobile.Search.Web/S3.cs b/Mobile.WYSIWYG/S3.cs similarity index 100% rename from Mobile.Search.Web/S3.cs rename to Mobile.WYSIWYG/S3.cs diff --git a/Mobile.Search.Web/S3/S3Config.cs b/Mobile.WYSIWYG/S3/S3Config.cs similarity index 100% rename from Mobile.Search.Web/S3/S3Config.cs rename to Mobile.WYSIWYG/S3/S3Config.cs diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/comment/comment.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/comment/comment.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/comment/comment.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/comment/comment.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/comment/continuecomment.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/comment/continuecomment.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/comment/continuecomment.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/comment/continuecomment.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/dialog/dialog.css b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/dialog/dialog.css similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/dialog/dialog.css rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/dialog/dialog.css diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/dialog/dialog.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/dialog/dialog.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/dialog/dialog.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/dialog/dialog.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/display/autorefresh.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/display/autorefresh.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/display/autorefresh.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/display/autorefresh.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/display/fullscreen.css b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/display/fullscreen.css similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/display/fullscreen.css rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/display/fullscreen.css diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/display/fullscreen.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/display/fullscreen.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/display/fullscreen.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/display/fullscreen.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/display/panel.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/display/panel.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/display/panel.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/display/panel.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/display/placeholder.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/display/placeholder.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/display/placeholder.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/display/placeholder.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/display/rulers.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/display/rulers.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/display/rulers.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/display/rulers.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/edit/closebrackets.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/edit/closebrackets.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/edit/closebrackets.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/edit/closebrackets.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/edit/closetag.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/edit/closetag.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/edit/closetag.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/edit/closetag.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/edit/continuelist.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/edit/continuelist.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/edit/continuelist.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/edit/continuelist.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/edit/matchbrackets.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/edit/matchbrackets.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/edit/matchbrackets.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/edit/matchbrackets.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/edit/matchtags.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/edit/matchtags.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/edit/matchtags.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/edit/matchtags.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/edit/trailingspace.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/edit/trailingspace.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/edit/trailingspace.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/edit/trailingspace.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/fold/brace-fold.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/fold/brace-fold.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/fold/brace-fold.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/fold/brace-fold.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/fold/comment-fold.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/fold/comment-fold.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/fold/comment-fold.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/fold/comment-fold.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/fold/foldcode.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/fold/foldcode.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/fold/foldcode.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/fold/foldcode.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/fold/foldgutter.css b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/fold/foldgutter.css similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/fold/foldgutter.css rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/fold/foldgutter.css diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/fold/foldgutter.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/fold/foldgutter.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/fold/foldgutter.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/fold/foldgutter.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/fold/indent-fold.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/fold/indent-fold.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/fold/indent-fold.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/fold/indent-fold.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/fold/markdown-fold.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/fold/markdown-fold.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/fold/markdown-fold.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/fold/markdown-fold.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/fold/xml-fold.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/fold/xml-fold.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/fold/xml-fold.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/fold/xml-fold.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/hint/anyword-hint.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/hint/anyword-hint.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/hint/anyword-hint.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/hint/anyword-hint.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/hint/css-hint.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/hint/css-hint.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/hint/css-hint.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/hint/css-hint.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/hint/html-hint.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/hint/html-hint.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/hint/html-hint.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/hint/html-hint.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/hint/javascript-hint.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/hint/javascript-hint.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/hint/javascript-hint.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/hint/javascript-hint.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/hint/show-hint.css b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/hint/show-hint.css similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/hint/show-hint.css rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/hint/show-hint.css diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/hint/show-hint.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/hint/show-hint.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/hint/show-hint.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/hint/show-hint.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/hint/sql-hint.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/hint/sql-hint.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/hint/sql-hint.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/hint/sql-hint.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/hint/xml-hint.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/hint/xml-hint.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/hint/xml-hint.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/hint/xml-hint.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/lint/coffeescript-lint.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/lint/coffeescript-lint.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/lint/coffeescript-lint.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/lint/coffeescript-lint.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/lint/css-lint.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/lint/css-lint.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/lint/css-lint.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/lint/css-lint.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/lint/html-lint.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/lint/html-lint.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/lint/html-lint.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/lint/html-lint.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/lint/javascript-lint.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/lint/javascript-lint.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/lint/javascript-lint.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/lint/javascript-lint.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/lint/json-lint.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/lint/json-lint.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/lint/json-lint.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/lint/json-lint.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/lint/lint.css b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/lint/lint.css similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/lint/lint.css rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/lint/lint.css diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/lint/lint.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/lint/lint.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/lint/lint.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/lint/lint.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/lint/yaml-lint.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/lint/yaml-lint.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/lint/yaml-lint.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/lint/yaml-lint.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/merge/merge.css b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/merge/merge.css similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/merge/merge.css rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/merge/merge.css diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/merge/merge.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/merge/merge.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/merge/merge.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/merge/merge.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/mode/loadmode.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/mode/loadmode.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/mode/loadmode.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/mode/loadmode.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/mode/multiplex.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/mode/multiplex.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/mode/multiplex.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/mode/multiplex.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/mode/multiplex_test.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/mode/multiplex_test.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/mode/multiplex_test.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/mode/multiplex_test.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/mode/overlay.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/mode/overlay.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/mode/overlay.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/mode/overlay.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/mode/simple.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/mode/simple.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/mode/simple.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/mode/simple.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/runmode/colorize.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/runmode/colorize.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/runmode/colorize.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/runmode/colorize.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/runmode/runmode-standalone.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/runmode/runmode-standalone.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/runmode/runmode-standalone.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/runmode/runmode-standalone.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/runmode/runmode.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/runmode/runmode.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/runmode/runmode.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/runmode/runmode.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/runmode/runmode.node.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/runmode/runmode.node.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/runmode/runmode.node.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/runmode/runmode.node.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/scroll/annotatescrollbar.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/scroll/annotatescrollbar.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/scroll/annotatescrollbar.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/scroll/annotatescrollbar.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/scroll/scrollpastend.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/scroll/scrollpastend.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/scroll/scrollpastend.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/scroll/scrollpastend.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/scroll/simplescrollbars.css b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/scroll/simplescrollbars.css similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/scroll/simplescrollbars.css rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/scroll/simplescrollbars.css diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/scroll/simplescrollbars.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/scroll/simplescrollbars.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/scroll/simplescrollbars.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/scroll/simplescrollbars.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/search/jump-to-line.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/search/jump-to-line.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/search/jump-to-line.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/search/jump-to-line.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/search/match-highlighter.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/search/match-highlighter.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/search/match-highlighter.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/search/match-highlighter.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/search/matchesonscrollbar.css b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/search/matchesonscrollbar.css similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/search/matchesonscrollbar.css rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/search/matchesonscrollbar.css diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/search/matchesonscrollbar.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/search/matchesonscrollbar.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/search/matchesonscrollbar.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/search/matchesonscrollbar.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/search/search.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/search/search.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/search/search.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/search/search.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/search/searchcursor.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/search/searchcursor.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/search/searchcursor.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/search/searchcursor.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/selection/active-line.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/selection/active-line.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/selection/active-line.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/selection/active-line.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/selection/mark-selection.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/selection/mark-selection.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/selection/mark-selection.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/selection/mark-selection.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/selection/selection-pointer.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/selection/selection-pointer.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/selection/selection-pointer.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/selection/selection-pointer.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/tern/tern.css b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/tern/tern.css similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/tern/tern.css rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/tern/tern.css diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/tern/tern.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/tern/tern.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/tern/tern.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/tern/tern.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/tern/worker.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/tern/worker.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/tern/worker.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/tern/worker.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/addon/wrap/hardwrap.js b/Mobile.WYSIWYG/Scripts/CodeMirror/addon/wrap/hardwrap.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/addon/wrap/hardwrap.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/addon/wrap/hardwrap.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/keymap/emacs.js b/Mobile.WYSIWYG/Scripts/CodeMirror/keymap/emacs.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/keymap/emacs.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/keymap/emacs.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/keymap/sublime.js b/Mobile.WYSIWYG/Scripts/CodeMirror/keymap/sublime.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/keymap/sublime.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/keymap/sublime.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/keymap/vim.js b/Mobile.WYSIWYG/Scripts/CodeMirror/keymap/vim.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/keymap/vim.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/keymap/vim.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/lib/codemirror.css b/Mobile.WYSIWYG/Scripts/CodeMirror/lib/codemirror.css similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/lib/codemirror.css rename to Mobile.WYSIWYG/Scripts/CodeMirror/lib/codemirror.css diff --git a/Mobile.Search.Web/Scripts/CodeMirror/lib/codemirror.js b/Mobile.WYSIWYG/Scripts/CodeMirror/lib/codemirror.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/lib/codemirror.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/lib/codemirror.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/apl/apl.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/apl/apl.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/apl/apl.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/apl/apl.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/apl/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/apl/index.html similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/apl/index.html rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/apl/index.html diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/asciiarmor/asciiarmor.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/asciiarmor/asciiarmor.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/asciiarmor/asciiarmor.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/asciiarmor/asciiarmor.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/asciiarmor/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/asciiarmor/index.html similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/asciiarmor/index.html rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/asciiarmor/index.html diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/asn.1/asn.1.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/asn.1/asn.1.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/asn.1/asn.1.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/asn.1/asn.1.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/asn.1/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/asn.1/index.html similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/asn.1/index.html rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/asn.1/index.html diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/asterisk/asterisk.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/asterisk/asterisk.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/asterisk/asterisk.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/asterisk/asterisk.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/asterisk/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/asterisk/index.html similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/asterisk/index.html rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/asterisk/index.html diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/brainfuck/brainfuck.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/brainfuck/brainfuck.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/brainfuck/brainfuck.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/brainfuck/brainfuck.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/brainfuck/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/brainfuck/index.html similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/brainfuck/index.html rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/brainfuck/index.html diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/clike/clike.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/clike/clike.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/clike/clike.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/clike/clike.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/clike/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/clike/index.html similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/clike/index.html rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/clike/index.html diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/clike/scala.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/clike/scala.html similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/clike/scala.html rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/clike/scala.html diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/clike/test.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/clike/test.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/clike/test.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/clike/test.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/clojure/clojure.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/clojure/clojure.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/clojure/clojure.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/clojure/clojure.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/clojure/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/clojure/index.html similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/clojure/index.html rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/clojure/index.html diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/cmake/cmake.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/cmake/cmake.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/cmake/cmake.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/cmake/cmake.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/cmake/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/cmake/index.html similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/cmake/index.html rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/cmake/index.html diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/cobol/cobol.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/cobol/cobol.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/cobol/cobol.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/cobol/cobol.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/cobol/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/cobol/index.html similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/cobol/index.html rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/cobol/index.html diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/coffeescript/coffeescript.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/coffeescript/coffeescript.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/coffeescript/coffeescript.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/coffeescript/coffeescript.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/coffeescript/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/coffeescript/index.html similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/coffeescript/index.html rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/coffeescript/index.html diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/commonlisp/commonlisp.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/commonlisp/commonlisp.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/commonlisp/commonlisp.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/commonlisp/commonlisp.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/commonlisp/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/commonlisp/index.html similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/commonlisp/index.html rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/commonlisp/index.html diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/crystal/crystal.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/crystal/crystal.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/crystal/crystal.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/crystal/crystal.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/crystal/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/crystal/index.html similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/crystal/index.html rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/crystal/index.html diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/css/css.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/css/css.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/css/css.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/css/css.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/css/gss.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/css/gss.html similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/css/gss.html rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/css/gss.html diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/css/gss_test.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/css/gss_test.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/css/gss_test.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/css/gss_test.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/css/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/css/index.html similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/css/index.html rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/css/index.html diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/css/less.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/css/less.html similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/css/less.html rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/css/less.html diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/css/less_test.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/css/less_test.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/css/less_test.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/css/less_test.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/css/scss.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/css/scss.html similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/css/scss.html rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/css/scss.html diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/css/scss_test.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/css/scss_test.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/css/scss_test.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/css/scss_test.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/css/test.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/css/test.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/css/test.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/css/test.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/cypher/cypher.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/cypher/cypher.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/cypher/cypher.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/cypher/cypher.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/cypher/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/cypher/index.html similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/cypher/index.html rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/cypher/index.html diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/d/d.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/d/d.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/d/d.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/d/d.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/d/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/d/index.html similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/d/index.html rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/d/index.html diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/dart/dart.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/dart/dart.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/dart/dart.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/dart/dart.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/dart/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/dart/index.html similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/dart/index.html rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/dart/index.html diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/diff/diff.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/diff/diff.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/diff/diff.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/diff/diff.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/diff/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/diff/index.html similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/diff/index.html rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/diff/index.html diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/django/django.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/django/django.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/django/django.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/django/django.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/django/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/django/index.html similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/django/index.html rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/django/index.html diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/dockerfile/dockerfile.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/dockerfile/dockerfile.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/dockerfile/dockerfile.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/dockerfile/dockerfile.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/dockerfile/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/dockerfile/index.html similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/dockerfile/index.html rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/dockerfile/index.html diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/dtd/dtd.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/dtd/dtd.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/dtd/dtd.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/dtd/dtd.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/dtd/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/dtd/index.html similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/dtd/index.html rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/dtd/index.html diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/dylan/dylan.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/dylan/dylan.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/dylan/dylan.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/dylan/dylan.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/dylan/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/dylan/index.html similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/dylan/index.html rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/dylan/index.html diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/dylan/test.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/dylan/test.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/dylan/test.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/dylan/test.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/ebnf/ebnf.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/ebnf/ebnf.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/ebnf/ebnf.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/ebnf/ebnf.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/ebnf/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/ebnf/index.html similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/ebnf/index.html rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/ebnf/index.html diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/ecl/ecl.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/ecl/ecl.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/ecl/ecl.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/ecl/ecl.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/ecl/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/ecl/index.html similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/ecl/index.html rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/ecl/index.html diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/eiffel/eiffel.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/eiffel/eiffel.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/eiffel/eiffel.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/eiffel/eiffel.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/eiffel/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/eiffel/index.html similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/eiffel/index.html rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/eiffel/index.html diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/elm/elm.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/elm/elm.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/elm/elm.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/elm/elm.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/elm/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/elm/index.html similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/elm/index.html rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/elm/index.html diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/erlang/erlang.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/erlang/erlang.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/erlang/erlang.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/erlang/erlang.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/erlang/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/erlang/index.html similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/erlang/index.html rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/erlang/index.html diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/factor/factor.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/factor/factor.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/factor/factor.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/factor/factor.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/factor/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/factor/index.html similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/factor/index.html rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/factor/index.html diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/fcl/fcl.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/fcl/fcl.js new file mode 100644 index 0000000..5181169 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/fcl/fcl.js @@ -0,0 +1,173 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("fcl", function(config) { + var indentUnit = config.indentUnit; + + var keywords = { + "term": true, + "method": true, "accu": true, + "rule": true, "then": true, "is": true, "and": true, "or": true, + "if": true, "default": true + }; + + var start_blocks = { + "var_input": true, + "var_output": true, + "fuzzify": true, + "defuzzify": true, + "function_block": true, + "ruleblock": true + }; + + var end_blocks = { + "end_ruleblock": true, + "end_defuzzify": true, + "end_function_block": true, + "end_fuzzify": true, + "end_var": true + }; + + var atoms = { + "true": true, "false": true, "nan": true, + "real": true, "min": true, "max": true, "cog": true, "cogs": true + }; + + var isOperatorChar = /[+\-*&^%:=<>!|\/]/; + + function tokenBase(stream, state) { + var ch = stream.next(); + + if (/[\d\.]/.test(ch)) { + if (ch == ".") { + stream.match(/^[0-9]+([eE][\-+]?[0-9]+)?/); + } else if (ch == "0") { + stream.match(/^[xX][0-9a-fA-F]+/) || stream.match(/^0[0-7]+/); + } else { + stream.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/); + } + return "number"; + } + + if (ch == "/" || ch == "(") { + if (stream.eat("*")) { + state.tokenize = tokenComment; + return tokenComment(stream, state); + } + if (stream.eat("/")) { + stream.skipToEnd(); + return "comment"; + } + } + if (isOperatorChar.test(ch)) { + stream.eatWhile(isOperatorChar); + return "operator"; + } + stream.eatWhile(/[\w\$_\xa1-\uffff]/); + + var cur = stream.current().toLowerCase(); + if (keywords.propertyIsEnumerable(cur) || + start_blocks.propertyIsEnumerable(cur) || + end_blocks.propertyIsEnumerable(cur)) { + return "keyword"; + } + if (atoms.propertyIsEnumerable(cur)) return "atom"; + return "variable"; + } + + + function tokenComment(stream, state) { + var maybeEnd = false, ch; + while (ch = stream.next()) { + if ((ch == "/" || ch == ")") && maybeEnd) { + state.tokenize = tokenBase; + break; + } + maybeEnd = (ch == "*"); + } + return "comment"; + } + + function Context(indented, column, type, align, prev) { + this.indented = indented; + this.column = column; + this.type = type; + this.align = align; + this.prev = prev; + } + + function pushContext(state, col, type) { + return state.context = new Context(state.indented, col, type, null, state.context); + } + + function popContext(state) { + if (!state.context.prev) return; + var t = state.context.type; + if (t == "end_block") + state.indented = state.context.indented; + return state.context = state.context.prev; + } + + // Interface + + return { + startState: function(basecolumn) { + return { + tokenize: null, + context: new Context((basecolumn || 0) - indentUnit, 0, "top", false), + indented: 0, + startOfLine: true + }; + }, + + token: function(stream, state) { + var ctx = state.context; + if (stream.sol()) { + if (ctx.align == null) ctx.align = false; + state.indented = stream.indentation(); + state.startOfLine = true; + } + if (stream.eatSpace()) return null; + + var style = (state.tokenize || tokenBase)(stream, state); + if (style == "comment") return style; + if (ctx.align == null) ctx.align = true; + + var cur = stream.current().toLowerCase(); + + if (start_blocks.propertyIsEnumerable(cur)) pushContext(state, stream.column(), "end_block"); + else if (end_blocks.propertyIsEnumerable(cur)) popContext(state); + + state.startOfLine = false; + return style; + }, + + indent: function(state, textAfter) { + if (state.tokenize != tokenBase && state.tokenize != null) return 0; + var ctx = state.context; + + var closing = end_blocks.propertyIsEnumerable(textAfter); + if (ctx.align) return ctx.column + (closing ? 0 : 1); + else return ctx.indented + (closing ? 0 : indentUnit); + }, + + electricChars: "ryk", + fold: "brace", + blockCommentStart: "(*", + blockCommentEnd: "*)", + lineComment: "//" + }; +}); + +CodeMirror.defineMIME("text/x-fcl", "fcl"); +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/fcl/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/fcl/index.html new file mode 100644 index 0000000..3c18d0b --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/fcl/index.html @@ -0,0 +1,108 @@ +<!doctype html> + +<title>CodeMirror: FCL mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<link rel="stylesheet" href="../../theme/elegant.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../../addon/edit/matchbrackets.js"></script> +<script src="fcl.js"></script> +<style>.CodeMirror {border:1px solid #999; background:#ffc}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">FCL</a> + </ul> +</div> + +<article> +<h2>FCL mode</h2> +<form><textarea id="code" name="code"> + FUNCTION_BLOCK Fuzzy_FB + VAR_INPUT + TimeDay : REAL; (* RANGE(0 .. 23) *) + ApplicateHost: REAL; + TimeConfiguration: REAL; + TimeRequirements: REAL; + END_VAR + + VAR_OUTPUT + ProbabilityDistribution: REAL; + ProbabilityAccess: REAL; + END_VAR + + FUZZIFY TimeDay + TERM inside := (0, 0) (8, 1) (22,0); + TERM outside := (0, 1) (8, 0) (22, 1); + END_FUZZIFY + + FUZZIFY ApplicateHost + TERM few := (0, 1) (100, 0) (200, 0); + TERM many := (0, 0) (100, 0) (200, 1); + END_FUZZIFY + + FUZZIFY TimeConfiguration + TERM recently := (0, 1) (30, 1) (120, 0); + TERM long := (0, 0) (30, 0) (120, 1); + END_FUZZIFY + + FUZZIFY TimeRequirements + TERM recently := (0, 1) (30, 1) (365, 0); + TERM long := (0, 0) (30, 0) (365, 1); + END_FUZZIFY + + DEFUZZIFY ProbabilityAccess + TERM hight := 1; + TERM medium := 0.5; + TERM low := 0; + ACCU: MAX; + METHOD: COGS; + DEFAULT := 0; + END_DEFUZZIFY + + DEFUZZIFY ProbabilityDistribution + TERM hight := 1; + TERM medium := 0.5; + TERM low := 0; + ACCU: MAX; + METHOD: COGS; + DEFAULT := 0; + END_DEFUZZIFY + + RULEBLOCK No1 + AND : MIN; + RULE 1 : IF TimeDay IS outside AND ApplicateHost IS few THEN ProbabilityAccess IS hight; + RULE 2 : IF ApplicateHost IS many THEN ProbabilityAccess IS hight; + RULE 3 : IF TimeDay IS inside AND ApplicateHost IS few THEN ProbabilityAccess IS low; + END_RULEBLOCK + + RULEBLOCK No2 + AND : MIN; + RULE 1 : IF ApplicateHost IS many THEN ProbabilityDistribution IS hight; + END_RULEBLOCK + + END_FUNCTION_BLOCK +</textarea></form> + + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + theme: "elegant", + matchBrackets: true, + indentUnit: 8, + tabSize: 8, + indentWithTabs: true, + mode: "text/x-fcl" + }); + </script> + + <p><strong>MIME type:</strong> <code>text/x-fcl</code></p> + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/forth/forth.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/forth/forth.js new file mode 100644 index 0000000..1f519d8 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/forth/forth.js @@ -0,0 +1,180 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +// Author: Aliaksei Chapyzhenka + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { + "use strict"; + + function toWordList(words) { + var ret = []; + words.split(' ').forEach(function(e){ + ret.push({name: e}); + }); + return ret; + } + + var coreWordList = toWordList( +'INVERT AND OR XOR\ + 2* 2/ LSHIFT RSHIFT\ + 0= = 0< < > U< MIN MAX\ + 2DROP 2DUP 2OVER 2SWAP ?DUP DEPTH DROP DUP OVER ROT SWAP\ + >R R> R@\ + + - 1+ 1- ABS NEGATE\ + S>D * M* UM*\ + FM/MOD SM/REM UM/MOD */ */MOD / /MOD MOD\ + HERE , @ ! CELL+ CELLS C, C@ C! CHARS 2@ 2!\ + ALIGN ALIGNED +! ALLOT\ + CHAR [CHAR] [ ] BL\ + FIND EXECUTE IMMEDIATE COUNT LITERAL STATE\ + ; DOES> >BODY\ + EVALUATE\ + SOURCE >IN\ + <# # #S #> HOLD SIGN BASE >NUMBER HEX DECIMAL\ + FILL MOVE\ + . CR EMIT SPACE SPACES TYPE U. .R U.R\ + ACCEPT\ + TRUE FALSE\ + <> U> 0<> 0>\ + NIP TUCK ROLL PICK\ + 2>R 2R@ 2R>\ + WITHIN UNUSED MARKER\ + I J\ + TO\ + COMPILE, [COMPILE]\ + SAVE-INPUT RESTORE-INPUT\ + PAD ERASE\ + 2LITERAL DNEGATE\ + D- D+ D0< D0= D2* D2/ D< D= DMAX DMIN D>S DABS\ + M+ M*/ D. D.R 2ROT DU<\ + CATCH THROW\ + FREE RESIZE ALLOCATE\ + CS-PICK CS-ROLL\ + GET-CURRENT SET-CURRENT FORTH-WORDLIST GET-ORDER SET-ORDER\ + PREVIOUS SEARCH-WORDLIST WORDLIST FIND ALSO ONLY FORTH DEFINITIONS ORDER\ + -TRAILING /STRING SEARCH COMPARE CMOVE CMOVE> BLANK SLITERAL'); + + var immediateWordList = toWordList('IF ELSE THEN BEGIN WHILE REPEAT UNTIL RECURSE [IF] [ELSE] [THEN] ?DO DO LOOP +LOOP UNLOOP LEAVE EXIT AGAIN CASE OF ENDOF ENDCASE'); + + CodeMirror.defineMode('forth', function() { + function searchWordList (wordList, word) { + var i; + for (i = wordList.length - 1; i >= 0; i--) { + if (wordList[i].name === word.toUpperCase()) { + return wordList[i]; + } + } + return undefined; + } + return { + startState: function() { + return { + state: '', + base: 10, + coreWordList: coreWordList, + immediateWordList: immediateWordList, + wordList: [] + }; + }, + token: function (stream, stt) { + var mat; + if (stream.eatSpace()) { + return null; + } + if (stt.state === '') { // interpretation + if (stream.match(/^(\]|:NONAME)(\s|$)/i)) { + stt.state = ' compilation'; + return 'builtin compilation'; + } + mat = stream.match(/^(\:)\s+(\S+)(\s|$)+/); + if (mat) { + stt.wordList.push({name: mat[2].toUpperCase()}); + stt.state = ' compilation'; + return 'def' + stt.state; + } + mat = stream.match(/^(VARIABLE|2VARIABLE|CONSTANT|2CONSTANT|CREATE|POSTPONE|VALUE|WORD)\s+(\S+)(\s|$)+/i); + if (mat) { + stt.wordList.push({name: mat[2].toUpperCase()}); + return 'def' + stt.state; + } + mat = stream.match(/^(\'|\[\'\])\s+(\S+)(\s|$)+/); + if (mat) { + return 'builtin' + stt.state; + } + } else { // compilation + // ; [ + if (stream.match(/^(\;|\[)(\s)/)) { + stt.state = ''; + stream.backUp(1); + return 'builtin compilation'; + } + if (stream.match(/^(\;|\[)($)/)) { + stt.state = ''; + return 'builtin compilation'; + } + if (stream.match(/^(POSTPONE)\s+\S+(\s|$)+/)) { + return 'builtin'; + } + } + + // dynamic wordlist + mat = stream.match(/^(\S+)(\s+|$)/); + if (mat) { + if (searchWordList(stt.wordList, mat[1]) !== undefined) { + return 'variable' + stt.state; + } + + // comments + if (mat[1] === '\\') { + stream.skipToEnd(); + return 'comment' + stt.state; + } + + // core words + if (searchWordList(stt.coreWordList, mat[1]) !== undefined) { + return 'builtin' + stt.state; + } + if (searchWordList(stt.immediateWordList, mat[1]) !== undefined) { + return 'keyword' + stt.state; + } + + if (mat[1] === '(') { + stream.eatWhile(function (s) { return s !== ')'; }); + stream.eat(')'); + return 'comment' + stt.state; + } + + // // strings + if (mat[1] === '.(') { + stream.eatWhile(function (s) { return s !== ')'; }); + stream.eat(')'); + return 'string' + stt.state; + } + if (mat[1] === 'S"' || mat[1] === '."' || mat[1] === 'C"') { + stream.eatWhile(function (s) { return s !== '"'; }); + stream.eat('"'); + return 'string' + stt.state; + } + + // numbers + if (mat[1] - 0xfffffffff) { + return 'number' + stt.state; + } + // if (mat[1].match(/^[-+]?[0-9]+\.[0-9]*/)) { + // return 'number' + stt.state; + // } + + return 'atom' + stt.state; + } + } + }; + }); + CodeMirror.defineMIME("text/x-forth", "forth"); +}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/forth/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/forth/index.html similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/forth/index.html rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/forth/index.html diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/fortran/fortran.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/fortran/fortran.js new file mode 100644 index 0000000..4d88f00 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/fortran/fortran.js @@ -0,0 +1,188 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("fortran", function() { + function words(array) { + var keys = {}; + for (var i = 0; i < array.length; ++i) { + keys[array[i]] = true; + } + return keys; + } + + var keywords = words([ + "abstract", "accept", "allocatable", "allocate", + "array", "assign", "asynchronous", "backspace", + "bind", "block", "byte", "call", "case", + "class", "close", "common", "contains", + "continue", "cycle", "data", "deallocate", + "decode", "deferred", "dimension", "do", + "elemental", "else", "encode", "end", + "endif", "entry", "enumerator", "equivalence", + "exit", "external", "extrinsic", "final", + "forall", "format", "function", "generic", + "go", "goto", "if", "implicit", "import", "include", + "inquire", "intent", "interface", "intrinsic", + "module", "namelist", "non_intrinsic", + "non_overridable", "none", "nopass", + "nullify", "open", "optional", "options", + "parameter", "pass", "pause", "pointer", + "print", "private", "program", "protected", + "public", "pure", "read", "recursive", "result", + "return", "rewind", "save", "select", "sequence", + "stop", "subroutine", "target", "then", "to", "type", + "use", "value", "volatile", "where", "while", + "write"]); + var builtins = words(["abort", "abs", "access", "achar", "acos", + "adjustl", "adjustr", "aimag", "aint", "alarm", + "all", "allocated", "alog", "amax", "amin", + "amod", "and", "anint", "any", "asin", + "associated", "atan", "besj", "besjn", "besy", + "besyn", "bit_size", "btest", "cabs", "ccos", + "ceiling", "cexp", "char", "chdir", "chmod", + "clog", "cmplx", "command_argument_count", + "complex", "conjg", "cos", "cosh", "count", + "cpu_time", "cshift", "csin", "csqrt", "ctime", + "c_funloc", "c_loc", "c_associated", "c_null_ptr", + "c_null_funptr", "c_f_pointer", "c_null_char", + "c_alert", "c_backspace", "c_form_feed", + "c_new_line", "c_carriage_return", + "c_horizontal_tab", "c_vertical_tab", "dabs", + "dacos", "dasin", "datan", "date_and_time", + "dbesj", "dbesj", "dbesjn", "dbesy", "dbesy", + "dbesyn", "dble", "dcos", "dcosh", "ddim", "derf", + "derfc", "dexp", "digits", "dim", "dint", "dlog", + "dlog", "dmax", "dmin", "dmod", "dnint", + "dot_product", "dprod", "dsign", "dsinh", + "dsin", "dsqrt", "dtanh", "dtan", "dtime", + "eoshift", "epsilon", "erf", "erfc", "etime", + "exit", "exp", "exponent", "extends_type_of", + "fdate", "fget", "fgetc", "float", "floor", + "flush", "fnum", "fputc", "fput", "fraction", + "fseek", "fstat", "ftell", "gerror", "getarg", + "get_command", "get_command_argument", + "get_environment_variable", "getcwd", + "getenv", "getgid", "getlog", "getpid", + "getuid", "gmtime", "hostnm", "huge", "iabs", + "iachar", "iand", "iargc", "ibclr", "ibits", + "ibset", "ichar", "idate", "idim", "idint", + "idnint", "ieor", "ierrno", "ifix", "imag", + "imagpart", "index", "int", "ior", "irand", + "isatty", "ishft", "ishftc", "isign", + "iso_c_binding", "is_iostat_end", "is_iostat_eor", + "itime", "kill", "kind", "lbound", "len", "len_trim", + "lge", "lgt", "link", "lle", "llt", "lnblnk", "loc", + "log", "logical", "long", "lshift", "lstat", "ltime", + "matmul", "max", "maxexponent", "maxloc", "maxval", + "mclock", "merge", "move_alloc", "min", "minexponent", + "minloc", "minval", "mod", "modulo", "mvbits", + "nearest", "new_line", "nint", "not", "or", "pack", + "perror", "precision", "present", "product", "radix", + "rand", "random_number", "random_seed", "range", + "real", "realpart", "rename", "repeat", "reshape", + "rrspacing", "rshift", "same_type_as", "scale", + "scan", "second", "selected_int_kind", + "selected_real_kind", "set_exponent", "shape", + "short", "sign", "signal", "sinh", "sin", "sleep", + "sngl", "spacing", "spread", "sqrt", "srand", "stat", + "sum", "symlnk", "system", "system_clock", "tan", + "tanh", "time", "tiny", "transfer", "transpose", + "trim", "ttynam", "ubound", "umask", "unlink", + "unpack", "verify", "xor", "zabs", "zcos", "zexp", + "zlog", "zsin", "zsqrt"]); + + var dataTypes = words(["c_bool", "c_char", "c_double", "c_double_complex", + "c_float", "c_float_complex", "c_funptr", "c_int", + "c_int16_t", "c_int32_t", "c_int64_t", "c_int8_t", + "c_int_fast16_t", "c_int_fast32_t", "c_int_fast64_t", + "c_int_fast8_t", "c_int_least16_t", "c_int_least32_t", + "c_int_least64_t", "c_int_least8_t", "c_intmax_t", + "c_intptr_t", "c_long", "c_long_double", + "c_long_double_complex", "c_long_long", "c_ptr", + "c_short", "c_signed_char", "c_size_t", "character", + "complex", "double", "integer", "logical", "real"]); + var isOperatorChar = /[+\-*&=<>\/\:]/; + var litOperator = new RegExp("(\.and\.|\.or\.|\.eq\.|\.lt\.|\.le\.|\.gt\.|\.ge\.|\.ne\.|\.not\.|\.eqv\.|\.neqv\.)", "i"); + + function tokenBase(stream, state) { + + if (stream.match(litOperator)){ + return 'operator'; + } + + var ch = stream.next(); + if (ch == "!") { + stream.skipToEnd(); + return "comment"; + } + if (ch == '"' || ch == "'") { + state.tokenize = tokenString(ch); + return state.tokenize(stream, state); + } + if (/[\[\]\(\),]/.test(ch)) { + return null; + } + if (/\d/.test(ch)) { + stream.eatWhile(/[\w\.]/); + return "number"; + } + if (isOperatorChar.test(ch)) { + stream.eatWhile(isOperatorChar); + return "operator"; + } + stream.eatWhile(/[\w\$_]/); + var word = stream.current().toLowerCase(); + + if (keywords.hasOwnProperty(word)){ + return 'keyword'; + } + if (builtins.hasOwnProperty(word) || dataTypes.hasOwnProperty(word)) { + return 'builtin'; + } + return "variable"; + } + + function tokenString(quote) { + return function(stream, state) { + var escaped = false, next, end = false; + while ((next = stream.next()) != null) { + if (next == quote && !escaped) { + end = true; + break; + } + escaped = !escaped && next == "\\"; + } + if (end || !escaped) state.tokenize = null; + return "string"; + }; + } + + // Interface + + return { + startState: function() { + return {tokenize: null}; + }, + + token: function(stream, state) { + if (stream.eatSpace()) return null; + var style = (state.tokenize || tokenBase)(stream, state); + if (style == "comment" || style == "meta") return style; + return style; + } + }; +}); + +CodeMirror.defineMIME("text/x-fortran", "fortran"); + +}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/fortran/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/fortran/index.html similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/fortran/index.html rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/fortran/index.html diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/gas/gas.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/gas/gas.js new file mode 100644 index 0000000..0c74bed --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/gas/gas.js @@ -0,0 +1,345 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("gas", function(_config, parserConfig) { + 'use strict'; + + // If an architecture is specified, its initialization function may + // populate this array with custom parsing functions which will be + // tried in the event that the standard functions do not find a match. + var custom = []; + + // The symbol used to start a line comment changes based on the target + // architecture. + // If no architecture is pased in "parserConfig" then only multiline + // comments will have syntax support. + var lineCommentStartSymbol = ""; + + // These directives are architecture independent. + // Machine specific directives should go in their respective + // architecture initialization function. + // Reference: + // http://sourceware.org/binutils/docs/as/Pseudo-Ops.html#Pseudo-Ops + var directives = { + ".abort" : "builtin", + ".align" : "builtin", + ".altmacro" : "builtin", + ".ascii" : "builtin", + ".asciz" : "builtin", + ".balign" : "builtin", + ".balignw" : "builtin", + ".balignl" : "builtin", + ".bundle_align_mode" : "builtin", + ".bundle_lock" : "builtin", + ".bundle_unlock" : "builtin", + ".byte" : "builtin", + ".cfi_startproc" : "builtin", + ".comm" : "builtin", + ".data" : "builtin", + ".def" : "builtin", + ".desc" : "builtin", + ".dim" : "builtin", + ".double" : "builtin", + ".eject" : "builtin", + ".else" : "builtin", + ".elseif" : "builtin", + ".end" : "builtin", + ".endef" : "builtin", + ".endfunc" : "builtin", + ".endif" : "builtin", + ".equ" : "builtin", + ".equiv" : "builtin", + ".eqv" : "builtin", + ".err" : "builtin", + ".error" : "builtin", + ".exitm" : "builtin", + ".extern" : "builtin", + ".fail" : "builtin", + ".file" : "builtin", + ".fill" : "builtin", + ".float" : "builtin", + ".func" : "builtin", + ".global" : "builtin", + ".gnu_attribute" : "builtin", + ".hidden" : "builtin", + ".hword" : "builtin", + ".ident" : "builtin", + ".if" : "builtin", + ".incbin" : "builtin", + ".include" : "builtin", + ".int" : "builtin", + ".internal" : "builtin", + ".irp" : "builtin", + ".irpc" : "builtin", + ".lcomm" : "builtin", + ".lflags" : "builtin", + ".line" : "builtin", + ".linkonce" : "builtin", + ".list" : "builtin", + ".ln" : "builtin", + ".loc" : "builtin", + ".loc_mark_labels" : "builtin", + ".local" : "builtin", + ".long" : "builtin", + ".macro" : "builtin", + ".mri" : "builtin", + ".noaltmacro" : "builtin", + ".nolist" : "builtin", + ".octa" : "builtin", + ".offset" : "builtin", + ".org" : "builtin", + ".p2align" : "builtin", + ".popsection" : "builtin", + ".previous" : "builtin", + ".print" : "builtin", + ".protected" : "builtin", + ".psize" : "builtin", + ".purgem" : "builtin", + ".pushsection" : "builtin", + ".quad" : "builtin", + ".reloc" : "builtin", + ".rept" : "builtin", + ".sbttl" : "builtin", + ".scl" : "builtin", + ".section" : "builtin", + ".set" : "builtin", + ".short" : "builtin", + ".single" : "builtin", + ".size" : "builtin", + ".skip" : "builtin", + ".sleb128" : "builtin", + ".space" : "builtin", + ".stab" : "builtin", + ".string" : "builtin", + ".struct" : "builtin", + ".subsection" : "builtin", + ".symver" : "builtin", + ".tag" : "builtin", + ".text" : "builtin", + ".title" : "builtin", + ".type" : "builtin", + ".uleb128" : "builtin", + ".val" : "builtin", + ".version" : "builtin", + ".vtable_entry" : "builtin", + ".vtable_inherit" : "builtin", + ".warning" : "builtin", + ".weak" : "builtin", + ".weakref" : "builtin", + ".word" : "builtin" + }; + + var registers = {}; + + function x86(_parserConfig) { + lineCommentStartSymbol = "#"; + + registers.ax = "variable"; + registers.eax = "variable-2"; + registers.rax = "variable-3"; + + registers.bx = "variable"; + registers.ebx = "variable-2"; + registers.rbx = "variable-3"; + + registers.cx = "variable"; + registers.ecx = "variable-2"; + registers.rcx = "variable-3"; + + registers.dx = "variable"; + registers.edx = "variable-2"; + registers.rdx = "variable-3"; + + registers.si = "variable"; + registers.esi = "variable-2"; + registers.rsi = "variable-3"; + + registers.di = "variable"; + registers.edi = "variable-2"; + registers.rdi = "variable-3"; + + registers.sp = "variable"; + registers.esp = "variable-2"; + registers.rsp = "variable-3"; + + registers.bp = "variable"; + registers.ebp = "variable-2"; + registers.rbp = "variable-3"; + + registers.ip = "variable"; + registers.eip = "variable-2"; + registers.rip = "variable-3"; + + registers.cs = "keyword"; + registers.ds = "keyword"; + registers.ss = "keyword"; + registers.es = "keyword"; + registers.fs = "keyword"; + registers.gs = "keyword"; + } + + function armv6(_parserConfig) { + // Reference: + // http://infocenter.arm.com/help/topic/com.arm.doc.qrc0001l/QRC0001_UAL.pdf + // http://infocenter.arm.com/help/topic/com.arm.doc.ddi0301h/DDI0301H_arm1176jzfs_r0p7_trm.pdf + lineCommentStartSymbol = "@"; + directives.syntax = "builtin"; + + registers.r0 = "variable"; + registers.r1 = "variable"; + registers.r2 = "variable"; + registers.r3 = "variable"; + registers.r4 = "variable"; + registers.r5 = "variable"; + registers.r6 = "variable"; + registers.r7 = "variable"; + registers.r8 = "variable"; + registers.r9 = "variable"; + registers.r10 = "variable"; + registers.r11 = "variable"; + registers.r12 = "variable"; + + registers.sp = "variable-2"; + registers.lr = "variable-2"; + registers.pc = "variable-2"; + registers.r13 = registers.sp; + registers.r14 = registers.lr; + registers.r15 = registers.pc; + + custom.push(function(ch, stream) { + if (ch === '#') { + stream.eatWhile(/\w/); + return "number"; + } + }); + } + + var arch = (parserConfig.architecture || "x86").toLowerCase(); + if (arch === "x86") { + x86(parserConfig); + } else if (arch === "arm" || arch === "armv6") { + armv6(parserConfig); + } + + function nextUntilUnescaped(stream, end) { + var escaped = false, next; + while ((next = stream.next()) != null) { + if (next === end && !escaped) { + return false; + } + escaped = !escaped && next === "\\"; + } + return escaped; + } + + function clikeComment(stream, state) { + var maybeEnd = false, ch; + while ((ch = stream.next()) != null) { + if (ch === "/" && maybeEnd) { + state.tokenize = null; + break; + } + maybeEnd = (ch === "*"); + } + return "comment"; + } + + return { + startState: function() { + return { + tokenize: null + }; + }, + + token: function(stream, state) { + if (state.tokenize) { + return state.tokenize(stream, state); + } + + if (stream.eatSpace()) { + return null; + } + + var style, cur, ch = stream.next(); + + if (ch === "/") { + if (stream.eat("*")) { + state.tokenize = clikeComment; + return clikeComment(stream, state); + } + } + + if (ch === lineCommentStartSymbol) { + stream.skipToEnd(); + return "comment"; + } + + if (ch === '"') { + nextUntilUnescaped(stream, '"'); + return "string"; + } + + if (ch === '.') { + stream.eatWhile(/\w/); + cur = stream.current().toLowerCase(); + style = directives[cur]; + return style || null; + } + + if (ch === '=') { + stream.eatWhile(/\w/); + return "tag"; + } + + if (ch === '{') { + return "braket"; + } + + if (ch === '}') { + return "braket"; + } + + if (/\d/.test(ch)) { + if (ch === "0" && stream.eat("x")) { + stream.eatWhile(/[0-9a-fA-F]/); + return "number"; + } + stream.eatWhile(/\d/); + return "number"; + } + + if (/\w/.test(ch)) { + stream.eatWhile(/\w/); + if (stream.eat(":")) { + return 'tag'; + } + cur = stream.current().toLowerCase(); + style = registers[cur]; + return style || null; + } + + for (var i = 0; i < custom.length; i++) { + style = custom[i](ch, stream, state); + if (style) { + return style; + } + } + }, + + lineComment: lineCommentStartSymbol, + blockCommentStart: "/*", + blockCommentEnd: "*/" + }; +}); + +}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/gas/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/gas/index.html similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/gas/index.html rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/gas/index.html diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/gfm/gfm.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/gfm/gfm.js new file mode 100644 index 0000000..6e74ad4 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/gfm/gfm.js @@ -0,0 +1,130 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror"), require("../markdown/markdown"), require("../../addon/mode/overlay")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror", "../markdown/markdown", "../../addon/mode/overlay"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +var urlRE = /^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i + +CodeMirror.defineMode("gfm", function(config, modeConfig) { + var codeDepth = 0; + function blankLine(state) { + state.code = false; + return null; + } + var gfmOverlay = { + startState: function() { + return { + code: false, + codeBlock: false, + ateSpace: false + }; + }, + copyState: function(s) { + return { + code: s.code, + codeBlock: s.codeBlock, + ateSpace: s.ateSpace + }; + }, + token: function(stream, state) { + state.combineTokens = null; + + // Hack to prevent formatting override inside code blocks (block and inline) + if (state.codeBlock) { + if (stream.match(/^```+/)) { + state.codeBlock = false; + return null; + } + stream.skipToEnd(); + return null; + } + if (stream.sol()) { + state.code = false; + } + if (stream.sol() && stream.match(/^```+/)) { + stream.skipToEnd(); + state.codeBlock = true; + return null; + } + // If this block is changed, it may need to be updated in Markdown mode + if (stream.peek() === '`') { + stream.next(); + var before = stream.pos; + stream.eatWhile('`'); + var difference = 1 + stream.pos - before; + if (!state.code) { + codeDepth = difference; + state.code = true; + } else { + if (difference === codeDepth) { // Must be exact + state.code = false; + } + } + return null; + } else if (state.code) { + stream.next(); + return null; + } + // Check if space. If so, links can be formatted later on + if (stream.eatSpace()) { + state.ateSpace = true; + return null; + } + if (stream.sol() || state.ateSpace) { + state.ateSpace = false; + if (modeConfig.gitHubSpice !== false) { + if(stream.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?:[a-f0-9]{7,40}\b)/)) { + // User/Project@SHA + // User@SHA + // SHA + state.combineTokens = true; + return "link"; + } else if (stream.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/)) { + // User/Project#Num + // User#Num + // #Num + state.combineTokens = true; + return "link"; + } + } + } + if (stream.match(urlRE) && + stream.string.slice(stream.start - 2, stream.start) != "](" && + (stream.start == 0 || /\W/.test(stream.string.charAt(stream.start - 1)))) { + // URLs + // Taken from http://daringfireball.net/2010/07/improved_regex_for_matching_urls + // And then (issue #1160) simplified to make it not crash the Chrome Regexp engine + // And then limited url schemes to the CommonMark list, so foo:bar isn't matched as a URL + state.combineTokens = true; + return "link"; + } + stream.next(); + return null; + }, + blankLine: blankLine + }; + + var markdownConfig = { + underscoresBreakWords: false, + taskLists: true, + fencedCodeBlocks: '```', + strikethrough: true + }; + for (var attr in modeConfig) { + markdownConfig[attr] = modeConfig[attr]; + } + markdownConfig.name = "markdown"; + return CodeMirror.overlayMode(CodeMirror.getMode(config, markdownConfig), gfmOverlay); + +}, "markdown"); + + CodeMirror.defineMIME("text/x-gfm", "gfm"); +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/gfm/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/gfm/index.html new file mode 100644 index 0000000..24c90c0 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/gfm/index.html @@ -0,0 +1,93 @@ +<!doctype html> + +<title>CodeMirror: GFM mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../../addon/mode/overlay.js"></script> +<script src="../xml/xml.js"></script> +<script src="../markdown/markdown.js"></script> +<script src="gfm.js"></script> +<script src="../javascript/javascript.js"></script> +<script src="../css/css.js"></script> +<script src="../htmlmixed/htmlmixed.js"></script> +<script src="../clike/clike.js"></script> +<script src="../meta.js"></script> +<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">GFM</a> + </ul> +</div> + +<article> +<h2>GFM mode</h2> +<form><textarea id="code" name="code"> +GitHub Flavored Markdown +======================== + +Everything from markdown plus GFM features: + +## URL autolinking + +Underscores_are_allowed_between_words. + +## Strikethrough text + +GFM adds syntax to strikethrough text, which is missing from standard Markdown. + +~~Mistaken text.~~ +~~**works with other formatting**~~ + +~~spans across +lines~~ + +## Fenced code blocks (and syntax highlighting) + +```javascript +for (var i = 0; i < items.length; i++) { + console.log(items[i], i); // log them +} +``` + +## Task Lists + +- [ ] Incomplete task list item +- [x] **Completed** task list item + +## A bit of GitHub spice + +* SHA: be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2 +* User@SHA ref: mojombo@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2 +* User/Project@SHA: mojombo/god@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2 +* \#Num: #1 +* User/#Num: mojombo#1 +* User/Project#Num: mojombo/god#1 + +See http://github.github.com/github-flavored-markdown/. + +</textarea></form> + + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + mode: 'gfm', + lineNumbers: true, + theme: "default" + }); + </script> + + <p>Optionally depends on other modes for properly highlighted code blocks.</p> + + <p><strong>Parsing/Highlighting Tests:</strong> <a href="../../test/index.html#gfm_*">normal</a>, <a href="../../test/index.html#verbose,gfm_*">verbose</a>.</p> + + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/gfm/test.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/gfm/test.js new file mode 100644 index 0000000..7a1a4cc --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/gfm/test.js @@ -0,0 +1,236 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function() { + var mode = CodeMirror.getMode({tabSize: 4}, "gfm"); + function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); } + var modeHighlightFormatting = CodeMirror.getMode({tabSize: 4}, {name: "gfm", highlightFormatting: true}); + function FT(name) { test.mode(name, modeHighlightFormatting, Array.prototype.slice.call(arguments, 1)); } + + FT("codeBackticks", + "[comment&formatting&formatting-code `][comment foo][comment&formatting&formatting-code `]"); + + FT("doubleBackticks", + "[comment&formatting&formatting-code ``][comment foo ` bar][comment&formatting&formatting-code ``]"); + + FT("codeBlock", + "[comment&formatting&formatting-code-block ```css]", + "[tag foo]", + "[comment&formatting&formatting-code-block ```]"); + + FT("taskList", + "[variable-2&formatting&formatting-list&formatting-list-ul - ][meta&formatting&formatting-task [ ]]][variable-2 foo]", + "[variable-2&formatting&formatting-list&formatting-list-ul - ][property&formatting&formatting-task [x]]][variable-2 foo]"); + + FT("formatting_strikethrough", + "[strikethrough&formatting&formatting-strikethrough ~~][strikethrough foo][strikethrough&formatting&formatting-strikethrough ~~]"); + + FT("formatting_strikethrough", + "foo [strikethrough&formatting&formatting-strikethrough ~~][strikethrough bar][strikethrough&formatting&formatting-strikethrough ~~]"); + + MT("emInWordAsterisk", + "foo[em *bar*]hello"); + + MT("emInWordUnderscore", + "foo_bar_hello"); + + MT("emStrongUnderscore", + "[strong __][em&strong _foo__][em _] bar"); + + MT("fencedCodeBlocks", + "[comment ```]", + "[comment foo]", + "", + "[comment ```]", + "bar"); + + MT("fencedCodeBlockModeSwitching", + "[comment ```javascript]", + "[variable foo]", + "", + "[comment ```]", + "bar"); + + MT("fencedCodeBlockModeSwitchingObjc", + "[comment ```objective-c]", + "[keyword @property] [variable NSString] [operator *] [variable foo];", + "[comment ```]", + "bar"); + + MT("fencedCodeBlocksNoTildes", + "~~~", + "foo", + "~~~"); + + MT("taskListAsterisk", + "[variable-2 * []] foo]", // Invalid; must have space or x between [] + "[variable-2 * [ ]]bar]", // Invalid; must have space after ] + "[variable-2 * [x]]hello]", // Invalid; must have space after ] + "[variable-2 * ][meta [ ]]][variable-2 [world]]]", // Valid; tests reference style links + " [variable-3 * ][property [x]]][variable-3 foo]"); // Valid; can be nested + + MT("taskListPlus", + "[variable-2 + []] foo]", // Invalid; must have space or x between [] + "[variable-2 + [ ]]bar]", // Invalid; must have space after ] + "[variable-2 + [x]]hello]", // Invalid; must have space after ] + "[variable-2 + ][meta [ ]]][variable-2 [world]]]", // Valid; tests reference style links + " [variable-3 + ][property [x]]][variable-3 foo]"); // Valid; can be nested + + MT("taskListDash", + "[variable-2 - []] foo]", // Invalid; must have space or x between [] + "[variable-2 - [ ]]bar]", // Invalid; must have space after ] + "[variable-2 - [x]]hello]", // Invalid; must have space after ] + "[variable-2 - ][meta [ ]]][variable-2 [world]]]", // Valid; tests reference style links + " [variable-3 - ][property [x]]][variable-3 foo]"); // Valid; can be nested + + MT("taskListNumber", + "[variable-2 1. []] foo]", // Invalid; must have space or x between [] + "[variable-2 2. [ ]]bar]", // Invalid; must have space after ] + "[variable-2 3. [x]]hello]", // Invalid; must have space after ] + "[variable-2 4. ][meta [ ]]][variable-2 [world]]]", // Valid; tests reference style links + " [variable-3 1. ][property [x]]][variable-3 foo]"); // Valid; can be nested + + MT("SHA", + "foo [link be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2] bar"); + + MT("SHAEmphasis", + "[em *foo ][em&link be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2][em *]"); + + MT("shortSHA", + "foo [link be6a8cc] bar"); + + MT("tooShortSHA", + "foo be6a8c bar"); + + MT("longSHA", + "foo be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd22 bar"); + + MT("badSHA", + "foo be6a8cc1c1ecfe9489fb51e4869af15a13fc2cg2 bar"); + + MT("userSHA", + "foo [link bar@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2] hello"); + + MT("userSHAEmphasis", + "[em *foo ][em&link bar@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2][em *]"); + + MT("userProjectSHA", + "foo [link bar/hello@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2] world"); + + MT("userProjectSHAEmphasis", + "[em *foo ][em&link bar/hello@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2][em *]"); + + MT("num", + "foo [link #1] bar"); + + MT("numEmphasis", + "[em *foo ][em&link #1][em *]"); + + MT("badNum", + "foo #1bar hello"); + + MT("userNum", + "foo [link bar#1] hello"); + + MT("userNumEmphasis", + "[em *foo ][em&link bar#1][em *]"); + + MT("userProjectNum", + "foo [link bar/hello#1] world"); + + MT("userProjectNumEmphasis", + "[em *foo ][em&link bar/hello#1][em *]"); + + MT("vanillaLink", + "foo [link http://www.example.com/] bar"); + + MT("vanillaLinkNoScheme", + "foo [link www.example.com] bar"); + + MT("vanillaLinkHttps", + "foo [link https://www.example.com/] bar"); + + MT("vanillaLinkDataSchema", + "foo [link data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==] bar"); + + MT("vanillaLinkPunctuation", + "foo [link http://www.example.com/]. bar"); + + MT("vanillaLinkExtension", + "foo [link http://www.example.com/index.html] bar"); + + MT("vanillaLinkEmphasis", + "foo [em *][em&link http://www.example.com/index.html][em *] bar"); + + MT("notALink", + "foo asfd:asdf bar"); + + MT("notALink", + "[comment ```css]", + "[tag foo] {[property color]:[keyword black];}", + "[comment ```][link http://www.example.com/]"); + + MT("notALink", + "[comment ``foo `bar` http://www.example.com/``] hello"); + + MT("notALink", + "[comment `foo]", + "[comment&link http://www.example.com/]", + "[comment `] foo", + "", + "[link http://www.example.com/]"); + + MT("headerCodeBlockGithub", + "[header&header-1 # heading]", + "", + "[comment ```]", + "[comment code]", + "[comment ```]", + "", + "Commit: [link be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2]", + "Issue: [link #1]", + "Link: [link http://www.example.com/]"); + + MT("strikethrough", + "[strikethrough ~~foo~~]"); + + MT("strikethroughWithStartingSpace", + "~~ foo~~"); + + MT("strikethroughUnclosedStrayTildes", + "[strikethrough ~~foo~~~]"); + + MT("strikethroughUnclosedStrayTildes", + "[strikethrough ~~foo ~~]"); + + MT("strikethroughUnclosedStrayTildes", + "[strikethrough ~~foo ~~ bar]"); + + MT("strikethroughUnclosedStrayTildes", + "[strikethrough ~~foo ~~ bar~~]hello"); + + MT("strikethroughOneLetter", + "[strikethrough ~~a~~]"); + + MT("strikethroughWrapped", + "[strikethrough ~~foo]", + "[strikethrough foo~~]"); + + MT("strikethroughParagraph", + "[strikethrough ~~foo]", + "", + "foo[strikethrough ~~bar]"); + + MT("strikethroughEm", + "[strikethrough ~~foo][em&strikethrough *bar*][strikethrough ~~]"); + + MT("strikethroughEm", + "[em *][em&strikethrough ~~foo~~][em *]"); + + MT("strikethroughStrong", + "[strikethrough ~~][strong&strikethrough **foo**][strikethrough ~~]"); + + MT("strikethroughStrong", + "[strong **][strong&strikethrough ~~foo~~][strong **]"); + +})(); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/gherkin/gherkin.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/gherkin/gherkin.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/gherkin/gherkin.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/gherkin/gherkin.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/gherkin/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/gherkin/index.html similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/gherkin/index.html rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/gherkin/index.html diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/go/go.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/go/go.js new file mode 100644 index 0000000..3c9ef6b --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/go/go.js @@ -0,0 +1,185 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("go", function(config) { + var indentUnit = config.indentUnit; + + var keywords = { + "break":true, "case":true, "chan":true, "const":true, "continue":true, + "default":true, "defer":true, "else":true, "fallthrough":true, "for":true, + "func":true, "go":true, "goto":true, "if":true, "import":true, + "interface":true, "map":true, "package":true, "range":true, "return":true, + "select":true, "struct":true, "switch":true, "type":true, "var":true, + "bool":true, "byte":true, "complex64":true, "complex128":true, + "float32":true, "float64":true, "int8":true, "int16":true, "int32":true, + "int64":true, "string":true, "uint8":true, "uint16":true, "uint32":true, + "uint64":true, "int":true, "uint":true, "uintptr":true, "error": true + }; + + var atoms = { + "true":true, "false":true, "iota":true, "nil":true, "append":true, + "cap":true, "close":true, "complex":true, "copy":true, "imag":true, + "len":true, "make":true, "new":true, "panic":true, "print":true, + "println":true, "real":true, "recover":true + }; + + var isOperatorChar = /[+\-*&^%:=<>!|\/]/; + + var curPunc; + + function tokenBase(stream, state) { + var ch = stream.next(); + if (ch == '"' || ch == "'" || ch == "`") { + state.tokenize = tokenString(ch); + return state.tokenize(stream, state); + } + if (/[\d\.]/.test(ch)) { + if (ch == ".") { + stream.match(/^[0-9]+([eE][\-+]?[0-9]+)?/); + } else if (ch == "0") { + stream.match(/^[xX][0-9a-fA-F]+/) || stream.match(/^0[0-7]+/); + } else { + stream.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/); + } + return "number"; + } + if (/[\[\]{}\(\),;\:\.]/.test(ch)) { + curPunc = ch; + return null; + } + if (ch == "/") { + if (stream.eat("*")) { + state.tokenize = tokenComment; + return tokenComment(stream, state); + } + if (stream.eat("/")) { + stream.skipToEnd(); + return "comment"; + } + } + if (isOperatorChar.test(ch)) { + stream.eatWhile(isOperatorChar); + return "operator"; + } + stream.eatWhile(/[\w\$_\xa1-\uffff]/); + var cur = stream.current(); + if (keywords.propertyIsEnumerable(cur)) { + if (cur == "case" || cur == "default") curPunc = "case"; + return "keyword"; + } + if (atoms.propertyIsEnumerable(cur)) return "atom"; + return "variable"; + } + + function tokenString(quote) { + return function(stream, state) { + var escaped = false, next, end = false; + while ((next = stream.next()) != null) { + if (next == quote && !escaped) {end = true; break;} + escaped = !escaped && quote != "`" && next == "\\"; + } + if (end || !(escaped || quote == "`")) + state.tokenize = tokenBase; + return "string"; + }; + } + + function tokenComment(stream, state) { + var maybeEnd = false, ch; + while (ch = stream.next()) { + if (ch == "/" && maybeEnd) { + state.tokenize = tokenBase; + break; + } + maybeEnd = (ch == "*"); + } + return "comment"; + } + + function Context(indented, column, type, align, prev) { + this.indented = indented; + this.column = column; + this.type = type; + this.align = align; + this.prev = prev; + } + function pushContext(state, col, type) { + return state.context = new Context(state.indented, col, type, null, state.context); + } + function popContext(state) { + if (!state.context.prev) return; + var t = state.context.type; + if (t == ")" || t == "]" || t == "}") + state.indented = state.context.indented; + return state.context = state.context.prev; + } + + // Interface + + return { + startState: function(basecolumn) { + return { + tokenize: null, + context: new Context((basecolumn || 0) - indentUnit, 0, "top", false), + indented: 0, + startOfLine: true + }; + }, + + token: function(stream, state) { + var ctx = state.context; + if (stream.sol()) { + if (ctx.align == null) ctx.align = false; + state.indented = stream.indentation(); + state.startOfLine = true; + if (ctx.type == "case") ctx.type = "}"; + } + if (stream.eatSpace()) return null; + curPunc = null; + var style = (state.tokenize || tokenBase)(stream, state); + if (style == "comment") return style; + if (ctx.align == null) ctx.align = true; + + if (curPunc == "{") pushContext(state, stream.column(), "}"); + else if (curPunc == "[") pushContext(state, stream.column(), "]"); + else if (curPunc == "(") pushContext(state, stream.column(), ")"); + else if (curPunc == "case") ctx.type = "case"; + else if (curPunc == "}" && ctx.type == "}") ctx = popContext(state); + else if (curPunc == ctx.type) popContext(state); + state.startOfLine = false; + return style; + }, + + indent: function(state, textAfter) { + if (state.tokenize != tokenBase && state.tokenize != null) return 0; + var ctx = state.context, firstChar = textAfter && textAfter.charAt(0); + if (ctx.type == "case" && /^(?:case|default)\b/.test(textAfter)) { + state.context.type = "}"; + return ctx.indented; + } + var closing = firstChar == ctx.type; + if (ctx.align) return ctx.column + (closing ? 0 : 1); + else return ctx.indented + (closing ? 0 : indentUnit); + }, + + electricChars: "{}):", + fold: "brace", + blockCommentStart: "/*", + blockCommentEnd: "*/", + lineComment: "//" + }; +}); + +CodeMirror.defineMIME("text/x-go", "go"); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/go/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/go/index.html new file mode 100644 index 0000000..72e3b36 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/go/index.html @@ -0,0 +1,85 @@ +<!doctype html> + +<title>CodeMirror: Go mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<link rel="stylesheet" href="../../theme/elegant.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../../addon/edit/matchbrackets.js"></script> +<script src="go.js"></script> +<style>.CodeMirror {border:1px solid #999; background:#ffc}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Go</a> + </ul> +</div> + +<article> +<h2>Go mode</h2> +<form><textarea id="code" name="code"> +// Prime Sieve in Go. +// Taken from the Go specification. +// Copyright © The Go Authors. + +package main + +import "fmt" + +// Send the sequence 2, 3, 4, ... to channel 'ch'. +func generate(ch chan<- int) { + for i := 2; ; i++ { + ch <- i // Send 'i' to channel 'ch' + } +} + +// Copy the values from channel 'src' to channel 'dst', +// removing those divisible by 'prime'. +func filter(src <-chan int, dst chan<- int, prime int) { + for i := range src { // Loop over values received from 'src'. + if i%prime != 0 { + dst <- i // Send 'i' to channel 'dst'. + } + } +} + +// The prime sieve: Daisy-chain filter processes together. +func sieve() { + ch := make(chan int) // Create a new channel. + go generate(ch) // Start generate() as a subprocess. + for { + prime := <-ch + fmt.Print(prime, "\n") + ch1 := make(chan int) + go filter(ch, ch1, prime) + ch = ch1 + } +} + +func main() { + sieve() +} +</textarea></form> + + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + theme: "elegant", + matchBrackets: true, + indentUnit: 8, + tabSize: 8, + indentWithTabs: true, + mode: "text/x-go" + }); + </script> + + <p><strong>MIME type:</strong> <code>text/x-go</code></p> + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/groovy/groovy.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/groovy/groovy.js new file mode 100644 index 0000000..721933b --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/groovy/groovy.js @@ -0,0 +1,230 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("groovy", function(config) { + function words(str) { + var obj = {}, words = str.split(" "); + for (var i = 0; i < words.length; ++i) obj[words[i]] = true; + return obj; + } + var keywords = words( + "abstract as assert boolean break byte case catch char class const continue def default " + + "do double else enum extends final finally float for goto if implements import in " + + "instanceof int interface long native new package private protected public return " + + "short static strictfp super switch synchronized threadsafe throw throws transient " + + "try void volatile while"); + var blockKeywords = words("catch class do else finally for if switch try while enum interface def"); + var standaloneKeywords = words("return break continue"); + var atoms = words("null true false this"); + + var curPunc; + function tokenBase(stream, state) { + var ch = stream.next(); + if (ch == '"' || ch == "'") { + return startString(ch, stream, state); + } + if (/[\[\]{}\(\),;\:\.]/.test(ch)) { + curPunc = ch; + return null; + } + if (/\d/.test(ch)) { + stream.eatWhile(/[\w\.]/); + if (stream.eat(/eE/)) { stream.eat(/\+\-/); stream.eatWhile(/\d/); } + return "number"; + } + if (ch == "/") { + if (stream.eat("*")) { + state.tokenize.push(tokenComment); + return tokenComment(stream, state); + } + if (stream.eat("/")) { + stream.skipToEnd(); + return "comment"; + } + if (expectExpression(state.lastToken, false)) { + return startString(ch, stream, state); + } + } + if (ch == "-" && stream.eat(">")) { + curPunc = "->"; + return null; + } + if (/[+\-*&%=<>!?|\/~]/.test(ch)) { + stream.eatWhile(/[+\-*&%=<>|~]/); + return "operator"; + } + stream.eatWhile(/[\w\$_]/); + if (ch == "@") { stream.eatWhile(/[\w\$_\.]/); return "meta"; } + if (state.lastToken == ".") return "property"; + if (stream.eat(":")) { curPunc = "proplabel"; return "property"; } + var cur = stream.current(); + if (atoms.propertyIsEnumerable(cur)) { return "atom"; } + if (keywords.propertyIsEnumerable(cur)) { + if (blockKeywords.propertyIsEnumerable(cur)) curPunc = "newstatement"; + else if (standaloneKeywords.propertyIsEnumerable(cur)) curPunc = "standalone"; + return "keyword"; + } + return "variable"; + } + tokenBase.isBase = true; + + function startString(quote, stream, state) { + var tripleQuoted = false; + if (quote != "/" && stream.eat(quote)) { + if (stream.eat(quote)) tripleQuoted = true; + else return "string"; + } + function t(stream, state) { + var escaped = false, next, end = !tripleQuoted; + while ((next = stream.next()) != null) { + if (next == quote && !escaped) { + if (!tripleQuoted) { break; } + if (stream.match(quote + quote)) { end = true; break; } + } + if (quote == '"' && next == "$" && !escaped && stream.eat("{")) { + state.tokenize.push(tokenBaseUntilBrace()); + return "string"; + } + escaped = !escaped && next == "\\"; + } + if (end) state.tokenize.pop(); + return "string"; + } + state.tokenize.push(t); + return t(stream, state); + } + + function tokenBaseUntilBrace() { + var depth = 1; + function t(stream, state) { + if (stream.peek() == "}") { + depth--; + if (depth == 0) { + state.tokenize.pop(); + return state.tokenize[state.tokenize.length-1](stream, state); + } + } else if (stream.peek() == "{") { + depth++; + } + return tokenBase(stream, state); + } + t.isBase = true; + return t; + } + + function tokenComment(stream, state) { + var maybeEnd = false, ch; + while (ch = stream.next()) { + if (ch == "/" && maybeEnd) { + state.tokenize.pop(); + break; + } + maybeEnd = (ch == "*"); + } + return "comment"; + } + + function expectExpression(last, newline) { + return !last || last == "operator" || last == "->" || /[\.\[\{\(,;:]/.test(last) || + last == "newstatement" || last == "keyword" || last == "proplabel" || + (last == "standalone" && !newline); + } + + function Context(indented, column, type, align, prev) { + this.indented = indented; + this.column = column; + this.type = type; + this.align = align; + this.prev = prev; + } + function pushContext(state, col, type) { + return state.context = new Context(state.indented, col, type, null, state.context); + } + function popContext(state) { + var t = state.context.type; + if (t == ")" || t == "]" || t == "}") + state.indented = state.context.indented; + return state.context = state.context.prev; + } + + // Interface + + return { + startState: function(basecolumn) { + return { + tokenize: [tokenBase], + context: new Context((basecolumn || 0) - config.indentUnit, 0, "top", false), + indented: 0, + startOfLine: true, + lastToken: null + }; + }, + + token: function(stream, state) { + var ctx = state.context; + if (stream.sol()) { + if (ctx.align == null) ctx.align = false; + state.indented = stream.indentation(); + state.startOfLine = true; + // Automatic semicolon insertion + if (ctx.type == "statement" && !expectExpression(state.lastToken, true)) { + popContext(state); ctx = state.context; + } + } + if (stream.eatSpace()) return null; + curPunc = null; + var style = state.tokenize[state.tokenize.length-1](stream, state); + if (style == "comment") return style; + if (ctx.align == null) ctx.align = true; + + if ((curPunc == ";" || curPunc == ":") && ctx.type == "statement") popContext(state); + // Handle indentation for {x -> \n ... } + else if (curPunc == "->" && ctx.type == "statement" && ctx.prev.type == "}") { + popContext(state); + state.context.align = false; + } + else if (curPunc == "{") pushContext(state, stream.column(), "}"); + else if (curPunc == "[") pushContext(state, stream.column(), "]"); + else if (curPunc == "(") pushContext(state, stream.column(), ")"); + else if (curPunc == "}") { + while (ctx.type == "statement") ctx = popContext(state); + if (ctx.type == "}") ctx = popContext(state); + while (ctx.type == "statement") ctx = popContext(state); + } + else if (curPunc == ctx.type) popContext(state); + else if (ctx.type == "}" || ctx.type == "top" || (ctx.type == "statement" && curPunc == "newstatement")) + pushContext(state, stream.column(), "statement"); + state.startOfLine = false; + state.lastToken = curPunc || style; + return style; + }, + + indent: function(state, textAfter) { + if (!state.tokenize[state.tokenize.length-1].isBase) return 0; + var firstChar = textAfter && textAfter.charAt(0), ctx = state.context; + if (ctx.type == "statement" && !expectExpression(state.lastToken, true)) ctx = ctx.prev; + var closing = firstChar == ctx.type; + if (ctx.type == "statement") return ctx.indented + (firstChar == "{" ? 0 : config.indentUnit); + else if (ctx.align) return ctx.column + (closing ? 0 : 1); + else return ctx.indented + (closing ? 0 : config.indentUnit); + }, + + electricChars: "{}", + closeBrackets: {triples: "'\""}, + fold: "brace" + }; +}); + +CodeMirror.defineMIME("text/x-groovy", "groovy"); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/groovy/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/groovy/index.html new file mode 100644 index 0000000..bb0df07 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/groovy/index.html @@ -0,0 +1,84 @@ +<!doctype html> + +<title>CodeMirror: Groovy mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../../addon/edit/matchbrackets.js"></script> +<script src="groovy.js"></script> +<style>.CodeMirror {border-top: 1px solid #500; border-bottom: 1px solid #500;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Groovy</a> + </ul> +</div> + +<article> +<h2>Groovy mode</h2> +<form><textarea id="code" name="code"> +//Pattern for groovy script +def p = ~/.*\.groovy/ +new File( 'd:\\scripts' ).eachFileMatch(p) {f -> + // imports list + def imports = [] + f.eachLine { + // condition to detect an import instruction + ln -> if ( ln =~ '^import .*' ) { + imports << "${ln - 'import '}" + } + } + // print thmen + if ( ! imports.empty ) { + println f + imports.each{ println " $it" } + } +} + +/* Coin changer demo code from http://groovy.codehaus.org */ + +enum UsCoin { + quarter(25), dime(10), nickel(5), penny(1) + UsCoin(v) { value = v } + final value +} + +enum OzzieCoin { + fifty(50), twenty(20), ten(10), five(5) + OzzieCoin(v) { value = v } + final value +} + +def plural(word, count) { + if (count == 1) return word + word[-1] == 'y' ? word[0..-2] + "ies" : word + "s" +} + +def change(currency, amount) { + currency.values().inject([]){ list, coin -> + int count = amount / coin.value + amount = amount % coin.value + list += "$count ${plural(coin.toString(), count)}" + } +} +</textarea></form> + + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + lineNumbers: true, + matchBrackets: true, + mode: "text/x-groovy" + }); + </script> + + <p><strong>MIME types defined:</strong> <code>text/x-groovy</code></p> + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/haml/haml.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/haml/haml.js new file mode 100644 index 0000000..20ae1e1 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/haml/haml.js @@ -0,0 +1,161 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed"), require("../ruby/ruby")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror", "../htmlmixed/htmlmixed", "../ruby/ruby"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + + // full haml mode. This handled embedded ruby and html fragments too + CodeMirror.defineMode("haml", function(config) { + var htmlMode = CodeMirror.getMode(config, {name: "htmlmixed"}); + var rubyMode = CodeMirror.getMode(config, "ruby"); + + function rubyInQuote(endQuote) { + return function(stream, state) { + var ch = stream.peek(); + if (ch == endQuote && state.rubyState.tokenize.length == 1) { + // step out of ruby context as it seems to complete processing all the braces + stream.next(); + state.tokenize = html; + return "closeAttributeTag"; + } else { + return ruby(stream, state); + } + }; + } + + function ruby(stream, state) { + if (stream.match("-#")) { + stream.skipToEnd(); + return "comment"; + } + return rubyMode.token(stream, state.rubyState); + } + + function html(stream, state) { + var ch = stream.peek(); + + // handle haml declarations. All declarations that cant be handled here + // will be passed to html mode + if (state.previousToken.style == "comment" ) { + if (state.indented > state.previousToken.indented) { + stream.skipToEnd(); + return "commentLine"; + } + } + + if (state.startOfLine) { + if (ch == "!" && stream.match("!!")) { + stream.skipToEnd(); + return "tag"; + } else if (stream.match(/^%[\w:#\.]+=/)) { + state.tokenize = ruby; + return "hamlTag"; + } else if (stream.match(/^%[\w:]+/)) { + return "hamlTag"; + } else if (ch == "/" ) { + stream.skipToEnd(); + return "comment"; + } + } + + if (state.startOfLine || state.previousToken.style == "hamlTag") { + if ( ch == "#" || ch == ".") { + stream.match(/[\w-#\.]*/); + return "hamlAttribute"; + } + } + + // donot handle --> as valid ruby, make it HTML close comment instead + if (state.startOfLine && !stream.match("-->", false) && (ch == "=" || ch == "-" )) { + state.tokenize = ruby; + return state.tokenize(stream, state); + } + + if (state.previousToken.style == "hamlTag" || + state.previousToken.style == "closeAttributeTag" || + state.previousToken.style == "hamlAttribute") { + if (ch == "(") { + state.tokenize = rubyInQuote(")"); + return state.tokenize(stream, state); + } else if (ch == "{") { + if (!stream.match(/^\{%.*/)) { + state.tokenize = rubyInQuote("}"); + return state.tokenize(stream, state); + } + } + } + + return htmlMode.token(stream, state.htmlState); + } + + return { + // default to html mode + startState: function() { + var htmlState = CodeMirror.startState(htmlMode); + var rubyState = CodeMirror.startState(rubyMode); + return { + htmlState: htmlState, + rubyState: rubyState, + indented: 0, + previousToken: { style: null, indented: 0}, + tokenize: html + }; + }, + + copyState: function(state) { + return { + htmlState : CodeMirror.copyState(htmlMode, state.htmlState), + rubyState: CodeMirror.copyState(rubyMode, state.rubyState), + indented: state.indented, + previousToken: state.previousToken, + tokenize: state.tokenize + }; + }, + + token: function(stream, state) { + if (stream.sol()) { + state.indented = stream.indentation(); + state.startOfLine = true; + } + if (stream.eatSpace()) return null; + var style = state.tokenize(stream, state); + state.startOfLine = false; + // dont record comment line as we only want to measure comment line with + // the opening comment block + if (style && style != "commentLine") { + state.previousToken = { style: style, indented: state.indented }; + } + // if current state is ruby and the previous token is not `,` reset the + // tokenize to html + if (stream.eol() && state.tokenize == ruby) { + stream.backUp(1); + var ch = stream.peek(); + stream.next(); + if (ch && ch != ",") { + state.tokenize = html; + } + } + // reprocess some of the specific style tag when finish setting previousToken + if (style == "hamlTag") { + style = "tag"; + } else if (style == "commentLine") { + style = "comment"; + } else if (style == "hamlAttribute") { + style = "attribute"; + } else if (style == "closeAttributeTag") { + style = null; + } + return style; + } + }; + }, "htmlmixed", "ruby"); + + CodeMirror.defineMIME("text/x-haml", "haml"); +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/haml/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/haml/index.html new file mode 100644 index 0000000..2894a93 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/haml/index.html @@ -0,0 +1,79 @@ +<!doctype html> + +<title>CodeMirror: HAML mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../xml/xml.js"></script> +<script src="../htmlmixed/htmlmixed.js"></script> +<script src="../javascript/javascript.js"></script> +<script src="../ruby/ruby.js"></script> +<script src="haml.js"></script> +<style>.CodeMirror {background: #f8f8f8;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">HAML</a> + </ul> +</div> + +<article> +<h2>HAML mode</h2> +<form><textarea id="code" name="code"> +!!! +#content +.left.column(title="title"){:href => "/hello", :test => "#{hello}_#{world}"} + <!-- This is a comment --> + %h2 Welcome to our site! + %p= puts "HAML MODE" + .right.column + = render :partial => "sidebar" + +.container + .row + .span8 + %h1.title= @page_title +%p.title= @page_title +%p + / + The same as HTML comment + Hello multiline comment + + -# haml comment + This wont be displayed + nor will this + Date/Time: + - now = DateTime.now + %strong= now + - if now > DateTime.parse("December 31, 2006") + = "Happy new " + "year!" + +%title + = @title + \= @title + <h1>Title</h1> + <h1 title="HELLO"> + Title + </h1> + </textarea></form> + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + lineNumbers: true, + mode: "text/x-haml" + }); + </script> + + <p><strong>MIME types defined:</strong> <code>text/x-haml</code>.</p> + + <p><strong>Parsing/Highlighting Tests:</strong> <a href="../../test/index.html#haml_*">normal</a>, <a href="../../test/index.html#verbose,haml_*">verbose</a>.</p> + + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/haml/test.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/haml/test.js new file mode 100644 index 0000000..508458a --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/haml/test.js @@ -0,0 +1,97 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function() { + var mode = CodeMirror.getMode({tabSize: 4, indentUnit: 2}, "haml"); + function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); } + + // Requires at least one media query + MT("elementName", + "[tag %h1] Hey There"); + + MT("oneElementPerLine", + "[tag %h1] Hey There %h2"); + + MT("idSelector", + "[tag %h1][attribute #test] Hey There"); + + MT("classSelector", + "[tag %h1][attribute .hello] Hey There"); + + MT("docType", + "[tag !!! XML]"); + + MT("comment", + "[comment / Hello WORLD]"); + + MT("notComment", + "[tag %h1] This is not a / comment "); + + MT("attributes", + "[tag %a]([variable title][operator =][string \"test\"]){[atom :title] [operator =>] [string \"test\"]}"); + + MT("htmlCode", + "[tag&bracket <][tag h1][tag&bracket >]Title[tag&bracket </][tag h1][tag&bracket >]"); + + MT("rubyBlock", + "[operator =][variable-2 @item]"); + + MT("selectorRubyBlock", + "[tag %a.selector=] [variable-2 @item]"); + + MT("nestedRubyBlock", + "[tag %a]", + " [operator =][variable puts] [string \"test\"]"); + + MT("multilinePlaintext", + "[tag %p]", + " Hello,", + " World"); + + MT("multilineRuby", + "[tag %p]", + " [comment -# this is a comment]", + " [comment and this is a comment too]", + " Date/Time", + " [operator -] [variable now] [operator =] [tag DateTime][operator .][property now]", + " [tag %strong=] [variable now]", + " [operator -] [keyword if] [variable now] [operator >] [tag DateTime][operator .][property parse]([string \"December 31, 2006\"])", + " [operator =][string \"Happy\"]", + " [operator =][string \"Belated\"]", + " [operator =][string \"Birthday\"]"); + + MT("multilineComment", + "[comment /]", + " [comment Multiline]", + " [comment Comment]"); + + MT("hamlComment", + "[comment -# this is a comment]"); + + MT("multilineHamlComment", + "[comment -# this is a comment]", + " [comment and this is a comment too]"); + + MT("multilineHTMLComment", + "[comment <!--]", + " [comment what a comment]", + " [comment -->]"); + + MT("hamlAfterRubyTag", + "[attribute .block]", + " [tag %strong=] [variable now]", + " [attribute .test]", + " [operator =][variable now]", + " [attribute .right]"); + + MT("stretchedRuby", + "[operator =] [variable puts] [string \"Hello\"],", + " [string \"World\"]"); + + MT("interpolationInHashAttribute", + //"[tag %div]{[atom :id] [operator =>] [string \"#{][variable test][string }_#{][variable ting][string }\"]} test"); + "[tag %div]{[atom :id] [operator =>] [string \"#{][variable test][string }_#{][variable ting][string }\"]} test"); + + MT("interpolationInHTMLAttribute", + "[tag %div]([variable title][operator =][string \"#{][variable test][string }_#{][variable ting]()[string }\"]) Test"); +})(); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/handlebars/handlebars.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/handlebars/handlebars.js new file mode 100644 index 0000000..2174e53 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/handlebars/handlebars.js @@ -0,0 +1,62 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror"), require("../../addon/mode/simple"), require("../../addon/mode/multiplex")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror", "../../addon/mode/simple", "../../addon/mode/multiplex"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { + "use strict"; + + CodeMirror.defineSimpleMode("handlebars-tags", { + start: [ + { regex: /\{\{!--/, push: "dash_comment", token: "comment" }, + { regex: /\{\{!/, push: "comment", token: "comment" }, + { regex: /\{\{/, push: "handlebars", token: "tag" } + ], + handlebars: [ + { regex: /\}\}/, pop: true, token: "tag" }, + + // Double and single quotes + { regex: /"(?:[^\\"]|\\.)*"?/, token: "string" }, + { regex: /'(?:[^\\']|\\.)*'?/, token: "string" }, + + // Handlebars keywords + { regex: />|[#\/]([A-Za-z_]\w*)/, token: "keyword" }, + { regex: /(?:else|this)\b/, token: "keyword" }, + + // Numeral + { regex: /\d+/i, token: "number" }, + + // Atoms like = and . + { regex: /=|~|@|true|false/, token: "atom" }, + + // Paths + { regex: /(?:\.\.\/)*(?:[A-Za-z_][\w\.]*)+/, token: "variable-2" } + ], + dash_comment: [ + { regex: /--\}\}/, pop: true, token: "comment" }, + + // Commented code + { regex: /./, token: "comment"} + ], + comment: [ + { regex: /\}\}/, pop: true, token: "comment" }, + { regex: /./, token: "comment" } + ] + }); + + CodeMirror.defineMode("handlebars", function(config, parserConfig) { + var handlebars = CodeMirror.getMode(config, "handlebars-tags"); + if (!parserConfig || !parserConfig.base) return handlebars; + return CodeMirror.multiplexingMode( + CodeMirror.getMode(config, parserConfig.base), + {open: "{{", close: "}}", mode: handlebars, parseDelimiters: true} + ); + }); + + CodeMirror.defineMIME("text/x-handlebars-template", "handlebars"); +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/handlebars/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/handlebars/index.html new file mode 100644 index 0000000..b1bfad1 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/handlebars/index.html @@ -0,0 +1,79 @@ +<!doctype html> + +<title>CodeMirror: Handlebars mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../../addon/mode/simple.js"></script> +<script src="../../addon/mode/multiplex.js"></script> +<script src="../xml/xml.js"></script> +<script src="handlebars.js"></script> +<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">HTML mixed</a> + </ul> +</div> + +<article> +<h2>Handlebars</h2> +<form><textarea id="code" name="code"> +{{> breadcrumbs}} + +{{!-- + You can use the t function to get + content translated to the current locale, es: + {{t 'article_list'}} +--}} + +<h1>{{t 'article_list'}}</h1> + +{{! one line comment }} + +{{#each articles}} + {{~title}} + <p>{{excerpt body size=120 ellipsis=true}}</p> + + {{#with author}} + written by {{first_name}} {{last_name}} + from category: {{../category.title}} + {{#if @../last}}foobar!{{/if}} + {{/with~}} + + {{#if promoted.latest}}Read this one! {{else}} This is ok! {{/if}} + + {{#if @last}}<hr>{{/if}} +{{/each}} + +{{#form new_comment}} + <input type="text" name="body"> +{{/form}} + +</textarea></form> + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + lineNumbers: true, + matchBrackets: true, + mode: {name: "handlebars", base: "text/html"} + }); + </script> + + <p>Handlebars syntax highlighting for CodeMirror.</p> + + <p><strong>MIME types defined:</strong> <code>text/x-handlebars-template</code></p> + + <p>Supported options: <code>base</code> to set the mode to + wrap. For example, use</p> + <pre>mode: {name: "handlebars", base: "text/html"}</pre> + <p>to highlight an HTML template.</p> +</article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/haskell-literate/haskell-literate.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/haskell-literate/haskell-literate.js new file mode 100644 index 0000000..906415b --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/haskell-literate/haskell-literate.js @@ -0,0 +1,43 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function (mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror"), require("../haskell/haskell")) + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror", "../haskell/haskell"], mod) + else // Plain browser env + mod(CodeMirror) +})(function (CodeMirror) { + "use strict" + + CodeMirror.defineMode("haskell-literate", function (config, parserConfig) { + var baseMode = CodeMirror.getMode(config, (parserConfig && parserConfig.base) || "haskell") + + return { + startState: function () { + return { + inCode: false, + baseState: CodeMirror.startState(baseMode) + } + }, + token: function (stream, state) { + if (stream.sol()) { + if (state.inCode = stream.eat(">")) + return "meta" + } + if (state.inCode) { + return baseMode.token(stream, state.baseState) + } else { + stream.skipToEnd() + return "comment" + } + }, + innerMode: function (state) { + return state.inCode ? {state: state.baseState, mode: baseMode} : null + } + } + }, "haskell") + + CodeMirror.defineMIME("text/x-literate-haskell", "haskell-literate") +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/haskell-literate/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/haskell-literate/index.html new file mode 100644 index 0000000..8c9bc60 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/haskell-literate/index.html @@ -0,0 +1,282 @@ +<!doctype html> + +<title>CodeMirror: Haskell-literate mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="haskell-literate.js"></script> +<script src="../haskell/haskell.js"></script> +<style>.CodeMirror { + border-top : 1px solid #DDDDDD; + border-bottom : 1px solid #DDDDDD; +}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo + src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Haskell-literate</a> + </ul> +</div> + +<article> + <h2>Haskell literate mode</h2> + <form> + <textarea id="code" name="code"> +> {-# LANGUAGE OverloadedStrings #-} +> {-# OPTIONS_GHC -fno-warn-unused-do-bind #-} +> import Control.Applicative ((<$>), (<*>)) +> import Data.Maybe (isJust) + +> import Data.Text (Text) +> import Text.Blaze ((!)) +> import qualified Data.Text as T +> import qualified Happstack.Server as Happstack +> import qualified Text.Blaze.Html5 as H +> import qualified Text.Blaze.Html5.Attributes as A + +> import Text.Digestive +> import Text.Digestive.Blaze.Html5 +> import Text.Digestive.Happstack +> import Text.Digestive.Util + +Simple forms and validation +--------------------------- + +Let's start by creating a very simple datatype to represent a user: + +> data User = User +> { userName :: Text +> , userMail :: Text +> } deriving (Show) + +And dive in immediately to create a `Form` for a user. The `Form v m a` type +has three parameters: + +- `v`: the type for messages and errors (usually a `String`-like type, `Text` in + this case); +- `m`: the monad we are operating in, not specified here; +- `a`: the return type of the `Form`, in this case, this is obviously `User`. + +> userForm :: Monad m => Form Text m User + +We create forms by using the `Applicative` interface. A few form types are +provided in the `Text.Digestive.Form` module, such as `text`, `string`, +`bool`... + +In the `digestive-functors` library, the developer is required to label each +field using the `.:` operator. This might look like a bit of a burden, but it +allows you to do some really useful stuff, like separating the `Form` from the +actual HTML layout. + +> userForm = User +> <$> "name" .: text Nothing +> <*> "mail" .: check "Not a valid email address" checkEmail (text Nothing) + +The `check` function enables you to validate the result of a form. For example, +we can validate the email address with a really naive `checkEmail` function. + +> checkEmail :: Text -> Bool +> checkEmail = isJust . T.find (== '@') + +More validation +--------------- + +For our example, we also want descriptions of Haskell libraries, and in order to +do that, we need package versions... + +> type Version = [Int] + +We want to let the user input a version number such as `0.1.0.0`. This means we +need to validate if the input `Text` is of this form, and then we need to parse +it to a `Version` type. Fortunately, we can do this in a single function: +`validate` allows conversion between values, which can optionally fail. + +`readMaybe :: Read a => String -> Maybe a` is a utility function imported from +`Text.Digestive.Util`. + +> validateVersion :: Text -> Result Text Version +> validateVersion = maybe (Error "Cannot parse version") Success . +> mapM (readMaybe . T.unpack) . T.split (== '.') + +A quick test in GHCi: + + ghci> validateVersion (T.pack "0.3.2.1") + Success [0,3,2,1] + ghci> validateVersion (T.pack "0.oops") + Error "Cannot parse version" + +It works! This means we can now easily add a `Package` type and a `Form` for it: + +> data Category = Web | Text | Math +> deriving (Bounded, Enum, Eq, Show) + +> data Package = Package Text Version Category +> deriving (Show) + +> packageForm :: Monad m => Form Text m Package +> packageForm = Package +> <$> "name" .: text Nothing +> <*> "version" .: validate validateVersion (text (Just "0.0.0.1")) +> <*> "category" .: choice categories Nothing +> where +> categories = [(x, T.pack (show x)) | x <- [minBound .. maxBound]] + +Composing forms +--------------- + +A release has an author and a package. Let's use this to illustrate the +composability of the digestive-functors library: we can reuse the forms we have +written earlier on. + +> data Release = Release User Package +> deriving (Show) + +> releaseForm :: Monad m => Form Text m Release +> releaseForm = Release +> <$> "author" .: userForm +> <*> "package" .: packageForm + +Views +----- + +As mentioned before, one of the advantages of using digestive-functors is +separation of forms and their actual HTML layout. In order to do this, we have +another type, `View`. + +We can get a `View` from a `Form` by supplying input. A `View` contains more +information than a `Form`, it has: + +- the original form; +- the input given by the user; +- any errors that have occurred. + +It is this view that we convert to HTML. For this tutorial, we use the +[blaze-html] library, and some helpers from the `digestive-functors-blaze` +library. + +[blaze-html]: http://jaspervdj.be/blaze/ + +Let's write a view for the `User` form. As you can see, we here refer to the +different fields in the `userForm`. The `errorList` will generate a list of +errors for the `"mail"` field. + +> userView :: View H.Html -> H.Html +> userView view = do +> label "name" view "Name: " +> inputText "name" view +> H.br +> +> errorList "mail" view +> label "mail" view "Email address: " +> inputText "mail" view +> H.br + +Like forms, views are also composable: let's illustrate that by adding a view +for the `releaseForm`, in which we reuse `userView`. In order to do this, we +take only the parts relevant to the author from the view by using `subView`. We +can then pass the resulting view to our own `userView`. +We have no special view code for `Package`, so we can just add that to +`releaseView` as well. `childErrorList` will generate a list of errors for each +child of the specified form. In this case, this means a list of errors from +`"package.name"` and `"package.version"`. Note how we use `foo.bar` to refer to +nested forms. + +> releaseView :: View H.Html -> H.Html +> releaseView view = do +> H.h2 "Author" +> userView $ subView "author" view +> +> H.h2 "Package" +> childErrorList "package" view +> +> label "package.name" view "Name: " +> inputText "package.name" view +> H.br +> +> label "package.version" view "Version: " +> inputText "package.version" view +> H.br +> +> label "package.category" view "Category: " +> inputSelect "package.category" view +> H.br + +The attentive reader might have wondered what the type parameter for `View` is: +it is the `String`-like type used for e.g. error messages. +But wait! We have + releaseForm :: Monad m => Form Text m Release + releaseView :: View H.Html -> H.Html +... doesn't this mean that we need a `View Text` rather than a `View Html`? The +answer is yes -- but having `View Html` allows us to write these views more +easily with the `digestive-functors-blaze` library. Fortunately, we will be able +to fix this using the `Functor` instance of `View`. + fmap :: Monad m => (v -> w) -> View v -> View w +A backend +--------- +To finish this tutorial, we need to be able to actually run this code. We need +an HTTP server for that, and we use [Happstack] for this tutorial. The +`digestive-functors-happstack` library gives about everything we need for this. +[Happstack]: http://happstack.com/ + +> site :: Happstack.ServerPart Happstack.Response +> site = do +> Happstack.decodeBody $ Happstack.defaultBodyPolicy "/tmp" 4096 4096 4096 +> r <- runForm "test" releaseForm +> case r of +> (view, Nothing) -> do +> let view' = fmap H.toHtml view +> Happstack.ok $ Happstack.toResponse $ +> template $ +> form view' "/" $ do +> releaseView view' +> H.br +> inputSubmit "Submit" +> (_, Just release) -> Happstack.ok $ Happstack.toResponse $ +> template $ do +> css +> H.h1 "Release received" +> H.p $ H.toHtml $ show release +> +> main :: IO () +> main = Happstack.simpleHTTP Happstack.nullConf site + +Utilities +--------- + +> template :: H.Html -> H.Html +> template body = H.docTypeHtml $ do +> H.head $ do +> H.title "digestive-functors tutorial" +> css +> H.body body +> css :: H.Html +> css = H.style ! A.type_ "text/css" $ do +> "label {width: 130px; float: left; clear: both}" +> "ul.digestive-functors-error-list {" +> " color: red;" +> " list-style-type: none;" +> " padding-left: 0px;" +> "}" + </textarea> + </form> + + <p><strong>MIME types + defined:</strong> <code>text/x-literate-haskell</code>.</p> + + <p>Parser configuration parameters recognized: <code>base</code> to + set the base mode (defaults to <code>"haskell"</code>).</p> + + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), {mode: "haskell-literate"}); + </script> + +</article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/haskell/haskell.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/haskell/haskell.js new file mode 100644 index 0000000..fe0bab6 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/haskell/haskell.js @@ -0,0 +1,267 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("haskell", function(_config, modeConfig) { + + function switchState(source, setState, f) { + setState(f); + return f(source, setState); + } + + // These should all be Unicode extended, as per the Haskell 2010 report + var smallRE = /[a-z_]/; + var largeRE = /[A-Z]/; + var digitRE = /\d/; + var hexitRE = /[0-9A-Fa-f]/; + var octitRE = /[0-7]/; + var idRE = /[a-z_A-Z0-9'\xa1-\uffff]/; + var symbolRE = /[-!#$%&*+.\/<=>?@\\^|~:]/; + var specialRE = /[(),;[\]`{}]/; + var whiteCharRE = /[ \t\v\f]/; // newlines are handled in tokenizer + + function normal(source, setState) { + if (source.eatWhile(whiteCharRE)) { + return null; + } + + var ch = source.next(); + if (specialRE.test(ch)) { + if (ch == '{' && source.eat('-')) { + var t = "comment"; + if (source.eat('#')) { + t = "meta"; + } + return switchState(source, setState, ncomment(t, 1)); + } + return null; + } + + if (ch == '\'') { + if (source.eat('\\')) { + source.next(); // should handle other escapes here + } + else { + source.next(); + } + if (source.eat('\'')) { + return "string"; + } + return "error"; + } + + if (ch == '"') { + return switchState(source, setState, stringLiteral); + } + + if (largeRE.test(ch)) { + source.eatWhile(idRE); + if (source.eat('.')) { + return "qualifier"; + } + return "variable-2"; + } + + if (smallRE.test(ch)) { + source.eatWhile(idRE); + return "variable"; + } + + if (digitRE.test(ch)) { + if (ch == '0') { + if (source.eat(/[xX]/)) { + source.eatWhile(hexitRE); // should require at least 1 + return "integer"; + } + if (source.eat(/[oO]/)) { + source.eatWhile(octitRE); // should require at least 1 + return "number"; + } + } + source.eatWhile(digitRE); + var t = "number"; + if (source.match(/^\.\d+/)) { + t = "number"; + } + if (source.eat(/[eE]/)) { + t = "number"; + source.eat(/[-+]/); + source.eatWhile(digitRE); // should require at least 1 + } + return t; + } + + if (ch == "." && source.eat(".")) + return "keyword"; + + if (symbolRE.test(ch)) { + if (ch == '-' && source.eat(/-/)) { + source.eatWhile(/-/); + if (!source.eat(symbolRE)) { + source.skipToEnd(); + return "comment"; + } + } + var t = "variable"; + if (ch == ':') { + t = "variable-2"; + } + source.eatWhile(symbolRE); + return t; + } + + return "error"; + } + + function ncomment(type, nest) { + if (nest == 0) { + return normal; + } + return function(source, setState) { + var currNest = nest; + while (!source.eol()) { + var ch = source.next(); + if (ch == '{' && source.eat('-')) { + ++currNest; + } + else if (ch == '-' && source.eat('}')) { + --currNest; + if (currNest == 0) { + setState(normal); + return type; + } + } + } + setState(ncomment(type, currNest)); + return type; + }; + } + + function stringLiteral(source, setState) { + while (!source.eol()) { + var ch = source.next(); + if (ch == '"') { + setState(normal); + return "string"; + } + if (ch == '\\') { + if (source.eol() || source.eat(whiteCharRE)) { + setState(stringGap); + return "string"; + } + if (source.eat('&')) { + } + else { + source.next(); // should handle other escapes here + } + } + } + setState(normal); + return "error"; + } + + function stringGap(source, setState) { + if (source.eat('\\')) { + return switchState(source, setState, stringLiteral); + } + source.next(); + setState(normal); + return "error"; + } + + + var wellKnownWords = (function() { + var wkw = {}; + function setType(t) { + return function () { + for (var i = 0; i < arguments.length; i++) + wkw[arguments[i]] = t; + }; + } + + setType("keyword")( + "case", "class", "data", "default", "deriving", "do", "else", "foreign", + "if", "import", "in", "infix", "infixl", "infixr", "instance", "let", + "module", "newtype", "of", "then", "type", "where", "_"); + + setType("keyword")( + "\.\.", ":", "::", "=", "\\", "\"", "<-", "->", "@", "~", "=>"); + + setType("builtin")( + "!!", "$!", "$", "&&", "+", "++", "-", ".", "/", "/=", "<", "<=", "=<<", + "==", ">", ">=", ">>", ">>=", "^", "^^", "||", "*", "**"); + + setType("builtin")( + "Bool", "Bounded", "Char", "Double", "EQ", "Either", "Enum", "Eq", + "False", "FilePath", "Float", "Floating", "Fractional", "Functor", "GT", + "IO", "IOError", "Int", "Integer", "Integral", "Just", "LT", "Left", + "Maybe", "Monad", "Nothing", "Num", "Ord", "Ordering", "Rational", "Read", + "ReadS", "Real", "RealFloat", "RealFrac", "Right", "Show", "ShowS", + "String", "True"); + + setType("builtin")( + "abs", "acos", "acosh", "all", "and", "any", "appendFile", "asTypeOf", + "asin", "asinh", "atan", "atan2", "atanh", "break", "catch", "ceiling", + "compare", "concat", "concatMap", "const", "cos", "cosh", "curry", + "cycle", "decodeFloat", "div", "divMod", "drop", "dropWhile", "either", + "elem", "encodeFloat", "enumFrom", "enumFromThen", "enumFromThenTo", + "enumFromTo", "error", "even", "exp", "exponent", "fail", "filter", + "flip", "floatDigits", "floatRadix", "floatRange", "floor", "fmap", + "foldl", "foldl1", "foldr", "foldr1", "fromEnum", "fromInteger", + "fromIntegral", "fromRational", "fst", "gcd", "getChar", "getContents", + "getLine", "head", "id", "init", "interact", "ioError", "isDenormalized", + "isIEEE", "isInfinite", "isNaN", "isNegativeZero", "iterate", "last", + "lcm", "length", "lex", "lines", "log", "logBase", "lookup", "map", + "mapM", "mapM_", "max", "maxBound", "maximum", "maybe", "min", "minBound", + "minimum", "mod", "negate", "not", "notElem", "null", "odd", "or", + "otherwise", "pi", "pred", "print", "product", "properFraction", + "putChar", "putStr", "putStrLn", "quot", "quotRem", "read", "readFile", + "readIO", "readList", "readLn", "readParen", "reads", "readsPrec", + "realToFrac", "recip", "rem", "repeat", "replicate", "return", "reverse", + "round", "scaleFloat", "scanl", "scanl1", "scanr", "scanr1", "seq", + "sequence", "sequence_", "show", "showChar", "showList", "showParen", + "showString", "shows", "showsPrec", "significand", "signum", "sin", + "sinh", "snd", "span", "splitAt", "sqrt", "subtract", "succ", "sum", + "tail", "take", "takeWhile", "tan", "tanh", "toEnum", "toInteger", + "toRational", "truncate", "uncurry", "undefined", "unlines", "until", + "unwords", "unzip", "unzip3", "userError", "words", "writeFile", "zip", + "zip3", "zipWith", "zipWith3"); + + var override = modeConfig.overrideKeywords; + if (override) for (var word in override) if (override.hasOwnProperty(word)) + wkw[word] = override[word]; + + return wkw; + })(); + + + + return { + startState: function () { return { f: normal }; }, + copyState: function (s) { return { f: s.f }; }, + + token: function(stream, state) { + var t = state.f(stream, function(s) { state.f = s; }); + var w = stream.current(); + return wellKnownWords.hasOwnProperty(w) ? wellKnownWords[w] : t; + }, + + blockCommentStart: "{-", + blockCommentEnd: "-}", + lineComment: "--" + }; + +}); + +CodeMirror.defineMIME("text/x-haskell", "haskell"); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/haskell/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/haskell/index.html new file mode 100644 index 0000000..42240b0 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/haskell/index.html @@ -0,0 +1,73 @@ +<!doctype html> + +<title>CodeMirror: Haskell mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<link rel="stylesheet" href="../../theme/elegant.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../../addon/edit/matchbrackets.js"></script> +<script src="haskell.js"></script> +<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Haskell</a> + </ul> +</div> + +<article> +<h2>Haskell mode</h2> +<form><textarea id="code" name="code"> +module UniquePerms ( + uniquePerms + ) +where + +-- | Find all unique permutations of a list where there might be duplicates. +uniquePerms :: (Eq a) => [a] -> [[a]] +uniquePerms = permBag . makeBag + +-- | An unordered collection where duplicate values are allowed, +-- but represented with a single value and a count. +type Bag a = [(a, Int)] + +makeBag :: (Eq a) => [a] -> Bag a +makeBag [] = [] +makeBag (a:as) = mix a $ makeBag as + where + mix a [] = [(a,1)] + mix a (bn@(b,n):bs) | a == b = (b,n+1):bs + | otherwise = bn : mix a bs + +permBag :: Bag a -> [[a]] +permBag [] = [[]] +permBag bs = concatMap (\(f,cs) -> map (f:) $ permBag cs) . oneOfEach $ bs + where + oneOfEach [] = [] + oneOfEach (an@(a,n):bs) = + let bs' = if n == 1 then bs else (a,n-1):bs + in (a,bs') : mapSnd (an:) (oneOfEach bs) + + apSnd f (a,b) = (a, f b) + mapSnd = map . apSnd +</textarea></form> + + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + lineNumbers: true, + matchBrackets: true, + theme: "elegant" + }); + </script> + + <p><strong>MIME types defined:</strong> <code>text/x-haskell</code>.</p> + </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/haxe/haxe.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/haxe/haxe.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/haxe/haxe.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/haxe/haxe.js diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/haxe/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/haxe/index.html new file mode 100644 index 0000000..d415b5e --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/haxe/index.html @@ -0,0 +1,124 @@ +<!doctype html> + +<title>CodeMirror: Haxe mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="haxe.js"></script> +<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Haxe</a> + </ul> +</div> + +<article> +<h2>Haxe mode</h2> + + +<div><p><textarea id="code-haxe" name="code"> +import one.two.Three; + +@attr("test") +class Foo<T> extends Three +{ + public function new() + { + noFoo = 12; + } + + public static inline function doFoo(obj:{k:Int, l:Float}):Int + { + for(i in 0...10) + { + obj.k++; + trace(i); + var var1 = new Array(); + if(var1.length > 1) + throw "Error"; + } + // The following line should not be colored, the variable is scoped out + var1; + /* Multi line + * Comment test + */ + return obj.k; + } + private function bar():Void + { + #if flash + var t1:String = "1.21"; + #end + try { + doFoo({k:3, l:1.2}); + } + catch (e : String) { + trace(e); + } + var t2:Float = cast(3.2); + var t3:haxe.Timer = new haxe.Timer(); + var t4 = {k:Std.int(t2), l:Std.parseFloat(t1)}; + var t5 = ~/123+.*$/i; + doFoo(t4); + untyped t1 = 4; + bob = new Foo<Int> + } + public var okFoo(default, never):Float; + var noFoo(getFoo, null):Int; + function getFoo():Int { + return noFoo; + } + + public var three:Int; +} +enum Color +{ + red; + green; + blue; + grey( v : Int ); + rgb (r:Int,g:Int,b:Int); +} +</textarea></p> + +<p>Hxml mode:</p> + +<p><textarea id="code-hxml"> +-cp test +-js path/to/file.js +#-remap nme:flash +--next +-D source-map-content +-cmd 'test' +-lib lime +</textarea></p> +</div> + + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code-haxe"), { + mode: "haxe", + lineNumbers: true, + indentUnit: 4, + indentWithTabs: true + }); + + editor = CodeMirror.fromTextArea(document.getElementById("code-hxml"), { + mode: "hxml", + lineNumbers: true, + indentUnit: 4, + indentWithTabs: true + }); + </script> + + <p><strong>MIME types defined:</strong> <code>text/x-haxe, text/x-hxml</code>.</p> + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/htmlembedded/htmlembedded.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/htmlembedded/htmlembedded.js new file mode 100644 index 0000000..464dc57 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/htmlembedded/htmlembedded.js @@ -0,0 +1,28 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed"), + require("../../addon/mode/multiplex")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror", "../htmlmixed/htmlmixed", + "../../addon/mode/multiplex"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { + "use strict"; + + CodeMirror.defineMode("htmlembedded", function(config, parserConfig) { + return CodeMirror.multiplexingMode(CodeMirror.getMode(config, "htmlmixed"), { + open: parserConfig.open || parserConfig.scriptStartRegex || "<%", + close: parserConfig.close || parserConfig.scriptEndRegex || "%>", + mode: CodeMirror.getMode(config, parserConfig.scriptingModeSpec) + }); + }, "htmlmixed"); + + CodeMirror.defineMIME("application/x-ejs", {name: "htmlembedded", scriptingModeSpec:"javascript"}); + CodeMirror.defineMIME("application/x-aspx", {name: "htmlembedded", scriptingModeSpec:"text/x-csharp"}); + CodeMirror.defineMIME("application/x-jsp", {name: "htmlembedded", scriptingModeSpec:"text/x-java"}); + CodeMirror.defineMIME("application/x-erb", {name: "htmlembedded", scriptingModeSpec:"ruby"}); +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/htmlembedded/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/htmlembedded/index.html new file mode 100644 index 0000000..9ed33cf --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/htmlembedded/index.html @@ -0,0 +1,60 @@ +<!doctype html> + +<title>CodeMirror: Html Embedded Scripts mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../xml/xml.js"></script> +<script src="../javascript/javascript.js"></script> +<script src="../css/css.js"></script> +<script src="../htmlmixed/htmlmixed.js"></script> +<script src="../../addon/mode/multiplex.js"></script> +<script src="htmlembedded.js"></script> +<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Html Embedded Scripts</a> + </ul> +</div> + +<article> +<h2>Html Embedded Scripts mode</h2> +<form><textarea id="code" name="code"> +<% +function hello(who) { + return "Hello " + who; +} +%> +This is an example of EJS (embedded javascript) +<p>The program says <%= hello("world") %>.</p> +<script> + alert("And here is some normal JS code"); // also colored +</script> +</textarea></form> + + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + lineNumbers: true, + mode: "application/x-ejs", + indentUnit: 4, + indentWithTabs: true + }); + </script> + + <p>Mode for html embedded scripts like JSP and ASP.NET. Depends on multiplex and HtmlMixed which in turn depends on + JavaScript, CSS and XML.<br />Other dependencies include those of the scripting language chosen.</p> + + <p><strong>MIME types defined:</strong> <code>application/x-aspx</code> (ASP.NET), + <code>application/x-ejs</code> (Embedded Javascript), <code>application/x-jsp</code> (JavaServer Pages) + and <code>application/x-erb</code></p> + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/htmlmixed/htmlmixed.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/htmlmixed/htmlmixed.js new file mode 100644 index 0000000..eb21fcc --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/htmlmixed/htmlmixed.js @@ -0,0 +1,152 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror"), require("../xml/xml"), require("../javascript/javascript"), require("../css/css")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror", "../xml/xml", "../javascript/javascript", "../css/css"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { + "use strict"; + + var defaultTags = { + script: [ + ["lang", /(javascript|babel)/i, "javascript"], + ["type", /^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^$/i, "javascript"], + ["type", /./, "text/plain"], + [null, null, "javascript"] + ], + style: [ + ["lang", /^css$/i, "css"], + ["type", /^(text\/)?(x-)?(stylesheet|css)$/i, "css"], + ["type", /./, "text/plain"], + [null, null, "css"] + ] + }; + + function maybeBackup(stream, pat, style) { + var cur = stream.current(), close = cur.search(pat); + if (close > -1) { + stream.backUp(cur.length - close); + } else if (cur.match(/<\/?$/)) { + stream.backUp(cur.length); + if (!stream.match(pat, false)) stream.match(cur); + } + return style; + } + + var attrRegexpCache = {}; + function getAttrRegexp(attr) { + var regexp = attrRegexpCache[attr]; + if (regexp) return regexp; + return attrRegexpCache[attr] = new RegExp("\\s+" + attr + "\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"); + } + + function getAttrValue(text, attr) { + var match = text.match(getAttrRegexp(attr)) + return match ? /^\s*(.*?)\s*$/.exec(match[2])[1] : "" + } + + function getTagRegexp(tagName, anchored) { + return new RegExp((anchored ? "^" : "") + "<\/\s*" + tagName + "\s*>", "i"); + } + + function addTags(from, to) { + for (var tag in from) { + var dest = to[tag] || (to[tag] = []); + var source = from[tag]; + for (var i = source.length - 1; i >= 0; i--) + dest.unshift(source[i]) + } + } + + function findMatchingMode(tagInfo, tagText) { + for (var i = 0; i < tagInfo.length; i++) { + var spec = tagInfo[i]; + if (!spec[0] || spec[1].test(getAttrValue(tagText, spec[0]))) return spec[2]; + } + } + + CodeMirror.defineMode("htmlmixed", function (config, parserConfig) { + var htmlMode = CodeMirror.getMode(config, { + name: "xml", + htmlMode: true, + multilineTagIndentFactor: parserConfig.multilineTagIndentFactor, + multilineTagIndentPastTag: parserConfig.multilineTagIndentPastTag + }); + + var tags = {}; + var configTags = parserConfig && parserConfig.tags, configScript = parserConfig && parserConfig.scriptTypes; + addTags(defaultTags, tags); + if (configTags) addTags(configTags, tags); + if (configScript) for (var i = configScript.length - 1; i >= 0; i--) + tags.script.unshift(["type", configScript[i].matches, configScript[i].mode]) + + function html(stream, state) { + var style = htmlMode.token(stream, state.htmlState), tag = /\btag\b/.test(style), tagName + if (tag && !/[<>\s\/]/.test(stream.current()) && + (tagName = state.htmlState.tagName && state.htmlState.tagName.toLowerCase()) && + tags.hasOwnProperty(tagName)) { + state.inTag = tagName + " " + } else if (state.inTag && tag && />$/.test(stream.current())) { + var inTag = /^([\S]+) (.*)/.exec(state.inTag) + state.inTag = null + var modeSpec = stream.current() == ">" && findMatchingMode(tags[inTag[1]], inTag[2]) + var mode = CodeMirror.getMode(config, modeSpec) + var endTagA = getTagRegexp(inTag[1], true), endTag = getTagRegexp(inTag[1], false); + state.token = function (stream, state) { + if (stream.match(endTagA, false)) { + state.token = html; + state.localState = state.localMode = null; + return null; + } + return maybeBackup(stream, endTag, state.localMode.token(stream, state.localState)); + }; + state.localMode = mode; + state.localState = CodeMirror.startState(mode, htmlMode.indent(state.htmlState, "")); + } else if (state.inTag) { + state.inTag += stream.current() + if (stream.eol()) state.inTag += " " + } + return style; + }; + + return { + startState: function () { + var state = CodeMirror.startState(htmlMode); + return {token: html, inTag: null, localMode: null, localState: null, htmlState: state}; + }, + + copyState: function (state) { + var local; + if (state.localState) { + local = CodeMirror.copyState(state.localMode, state.localState); + } + return {token: state.token, inTag: state.inTag, + localMode: state.localMode, localState: local, + htmlState: CodeMirror.copyState(htmlMode, state.htmlState)}; + }, + + token: function (stream, state) { + return state.token(stream, state); + }, + + indent: function (state, textAfter) { + if (!state.localMode || /^\s*<\//.test(textAfter)) + return htmlMode.indent(state.htmlState, textAfter); + else if (state.localMode.indent) + return state.localMode.indent(state.localState, textAfter); + else + return CodeMirror.Pass; + }, + + innerMode: function (state) { + return {state: state.localState || state.htmlState, mode: state.localMode || htmlMode}; + } + }; + }, "xml", "javascript", "css"); + + CodeMirror.defineMIME("text/html", "htmlmixed"); +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/htmlmixed/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/htmlmixed/index.html new file mode 100644 index 0000000..f94df9e --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/htmlmixed/index.html @@ -0,0 +1,89 @@ +<!doctype html> + +<title>CodeMirror: HTML mixed mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../../addon/selection/selection-pointer.js"></script> +<script src="../xml/xml.js"></script> +<script src="../javascript/javascript.js"></script> +<script src="../css/css.js"></script> +<script src="../vbscript/vbscript.js"></script> +<script src="htmlmixed.js"></script> +<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">HTML mixed</a> + </ul> +</div> + +<article> +<h2>HTML mixed mode</h2> +<form><textarea id="code" name="code"> +<html style="color: green"> + <!-- this is a comment --> + <head> + <title>Mixed HTML Example</title> + <style type="text/css"> + h1 {font-family: comic sans; color: #f0f;} + div {background: yellow !important;} + body { + max-width: 50em; + margin: 1em 2em 1em 5em; + } + </style> + </head> + <body> + <h1>Mixed HTML Example</h1> + <script> + function jsFunc(arg1, arg2) { + if (arg1 && arg2) document.body.innerHTML = "achoo"; + } + </script> + </body> +</html> +</textarea></form> + <script> + // Define an extended mixed-mode that understands vbscript and + // leaves mustache/handlebars embedded templates in html mode + var mixedMode = { + name: "htmlmixed", + scriptTypes: [{matches: /\/x-handlebars-template|\/x-mustache/i, + mode: null}, + {matches: /(text|application)\/(x-)?vb(a|script)/i, + mode: "vbscript"}] + }; + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + mode: mixedMode, + selectionPointer: true + }); + </script> + + <p>The HTML mixed mode depends on the XML, JavaScript, and CSS modes.</p> + + <p>It takes an optional mode configuration + option, <code>scriptTypes</code>, which can be used to add custom + behavior for specific <code><script type="..."></code> tags. If + given, it should hold an array of <code>{matches, mode}</code> + objects, where <code>matches</code> is a string or regexp that + matches the script type, and <code>mode</code> is + either <code>null</code>, for script types that should stay in + HTML mode, or a <a href="../../doc/manual.html#option_mode">mode + spec</a> corresponding to the mode that should be used for the + script.</p> + + <p><strong>MIME types defined:</strong> <code>text/html</code> + (redefined, only takes effect if you load this parser after the + XML parser).</p> + + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/http/http.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/http/http.js new file mode 100644 index 0000000..9a3c5f9 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/http/http.js @@ -0,0 +1,113 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("http", function() { + function failFirstLine(stream, state) { + stream.skipToEnd(); + state.cur = header; + return "error"; + } + + function start(stream, state) { + if (stream.match(/^HTTP\/\d\.\d/)) { + state.cur = responseStatusCode; + return "keyword"; + } else if (stream.match(/^[A-Z]+/) && /[ \t]/.test(stream.peek())) { + state.cur = requestPath; + return "keyword"; + } else { + return failFirstLine(stream, state); + } + } + + function responseStatusCode(stream, state) { + var code = stream.match(/^\d+/); + if (!code) return failFirstLine(stream, state); + + state.cur = responseStatusText; + var status = Number(code[0]); + if (status >= 100 && status < 200) { + return "positive informational"; + } else if (status >= 200 && status < 300) { + return "positive success"; + } else if (status >= 300 && status < 400) { + return "positive redirect"; + } else if (status >= 400 && status < 500) { + return "negative client-error"; + } else if (status >= 500 && status < 600) { + return "negative server-error"; + } else { + return "error"; + } + } + + function responseStatusText(stream, state) { + stream.skipToEnd(); + state.cur = header; + return null; + } + + function requestPath(stream, state) { + stream.eatWhile(/\S/); + state.cur = requestProtocol; + return "string-2"; + } + + function requestProtocol(stream, state) { + if (stream.match(/^HTTP\/\d\.\d$/)) { + state.cur = header; + return "keyword"; + } else { + return failFirstLine(stream, state); + } + } + + function header(stream) { + if (stream.sol() && !stream.eat(/[ \t]/)) { + if (stream.match(/^.*?:/)) { + return "atom"; + } else { + stream.skipToEnd(); + return "error"; + } + } else { + stream.skipToEnd(); + return "string"; + } + } + + function body(stream) { + stream.skipToEnd(); + return null; + } + + return { + token: function(stream, state) { + var cur = state.cur; + if (cur != header && cur != body && stream.eatSpace()) return null; + return cur(stream, state); + }, + + blankLine: function(state) { + state.cur = body; + }, + + startState: function() { + return {cur: start}; + } + }; +}); + +CodeMirror.defineMIME("message/http", "http"); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/http/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/http/index.html new file mode 100644 index 0000000..0b8d531 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/http/index.html @@ -0,0 +1,45 @@ +<!doctype html> + +<title>CodeMirror: HTTP mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="http.js"></script> +<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">HTTP</a> + </ul> +</div> + +<article> +<h2>HTTP mode</h2> + + +<div><textarea id="code" name="code"> +POST /somewhere HTTP/1.1 +Host: example.com +If-Modified-Since: Sat, 29 Oct 1994 19:43:31 GMT +Content-Type: application/x-www-form-urlencoded; + charset=utf-8 +User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.11 (KHTML, like Gecko) Ubuntu/12.04 Chromium/20.0.1132.47 Chrome/20.0.1132.47 Safari/536.11 + +This is the request body! +</textarea></div> + + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), {}); + </script> + + <p><strong>MIME types defined:</strong> <code>message/http</code>.</p> + </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/idl/idl.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/idl/idl.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/idl/idl.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/idl/idl.js diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/idl/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/idl/index.html new file mode 100644 index 0000000..4c169e2 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/idl/index.html @@ -0,0 +1,64 @@ +<!doctype html> + +<title>CodeMirror: IDL mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="idl.js"></script> +<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">IDL</a> + </ul> +</div> + +<article> +<h2>IDL mode</h2> + + <div><textarea id="code" name="code"> +;; Example IDL code +FUNCTION mean_and_stddev,array + ;; This program reads in an array of numbers + ;; and returns a structure containing the + ;; average and standard deviation + + ave = 0.0 + count = 0.0 + + for i=0,N_ELEMENTS(array)-1 do begin + ave = ave + array[i] + count = count + 1 + endfor + + ave = ave/count + + std = stddev(array) + + return, {average:ave,std:std} + +END + + </textarea></div> + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + mode: {name: "idl", + version: 1, + singleLineStringErrors: false}, + lineNumbers: true, + indentUnit: 4, + matchBrackets: true + }); + </script> + + <p><strong>MIME types defined:</strong> <code>text/x-idl</code>.</p> +</article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/index.html new file mode 100644 index 0000000..3a2fe55 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/index.html @@ -0,0 +1,164 @@ +<!doctype html> + +<title>CodeMirror: Language Modes</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../doc/docs.css"> + +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../doc/logo.png"></a> + + <ul> + <li><a href="../index.html">Home</a> + <li><a href="../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a class=active href="#">Language modes</a> + </ul> +</div> + +<article> + + <h2>Language modes</h2> + + <p>This is a list of every mode in the distribution. Each mode lives +in a subdirectory of the <code>mode/</code> directory, and typically +defines a single JavaScript file that implements the mode. Loading +such file will make the language available to CodeMirror, through +the <a href="../doc/manual.html#option_mode"><code>mode</code></a> +option.</p> + + <div style="-webkit-columns: 100px 2; -moz-columns: 100px 2; columns: 100px 2;"> + <ul style="margin-top: 0"> + <li><a href="apl/index.html">APL</a></li> + <li><a href="asn.1/index.html">ASN.1</a></li> + <li><a href="asterisk/index.html">Asterisk dialplan</a></li> + <li><a href="brainfuck/index.html">Brainfuck</a></li> + <li><a href="clike/index.html">C, C++, C#</a></li> + <li><a href="clike/index.html">Ceylon</a></li> + <li><a href="clojure/index.html">Clojure</a></li> + <li><a href="css/gss.html">Closure Stylesheets (GSS)</a></li> + <li><a href="cmake/index.html">CMake</a></li> + <li><a href="cobol/index.html">COBOL</a></li> + <li><a href="coffeescript/index.html">CoffeeScript</a></li> + <li><a href="commonlisp/index.html">Common Lisp</a></li> + <li><a href="crystal/index.html">Crystal</a></li> + <li><a href="css/index.html">CSS</a></li> + <li><a href="cypher/index.html">Cypher</a></li> + <li><a href="python/index.html">Cython</a></li> + <li><a href="d/index.html">D</a></li> + <li><a href="dart/index.html">Dart</a></li> + <li><a href="django/index.html">Django</a> (templating language)</li> + <li><a href="dockerfile/index.html">Dockerfile</a></li> + <li><a href="diff/index.html">diff</a></li> + <li><a href="dtd/index.html">DTD</a></li> + <li><a href="dylan/index.html">Dylan</a></li> + <li><a href="ebnf/index.html">EBNF</a></li> + <li><a href="ecl/index.html">ECL</a></li> + <li><a href="eiffel/index.html">Eiffel</a></li> + <li><a href="elm/index.html">Elm</a></li> + <li><a href="erlang/index.html">Erlang</a></li> + <li><a href="factor/index.html">Factor</a></li> + <li><a href="fcl/index.html">FCL</a></li> + <li><a href="forth/index.html">Forth</a></li> + <li><a href="fortran/index.html">Fortran</a></li> + <li><a href="mllike/index.html">F#</a></li> + <li><a href="gas/index.html">Gas</a> (AT&T-style assembly)</li> + <li><a href="gherkin/index.html">Gherkin</a></li> + <li><a href="go/index.html">Go</a></li> + <li><a href="groovy/index.html">Groovy</a></li> + <li><a href="haml/index.html">HAML</a></li> + <li><a href="handlebars/index.html">Handlebars</a></li> + <li><a href="haskell/index.html">Haskell</a> (<a href="haskell-literate/index.html">Literate</a>)</li> + <li><a href="haxe/index.html">Haxe</a></li> + <li><a href="htmlembedded/index.html">HTML embedded</a> (JSP, ASP.NET)</li> + <li><a href="htmlmixed/index.html">HTML mixed-mode</a></li> + <li><a href="http/index.html">HTTP</a></li> + <li><a href="idl/index.html">IDL</a></li> + <li><a href="clike/index.html">Java</a></li> + <li><a href="javascript/index.html">JavaScript</a> (<a href="jsx/index.html">JSX</a>)</li> + <li><a href="jinja2/index.html">Jinja2</a></li> + <li><a href="julia/index.html">Julia</a></li> + <li><a href="kotlin/index.html">Kotlin</a></li> + <li><a href="css/less.html">LESS</a></li> + <li><a href="livescript/index.html">LiveScript</a></li> + <li><a href="lua/index.html">Lua</a></li> + <li><a href="markdown/index.html">Markdown</a> (<a href="gfm/index.html">GitHub-flavour</a>)</li> + <li><a href="mathematica/index.html">Mathematica</a></li> + <li><a href="mbox/index.html">mbox</a></li> + <li><a href="mirc/index.html">mIRC</a></li> + <li><a href="modelica/index.html">Modelica</a></li> + <li><a href="mscgen/index.html">MscGen</a></li> + <li><a href="mumps/index.html">MUMPS</a></li> + <li><a href="nginx/index.html">Nginx</a></li> + <li><a href="nsis/index.html">NSIS</a></li> + <li><a href="ntriples/index.html">NTriples</a></li> + <li><a href="clike/index.html">Objective C</a></li> + <li><a href="mllike/index.html">OCaml</a></li> + <li><a href="octave/index.html">Octave</a> (MATLAB)</li> + <li><a href="oz/index.html">Oz</a></li> + <li><a href="pascal/index.html">Pascal</a></li> + <li><a href="pegjs/index.html">PEG.js</a></li> + <li><a href="perl/index.html">Perl</a></li> + <li><a href="asciiarmor/index.html">PGP (ASCII armor)</a></li> + <li><a href="php/index.html">PHP</a></li> + <li><a href="pig/index.html">Pig Latin</a></li> + <li><a href="powershell/index.html">PowerShell</a></li> + <li><a href="properties/index.html">Properties files</a></li> + <li><a href="protobuf/index.html">ProtoBuf</a></li> + <li><a href="pug/index.html">Pug</a></li> + <li><a href="puppet/index.html">Puppet</a></li> + <li><a href="python/index.html">Python</a></li> + <li><a href="q/index.html">Q</a></li> + <li><a href="r/index.html">R</a></li> + <li><a href="rpm/index.html">RPM</a></li> + <li><a href="rst/index.html">reStructuredText</a></li> + <li><a href="ruby/index.html">Ruby</a></li> + <li><a href="rust/index.html">Rust</a></li> + <li><a href="sas/index.html">SAS</a></li> + <li><a href="sass/index.html">Sass</a></li> + <li><a href="spreadsheet/index.html">Spreadsheet</a></li> + <li><a href="clike/scala.html">Scala</a></li> + <li><a href="scheme/index.html">Scheme</a></li> + <li><a href="css/scss.html">SCSS</a></li> + <li><a href="shell/index.html">Shell</a></li> + <li><a href="sieve/index.html">Sieve</a></li> + <li><a href="slim/index.html">Slim</a></li> + <li><a href="smalltalk/index.html">Smalltalk</a></li> + <li><a href="smarty/index.html">Smarty</a></li> + <li><a href="solr/index.html">Solr</a></li> + <li><a href="soy/index.html">Soy</a></li> + <li><a href="stylus/index.html">Stylus</a></li> + <li><a href="sql/index.html">SQL</a> (several dialects)</li> + <li><a href="sparql/index.html">SPARQL</a></li> + <li><a href="clike/index.html">Squirrel</a></li> + <li><a href="swift/index.html">Swift</a></li> + <li><a href="stex/index.html">sTeX, LaTeX</a></li> + <li><a href="tcl/index.html">Tcl</a></li> + <li><a href="textile/index.html">Textile</a></li> + <li><a href="tiddlywiki/index.html">Tiddlywiki</a></li> + <li><a href="tiki/index.html">Tiki wiki</a></li> + <li><a href="toml/index.html">TOML</a></li> + <li><a href="tornado/index.html">Tornado</a> (templating language)</li> + <li><a href="troff/index.html">troff</a> (for manpages)</li> + <li><a href="ttcn/index.html">TTCN</a></li> + <li><a href="ttcn-cfg/index.html">TTCN Configuration</a></li> + <li><a href="turtle/index.html">Turtle</a></li> + <li><a href="twig/index.html">Twig</a></li> + <li><a href="vb/index.html">VB.NET</a></li> + <li><a href="vbscript/index.html">VBScript</a></li> + <li><a href="velocity/index.html">Velocity</a></li> + <li><a href="verilog/index.html">Verilog/SystemVerilog</a></li> + <li><a href="vhdl/index.html">VHDL</a></li> + <li><a href="vue/index.html">Vue.js app</a></li> + <li><a href="webidl/index.html">Web IDL</a></li> + <li><a href="xml/index.html">XML/HTML</a></li> + <li><a href="xquery/index.html">XQuery</a></li> + <li><a href="yacas/index.html">Yacas</a></li> + <li><a href="yaml/index.html">YAML</a></li> + <li><a href="yaml-frontmatter/index.html">YAML frontmatter</a></li> + <li><a href="z80/index.html">Z80</a></li> + </ul> + </div> + +</article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/javascript/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/javascript/index.html new file mode 100644 index 0000000..592a133 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/javascript/index.html @@ -0,0 +1,114 @@ +<!doctype html> + +<title>CodeMirror: JavaScript mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../../addon/edit/matchbrackets.js"></script> +<script src="../../addon/comment/continuecomment.js"></script> +<script src="../../addon/comment/comment.js"></script> +<script src="javascript.js"></script> +<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">JavaScript</a> + </ul> +</div> + +<article> +<h2>JavaScript mode</h2> + + +<div><textarea id="code" name="code"> +// Demo code (the actual new parser character stream implementation) + +function StringStream(string) { + this.pos = 0; + this.string = string; +} + +StringStream.prototype = { + done: function() {return this.pos >= this.string.length;}, + peek: function() {return this.string.charAt(this.pos);}, + next: function() { + if (this.pos < this.string.length) + return this.string.charAt(this.pos++); + }, + eat: function(match) { + var ch = this.string.charAt(this.pos); + if (typeof match == "string") var ok = ch == match; + else var ok = ch && match.test ? match.test(ch) : match(ch); + if (ok) {this.pos++; return ch;} + }, + eatWhile: function(match) { + var start = this.pos; + while (this.eat(match)); + if (this.pos > start) return this.string.slice(start, this.pos); + }, + backUp: function(n) {this.pos -= n;}, + column: function() {return this.pos;}, + eatSpace: function() { + var start = this.pos; + while (/\s/.test(this.string.charAt(this.pos))) this.pos++; + return this.pos - start; + }, + match: function(pattern, consume, caseInsensitive) { + if (typeof pattern == "string") { + function cased(str) {return caseInsensitive ? str.toLowerCase() : str;} + if (cased(this.string).indexOf(cased(pattern), this.pos) == this.pos) { + if (consume !== false) this.pos += str.length; + return true; + } + } + else { + var match = this.string.slice(this.pos).match(pattern); + if (match && consume !== false) this.pos += match[0].length; + return match; + } + } +}; +</textarea></div> + + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + lineNumbers: true, + matchBrackets: true, + continueComments: "Enter", + extraKeys: {"Ctrl-Q": "toggleComment"} + }); + </script> + + <p> + JavaScript mode supports several configuration options: + <ul> + <li><code>json</code> which will set the mode to expect JSON + data rather than a JavaScript program.</li> + <li><code>jsonld</code> which will set the mode to expect + <a href="http://json-ld.org">JSON-LD</a> linked data rather + than a JavaScript program (<a href="json-ld.html">demo</a>).</li> + <li><code>typescript</code> which will activate additional + syntax highlighting and some other things for TypeScript code + (<a href="typescript.html">demo</a>).</li> + <li><code>statementIndent</code> which (given a number) will + determine the amount of indentation to use for statements + continued on a new line.</li> + <li><code>wordCharacters</code>, a regexp that indicates which + characters should be considered part of an identifier. + Defaults to <code>/[\w$]/</code>, which does not handle + non-ASCII identifiers. Can be set to something more elaborate + to improve Unicode support.</li> + </ul> + </p> + + <p><strong>MIME types defined:</strong> <code>text/javascript</code>, <code>application/json</code>, <code>application/ld+json</code>, <code>text/typescript</code>, <code>application/typescript</code>.</p> + </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/javascript/javascript.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/javascript/javascript.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/javascript/javascript.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/javascript/javascript.js diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/javascript/json-ld.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/javascript/json-ld.html new file mode 100644 index 0000000..3a37f0b --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/javascript/json-ld.html @@ -0,0 +1,72 @@ +<!doctype html> + +<title>CodeMirror: JSON-LD mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../../addon/edit/matchbrackets.js"></script> +<script src="../../addon/comment/continuecomment.js"></script> +<script src="../../addon/comment/comment.js"></script> +<script src="javascript.js"></script> +<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id="nav"> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"/></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">JSON-LD</a> + </ul> +</div> + +<article> +<h2>JSON-LD mode</h2> + + +<div><textarea id="code" name="code"> +{ + "@context": { + "name": "http://schema.org/name", + "description": "http://schema.org/description", + "image": { + "@id": "http://schema.org/image", + "@type": "@id" + }, + "geo": "http://schema.org/geo", + "latitude": { + "@id": "http://schema.org/latitude", + "@type": "xsd:float" + }, + "longitude": { + "@id": "http://schema.org/longitude", + "@type": "xsd:float" + }, + "xsd": "http://www.w3.org/2001/XMLSchema#" + }, + "name": "The Empire State Building", + "description": "The Empire State Building is a 102-story landmark in New York City.", + "image": "http://www.civil.usherbrooke.ca/cours/gci215a/empire-state-building.jpg", + "geo": { + "latitude": "40.75", + "longitude": "73.98" + } +} +</textarea></div> + + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + matchBrackets: true, + autoCloseBrackets: true, + mode: "application/ld+json", + lineWrapping: true + }); + </script> + + <p>This is a specialization of the <a href="index.html">JavaScript mode</a>.</p> + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/javascript/test.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/javascript/test.js new file mode 100644 index 0000000..91c8b74 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/javascript/test.js @@ -0,0 +1,237 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function() { + var mode = CodeMirror.getMode({indentUnit: 2}, "javascript"); + function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); } + + MT("locals", + "[keyword function] [def foo]([def a], [def b]) { [keyword var] [def c] [operator =] [number 10]; [keyword return] [variable-2 a] [operator +] [variable-2 c] [operator +] [variable d]; }"); + + MT("comma-and-binop", + "[keyword function](){ [keyword var] [def x] [operator =] [number 1] [operator +] [number 2], [def y]; }"); + + MT("destructuring", + "([keyword function]([def a], [[[def b], [def c] ]]) {", + " [keyword let] {[def d], [property foo]: [def c][operator =][number 10], [def x]} [operator =] [variable foo]([variable-2 a]);", + " [[[variable-2 c], [variable y] ]] [operator =] [variable-2 c];", + "})();"); + + MT("destructure_trailing_comma", + "[keyword let] {[def a], [def b],} [operator =] [variable foo];", + "[keyword let] [def c];"); // Parser still in good state? + + MT("class_body", + "[keyword class] [def Foo] {", + " [property constructor]() {}", + " [property sayName]() {", + " [keyword return] [string-2 `foo${][variable foo][string-2 }oo`];", + " }", + "}"); + + MT("class", + "[keyword class] [def Point] [keyword extends] [variable SuperThing] {", + " [keyword get] [property prop]() { [keyword return] [number 24]; }", + " [property constructor]([def x], [def y]) {", + " [keyword super]([string 'something']);", + " [keyword this].[property x] [operator =] [variable-2 x];", + " }", + "}"); + + MT("import", + "[keyword function] [def foo]() {", + " [keyword import] [def $] [keyword from] [string 'jquery'];", + " [keyword import] { [def encrypt], [def decrypt] } [keyword from] [string 'crypto'];", + "}"); + + MT("import_trailing_comma", + "[keyword import] {[def foo], [def bar],} [keyword from] [string 'baz']") + + MT("const", + "[keyword function] [def f]() {", + " [keyword const] [[ [def a], [def b] ]] [operator =] [[ [number 1], [number 2] ]];", + "}"); + + MT("for/of", + "[keyword for]([keyword let] [def of] [keyword of] [variable something]) {}"); + + MT("generator", + "[keyword function*] [def repeat]([def n]) {", + " [keyword for]([keyword var] [def i] [operator =] [number 0]; [variable-2 i] [operator <] [variable-2 n]; [operator ++][variable-2 i])", + " [keyword yield] [variable-2 i];", + "}"); + + MT("quotedStringAddition", + "[keyword let] [def f] [operator =] [variable a] [operator +] [string 'fatarrow'] [operator +] [variable c];"); + + MT("quotedFatArrow", + "[keyword let] [def f] [operator =] [variable a] [operator +] [string '=>'] [operator +] [variable c];"); + + MT("fatArrow", + "[variable array].[property filter]([def a] [operator =>] [variable-2 a] [operator +] [number 1]);", + "[variable a];", // No longer in scope + "[keyword let] [def f] [operator =] ([[ [def a], [def b] ]], [def c]) [operator =>] [variable-2 a] [operator +] [variable-2 c];", + "[variable c];"); + + MT("spread", + "[keyword function] [def f]([def a], [meta ...][def b]) {", + " [variable something]([variable-2 a], [meta ...][variable-2 b]);", + "}"); + + MT("quasi", + "[variable re][string-2 `fofdlakj${][variable x] [operator +] ([variable re][string-2 `foo`]) [operator +] [number 1][string-2 }fdsa`] [operator +] [number 2]"); + + MT("quasi_no_function", + "[variable x] [operator =] [string-2 `fofdlakj${][variable x] [operator +] [string-2 `foo`] [operator +] [number 1][string-2 }fdsa`] [operator +] [number 2]"); + + MT("indent_statement", + "[keyword var] [def x] [operator =] [number 10]", + "[variable x] [operator +=] [variable y] [operator +]", + " [atom Infinity]", + "[keyword debugger];"); + + MT("indent_if", + "[keyword if] ([number 1])", + " [keyword break];", + "[keyword else] [keyword if] ([number 2])", + " [keyword continue];", + "[keyword else]", + " [number 10];", + "[keyword if] ([number 1]) {", + " [keyword break];", + "} [keyword else] [keyword if] ([number 2]) {", + " [keyword continue];", + "} [keyword else] {", + " [number 10];", + "}"); + + MT("indent_for", + "[keyword for] ([keyword var] [def i] [operator =] [number 0];", + " [variable i] [operator <] [number 100];", + " [variable i][operator ++])", + " [variable doSomething]([variable i]);", + "[keyword debugger];"); + + MT("indent_c_style", + "[keyword function] [def foo]()", + "{", + " [keyword debugger];", + "}"); + + MT("indent_else", + "[keyword for] (;;)", + " [keyword if] ([variable foo])", + " [keyword if] ([variable bar])", + " [number 1];", + " [keyword else]", + " [number 2];", + " [keyword else]", + " [number 3];"); + + MT("indent_funarg", + "[variable foo]([number 10000],", + " [keyword function]([def a]) {", + " [keyword debugger];", + "};"); + + MT("indent_below_if", + "[keyword for] (;;)", + " [keyword if] ([variable foo])", + " [number 1];", + "[number 2];"); + + MT("indent_semicolonless_if", + "[keyword function] [def foo]() {", + " [keyword if] ([variable x])", + " [variable foo]()", + "}") + + MT("indent_semicolonless_if_with_statement", + "[keyword function] [def foo]() {", + " [keyword if] ([variable x])", + " [variable foo]()", + " [variable bar]()", + "}") + + MT("multilinestring", + "[keyword var] [def x] [operator =] [string 'foo\\]", + "[string bar'];"); + + MT("scary_regexp", + "[string-2 /foo[[/]]bar/];"); + + MT("indent_strange_array", + "[keyword var] [def x] [operator =] [[", + " [number 1],,", + " [number 2],", + "]];", + "[number 10];"); + + MT("param_default", + "[keyword function] [def foo]([def x] [operator =] [string-2 `foo${][number 10][string-2 }bar`]) {", + " [keyword return] [variable-2 x];", + "}"); + + MT("new_target", + "[keyword function] [def F]([def target]) {", + " [keyword if] ([variable-2 target] [operator &&] [keyword new].[keyword target].[property name]) {", + " [keyword return] [keyword new]", + " .[keyword target];", + " }", + "}"); + + var ts_mode = CodeMirror.getMode({indentUnit: 2}, "application/typescript") + function TS(name) { + test.mode(name, ts_mode, Array.prototype.slice.call(arguments, 1)) + } + + TS("extend_type", + "[keyword class] [def Foo] [keyword extends] [variable-3 Some][operator <][variable-3 Type][operator >] {}") + + TS("arrow_type", + "[keyword let] [def x]: ([variable arg]: [variable-3 Type]) [operator =>] [variable-3 ReturnType]") + + TS("typescript_class", + "[keyword class] [def Foo] {", + " [keyword public] [keyword static] [property main]() {}", + " [keyword private] [property _foo]: [variable-3 string];", + "}") + + var jsonld_mode = CodeMirror.getMode( + {indentUnit: 2}, + {name: "javascript", jsonld: true} + ); + function LD(name) { + test.mode(name, jsonld_mode, Array.prototype.slice.call(arguments, 1)); + } + + LD("json_ld_keywords", + '{', + ' [meta "@context"]: {', + ' [meta "@base"]: [string "http://example.com"],', + ' [meta "@vocab"]: [string "http://xmlns.com/foaf/0.1/"],', + ' [property "likesFlavor"]: {', + ' [meta "@container"]: [meta "@list"]', + ' [meta "@reverse"]: [string "@beFavoriteOf"]', + ' },', + ' [property "nick"]: { [meta "@container"]: [meta "@set"] },', + ' [property "nick"]: { [meta "@container"]: [meta "@index"] }', + ' },', + ' [meta "@graph"]: [[ {', + ' [meta "@id"]: [string "http://dbpedia.org/resource/John_Lennon"],', + ' [property "name"]: [string "John Lennon"],', + ' [property "modified"]: {', + ' [meta "@value"]: [string "2010-05-29T14:17:39+02:00"],', + ' [meta "@type"]: [string "http://www.w3.org/2001/XMLSchema#dateTime"]', + ' }', + ' } ]]', + '}'); + + LD("json_ld_fake", + '{', + ' [property "@fake"]: [string "@fake"],', + ' [property "@contextual"]: [string "@identifier"],', + ' [property "user@domain.com"]: [string "@graphical"],', + ' [property "@ID"]: [string "@@ID"]', + '}'); +})(); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/javascript/typescript.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/javascript/typescript.html new file mode 100644 index 0000000..2cfc538 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/javascript/typescript.html @@ -0,0 +1,61 @@ +<!doctype html> + +<title>CodeMirror: TypeScript mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="javascript.js"></script> +<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">TypeScript</a> + </ul> +</div> + +<article> +<h2>TypeScript mode</h2> + + +<div><textarea id="code" name="code"> +class Greeter { + greeting: string; + constructor (message: string) { + this.greeting = message; + } + greet() { + return "Hello, " + this.greeting; + } +} + +var greeter = new Greeter("world"); + +var button = document.createElement('button') +button.innerText = "Say Hello" +button.onclick = function() { + alert(greeter.greet()) +} + +document.body.appendChild(button) + +</textarea></div> + + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + lineNumbers: true, + matchBrackets: true, + mode: "text/typescript" + }); + </script> + + <p>This is a specialization of the <a href="index.html">JavaScript mode</a>.</p> + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/jinja2/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/jinja2/index.html new file mode 100644 index 0000000..5a70e91 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/jinja2/index.html @@ -0,0 +1,54 @@ +<!doctype html> + +<title>CodeMirror: Jinja2 mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="jinja2.js"></script> +<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Jinja2</a> + </ul> +</div> + +<article> +<h2>Jinja2 mode</h2> +<form><textarea id="code" name="code"> +{# this is a comment #} +{%- for item in li -%} + <li>{{ item.label }}</li> +{% endfor -%} +{{ item.sand == true and item.keyword == false ? 1 : 0 }} +{{ app.get(55, 1.2, true) }} +{% if app.get('_route') == ('_home') %}home{% endif %} +{% if app.session.flashbag.has('message') %} + {% for message in app.session.flashbag.get('message') %} + {{ message.content }} + {% endfor %} +{% endif %} +{{ path('_home', {'section': app.request.get('section')}) }} +{{ path('_home', { + 'section': app.request.get('section'), + 'boolean': true, + 'number': 55.33 + }) +}} +{% include ('test.incl.html.twig') %} +</textarea></form> + <script> + var editor = + CodeMirror.fromTextArea(document.getElementById("code"), {mode: + {name: "jinja2", htmlMode: true}}); + </script> + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/jinja2/jinja2.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/jinja2/jinja2.js new file mode 100644 index 0000000..ed19558 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/jinja2/jinja2.js @@ -0,0 +1,142 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { + "use strict"; + + CodeMirror.defineMode("jinja2", function() { + var keywords = ["and", "as", "block", "endblock", "by", "cycle", "debug", "else", "elif", + "extends", "filter", "endfilter", "firstof", "for", + "endfor", "if", "endif", "ifchanged", "endifchanged", + "ifequal", "endifequal", "ifnotequal", + "endifnotequal", "in", "include", "load", "not", "now", "or", + "parsed", "regroup", "reversed", "spaceless", + "endspaceless", "ssi", "templatetag", "openblock", + "closeblock", "openvariable", "closevariable", + "openbrace", "closebrace", "opencomment", + "closecomment", "widthratio", "url", "with", "endwith", + "get_current_language", "trans", "endtrans", "noop", "blocktrans", + "endblocktrans", "get_available_languages", + "get_current_language_bidi", "plural"], + operator = /^[+\-*&%=<>!?|~^]/, + sign = /^[:\[\(\{]/, + atom = ["true", "false"], + number = /^(\d[+\-\*\/])?\d+(\.\d+)?/; + + keywords = new RegExp("((" + keywords.join(")|(") + "))\\b"); + atom = new RegExp("((" + atom.join(")|(") + "))\\b"); + + function tokenBase (stream, state) { + var ch = stream.peek(); + + //Comment + if (state.incomment) { + if(!stream.skipTo("#}")) { + stream.skipToEnd(); + } else { + stream.eatWhile(/\#|}/); + state.incomment = false; + } + return "comment"; + //Tag + } else if (state.intag) { + //After operator + if(state.operator) { + state.operator = false; + if(stream.match(atom)) { + return "atom"; + } + if(stream.match(number)) { + return "number"; + } + } + //After sign + if(state.sign) { + state.sign = false; + if(stream.match(atom)) { + return "atom"; + } + if(stream.match(number)) { + return "number"; + } + } + + if(state.instring) { + if(ch == state.instring) { + state.instring = false; + } + stream.next(); + return "string"; + } else if(ch == "'" || ch == '"') { + state.instring = ch; + stream.next(); + return "string"; + } else if(stream.match(state.intag + "}") || stream.eat("-") && stream.match(state.intag + "}")) { + state.intag = false; + return "tag"; + } else if(stream.match(operator)) { + state.operator = true; + return "operator"; + } else if(stream.match(sign)) { + state.sign = true; + } else { + if(stream.eat(" ") || stream.sol()) { + if(stream.match(keywords)) { + return "keyword"; + } + if(stream.match(atom)) { + return "atom"; + } + if(stream.match(number)) { + return "number"; + } + if(stream.sol()) { + stream.next(); + } + } else { + stream.next(); + } + + } + return "variable"; + } else if (stream.eat("{")) { + if (ch = stream.eat("#")) { + state.incomment = true; + if(!stream.skipTo("#}")) { + stream.skipToEnd(); + } else { + stream.eatWhile(/\#|}/); + state.incomment = false; + } + return "comment"; + //Open tag + } else if (ch = stream.eat(/\{|%/)) { + //Cache close tag + state.intag = ch; + if(ch == "{") { + state.intag = "}"; + } + stream.eat("-"); + return "tag"; + } + } + stream.next(); + }; + + return { + startState: function () { + return {tokenize: tokenBase}; + }, + token: function (stream, state) { + return state.tokenize(stream, state); + } + }; + }); +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/jsx/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/jsx/index.html new file mode 100644 index 0000000..1054bbc --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/jsx/index.html @@ -0,0 +1,89 @@ +<!doctype html> + +<title>CodeMirror: JSX mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../javascript/javascript.js"></script> +<script src="../xml/xml.js"></script> +<script src="jsx.js"></script> +<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">JSX</a> + </ul> +</div> + +<article> +<h2>JSX mode</h2> + +<div><textarea id="code" name="code">// Code snippets from http://facebook.github.io/react/docs/jsx-in-depth.html + +// Rendering HTML tags +var myDivElement = <div className="foo" />; +ReactDOM.render(myDivElement, document.getElementById('example')); + +// Rendering React components +var MyComponent = React.createClass({/*...*/}); +var myElement = <MyComponent someProperty={true} />; +ReactDOM.render(myElement, document.getElementById('example')); + +// Namespaced components +var Form = MyFormComponent; + +var App = ( + <Form> + <Form.Row> + <Form.Label /> + <Form.Input /> + </Form.Row> + </Form> +); + +// Attribute JavaScript expressions +var person = <Person name={window.isLoggedIn ? window.name : ''} />; + +// Boolean attributes +<input type="button" disabled />; +<input type="button" disabled={true} />; + +// Child JavaScript expressions +var content = <Container>{window.isLoggedIn ? <Nav /> : <Login />}</Container>; + +// Comments +var content = ( + <Nav> + {/* child comment, put {} around */} + <Person + /* multi + line + comment */ + name={window.isLoggedIn ? window.name : ''} // end of line comment + /> + </Nav> +); +</textarea></div> + +<script> +var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + lineNumbers: true, + mode: "jsx" +}) +</script> + +<p>JSX Mode for <a href="http://facebook.github.io/react">React</a>'s +JavaScript syntax extension.</p> + +<p><strong>MIME types defined:</strong> <code>text/jsx</code>, <code>text/typescript-jsx</code>.</p> + +</article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/jsx/jsx.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/jsx/jsx.js new file mode 100644 index 0000000..45c3024 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/jsx/jsx.js @@ -0,0 +1,148 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror"), require("../xml/xml"), require("../javascript/javascript")) + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror", "../xml/xml", "../javascript/javascript"], mod) + else // Plain browser env + mod(CodeMirror) +})(function(CodeMirror) { + "use strict" + + // Depth means the amount of open braces in JS context, in XML + // context 0 means not in tag, 1 means in tag, and 2 means in tag + // and js block comment. + function Context(state, mode, depth, prev) { + this.state = state; this.mode = mode; this.depth = depth; this.prev = prev + } + + function copyContext(context) { + return new Context(CodeMirror.copyState(context.mode, context.state), + context.mode, + context.depth, + context.prev && copyContext(context.prev)) + } + + CodeMirror.defineMode("jsx", function(config, modeConfig) { + var xmlMode = CodeMirror.getMode(config, {name: "xml", allowMissing: true, multilineTagIndentPastTag: false}) + var jsMode = CodeMirror.getMode(config, modeConfig && modeConfig.base || "javascript") + + function flatXMLIndent(state) { + var tagName = state.tagName + state.tagName = null + var result = xmlMode.indent(state, "") + state.tagName = tagName + return result + } + + function token(stream, state) { + if (state.context.mode == xmlMode) + return xmlToken(stream, state, state.context) + else + return jsToken(stream, state, state.context) + } + + function xmlToken(stream, state, cx) { + if (cx.depth == 2) { // Inside a JS /* */ comment + if (stream.match(/^.*?\*\//)) cx.depth = 1 + else stream.skipToEnd() + return "comment" + } + + if (stream.peek() == "{") { + xmlMode.skipAttribute(cx.state) + + var indent = flatXMLIndent(cx.state), xmlContext = cx.state.context + // If JS starts on same line as tag + if (xmlContext && stream.match(/^[^>]*>\s*$/, false)) { + while (xmlContext.prev && !xmlContext.startOfLine) + xmlContext = xmlContext.prev + // If tag starts the line, use XML indentation level + if (xmlContext.startOfLine) indent -= config.indentUnit + // Else use JS indentation level + else if (cx.prev.state.lexical) indent = cx.prev.state.lexical.indented + // Else if inside of tag + } else if (cx.depth == 1) { + indent += config.indentUnit + } + + state.context = new Context(CodeMirror.startState(jsMode, indent), + jsMode, 0, state.context) + return null + } + + if (cx.depth == 1) { // Inside of tag + if (stream.peek() == "<") { // Tag inside of tag + xmlMode.skipAttribute(cx.state) + state.context = new Context(CodeMirror.startState(xmlMode, flatXMLIndent(cx.state)), + xmlMode, 0, state.context) + return null + } else if (stream.match("//")) { + stream.skipToEnd() + return "comment" + } else if (stream.match("/*")) { + cx.depth = 2 + return token(stream, state) + } + } + + var style = xmlMode.token(stream, cx.state), cur = stream.current(), stop + if (/\btag\b/.test(style)) { + if (/>$/.test(cur)) { + if (cx.state.context) cx.depth = 0 + else state.context = state.context.prev + } else if (/^</.test(cur)) { + cx.depth = 1 + } + } else if (!style && (stop = cur.indexOf("{")) > -1) { + stream.backUp(cur.length - stop) + } + return style + } + + function jsToken(stream, state, cx) { + if (stream.peek() == "<" && jsMode.expressionAllowed(stream, cx.state)) { + jsMode.skipExpression(cx.state) + state.context = new Context(CodeMirror.startState(xmlMode, jsMode.indent(cx.state, "")), + xmlMode, 0, state.context) + return null + } + + var style = jsMode.token(stream, cx.state) + if (!style && cx.depth != null) { + var cur = stream.current() + if (cur == "{") { + cx.depth++ + } else if (cur == "}") { + if (--cx.depth == 0) state.context = state.context.prev + } + } + return style + } + + return { + startState: function() { + return {context: new Context(CodeMirror.startState(jsMode), jsMode)} + }, + + copyState: function(state) { + return {context: copyContext(state.context)} + }, + + token: token, + + indent: function(state, textAfter, fullLine) { + return state.context.mode.indent(state.context.state, textAfter, fullLine) + }, + + innerMode: function(state) { + return state.context + } + } + }, "xml", "javascript") + + CodeMirror.defineMIME("text/jsx", "jsx") + CodeMirror.defineMIME("text/typescript-jsx", {name: "jsx", base: {name: "javascript", typescript: true}}) +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/jsx/test.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/jsx/test.js new file mode 100644 index 0000000..c54a8b2 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/jsx/test.js @@ -0,0 +1,69 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function() { + var mode = CodeMirror.getMode({indentUnit: 2}, "jsx") + function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)) } + + MT("selfclose", + "[keyword var] [def x] [operator =] [bracket&tag <] [tag foo] [bracket&tag />] [operator +] [number 1];") + + MT("openclose", + "([bracket&tag <][tag foo][bracket&tag >]hello [atom &][bracket&tag </][tag foo][bracket&tag >][operator ++])") + + MT("attr", + "([bracket&tag <][tag foo] [attribute abc]=[string 'value'][bracket&tag >]hello [atom &][bracket&tag </][tag foo][bracket&tag >][operator ++])") + + MT("braced_attr", + "([bracket&tag <][tag foo] [attribute abc]={[number 10]}[bracket&tag >]hello [atom &][bracket&tag </][tag foo][bracket&tag >][operator ++])") + + MT("braced_text", + "([bracket&tag <][tag foo][bracket&tag >]hello {[number 10]} [atom &][bracket&tag </][tag foo][bracket&tag >][operator ++])") + + MT("nested_tag", + "([bracket&tag <][tag foo][bracket&tag ><][tag bar][bracket&tag ></][tag bar][bracket&tag ></][tag foo][bracket&tag >][operator ++])") + + MT("nested_jsx", + "[keyword return] (", + " [bracket&tag <][tag foo][bracket&tag >]", + " say {[number 1] [operator +] [bracket&tag <][tag bar] [attribute attr]={[number 10]}[bracket&tag />]}!", + " [bracket&tag </][tag foo][bracket&tag >][operator ++]", + ")") + + MT("preserve_js_context", + "[variable x] [operator =] [string-2 `quasi${][bracket&tag <][tag foo][bracket&tag />][string-2 }quoted`]") + + MT("line_comment", + "([bracket&tag <][tag foo] [comment // hello]", + " [bracket&tag ></][tag foo][bracket&tag >][operator ++])") + + MT("line_comment_not_in_tag", + "([bracket&tag <][tag foo][bracket&tag >] // hello", + " [bracket&tag </][tag foo][bracket&tag >][operator ++])") + + MT("block_comment", + "([bracket&tag <][tag foo] [comment /* hello]", + "[comment line 2]", + "[comment line 3 */] [bracket&tag ></][tag foo][bracket&tag >][operator ++])") + + MT("block_comment_not_in_tag", + "([bracket&tag <][tag foo][bracket&tag >]/* hello", + " line 2", + " line 3 */ [bracket&tag </][tag foo][bracket&tag >][operator ++])") + + MT("missing_attr", + "([bracket&tag <][tag foo] [attribute selected][bracket&tag />][operator ++])") + + MT("indent_js", + "([bracket&tag <][tag foo][bracket&tag >]", + " [bracket&tag <][tag bar] [attribute baz]={[keyword function]() {", + " [keyword return] [number 10]", + " }}[bracket&tag />]", + " [bracket&tag </][tag foo][bracket&tag >])") + + MT("spread", + "([bracket&tag <][tag foo] [attribute bar]={[meta ...][variable baz] [operator /][number 2]}[bracket&tag />])") + + MT("tag_attribute", + "([bracket&tag <][tag foo] [attribute bar]=[bracket&tag <][tag foo][bracket&tag />/>][operator ++])") +})() diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/julia/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/julia/index.html new file mode 100644 index 0000000..e1492c2 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/julia/index.html @@ -0,0 +1,195 @@ +<!doctype html> + +<title>CodeMirror: Julia mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="julia.js"></script> +<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Julia</a> + </ul> +</div> + +<article> +<h2>Julia mode</h2> + + <div><textarea id="code" name="code"> +#numbers +1234 +1234im +.234 +.234im +2.23im +2.3f3 +23e2 +0x234 + +#strings +'a' +"asdf" +r"regex" +b"bytestring" + +""" +multiline string +""" + +#identifiers +a +as123 +function_name! + +#unicode identifiers +# a = x\ddot +a⃗ = ẍ +# a = v\dot +a⃗ = v̇ +#F\vec = m \cdotp a\vec +F⃗ = m·a⃗ + +#literal identifier multiples +3x +4[1, 2, 3] + +#dicts and indexing +x=[1, 2, 3] +x[end-1] +x={"julia"=>"language of technical computing"} + + +#exception handling +try + f() +catch + @printf "Error" +finally + g() +end + +#types +immutable Color{T<:Number} + r::T + g::T + b::T +end + +#functions +function change!(x::Vector{Float64}) + for i = 1:length(x) + x[i] *= 2 + end +end + +#function invocation +f('b', (2, 3)...) + +#operators +|= +&= +^= +\- +%= +*= ++= +-= +<= +>= +!= +== +% +* ++ +- +< +> +! += +| +& +^ +\ +? +~ +: +$ +<: +.< +.> +<< +<<= +>> +>>>> +>>= +>>>= +<<= +<<<= +.<= +.>= +.== +-> +// +in +... +// +:= +.//= +.*= +./= +.^= +.%= +.+= +.-= +\= +\\= +|| +=== +&& +|= +.|= +<: +>: +|> +<| +:: +x ? y : z + +#macros +@spawnat 2 1+1 +@eval(:x) + +#keywords and operators +if else elseif while for + begin let end do +try catch finally return break continue +global local const +export import importall using +function macro module baremodule +type immutable quote +true false enumerate + + + </textarea></div> + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + mode: {name: "julia", + }, + lineNumbers: true, + indentUnit: 4, + matchBrackets: true + }); + </script> + + <p><strong>MIME types defined:</strong> <code>text/x-julia</code>.</p> +</article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/julia/julia.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/julia/julia.js new file mode 100644 index 0000000..004de44 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/julia/julia.js @@ -0,0 +1,392 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("julia", function(_conf, parserConf) { + var ERRORCLASS = 'error'; + + function wordRegexp(words, end) { + if (typeof end === 'undefined') { end = "\\b"; } + return new RegExp("^((" + words.join(")|(") + "))" + end); + } + + var octChar = "\\\\[0-7]{1,3}"; + var hexChar = "\\\\x[A-Fa-f0-9]{1,2}"; + var specialChar = "\\\\[abfnrtv0%?'\"\\\\]"; + var singleChar = "([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])"; + var operators = parserConf.operators || /^\.?[|&^\\%*+\-<>!=\/]=?|\?|~|:|\$|\.[<>]|<<=?|>>>?=?|\.[<>=]=|->?|\/\/|\bin\b(?!\()|[\u2208\u2209](?!\()/; + var delimiters = parserConf.delimiters || /^[;,()[\]{}]/; + var identifiers = parserConf.identifiers || /^[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/; + var charsList = [octChar, hexChar, specialChar, singleChar]; + var blockOpeners = ["begin", "function", "type", "immutable", "let", "macro", "for", "while", "quote", "if", "else", "elseif", "try", "finally", "catch", "do"]; + var blockClosers = ["end", "else", "elseif", "catch", "finally"]; + var keywordList = ['if', 'else', 'elseif', 'while', 'for', 'begin', 'let', 'end', 'do', 'try', 'catch', 'finally', 'return', 'break', 'continue', 'global', 'local', 'const', 'export', 'import', 'importall', 'using', 'function', 'macro', 'module', 'baremodule', 'type', 'immutable', 'quote', 'typealias', 'abstract', 'bitstype']; + var builtinList = ['true', 'false', 'nothing', 'NaN', 'Inf']; + + //var stringPrefixes = new RegExp("^[br]?('|\")") + var stringPrefixes = /^(`|"{3}|([brv]?"))/; + var chars = wordRegexp(charsList, "'"); + var keywords = wordRegexp(keywordList); + var builtins = wordRegexp(builtinList); + var openers = wordRegexp(blockOpeners); + var closers = wordRegexp(blockClosers); + var macro = /^@[_A-Za-z][\w]*/; + var symbol = /^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/; + var typeAnnotation = /^::[^,;"{()=$\s]+({[^}]*}+)*/; + + function inArray(state) { + var ch = currentScope(state); + if (ch == '[') { + return true; + } + return false; + } + + function currentScope(state) { + if (state.scopes.length == 0) { + return null; + } + return state.scopes[state.scopes.length - 1]; + } + + // tokenizers + function tokenBase(stream, state) { + // Handle multiline comments + if (stream.match(/^#=/, false)) { + state.tokenize = tokenComment; + return state.tokenize(stream, state); + } + + // Handle scope changes + var leavingExpr = state.leavingExpr; + if (stream.sol()) { + leavingExpr = false; + } + state.leavingExpr = false; + if (leavingExpr) { + if (stream.match(/^'+/)) { + return 'operator'; + } + } + + if (stream.match(/^\.{2,3}/)) { + return 'operator'; + } + + if (stream.eatSpace()) { + return null; + } + + var ch = stream.peek(); + + // Handle single line comments + if (ch === '#') { + stream.skipToEnd(); + return 'comment'; + } + + if (ch === '[') { + state.scopes.push('['); + } + + if (ch === '(') { + state.scopes.push('('); + } + + var scope = currentScope(state); + + if (scope == '[' && ch === ']') { + state.scopes.pop(); + state.leavingExpr = true; + } + + if (scope == '(' && ch === ')') { + state.scopes.pop(); + state.leavingExpr = true; + } + + var match; + if (!inArray(state) && (match=stream.match(openers, false))) { + state.scopes.push(match); + } + + if (!inArray(state) && stream.match(closers, false)) { + state.scopes.pop(); + } + + if (inArray(state)) { + if (state.lastToken == 'end' && stream.match(/^:/)) { + return 'operator'; + } + if (stream.match(/^end/)) { + return 'number'; + } + } + + if (stream.match(/^=>/)) { + return 'operator'; + } + + // Handle Number Literals + if (stream.match(/^[0-9\.]/, false)) { + var imMatcher = RegExp(/^im\b/); + var numberLiteral = false; + // Floats + if (stream.match(/^\d*\.(?!\.)\d*([Eef][\+\-]?\d+)?/i)) { numberLiteral = true; } + if (stream.match(/^\d+\.(?!\.)\d*/)) { numberLiteral = true; } + if (stream.match(/^\.\d+/)) { numberLiteral = true; } + if (stream.match(/^0x\.[0-9a-f]+p[\+\-]?\d+/i)) { numberLiteral = true; } + // Integers + if (stream.match(/^0x[0-9a-f]+/i)) { numberLiteral = true; } // Hex + if (stream.match(/^0b[01]+/i)) { numberLiteral = true; } // Binary + if (stream.match(/^0o[0-7]+/i)) { numberLiteral = true; } // Octal + if (stream.match(/^[1-9]\d*(e[\+\-]?\d+)?/)) { numberLiteral = true; } // Decimal + // Zero by itself with no other piece of number. + if (stream.match(/^0(?![\dx])/i)) { numberLiteral = true; } + if (numberLiteral) { + // Integer literals may be "long" + stream.match(imMatcher); + state.leavingExpr = true; + return 'number'; + } + } + + if (stream.match(/^<:/)) { + return 'operator'; + } + + if (stream.match(typeAnnotation)) { + return 'builtin'; + } + + // Handle symbols + if (!leavingExpr && stream.match(symbol) || stream.match(/:\./)) { + return 'builtin'; + } + + // Handle parametric types + if (stream.match(/^{[^}]*}(?=\()/)) { + return 'builtin'; + } + + // Handle operators and Delimiters + if (stream.match(operators)) { + return 'operator'; + } + + // Handle Chars + if (stream.match(/^'/)) { + state.tokenize = tokenChar; + return state.tokenize(stream, state); + } + + // Handle Strings + if (stream.match(stringPrefixes)) { + state.tokenize = tokenStringFactory(stream.current()); + return state.tokenize(stream, state); + } + + if (stream.match(macro)) { + return 'meta'; + } + + if (stream.match(delimiters)) { + return null; + } + + if (stream.match(keywords)) { + return 'keyword'; + } + + if (stream.match(builtins)) { + return 'builtin'; + } + + var isDefinition = state.isDefinition || + state.lastToken == 'function' || + state.lastToken == 'macro' || + state.lastToken == 'type' || + state.lastToken == 'immutable'; + + if (stream.match(identifiers)) { + if (isDefinition) { + if (stream.peek() === '.') { + state.isDefinition = true; + return 'variable'; + } + state.isDefinition = false; + return 'def'; + } + if (stream.match(/^({[^}]*})*\(/, false)) { + return callOrDef(stream, state); + } + state.leavingExpr = true; + return 'variable'; + } + + // Handle non-detected items + stream.next(); + return ERRORCLASS; + } + + function callOrDef(stream, state) { + var match = stream.match(/^(\(\s*)/); + if (match) { + if (state.firstParenPos < 0) + state.firstParenPos = state.scopes.length; + state.scopes.push('('); + state.charsAdvanced += match[1].length; + } + if (currentScope(state) == '(' && stream.match(/^\)/)) { + state.scopes.pop(); + state.charsAdvanced += 1; + if (state.scopes.length <= state.firstParenPos) { + var isDefinition = stream.match(/^\s*?=(?!=)/, false); + stream.backUp(state.charsAdvanced); + state.firstParenPos = -1; + state.charsAdvanced = 0; + if (isDefinition) + return 'def'; + return 'builtin'; + } + } + // Unfortunately javascript does not support multiline strings, so we have + // to undo anything done upto here if a function call or definition splits + // over two or more lines. + if (stream.match(/^$/g, false)) { + stream.backUp(state.charsAdvanced); + while (state.scopes.length > state.firstParenPos) + state.scopes.pop(); + state.firstParenPos = -1; + state.charsAdvanced = 0; + return 'builtin'; + } + state.charsAdvanced += stream.match(/^([^()]*)/)[1].length; + return callOrDef(stream, state); + } + + function tokenComment(stream, state) { + if (stream.match(/^#=/)) { + state.weakScopes++; + } + if (!stream.match(/.*?(?=(#=|=#))/)) { + stream.skipToEnd(); + } + if (stream.match(/^=#/)) { + state.weakScopes--; + if (state.weakScopes == 0) + state.tokenize = tokenBase; + } + return 'comment'; + } + + function tokenChar(stream, state) { + var isChar = false, match; + if (stream.match(chars)) { + isChar = true; + } else if (match = stream.match(/\\u([a-f0-9]{1,4})(?=')/i)) { + var value = parseInt(match[1], 16); + if (value <= 55295 || value >= 57344) { // (U+0,U+D7FF), (U+E000,U+FFFF) + isChar = true; + stream.next(); + } + } else if (match = stream.match(/\\U([A-Fa-f0-9]{5,8})(?=')/)) { + var value = parseInt(match[1], 16); + if (value <= 1114111) { // U+10FFFF + isChar = true; + stream.next(); + } + } + if (isChar) { + state.leavingExpr = true; + state.tokenize = tokenBase; + return 'string'; + } + if (!stream.match(/^[^']+(?=')/)) { stream.skipToEnd(); } + if (stream.match(/^'/)) { state.tokenize = tokenBase; } + return ERRORCLASS; + } + + function tokenStringFactory(delimiter) { + while ('bruv'.indexOf(delimiter.charAt(0).toLowerCase()) >= 0) { + delimiter = delimiter.substr(1); + } + var OUTCLASS = 'string'; + + function tokenString(stream, state) { + while (!stream.eol()) { + stream.eatWhile(/[^"\\]/); + if (stream.eat('\\')) { + stream.next(); + } else if (stream.match(delimiter)) { + state.tokenize = tokenBase; + state.leavingExpr = true; + return OUTCLASS; + } else { + stream.eat(/["]/); + } + } + return OUTCLASS; + } + tokenString.isString = true; + return tokenString; + } + + var external = { + startState: function() { + return { + tokenize: tokenBase, + scopes: [], + weakScopes: 0, + lastToken: null, + leavingExpr: false, + isDefinition: false, + charsAdvanced: 0, + firstParenPos: -1 + }; + }, + + token: function(stream, state) { + var style = state.tokenize(stream, state); + var current = stream.current(); + + if (current && style) { + state.lastToken = current; + } + + // Handle '.' connected identifiers + if (current === '.') { + style = stream.match(identifiers, false) || stream.match(macro, false) || + stream.match(/\(/, false) ? 'operator' : ERRORCLASS; + } + return style; + }, + + indent: function(state, textAfter) { + var delta = 0; + if (textAfter == "]" || textAfter == ")" || textAfter == "end" || textAfter == "else" || textAfter == "elseif" || textAfter == "catch" || textAfter == "finally") { + delta = -1; + } + return (state.scopes.length + delta) * _conf.indentUnit; + }, + + electricInput: /(end|else(if)?|catch|finally)$/, + lineComment: "#", + fold: "indent" + }; + return external; +}); + + +CodeMirror.defineMIME("text/x-julia", "julia"); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/livescript/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/livescript/index.html new file mode 100644 index 0000000..f415479 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/livescript/index.html @@ -0,0 +1,459 @@ +<!doctype html> + +<title>CodeMirror: LiveScript mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<link rel="stylesheet" href="../../theme/solarized.css"> +<script src="../../lib/codemirror.js"></script> +<script src="livescript.js"></script> +<style>.CodeMirror {font-size: 80%;border-top: 1px solid silver; border-bottom: 1px solid silver;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">LiveScript</a> + </ul> +</div> + +<article> +<h2>LiveScript mode</h2> +<form><textarea id="code" name="code"> +# LiveScript mode for CodeMirror +# The following script, prelude.ls, is used to +# demonstrate LiveScript mode for CodeMirror. +# https://github.com/gkz/prelude-ls + +export objToFunc = objToFunc = (obj) -> + (key) -> obj[key] + +export each = (f, xs) --> + if typeof! xs is \Object + for , x of xs then f x + else + for x in xs then f x + xs + +export map = (f, xs) --> + f = objToFunc f if typeof! f isnt \Function + type = typeof! xs + if type is \Object + {[key, f x] for key, x of xs} + else + result = [f x for x in xs] + if type is \String then result * '' else result + +export filter = (f, xs) --> + f = objToFunc f if typeof! f isnt \Function + type = typeof! xs + if type is \Object + {[key, x] for key, x of xs when f x} + else + result = [x for x in xs when f x] + if type is \String then result * '' else result + +export reject = (f, xs) --> + f = objToFunc f if typeof! f isnt \Function + type = typeof! xs + if type is \Object + {[key, x] for key, x of xs when not f x} + else + result = [x for x in xs when not f x] + if type is \String then result * '' else result + +export partition = (f, xs) --> + f = objToFunc f if typeof! f isnt \Function + type = typeof! xs + if type is \Object + passed = {} + failed = {} + for key, x of xs + (if f x then passed else failed)[key] = x + else + passed = [] + failed = [] + for x in xs + (if f x then passed else failed)push x + if type is \String + passed *= '' + failed *= '' + [passed, failed] + +export find = (f, xs) --> + f = objToFunc f if typeof! f isnt \Function + if typeof! xs is \Object + for , x of xs when f x then return x + else + for x in xs when f x then return x + void + +export head = export first = (xs) -> + return void if not xs.length + xs.0 + +export tail = (xs) -> + return void if not xs.length + xs.slice 1 + +export last = (xs) -> + return void if not xs.length + xs[*-1] + +export initial = (xs) -> + return void if not xs.length + xs.slice 0 xs.length - 1 + +export empty = (xs) -> + if typeof! xs is \Object + for x of xs then return false + return yes + not xs.length + +export values = (obj) -> + [x for , x of obj] + +export keys = (obj) -> + [x for x of obj] + +export len = (xs) -> + xs = values xs if typeof! xs is \Object + xs.length + +export cons = (x, xs) --> + if typeof! xs is \String then x + xs else [x] ++ xs + +export append = (xs, ys) --> + if typeof! ys is \String then xs + ys else xs ++ ys + +export join = (sep, xs) --> + xs = values xs if typeof! xs is \Object + xs.join sep + +export reverse = (xs) -> + if typeof! xs is \String + then (xs / '')reverse! * '' + else xs.slice!reverse! + +export fold = export foldl = (f, memo, xs) --> + if typeof! xs is \Object + for , x of xs then memo = f memo, x + else + for x in xs then memo = f memo, x + memo + +export fold1 = export foldl1 = (f, xs) --> fold f, xs.0, xs.slice 1 + +export foldr = (f, memo, xs) --> fold f, memo, xs.slice!reverse! + +export foldr1 = (f, xs) --> + xs.=slice!reverse! + fold f, xs.0, xs.slice 1 + +export unfoldr = export unfold = (f, b) --> + if (f b)? + [that.0] ++ unfoldr f, that.1 + else + [] + +export andList = (xs) -> + for x in xs when not x + return false + true + +export orList = (xs) -> + for x in xs when x + return true + false + +export any = (f, xs) --> + f = objToFunc f if typeof! f isnt \Function + for x in xs when f x + return yes + no + +export all = (f, xs) --> + f = objToFunc f if typeof! f isnt \Function + for x in xs when not f x + return no + yes + +export unique = (xs) -> + result = [] + if typeof! xs is \Object + for , x of xs when x not in result then result.push x + else + for x in xs when x not in result then result.push x + if typeof! xs is \String then result * '' else result + +export sort = (xs) -> + xs.concat!sort (x, y) -> + | x > y => 1 + | x < y => -1 + | _ => 0 + +export sortBy = (f, xs) --> + return [] unless xs.length + xs.concat!sort f + +export compare = (f, x, y) --> + | (f x) > (f y) => 1 + | (f x) < (f y) => -1 + | otherwise => 0 + +export sum = (xs) -> + result = 0 + if typeof! xs is \Object + for , x of xs then result += x + else + for x in xs then result += x + result + +export product = (xs) -> + result = 1 + if typeof! xs is \Object + for , x of xs then result *= x + else + for x in xs then result *= x + result + +export mean = export average = (xs) -> (sum xs) / len xs + +export concat = (xss) -> fold append, [], xss + +export concatMap = (f, xs) --> fold ((memo, x) -> append memo, f x), [], xs + +export listToObj = (xs) -> + {[x.0, x.1] for x in xs} + +export maximum = (xs) -> fold1 (>?), xs + +export minimum = (xs) -> fold1 (<?), xs + +export scan = export scanl = (f, memo, xs) --> + last = memo + if typeof! xs is \Object + then [memo] ++ [last = f last, x for , x of xs] + else [memo] ++ [last = f last, x for x in xs] + +export scan1 = export scanl1 = (f, xs) --> scan f, xs.0, xs.slice 1 + +export scanr = (f, memo, xs) --> + xs.=slice!reverse! + scan f, memo, xs .reverse! + +export scanr1 = (f, xs) --> + xs.=slice!reverse! + scan f, xs.0, xs.slice 1 .reverse! + +export replicate = (n, x) --> + result = [] + i = 0 + while i < n, ++i then result.push x + result + +export take = (n, xs) --> + | n <= 0 + if typeof! xs is \String then '' else [] + | not xs.length => xs + | otherwise => xs.slice 0, n + +export drop = (n, xs) --> + | n <= 0 => xs + | not xs.length => xs + | otherwise => xs.slice n + +export splitAt = (n, xs) --> [(take n, xs), (drop n, xs)] + +export takeWhile = (p, xs) --> + return xs if not xs.length + p = objToFunc p if typeof! p isnt \Function + result = [] + for x in xs + break if not p x + result.push x + if typeof! xs is \String then result * '' else result + +export dropWhile = (p, xs) --> + return xs if not xs.length + p = objToFunc p if typeof! p isnt \Function + i = 0 + for x in xs + break if not p x + ++i + drop i, xs + +export span = (p, xs) --> [(takeWhile p, xs), (dropWhile p, xs)] + +export breakIt = (p, xs) --> span (not) << p, xs + +export zip = (xs, ys) --> + result = [] + for zs, i in [xs, ys] + for z, j in zs + result.push [] if i is 0 + result[j]?push z + result + +export zipWith = (f,xs, ys) --> + f = objToFunc f if typeof! f isnt \Function + if not xs.length or not ys.length + [] + else + [f.apply this, zs for zs in zip.call this, xs, ys] + +export zipAll = (...xss) -> + result = [] + for xs, i in xss + for x, j in xs + result.push [] if i is 0 + result[j]?push x + result + +export zipAllWith = (f, ...xss) -> + f = objToFunc f if typeof! f isnt \Function + if not xss.0.length or not xss.1.length + [] + else + [f.apply this, xs for xs in zipAll.apply this, xss] + +export compose = (...funcs) -> + -> + args = arguments + for f in funcs + args = [f.apply this, args] + args.0 + +export curry = (f) -> + curry$ f # using util method curry$ from livescript + +export id = (x) -> x + +export flip = (f, x, y) --> f y, x + +export fix = (f) -> + ( (g, x) -> -> f(g g) ...arguments ) do + (g, x) -> -> f(g g) ...arguments + +export lines = (str) -> + return [] if not str.length + str / \\n + +export unlines = (strs) -> strs * \\n + +export words = (str) -> + return [] if not str.length + str / /[ ]+/ + +export unwords = (strs) -> strs * ' ' + +export max = (>?) + +export min = (<?) + +export negate = (x) -> -x + +export abs = Math.abs + +export signum = (x) -> + | x < 0 => -1 + | x > 0 => 1 + | otherwise => 0 + +export quot = (x, y) --> ~~(x / y) + +export rem = (%) + +export div = (x, y) --> Math.floor x / y + +export mod = (%%) + +export recip = (1 /) + +export pi = Math.PI + +export tau = pi * 2 + +export exp = Math.exp + +export sqrt = Math.sqrt + +# changed from log as log is a +# common function for logging things +export ln = Math.log + +export pow = (^) + +export sin = Math.sin + +export tan = Math.tan + +export cos = Math.cos + +export asin = Math.asin + +export acos = Math.acos + +export atan = Math.atan + +export atan2 = (x, y) --> Math.atan2 x, y + +# sinh +# tanh +# cosh +# asinh +# atanh +# acosh + +export truncate = (x) -> ~~x + +export round = Math.round + +export ceiling = Math.ceil + +export floor = Math.floor + +export isItNaN = (x) -> x isnt x + +export even = (x) -> x % 2 == 0 + +export odd = (x) -> x % 2 != 0 + +export gcd = (x, y) --> + x = Math.abs x + y = Math.abs y + until y is 0 + z = x % y + x = y + y = z + x + +export lcm = (x, y) --> + Math.abs Math.floor (x / (gcd x, y) * y) + +# meta +export installPrelude = !(target) -> + unless target.prelude?isInstalled + target <<< out$ # using out$ generated by livescript + target <<< target.prelude.isInstalled = true + +export prelude = out$ +</textarea></form> + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + theme: "solarized light", + lineNumbers: true + }); + </script> + + <p><strong>MIME types defined:</strong> <code>text/x-livescript</code>.</p> + + <p>The LiveScript mode was written by Kenneth Bentley.</p> + + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/livescript/livescript.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/livescript/livescript.js new file mode 100644 index 0000000..1e363f8 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/livescript/livescript.js @@ -0,0 +1,280 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +/** + * Link to the project's GitHub page: + * https://github.com/duralog/CodeMirror + */ + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { + "use strict"; + + CodeMirror.defineMode('livescript', function(){ + var tokenBase = function(stream, state) { + var next_rule = state.next || "start"; + if (next_rule) { + state.next = state.next; + var nr = Rules[next_rule]; + if (nr.splice) { + for (var i$ = 0; i$ < nr.length; ++i$) { + var r = nr[i$]; + if (r.regex && stream.match(r.regex)) { + state.next = r.next || state.next; + return r.token; + } + } + stream.next(); + return 'error'; + } + if (stream.match(r = Rules[next_rule])) { + if (r.regex && stream.match(r.regex)) { + state.next = r.next; + return r.token; + } else { + stream.next(); + return 'error'; + } + } + } + stream.next(); + return 'error'; + }; + var external = { + startState: function(){ + return { + next: 'start', + lastToken: {style: null, indent: 0, content: ""} + }; + }, + token: function(stream, state){ + while (stream.pos == stream.start) + var style = tokenBase(stream, state); + state.lastToken = { + style: style, + indent: stream.indentation(), + content: stream.current() + }; + return style.replace(/\./g, ' '); + }, + indent: function(state){ + var indentation = state.lastToken.indent; + if (state.lastToken.content.match(indenter)) { + indentation += 2; + } + return indentation; + } + }; + return external; + }); + + var identifier = '(?![\\d\\s])[$\\w\\xAA-\\uFFDC](?:(?!\\s)[$\\w\\xAA-\\uFFDC]|-[A-Za-z])*'; + var indenter = RegExp('(?:[({[=:]|[-~]>|\\b(?:e(?:lse|xport)|d(?:o|efault)|t(?:ry|hen)|finally|import(?:\\s*all)?|const|var|let|new|catch(?:\\s*' + identifier + ')?))\\s*$'); + var keywordend = '(?![$\\w]|-[A-Za-z]|\\s*:(?![:=]))'; + var stringfill = { + token: 'string', + regex: '.+' + }; + var Rules = { + start: [ + { + token: 'comment.doc', + regex: '/\\*', + next: 'comment' + }, { + token: 'comment', + regex: '#.*' + }, { + token: 'keyword', + regex: '(?:t(?:h(?:is|row|en)|ry|ypeof!?)|c(?:on(?:tinue|st)|a(?:se|tch)|lass)|i(?:n(?:stanceof)?|mp(?:ort(?:\\s+all)?|lements)|[fs])|d(?:e(?:fault|lete|bugger)|o)|f(?:or(?:\\s+own)?|inally|unction)|s(?:uper|witch)|e(?:lse|x(?:tends|port)|val)|a(?:nd|rguments)|n(?:ew|ot)|un(?:less|til)|w(?:hile|ith)|o[fr]|return|break|let|var|loop)' + keywordend + }, { + token: 'constant.language', + regex: '(?:true|false|yes|no|on|off|null|void|undefined)' + keywordend + }, { + token: 'invalid.illegal', + regex: '(?:p(?:ackage|r(?:ivate|otected)|ublic)|i(?:mplements|nterface)|enum|static|yield)' + keywordend + }, { + token: 'language.support.class', + regex: '(?:R(?:e(?:gExp|ferenceError)|angeError)|S(?:tring|yntaxError)|E(?:rror|valError)|Array|Boolean|Date|Function|Number|Object|TypeError|URIError)' + keywordend + }, { + token: 'language.support.function', + regex: '(?:is(?:NaN|Finite)|parse(?:Int|Float)|Math|JSON|(?:en|de)codeURI(?:Component)?)' + keywordend + }, { + token: 'variable.language', + regex: '(?:t(?:hat|il|o)|f(?:rom|allthrough)|it|by|e)' + keywordend + }, { + token: 'identifier', + regex: identifier + '\\s*:(?![:=])' + }, { + token: 'variable', + regex: identifier + }, { + token: 'keyword.operator', + regex: '(?:\\.{3}|\\s+\\?)' + }, { + token: 'keyword.variable', + regex: '(?:@+|::|\\.\\.)', + next: 'key' + }, { + token: 'keyword.operator', + regex: '\\.\\s*', + next: 'key' + }, { + token: 'string', + regex: '\\\\\\S[^\\s,;)}\\]]*' + }, { + token: 'string.doc', + regex: '\'\'\'', + next: 'qdoc' + }, { + token: 'string.doc', + regex: '"""', + next: 'qqdoc' + }, { + token: 'string', + regex: '\'', + next: 'qstring' + }, { + token: 'string', + regex: '"', + next: 'qqstring' + }, { + token: 'string', + regex: '`', + next: 'js' + }, { + token: 'string', + regex: '<\\[', + next: 'words' + }, { + token: 'string.regex', + regex: '//', + next: 'heregex' + }, { + token: 'string.regex', + regex: '\\/(?:[^[\\/\\n\\\\]*(?:(?:\\\\.|\\[[^\\]\\n\\\\]*(?:\\\\.[^\\]\\n\\\\]*)*\\])[^[\\/\\n\\\\]*)*)\\/[gimy$]{0,4}', + next: 'key' + }, { + token: 'constant.numeric', + regex: '(?:0x[\\da-fA-F][\\da-fA-F_]*|(?:[2-9]|[12]\\d|3[0-6])r[\\da-zA-Z][\\da-zA-Z_]*|(?:\\d[\\d_]*(?:\\.\\d[\\d_]*)?|\\.\\d[\\d_]*)(?:e[+-]?\\d[\\d_]*)?[\\w$]*)' + }, { + token: 'lparen', + regex: '[({[]' + }, { + token: 'rparen', + regex: '[)}\\]]', + next: 'key' + }, { + token: 'keyword.operator', + regex: '\\S+' + }, { + token: 'text', + regex: '\\s+' + } + ], + heregex: [ + { + token: 'string.regex', + regex: '.*?//[gimy$?]{0,4}', + next: 'start' + }, { + token: 'string.regex', + regex: '\\s*#{' + }, { + token: 'comment.regex', + regex: '\\s+(?:#.*)?' + }, { + token: 'string.regex', + regex: '\\S+' + } + ], + key: [ + { + token: 'keyword.operator', + regex: '[.?@!]+' + }, { + token: 'identifier', + regex: identifier, + next: 'start' + }, { + token: 'text', + regex: '', + next: 'start' + } + ], + comment: [ + { + token: 'comment.doc', + regex: '.*?\\*/', + next: 'start' + }, { + token: 'comment.doc', + regex: '.+' + } + ], + qdoc: [ + { + token: 'string', + regex: ".*?'''", + next: 'key' + }, stringfill + ], + qqdoc: [ + { + token: 'string', + regex: '.*?"""', + next: 'key' + }, stringfill + ], + qstring: [ + { + token: 'string', + regex: '[^\\\\\']*(?:\\\\.[^\\\\\']*)*\'', + next: 'key' + }, stringfill + ], + qqstring: [ + { + token: 'string', + regex: '[^\\\\"]*(?:\\\\.[^\\\\"]*)*"', + next: 'key' + }, stringfill + ], + js: [ + { + token: 'string', + regex: '[^\\\\`]*(?:\\\\.[^\\\\`]*)*`', + next: 'key' + }, stringfill + ], + words: [ + { + token: 'string', + regex: '.*?\\]>', + next: 'key' + }, stringfill + ] + }; + for (var idx in Rules) { + var r = Rules[idx]; + if (r.splice) { + for (var i = 0, len = r.length; i < len; ++i) { + var rr = r[i]; + if (typeof rr.regex === 'string') { + Rules[idx][i].regex = new RegExp('^' + rr.regex); + } + } + } else if (typeof rr.regex === 'string') { + Rules[idx].regex = new RegExp('^' + r.regex); + } + } + + CodeMirror.defineMIME('text/x-livescript', 'livescript'); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/lua/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/lua/index.html new file mode 100644 index 0000000..fc98b94 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/lua/index.html @@ -0,0 +1,85 @@ +<!doctype html> + +<title>CodeMirror: Lua mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<link rel="stylesheet" href="../../theme/neat.css"> +<script src="../../addon/edit/matchbrackets.js"></script> +<script src="../../lib/codemirror.js"></script> +<script src="lua.js"></script> +<style>.CodeMirror {border: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Lua</a> + </ul> +</div> + +<article> +<h2>Lua mode</h2> +<form><textarea id="code" name="code"> +--[[ +example useless code to show lua syntax highlighting +this is multiline comment +]] + +function blahblahblah(x) + + local table = { + "asd" = 123, + "x" = 0.34, + } + if x ~= 3 then + print( x ) + elseif x == "string" + my_custom_function( 0x34 ) + else + unknown_function( "some string" ) + end + + --single line comment + +end + +function blablabla3() + + for k,v in ipairs( table ) do + --abcde.. + y=[=[ + x=[[ + x is a multi line string + ]] + but its definition is iside a highest level string! + ]=] + print(" \"\" ") + + s = math.sin( x ) + end + +end +</textarea></form> + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + matchBrackets: true, + theme: "neat" + }); + </script> + + <p>Loosely based on Franciszek + Wawrzak's <a href="http://codemirror.net/1/contrib/lua">CodeMirror + 1 mode</a>. One configuration parameter is + supported, <code>specials</code>, to which you can provide an + array of strings to have those identifiers highlighted with + the <code>lua-special</code> style.</p> + <p><strong>MIME types defined:</strong> <code>text/x-lua</code>.</p> + + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/lua/lua.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/lua/lua.js new file mode 100644 index 0000000..0b19abd --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/lua/lua.js @@ -0,0 +1,159 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +// LUA mode. Ported to CodeMirror 2 from Franciszek Wawrzak's +// CodeMirror 1 mode. +// highlights keywords, strings, comments (no leveling supported! ("[==[")), tokens, basic indenting + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("lua", function(config, parserConfig) { + var indentUnit = config.indentUnit; + + function prefixRE(words) { + return new RegExp("^(?:" + words.join("|") + ")", "i"); + } + function wordRE(words) { + return new RegExp("^(?:" + words.join("|") + ")$", "i"); + } + var specials = wordRE(parserConfig.specials || []); + + // long list of standard functions from lua manual + var builtins = wordRE([ + "_G","_VERSION","assert","collectgarbage","dofile","error","getfenv","getmetatable","ipairs","load", + "loadfile","loadstring","module","next","pairs","pcall","print","rawequal","rawget","rawset","require", + "select","setfenv","setmetatable","tonumber","tostring","type","unpack","xpcall", + + "coroutine.create","coroutine.resume","coroutine.running","coroutine.status","coroutine.wrap","coroutine.yield", + + "debug.debug","debug.getfenv","debug.gethook","debug.getinfo","debug.getlocal","debug.getmetatable", + "debug.getregistry","debug.getupvalue","debug.setfenv","debug.sethook","debug.setlocal","debug.setmetatable", + "debug.setupvalue","debug.traceback", + + "close","flush","lines","read","seek","setvbuf","write", + + "io.close","io.flush","io.input","io.lines","io.open","io.output","io.popen","io.read","io.stderr","io.stdin", + "io.stdout","io.tmpfile","io.type","io.write", + + "math.abs","math.acos","math.asin","math.atan","math.atan2","math.ceil","math.cos","math.cosh","math.deg", + "math.exp","math.floor","math.fmod","math.frexp","math.huge","math.ldexp","math.log","math.log10","math.max", + "math.min","math.modf","math.pi","math.pow","math.rad","math.random","math.randomseed","math.sin","math.sinh", + "math.sqrt","math.tan","math.tanh", + + "os.clock","os.date","os.difftime","os.execute","os.exit","os.getenv","os.remove","os.rename","os.setlocale", + "os.time","os.tmpname", + + "package.cpath","package.loaded","package.loaders","package.loadlib","package.path","package.preload", + "package.seeall", + + "string.byte","string.char","string.dump","string.find","string.format","string.gmatch","string.gsub", + "string.len","string.lower","string.match","string.rep","string.reverse","string.sub","string.upper", + + "table.concat","table.insert","table.maxn","table.remove","table.sort" + ]); + var keywords = wordRE(["and","break","elseif","false","nil","not","or","return", + "true","function", "end", "if", "then", "else", "do", + "while", "repeat", "until", "for", "in", "local" ]); + + var indentTokens = wordRE(["function", "if","repeat","do", "\\(", "{"]); + var dedentTokens = wordRE(["end", "until", "\\)", "}"]); + var dedentPartial = prefixRE(["end", "until", "\\)", "}", "else", "elseif"]); + + function readBracket(stream) { + var level = 0; + while (stream.eat("=")) ++level; + stream.eat("["); + return level; + } + + function normal(stream, state) { + var ch = stream.next(); + if (ch == "-" && stream.eat("-")) { + if (stream.eat("[") && stream.eat("[")) + return (state.cur = bracketed(readBracket(stream), "comment"))(stream, state); + stream.skipToEnd(); + return "comment"; + } + if (ch == "\"" || ch == "'") + return (state.cur = string(ch))(stream, state); + if (ch == "[" && /[\[=]/.test(stream.peek())) + return (state.cur = bracketed(readBracket(stream), "string"))(stream, state); + if (/\d/.test(ch)) { + stream.eatWhile(/[\w.%]/); + return "number"; + } + if (/[\w_]/.test(ch)) { + stream.eatWhile(/[\w\\\-_.]/); + return "variable"; + } + return null; + } + + function bracketed(level, style) { + return function(stream, state) { + var curlev = null, ch; + while ((ch = stream.next()) != null) { + if (curlev == null) {if (ch == "]") curlev = 0;} + else if (ch == "=") ++curlev; + else if (ch == "]" && curlev == level) { state.cur = normal; break; } + else curlev = null; + } + return style; + }; + } + + function string(quote) { + return function(stream, state) { + var escaped = false, ch; + while ((ch = stream.next()) != null) { + if (ch == quote && !escaped) break; + escaped = !escaped && ch == "\\"; + } + if (!escaped) state.cur = normal; + return "string"; + }; + } + + return { + startState: function(basecol) { + return {basecol: basecol || 0, indentDepth: 0, cur: normal}; + }, + + token: function(stream, state) { + if (stream.eatSpace()) return null; + var style = state.cur(stream, state); + var word = stream.current(); + if (style == "variable") { + if (keywords.test(word)) style = "keyword"; + else if (builtins.test(word)) style = "builtin"; + else if (specials.test(word)) style = "variable-2"; + } + if ((style != "comment") && (style != "string")){ + if (indentTokens.test(word)) ++state.indentDepth; + else if (dedentTokens.test(word)) --state.indentDepth; + } + return style; + }, + + indent: function(state, textAfter) { + var closing = dedentPartial.test(textAfter); + return state.basecol + indentUnit * (state.indentDepth - (closing ? 1 : 0)); + }, + + lineComment: "--", + blockCommentStart: "--[[", + blockCommentEnd: "]]" + }; +}); + +CodeMirror.defineMIME("text/x-lua", "lua"); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/markdown/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/markdown/index.html new file mode 100644 index 0000000..15660c2 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/markdown/index.html @@ -0,0 +1,361 @@ +<!doctype html> + +<title>CodeMirror: Markdown mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../../addon/edit/continuelist.js"></script> +<script src="../xml/xml.js"></script> +<script src="markdown.js"></script> +<style type="text/css"> + .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;} + .cm-s-default .cm-trailing-space-a:before, + .cm-s-default .cm-trailing-space-b:before {position: absolute; content: "\00B7"; color: #777;} + .cm-s-default .cm-trailing-space-new-line:before {position: absolute; content: "\21B5"; color: #777;} + </style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Markdown</a> + </ul> +</div> + +<article> +<h2>Markdown mode</h2> +<form><textarea id="code" name="code"> +Markdown: Basics +================ + +<ul id="ProjectSubmenu"> + <li><a href="/projects/markdown/" title="Markdown Project Page">Main</a></li> + <li><a class="selected" title="Markdown Basics">Basics</a></li> + <li><a href="/projects/markdown/syntax" title="Markdown Syntax Documentation">Syntax</a></li> + <li><a href="/projects/markdown/license" title="Pricing and License Information">License</a></li> + <li><a href="/projects/markdown/dingus" title="Online Markdown Web Form">Dingus</a></li> +</ul> + + +Getting the Gist of Markdown's Formatting Syntax +------------------------------------------------ + +This page offers a brief overview of what it's like to use Markdown. +The [syntax page] [s] provides complete, detailed documentation for +every feature, but Markdown should be very easy to pick up simply by +looking at a few examples of it in action. The examples on this page +are written in a before/after style, showing example syntax and the +HTML output produced by Markdown. + +It's also helpful to simply try Markdown out; the [Dingus] [d] is a +web application that allows you type your own Markdown-formatted text +and translate it to XHTML. + +**Note:** This document is itself written using Markdown; you +can [see the source for it by adding '.text' to the URL] [src]. + + [s]: /projects/markdown/syntax "Markdown Syntax" + [d]: /projects/markdown/dingus "Markdown Dingus" + [src]: /projects/markdown/basics.text + + +## Paragraphs, Headers, Blockquotes ## + +A paragraph is simply one or more consecutive lines of text, separated +by one or more blank lines. (A blank line is any line that looks like +a blank line -- a line containing nothing but spaces or tabs is +considered blank.) Normal paragraphs should not be indented with +spaces or tabs. + +Markdown offers two styles of headers: *Setext* and *atx*. +Setext-style headers for `<h1>` and `<h2>` are created by +"underlining" with equal signs (`=`) and hyphens (`-`), respectively. +To create an atx-style header, you put 1-6 hash marks (`#`) at the +beginning of the line -- the number of hashes equals the resulting +HTML header level. + +Blockquotes are indicated using email-style '`>`' angle brackets. + +Markdown: + + A First Level Header + ==================== + + A Second Level Header + --------------------- + + Now is the time for all good men to come to + the aid of their country. This is just a + regular paragraph. + + The quick brown fox jumped over the lazy + dog's back. + + ### Header 3 + + > This is a blockquote. + > + > This is the second paragraph in the blockquote. + > + > ## This is an H2 in a blockquote + + +Output: + + <h1>A First Level Header</h1> + + <h2>A Second Level Header</h2> + + <p>Now is the time for all good men to come to + the aid of their country. This is just a + regular paragraph.</p> + + <p>The quick brown fox jumped over the lazy + dog's back.</p> + + <h3>Header 3</h3> + + <blockquote> + <p>This is a blockquote.</p> + + <p>This is the second paragraph in the blockquote.</p> + + <h2>This is an H2 in a blockquote</h2> + </blockquote> + + + +### Phrase Emphasis ### + +Markdown uses asterisks and underscores to indicate spans of emphasis. + +Markdown: + + Some of these words *are emphasized*. + Some of these words _are emphasized also_. + + Use two asterisks for **strong emphasis**. + Or, if you prefer, __use two underscores instead__. + +Output: + + <p>Some of these words <em>are emphasized</em>. + Some of these words <em>are emphasized also</em>.</p> + + <p>Use two asterisks for <strong>strong emphasis</strong>. + Or, if you prefer, <strong>use two underscores instead</strong>.</p> + + + +## Lists ## + +Unordered (bulleted) lists use asterisks, pluses, and hyphens (`*`, +`+`, and `-`) as list markers. These three markers are +interchangable; this: + + * Candy. + * Gum. + * Booze. + +this: + + + Candy. + + Gum. + + Booze. + +and this: + + - Candy. + - Gum. + - Booze. + +all produce the same output: + + <ul> + <li>Candy.</li> + <li>Gum.</li> + <li>Booze.</li> + </ul> + +Ordered (numbered) lists use regular numbers, followed by periods, as +list markers: + + 1. Red + 2. Green + 3. Blue + +Output: + + <ol> + <li>Red</li> + <li>Green</li> + <li>Blue</li> + </ol> + +If you put blank lines between items, you'll get `<p>` tags for the +list item text. You can create multi-paragraph list items by indenting +the paragraphs by 4 spaces or 1 tab: + + * A list item. + + With multiple paragraphs. + + * Another item in the list. + +Output: + + <ul> + <li><p>A list item.</p> + <p>With multiple paragraphs.</p></li> + <li><p>Another item in the list.</p></li> + </ul> + + + +### Links ### + +Markdown supports two styles for creating links: *inline* and +*reference*. With both styles, you use square brackets to delimit the +text you want to turn into a link. + +Inline-style links use parentheses immediately after the link text. +For example: + + This is an [example link](http://example.com/). + +Output: + + <p>This is an <a href="http://example.com/"> + example link</a>.</p> + +Optionally, you may include a title attribute in the parentheses: + + This is an [example link](http://example.com/ "With a Title"). + +Output: + + <p>This is an <a href="http://example.com/" title="With a Title"> + example link</a>.</p> + +Reference-style links allow you to refer to your links by names, which +you define elsewhere in your document: + + I get 10 times more traffic from [Google][1] than from + [Yahoo][2] or [MSN][3]. + + [1]: http://google.com/ "Google" + [2]: http://search.yahoo.com/ "Yahoo Search" + [3]: http://search.msn.com/ "MSN Search" + +Output: + + <p>I get 10 times more traffic from <a href="http://google.com/" + title="Google">Google</a> than from <a href="http://search.yahoo.com/" + title="Yahoo Search">Yahoo</a> or <a href="http://search.msn.com/" + title="MSN Search">MSN</a>.</p> + +The title attribute is optional. Link names may contain letters, +numbers and spaces, but are *not* case sensitive: + + I start my morning with a cup of coffee and + [The New York Times][NY Times]. + + [ny times]: http://www.nytimes.com/ + +Output: + + <p>I start my morning with a cup of coffee and + <a href="http://www.nytimes.com/">The New York Times</a>.</p> + + +### Images ### + +Image syntax is very much like link syntax. + +Inline (titles are optional): + +  + +Reference-style: + + ![alt text][id] + + [id]: /path/to/img.jpg "Title" + +Both of the above examples produce the same output: + + <img src="/path/to/img.jpg" alt="alt text" title="Title" /> + + + +### Code ### + +In a regular paragraph, you can create code span by wrapping text in +backtick quotes. Any ampersands (`&`) and angle brackets (`<` or +`>`) will automatically be translated into HTML entities. This makes +it easy to use Markdown to write about HTML example code: + + I strongly recommend against using any `<blink>` tags. + + I wish SmartyPants used named entities like `&mdash;` + instead of decimal-encoded entites like `&#8212;`. + +Output: + + <p>I strongly recommend against using any + <code>&lt;blink&gt;</code> tags.</p> + + <p>I wish SmartyPants used named entities like + <code>&amp;mdash;</code> instead of decimal-encoded + entites like <code>&amp;#8212;</code>.</p> + + +To specify an entire block of pre-formatted code, indent every line of +the block by 4 spaces or 1 tab. Just like with code spans, `&`, `<`, +and `>` characters will be escaped automatically. + +Markdown: + + If you want your page to validate under XHTML 1.0 Strict, + you've got to put paragraph tags in your blockquotes: + + <blockquote> + <p>For example.</p> + </blockquote> + +Output: + + <p>If you want your page to validate under XHTML 1.0 Strict, + you've got to put paragraph tags in your blockquotes:</p> + + <pre><code>&lt;blockquote&gt; + &lt;p&gt;For example.&lt;/p&gt; + &lt;/blockquote&gt; + </code></pre> +</textarea></form> + + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + mode: 'markdown', + lineNumbers: true, + theme: "default", + extraKeys: {"Enter": "newlineAndIndentContinueMarkdownList"} + }); + </script> + + <p>You might want to use the <a href="../gfm/index.html">Github-Flavored Markdown mode</a> instead, which adds support for fenced code blocks and a few other things.</p> + + <p>Optionally depends on the XML mode for properly highlighted inline XML blocks.</p> + + <p><strong>MIME types defined:</strong> <code>text/x-markdown</code>.</p> + + <p><strong>Parsing/Highlighting Tests:</strong> <a href="../../test/index.html#markdown_*">normal</a>, <a href="../../test/index.html#verbose,markdown_*">verbose</a>.</p> + + </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/markdown/markdown.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/markdown/markdown.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/markdown/markdown.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/markdown/markdown.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/markdown/test.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/markdown/test.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/markdown/test.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/markdown/test.js diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mathematica/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mathematica/index.html new file mode 100644 index 0000000..57c4298 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mathematica/index.html @@ -0,0 +1,72 @@ +<!doctype html> + +<title>CodeMirror: Mathematica mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel=stylesheet href=../../lib/codemirror.css> +<script src=../../lib/codemirror.js></script> +<script src=../../addon/edit/matchbrackets.js></script> +<script src=mathematica.js></script> +<style type=text/css> + .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;} +</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Mathematica</a> + </ul> +</div> + +<article> +<h2>Mathematica mode</h2> + + +<textarea id="mathematicaCode"> +(* example Mathematica code *) +(* Dualisiert wird anhand einer Polarität an einer + Quadrik $x^t Q x = 0$ mit regulärer Matrix $Q$ (also + mit $det(Q) \neq 0$), z.B. die Identitätsmatrix. + $p$ ist eine Liste von Polynomen - ein Ideal. *) +dualize::"singular" = "Q must be regular: found Det[Q]==0."; +dualize[ Q_, p_ ] := Block[ + { m, n, xv, lv, uv, vars, polys, dual }, + If[Det[Q] == 0, + Message[dualize::"singular"], + m = Length[p]; + n = Length[Q] - 1; + xv = Table[Subscript[x, i], {i, 0, n}]; + lv = Table[Subscript[l, i], {i, 1, m}]; + uv = Table[Subscript[u, i], {i, 0, n}]; + (* Konstruiere Ideal polys. *) + If[m == 0, + polys = Q.uv, + polys = Join[p, Q.uv - Transpose[Outer[D, p, xv]].lv] + ]; + (* Eliminiere die ersten n + 1 + m Variablen xv und lv + aus dem Ideal polys. *) + vars = Join[xv, lv]; + dual = GroebnerBasis[polys, uv, vars]; + (* Ersetze u mit x im Ergebnis. *) + ReplaceAll[dual, Rule[u, x]] + ] + ] +</textarea> + +<script> + var mathematicaEditor = CodeMirror.fromTextArea(document.getElementById('mathematicaCode'), { + mode: 'text/x-mathematica', + lineNumbers: true, + matchBrackets: true + }); +</script> + +<p><strong>MIME types defined:</strong> <code>text/x-mathematica</code> (Mathematica).</p> +</article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mathematica/mathematica.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mathematica/mathematica.js new file mode 100644 index 0000000..d697708 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mathematica/mathematica.js @@ -0,0 +1,176 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +// Mathematica mode copyright (c) 2015 by Calin Barbat +// Based on code by Patrick Scheibe (halirutan) +// See: https://github.com/halirutan/Mathematica-Source-Highlighting/tree/master/src/lang-mma.js + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode('mathematica', function(_config, _parserConfig) { + + // used pattern building blocks + var Identifier = '[a-zA-Z\\$][a-zA-Z0-9\\$]*'; + var pBase = "(?:\\d+)"; + var pFloat = "(?:\\.\\d+|\\d+\\.\\d*|\\d+)"; + var pFloatBase = "(?:\\.\\w+|\\w+\\.\\w*|\\w+)"; + var pPrecision = "(?:`(?:`?"+pFloat+")?)"; + + // regular expressions + var reBaseForm = new RegExp('(?:'+pBase+'(?:\\^\\^'+pFloatBase+pPrecision+'?(?:\\*\\^[+-]?\\d+)?))'); + var reFloatForm = new RegExp('(?:' + pFloat + pPrecision + '?(?:\\*\\^[+-]?\\d+)?)'); + var reIdInContext = new RegExp('(?:`?)(?:' + Identifier + ')(?:`(?:' + Identifier + '))*(?:`?)'); + + function tokenBase(stream, state) { + var ch; + + // get next character + ch = stream.next(); + + // string + if (ch === '"') { + state.tokenize = tokenString; + return state.tokenize(stream, state); + } + + // comment + if (ch === '(') { + if (stream.eat('*')) { + state.commentLevel++; + state.tokenize = tokenComment; + return state.tokenize(stream, state); + } + } + + // go back one character + stream.backUp(1); + + // look for numbers + // Numbers in a baseform + if (stream.match(reBaseForm, true, false)) { + return 'number'; + } + + // Mathematica numbers. Floats (1.2, .2, 1.) can have optionally a precision (`float) or an accuracy definition + // (``float). Note: while 1.2` is possible 1.2`` is not. At the end an exponent (float*^+12) can follow. + if (stream.match(reFloatForm, true, false)) { + return 'number'; + } + + /* In[23] and Out[34] */ + if (stream.match(/(?:In|Out)\[[0-9]*\]/, true, false)) { + return 'atom'; + } + + // usage + if (stream.match(/([a-zA-Z\$]+(?:`?[a-zA-Z0-9\$])*::usage)/, true, false)) { + return 'meta'; + } + + // message + if (stream.match(/([a-zA-Z\$]+(?:`?[a-zA-Z0-9\$])*::[a-zA-Z\$][a-zA-Z0-9\$]*):?/, true, false)) { + return 'string-2'; + } + + // this makes a look-ahead match for something like variable:{_Integer} + // the match is then forwarded to the mma-patterns tokenizer. + if (stream.match(/([a-zA-Z\$][a-zA-Z0-9\$]*\s*:)(?:(?:[a-zA-Z\$][a-zA-Z0-9\$]*)|(?:[^:=>~@\^\&\*\)\[\]'\?,\|])).*/, true, false)) { + return 'variable-2'; + } + + // catch variables which are used together with Blank (_), BlankSequence (__) or BlankNullSequence (___) + // Cannot start with a number, but can have numbers at any other position. Examples + // blub__Integer, a1_, b34_Integer32 + if (stream.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+[a-zA-Z\$][a-zA-Z0-9\$]*/, true, false)) { + return 'variable-2'; + } + if (stream.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+/, true, false)) { + return 'variable-2'; + } + if (stream.match(/_+[a-zA-Z\$][a-zA-Z0-9\$]*/, true, false)) { + return 'variable-2'; + } + + // Named characters in Mathematica, like \[Gamma]. + if (stream.match(/\\\[[a-zA-Z\$][a-zA-Z0-9\$]*\]/, true, false)) { + return 'variable-3'; + } + + // Match all braces separately + if (stream.match(/(?:\[|\]|{|}|\(|\))/, true, false)) { + return 'bracket'; + } + + // Catch Slots (#, ##, #3, ##9 and the V10 named slots #name). I have never seen someone using more than one digit after #, so we match + // only one. + if (stream.match(/(?:#[a-zA-Z\$][a-zA-Z0-9\$]*|#+[0-9]?)/, true, false)) { + return 'variable-2'; + } + + // Literals like variables, keywords, functions + if (stream.match(reIdInContext, true, false)) { + return 'keyword'; + } + + // operators. Note that operators like @@ or /; are matched separately for each symbol. + if (stream.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%)/, true, false)) { + return 'operator'; + } + + // everything else is an error + stream.next(); // advance the stream. + return 'error'; + } + + function tokenString(stream, state) { + var next, end = false, escaped = false; + while ((next = stream.next()) != null) { + if (next === '"' && !escaped) { + end = true; + break; + } + escaped = !escaped && next === '\\'; + } + if (end && !escaped) { + state.tokenize = tokenBase; + } + return 'string'; + }; + + function tokenComment(stream, state) { + var prev, next; + while(state.commentLevel > 0 && (next = stream.next()) != null) { + if (prev === '(' && next === '*') state.commentLevel++; + if (prev === '*' && next === ')') state.commentLevel--; + prev = next; + } + if (state.commentLevel <= 0) { + state.tokenize = tokenBase; + } + return 'comment'; + } + + return { + startState: function() {return {tokenize: tokenBase, commentLevel: 0};}, + token: function(stream, state) { + if (stream.eatSpace()) return null; + return state.tokenize(stream, state); + }, + blockCommentStart: "(*", + blockCommentEnd: "*)" + }; +}); + +CodeMirror.defineMIME('text/x-mathematica', { + name: 'mathematica' +}); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mbox/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mbox/index.html new file mode 100644 index 0000000..248ea98 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mbox/index.html @@ -0,0 +1,44 @@ +<!doctype html> + +<title>CodeMirror: mbox mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="mbox.js"></script> +<style>.CodeMirror { border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">mbox</a> + </ul> +</div> + +<article> +<h2>mbox mode</h2> +<form><textarea id="code" name="code"> +From timothygu99@gmail.com Sun Apr 17 01:40:43 2016 +From: Timothy Gu <timothygu99@gmail.com> +Date: Sat, 16 Apr 2016 18:40:43 -0700 +Subject: mbox mode +Message-ID: <Z8d+bTT50U/az94FZnyPkDjZmW0=@gmail.com> + +mbox mode is working! + +Timothy +</textarea></form> + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), {}); + </script> + + <p><strong>MIME types defined:</strong> <code>application/mbox</code>.</p> + + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mbox/mbox.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mbox/mbox.js new file mode 100644 index 0000000..ba2416a --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mbox/mbox.js @@ -0,0 +1,129 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +var rfc2822 = [ + "From", "Sender", "Reply-To", "To", "Cc", "Bcc", "Message-ID", + "In-Reply-To", "References", "Resent-From", "Resent-Sender", "Resent-To", + "Resent-Cc", "Resent-Bcc", "Resent-Message-ID", "Return-Path", "Received" +]; +var rfc2822NoEmail = [ + "Date", "Subject", "Comments", "Keywords", "Resent-Date" +]; + +CodeMirror.registerHelper("hintWords", "mbox", rfc2822.concat(rfc2822NoEmail)); + +var whitespace = /^[ \t]/; +var separator = /^From /; // See RFC 4155 +var rfc2822Header = new RegExp("^(" + rfc2822.join("|") + "): "); +var rfc2822HeaderNoEmail = new RegExp("^(" + rfc2822NoEmail.join("|") + "): "); +var header = /^[^:]+:/; // Optional fields defined in RFC 2822 +var email = /^[^ ]+@[^ ]+/; +var untilEmail = /^.*?(?=[^ ]+?@[^ ]+)/; +var bracketedEmail = /^<.*?>/; +var untilBracketedEmail = /^.*?(?=<.*>)/; + +function styleForHeader(header) { + if (header === "Subject") return "header"; + return "string"; +} + +function readToken(stream, state) { + if (stream.sol()) { + // From last line + state.inSeparator = false; + if (state.inHeader && stream.match(whitespace)) { + // Header folding + return null; + } else { + state.inHeader = false; + state.header = null; + } + + if (stream.match(separator)) { + state.inHeaders = true; + state.inSeparator = true; + return "atom"; + } + + var match; + var emailPermitted = false; + if ((match = stream.match(rfc2822HeaderNoEmail)) || + (emailPermitted = true) && (match = stream.match(rfc2822Header))) { + state.inHeaders = true; + state.inHeader = true; + state.emailPermitted = emailPermitted; + state.header = match[1]; + return "atom"; + } + + // Use vim's heuristics: recognize custom headers only if the line is in a + // block of legitimate headers. + if (state.inHeaders && (match = stream.match(header))) { + state.inHeader = true; + state.emailPermitted = true; + state.header = match[1]; + return "atom"; + } + + state.inHeaders = false; + stream.skipToEnd(); + return null; + } + + if (state.inSeparator) { + if (stream.match(email)) return "link"; + if (stream.match(untilEmail)) return "atom"; + stream.skipToEnd(); + return "atom"; + } + + if (state.inHeader) { + var style = styleForHeader(state.header); + + if (state.emailPermitted) { + if (stream.match(bracketedEmail)) return style + " link"; + if (stream.match(untilBracketedEmail)) return style; + } + stream.skipToEnd(); + return style; + } + + stream.skipToEnd(); + return null; +}; + +CodeMirror.defineMode("mbox", function() { + return { + startState: function() { + return { + // Is in a mbox separator + inSeparator: false, + // Is in a mail header + inHeader: false, + // If bracketed email is permitted. Only applicable when inHeader + emailPermitted: false, + // Name of current header + header: null, + // Is in a region of mail headers + inHeaders: false + }; + }, + token: readToken, + blankLine: function(state) { + state.inHeaders = state.inSeparator = state.inHeader = false; + } + }; +}); + +CodeMirror.defineMIME("application/mbox", "mbox"); +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/meta.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/meta.js new file mode 100644 index 0000000..1e078ee --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/meta.js @@ -0,0 +1,208 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { + "use strict"; + + CodeMirror.modeInfo = [ + {name: "APL", mime: "text/apl", mode: "apl", ext: ["dyalog", "apl"]}, + {name: "PGP", mimes: ["application/pgp", "application/pgp-keys", "application/pgp-signature"], mode: "asciiarmor", ext: ["pgp"]}, + {name: "ASN.1", mime: "text/x-ttcn-asn", mode: "asn.1", ext: ["asn", "asn1"]}, + {name: "Asterisk", mime: "text/x-asterisk", mode: "asterisk", file: /^extensions\.conf$/i}, + {name: "Brainfuck", mime: "text/x-brainfuck", mode: "brainfuck", ext: ["b", "bf"]}, + {name: "C", mime: "text/x-csrc", mode: "clike", ext: ["c", "h"]}, + {name: "C++", mime: "text/x-c++src", mode: "clike", ext: ["cpp", "c++", "cc", "cxx", "hpp", "h++", "hh", "hxx"], alias: ["cpp"]}, + {name: "Cobol", mime: "text/x-cobol", mode: "cobol", ext: ["cob", "cpy"]}, + {name: "C#", mime: "text/x-csharp", mode: "clike", ext: ["cs"], alias: ["csharp"]}, + {name: "Clojure", mime: "text/x-clojure", mode: "clojure", ext: ["clj", "cljc", "cljx"]}, + {name: "ClojureScript", mime: "text/x-clojurescript", mode: "clojure", ext: ["cljs"]}, + {name: "Closure Stylesheets (GSS)", mime: "text/x-gss", mode: "css", ext: ["gss"]}, + {name: "CMake", mime: "text/x-cmake", mode: "cmake", ext: ["cmake", "cmake.in"], file: /^CMakeLists.txt$/}, + {name: "CoffeeScript", mime: "text/x-coffeescript", mode: "coffeescript", ext: ["coffee"], alias: ["coffee", "coffee-script"]}, + {name: "Common Lisp", mime: "text/x-common-lisp", mode: "commonlisp", ext: ["cl", "lisp", "el"], alias: ["lisp"]}, + {name: "Cypher", mime: "application/x-cypher-query", mode: "cypher", ext: ["cyp", "cypher"]}, + {name: "Cython", mime: "text/x-cython", mode: "python", ext: ["pyx", "pxd", "pxi"]}, + {name: "Crystal", mime: "text/x-crystal", mode: "crystal", ext: ["cr"]}, + {name: "CSS", mime: "text/css", mode: "css", ext: ["css"]}, + {name: "CQL", mime: "text/x-cassandra", mode: "sql", ext: ["cql"]}, + {name: "D", mime: "text/x-d", mode: "d", ext: ["d"]}, + {name: "Dart", mimes: ["application/dart", "text/x-dart"], mode: "dart", ext: ["dart"]}, + {name: "diff", mime: "text/x-diff", mode: "diff", ext: ["diff", "patch"]}, + {name: "Django", mime: "text/x-django", mode: "django"}, + {name: "Dockerfile", mime: "text/x-dockerfile", mode: "dockerfile", file: /^Dockerfile$/}, + {name: "DTD", mime: "application/xml-dtd", mode: "dtd", ext: ["dtd"]}, + {name: "Dylan", mime: "text/x-dylan", mode: "dylan", ext: ["dylan", "dyl", "intr"]}, + {name: "EBNF", mime: "text/x-ebnf", mode: "ebnf"}, + {name: "ECL", mime: "text/x-ecl", mode: "ecl", ext: ["ecl"]}, + {name: "edn", mime: "application/edn", mode: "clojure", ext: ["edn"]}, + {name: "Eiffel", mime: "text/x-eiffel", mode: "eiffel", ext: ["e"]}, + {name: "Elm", mime: "text/x-elm", mode: "elm", ext: ["elm"]}, + {name: "Embedded Javascript", mime: "application/x-ejs", mode: "htmlembedded", ext: ["ejs"]}, + {name: "Embedded Ruby", mime: "application/x-erb", mode: "htmlembedded", ext: ["erb"]}, + {name: "Erlang", mime: "text/x-erlang", mode: "erlang", ext: ["erl"]}, + {name: "Factor", mime: "text/x-factor", mode: "factor", ext: ["factor"]}, + {name: "FCL", mime: "text/x-fcl", mode: "fcl"}, + {name: "Forth", mime: "text/x-forth", mode: "forth", ext: ["forth", "fth", "4th"]}, + {name: "Fortran", mime: "text/x-fortran", mode: "fortran", ext: ["f", "for", "f77", "f90"]}, + {name: "F#", mime: "text/x-fsharp", mode: "mllike", ext: ["fs"], alias: ["fsharp"]}, + {name: "Gas", mime: "text/x-gas", mode: "gas", ext: ["s"]}, + {name: "Gherkin", mime: "text/x-feature", mode: "gherkin", ext: ["feature"]}, + {name: "GitHub Flavored Markdown", mime: "text/x-gfm", mode: "gfm", file: /^(readme|contributing|history).md$/i}, + {name: "Go", mime: "text/x-go", mode: "go", ext: ["go"]}, + {name: "Groovy", mime: "text/x-groovy", mode: "groovy", ext: ["groovy", "gradle"], file: /^Jenkinsfile$/}, + {name: "HAML", mime: "text/x-haml", mode: "haml", ext: ["haml"]}, + {name: "Haskell", mime: "text/x-haskell", mode: "haskell", ext: ["hs"]}, + {name: "Haskell (Literate)", mime: "text/x-literate-haskell", mode: "haskell-literate", ext: ["lhs"]}, + {name: "Haxe", mime: "text/x-haxe", mode: "haxe", ext: ["hx"]}, + {name: "HXML", mime: "text/x-hxml", mode: "haxe", ext: ["hxml"]}, + {name: "ASP.NET", mime: "application/x-aspx", mode: "htmlembedded", ext: ["aspx"], alias: ["asp", "aspx"]}, + {name: "HTML", mime: "text/html", mode: "htmlmixed", ext: ["html", "htm"], alias: ["xhtml"]}, + {name: "HTTP", mime: "message/http", mode: "http"}, + {name: "IDL", mime: "text/x-idl", mode: "idl", ext: ["pro"]}, + {name: "Pug", mime: "text/x-pug", mode: "pug", ext: ["jade", "pug"], alias: ["jade"]}, + {name: "Java", mime: "text/x-java", mode: "clike", ext: ["java"]}, + {name: "Java Server Pages", mime: "application/x-jsp", mode: "htmlembedded", ext: ["jsp"], alias: ["jsp"]}, + {name: "JavaScript", mimes: ["text/javascript", "text/ecmascript", "application/javascript", "application/x-javascript", "application/ecmascript"], + mode: "javascript", ext: ["js"], alias: ["ecmascript", "js", "node"]}, + {name: "JSON", mimes: ["application/json", "application/x-json"], mode: "javascript", ext: ["json", "map"], alias: ["json5"]}, + {name: "JSON-LD", mime: "application/ld+json", mode: "javascript", ext: ["jsonld"], alias: ["jsonld"]}, + {name: "JSX", mime: "text/jsx", mode: "jsx", ext: ["jsx"]}, + {name: "Jinja2", mime: "null", mode: "jinja2"}, + {name: "Julia", mime: "text/x-julia", mode: "julia", ext: ["jl"]}, + {name: "Kotlin", mime: "text/x-kotlin", mode: "clike", ext: ["kt"]}, + {name: "LESS", mime: "text/x-less", mode: "css", ext: ["less"]}, + {name: "LiveScript", mime: "text/x-livescript", mode: "livescript", ext: ["ls"], alias: ["ls"]}, + {name: "Lua", mime: "text/x-lua", mode: "lua", ext: ["lua"]}, + {name: "Markdown", mime: "text/x-markdown", mode: "markdown", ext: ["markdown", "md", "mkd"]}, + {name: "mIRC", mime: "text/mirc", mode: "mirc"}, + {name: "MariaDB SQL", mime: "text/x-mariadb", mode: "sql"}, + {name: "Mathematica", mime: "text/x-mathematica", mode: "mathematica", ext: ["m", "nb"]}, + {name: "Modelica", mime: "text/x-modelica", mode: "modelica", ext: ["mo"]}, + {name: "MUMPS", mime: "text/x-mumps", mode: "mumps", ext: ["mps"]}, + {name: "MS SQL", mime: "text/x-mssql", mode: "sql"}, + {name: "mbox", mime: "application/mbox", mode: "mbox", ext: ["mbox"]}, + {name: "MySQL", mime: "text/x-mysql", mode: "sql"}, + {name: "Nginx", mime: "text/x-nginx-conf", mode: "nginx", file: /nginx.*\.conf$/i}, + {name: "NSIS", mime: "text/x-nsis", mode: "nsis", ext: ["nsh", "nsi"]}, + {name: "NTriples", mime: "text/n-triples", mode: "ntriples", ext: ["nt"]}, + {name: "Objective C", mime: "text/x-objectivec", mode: "clike", ext: ["m", "mm"], alias: ["objective-c", "objc"]}, + {name: "OCaml", mime: "text/x-ocaml", mode: "mllike", ext: ["ml", "mli", "mll", "mly"]}, + {name: "Octave", mime: "text/x-octave", mode: "octave", ext: ["m"]}, + {name: "Oz", mime: "text/x-oz", mode: "oz", ext: ["oz"]}, + {name: "Pascal", mime: "text/x-pascal", mode: "pascal", ext: ["p", "pas"]}, + {name: "PEG.js", mime: "null", mode: "pegjs", ext: ["jsonld"]}, + {name: "Perl", mime: "text/x-perl", mode: "perl", ext: ["pl", "pm"]}, + {name: "PHP", mime: "application/x-httpd-php", mode: "php", ext: ["php", "php3", "php4", "php5", "phtml"]}, + {name: "Pig", mime: "text/x-pig", mode: "pig", ext: ["pig"]}, + {name: "Plain Text", mime: "text/plain", mode: "null", ext: ["txt", "text", "conf", "def", "list", "log"]}, + {name: "PLSQL", mime: "text/x-plsql", mode: "sql", ext: ["pls"]}, + {name: "PowerShell", mime: "application/x-powershell", mode: "powershell", ext: ["ps1", "psd1", "psm1"]}, + {name: "Properties files", mime: "text/x-properties", mode: "properties", ext: ["properties", "ini", "in"], alias: ["ini", "properties"]}, + {name: "ProtoBuf", mime: "text/x-protobuf", mode: "protobuf", ext: ["proto"]}, + {name: "Python", mime: "text/x-python", mode: "python", ext: ["BUILD", "bzl", "py", "pyw"], file: /^(BUCK|BUILD)$/}, + {name: "Puppet", mime: "text/x-puppet", mode: "puppet", ext: ["pp"]}, + {name: "Q", mime: "text/x-q", mode: "q", ext: ["q"]}, + {name: "R", mime: "text/x-rsrc", mode: "r", ext: ["r"], alias: ["rscript"]}, + {name: "reStructuredText", mime: "text/x-rst", mode: "rst", ext: ["rst"], alias: ["rst"]}, + {name: "RPM Changes", mime: "text/x-rpm-changes", mode: "rpm"}, + {name: "RPM Spec", mime: "text/x-rpm-spec", mode: "rpm", ext: ["spec"]}, + {name: "Ruby", mime: "text/x-ruby", mode: "ruby", ext: ["rb"], alias: ["jruby", "macruby", "rake", "rb", "rbx"]}, + {name: "Rust", mime: "text/x-rustsrc", mode: "rust", ext: ["rs"]}, + {name: "SAS", mime: "text/x-sas", mode: "sas", ext: ["sas"]}, + {name: "Sass", mime: "text/x-sass", mode: "sass", ext: ["sass"]}, + {name: "Scala", mime: "text/x-scala", mode: "clike", ext: ["scala"]}, + {name: "Scheme", mime: "text/x-scheme", mode: "scheme", ext: ["scm", "ss"]}, + {name: "SCSS", mime: "text/x-scss", mode: "css", ext: ["scss"]}, + {name: "Shell", mime: "text/x-sh", mode: "shell", ext: ["sh", "ksh", "bash"], alias: ["bash", "sh", "zsh"], file: /^PKGBUILD$/}, + {name: "Sieve", mime: "application/sieve", mode: "sieve", ext: ["siv", "sieve"]}, + {name: "Slim", mimes: ["text/x-slim", "application/x-slim"], mode: "slim", ext: ["slim"]}, + {name: "Smalltalk", mime: "text/x-stsrc", mode: "smalltalk", ext: ["st"]}, + {name: "Smarty", mime: "text/x-smarty", mode: "smarty", ext: ["tpl"]}, + {name: "Solr", mime: "text/x-solr", mode: "solr"}, + {name: "Soy", mime: "text/x-soy", mode: "soy", ext: ["soy"], alias: ["closure template"]}, + {name: "SPARQL", mime: "application/sparql-query", mode: "sparql", ext: ["rq", "sparql"], alias: ["sparul"]}, + {name: "Spreadsheet", mime: "text/x-spreadsheet", mode: "spreadsheet", alias: ["excel", "formula"]}, + {name: "SQL", mime: "text/x-sql", mode: "sql", ext: ["sql"]}, + {name: "Squirrel", mime: "text/x-squirrel", mode: "clike", ext: ["nut"]}, + {name: "Swift", mime: "text/x-swift", mode: "swift", ext: ["swift"]}, + {name: "sTeX", mime: "text/x-stex", mode: "stex"}, + {name: "LaTeX", mime: "text/x-latex", mode: "stex", ext: ["text", "ltx"], alias: ["tex"]}, + {name: "SystemVerilog", mime: "text/x-systemverilog", mode: "verilog", ext: ["v"]}, + {name: "Tcl", mime: "text/x-tcl", mode: "tcl", ext: ["tcl"]}, + {name: "Textile", mime: "text/x-textile", mode: "textile", ext: ["textile"]}, + {name: "TiddlyWiki ", mime: "text/x-tiddlywiki", mode: "tiddlywiki"}, + {name: "Tiki wiki", mime: "text/tiki", mode: "tiki"}, + {name: "TOML", mime: "text/x-toml", mode: "toml", ext: ["toml"]}, + {name: "Tornado", mime: "text/x-tornado", mode: "tornado"}, + {name: "troff", mime: "text/troff", mode: "troff", ext: ["1", "2", "3", "4", "5", "6", "7", "8", "9"]}, + {name: "TTCN", mime: "text/x-ttcn", mode: "ttcn", ext: ["ttcn", "ttcn3", "ttcnpp"]}, + {name: "TTCN_CFG", mime: "text/x-ttcn-cfg", mode: "ttcn-cfg", ext: ["cfg"]}, + {name: "Turtle", mime: "text/turtle", mode: "turtle", ext: ["ttl"]}, + {name: "TypeScript", mime: "application/typescript", mode: "javascript", ext: ["ts"], alias: ["ts"]}, + {name: "Twig", mime: "text/x-twig", mode: "twig"}, + {name: "Web IDL", mime: "text/x-webidl", mode: "webidl", ext: ["webidl"]}, + {name: "VB.NET", mime: "text/x-vb", mode: "vb", ext: ["vb"]}, + {name: "VBScript", mime: "text/vbscript", mode: "vbscript", ext: ["vbs"]}, + {name: "Velocity", mime: "text/velocity", mode: "velocity", ext: ["vtl"]}, + {name: "Verilog", mime: "text/x-verilog", mode: "verilog", ext: ["v"]}, + {name: "VHDL", mime: "text/x-vhdl", mode: "vhdl", ext: ["vhd", "vhdl"]}, + {name: "XML", mimes: ["application/xml", "text/xml"], mode: "xml", ext: ["xml", "xsl", "xsd"], alias: ["rss", "wsdl", "xsd"]}, + {name: "XQuery", mime: "application/xquery", mode: "xquery", ext: ["xy", "xquery"]}, + {name: "Yacas", mime: "text/x-yacas", mode: "yacas", ext: ["ys"]}, + {name: "YAML", mime: "text/x-yaml", mode: "yaml", ext: ["yaml", "yml"], alias: ["yml"]}, + {name: "Z80", mime: "text/x-z80", mode: "z80", ext: ["z80"]}, + {name: "mscgen", mime: "text/x-mscgen", mode: "mscgen", ext: ["mscgen", "mscin", "msc"]}, + {name: "xu", mime: "text/x-xu", mode: "mscgen", ext: ["xu"]}, + {name: "msgenny", mime: "text/x-msgenny", mode: "mscgen", ext: ["msgenny"]} + ]; + // Ensure all modes have a mime property for backwards compatibility + for (var i = 0; i < CodeMirror.modeInfo.length; i++) { + var info = CodeMirror.modeInfo[i]; + if (info.mimes) info.mime = info.mimes[0]; + } + + CodeMirror.findModeByMIME = function(mime) { + mime = mime.toLowerCase(); + for (var i = 0; i < CodeMirror.modeInfo.length; i++) { + var info = CodeMirror.modeInfo[i]; + if (info.mime == mime) return info; + if (info.mimes) for (var j = 0; j < info.mimes.length; j++) + if (info.mimes[j] == mime) return info; + } + }; + + CodeMirror.findModeByExtension = function(ext) { + for (var i = 0; i < CodeMirror.modeInfo.length; i++) { + var info = CodeMirror.modeInfo[i]; + if (info.ext) for (var j = 0; j < info.ext.length; j++) + if (info.ext[j] == ext) return info; + } + }; + + CodeMirror.findModeByFileName = function(filename) { + for (var i = 0; i < CodeMirror.modeInfo.length; i++) { + var info = CodeMirror.modeInfo[i]; + if (info.file && info.file.test(filename)) return info; + } + var dot = filename.lastIndexOf("."); + var ext = dot > -1 && filename.substring(dot + 1, filename.length); + if (ext) return CodeMirror.findModeByExtension(ext); + }; + + CodeMirror.findModeByName = function(name) { + name = name.toLowerCase(); + for (var i = 0; i < CodeMirror.modeInfo.length; i++) { + var info = CodeMirror.modeInfo[i]; + if (info.name.toLowerCase() == name) return info; + if (info.alias) for (var j = 0; j < info.alias.length; j++) + if (info.alias[j].toLowerCase() == name) return info; + } + }; +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mirc/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mirc/index.html new file mode 100644 index 0000000..fd2f34e --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mirc/index.html @@ -0,0 +1,160 @@ +<!doctype html> + +<title>CodeMirror: mIRC mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<link rel="stylesheet" href="../../theme/twilight.css"> +<script src="../../lib/codemirror.js"></script> +<script src="mirc.js"></script> +<style>.CodeMirror {border: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">mIRC</a> + </ul> +</div> + +<article> +<h2>mIRC mode</h2> +<form><textarea id="code" name="code"> +;AKA Nick Tracker by Ford_Lawnmower irc.GeekShed.net #Script-Help +;*****************************************************************************; +;**Start Setup +;Change JoinDisplay, below, for On Join AKA Display. On = 1 - Off = 0 +alias -l JoinDisplay { return 1 } +;Change MaxNicks, below, to the number of nicknames you want to store for each hostmask. I wouldn't go over 400 with this ;/ +alias -l MaxNicks { return 20 } +;Change AKALogo, below, To the text you want displayed before each AKA result. +alias -l AKALogo { return 06 05A06K07A 06 } +;**End Setup +;*****************************************************************************; +On *:Join:#: { + if ($nick == $me) { .timer 1 1 ialupdateCheck $chan } + NickNamesAdd $nick $+($network,$wildsite) + if ($JoinDisplay) { .timerNickNames $+ $nick 1 2 NickNames.display $nick $chan $network $wildsite } +} +on *:Nick: { NickNamesAdd $newnick $+($network,$wildsite) $nick } +alias -l NickNames.display { + if ($gettok($hget(NickNames,$+($3,$4)),0,126) > 1) { + echo -g $2 $AKALogo $+(09,$1) $AKALogo 07 $mid($replace($hget(NickNames,$+($3,$4)),$chr(126),$chr(44)),2,-1) + } +} +alias -l NickNamesAdd { + if ($hget(NickNames,$2)) { + if (!$regex($hget(NickNames,$2),/~\Q $+ $replacecs($1,\E,\E\\E\Q) $+ \E~/i)) { + if ($gettok($hget(NickNames,$2),0,126) <= $MaxNicks) { + hadd NickNames $2 $+($hget(NickNames,$2),$1,~) + } + else { + hadd NickNames $2 $+($mid($hget(NickNames,$2),$pos($hget(NickNames,$2),~,2)),$1,~) + } + } + } + else { + hadd -m NickNames $2 $+(~,$1,~,$iif($3,$+($3,~))) + } +} +alias -l Fix.All.MindUser { + var %Fix.Count = $hfind(NickNames,/[^~]+[0-9]{4}~/,0,r).data + while (%Fix.Count) { + if ($Fix.MindUser($hget(NickNames,$hfind(NickNames,/[^~]+[0-9]{4}~/,%Fix.Count,r).data))) { + echo -ag Record %Fix.Count - $v1 - Was Cleaned + hadd NickNames $hfind(NickNames,/[^~]+[0-9]{4}~/,%Fix.Count,r).data $v1 + } + dec %Fix.Count + } +} +alias -l Fix.MindUser { return $regsubex($1,/[^~]+[0-9]{4}~/g,$null) } +menu nicklist,query { + - + .AKA + ..Check $$1: { + if ($gettok($hget(NickNames,$+($network,$address($1,2))),0,126) > 1) { + NickNames.display $1 $active $network $address($1,2) + } + else { echo -ag $AKALogo $+(09,$1) 07has not been known by any other nicknames while I have been watching. } + } + ..Cleanup $$1:hadd NickNames $+($network,$address($1,2)) $fix.minduser($hget(NickNames,$+($network,$address($1,2)))) + ..Clear $$1:hadd NickNames $+($network,$address($1,2)) $+(~,$1,~) + ..AKA Search Dialog:dialog $iif($dialog(AKA_Search),-v,-m) AKA_Search AKA_Search + - +} +menu status,channel { + - + .AKA + ..AKA Search Dialog:dialog $iif($dialog(AKA_Search),-v,-m) AKA_Search AKA_Search + ..Clean All Records:Fix.All.Minduser + - +} +dialog AKA_Search { + title "AKA Search Engine" + size -1 -1 206 221 + option dbu + edit "", 1, 8 5 149 10, autohs + button "Search", 2, 163 4 32 12 + radio "Search HostMask", 4, 61 22 55 10 + radio "Search Nicknames", 5, 123 22 56 10 + list 6, 8 38 190 169, sort extsel vsbar + button "Check Selected", 7, 67 206 40 12 + button "Close", 8, 160 206 38 12, cancel + box "Search Type", 3, 11 17 183 18 + button "Copy to Clipboard", 9, 111 206 46 12 +} +On *:Dialog:Aka_Search:init:*: { did -c $dname 5 } +On *:Dialog:Aka_Search:Sclick:2,7,9: { + if ($did == 2) && ($did($dname,1)) { + did -r $dname 6 + var %search $+(*,$v1,*), %type $iif($did($dname,5).state,data,item), %matches = $hfind(NickNames,%search,0,w). [ $+ [ %type ] ] + while (%matches) { + did -a $dname 6 $hfind(NickNames,%search,%matches,w). [ $+ [ %type ] ] + dec %matches + } + did -c $dname 6 1 + } + elseif ($did == 7) && ($did($dname,6).seltext) { echo -ga $AKALogo 07 $mid($replace($hget(NickNames,$v1),$chr(126),$chr(44)),2,-1) } + elseif ($did == 9) && ($did($dname,6).seltext) { clipboard $mid($v1,$pos($v1,*,1)) } +} +On *:Start:{ + if (!$hget(NickNames)) { hmake NickNames 10 } + if ($isfile(NickNames.hsh)) { hload NickNames NickNames.hsh } +} +On *:Exit: { if ($hget(NickNames)) { hsave NickNames NickNames.hsh } } +On *:Disconnect: { if ($hget(NickNames)) { hsave NickNames NickNames.hsh } } +On *:Unload: { hfree NickNames } +alias -l ialupdateCheck { + inc -z $+(%,ialupdateCheck,$network) $calc($nick($1,0) / 4) + ;If your ial is already being updated on join .who $1 out. + ;If you are using /names to update ial you will still need this line. + .who $1 +} +Raw 352:*: { + if ($($+(%,ialupdateCheck,$network),2)) haltdef + NickNamesAdd $6 $+($network,$address($6,2)) +} +Raw 315:*: { + if ($($+(%,ialupdateCheck,$network),2)) haltdef +} + +</textarea></form> + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + theme: "twilight", + lineNumbers: true, + matchBrackets: true, + indentUnit: 4, + mode: "text/mirc" + }); + </script> + + <p><strong>MIME types defined:</strong> <code>text/mirc</code>.</p> + + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mirc/mirc.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mirc/mirc.js new file mode 100644 index 0000000..f0d5c6a --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mirc/mirc.js @@ -0,0 +1,193 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +//mIRC mode by Ford_Lawnmower :: Based on Velocity mode by Steve O'Hara + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMIME("text/mirc", "mirc"); +CodeMirror.defineMode("mirc", function() { + function parseWords(str) { + var obj = {}, words = str.split(" "); + for (var i = 0; i < words.length; ++i) obj[words[i]] = true; + return obj; + } + var specials = parseWords("$! $$ $& $? $+ $abook $abs $active $activecid " + + "$activewid $address $addtok $agent $agentname $agentstat $agentver " + + "$alias $and $anick $ansi2mirc $aop $appactive $appstate $asc $asctime " + + "$asin $atan $avoice $away $awaymsg $awaytime $banmask $base $bfind " + + "$binoff $biton $bnick $bvar $bytes $calc $cb $cd $ceil $chan $chanmodes " + + "$chantypes $chat $chr $cid $clevel $click $cmdbox $cmdline $cnick $color " + + "$com $comcall $comchan $comerr $compact $compress $comval $cos $count " + + "$cr $crc $creq $crlf $ctime $ctimer $ctrlenter $date $day $daylight " + + "$dbuh $dbuw $dccignore $dccport $dde $ddename $debug $decode $decompress " + + "$deltok $devent $dialog $did $didreg $didtok $didwm $disk $dlevel $dll " + + "$dllcall $dname $dns $duration $ebeeps $editbox $emailaddr $encode $error " + + "$eval $event $exist $feof $ferr $fgetc $file $filename $filtered $finddir " + + "$finddirn $findfile $findfilen $findtok $fline $floor $fopen $fread $fserve " + + "$fulladdress $fulldate $fullname $fullscreen $get $getdir $getdot $gettok $gmt " + + "$group $halted $hash $height $hfind $hget $highlight $hnick $hotline " + + "$hotlinepos $ial $ialchan $ibl $idle $iel $ifmatch $ignore $iif $iil " + + "$inelipse $ini $inmidi $inpaste $inpoly $input $inrect $inroundrect " + + "$insong $instok $int $inwave $ip $isalias $isbit $isdde $isdir $isfile " + + "$isid $islower $istok $isupper $keychar $keyrpt $keyval $knick $lactive " + + "$lactivecid $lactivewid $left $len $level $lf $line $lines $link $lock " + + "$lock $locked $log $logstamp $logstampfmt $longfn $longip $lower $ltimer " + + "$maddress $mask $matchkey $matchtok $md5 $me $menu $menubar $menucontext " + + "$menutype $mid $middir $mircdir $mircexe $mircini $mklogfn $mnick $mode " + + "$modefirst $modelast $modespl $mouse $msfile $network $newnick $nick $nofile " + + "$nopath $noqt $not $notags $notify $null $numeric $numok $oline $onpoly " + + "$opnick $or $ord $os $passivedcc $pic $play $pnick $port $portable $portfree " + + "$pos $prefix $prop $protect $puttok $qt $query $rand $r $rawmsg $read $readomo " + + "$readn $regex $regml $regsub $regsubex $remove $remtok $replace $replacex " + + "$reptok $result $rgb $right $round $scid $scon $script $scriptdir $scriptline " + + "$sdir $send $server $serverip $sfile $sha1 $shortfn $show $signal $sin " + + "$site $sline $snick $snicks $snotify $sock $sockbr $sockerr $sockname " + + "$sorttok $sound $sqrt $ssl $sreq $sslready $status $strip $str $stripped " + + "$syle $submenu $switchbar $tan $target $ticks $time $timer $timestamp " + + "$timestampfmt $timezone $tip $titlebar $toolbar $treebar $trust $ulevel " + + "$ulist $upper $uptime $url $usermode $v1 $v2 $var $vcmd $vcmdstat $vcmdver " + + "$version $vnick $vol $wid $width $wildsite $wildtok $window $wrap $xor"); + var keywords = parseWords("abook ajinvite alias aline ame amsg anick aop auser autojoin avoice " + + "away background ban bcopy beep bread break breplace bset btrunc bunset bwrite " + + "channel clear clearall cline clipboard close cnick color comclose comopen " + + "comreg continue copy creq ctcpreply ctcps dcc dccserver dde ddeserver " + + "debug dec describe dialog did didtok disable disconnect dlevel dline dll " + + "dns dqwindow drawcopy drawdot drawfill drawline drawpic drawrect drawreplace " + + "drawrot drawsave drawscroll drawtext ebeeps echo editbox emailaddr enable " + + "events exit fclose filter findtext finger firewall flash flist flood flush " + + "flushini font fopen fseek fsend fserve fullname fwrite ghide gload gmove " + + "gopts goto gplay gpoint gqreq groups gshow gsize gstop gtalk gunload hadd " + + "halt haltdef hdec hdel help hfree hinc hload hmake hop hsave ial ialclear " + + "ialmark identd if ignore iline inc invite iuser join kick linesep links list " + + "load loadbuf localinfo log mdi me menubar mkdir mnick mode msg nick noop notice " + + "notify omsg onotice part partall pdcc perform play playctrl pop protect pvoice " + + "qme qmsg query queryn quit raw reload remini remote remove rename renwin " + + "reseterror resetidle return rlevel rline rmdir run ruser save savebuf saveini " + + "say scid scon server set showmirc signam sline sockaccept sockclose socklist " + + "socklisten sockmark sockopen sockpause sockread sockrename sockudp sockwrite " + + "sound speak splay sreq strip switchbar timer timestamp titlebar tnick tokenize " + + "toolbar topic tray treebar ulist unload unset unsetall updatenl url uwho " + + "var vcadd vcmd vcrem vol while whois window winhelp write writeint if isalnum " + + "isalpha isaop isavoice isban ischan ishop isignore isin isincs isletter islower " + + "isnotify isnum ison isop isprotect isreg isupper isvoice iswm iswmcs " + + "elseif else goto menu nicklist status title icon size option text edit " + + "button check radio box scroll list combo link tab item"); + var functions = parseWords("if elseif else and not or eq ne in ni for foreach while switch"); + var isOperatorChar = /[+\-*&%=<>!?^\/\|]/; + function chain(stream, state, f) { + state.tokenize = f; + return f(stream, state); + } + function tokenBase(stream, state) { + var beforeParams = state.beforeParams; + state.beforeParams = false; + var ch = stream.next(); + if (/[\[\]{}\(\),\.]/.test(ch)) { + if (ch == "(" && beforeParams) state.inParams = true; + else if (ch == ")") state.inParams = false; + return null; + } + else if (/\d/.test(ch)) { + stream.eatWhile(/[\w\.]/); + return "number"; + } + else if (ch == "\\") { + stream.eat("\\"); + stream.eat(/./); + return "number"; + } + else if (ch == "/" && stream.eat("*")) { + return chain(stream, state, tokenComment); + } + else if (ch == ";" && stream.match(/ *\( *\(/)) { + return chain(stream, state, tokenUnparsed); + } + else if (ch == ";" && !state.inParams) { + stream.skipToEnd(); + return "comment"; + } + else if (ch == '"') { + stream.eat(/"/); + return "keyword"; + } + else if (ch == "$") { + stream.eatWhile(/[$_a-z0-9A-Z\.:]/); + if (specials && specials.propertyIsEnumerable(stream.current().toLowerCase())) { + return "keyword"; + } + else { + state.beforeParams = true; + return "builtin"; + } + } + else if (ch == "%") { + stream.eatWhile(/[^,^\s^\(^\)]/); + state.beforeParams = true; + return "string"; + } + else if (isOperatorChar.test(ch)) { + stream.eatWhile(isOperatorChar); + return "operator"; + } + else { + stream.eatWhile(/[\w\$_{}]/); + var word = stream.current().toLowerCase(); + if (keywords && keywords.propertyIsEnumerable(word)) + return "keyword"; + if (functions && functions.propertyIsEnumerable(word)) { + state.beforeParams = true; + return "keyword"; + } + return null; + } + } + function tokenComment(stream, state) { + var maybeEnd = false, ch; + while (ch = stream.next()) { + if (ch == "/" && maybeEnd) { + state.tokenize = tokenBase; + break; + } + maybeEnd = (ch == "*"); + } + return "comment"; + } + function tokenUnparsed(stream, state) { + var maybeEnd = 0, ch; + while (ch = stream.next()) { + if (ch == ";" && maybeEnd == 2) { + state.tokenize = tokenBase; + break; + } + if (ch == ")") + maybeEnd++; + else if (ch != " ") + maybeEnd = 0; + } + return "meta"; + } + return { + startState: function() { + return { + tokenize: tokenBase, + beforeParams: false, + inParams: false + }; + }, + token: function(stream, state) { + if (stream.eatSpace()) return null; + return state.tokenize(stream, state); + } + }; +}); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mllike/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mllike/index.html new file mode 100644 index 0000000..5923af8 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mllike/index.html @@ -0,0 +1,179 @@ +<!doctype html> + +<title>CodeMirror: ML-like mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel=stylesheet href=../../lib/codemirror.css> +<script src=../../lib/codemirror.js></script> +<script src=../../addon/edit/matchbrackets.js></script> +<script src=mllike.js></script> +<style type=text/css> + .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;} +</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">ML-like</a> + </ul> +</div> + +<article> +<h2>OCaml mode</h2> + + +<textarea id="ocamlCode"> +(* Summing a list of integers *) +let rec sum xs = + match xs with + | [] -> 0 + | x :: xs' -> x + sum xs' + +(* Quicksort *) +let rec qsort = function + | [] -> [] + | pivot :: rest -> + let is_less x = x < pivot in + let left, right = List.partition is_less rest in + qsort left @ [pivot] @ qsort right + +(* Fibonacci Sequence *) +let rec fib_aux n a b = + match n with + | 0 -> a + | _ -> fib_aux (n - 1) (a + b) a +let fib n = fib_aux n 0 1 + +(* Birthday paradox *) +let year_size = 365. + +let rec birthday_paradox prob people = + let prob' = (year_size -. float people) /. year_size *. prob in + if prob' < 0.5 then + Printf.printf "answer = %d\n" (people+1) + else + birthday_paradox prob' (people+1) ;; + +birthday_paradox 1.0 1 + +(* Church numerals *) +let zero f x = x +let succ n f x = f (n f x) +let one = succ zero +let two = succ (succ zero) +let add n1 n2 f x = n1 f (n2 f x) +let to_string n = n (fun k -> "S" ^ k) "0" +let _ = to_string (add (succ two) two) + +(* Elementary functions *) +let square x = x * x;; +let rec fact x = + if x <= 1 then 1 else x * fact (x - 1);; + +(* Automatic memory management *) +let l = 1 :: 2 :: 3 :: [];; +[1; 2; 3];; +5 :: l;; + +(* Polymorphism: sorting lists *) +let rec sort = function + | [] -> [] + | x :: l -> insert x (sort l) + +and insert elem = function + | [] -> [elem] + | x :: l -> + if elem < x then elem :: x :: l else x :: insert elem l;; + +(* Imperative features *) +let add_polynom p1 p2 = + let n1 = Array.length p1 + and n2 = Array.length p2 in + let result = Array.create (max n1 n2) 0 in + for i = 0 to n1 - 1 do result.(i) <- p1.(i) done; + for i = 0 to n2 - 1 do result.(i) <- result.(i) + p2.(i) done; + result;; +add_polynom [| 1; 2 |] [| 1; 2; 3 |];; + +(* We may redefine fact using a reference cell and a for loop *) +let fact n = + let result = ref 1 in + for i = 2 to n do + result := i * !result + done; + !result;; +fact 5;; + +(* Triangle (graphics) *) +let () = + ignore( Glut.init Sys.argv ); + Glut.initDisplayMode ~double_buffer:true (); + ignore (Glut.createWindow ~title:"OpenGL Demo"); + let angle t = 10. *. t *. t in + let render () = + GlClear.clear [ `color ]; + GlMat.load_identity (); + GlMat.rotate ~angle: (angle (Sys.time ())) ~z:1. (); + GlDraw.begins `triangles; + List.iter GlDraw.vertex2 [-1., -1.; 0., 1.; 1., -1.]; + GlDraw.ends (); + Glut.swapBuffers () in + GlMat.mode `modelview; + Glut.displayFunc ~cb:render; + Glut.idleFunc ~cb:(Some Glut.postRedisplay); + Glut.mainLoop () + +(* A Hundred Lines of Caml - http://caml.inria.fr/about/taste.en.html *) +(* OCaml page on Wikipedia - http://en.wikipedia.org/wiki/OCaml *) +</textarea> + +<h2>F# mode</h2> +<textarea id="fsharpCode"> +module CodeMirror.FSharp + +let rec fib = function + | 0 -> 0 + | 1 -> 1 + | n -> fib (n - 1) + fib (n - 2) + +type Point = + { + x : int + y : int + } + +type Color = + | Red + | Green + | Blue + +[0 .. 10] +|> List.map ((+) 2) +|> List.fold (fun x y -> x + y) 0 +|> printf "%i" +</textarea> + + +<script> + var ocamlEditor = CodeMirror.fromTextArea(document.getElementById('ocamlCode'), { + mode: 'text/x-ocaml', + lineNumbers: true, + matchBrackets: true + }); + + var fsharpEditor = CodeMirror.fromTextArea(document.getElementById('fsharpCode'), { + mode: 'text/x-fsharp', + lineNumbers: true, + matchBrackets: true + }); +</script> + +<p><strong>MIME types defined:</strong> <code>text/x-ocaml</code> (OCaml) and <code>text/x-fsharp</code> (F#).</p> +</article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mllike/mllike.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mllike/mllike.js new file mode 100644 index 0000000..bf0b8a6 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mllike/mllike.js @@ -0,0 +1,205 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode('mllike', function(_config, parserConfig) { + var words = { + 'let': 'keyword', + 'rec': 'keyword', + 'in': 'keyword', + 'of': 'keyword', + 'and': 'keyword', + 'if': 'keyword', + 'then': 'keyword', + 'else': 'keyword', + 'for': 'keyword', + 'to': 'keyword', + 'while': 'keyword', + 'do': 'keyword', + 'done': 'keyword', + 'fun': 'keyword', + 'function': 'keyword', + 'val': 'keyword', + 'type': 'keyword', + 'mutable': 'keyword', + 'match': 'keyword', + 'with': 'keyword', + 'try': 'keyword', + 'open': 'builtin', + 'ignore': 'builtin', + 'begin': 'keyword', + 'end': 'keyword' + }; + + var extraWords = parserConfig.extraWords || {}; + for (var prop in extraWords) { + if (extraWords.hasOwnProperty(prop)) { + words[prop] = parserConfig.extraWords[prop]; + } + } + + function tokenBase(stream, state) { + var ch = stream.next(); + + if (ch === '"') { + state.tokenize = tokenString; + return state.tokenize(stream, state); + } + if (ch === '(') { + if (stream.eat('*')) { + state.commentLevel++; + state.tokenize = tokenComment; + return state.tokenize(stream, state); + } + } + if (ch === '~') { + stream.eatWhile(/\w/); + return 'variable-2'; + } + if (ch === '`') { + stream.eatWhile(/\w/); + return 'quote'; + } + if (ch === '/' && parserConfig.slashComments && stream.eat('/')) { + stream.skipToEnd(); + return 'comment'; + } + if (/\d/.test(ch)) { + stream.eatWhile(/[\d]/); + if (stream.eat('.')) { + stream.eatWhile(/[\d]/); + } + return 'number'; + } + if ( /[+\-*&%=<>!?|]/.test(ch)) { + return 'operator'; + } + stream.eatWhile(/\w/); + var cur = stream.current(); + return words.hasOwnProperty(cur) ? words[cur] : 'variable'; + } + + function tokenString(stream, state) { + var next, end = false, escaped = false; + while ((next = stream.next()) != null) { + if (next === '"' && !escaped) { + end = true; + break; + } + escaped = !escaped && next === '\\'; + } + if (end && !escaped) { + state.tokenize = tokenBase; + } + return 'string'; + }; + + function tokenComment(stream, state) { + var prev, next; + while(state.commentLevel > 0 && (next = stream.next()) != null) { + if (prev === '(' && next === '*') state.commentLevel++; + if (prev === '*' && next === ')') state.commentLevel--; + prev = next; + } + if (state.commentLevel <= 0) { + state.tokenize = tokenBase; + } + return 'comment'; + } + + return { + startState: function() {return {tokenize: tokenBase, commentLevel: 0};}, + token: function(stream, state) { + if (stream.eatSpace()) return null; + return state.tokenize(stream, state); + }, + + blockCommentStart: "(*", + blockCommentEnd: "*)", + lineComment: parserConfig.slashComments ? "//" : null + }; +}); + +CodeMirror.defineMIME('text/x-ocaml', { + name: 'mllike', + extraWords: { + 'succ': 'keyword', + 'trace': 'builtin', + 'exit': 'builtin', + 'print_string': 'builtin', + 'print_endline': 'builtin', + 'true': 'atom', + 'false': 'atom', + 'raise': 'keyword' + } +}); + +CodeMirror.defineMIME('text/x-fsharp', { + name: 'mllike', + extraWords: { + 'abstract': 'keyword', + 'as': 'keyword', + 'assert': 'keyword', + 'base': 'keyword', + 'class': 'keyword', + 'default': 'keyword', + 'delegate': 'keyword', + 'downcast': 'keyword', + 'downto': 'keyword', + 'elif': 'keyword', + 'exception': 'keyword', + 'extern': 'keyword', + 'finally': 'keyword', + 'global': 'keyword', + 'inherit': 'keyword', + 'inline': 'keyword', + 'interface': 'keyword', + 'internal': 'keyword', + 'lazy': 'keyword', + 'let!': 'keyword', + 'member' : 'keyword', + 'module': 'keyword', + 'namespace': 'keyword', + 'new': 'keyword', + 'null': 'keyword', + 'override': 'keyword', + 'private': 'keyword', + 'public': 'keyword', + 'return': 'keyword', + 'return!': 'keyword', + 'select': 'keyword', + 'static': 'keyword', + 'struct': 'keyword', + 'upcast': 'keyword', + 'use': 'keyword', + 'use!': 'keyword', + 'val': 'keyword', + 'when': 'keyword', + 'yield': 'keyword', + 'yield!': 'keyword', + + 'List': 'builtin', + 'Seq': 'builtin', + 'Map': 'builtin', + 'Set': 'builtin', + 'int': 'builtin', + 'string': 'builtin', + 'raise': 'builtin', + 'failwith': 'builtin', + 'not': 'builtin', + 'true': 'builtin', + 'false': 'builtin' + }, + slashComments: true +}); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/modelica/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/modelica/index.html new file mode 100644 index 0000000..408c3b1 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/modelica/index.html @@ -0,0 +1,67 @@ +<!doctype html> + +<title>CodeMirror: Modelica mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../../addon/edit/matchbrackets.js"></script> +<link rel="stylesheet" href="../../addon/hint/show-hint.css"> +<script src="../../addon/hint/show-hint.js"></script> +<script src="modelica.js"></script> +<style>.CodeMirror {border: 2px inset #dee;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Modelica</a> + </ul> +</div> + +<article> +<h2>Modelica mode</h2> + +<div><textarea id="modelica"> +model BouncingBall + parameter Real e = 0.7; + parameter Real g = 9.81; + Real h(start=1); + Real v; + Boolean flying(start=true); + Boolean impact; + Real v_new; +equation + impact = h <= 0.0; + der(v) = if flying then -g else 0; + der(h) = v; + when {h <= 0.0 and v <= 0.0, impact} then + v_new = if edge(impact) then -e*pre(v) else 0; + flying = v_new > 0; + reinit(v, v_new); + end when; + annotation (uses(Modelica(version="3.2"))); +end BouncingBall; +</textarea></div> + + <script> + var modelicaEditor = CodeMirror.fromTextArea(document.getElementById("modelica"), { + lineNumbers: true, + matchBrackets: true, + mode: "text/x-modelica" + }); + var mac = CodeMirror.keyMap.default == CodeMirror.keyMap.macDefault; + CodeMirror.keyMap.default[(mac ? "Cmd" : "Ctrl") + "-Space"] = "autocomplete"; + </script> + + <p>Simple mode that tries to handle Modelica as well as it can.</p> + + <p><strong>MIME types defined:</strong> <code>text/x-modelica</code> + (Modlica code).</p> +</article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/modelica/modelica.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/modelica/modelica.js new file mode 100644 index 0000000..77ec7a3 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/modelica/modelica.js @@ -0,0 +1,245 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +// Modelica support for CodeMirror, copyright (c) by Lennart Ochel + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +}) + +(function(CodeMirror) { + "use strict"; + + CodeMirror.defineMode("modelica", function(config, parserConfig) { + + var indentUnit = config.indentUnit; + var keywords = parserConfig.keywords || {}; + var builtin = parserConfig.builtin || {}; + var atoms = parserConfig.atoms || {}; + + var isSingleOperatorChar = /[;=\(:\),{}.*<>+\-\/^\[\]]/; + var isDoubleOperatorChar = /(:=|<=|>=|==|<>|\.\+|\.\-|\.\*|\.\/|\.\^)/; + var isDigit = /[0-9]/; + var isNonDigit = /[_a-zA-Z]/; + + function tokenLineComment(stream, state) { + stream.skipToEnd(); + state.tokenize = null; + return "comment"; + } + + function tokenBlockComment(stream, state) { + var maybeEnd = false, ch; + while (ch = stream.next()) { + if (maybeEnd && ch == "/") { + state.tokenize = null; + break; + } + maybeEnd = (ch == "*"); + } + return "comment"; + } + + function tokenString(stream, state) { + var escaped = false, ch; + while ((ch = stream.next()) != null) { + if (ch == '"' && !escaped) { + state.tokenize = null; + state.sol = false; + break; + } + escaped = !escaped && ch == "\\"; + } + + return "string"; + } + + function tokenIdent(stream, state) { + stream.eatWhile(isDigit); + while (stream.eat(isDigit) || stream.eat(isNonDigit)) { } + + + var cur = stream.current(); + + if(state.sol && (cur == "package" || cur == "model" || cur == "when" || cur == "connector")) state.level++; + else if(state.sol && cur == "end" && state.level > 0) state.level--; + + state.tokenize = null; + state.sol = false; + + if (keywords.propertyIsEnumerable(cur)) return "keyword"; + else if (builtin.propertyIsEnumerable(cur)) return "builtin"; + else if (atoms.propertyIsEnumerable(cur)) return "atom"; + else return "variable"; + } + + function tokenQIdent(stream, state) { + while (stream.eat(/[^']/)) { } + + state.tokenize = null; + state.sol = false; + + if(stream.eat("'")) + return "variable"; + else + return "error"; + } + + function tokenUnsignedNuber(stream, state) { + stream.eatWhile(isDigit); + if (stream.eat('.')) { + stream.eatWhile(isDigit); + } + if (stream.eat('e') || stream.eat('E')) { + if (!stream.eat('-')) + stream.eat('+'); + stream.eatWhile(isDigit); + } + + state.tokenize = null; + state.sol = false; + return "number"; + } + + // Interface + return { + startState: function() { + return { + tokenize: null, + level: 0, + sol: true + }; + }, + + token: function(stream, state) { + if(state.tokenize != null) { + return state.tokenize(stream, state); + } + + if(stream.sol()) { + state.sol = true; + } + + // WHITESPACE + if(stream.eatSpace()) { + state.tokenize = null; + return null; + } + + var ch = stream.next(); + + // LINECOMMENT + if(ch == '/' && stream.eat('/')) { + state.tokenize = tokenLineComment; + } + // BLOCKCOMMENT + else if(ch == '/' && stream.eat('*')) { + state.tokenize = tokenBlockComment; + } + // TWO SYMBOL TOKENS + else if(isDoubleOperatorChar.test(ch+stream.peek())) { + stream.next(); + state.tokenize = null; + return "operator"; + } + // SINGLE SYMBOL TOKENS + else if(isSingleOperatorChar.test(ch)) { + state.tokenize = null; + return "operator"; + } + // IDENT + else if(isNonDigit.test(ch)) { + state.tokenize = tokenIdent; + } + // Q-IDENT + else if(ch == "'" && stream.peek() && stream.peek() != "'") { + state.tokenize = tokenQIdent; + } + // STRING + else if(ch == '"') { + state.tokenize = tokenString; + } + // UNSIGNED_NUBER + else if(isDigit.test(ch)) { + state.tokenize = tokenUnsignedNuber; + } + // ERROR + else { + state.tokenize = null; + return "error"; + } + + return state.tokenize(stream, state); + }, + + indent: function(state, textAfter) { + if (state.tokenize != null) return CodeMirror.Pass; + + var level = state.level; + if(/(algorithm)/.test(textAfter)) level--; + if(/(equation)/.test(textAfter)) level--; + if(/(initial algorithm)/.test(textAfter)) level--; + if(/(initial equation)/.test(textAfter)) level--; + if(/(end)/.test(textAfter)) level--; + + if(level > 0) + return indentUnit*level; + else + return 0; + }, + + blockCommentStart: "/*", + blockCommentEnd: "*/", + lineComment: "//" + }; + }); + + function words(str) { + var obj = {}, words = str.split(" "); + for (var i=0; i<words.length; ++i) + obj[words[i]] = true; + return obj; + } + + var modelicaKeywords = "algorithm and annotation assert block break class connect connector constant constrainedby der discrete each else elseif elsewhen encapsulated end enumeration equation expandable extends external false final flow for function if import impure in initial inner input loop model not operator or outer output package parameter partial protected public pure record redeclare replaceable return stream then true type when while within"; + var modelicaBuiltin = "abs acos actualStream asin atan atan2 cardinality ceil cos cosh delay div edge exp floor getInstanceName homotopy inStream integer log log10 mod pre reinit rem semiLinear sign sin sinh spatialDistribution sqrt tan tanh"; + var modelicaAtoms = "Real Boolean Integer String"; + + function def(mimes, mode) { + if (typeof mimes == "string") + mimes = [mimes]; + + var words = []; + + function add(obj) { + if (obj) + for (var prop in obj) + if (obj.hasOwnProperty(prop)) + words.push(prop); + } + + add(mode.keywords); + add(mode.builtin); + add(mode.atoms); + + if (words.length) { + mode.helperType = mimes[0]; + CodeMirror.registerHelper("hintWords", mimes[0], words); + } + + for (var i=0; i<mimes.length; ++i) + CodeMirror.defineMIME(mimes[i], mode); + } + + def(["text/x-modelica"], { + name: "modelica", + keywords: words(modelicaKeywords), + builtin: words(modelicaBuiltin), + atoms: words(modelicaAtoms) + }); +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mscgen/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mscgen/index.html new file mode 100644 index 0000000..8c28ee6 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mscgen/index.html @@ -0,0 +1,151 @@ +<!doctype html> + +<title>CodeMirror: MscGen mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="mscgen.js"></script> +<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">MscGen</a> + </ul> +</div> + +<article> +<h2>MscGen mode</h2> + +<div><textarea id="mscgen-code"> +# Sample mscgen program +# See http://www.mcternan.me.uk/mscgen or +# https://sverweij.github.io/mscgen_js for more samples +msc { + # options + hscale="1.2"; + + # entities/ lifelines + a [label="Entity A"], + b [label="Entity B", linecolor="red", arclinecolor="red", textbgcolor="pink"], + c [label="Entity C"]; + + # arcs/ messages + a => c [label="doSomething(args)"]; + b => c [label="doSomething(args)"]; + c >> * [label="everyone asked me", arcskip="1"]; + c =>> c [label="doing something"]; + c -x * [label="report back", arcskip="1"]; + |||; + --- [label="shows's over, however ..."]; + b => a [label="did you see c doing something?"]; + a -> b [label="nope"]; + b :> a [label="shall we ask again?"]; + a => b [label="naah"]; + ...; +} +</textarea></div> + +<h2>Xù mode</h2> + +<div><textarea id="xu-code"> +# Xù - expansions to MscGen to support inline expressions +# https://github.com/sverweij/mscgen_js/blob/master/wikum/xu.md +# More samples: https://sverweij.github.io/mscgen_js +msc { + hscale="0.8", + width="700"; + + a, + b [label="change store"], + c, + d [label="necro queue"], + e [label="natalis queue"], + f; + + a =>> b [label="get change list()"]; + a alt f [label="changes found"] { /* alt is a xu specific keyword*/ + b >> a [label="list of changes"]; + a =>> c [label="cull old stuff (list of changes)"]; + b loop e [label="for each change"] { // loop is xu specific as well... + /* + * Interesting stuff happens. + */ + c =>> b [label="get change()"]; + b >> c [label="change"]; + c alt e [label="change too old"] { + c =>> d [label="queue(change)"]; + --- [label="change newer than latest run"]; + c =>> e [label="queue(change)"]; + --- [label="all other cases"]; + ||| [label="leave well alone"]; + }; + }; + + c >> a [label="done + processing"]; + + /* shucks! nothing found ...*/ + --- [label="nothing found"]; + b >> a [label="nothing"]; + a note a [label="silent exit"]; + }; +} +</textarea></div> + +<h2>MsGenny mode</h2> +<div><textarea id="msgenny-code"> +# MsGenny - simplified version of MscGen / Xù +# https://github.com/sverweij/mscgen_js/blob/master/wikum/msgenny.md +# More samples: https://sverweij.github.io/mscgen_js +a -> b : a -> b (signal); +a => b : a => b (method); +b >> a : b >> a (return value); +a =>> b : a =>> b (callback); +a -x b : a -x b (lost); +a :> b : a :> b (emphasis); +a .. b : a .. b (dotted); +a -- b : "a -- b straight line"; +a note a : a note a\n(note), +b box b : b box b\n(action); +a rbox a : a rbox a\n(reference), +b abox b : b abox b\n(state/ condition); +||| : ||| (empty row); +... : ... (omitted row); +--- : --- (comment); +</textarea></div> + + <p> + Simple mode for highlighting MscGen and two derived sequence + chart languages. + </p> + + <script> + var mscgenEditor = CodeMirror.fromTextArea(document.getElementById("mscgen-code"), { + lineNumbers: true, + mode: "text/x-mscgen", + }); + var xuEditor = CodeMirror.fromTextArea(document.getElementById("xu-code"), { + lineNumbers: true, + mode: "text/x-xu", + }); + var msgennyEditor = CodeMirror.fromTextArea(document.getElementById("msgenny-code"), { + lineNumbers: true, + mode: "text/x-msgenny", + }); + </script> + + <p><strong>MIME types defined:</strong> + <code>text/x-mscgen</code> + <code>text/x-xu</code> + <code>text/x-msgenny</code> + </p> + +</article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mscgen/mscgen.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mscgen/mscgen.js new file mode 100644 index 0000000..d61b470 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mscgen/mscgen.js @@ -0,0 +1,169 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +// mode(s) for the sequence chart dsl's mscgen, xù and msgenny +// For more information on mscgen, see the site of the original author: +// http://www.mcternan.me.uk/mscgen +// +// This mode for mscgen and the two derivative languages were +// originally made for use in the mscgen_js interpreter +// (https://sverweij.github.io/mscgen_js) + +(function(mod) { + if ( typeof exports == "object" && typeof module == "object")// CommonJS + mod(require("../../lib/codemirror")); + else if ( typeof define == "function" && define.amd)// AMD + define(["../../lib/codemirror"], mod); + else// Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { + "use strict"; + + var languages = { + mscgen: { + "keywords" : ["msc"], + "options" : ["hscale", "width", "arcgradient", "wordwraparcs"], + "attributes" : ["label", "idurl", "id", "url", "linecolor", "linecolour", "textcolor", "textcolour", "textbgcolor", "textbgcolour", "arclinecolor", "arclinecolour", "arctextcolor", "arctextcolour", "arctextbgcolor", "arctextbgcolour", "arcskip"], + "brackets" : ["\\{", "\\}"], // [ and ] are brackets too, but these get handled in with lists + "arcsWords" : ["note", "abox", "rbox", "box"], + "arcsOthers" : ["\\|\\|\\|", "\\.\\.\\.", "---", "--", "<->", "==", "<<=>>", "<=>", "\\.\\.", "<<>>", "::", "<:>", "->", "=>>", "=>", ">>", ":>", "<-", "<<=", "<=", "<<", "<:", "x-", "-x"], + "singlecomment" : ["//", "#"], + "operators" : ["="] + }, + xu: { + "keywords" : ["msc"], + "options" : ["hscale", "width", "arcgradient", "wordwraparcs", "watermark"], + "attributes" : ["label", "idurl", "id", "url", "linecolor", "linecolour", "textcolor", "textcolour", "textbgcolor", "textbgcolour", "arclinecolor", "arclinecolour", "arctextcolor", "arctextcolour", "arctextbgcolor", "arctextbgcolour", "arcskip"], + "brackets" : ["\\{", "\\}"], // [ and ] are brackets too, but these get handled in with lists + "arcsWords" : ["note", "abox", "rbox", "box", "alt", "else", "opt", "break", "par", "seq", "strict", "neg", "critical", "ignore", "consider", "assert", "loop", "ref", "exc"], + "arcsOthers" : ["\\|\\|\\|", "\\.\\.\\.", "---", "--", "<->", "==", "<<=>>", "<=>", "\\.\\.", "<<>>", "::", "<:>", "->", "=>>", "=>", ">>", ":>", "<-", "<<=", "<=", "<<", "<:", "x-", "-x"], + "singlecomment" : ["//", "#"], + "operators" : ["="] + }, + msgenny: { + "keywords" : null, + "options" : ["hscale", "width", "arcgradient", "wordwraparcs", "watermark"], + "attributes" : null, + "brackets" : ["\\{", "\\}"], + "arcsWords" : ["note", "abox", "rbox", "box", "alt", "else", "opt", "break", "par", "seq", "strict", "neg", "critical", "ignore", "consider", "assert", "loop", "ref", "exc"], + "arcsOthers" : ["\\|\\|\\|", "\\.\\.\\.", "---", "--", "<->", "==", "<<=>>", "<=>", "\\.\\.", "<<>>", "::", "<:>", "->", "=>>", "=>", ">>", ":>", "<-", "<<=", "<=", "<<", "<:", "x-", "-x"], + "singlecomment" : ["//", "#"], + "operators" : ["="] + } + } + + CodeMirror.defineMode("mscgen", function(_, modeConfig) { + var language = languages[modeConfig && modeConfig.language || "mscgen"] + return { + startState: startStateFn, + copyState: copyStateFn, + token: produceTokenFunction(language), + lineComment : "#", + blockCommentStart : "/*", + blockCommentEnd : "*/" + }; + }); + + CodeMirror.defineMIME("text/x-mscgen", "mscgen"); + CodeMirror.defineMIME("text/x-xu", {name: "mscgen", language: "xu"}); + CodeMirror.defineMIME("text/x-msgenny", {name: "mscgen", language: "msgenny"}); + + function wordRegexpBoundary(pWords) { + return new RegExp("\\b(" + pWords.join("|") + ")\\b", "i"); + } + + function wordRegexp(pWords) { + return new RegExp("(" + pWords.join("|") + ")", "i"); + } + + function startStateFn() { + return { + inComment : false, + inString : false, + inAttributeList : false, + inScript : false + }; + } + + function copyStateFn(pState) { + return { + inComment : pState.inComment, + inString : pState.inString, + inAttributeList : pState.inAttributeList, + inScript : pState.inScript + }; + } + + function produceTokenFunction(pConfig) { + + return function(pStream, pState) { + if (pStream.match(wordRegexp(pConfig.brackets), true, true)) { + return "bracket"; + } + /* comments */ + if (!pState.inComment) { + if (pStream.match(/\/\*[^\*\/]*/, true, true)) { + pState.inComment = true; + return "comment"; + } + if (pStream.match(wordRegexp(pConfig.singlecomment), true, true)) { + pStream.skipToEnd(); + return "comment"; + } + } + if (pState.inComment) { + if (pStream.match(/[^\*\/]*\*\//, true, true)) + pState.inComment = false; + else + pStream.skipToEnd(); + return "comment"; + } + /* strings */ + if (!pState.inString && pStream.match(/\"(\\\"|[^\"])*/, true, true)) { + pState.inString = true; + return "string"; + } + if (pState.inString) { + if (pStream.match(/[^\"]*\"/, true, true)) + pState.inString = false; + else + pStream.skipToEnd(); + return "string"; + } + /* keywords & operators */ + if (!!pConfig.keywords && pStream.match(wordRegexpBoundary(pConfig.keywords), true, true)) + return "keyword"; + + if (pStream.match(wordRegexpBoundary(pConfig.options), true, true)) + return "keyword"; + + if (pStream.match(wordRegexpBoundary(pConfig.arcsWords), true, true)) + return "keyword"; + + if (pStream.match(wordRegexp(pConfig.arcsOthers), true, true)) + return "keyword"; + + if (!!pConfig.operators && pStream.match(wordRegexp(pConfig.operators), true, true)) + return "operator"; + + /* attribute lists */ + if (!pConfig.inAttributeList && !!pConfig.attributes && pStream.match(/\[/, true, true)) { + pConfig.inAttributeList = true; + return "bracket"; + } + if (pConfig.inAttributeList) { + if (pConfig.attributes !== null && pStream.match(wordRegexpBoundary(pConfig.attributes), true, true)) { + return "attribute"; + } + if (pStream.match(/]/, true, true)) { + pConfig.inAttributeList = false; + return "bracket"; + } + } + + pStream.next(); + return "base"; + }; + } + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mscgen/mscgen_test.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mscgen/mscgen_test.js new file mode 100644 index 0000000..e319a39 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mscgen/mscgen_test.js @@ -0,0 +1,75 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function() { + var mode = CodeMirror.getMode({indentUnit: 2}, "mscgen"); + function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); } + + MT("empty chart", + "[keyword msc][bracket {]", + "[base ]", + "[bracket }]" + ); + + MT("comments", + "[comment // a single line comment]", + "[comment # another single line comment /* and */ ignored here]", + "[comment /* A multi-line comment even though it contains]", + "[comment msc keywords and \"quoted text\"*/]"); + + MT("strings", + "[string \"// a string\"]", + "[string \"a string running over]", + "[string two lines\"]", + "[string \"with \\\"escaped quote\"]" + ); + + MT("xù/ msgenny keywords classify as 'base'", + "[base watermark]", + "[base alt loop opt ref else break par seq assert]" + ); + + MT("mscgen options classify as keyword", + "[keyword hscale]", "[keyword width]", "[keyword arcgradient]", "[keyword wordwraparcs]" + ); + + MT("mscgen arcs classify as keyword", + "[keyword note]","[keyword abox]","[keyword rbox]","[keyword box]", + "[keyword |||...---]", "[keyword ..--==::]", + "[keyword ->]", "[keyword <-]", "[keyword <->]", + "[keyword =>]", "[keyword <=]", "[keyword <=>]", + "[keyword =>>]", "[keyword <<=]", "[keyword <<=>>]", + "[keyword >>]", "[keyword <<]", "[keyword <<>>]", + "[keyword -x]", "[keyword x-]", "[keyword -X]", "[keyword X-]", + "[keyword :>]", "[keyword <:]", "[keyword <:>]" + ); + + MT("within an attribute list, attributes classify as attribute", + "[bracket [[][attribute label]", + "[attribute id]","[attribute url]","[attribute idurl]", + "[attribute linecolor]","[attribute linecolour]","[attribute textcolor]","[attribute textcolour]","[attribute textbgcolor]","[attribute textbgcolour]", + "[attribute arclinecolor]","[attribute arclinecolour]","[attribute arctextcolor]","[attribute arctextcolour]","[attribute arctextbgcolor]","[attribute arctextbgcolour]", + "[attribute arcskip][bracket ]]]" + ); + + MT("outside an attribute list, attributes classify as base", + "[base label]", + "[base id]","[base url]","[base idurl]", + "[base linecolor]","[base linecolour]","[base textcolor]","[base textcolour]","[base textbgcolor]","[base textbgcolour]", + "[base arclinecolor]","[base arclinecolour]","[base arctextcolor]","[base arctextcolour]","[base arctextbgcolor]","[base arctextbgcolour]", + "[base arcskip]" + ); + + MT("a typical program", + "[comment # typical mscgen program]", + "[keyword msc][base ][bracket {]", + "[keyword wordwraparcs][operator =][string \"true\"][base , ][keyword hscale][operator =][string \"0.8\"][keyword arcgradient][operator =][base 30;]", + "[base a][bracket [[][attribute label][operator =][string \"Entity A\"][bracket ]]][base ,]", + "[base b][bracket [[][attribute label][operator =][string \"Entity B\"][bracket ]]][base ,]", + "[base c][bracket [[][attribute label][operator =][string \"Entity C\"][bracket ]]][base ;]", + "[base a ][keyword =>>][base b][bracket [[][attribute label][operator =][string \"Hello entity B\"][bracket ]]][base ;]", + "[base a ][keyword <<][base b][bracket [[][attribute label][operator =][string \"Here's an answer dude!\"][bracket ]]][base ;]", + "[base c ][keyword :>][base *][bracket [[][attribute label][operator =][string \"What about me?\"][base , ][attribute textcolor][operator =][base red][bracket ]]][base ;]", + "[bracket }]" + ); +})(); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mscgen/msgenny_test.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mscgen/msgenny_test.js new file mode 100644 index 0000000..80173de --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mscgen/msgenny_test.js @@ -0,0 +1,71 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function() { + var mode = CodeMirror.getMode({indentUnit: 2}, "text/x-msgenny"); + function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1), "msgenny"); } + + MT("comments", + "[comment // a single line comment]", + "[comment # another single line comment /* and */ ignored here]", + "[comment /* A multi-line comment even though it contains]", + "[comment msc keywords and \"quoted text\"*/]"); + + MT("strings", + "[string \"// a string\"]", + "[string \"a string running over]", + "[string two lines\"]", + "[string \"with \\\"escaped quote\"]" + ); + + MT("xù/ msgenny keywords classify as 'keyword'", + "[keyword watermark]", + "[keyword alt]","[keyword loop]","[keyword opt]","[keyword ref]","[keyword else]","[keyword break]","[keyword par]","[keyword seq]","[keyword assert]" + ); + + MT("mscgen options classify as keyword", + "[keyword hscale]", "[keyword width]", "[keyword arcgradient]", "[keyword wordwraparcs]" + ); + + MT("mscgen arcs classify as keyword", + "[keyword note]","[keyword abox]","[keyword rbox]","[keyword box]", + "[keyword |||...---]", "[keyword ..--==::]", + "[keyword ->]", "[keyword <-]", "[keyword <->]", + "[keyword =>]", "[keyword <=]", "[keyword <=>]", + "[keyword =>>]", "[keyword <<=]", "[keyword <<=>>]", + "[keyword >>]", "[keyword <<]", "[keyword <<>>]", + "[keyword -x]", "[keyword x-]", "[keyword -X]", "[keyword X-]", + "[keyword :>]", "[keyword <:]", "[keyword <:>]" + ); + + MT("within an attribute list, mscgen/ xù attributes classify as base", + "[base [[label]", + "[base idurl id url]", + "[base linecolor linecolour textcolor textcolour textbgcolor textbgcolour]", + "[base arclinecolor arclinecolour arctextcolor arctextcolour arctextbgcolor arctextbgcolour]", + "[base arcskip]]]" + ); + + MT("outside an attribute list, mscgen/ xù attributes classify as base", + "[base label]", + "[base idurl id url]", + "[base linecolor linecolour textcolor textcolour textbgcolor textbgcolour]", + "[base arclinecolor arclinecolour arctextcolor arctextcolour arctextbgcolor arctextbgcolour]", + "[base arcskip]" + ); + + MT("a typical program", + "[comment # typical msgenny program]", + "[keyword wordwraparcs][operator =][string \"true\"][base , ][keyword hscale][operator =][string \"0.8\"][base , ][keyword arcgradient][operator =][base 30;]", + "[base a : ][string \"Entity A\"][base ,]", + "[base b : Entity B,]", + "[base c : Entity C;]", + "[base a ][keyword =>>][base b: ][string \"Hello entity B\"][base ;]", + "[base a ][keyword alt][base c][bracket {]", + "[base a ][keyword <<][base b: ][string \"Here's an answer dude!\"][base ;]", + "[keyword ---][base : ][string \"sorry, won't march - comm glitch\"]", + "[base a ][keyword x-][base b: ][string \"Here's an answer dude! (won't arrive...)\"][base ;]", + "[bracket }]", + "[base c ][keyword :>][base *: What about me?;]" + ); +})(); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mscgen/xu_test.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mscgen/xu_test.js new file mode 100644 index 0000000..f9a50f0 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mscgen/xu_test.js @@ -0,0 +1,75 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function() { + var mode = CodeMirror.getMode({indentUnit: 2}, "text/x-xu"); + function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1), "xu"); } + + MT("empty chart", + "[keyword msc][bracket {]", + "[base ]", + "[bracket }]" + ); + + MT("comments", + "[comment // a single line comment]", + "[comment # another single line comment /* and */ ignored here]", + "[comment /* A multi-line comment even though it contains]", + "[comment msc keywords and \"quoted text\"*/]"); + + MT("strings", + "[string \"// a string\"]", + "[string \"a string running over]", + "[string two lines\"]", + "[string \"with \\\"escaped quote\"]" + ); + + MT("xù/ msgenny keywords classify as 'keyword'", + "[keyword watermark]", + "[keyword alt]","[keyword loop]","[keyword opt]","[keyword ref]","[keyword else]","[keyword break]","[keyword par]","[keyword seq]","[keyword assert]" + ); + + MT("mscgen options classify as keyword", + "[keyword hscale]", "[keyword width]", "[keyword arcgradient]", "[keyword wordwraparcs]" + ); + + MT("mscgen arcs classify as keyword", + "[keyword note]","[keyword abox]","[keyword rbox]","[keyword box]", + "[keyword |||...---]", "[keyword ..--==::]", + "[keyword ->]", "[keyword <-]", "[keyword <->]", + "[keyword =>]", "[keyword <=]", "[keyword <=>]", + "[keyword =>>]", "[keyword <<=]", "[keyword <<=>>]", + "[keyword >>]", "[keyword <<]", "[keyword <<>>]", + "[keyword -x]", "[keyword x-]", "[keyword -X]", "[keyword X-]", + "[keyword :>]", "[keyword <:]", "[keyword <:>]" + ); + + MT("within an attribute list, attributes classify as attribute", + "[bracket [[][attribute label]", + "[attribute id]","[attribute url]","[attribute idurl]", + "[attribute linecolor]","[attribute linecolour]","[attribute textcolor]","[attribute textcolour]","[attribute textbgcolor]","[attribute textbgcolour]", + "[attribute arclinecolor]","[attribute arclinecolour]","[attribute arctextcolor]","[attribute arctextcolour]","[attribute arctextbgcolor]","[attribute arctextbgcolour]", + "[attribute arcskip][bracket ]]]" + ); + + MT("outside an attribute list, attributes classify as base", + "[base label]", + "[base id]","[base url]","[base idurl]", + "[base linecolor]","[base linecolour]","[base textcolor]","[base textcolour]","[base textbgcolor]","[base textbgcolour]", + "[base arclinecolor]","[base arclinecolour]","[base arctextcolor]","[base arctextcolour]","[base arctextbgcolor]","[base arctextbgcolour]", + "[base arcskip]" + ); + + MT("a typical program", + "[comment # typical mscgen program]", + "[keyword msc][base ][bracket {]", + "[keyword wordwraparcs][operator =][string \"true\"][keyword hscale][operator =][string \"0.8\"][keyword arcgradient][operator =][base 30;]", + "[base a][bracket [[][attribute label][operator =][string \"Entity A\"][bracket ]]][base ,]", + "[base b][bracket [[][attribute label][operator =][string \"Entity B\"][bracket ]]][base ,]", + "[base c][bracket [[][attribute label][operator =][string \"Entity C\"][bracket ]]][base ;]", + "[base a ][keyword =>>][base b][bracket [[][attribute label][operator =][string \"Hello entity B\"][bracket ]]][base ;]", + "[base a ][keyword <<][base b][bracket [[][attribute label][operator =][string \"Here's an answer dude!\"][bracket ]]][base ;]", + "[base c ][keyword :>][base *][bracket [[][attribute label][operator =][string \"What about me?\"][base , ][attribute textcolor][operator =][base red][bracket ]]][base ;]", + "[bracket }]" + ); +})(); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mumps/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mumps/index.html new file mode 100644 index 0000000..b1f92c2 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mumps/index.html @@ -0,0 +1,85 @@ +<!doctype html> + +<title>CodeMirror: MUMPS mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="mumps.js"></script> +<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">MUMPS</a> + </ul> +</div> + +<article> +<h2>MUMPS mode</h2> + + +<div><textarea id="code" name="code"> + ; Lloyd Milligan + ; 03-30-2015 + ; + ; MUMPS support for Code Mirror - Excerpts below from routine ^XUS + ; +CHECKAV(X1) ;Check A/V code return DUZ or Zero. (Called from XUSRB) + N %,%1,X,Y,IEN,DA,DIK + S IEN=0 + ;Start CCOW + I $E(X1,1,7)="~~TOK~~" D Q:IEN>0 IEN + . I $E(X1,8,9)="~1" S IEN=$$CHKASH^XUSRB4($E(X1,8,255)) + . I $E(X1,8,9)="~2" S IEN=$$CHKCCOW^XUSRB4($E(X1,8,255)) + . Q + ;End CCOW + S X1=$$UP(X1) S:X1[":" XUTT=1,X1=$TR(X1,":") + S X=$P(X1,";") Q:X="^" -1 S:XUF %1="Access: "_X + Q:X'?1.20ANP 0 + S X=$$EN^XUSHSH(X) I '$D(^VA(200,"A",X)) D LBAV Q 0 + S %1="",IEN=$O(^VA(200,"A",X,0)),XUF(.3)=IEN D USER(IEN) + S X=$P(X1,";",2) S:XUF %1="Verify: "_X S X=$$EN^XUSHSH(X) + I $P(XUSER(1),"^",2)'=X D LBAV Q 0 + I $G(XUFAC(1)) S DIK="^XUSEC(4,",DA=XUFAC(1) D ^DIK + Q IEN + ; + ; Spell out commands + ; +SET2() ;EF. Return error code (also called from XUSRB) + NEW %,X + SET XUNOW=$$HTFM^XLFDT($H),DT=$P(XUNOW,".") + KILL DUZ,XUSER + SET (DUZ,DUZ(2))=0,(DUZ(0),DUZ("AG"),XUSER(0),XUSER(1),XUTT,%UCI)="" + SET %=$$INHIBIT^XUSRB() IF %>0 QUIT % + SET X=$G(^%ZIS(1,XUDEV,"XUS")),XU1=$G(^(1)) + IF $L(X) FOR I=1:1:15 IF $L($P(X,U,I)) SET $P(XOPT,U,I)=$P(X,U,I) + SET DTIME=600 + IF '$P(XOPT,U,11),$D(^%ZIS(1,XUDEV,90)),^(90)>2800000,^(90)'>DT QUIT 8 + QUIT 0 + ; + ; Spell out commands and functions + ; + IF $PIECE(XUSER(0),U,11),$PIECE(XUSER(0),U,11)'>DT QUIT 11 ;Terminated + IF $DATA(DUZ("ASH")) QUIT 0 ;If auto handle, Allow to sign-on p434 + IF $PIECE(XUSER(0),U,7) QUIT 5 ;Disuser flag set + IF '$LENGTH($PIECE(XUSER(1),U,2)) QUIT 21 ;p419, p434 + Q 0 + ; + </textarea></div> + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + mode: "mumps", + lineNumbers: true, + lineWrapping: true + }); + </script> + + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mumps/mumps.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mumps/mumps.js new file mode 100644 index 0000000..469f8c3 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/mumps/mumps.js @@ -0,0 +1,148 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +/* + This MUMPS Language script was constructed using vbscript.js as a template. +*/ + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { + "use strict"; + + CodeMirror.defineMode("mumps", function() { + function wordRegexp(words) { + return new RegExp("^((" + words.join(")|(") + "))\\b", "i"); + } + + var singleOperators = new RegExp("^[\\+\\-\\*/&#!_?\\\\<>=\\'\\[\\]]"); + var doubleOperators = new RegExp("^(('=)|(<=)|(>=)|('>)|('<)|([[)|(]])|(^$))"); + var singleDelimiters = new RegExp("^[\\.,:]"); + var brackets = new RegExp("[()]"); + var identifiers = new RegExp("^[%A-Za-z][A-Za-z0-9]*"); + var commandKeywords = ["break","close","do","else","for","goto", "halt", "hang", "if", "job","kill","lock","merge","new","open", "quit", "read", "set", "tcommit", "trollback", "tstart", "use", "view", "write", "xecute", "b","c","d","e","f","g", "h", "i", "j","k","l","m","n","o", "q", "r", "s", "tc", "tro", "ts", "u", "v", "w", "x"]; + // The following list includes instrinsic functions _and_ special variables + var intrinsicFuncsWords = ["\\$ascii", "\\$char", "\\$data", "\\$ecode", "\\$estack", "\\$etrap", "\\$extract", "\\$find", "\\$fnumber", "\\$get", "\\$horolog", "\\$io", "\\$increment", "\\$job", "\\$justify", "\\$length", "\\$name", "\\$next", "\\$order", "\\$piece", "\\$qlength", "\\$qsubscript", "\\$query", "\\$quit", "\\$random", "\\$reverse", "\\$select", "\\$stack", "\\$test", "\\$text", "\\$translate", "\\$view", "\\$x", "\\$y", "\\$a", "\\$c", "\\$d", "\\$e", "\\$ec", "\\$es", "\\$et", "\\$f", "\\$fn", "\\$g", "\\$h", "\\$i", "\\$j", "\\$l", "\\$n", "\\$na", "\\$o", "\\$p", "\\$q", "\\$ql", "\\$qs", "\\$r", "\\$re", "\\$s", "\\$st", "\\$t", "\\$tr", "\\$v", "\\$z"]; + var intrinsicFuncs = wordRegexp(intrinsicFuncsWords); + var command = wordRegexp(commandKeywords); + + function tokenBase(stream, state) { + if (stream.sol()) { + state.label = true; + state.commandMode = 0; + } + + // The <space> character has meaning in MUMPS. Ignoring consecutive + // spaces would interfere with interpreting whether the next non-space + // character belongs to the command or argument context. + + // Examine each character and update a mode variable whose interpretation is: + // >0 => command 0 => argument <0 => command post-conditional + var ch = stream.peek(); + + if (ch == " " || ch == "\t") { // Pre-process <space> + state.label = false; + if (state.commandMode == 0) + state.commandMode = 1; + else if ((state.commandMode < 0) || (state.commandMode == 2)) + state.commandMode = 0; + } else if ((ch != ".") && (state.commandMode > 0)) { + if (ch == ":") + state.commandMode = -1; // SIS - Command post-conditional + else + state.commandMode = 2; + } + + // Do not color parameter list as line tag + if ((ch === "(") || (ch === "\u0009")) + state.label = false; + + // MUMPS comment starts with ";" + if (ch === ";") { + stream.skipToEnd(); + return "comment"; + } + + // Number Literals // SIS/RLM - MUMPS permits canonic number followed by concatenate operator + if (stream.match(/^[-+]?\d+(\.\d+)?([eE][-+]?\d+)?/)) + return "number"; + + // Handle Strings + if (ch == '"') { + if (stream.skipTo('"')) { + stream.next(); + return "string"; + } else { + stream.skipToEnd(); + return "error"; + } + } + + // Handle operators and Delimiters + if (stream.match(doubleOperators) || stream.match(singleOperators)) + return "operator"; + + // Prevents leading "." in DO block from falling through to error + if (stream.match(singleDelimiters)) + return null; + + if (brackets.test(ch)) { + stream.next(); + return "bracket"; + } + + if (state.commandMode > 0 && stream.match(command)) + return "variable-2"; + + if (stream.match(intrinsicFuncs)) + return "builtin"; + + if (stream.match(identifiers)) + return "variable"; + + // Detect dollar-sign when not a documented intrinsic function + // "^" may introduce a GVN or SSVN - Color same as function + if (ch === "$" || ch === "^") { + stream.next(); + return "builtin"; + } + + // MUMPS Indirection + if (ch === "@") { + stream.next(); + return "string-2"; + } + + if (/[\w%]/.test(ch)) { + stream.eatWhile(/[\w%]/); + return "variable"; + } + + // Handle non-detected items + stream.next(); + return "error"; + } + + return { + startState: function() { + return { + label: false, + commandMode: 0 + }; + }, + + token: function(stream, state) { + var style = tokenBase(stream, state); + if (state.label) return "tag"; + return style; + } + }; + }); + + CodeMirror.defineMIME("text/x-mumps", "mumps"); +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/nginx/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/nginx/index.html new file mode 100644 index 0000000..03cf671 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/nginx/index.html @@ -0,0 +1,181 @@ +<!doctype html> +<head> +<title>CodeMirror: NGINX mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="nginx.js"></script> +<style>.CodeMirror {background: #f8f8f8;}</style> + <link rel="stylesheet" href="../../doc/docs.css"> + </head> + + <style> + body { + margin: 0em auto; + } + + .CodeMirror, .CodeMirror-scroll { + height: 600px; + } + </style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">NGINX</a> + </ul> +</div> + +<article> +<h2>NGINX mode</h2> +<form><textarea id="code" name="code" style="height: 800px;"> +server { + listen 173.255.219.235:80; + server_name website.com.au; + rewrite / $scheme://www.$host$request_uri permanent; ## Forcibly prepend a www +} + +server { + listen 173.255.219.235:443; + server_name website.com.au; + rewrite / $scheme://www.$host$request_uri permanent; ## Forcibly prepend a www +} + +server { + + listen 173.255.219.235:80; + server_name www.website.com.au; + + + + root /data/www; + index index.html index.php; + + location / { + index index.html index.php; ## Allow a static html file to be shown first + try_files $uri $uri/ @handler; ## If missing pass the URI to Magento's front handler + expires 30d; ## Assume all files are cachable + } + + ## These locations would be hidden by .htaccess normally + location /app/ { deny all; } + location /includes/ { deny all; } + location /lib/ { deny all; } + location /media/downloadable/ { deny all; } + location /pkginfo/ { deny all; } + location /report/config.xml { deny all; } + location /var/ { deny all; } + + location /var/export/ { ## Allow admins only to view export folder + auth_basic "Restricted"; ## Message shown in login window + auth_basic_user_file /rs/passwords/testfile; ## See /etc/nginx/htpassword + autoindex on; + } + + location /. { ## Disable .htaccess and other hidden files + return 404; + } + + location @handler { ## Magento uses a common front handler + rewrite / /index.php; + } + + location ~ .php/ { ## Forward paths like /js/index.php/x.js to relevant handler + rewrite ^/(.*.php)/ /$1 last; + } + + location ~ \.php$ { + if (!-e $request_filename) { rewrite / /index.php last; } ## Catch 404s that try_files miss + + fastcgi_pass 127.0.0.1:9000; + fastcgi_index index.php; + fastcgi_param PATH_INFO $fastcgi_script_name; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + include /rs/confs/nginx/fastcgi_params; + } + +} + + +server { + + listen 173.255.219.235:443; + server_name website.com.au www.website.com.au; + + root /data/www; + index index.html index.php; + + ssl on; + ssl_certificate /rs/ssl/ssl.crt; + ssl_certificate_key /rs/ssl/ssl.key; + + ssl_session_timeout 5m; + + ssl_protocols SSLv2 SSLv3 TLSv1; + ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP; + ssl_prefer_server_ciphers on; + + + + location / { + index index.html index.php; ## Allow a static html file to be shown first + try_files $uri $uri/ @handler; ## If missing pass the URI to Magento's front handler + expires 30d; ## Assume all files are cachable + } + + ## These locations would be hidden by .htaccess normally + location /app/ { deny all; } + location /includes/ { deny all; } + location /lib/ { deny all; } + location /media/downloadable/ { deny all; } + location /pkginfo/ { deny all; } + location /report/config.xml { deny all; } + location /var/ { deny all; } + + location /var/export/ { ## Allow admins only to view export folder + auth_basic "Restricted"; ## Message shown in login window + auth_basic_user_file htpasswd; ## See /etc/nginx/htpassword + autoindex on; + } + + location /. { ## Disable .htaccess and other hidden files + return 404; + } + + location @handler { ## Magento uses a common front handler + rewrite / /index.php; + } + + location ~ .php/ { ## Forward paths like /js/index.php/x.js to relevant handler + rewrite ^/(.*.php)/ /$1 last; + } + + location ~ .php$ { ## Execute PHP scripts + if (!-e $request_filename) { rewrite /index.php last; } ## Catch 404s that try_files miss + + fastcgi_pass 127.0.0.1:9000; + fastcgi_index index.php; + fastcgi_param PATH_INFO $fastcgi_script_name; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + include /rs/confs/nginx/fastcgi_params; + + fastcgi_param HTTPS on; + } + +} +</textarea></form> + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), {}); + </script> + + <p><strong>MIME types defined:</strong> <code>text/nginx</code>.</p> + + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/nginx/nginx.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/nginx/nginx.js new file mode 100644 index 0000000..00a3224 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/nginx/nginx.js @@ -0,0 +1,178 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("nginx", function(config) { + + function words(str) { + var obj = {}, words = str.split(" "); + for (var i = 0; i < words.length; ++i) obj[words[i]] = true; + return obj; + } + + var keywords = words( + /* ngxDirectiveControl */ "break return rewrite set" + + /* ngxDirective */ " accept_mutex accept_mutex_delay access_log add_after_body add_before_body add_header addition_types aio alias allow ancient_browser ancient_browser_value auth_basic auth_basic_user_file auth_http auth_http_header auth_http_timeout autoindex autoindex_exact_size autoindex_localtime charset charset_types client_body_buffer_size client_body_in_file_only client_body_in_single_buffer client_body_temp_path client_body_timeout client_header_buffer_size client_header_timeout client_max_body_size connection_pool_size create_full_put_path daemon dav_access dav_methods debug_connection debug_points default_type degradation degrade deny devpoll_changes devpoll_events directio directio_alignment empty_gif env epoll_events error_log eventport_events expires fastcgi_bind fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size fastcgi_cache fastcgi_cache_key fastcgi_cache_methods fastcgi_cache_min_uses fastcgi_cache_path fastcgi_cache_use_stale fastcgi_cache_valid fastcgi_catch_stderr fastcgi_connect_timeout fastcgi_hide_header fastcgi_ignore_client_abort fastcgi_ignore_headers fastcgi_index fastcgi_intercept_errors fastcgi_max_temp_file_size fastcgi_next_upstream fastcgi_param fastcgi_pass_header fastcgi_pass_request_body fastcgi_pass_request_headers fastcgi_read_timeout fastcgi_send_lowat fastcgi_send_timeout fastcgi_split_path_info fastcgi_store fastcgi_store_access fastcgi_temp_file_write_size fastcgi_temp_path fastcgi_upstream_fail_timeout fastcgi_upstream_max_fails flv geoip_city geoip_country google_perftools_profiles gzip gzip_buffers gzip_comp_level gzip_disable gzip_hash gzip_http_version gzip_min_length gzip_no_buffer gzip_proxied gzip_static gzip_types gzip_vary gzip_window if_modified_since ignore_invalid_headers image_filter image_filter_buffer image_filter_jpeg_quality image_filter_transparency imap_auth imap_capabilities imap_client_buffer index ip_hash keepalive_requests keepalive_timeout kqueue_changes kqueue_events large_client_header_buffers limit_conn limit_conn_log_level limit_rate limit_rate_after limit_req limit_req_log_level limit_req_zone limit_zone lingering_time lingering_timeout lock_file log_format log_not_found log_subrequest map_hash_bucket_size map_hash_max_size master_process memcached_bind memcached_buffer_size memcached_connect_timeout memcached_next_upstream memcached_read_timeout memcached_send_timeout memcached_upstream_fail_timeout memcached_upstream_max_fails merge_slashes min_delete_depth modern_browser modern_browser_value msie_padding msie_refresh multi_accept open_file_cache open_file_cache_errors open_file_cache_events open_file_cache_min_uses open_file_cache_valid open_log_file_cache output_buffers override_charset perl perl_modules perl_require perl_set pid pop3_auth pop3_capabilities port_in_redirect postpone_gzipping postpone_output protocol proxy proxy_bind proxy_buffer proxy_buffer_size proxy_buffering proxy_buffers proxy_busy_buffers_size proxy_cache proxy_cache_key proxy_cache_methods proxy_cache_min_uses proxy_cache_path proxy_cache_use_stale proxy_cache_valid proxy_connect_timeout proxy_headers_hash_bucket_size proxy_headers_hash_max_size proxy_hide_header proxy_ignore_client_abort proxy_ignore_headers proxy_intercept_errors proxy_max_temp_file_size proxy_method proxy_next_upstream proxy_pass_error_message proxy_pass_header proxy_pass_request_body proxy_pass_request_headers proxy_read_timeout proxy_redirect proxy_send_lowat proxy_send_timeout proxy_set_body proxy_set_header proxy_ssl_session_reuse proxy_store proxy_store_access proxy_temp_file_write_size proxy_temp_path proxy_timeout proxy_upstream_fail_timeout proxy_upstream_max_fails random_index read_ahead real_ip_header recursive_error_pages request_pool_size reset_timedout_connection resolver resolver_timeout rewrite_log rtsig_overflow_events rtsig_overflow_test rtsig_overflow_threshold rtsig_signo satisfy secure_link_secret send_lowat send_timeout sendfile sendfile_max_chunk server_name_in_redirect server_names_hash_bucket_size server_names_hash_max_size server_tokens set_real_ip_from smtp_auth smtp_capabilities smtp_client_buffer smtp_greeting_delay so_keepalive source_charset ssi ssi_ignore_recycled_buffers ssi_min_file_chunk ssi_silent_errors ssi_types ssi_value_length ssl ssl_certificate ssl_certificate_key ssl_ciphers ssl_client_certificate ssl_crl ssl_dhparam ssl_engine ssl_prefer_server_ciphers ssl_protocols ssl_session_cache ssl_session_timeout ssl_verify_client ssl_verify_depth starttls stub_status sub_filter sub_filter_once sub_filter_types tcp_nodelay tcp_nopush thread_stack_size timeout timer_resolution types_hash_bucket_size types_hash_max_size underscores_in_headers uninitialized_variable_warn use user userid userid_domain userid_expires userid_mark userid_name userid_p3p userid_path userid_service valid_referers variables_hash_bucket_size variables_hash_max_size worker_connections worker_cpu_affinity worker_priority worker_processes worker_rlimit_core worker_rlimit_nofile worker_rlimit_sigpending worker_threads working_directory xclient xml_entities xslt_stylesheet xslt_typesdrew@li229-23" + ); + + var keywords_block = words( + /* ngxDirectiveBlock */ "http mail events server types location upstream charset_map limit_except if geo map" + ); + + var keywords_important = words( + /* ngxDirectiveImportant */ "include root server server_name listen internal proxy_pass memcached_pass fastcgi_pass try_files" + ); + + var indentUnit = config.indentUnit, type; + function ret(style, tp) {type = tp; return style;} + + function tokenBase(stream, state) { + + + stream.eatWhile(/[\w\$_]/); + + var cur = stream.current(); + + + if (keywords.propertyIsEnumerable(cur)) { + return "keyword"; + } + else if (keywords_block.propertyIsEnumerable(cur)) { + return "variable-2"; + } + else if (keywords_important.propertyIsEnumerable(cur)) { + return "string-2"; + } + /**/ + + var ch = stream.next(); + if (ch == "@") {stream.eatWhile(/[\w\\\-]/); return ret("meta", stream.current());} + else if (ch == "/" && stream.eat("*")) { + state.tokenize = tokenCComment; + return tokenCComment(stream, state); + } + else if (ch == "<" && stream.eat("!")) { + state.tokenize = tokenSGMLComment; + return tokenSGMLComment(stream, state); + } + else if (ch == "=") ret(null, "compare"); + else if ((ch == "~" || ch == "|") && stream.eat("=")) return ret(null, "compare"); + else if (ch == "\"" || ch == "'") { + state.tokenize = tokenString(ch); + return state.tokenize(stream, state); + } + else if (ch == "#") { + stream.skipToEnd(); + return ret("comment", "comment"); + } + else if (ch == "!") { + stream.match(/^\s*\w*/); + return ret("keyword", "important"); + } + else if (/\d/.test(ch)) { + stream.eatWhile(/[\w.%]/); + return ret("number", "unit"); + } + else if (/[,.+>*\/]/.test(ch)) { + return ret(null, "select-op"); + } + else if (/[;{}:\[\]]/.test(ch)) { + return ret(null, ch); + } + else { + stream.eatWhile(/[\w\\\-]/); + return ret("variable", "variable"); + } + } + + function tokenCComment(stream, state) { + var maybeEnd = false, ch; + while ((ch = stream.next()) != null) { + if (maybeEnd && ch == "/") { + state.tokenize = tokenBase; + break; + } + maybeEnd = (ch == "*"); + } + return ret("comment", "comment"); + } + + function tokenSGMLComment(stream, state) { + var dashes = 0, ch; + while ((ch = stream.next()) != null) { + if (dashes >= 2 && ch == ">") { + state.tokenize = tokenBase; + break; + } + dashes = (ch == "-") ? dashes + 1 : 0; + } + return ret("comment", "comment"); + } + + function tokenString(quote) { + return function(stream, state) { + var escaped = false, ch; + while ((ch = stream.next()) != null) { + if (ch == quote && !escaped) + break; + escaped = !escaped && ch == "\\"; + } + if (!escaped) state.tokenize = tokenBase; + return ret("string", "string"); + }; + } + + return { + startState: function(base) { + return {tokenize: tokenBase, + baseIndent: base || 0, + stack: []}; + }, + + token: function(stream, state) { + if (stream.eatSpace()) return null; + type = null; + var style = state.tokenize(stream, state); + + var context = state.stack[state.stack.length-1]; + if (type == "hash" && context == "rule") style = "atom"; + else if (style == "variable") { + if (context == "rule") style = "number"; + else if (!context || context == "@media{") style = "tag"; + } + + if (context == "rule" && /^[\{\};]$/.test(type)) + state.stack.pop(); + if (type == "{") { + if (context == "@media") state.stack[state.stack.length-1] = "@media{"; + else state.stack.push("{"); + } + else if (type == "}") state.stack.pop(); + else if (type == "@media") state.stack.push("@media"); + else if (context == "{" && type != "comment") state.stack.push("rule"); + return style; + }, + + indent: function(state, textAfter) { + var n = state.stack.length; + if (/^\}/.test(textAfter)) + n -= state.stack[state.stack.length-1] == "rule" ? 2 : 1; + return state.baseIndent + n * indentUnit; + }, + + electricChars: "}" + }; +}); + +CodeMirror.defineMIME("text/x-nginx-conf", "nginx"); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/nsis/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/nsis/index.html new file mode 100644 index 0000000..2afae87 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/nsis/index.html @@ -0,0 +1,80 @@ +<!doctype html> + +<title>CodeMirror: NSIS mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel=stylesheet href=../../lib/codemirror.css> +<script src=../../lib/codemirror.js></script> +<script src="../../addon/mode/simple.js"></script> +<script src="../../addon/edit/matchbrackets.js"></script> +<script src=nsis.js></script> +<style type=text/css> + .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;} +</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">NSIS</a> + </ul> +</div> + +<article> +<h2>NSIS mode</h2> + + +<textarea id=code> +; This is a comment +!ifdef ERROR + !error "Something went wrong" +!endif + +OutFile "demo.exe" +RequestExecutionLevel user +SetDetailsPrint listonly + +!include "LogicLib.nsh" +!include "WinVer.nsh" + +Section -mandatory + + Call logWinVer + + ${If} 1 > 0 + MessageBox MB_OK "Hello world" + ${EndIf} + +SectionEnd + +Function logWinVer + + ${If} ${IsWin10} + DetailPrint "Windows 10!" + ${ElseIf} ${AtLeastWinVista} + DetailPrint "We're post-XP" + ${Else} + DetailPrint "Legacy system" + ${EndIf} + +FunctionEnd +</textarea> + +<script> + var editor = CodeMirror.fromTextArea(document.getElementById('code'), { + mode: 'nsis', + indentWithTabs: true, + smartIndent: true, + lineNumbers: true, + matchBrackets: true + }); +</script> + +<p><strong>MIME types defined:</strong> <code>text/x-nsis</code>.</p> +</article> \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/nsis/nsis.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/nsis/nsis.js new file mode 100644 index 0000000..172207c --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/nsis/nsis.js @@ -0,0 +1,95 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +// Author: Jan T. Sott (http://github.com/idleberg) + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror"), require("../../addon/mode/simple")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror", "../../addon/mode/simple"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineSimpleMode("nsis",{ + start:[ + // Numbers + {regex: /(?:[+-]?)(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\d+.?\d*)/, token: "number"}, + + // Strings + { regex: /"(?:[^\\"]|\\.)*"?/, token: "string" }, + { regex: /'(?:[^\\']|\\.)*'?/, token: "string" }, + { regex: /`(?:[^\\`]|\\.)*`?/, token: "string" }, + + // Compile Time Commands + {regex: /(?:\!(include|addincludedir|addplugindir|appendfile|cd|delfile|echo|error|execute|packhdr|finalize|getdllversion|system|tempfile|warning|verbose|define|undef|insertmacro|makensis|searchparse|searchreplace))\b/, token: "keyword"}, + + // Conditional Compilation + {regex: /(?:\!(if(?:n?def)?|ifmacron?def|macro))\b/, token: "keyword", indent: true}, + {regex: /(?:\!(else|endif|macroend))\b/, token: "keyword", dedent: true}, + + // Runtime Commands + {regex: /\b(?:Abort|AddBrandingImage|AddSize|AllowRootDirInstall|AllowSkipFiles|AutoCloseWindow|BGFont|BGGradient|BrandingText|BringToFront|Call|CallInstDLL|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|CRCCheck|CreateDirectory|CreateFont|CreateShortCut|Delete|DeleteINISec|DeleteINIStr|DeleteRegKey|DeleteRegValue|DetailPrint|DetailsButtonText|DirText|DirVar|DirVerify|EnableWindow|EnumRegKey|EnumRegValue|Exch|Exec|ExecShell|ExecWait|ExpandEnvStrings|File|FileBufSize|FileClose|FileErrorText|FileOpen|FileRead|FileReadByte|FileReadUTF16LE|FileReadWord|FileWriteUTF16LE|FileSeek|FileWrite|FileWriteByte|FileWriteWord|FindClose|FindFirst|FindNext|FindWindow|FlushINI|GetCurInstType|GetCurrentAddress|GetDlgItem|GetDLLVersion|GetDLLVersionLocal|GetErrorLevel|GetFileTime|GetFileTimeLocal|GetFullPathName|GetFunctionAddress|GetInstDirError|GetLabelAddress|GetTempFileName|Goto|HideWindow|Icon|IfAbort|IfErrors|IfFileExists|IfRebootFlag|IfSilent|InitPluginsDir|InstallButtonText|InstallColors|InstallDir|InstallDirRegKey|InstProgressFlags|InstType|InstTypeGetText|InstTypeSetText|IntCmp|IntCmpU|IntFmt|IntOp|IsWindow|LangString|LicenseBkColor|LicenseData|LicenseForceSelection|LicenseLangString|LicenseText|LoadLanguageFile|LockWindow|LogSet|LogText|ManifestDPIAware|ManifestSupportedOS|MessageBox|MiscButtonText|Name|Nop|OutFile|Page|PageCallbacks|Pop|Push|Quit|ReadEnvStr|ReadINIStr|ReadRegDWORD|ReadRegStr|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|RMDir|SearchPath|SectionGetFlags|SectionGetInstTypes|SectionGetSize|SectionGetText|SectionIn|SectionSetFlags|SectionSetInstTypes|SectionSetSize|SectionSetText|SendMessage|SetAutoClose|SetBrandingImage|SetCompress|SetCompressor|SetCompressorDictSize|SetCtlColors|SetCurInstType|SetDatablockOptimize|SetDateSave|SetDetailsPrint|SetDetailsView|SetErrorLevel|SetErrors|SetFileAttributes|SetFont|SetOutPath|SetOverwrite|SetPluginUnload|SetRebootFlag|SetRegView|SetShellVarContext|SetSilent|ShowInstDetails|ShowUninstDetails|ShowWindow|SilentInstall|SilentUnInstall|Sleep|SpaceTexts|StrCmp|StrCmpS|StrCpy|StrLen|SubCaption|Unicode|UninstallButtonText|UninstallCaption|UninstallIcon|UninstallSubCaption|UninstallText|UninstPage|UnRegDLL|Var|VIAddVersionKey|VIFileVersion|VIProductVersion|WindowIcon|WriteINIStr|WriteRegBin|WriteRegDWORD|WriteRegExpandStr|WriteRegStr|WriteUninstaller|XPStyle)\b/, token: "keyword"}, + {regex: /\b(?:Function|PageEx|Section(?:Group)?)\b/, token: "keyword", indent: true}, + {regex: /\b(?:(Function|PageEx|Section(?:Group)?)End)\b/, token: "keyword", dedent: true}, + + // Command Options + {regex: /\b(?:ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HIDDEN|HKCC|HKCR|HKCU|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM|HKPD|HKU|IDABORT|IDCANCEL|IDD_DIR|IDD_INST|IDD_INSTFILES|IDD_LICENSE|IDD_SELCOM|IDD_UNINST|IDD_VERIFY|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|MB_YESNOCANCEL|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SW_HIDE|SW_SHOWDEFAULT|SW_SHOWMAXIMIZED|SW_SHOWMINIMIZED|SW_SHOWNORMAL|SYSTEM|TEMPORARY)\b/, token: "atom"}, + {regex: /\b(?:admin|all|auto|both|bottom|bzip2|components|current|custom|directory|force|hide|highest|ifdiff|ifnewer|instfiles|lastused|leave|left|license|listonly|lzma|nevershow|none|normal|notset|right|show|silent|silentlog|textonly|top|try|un\.components|un\.custom|un\.directory|un\.instfiles|un\.license|uninstConfirm|user|Win10|Win7|Win8|WinVista|zlib)\b/, token: "builtin"}, + + // LogicLib.nsh + {regex: /\$\{(?:And(?:If(?:Not)?|Unless)|Break|Case(?:Else)?|Continue|Default|Do(?:Until|While)?|Else(?:If(?:Not)?|Unless)?|End(?:If|Select|Switch)|Exit(?:Do|For|While)|For(?:Each)?|If(?:Cmd|Not(?:Then)?|Then)?|Loop(?:Until|While)?|Or(?:If(?:Not)?|Unless)|Select|Switch|Unless|While)\}/, token: "variable-2", indent: true}, + + // FileFunc.nsh + {regex: /\$\{(?:BannerTrimPath|DirState|DriveSpace|Get(BaseName|Drives|ExeName|ExePath|FileAttributes|FileExt|FileName|FileVersion|Options|OptionsS|Parameters|Parent|Root|Size|Time)|Locate|RefreshShellIcons)\}/, token: "variable-2", dedent: true}, + + // Memento.nsh + {regex: /\$\{(?:Memento(?:Section(?:Done|End|Restore|Save)?|UnselectedSection))\}/, token: "variable-2", dedent: true}, + + // TextFunc.nsh + {regex: /\$\{(?:Config(?:Read|ReadS|Write|WriteS)|File(?:Join|ReadFromEnd|Recode)|Line(?:Find|Read|Sum)|Text(?:Compare|CompareS)|TrimNewLines)\}/, token: "variable-2", dedent: true}, + + // WinVer.nsh + {regex: /\$\{(?:(?:At(?:Least|Most)|Is)(?:ServicePack|Win(?:7|8|10|95|98|200(?:0|3|8(?:R2)?)|ME|NT4|Vista|XP))|Is(?:NT|Server))\}/, token: "variable", dedent: true}, + + // WordFunc.nsh + {regex: /\$\{(?:StrFilterS?|Version(?:Compare|Convert)|Word(?:AddS?|Find(?:(?:2|3)X)?S?|InsertS?|ReplaceS?))\}/, token: "variable-2", dedent: true}, + + // x64.nsh + {regex: /\$\{(?:RunningX64)\}/, token: "variable", dedent: true}, + {regex: /\$\{(?:Disable|Enable)X64FSRedirection\}/, token: "variable-2", dedent: true}, + + // Line Comment + {regex: /(#|;).*/, token: "comment"}, + + // Block Comment + {regex: /\/\*/, token: "comment", next: "comment"}, + + // Operator + {regex: /[-+\/*=<>!]+/, token: "operator"}, + + // Variable + {regex: /\$[\w]+/, token: "variable"}, + + // Constant + {regex: /\${[\w]+}/,token: "variable-2"}, + + // Language String + {regex: /\$\([\w]+\)/,token: "variable-3"} + ], + comment: [ + {regex: /.*?\*\//, token: "comment", next: "start"}, + {regex: /.*/, token: "comment"} + ], + meta: { + electricInput: /^\s*((Function|PageEx|Section|Section(Group)?)End|(\!(endif|macroend))|\$\{(End(If|Unless|While)|Loop(Until)|Next)\})$/, + blockCommentStart: "/*", + blockCommentEnd: "*/", + lineComment: ["#", ";"] + } +}); + +CodeMirror.defineMIME("text/x-nsis", "nsis"); +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/ntriples/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/ntriples/index.html new file mode 100644 index 0000000..1355e71 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/ntriples/index.html @@ -0,0 +1,45 @@ +<!doctype html> + +<title>CodeMirror: NTriples mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="ntriples.js"></script> +<style type="text/css"> + .CodeMirror { + border: 1px solid #eee; + } + </style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">NTriples</a> + </ul> +</div> + +<article> +<h2>NTriples mode</h2> +<form> +<textarea id="ntriples" name="ntriples"> +<http://Sub1> <http://pred1> <http://obj> . +<http://Sub2> <http://pred2#an2> "literal 1" . +<http://Sub3#an3> <http://pred3> _:bnode3 . +_:bnode4 <http://pred4> "literal 2"@lang . +_:bnode5 <http://pred5> "literal 3"^^<http://type> . +</textarea> +</form> + + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("ntriples"), {}); + </script> + <p><strong>MIME types defined:</strong> <code>text/n-triples</code>.</p> + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/ntriples/ntriples.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/ntriples/ntriples.js new file mode 100644 index 0000000..0524b1e --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/ntriples/ntriples.js @@ -0,0 +1,186 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +/********************************************************** +* This script provides syntax highlighting support for +* the Ntriples format. +* Ntriples format specification: +* http://www.w3.org/TR/rdf-testcases/#ntriples +***********************************************************/ + +/* + The following expression defines the defined ASF grammar transitions. + + pre_subject -> + { + ( writing_subject_uri | writing_bnode_uri ) + -> pre_predicate + -> writing_predicate_uri + -> pre_object + -> writing_object_uri | writing_object_bnode | + ( + writing_object_literal + -> writing_literal_lang | writing_literal_type + ) + -> post_object + -> BEGIN + } otherwise { + -> ERROR + } +*/ + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("ntriples", function() { + + var Location = { + PRE_SUBJECT : 0, + WRITING_SUB_URI : 1, + WRITING_BNODE_URI : 2, + PRE_PRED : 3, + WRITING_PRED_URI : 4, + PRE_OBJ : 5, + WRITING_OBJ_URI : 6, + WRITING_OBJ_BNODE : 7, + WRITING_OBJ_LITERAL : 8, + WRITING_LIT_LANG : 9, + WRITING_LIT_TYPE : 10, + POST_OBJ : 11, + ERROR : 12 + }; + function transitState(currState, c) { + var currLocation = currState.location; + var ret; + + // Opening. + if (currLocation == Location.PRE_SUBJECT && c == '<') ret = Location.WRITING_SUB_URI; + else if(currLocation == Location.PRE_SUBJECT && c == '_') ret = Location.WRITING_BNODE_URI; + else if(currLocation == Location.PRE_PRED && c == '<') ret = Location.WRITING_PRED_URI; + else if(currLocation == Location.PRE_OBJ && c == '<') ret = Location.WRITING_OBJ_URI; + else if(currLocation == Location.PRE_OBJ && c == '_') ret = Location.WRITING_OBJ_BNODE; + else if(currLocation == Location.PRE_OBJ && c == '"') ret = Location.WRITING_OBJ_LITERAL; + + // Closing. + else if(currLocation == Location.WRITING_SUB_URI && c == '>') ret = Location.PRE_PRED; + else if(currLocation == Location.WRITING_BNODE_URI && c == ' ') ret = Location.PRE_PRED; + else if(currLocation == Location.WRITING_PRED_URI && c == '>') ret = Location.PRE_OBJ; + else if(currLocation == Location.WRITING_OBJ_URI && c == '>') ret = Location.POST_OBJ; + else if(currLocation == Location.WRITING_OBJ_BNODE && c == ' ') ret = Location.POST_OBJ; + else if(currLocation == Location.WRITING_OBJ_LITERAL && c == '"') ret = Location.POST_OBJ; + else if(currLocation == Location.WRITING_LIT_LANG && c == ' ') ret = Location.POST_OBJ; + else if(currLocation == Location.WRITING_LIT_TYPE && c == '>') ret = Location.POST_OBJ; + + // Closing typed and language literal. + else if(currLocation == Location.WRITING_OBJ_LITERAL && c == '@') ret = Location.WRITING_LIT_LANG; + else if(currLocation == Location.WRITING_OBJ_LITERAL && c == '^') ret = Location.WRITING_LIT_TYPE; + + // Spaces. + else if( c == ' ' && + ( + currLocation == Location.PRE_SUBJECT || + currLocation == Location.PRE_PRED || + currLocation == Location.PRE_OBJ || + currLocation == Location.POST_OBJ + ) + ) ret = currLocation; + + // Reset. + else if(currLocation == Location.POST_OBJ && c == '.') ret = Location.PRE_SUBJECT; + + // Error + else ret = Location.ERROR; + + currState.location=ret; + } + + return { + startState: function() { + return { + location : Location.PRE_SUBJECT, + uris : [], + anchors : [], + bnodes : [], + langs : [], + types : [] + }; + }, + token: function(stream, state) { + var ch = stream.next(); + if(ch == '<') { + transitState(state, ch); + var parsedURI = ''; + stream.eatWhile( function(c) { if( c != '#' && c != '>' ) { parsedURI += c; return true; } return false;} ); + state.uris.push(parsedURI); + if( stream.match('#', false) ) return 'variable'; + stream.next(); + transitState(state, '>'); + return 'variable'; + } + if(ch == '#') { + var parsedAnchor = ''; + stream.eatWhile(function(c) { if(c != '>' && c != ' ') { parsedAnchor+= c; return true; } return false;}); + state.anchors.push(parsedAnchor); + return 'variable-2'; + } + if(ch == '>') { + transitState(state, '>'); + return 'variable'; + } + if(ch == '_') { + transitState(state, ch); + var parsedBNode = ''; + stream.eatWhile(function(c) { if( c != ' ' ) { parsedBNode += c; return true; } return false;}); + state.bnodes.push(parsedBNode); + stream.next(); + transitState(state, ' '); + return 'builtin'; + } + if(ch == '"') { + transitState(state, ch); + stream.eatWhile( function(c) { return c != '"'; } ); + stream.next(); + if( stream.peek() != '@' && stream.peek() != '^' ) { + transitState(state, '"'); + } + return 'string'; + } + if( ch == '@' ) { + transitState(state, '@'); + var parsedLang = ''; + stream.eatWhile(function(c) { if( c != ' ' ) { parsedLang += c; return true; } return false;}); + state.langs.push(parsedLang); + stream.next(); + transitState(state, ' '); + return 'string-2'; + } + if( ch == '^' ) { + stream.next(); + transitState(state, '^'); + var parsedType = ''; + stream.eatWhile(function(c) { if( c != '>' ) { parsedType += c; return true; } return false;} ); + state.types.push(parsedType); + stream.next(); + transitState(state, '>'); + return 'variable'; + } + if( ch == ' ' ) { + transitState(state, ch); + } + if( ch == '.' ) { + transitState(state, ch); + } + } + }; +}); + +CodeMirror.defineMIME("text/n-triples", "ntriples"); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/octave/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/octave/index.html new file mode 100644 index 0000000..3490ee6 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/octave/index.html @@ -0,0 +1,83 @@ +<!doctype html> + +<title>CodeMirror: Octave mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="octave.js"></script> +<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Octave</a> + </ul> +</div> + +<article> +<h2>Octave mode</h2> + + <div><textarea id="code" name="code"> +%numbers +[1234 1234i 1234j] +[.234 .234j 2.23i] +[23e2 12E1j 123D-4 0x234] + +%strings +'asda''a' +"asda""a" + +%identifiers +a + as123 - __asd__ + +%operators +- ++ += +== +> +< +>= +<= +& +~ +... +break zeros default margin round ones rand +ceil floor size clear zeros eye mean std cov +error eval function +abs acos atan asin cos cosh exp log prod sum +log10 max min sign sin sinh sqrt tan reshape +return +case switch +else elseif end if otherwise +do for while +try catch +classdef properties events methods +global persistent + +%one line comment +%{ multi +line comment %} + + </textarea></div> + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + mode: {name: "octave", + version: 2, + singleLineStringErrors: false}, + lineNumbers: true, + indentUnit: 4, + matchBrackets: true + }); + </script> + + <p><strong>MIME types defined:</strong> <code>text/x-octave</code>.</p> +</article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/octave/octave.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/octave/octave.js new file mode 100644 index 0000000..a7bec03 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/octave/octave.js @@ -0,0 +1,135 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("octave", function() { + function wordRegexp(words) { + return new RegExp("^((" + words.join(")|(") + "))\\b"); + } + + var singleOperators = new RegExp("^[\\+\\-\\*/&|\\^~<>!@'\\\\]"); + var singleDelimiters = new RegExp('^[\\(\\[\\{\\},:=;]'); + var doubleOperators = new RegExp("^((==)|(~=)|(<=)|(>=)|(<<)|(>>)|(\\.[\\+\\-\\*/\\^\\\\]))"); + var doubleDelimiters = new RegExp("^((!=)|(\\+=)|(\\-=)|(\\*=)|(/=)|(&=)|(\\|=)|(\\^=))"); + var tripleDelimiters = new RegExp("^((>>=)|(<<=))"); + var expressionEnd = new RegExp("^[\\]\\)]"); + var identifiers = new RegExp("^[_A-Za-z\xa1-\uffff][_A-Za-z0-9\xa1-\uffff]*"); + + var builtins = wordRegexp([ + 'error', 'eval', 'function', 'abs', 'acos', 'atan', 'asin', 'cos', + 'cosh', 'exp', 'log', 'prod', 'sum', 'log10', 'max', 'min', 'sign', 'sin', 'sinh', + 'sqrt', 'tan', 'reshape', 'break', 'zeros', 'default', 'margin', 'round', 'ones', + 'rand', 'syn', 'ceil', 'floor', 'size', 'clear', 'zeros', 'eye', 'mean', 'std', 'cov', + 'det', 'eig', 'inv', 'norm', 'rank', 'trace', 'expm', 'logm', 'sqrtm', 'linspace', 'plot', + 'title', 'xlabel', 'ylabel', 'legend', 'text', 'grid', 'meshgrid', 'mesh', 'num2str', + 'fft', 'ifft', 'arrayfun', 'cellfun', 'input', 'fliplr', 'flipud', 'ismember' + ]); + + var keywords = wordRegexp([ + 'return', 'case', 'switch', 'else', 'elseif', 'end', 'endif', 'endfunction', + 'if', 'otherwise', 'do', 'for', 'while', 'try', 'catch', 'classdef', 'properties', 'events', + 'methods', 'global', 'persistent', 'endfor', 'endwhile', 'printf', 'sprintf', 'disp', 'until', + 'continue', 'pkg' + ]); + + + // tokenizers + function tokenTranspose(stream, state) { + if (!stream.sol() && stream.peek() === '\'') { + stream.next(); + state.tokenize = tokenBase; + return 'operator'; + } + state.tokenize = tokenBase; + return tokenBase(stream, state); + } + + + function tokenComment(stream, state) { + if (stream.match(/^.*%}/)) { + state.tokenize = tokenBase; + return 'comment'; + }; + stream.skipToEnd(); + return 'comment'; + } + + function tokenBase(stream, state) { + // whitespaces + if (stream.eatSpace()) return null; + + // Handle one line Comments + if (stream.match('%{')){ + state.tokenize = tokenComment; + stream.skipToEnd(); + return 'comment'; + } + + if (stream.match(/^[%#]/)){ + stream.skipToEnd(); + return 'comment'; + } + + // Handle Number Literals + if (stream.match(/^[0-9\.+-]/, false)) { + if (stream.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/)) { + stream.tokenize = tokenBase; + return 'number'; }; + if (stream.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/)) { return 'number'; }; + if (stream.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/)) { return 'number'; }; + } + if (stream.match(wordRegexp(['nan','NaN','inf','Inf']))) { return 'number'; }; + + // Handle Strings + if (stream.match(/^"([^"]|(""))*"/)) { return 'string'; } ; + if (stream.match(/^'([^']|(''))*'/)) { return 'string'; } ; + + // Handle words + if (stream.match(keywords)) { return 'keyword'; } ; + if (stream.match(builtins)) { return 'builtin'; } ; + if (stream.match(identifiers)) { return 'variable'; } ; + + if (stream.match(singleOperators) || stream.match(doubleOperators)) { return 'operator'; }; + if (stream.match(singleDelimiters) || stream.match(doubleDelimiters) || stream.match(tripleDelimiters)) { return null; }; + + if (stream.match(expressionEnd)) { + state.tokenize = tokenTranspose; + return null; + }; + + + // Handle non-detected items + stream.next(); + return 'error'; + }; + + + return { + startState: function() { + return { + tokenize: tokenBase + }; + }, + + token: function(stream, state) { + var style = state.tokenize(stream, state); + if (style === 'number' || style === 'variable'){ + state.tokenize = tokenTranspose; + } + return style; + } + }; +}); + +CodeMirror.defineMIME("text/x-octave", "octave"); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/oz/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/oz/index.html new file mode 100644 index 0000000..febd82a --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/oz/index.html @@ -0,0 +1,59 @@ +<!doctype html> + +<title>CodeMirror: Oz mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="oz.js"></script> +<script type="text/javascript" src="../../addon/runmode/runmode.js"></script> +<style> + .CodeMirror {border: 1px solid #aaa;} +</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Oz</a> + </ul> +</div> + +<article> +<h2>Oz mode</h2> +<textarea id="code" name="code"> +declare +fun {Ints N Max} + if N == Max then nil + else + {Delay 1000} + N|{Ints N+1 Max} + end +end + +fun {Sum S Stream} + case Stream of nil then S + [] H|T then S|{Sum H+S T} end +end + +local X Y in + thread X = {Ints 0 1000} end + thread Y = {Sum 0 X} end + {Browse Y} +end +</textarea> +<p>MIME type defined: <code>text/x-oz</code>.</p> + +<script type="text/javascript"> +var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + lineNumbers: true, + mode: "text/x-oz", + readOnly: false +}); +</script> +</article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/oz/oz.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/oz/oz.js new file mode 100644 index 0000000..ee8cb0a --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/oz/oz.js @@ -0,0 +1,252 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("oz", function (conf) { + + function wordRegexp(words) { + return new RegExp("^((" + words.join(")|(") + "))\\b"); + } + + var singleOperators = /[\^@!\|<>#~\.\*\-\+\\/,=]/; + var doubleOperators = /(<-)|(:=)|(=<)|(>=)|(<=)|(<:)|(>:)|(=:)|(\\=)|(\\=:)|(!!)|(==)|(::)/; + var tripleOperators = /(:::)|(\.\.\.)|(=<:)|(>=:)/; + + var middle = ["in", "then", "else", "of", "elseof", "elsecase", "elseif", "catch", + "finally", "with", "require", "prepare", "import", "export", "define", "do"]; + var end = ["end"]; + + var atoms = wordRegexp(["true", "false", "nil", "unit"]); + var commonKeywords = wordRegexp(["andthen", "at", "attr", "declare", "feat", "from", "lex", + "mod", "mode", "orelse", "parser", "prod", "prop", "scanner", "self", "syn", "token"]); + var openingKeywords = wordRegexp(["local", "proc", "fun", "case", "class", "if", "cond", "or", "dis", + "choice", "not", "thread", "try", "raise", "lock", "for", "suchthat", "meth", "functor"]); + var middleKeywords = wordRegexp(middle); + var endKeywords = wordRegexp(end); + + // Tokenizers + function tokenBase(stream, state) { + if (stream.eatSpace()) { + return null; + } + + // Brackets + if(stream.match(/[{}]/)) { + return "bracket"; + } + + // Special [] keyword + if (stream.match(/(\[])/)) { + return "keyword" + } + + // Operators + if (stream.match(tripleOperators) || stream.match(doubleOperators)) { + return "operator"; + } + + // Atoms + if(stream.match(atoms)) { + return 'atom'; + } + + // Opening keywords + var matched = stream.match(openingKeywords); + if (matched) { + if (!state.doInCurrentLine) + state.currentIndent++; + else + state.doInCurrentLine = false; + + // Special matching for signatures + if(matched[0] == "proc" || matched[0] == "fun") + state.tokenize = tokenFunProc; + else if(matched[0] == "class") + state.tokenize = tokenClass; + else if(matched[0] == "meth") + state.tokenize = tokenMeth; + + return 'keyword'; + } + + // Middle and other keywords + if (stream.match(middleKeywords) || stream.match(commonKeywords)) { + return "keyword" + } + + // End keywords + if (stream.match(endKeywords)) { + state.currentIndent--; + return 'keyword'; + } + + // Eat the next char for next comparisons + var ch = stream.next(); + + // Strings + if (ch == '"' || ch == "'") { + state.tokenize = tokenString(ch); + return state.tokenize(stream, state); + } + + // Numbers + if (/[~\d]/.test(ch)) { + if (ch == "~") { + if(! /^[0-9]/.test(stream.peek())) + return null; + else if (( stream.next() == "0" && stream.match(/^[xX][0-9a-fA-F]+/)) || stream.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/)) + return "number"; + } + + if ((ch == "0" && stream.match(/^[xX][0-9a-fA-F]+/)) || stream.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/)) + return "number"; + + return null; + } + + // Comments + if (ch == "%") { + stream.skipToEnd(); + return 'comment'; + } + else if (ch == "/") { + if (stream.eat("*")) { + state.tokenize = tokenComment; + return tokenComment(stream, state); + } + } + + // Single operators + if(singleOperators.test(ch)) { + return "operator"; + } + + // If nothing match, we skip the entire alphanumerical block + stream.eatWhile(/\w/); + + return "variable"; + } + + function tokenClass(stream, state) { + if (stream.eatSpace()) { + return null; + } + stream.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)/); + state.tokenize = tokenBase; + return "variable-3" + } + + function tokenMeth(stream, state) { + if (stream.eatSpace()) { + return null; + } + stream.match(/([a-zA-Z][A-Za-z0-9_]*)|(`.+`)/); + state.tokenize = tokenBase; + return "def" + } + + function tokenFunProc(stream, state) { + if (stream.eatSpace()) { + return null; + } + + if(!state.hasPassedFirstStage && stream.eat("{")) { + state.hasPassedFirstStage = true; + return "bracket"; + } + else if(state.hasPassedFirstStage) { + stream.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)|\$/); + state.hasPassedFirstStage = false; + state.tokenize = tokenBase; + return "def" + } + else { + state.tokenize = tokenBase; + return null; + } + } + + function tokenComment(stream, state) { + var maybeEnd = false, ch; + while (ch = stream.next()) { + if (ch == "/" && maybeEnd) { + state.tokenize = tokenBase; + break; + } + maybeEnd = (ch == "*"); + } + return "comment"; + } + + function tokenString(quote) { + return function (stream, state) { + var escaped = false, next, end = false; + while ((next = stream.next()) != null) { + if (next == quote && !escaped) { + end = true; + break; + } + escaped = !escaped && next == "\\"; + } + if (end || !escaped) + state.tokenize = tokenBase; + return "string"; + }; + } + + function buildElectricInputRegEx() { + // Reindentation should occur on [] or on a match of any of + // the block closing keywords, at the end of a line. + var allClosings = middle.concat(end); + return new RegExp("[\\[\\]]|(" + allClosings.join("|") + ")$"); + } + + return { + + startState: function () { + return { + tokenize: tokenBase, + currentIndent: 0, + doInCurrentLine: false, + hasPassedFirstStage: false + }; + }, + + token: function (stream, state) { + if (stream.sol()) + state.doInCurrentLine = 0; + + return state.tokenize(stream, state); + }, + + indent: function (state, textAfter) { + var trueText = textAfter.replace(/^\s+|\s+$/g, ''); + + if (trueText.match(endKeywords) || trueText.match(middleKeywords) || trueText.match(/(\[])/)) + return conf.indentUnit * (state.currentIndent - 1); + + if (state.currentIndent < 0) + return 0; + + return state.currentIndent * conf.indentUnit; + }, + fold: "indent", + electricInput: buildElectricInputRegEx(), + lineComment: "%", + blockCommentStart: "/*", + blockCommentEnd: "*/" + }; +}); + +CodeMirror.defineMIME("text/x-oz", "oz"); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/pascal/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/pascal/index.html new file mode 100644 index 0000000..f8a99ad --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/pascal/index.html @@ -0,0 +1,61 @@ +<!doctype html> + +<title>CodeMirror: Pascal mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="pascal.js"></script> +<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Pascal</a> + </ul> +</div> + +<article> +<h2>Pascal mode</h2> + + +<div><textarea id="code" name="code"> +(* Example Pascal code *) + +while a <> b do writeln('Waiting'); + +if a > b then + writeln('Condition met') +else + writeln('Condition not met'); + +for i := 1 to 10 do + writeln('Iteration: ', i:1); + +repeat + a := a + 1 +until a = 10; + +case i of + 0: write('zero'); + 1: write('one'); + 2: write('two') +end; +</textarea></div> + + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + lineNumbers: true, + mode: "text/x-pascal" + }); + </script> + + <p><strong>MIME types defined:</strong> <code>text/x-pascal</code>.</p> + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/pascal/pascal.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/pascal/pascal.js new file mode 100644 index 0000000..2d0c3d4 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/pascal/pascal.js @@ -0,0 +1,109 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("pascal", function() { + function words(str) { + var obj = {}, words = str.split(" "); + for (var i = 0; i < words.length; ++i) obj[words[i]] = true; + return obj; + } + var keywords = words("and array begin case const div do downto else end file for forward integer " + + "boolean char function goto if in label mod nil not of or packed procedure " + + "program record repeat set string then to type until var while with"); + var atoms = {"null": true}; + + var isOperatorChar = /[+\-*&%=<>!?|\/]/; + + function tokenBase(stream, state) { + var ch = stream.next(); + if (ch == "#" && state.startOfLine) { + stream.skipToEnd(); + return "meta"; + } + if (ch == '"' || ch == "'") { + state.tokenize = tokenString(ch); + return state.tokenize(stream, state); + } + if (ch == "(" && stream.eat("*")) { + state.tokenize = tokenComment; + return tokenComment(stream, state); + } + if (/[\[\]{}\(\),;\:\.]/.test(ch)) { + return null; + } + if (/\d/.test(ch)) { + stream.eatWhile(/[\w\.]/); + return "number"; + } + if (ch == "/") { + if (stream.eat("/")) { + stream.skipToEnd(); + return "comment"; + } + } + if (isOperatorChar.test(ch)) { + stream.eatWhile(isOperatorChar); + return "operator"; + } + stream.eatWhile(/[\w\$_]/); + var cur = stream.current(); + if (keywords.propertyIsEnumerable(cur)) return "keyword"; + if (atoms.propertyIsEnumerable(cur)) return "atom"; + return "variable"; + } + + function tokenString(quote) { + return function(stream, state) { + var escaped = false, next, end = false; + while ((next = stream.next()) != null) { + if (next == quote && !escaped) {end = true; break;} + escaped = !escaped && next == "\\"; + } + if (end || !escaped) state.tokenize = null; + return "string"; + }; + } + + function tokenComment(stream, state) { + var maybeEnd = false, ch; + while (ch = stream.next()) { + if (ch == ")" && maybeEnd) { + state.tokenize = null; + break; + } + maybeEnd = (ch == "*"); + } + return "comment"; + } + + // Interface + + return { + startState: function() { + return {tokenize: null}; + }, + + token: function(stream, state) { + if (stream.eatSpace()) return null; + var style = (state.tokenize || tokenBase)(stream, state); + if (style == "comment" || style == "meta") return style; + return style; + }, + + electricChars: "{}" + }; +}); + +CodeMirror.defineMIME("text/x-pascal", "pascal"); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/pegjs/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/pegjs/index.html new file mode 100644 index 0000000..0c74604 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/pegjs/index.html @@ -0,0 +1,66 @@ +<!doctype html> +<html> + <head> + <title>CodeMirror: PEG.js Mode</title> + <meta charset="utf-8"/> + <link rel=stylesheet href="../../doc/docs.css"> + + <link rel="stylesheet" href="../../lib/codemirror.css"> + <script src="../../lib/codemirror.js"></script> + <script src="../javascript/javascript.js"></script> + <script src="pegjs.js"></script> + <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> + </head> + <body> + <div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">PEG.js Mode</a> + </ul> + </div> + + <article> + <h2>PEG.js Mode</h2> + <form><textarea id="code" name="code"> +/* + * Classic example grammar, which recognizes simple arithmetic expressions like + * "2*(3+4)". The parser generated from this grammar then computes their value. + */ + +start + = additive + +additive + = left:multiplicative "+" right:additive { return left + right; } + / multiplicative + +multiplicative + = left:primary "*" right:multiplicative { return left * right; } + / primary + +primary + = integer + / "(" additive:additive ")" { return additive; } + +integer "integer" + = digits:[0-9]+ { return parseInt(digits.join(""), 10); } + +letter = [a-z]+</textarea></form> + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + mode: {name: "pegjs"}, + lineNumbers: true + }); + </script> + <h3>The PEG.js Mode</h3> + <p> Created by Forbes Lindesay.</p> + </article> + </body> +</html> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/pegjs/pegjs.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/pegjs/pegjs.js new file mode 100644 index 0000000..6c72074 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/pegjs/pegjs.js @@ -0,0 +1,114 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror"), require("../javascript/javascript")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror", "../javascript/javascript"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("pegjs", function (config) { + var jsMode = CodeMirror.getMode(config, "javascript"); + + function identifier(stream) { + return stream.match(/^[a-zA-Z_][a-zA-Z0-9_]*/); + } + + return { + startState: function () { + return { + inString: false, + stringType: null, + inComment: false, + inCharacterClass: false, + braced: 0, + lhs: true, + localState: null + }; + }, + token: function (stream, state) { + if (stream) + + //check for state changes + if (!state.inString && !state.inComment && ((stream.peek() == '"') || (stream.peek() == "'"))) { + state.stringType = stream.peek(); + stream.next(); // Skip quote + state.inString = true; // Update state + } + if (!state.inString && !state.inComment && stream.match(/^\/\*/)) { + state.inComment = true; + } + + //return state + if (state.inString) { + while (state.inString && !stream.eol()) { + if (stream.peek() === state.stringType) { + stream.next(); // Skip quote + state.inString = false; // Clear flag + } else if (stream.peek() === '\\') { + stream.next(); + stream.next(); + } else { + stream.match(/^.[^\\\"\']*/); + } + } + return state.lhs ? "property string" : "string"; // Token style + } else if (state.inComment) { + while (state.inComment && !stream.eol()) { + if (stream.match(/\*\//)) { + state.inComment = false; // Clear flag + } else { + stream.match(/^.[^\*]*/); + } + } + return "comment"; + } else if (state.inCharacterClass) { + while (state.inCharacterClass && !stream.eol()) { + if (!(stream.match(/^[^\]\\]+/) || stream.match(/^\\./))) { + state.inCharacterClass = false; + } + } + } else if (stream.peek() === '[') { + stream.next(); + state.inCharacterClass = true; + return 'bracket'; + } else if (stream.match(/^\/\//)) { + stream.skipToEnd(); + return "comment"; + } else if (state.braced || stream.peek() === '{') { + if (state.localState === null) { + state.localState = CodeMirror.startState(jsMode); + } + var token = jsMode.token(stream, state.localState); + var text = stream.current(); + if (!token) { + for (var i = 0; i < text.length; i++) { + if (text[i] === '{') { + state.braced++; + } else if (text[i] === '}') { + state.braced--; + } + }; + } + return token; + } else if (identifier(stream)) { + if (stream.peek() === ':') { + return 'variable'; + } + return 'variable-2'; + } else if (['[', ']', '(', ')'].indexOf(stream.peek()) != -1) { + stream.next(); + return 'bracket'; + } else if (!stream.eatSpace()) { + stream.next(); + } + return null; + } + }; +}, "javascript"); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/perl/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/perl/index.html new file mode 100644 index 0000000..8c1021c --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/perl/index.html @@ -0,0 +1,75 @@ +<!doctype html> + +<title>CodeMirror: Perl mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="perl.js"></script> +<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Perl</a> + </ul> +</div> + +<article> +<h2>Perl mode</h2> + + +<div><textarea id="code" name="code"> +#!/usr/bin/perl + +use Something qw(func1 func2); + +# strings +my $s1 = qq'single line'; +our $s2 = q(multi- + line); + +=item Something + Example. +=cut + +my $html=<<'HTML' +<html> +<title>hi!</title> +</html> +HTML + +print "first,".join(',', 'second', qq~third~); + +if($s1 =~ m[(?<!\s)(l.ne)\z]o) { + $h->{$1}=$$.' predefined variables'; + $s2 =~ s/\-line//ox; + $s1 =~ s[ + line ] + [ + block + ]ox; +} + +1; # numbers and comments + +__END__ +something... + +</textarea></div> + + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + lineNumbers: true + }); + </script> + + <p><strong>MIME types defined:</strong> <code>text/x-perl</code>.</p> + </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/perl/perl.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/perl/perl.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/perl/perl.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/perl/perl.js diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/gfm/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/php/index.html similarity index 51% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/gfm/index.html rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/php/index.html index 24c90c0..adf6b1b 100644 --- a/Mobile.Search.Web/Scripts/CodeMirror/mode/gfm/index.html +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/php/index.html @@ -1,20 +1,18 @@ <!doctype html> -<title>CodeMirror: GFM mode</title> +<title>CodeMirror: PHP mode</title> <meta charset="utf-8"/> <link rel=stylesheet href="../../doc/docs.css"> <link rel="stylesheet" href="../../lib/codemirror.css"> <script src="../../lib/codemirror.js"></script> -<script src="../../addon/mode/overlay.js"></script> +<script src="../../addon/edit/matchbrackets.js"></script> +<script src="../htmlmixed/htmlmixed.js"></script> <script src="../xml/xml.js"></script> -<script src="../markdown/markdown.js"></script> -<script src="gfm.js"></script> <script src="../javascript/javascript.js"></script> <script src="../css/css.js"></script> -<script src="../htmlmixed/htmlmixed.js"></script> <script src="../clike/clike.js"></script> -<script src="../meta.js"></script> +<script src="php.js"></script> <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> <div id=nav> <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> @@ -26,68 +24,41 @@ </ul> <ul> <li><a href="../index.html">Language modes</a> - <li><a class=active href="#">GFM</a> + <li><a class=active href="#">PHP</a> </ul> </div> <article> -<h2>GFM mode</h2> +<h2>PHP mode</h2> <form><textarea id="code" name="code"> -GitHub Flavored Markdown -======================== - -Everything from markdown plus GFM features: - -## URL autolinking - -Underscores_are_allowed_between_words. - -## Strikethrough text - -GFM adds syntax to strikethrough text, which is missing from standard Markdown. - -~~Mistaken text.~~ -~~**works with other formatting**~~ +<?php +$a = array('a' => 1, 'b' => 2, 3 => 'c'); -~~spans across -lines~~ +echo "$a[a] ${a[3] /* } comment */} {$a[b]} \$a[a]"; -## Fenced code blocks (and syntax highlighting) - -```javascript -for (var i = 0; i < items.length; i++) { - console.log(items[i], i); // log them +function hello($who) { + return "Hello $who!"; } -``` - -## Task Lists - -- [ ] Incomplete task list item -- [x] **Completed** task list item - -## A bit of GitHub spice - -* SHA: be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2 -* User@SHA ref: mojombo@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2 -* User/Project@SHA: mojombo/god@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2 -* \#Num: #1 -* User/#Num: mojombo#1 -* User/Project#Num: mojombo/god#1 - -See http://github.github.com/github-flavored-markdown/. - +?> +<p>The program says <?= hello("World") ?>.</p> +<script> + alert("And here is some JS code"); // also colored +</script> </textarea></form> <script> var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - mode: 'gfm', lineNumbers: true, - theme: "default" + matchBrackets: true, + mode: "application/x-httpd-php", + indentUnit: 4, + indentWithTabs: true }); </script> - <p>Optionally depends on other modes for properly highlighted code blocks.</p> - - <p><strong>Parsing/Highlighting Tests:</strong> <a href="../../test/index.html#gfm_*">normal</a>, <a href="../../test/index.html#verbose,gfm_*">verbose</a>.</p> + <p>Simple HTML/PHP mode based on + the <a href="../clike/">C-like</a> mode. Depends on XML, + JavaScript, CSS, HTMLMixed, and C-like modes.</p> + <p><strong>MIME types defined:</strong> <code>application/x-httpd-php</code> (HTML with PHP code), <code>text/x-php</code> (plain, non-wrapped PHP code).</p> </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/php/php.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/php/php.js new file mode 100644 index 0000000..57ba812 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/php/php.js @@ -0,0 +1,234 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed"), require("../clike/clike")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror", "../htmlmixed/htmlmixed", "../clike/clike"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { + "use strict"; + + function keywords(str) { + var obj = {}, words = str.split(" "); + for (var i = 0; i < words.length; ++i) obj[words[i]] = true; + return obj; + } + + // Helper for phpString + function matchSequence(list, end, escapes) { + if (list.length == 0) return phpString(end); + return function (stream, state) { + var patterns = list[0]; + for (var i = 0; i < patterns.length; i++) if (stream.match(patterns[i][0])) { + state.tokenize = matchSequence(list.slice(1), end); + return patterns[i][1]; + } + state.tokenize = phpString(end, escapes); + return "string"; + }; + } + function phpString(closing, escapes) { + return function(stream, state) { return phpString_(stream, state, closing, escapes); }; + } + function phpString_(stream, state, closing, escapes) { + // "Complex" syntax + if (escapes !== false && stream.match("${", false) || stream.match("{$", false)) { + state.tokenize = null; + return "string"; + } + + // Simple syntax + if (escapes !== false && stream.match(/^\$[a-zA-Z_][a-zA-Z0-9_]*/)) { + // After the variable name there may appear array or object operator. + if (stream.match("[", false)) { + // Match array operator + state.tokenize = matchSequence([ + [["[", null]], + [[/\d[\w\.]*/, "number"], + [/\$[a-zA-Z_][a-zA-Z0-9_]*/, "variable-2"], + [/[\w\$]+/, "variable"]], + [["]", null]] + ], closing, escapes); + } + if (stream.match(/\-\>\w/, false)) { + // Match object operator + state.tokenize = matchSequence([ + [["->", null]], + [[/[\w]+/, "variable"]] + ], closing, escapes); + } + return "variable-2"; + } + + var escaped = false; + // Normal string + while (!stream.eol() && + (escaped || escapes === false || + (!stream.match("{$", false) && + !stream.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/, false)))) { + if (!escaped && stream.match(closing)) { + state.tokenize = null; + state.tokStack.pop(); state.tokStack.pop(); + break; + } + escaped = stream.next() == "\\" && !escaped; + } + return "string"; + } + + var phpKeywords = "abstract and array as break case catch class clone const continue declare default " + + "do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final " + + "for foreach function global goto if implements interface instanceof namespace " + + "new or private protected public static switch throw trait try use var while xor " + + "die echo empty exit eval include include_once isset list require require_once return " + + "print unset __halt_compiler self static parent yield insteadof finally"; + var phpAtoms = "true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__"; + var phpBuiltin = "func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count"; + CodeMirror.registerHelper("hintWords", "php", [phpKeywords, phpAtoms, phpBuiltin].join(" ").split(" ")); + CodeMirror.registerHelper("wordChars", "php", /[\w$]/); + + var phpConfig = { + name: "clike", + helperType: "php", + keywords: keywords(phpKeywords), + blockKeywords: keywords("catch do else elseif for foreach if switch try while finally"), + defKeywords: keywords("class function interface namespace trait"), + atoms: keywords(phpAtoms), + builtin: keywords(phpBuiltin), + multiLineStrings: true, + hooks: { + "$": function(stream) { + stream.eatWhile(/[\w\$_]/); + return "variable-2"; + }, + "<": function(stream, state) { + var before; + if (before = stream.match(/<<\s*/)) { + var quoted = stream.eat(/['"]/); + stream.eatWhile(/[\w\.]/); + var delim = stream.current().slice(before[0].length + (quoted ? 2 : 1)); + if (quoted) stream.eat(quoted); + if (delim) { + (state.tokStack || (state.tokStack = [])).push(delim, 0); + state.tokenize = phpString(delim, quoted != "'"); + return "string"; + } + } + return false; + }, + "#": function(stream) { + while (!stream.eol() && !stream.match("?>", false)) stream.next(); + return "comment"; + }, + "/": function(stream) { + if (stream.eat("/")) { + while (!stream.eol() && !stream.match("?>", false)) stream.next(); + return "comment"; + } + return false; + }, + '"': function(_stream, state) { + (state.tokStack || (state.tokStack = [])).push('"', 0); + state.tokenize = phpString('"'); + return "string"; + }, + "{": function(_stream, state) { + if (state.tokStack && state.tokStack.length) + state.tokStack[state.tokStack.length - 1]++; + return false; + }, + "}": function(_stream, state) { + if (state.tokStack && state.tokStack.length > 0 && + !--state.tokStack[state.tokStack.length - 1]) { + state.tokenize = phpString(state.tokStack[state.tokStack.length - 2]); + } + return false; + } + } + }; + + CodeMirror.defineMode("php", function(config, parserConfig) { + var htmlMode = CodeMirror.getMode(config, "text/html"); + var phpMode = CodeMirror.getMode(config, phpConfig); + + function dispatch(stream, state) { + var isPHP = state.curMode == phpMode; + if (stream.sol() && state.pending && state.pending != '"' && state.pending != "'") state.pending = null; + if (!isPHP) { + if (stream.match(/^<\?\w*/)) { + state.curMode = phpMode; + if (!state.php) state.php = CodeMirror.startState(phpMode, htmlMode.indent(state.html, "")) + state.curState = state.php; + return "meta"; + } + if (state.pending == '"' || state.pending == "'") { + while (!stream.eol() && stream.next() != state.pending) {} + var style = "string"; + } else if (state.pending && stream.pos < state.pending.end) { + stream.pos = state.pending.end; + var style = state.pending.style; + } else { + var style = htmlMode.token(stream, state.curState); + } + if (state.pending) state.pending = null; + var cur = stream.current(), openPHP = cur.search(/<\?/), m; + if (openPHP != -1) { + if (style == "string" && (m = cur.match(/[\'\"]$/)) && !/\?>/.test(cur)) state.pending = m[0]; + else state.pending = {end: stream.pos, style: style}; + stream.backUp(cur.length - openPHP); + } + return style; + } else if (isPHP && state.php.tokenize == null && stream.match("?>")) { + state.curMode = htmlMode; + state.curState = state.html; + if (!state.php.context.prev) state.php = null; + return "meta"; + } else { + return phpMode.token(stream, state.curState); + } + } + + return { + startState: function() { + var html = CodeMirror.startState(htmlMode) + var php = parserConfig.startOpen ? CodeMirror.startState(phpMode) : null + return {html: html, + php: php, + curMode: parserConfig.startOpen ? phpMode : htmlMode, + curState: parserConfig.startOpen ? php : html, + pending: null}; + }, + + copyState: function(state) { + var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html), + php = state.php, phpNew = php && CodeMirror.copyState(phpMode, php), cur; + if (state.curMode == htmlMode) cur = htmlNew; + else cur = phpNew; + return {html: htmlNew, php: phpNew, curMode: state.curMode, curState: cur, + pending: state.pending}; + }, + + token: dispatch, + + indent: function(state, textAfter) { + if ((state.curMode != phpMode && /^\s*<\//.test(textAfter)) || + (state.curMode == phpMode && /^\?>/.test(textAfter))) + return htmlMode.indent(state.html, textAfter); + return state.curMode.indent(state.curState, textAfter); + }, + + blockCommentStart: "/*", + blockCommentEnd: "*/", + lineComment: "//", + + innerMode: function(state) { return {state: state.curState, mode: state.curMode}; } + }; + }, "htmlmixed", "clike"); + + CodeMirror.defineMIME("application/x-httpd-php", "php"); + CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true}); + CodeMirror.defineMIME("text/x-php", phpConfig); +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/php/test.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/php/test.js new file mode 100644 index 0000000..e2ecefc --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/php/test.js @@ -0,0 +1,154 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function() { + var mode = CodeMirror.getMode({indentUnit: 2}, "php"); + function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); } + + MT('simple_test', + '[meta <?php] ' + + '[keyword echo] [string "aaa"]; ' + + '[meta ?>]'); + + MT('variable_interpolation_non_alphanumeric', + '[meta <?php]', + '[keyword echo] [string "aaa$~$!$@$#$$$%$^$&$*$($)$.$<$>$/$\\$}$\\\"$:$;$?$|$[[$]]$+$=aaa"]', + '[meta ?>]'); + + MT('variable_interpolation_digits', + '[meta <?php]', + '[keyword echo] [string "aaa$1$2$3$4$5$6$7$8$9$0aaa"]', + '[meta ?>]'); + + MT('variable_interpolation_simple_syntax_1', + '[meta <?php]', + '[keyword echo] [string "aaa][variable-2 $aaa][string .aaa"];', + '[meta ?>]'); + + MT('variable_interpolation_simple_syntax_2', + '[meta <?php]', + '[keyword echo] [string "][variable-2 $aaaa][[','[number 2]', ']][string aa"];', + '[keyword echo] [string "][variable-2 $aaaa][[','[number 2345]', ']][string aa"];', + '[keyword echo] [string "][variable-2 $aaaa][[','[number 2.3]', ']][string aa"];', + '[keyword echo] [string "][variable-2 $aaaa][[','[variable aaaaa]', ']][string aa"];', + '[keyword echo] [string "][variable-2 $aaaa][[','[variable-2 $aaaaa]',']][string aa"];', + + '[keyword echo] [string "1aaa][variable-2 $aaaa][[','[number 2]', ']][string aa"];', + '[keyword echo] [string "aaa][variable-2 $aaaa][[','[number 2345]', ']][string aa"];', + '[keyword echo] [string "aaa][variable-2 $aaaa][[','[number 2.3]', ']][string aa"];', + '[keyword echo] [string "aaa][variable-2 $aaaa][[','[variable aaaaa]', ']][string aa"];', + '[keyword echo] [string "aaa][variable-2 $aaaa][[','[variable-2 $aaaaa]',']][string aa"];', + '[meta ?>]'); + + MT('variable_interpolation_simple_syntax_3', + '[meta <?php]', + '[keyword echo] [string "aaa][variable-2 $aaaa]->[variable aaaaa][string .aaaaaa"];', + '[keyword echo] [string "aaa][variable-2 $aaaa][string ->][variable-2 $aaaaa][string .aaaaaa"];', + '[keyword echo] [string "aaa][variable-2 $aaaa]->[variable aaaaa][string [[2]].aaaaaa"];', + '[keyword echo] [string "aaa][variable-2 $aaaa]->[variable aaaaa][string ->aaaa2.aaaaaa"];', + '[meta ?>]'); + + MT('variable_interpolation_escaping', + '[meta <?php] [comment /* Escaping */]', + '[keyword echo] [string "aaa\\$aaaa->aaa.aaa"];', + '[keyword echo] [string "aaa\\$aaaa[[2]]aaa.aaa"];', + '[keyword echo] [string "aaa\\$aaaa[[asd]]aaa.aaa"];', + '[keyword echo] [string "aaa{\\$aaaa->aaa.aaa"];', + '[keyword echo] [string "aaa{\\$aaaa[[2]]aaa.aaa"];', + '[keyword echo] [string "aaa{\\aaaaa[[asd]]aaa.aaa"];', + '[keyword echo] [string "aaa\\${aaaa->aaa.aaa"];', + '[keyword echo] [string "aaa\\${aaaa[[2]]aaa.aaa"];', + '[keyword echo] [string "aaa\\${aaaa[[asd]]aaa.aaa"];', + '[meta ?>]'); + + MT('variable_interpolation_complex_syntax_1', + '[meta <?php]', + '[keyword echo] [string "aaa][variable-2 $]{[variable aaaa]}[string ->aaa.aaa"];', + '[keyword echo] [string "aaa][variable-2 $]{[variable-2 $aaaa]}[string ->aaa.aaa"];', + '[keyword echo] [string "aaa][variable-2 $]{[variable-2 $aaaa][[',' [number 42]',']]}[string ->aaa.aaa"];', + '[keyword echo] [string "aaa][variable-2 $]{[variable aaaa][meta ?>]aaaaaa'); + + MT('variable_interpolation_complex_syntax_2', + '[meta <?php] [comment /* Monsters */]', + '[keyword echo] [string "][variable-2 $]{[variable aaa][comment /*}?>} $aaa<?php } */]}[string ->aaa.aaa"];', + '[keyword echo] [string "][variable-2 $]{[variable aaa][comment /*}?>*/][[',' [string "aaa][variable-2 $aaa][string {}][variable-2 $]{[variable aaa]}[string "]',']]}[string ->aaa.aaa"];', + '[keyword echo] [string "][variable-2 $]{[variable aaa][comment /*} } $aaa } */]}[string ->aaa.aaa"];'); + + + function build_recursive_monsters(nt, t, n){ + var monsters = [t]; + for (var i = 1; i <= n; ++i) + monsters[i] = nt.join(monsters[i - 1]); + return monsters; + } + + var m1 = build_recursive_monsters( + ['[string "][variable-2 $]{[variable aaa] [operator +] ', '}[string "]'], + '[comment /* }?>} */] [string "aaa][variable-2 $aaa][string .aaa"]', + 10 + ); + + MT('variable_interpolation_complex_syntax_3_1', + '[meta <?php] [comment /* Recursive monsters */]', + '[keyword echo] ' + m1[4] + ';', + '[keyword echo] ' + m1[7] + ';', + '[keyword echo] ' + m1[8] + ';', + '[keyword echo] ' + m1[5] + ';', + '[keyword echo] ' + m1[1] + ';', + '[keyword echo] ' + m1[6] + ';', + '[keyword echo] ' + m1[9] + ';', + '[keyword echo] ' + m1[0] + ';', + '[keyword echo] ' + m1[10] + ';', + '[keyword echo] ' + m1[2] + ';', + '[keyword echo] ' + m1[3] + ';', + '[keyword echo] [string "end"];', + '[meta ?>]'); + + var m2 = build_recursive_monsters( + ['[string "a][variable-2 $]{[variable aaa] [operator +] ', ' [operator +] ', '}[string .a"]'], + '[comment /* }?>{{ */] [string "a?>}{{aa][variable-2 $aaa][string .a}a?>a"]', + 5 + ); + + MT('variable_interpolation_complex_syntax_3_2', + '[meta <?php] [comment /* Recursive monsters 2 */]', + '[keyword echo] ' + m2[0] + ';', + '[keyword echo] ' + m2[1] + ';', + '[keyword echo] ' + m2[5] + ';', + '[keyword echo] ' + m2[4] + ';', + '[keyword echo] ' + m2[2] + ';', + '[keyword echo] ' + m2[3] + ';', + '[keyword echo] [string "end"];', + '[meta ?>]'); + + function build_recursive_monsters_2(mf1, mf2, nt, t, n){ + var monsters = [t]; + for (var i = 1; i <= n; ++i) + monsters[i] = nt[0] + mf1[i - 1] + nt[1] + mf2[i - 1] + nt[2] + monsters[i - 1] + nt[3]; + return monsters; + } + + var m3 = build_recursive_monsters_2( + m1, + m2, + ['[string "a][variable-2 $]{[variable aaa] [operator +] ', ' [operator +] ', ' [operator +] ', '}[string .a"]'], + '[comment /* }?>{{ */] [string "a?>}{{aa][variable-2 $aaa][string .a}a?>a"]', + 4 + ); + + MT('variable_interpolation_complex_syntax_3_3', + '[meta <?php] [comment /* Recursive monsters 2 */]', + '[keyword echo] ' + m3[4] + ';', + '[keyword echo] ' + m3[0] + ';', + '[keyword echo] ' + m3[3] + ';', + '[keyword echo] ' + m3[1] + ';', + '[keyword echo] ' + m3[2] + ';', + '[keyword echo] [string "end"];', + '[meta ?>]'); + + MT("variable_interpolation_heredoc", + "[meta <?php]", + "[string <<<here]", + "[string doc ][variable-2 $]{[variable yay]}[string more]", + "[string here]; [comment // normal]"); +})(); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/pig/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/pig/index.html new file mode 100644 index 0000000..ea77f70 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/pig/index.html @@ -0,0 +1,53 @@ +<!doctype html> +<title>CodeMirror: Pig Latin mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="pig.js"></script> +<style>.CodeMirror {border: 2px inset #dee;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Pig Latin</a> + </ul> +</div> + +<article> +<h2>Pig Latin mode</h2> +<form><textarea id="code" name="code"> +-- Apache Pig (Pig Latin Language) Demo +/* +This is a multiline comment. +*/ +a = LOAD "\path\to\input" USING PigStorage('\t') AS (x:long, y:chararray, z:bytearray); +b = GROUP a BY (x,y,3+4); +c = FOREACH b GENERATE flatten(group) as (x,y), SUM(group.$2) as z; +STORE c INTO "\path\to\output"; + +-- +</textarea></form> + + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + lineNumbers: true, + indentUnit: 4, + mode: "text/x-pig" + }); + </script> + + <p> + Simple mode that handles Pig Latin language. + </p> + + <p><strong>MIME type defined:</strong> <code>text/x-pig</code> + (PIG code) +</article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/pig/pig.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/pig/pig.js new file mode 100644 index 0000000..5b56727 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/pig/pig.js @@ -0,0 +1,178 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +/* + * Pig Latin Mode for CodeMirror 2 + * @author Prasanth Jayachandran + * @link https://github.com/prasanthj/pig-codemirror-2 + * This implementation is adapted from PL/SQL mode in CodeMirror 2. + */ +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("pig", function(_config, parserConfig) { + var keywords = parserConfig.keywords, + builtins = parserConfig.builtins, + types = parserConfig.types, + multiLineStrings = parserConfig.multiLineStrings; + + var isOperatorChar = /[*+\-%<>=&?:\/!|]/; + + function chain(stream, state, f) { + state.tokenize = f; + return f(stream, state); + } + + function tokenComment(stream, state) { + var isEnd = false; + var ch; + while(ch = stream.next()) { + if(ch == "/" && isEnd) { + state.tokenize = tokenBase; + break; + } + isEnd = (ch == "*"); + } + return "comment"; + } + + function tokenString(quote) { + return function(stream, state) { + var escaped = false, next, end = false; + while((next = stream.next()) != null) { + if (next == quote && !escaped) { + end = true; break; + } + escaped = !escaped && next == "\\"; + } + if (end || !(escaped || multiLineStrings)) + state.tokenize = tokenBase; + return "error"; + }; + } + + + function tokenBase(stream, state) { + var ch = stream.next(); + + // is a start of string? + if (ch == '"' || ch == "'") + return chain(stream, state, tokenString(ch)); + // is it one of the special chars + else if(/[\[\]{}\(\),;\.]/.test(ch)) + return null; + // is it a number? + else if(/\d/.test(ch)) { + stream.eatWhile(/[\w\.]/); + return "number"; + } + // multi line comment or operator + else if (ch == "/") { + if (stream.eat("*")) { + return chain(stream, state, tokenComment); + } + else { + stream.eatWhile(isOperatorChar); + return "operator"; + } + } + // single line comment or operator + else if (ch=="-") { + if(stream.eat("-")){ + stream.skipToEnd(); + return "comment"; + } + else { + stream.eatWhile(isOperatorChar); + return "operator"; + } + } + // is it an operator + else if (isOperatorChar.test(ch)) { + stream.eatWhile(isOperatorChar); + return "operator"; + } + else { + // get the while word + stream.eatWhile(/[\w\$_]/); + // is it one of the listed keywords? + if (keywords && keywords.propertyIsEnumerable(stream.current().toUpperCase())) { + //keywords can be used as variables like flatten(group), group.$0 etc.. + if (!stream.eat(")") && !stream.eat(".")) + return "keyword"; + } + // is it one of the builtin functions? + if (builtins && builtins.propertyIsEnumerable(stream.current().toUpperCase())) + return "variable-2"; + // is it one of the listed types? + if (types && types.propertyIsEnumerable(stream.current().toUpperCase())) + return "variable-3"; + // default is a 'variable' + return "variable"; + } + } + + // Interface + return { + startState: function() { + return { + tokenize: tokenBase, + startOfLine: true + }; + }, + + token: function(stream, state) { + if(stream.eatSpace()) return null; + var style = state.tokenize(stream, state); + return style; + } + }; +}); + +(function() { + function keywords(str) { + var obj = {}, words = str.split(" "); + for (var i = 0; i < words.length; ++i) obj[words[i]] = true; + return obj; + } + + // builtin funcs taken from trunk revision 1303237 + var pBuiltins = "ABS ACOS ARITY ASIN ATAN AVG BAGSIZE BINSTORAGE BLOOM BUILDBLOOM CBRT CEIL " + + "CONCAT COR COS COSH COUNT COUNT_STAR COV CONSTANTSIZE CUBEDIMENSIONS DIFF DISTINCT DOUBLEABS " + + "DOUBLEAVG DOUBLEBASE DOUBLEMAX DOUBLEMIN DOUBLEROUND DOUBLESUM EXP FLOOR FLOATABS FLOATAVG " + + "FLOATMAX FLOATMIN FLOATROUND FLOATSUM GENERICINVOKER INDEXOF INTABS INTAVG INTMAX INTMIN " + + "INTSUM INVOKEFORDOUBLE INVOKEFORFLOAT INVOKEFORINT INVOKEFORLONG INVOKEFORSTRING INVOKER " + + "ISEMPTY JSONLOADER JSONMETADATA JSONSTORAGE LAST_INDEX_OF LCFIRST LOG LOG10 LOWER LONGABS " + + "LONGAVG LONGMAX LONGMIN LONGSUM MAX MIN MAPSIZE MONITOREDUDF NONDETERMINISTIC OUTPUTSCHEMA " + + "PIGSTORAGE PIGSTREAMING RANDOM REGEX_EXTRACT REGEX_EXTRACT_ALL REPLACE ROUND SIN SINH SIZE " + + "SQRT STRSPLIT SUBSTRING SUM STRINGCONCAT STRINGMAX STRINGMIN STRINGSIZE TAN TANH TOBAG " + + "TOKENIZE TOMAP TOP TOTUPLE TRIM TEXTLOADER TUPLESIZE UCFIRST UPPER UTF8STORAGECONVERTER "; + + // taken from QueryLexer.g + var pKeywords = "VOID IMPORT RETURNS DEFINE LOAD FILTER FOREACH ORDER CUBE DISTINCT COGROUP " + + "JOIN CROSS UNION SPLIT INTO IF OTHERWISE ALL AS BY USING INNER OUTER ONSCHEMA PARALLEL " + + "PARTITION GROUP AND OR NOT GENERATE FLATTEN ASC DESC IS STREAM THROUGH STORE MAPREDUCE " + + "SHIP CACHE INPUT OUTPUT STDERROR STDIN STDOUT LIMIT SAMPLE LEFT RIGHT FULL EQ GT LT GTE LTE " + + "NEQ MATCHES TRUE FALSE DUMP"; + + // data types + var pTypes = "BOOLEAN INT LONG FLOAT DOUBLE CHARARRAY BYTEARRAY BAG TUPLE MAP "; + + CodeMirror.defineMIME("text/x-pig", { + name: "pig", + builtins: keywords(pBuiltins), + keywords: keywords(pKeywords), + types: keywords(pTypes) + }); + + CodeMirror.registerHelper("hintWords", "pig", (pBuiltins + pTypes + pKeywords).split(" ")); +}()); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/powershell/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/powershell/index.html new file mode 100644 index 0000000..6b235df --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/powershell/index.html @@ -0,0 +1,204 @@ +<!doctype html> +<html> + <head> + <meta charset="utf-8"> + <title>CodeMirror: Powershell mode</title> + <link rel="stylesheet" href="../../doc/docs.css"> + <link rel="stylesheet" href="../../lib/codemirror.css"> + <script src="../../lib/codemirror.js"></script> + <script src="powershell.js"></script> + <style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> + </head> + <body> + <div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">JavaScript</a> + </ul> + </div> + <article> + <h2>PowerShell mode</h2> + + <div><textarea id="code" name="code"> +# Number Literals +0 12345 +12kb 12mb 12gB 12Tb 12PB 12L 12D 12lkb 12dtb +1.234 1.234e56 1. 1.e2 .2 .2e34 +1.2MB 1.kb .1dTb 1.e1gb +0x1 0xabcdef 0x3tb 0xelmb + +# String Literals +'Literal escaping''' +'Literal $variable' +"Escaping 1`"" +"Escaping 2""" +"Escaped `$variable" +"Text, $variable and more text" +"Text, ${variable with spaces} and more text." +"Text, $($expression + 3) and more text." +"Text, $("interpolation $("inception")") and more text." + +@" +Multiline +string +"@ +# -- +@" +Multiline +string with quotes "' +"@ +# -- +@' +Multiline literal +string with quotes "' +'@ + +# Array and Hash literals +@( 'a','b','c' ) +@{ 'key': 'value' } + +# Variables +$Variable = 5 +$global:variable = 5 +${Variable with spaces} = 5 + +# Operators += += -= *= /= %= +++ -- .. -f * / % + - +-not ! -bnot +-split -isplit -csplit +-join +-is -isnot -as +-eq -ieq -ceq -ne -ine -cne +-gt -igt -cgt -ge -ige -cge +-lt -ilt -clt -le -ile -cle +-like -ilike -clike -notlike -inotlike -cnotlike +-match -imatch -cmatch -notmatch -inotmatch -cnotmatch +-contains -icontains -ccontains -notcontains -inotcontains -cnotcontains +-replace -ireplace -creplace +-band -bor -bxor +-and -or -xor + +# Punctuation +() [] {} , : ` = ; . + +# Keywords +elseif begin function for foreach return else trap while do data dynamicparam +until end break if throw param continue finally in switch exit filter from try +process catch + +# Built-in variables +$$ $? $^ $_ +$args $ConfirmPreference $ConsoleFileName $DebugPreference $Error +$ErrorActionPreference $ErrorView $ExecutionContext $false $FormatEnumerationLimit +$HOME $Host $input $MaximumAliasCount $MaximumDriveCount $MaximumErrorCount +$MaximumFunctionCount $MaximumHistoryCount $MaximumVariableCount $MyInvocation +$NestedPromptLevel $null $OutputEncoding $PID $PROFILE $ProgressPreference +$PSBoundParameters $PSCommandPath $PSCulture $PSDefaultParameterValues +$PSEmailServer $PSHOME $PSScriptRoot $PSSessionApplicationName +$PSSessionConfigurationName $PSSessionOption $PSUICulture $PSVersionTable $PWD +$ShellId $StackTrace $true $VerbosePreference $WarningPreference $WhatIfPreference +$true $false $null + +# Built-in functions +A: +Add-Computer Add-Content Add-History Add-Member Add-PSSnapin Add-Type +B: +C: +Checkpoint-Computer Clear-Content Clear-EventLog Clear-History Clear-Host Clear-Item +Clear-ItemProperty Clear-Variable Compare-Object Complete-Transaction Connect-PSSession +ConvertFrom-Csv ConvertFrom-Json ConvertFrom-SecureString ConvertFrom-StringData +Convert-Path ConvertTo-Csv ConvertTo-Html ConvertTo-Json ConvertTo-SecureString +ConvertTo-Xml Copy-Item Copy-ItemProperty +D: +Debug-Process Disable-ComputerRestore Disable-PSBreakpoint Disable-PSRemoting +Disable-PSSessionConfiguration Disconnect-PSSession +E: +Enable-ComputerRestore Enable-PSBreakpoint Enable-PSRemoting Enable-PSSessionConfiguration +Enter-PSSession Exit-PSSession Export-Alias Export-Clixml Export-Console Export-Counter +Export-Csv Export-FormatData Export-ModuleMember Export-PSSession +F: +ForEach-Object Format-Custom Format-List Format-Table Format-Wide +G: +Get-Acl Get-Alias Get-AuthenticodeSignature Get-ChildItem Get-Command Get-ComputerRestorePoint +Get-Content Get-ControlPanelItem Get-Counter Get-Credential Get-Culture Get-Date +Get-Event Get-EventLog Get-EventSubscriber Get-ExecutionPolicy Get-FormatData Get-Help +Get-History Get-Host Get-HotFix Get-Item Get-ItemProperty Get-Job Get-Location Get-Member +Get-Module Get-PfxCertificate Get-Process Get-PSBreakpoint Get-PSCallStack Get-PSDrive +Get-PSProvider Get-PSSession Get-PSSessionConfiguration Get-PSSnapin Get-Random Get-Service +Get-TraceSource Get-Transaction Get-TypeData Get-UICulture Get-Unique Get-Variable Get-Verb +Get-WinEvent Get-WmiObject Group-Object +H: +help +I: +Import-Alias Import-Clixml Import-Counter Import-Csv Import-LocalizedData Import-Module +Import-PSSession ImportSystemModules Invoke-Command Invoke-Expression Invoke-History +Invoke-Item Invoke-RestMethod Invoke-WebRequest Invoke-WmiMethod +J: +Join-Path +K: +L: +Limit-EventLog +M: +Measure-Command Measure-Object mkdir more Move-Item Move-ItemProperty +N: +New-Alias New-Event New-EventLog New-Item New-ItemProperty New-Module New-ModuleManifest +New-Object New-PSDrive New-PSSession New-PSSessionConfigurationFile New-PSSessionOption +New-PSTransportOption New-Service New-TimeSpan New-Variable New-WebServiceProxy +New-WinEvent +O: +oss Out-Default Out-File Out-GridView Out-Host Out-Null Out-Printer Out-String +P: +Pause Pop-Location prompt Push-Location +Q: +R: +Read-Host Receive-Job Receive-PSSession Register-EngineEvent Register-ObjectEvent +Register-PSSessionConfiguration Register-WmiEvent Remove-Computer Remove-Event +Remove-EventLog Remove-Item Remove-ItemProperty Remove-Job Remove-Module +Remove-PSBreakpoint Remove-PSDrive Remove-PSSession Remove-PSSnapin Remove-TypeData +Remove-Variable Remove-WmiObject Rename-Computer Rename-Item Rename-ItemProperty +Reset-ComputerMachinePassword Resolve-Path Restart-Computer Restart-Service +Restore-Computer Resume-Job Resume-Service +S: +Save-Help Select-Object Select-String Select-Xml Send-MailMessage Set-Acl Set-Alias +Set-AuthenticodeSignature Set-Content Set-Date Set-ExecutionPolicy Set-Item +Set-ItemProperty Set-Location Set-PSBreakpoint Set-PSDebug +Set-PSSessionConfiguration Set-Service Set-StrictMode Set-TraceSource Set-Variable +Set-WmiInstance Show-Command Show-ControlPanelItem Show-EventLog Sort-Object +Split-Path Start-Job Start-Process Start-Service Start-Sleep Start-Transaction +Start-Transcript Stop-Computer Stop-Job Stop-Process Stop-Service Stop-Transcript +Suspend-Job Suspend-Service +T: +TabExpansion2 Tee-Object Test-ComputerSecureChannel Test-Connection +Test-ModuleManifest Test-Path Test-PSSessionConfigurationFile Trace-Command +U: +Unblock-File Undo-Transaction Unregister-Event Unregister-PSSessionConfiguration +Update-FormatData Update-Help Update-List Update-TypeData Use-Transaction +V: +W: +Wait-Event Wait-Job Wait-Process Where-Object Write-Debug Write-Error Write-EventLog +Write-Host Write-Output Write-Progress Write-Verbose Write-Warning +X: +Y: +Z:</textarea></div> + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + mode: "powershell", + lineNumbers: true, + indentUnit: 4, + tabMode: "shift", + matchBrackets: true + }); + </script> + + <p><strong>MIME types defined:</strong> <code>application/x-powershell</code>.</p> + </article> + </body> +</html> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/powershell/powershell.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/powershell/powershell.js new file mode 100644 index 0000000..c443e72 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/powershell/powershell.js @@ -0,0 +1,396 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + 'use strict'; + if (typeof exports == 'object' && typeof module == 'object') // CommonJS + mod(require('codemirror')); + else if (typeof define == 'function' && define.amd) // AMD + define(['codemirror'], mod); + else // Plain browser env + mod(window.CodeMirror); +})(function(CodeMirror) { +'use strict'; + +CodeMirror.defineMode('powershell', function() { + function buildRegexp(patterns, options) { + options = options || {}; + var prefix = options.prefix !== undefined ? options.prefix : '^'; + var suffix = options.suffix !== undefined ? options.suffix : '\\b'; + + for (var i = 0; i < patterns.length; i++) { + if (patterns[i] instanceof RegExp) { + patterns[i] = patterns[i].source; + } + else { + patterns[i] = patterns[i].replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'); + } + } + + return new RegExp(prefix + '(' + patterns.join('|') + ')' + suffix, 'i'); + } + + var notCharacterOrDash = '(?=[^A-Za-z\\d\\-_]|$)'; + var varNames = /[\w\-:]/ + var keywords = buildRegexp([ + /begin|break|catch|continue|data|default|do|dynamicparam/, + /else|elseif|end|exit|filter|finally|for|foreach|from|function|if|in/, + /param|process|return|switch|throw|trap|try|until|where|while/ + ], { suffix: notCharacterOrDash }); + + var punctuation = /[\[\]{},;`\.]|@[({]/; + var wordOperators = buildRegexp([ + 'f', + /b?not/, + /[ic]?split/, 'join', + /is(not)?/, 'as', + /[ic]?(eq|ne|[gl][te])/, + /[ic]?(not)?(like|match|contains)/, + /[ic]?replace/, + /b?(and|or|xor)/ + ], { prefix: '-' }); + var symbolOperators = /[+\-*\/%]=|\+\+|--|\.\.|[+\-*&^%:=!|\/]|<(?!#)|(?!#)>/; + var operators = buildRegexp([wordOperators, symbolOperators], { suffix: '' }); + + var numbers = /^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i; + + var identifiers = /^[A-Za-z\_][A-Za-z\-\_\d]*\b/; + + var symbolBuiltins = /[A-Z]:|%|\?/i; + var namedBuiltins = buildRegexp([ + /Add-(Computer|Content|History|Member|PSSnapin|Type)/, + /Checkpoint-Computer/, + /Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/, + /Compare-Object/, + /Complete-Transaction/, + /Connect-PSSession/, + /ConvertFrom-(Csv|Json|SecureString|StringData)/, + /Convert-Path/, + /ConvertTo-(Csv|Html|Json|SecureString|Xml)/, + /Copy-Item(Property)?/, + /Debug-Process/, + /Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/, + /Disconnect-PSSession/, + /Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/, + /(Enter|Exit)-PSSession/, + /Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/, + /ForEach-Object/, + /Format-(Custom|List|Table|Wide)/, + new RegExp('Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential' + + '|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job' + + '|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration' + + '|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)'), + /Group-Object/, + /Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/, + /ImportSystemModules/, + /Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/, + /Join-Path/, + /Limit-EventLog/, + /Measure-(Command|Object)/, + /Move-Item(Property)?/, + new RegExp('New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile' + + '|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)'), + /Out-(Default|File|GridView|Host|Null|Printer|String)/, + /Pause/, + /(Pop|Push)-Location/, + /Read-Host/, + /Receive-(Job|PSSession)/, + /Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/, + /Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/, + /Rename-(Computer|Item(Property)?)/, + /Reset-ComputerMachinePassword/, + /Resolve-Path/, + /Restart-(Computer|Service)/, + /Restore-Computer/, + /Resume-(Job|Service)/, + /Save-Help/, + /Select-(Object|String|Xml)/, + /Send-MailMessage/, + new RegExp('Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug' + + '|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)'), + /Show-(Command|ControlPanelItem|EventLog)/, + /Sort-Object/, + /Split-Path/, + /Start-(Job|Process|Service|Sleep|Transaction|Transcript)/, + /Stop-(Computer|Job|Process|Service|Transcript)/, + /Suspend-(Job|Service)/, + /TabExpansion2/, + /Tee-Object/, + /Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/, + /Trace-Command/, + /Unblock-File/, + /Undo-Transaction/, + /Unregister-(Event|PSSessionConfiguration)/, + /Update-(FormatData|Help|List|TypeData)/, + /Use-Transaction/, + /Wait-(Event|Job|Process)/, + /Where-Object/, + /Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/, + /cd|help|mkdir|more|oss|prompt/, + /ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/, + /echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/, + /group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/, + /measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/, + /rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/, + /sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/ + ], { prefix: '', suffix: '' }); + var variableBuiltins = buildRegexp([ + /[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/, + /FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/, + /MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/, + /PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/, + /PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/, + /WarningPreference|WhatIfPreference/, + + /Event|EventArgs|EventSubscriber|Sender/, + /Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/, + /true|false|null/ + ], { prefix: '\\$', suffix: '' }); + + var builtins = buildRegexp([symbolBuiltins, namedBuiltins, variableBuiltins], { suffix: notCharacterOrDash }); + + var grammar = { + keyword: keywords, + number: numbers, + operator: operators, + builtin: builtins, + punctuation: punctuation, + identifier: identifiers + }; + + // tokenizers + function tokenBase(stream, state) { + // Handle Comments + //var ch = stream.peek(); + + var parent = state.returnStack[state.returnStack.length - 1]; + if (parent && parent.shouldReturnFrom(state)) { + state.tokenize = parent.tokenize; + state.returnStack.pop(); + return state.tokenize(stream, state); + } + + if (stream.eatSpace()) { + return null; + } + + if (stream.eat('(')) { + state.bracketNesting += 1; + return 'punctuation'; + } + + if (stream.eat(')')) { + state.bracketNesting -= 1; + return 'punctuation'; + } + + for (var key in grammar) { + if (stream.match(grammar[key])) { + return key; + } + } + + var ch = stream.next(); + + // single-quote string + if (ch === "'") { + return tokenSingleQuoteString(stream, state); + } + + if (ch === '$') { + return tokenVariable(stream, state); + } + + // double-quote string + if (ch === '"') { + return tokenDoubleQuoteString(stream, state); + } + + if (ch === '<' && stream.eat('#')) { + state.tokenize = tokenComment; + return tokenComment(stream, state); + } + + if (ch === '#') { + stream.skipToEnd(); + return 'comment'; + } + + if (ch === '@') { + var quoteMatch = stream.eat(/["']/); + if (quoteMatch && stream.eol()) { + state.tokenize = tokenMultiString; + state.startQuote = quoteMatch[0]; + return tokenMultiString(stream, state); + } else if (stream.peek().match(/[({]/)) { + return 'punctuation'; + } else if (stream.peek().match(varNames)) { + // splatted variable + return tokenVariable(stream, state); + } + } + return 'error'; + } + + function tokenSingleQuoteString(stream, state) { + var ch; + while ((ch = stream.peek()) != null) { + stream.next(); + + if (ch === "'" && !stream.eat("'")) { + state.tokenize = tokenBase; + return 'string'; + } + } + + return 'error'; + } + + function tokenDoubleQuoteString(stream, state) { + var ch; + while ((ch = stream.peek()) != null) { + if (ch === '$') { + state.tokenize = tokenStringInterpolation; + return 'string'; + } + + stream.next(); + if (ch === '`') { + stream.next(); + continue; + } + + if (ch === '"' && !stream.eat('"')) { + state.tokenize = tokenBase; + return 'string'; + } + } + + return 'error'; + } + + function tokenStringInterpolation(stream, state) { + return tokenInterpolation(stream, state, tokenDoubleQuoteString); + } + + function tokenMultiStringReturn(stream, state) { + state.tokenize = tokenMultiString; + state.startQuote = '"' + return tokenMultiString(stream, state); + } + + function tokenHereStringInterpolation(stream, state) { + return tokenInterpolation(stream, state, tokenMultiStringReturn); + } + + function tokenInterpolation(stream, state, parentTokenize) { + if (stream.match('$(')) { + var savedBracketNesting = state.bracketNesting; + state.returnStack.push({ + /*jshint loopfunc:true */ + shouldReturnFrom: function(state) { + return state.bracketNesting === savedBracketNesting; + }, + tokenize: parentTokenize + }); + state.tokenize = tokenBase; + state.bracketNesting += 1; + return 'punctuation'; + } else { + stream.next(); + state.returnStack.push({ + shouldReturnFrom: function() { return true; }, + tokenize: parentTokenize + }); + state.tokenize = tokenVariable; + return state.tokenize(stream, state); + } + } + + function tokenComment(stream, state) { + var maybeEnd = false, ch; + while ((ch = stream.next()) != null) { + if (maybeEnd && ch == '>') { + state.tokenize = tokenBase; + break; + } + maybeEnd = (ch === '#'); + } + return 'comment'; + } + + function tokenVariable(stream, state) { + var ch = stream.peek(); + if (stream.eat('{')) { + state.tokenize = tokenVariableWithBraces; + return tokenVariableWithBraces(stream, state); + } else if (ch != undefined && ch.match(varNames)) { + stream.eatWhile(varNames); + state.tokenize = tokenBase; + return 'variable-2'; + } else { + state.tokenize = tokenBase; + return 'error'; + } + } + + function tokenVariableWithBraces(stream, state) { + var ch; + while ((ch = stream.next()) != null) { + if (ch === '}') { + state.tokenize = tokenBase; + break; + } + } + return 'variable-2'; + } + + function tokenMultiString(stream, state) { + var quote = state.startQuote; + if (stream.sol() && stream.match(new RegExp(quote + '@'))) { + state.tokenize = tokenBase; + } + else if (quote === '"') { + while (!stream.eol()) { + var ch = stream.peek(); + if (ch === '$') { + state.tokenize = tokenHereStringInterpolation; + return 'string'; + } + + stream.next(); + if (ch === '`') { + stream.next(); + } + } + } + else { + stream.skipToEnd(); + } + + return 'string'; + } + + var external = { + startState: function() { + return { + returnStack: [], + bracketNesting: 0, + tokenize: tokenBase + }; + }, + + token: function(stream, state) { + return state.tokenize(stream, state); + }, + + blockCommentStart: '<#', + blockCommentEnd: '#>', + lineComment: '#', + fold: 'brace' + }; + return external; +}); + +CodeMirror.defineMIME('application/x-powershell', 'powershell'); +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/powershell/test.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/powershell/test.js new file mode 100644 index 0000000..59b8e6f --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/powershell/test.js @@ -0,0 +1,72 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function() { + var mode = CodeMirror.getMode({indentUnit: 2}, "powershell"); + function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); } + + MT('comment', '[number 1][comment # A]'); + MT('comment_multiline', '[number 1][comment <#]', + '[comment ABC]', + '[comment #>][number 2]'); + + [ + '0', '1234', + '12kb', '12mb', '12Gb', '12Tb', '12PB', '12L', '12D', '12lkb', '12dtb', + '1.234', '1.234e56', '1.', '1.e2', '.2', '.2e34', + '1.2MB', '1.kb', '.1dTB', '1.e1gb', '.2', '.2e34', + '0x1', '0xabcdef', '0x3tb', '0xelmb' + ].forEach(function(number) { + MT("number_" + number, "[number " + number + "]"); + }); + + MT('string_literal_escaping', "[string 'a''']"); + MT('string_literal_variable', "[string 'a $x']"); + MT('string_escaping_1', '[string "a `""]'); + MT('string_escaping_2', '[string "a """]'); + MT('string_variable_escaping', '[string "a `$x"]'); + MT('string_variable', '[string "a ][variable-2 $x][string b"]'); + MT('string_variable_spaces', '[string "a ][variable-2 ${x y}][string b"]'); + MT('string_expression', '[string "a ][punctuation $(][variable-2 $x][operator +][number 3][punctuation )][string b"]'); + MT('string_expression_nested', '[string "A][punctuation $(][string "a][punctuation $(][string "w"][punctuation )][string b"][punctuation )][string B"]'); + + MT('string_heredoc', '[string @"]', + '[string abc]', + '[string "@]'); + MT('string_heredoc_quotes', '[string @"]', + '[string abc "\']', + '[string "@]'); + MT('string_heredoc_variable', '[string @"]', + '[string a ][variable-2 $x][string b]', + '[string "@]'); + MT('string_heredoc_nested_string', '[string @"]', + '[string a][punctuation $(][string "w"][punctuation )][string b]', + '[string "@]'); + MT('string_heredoc_literal_quotes', "[string @']", + '[string abc "\']', + "[string '@]"); + + MT('array', "[punctuation @(][string 'a'][punctuation ,][string 'b'][punctuation )]"); + MT('hash', "[punctuation @{][string 'key'][operator :][string 'value'][punctuation }]"); + + MT('variable', "[variable-2 $test]"); + MT('variable_global', "[variable-2 $global:test]"); + MT('variable_spaces', "[variable-2 ${test test}]"); + MT('operator_splat', "[variable-2 @x]"); + MT('variable_builtin', "[builtin $ErrorActionPreference]"); + MT('variable_builtin_symbols', "[builtin $$]"); + + MT('operator', "[operator +]"); + MT('operator_unary', "[operator +][number 3]"); + MT('operator_long', "[operator -match]"); + + [ + '(', ')', '[[', ']]', '{', '}', ',', '`', ';', '.' + ].forEach(function(punctuation) { + MT("punctuation_" + punctuation.replace(/^[\[\]]/,''), "[punctuation " + punctuation + "]"); + }); + + MT('keyword', "[keyword if]"); + + MT('call_builtin', "[builtin Get-ChildItem]"); +})(); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/properties/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/properties/index.html new file mode 100644 index 0000000..f885302 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/properties/index.html @@ -0,0 +1,53 @@ +<!doctype html> + +<title>CodeMirror: Properties files mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="properties.js"></script> +<style>.CodeMirror {border-top: 1px solid #ddd; border-bottom: 1px solid #ddd;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Properties files</a> + </ul> +</div> + +<article> +<h2>Properties files mode</h2> +<form><textarea id="code" name="code"> +# This is a properties file +a.key = A value +another.key = http://example.com +! Exclamation mark as comment +but.not=Within ! A value # indeed + # Spaces at the beginning of a line + spaces.before.key=value +backslash=Used for multi\ + line entries,\ + that's convenient. +# Unicode sequences +unicode.key=This is \u0020 Unicode +no.multiline=here +# Colons +colons : can be used too +# Spaces +spaces\ in\ keys=Not very common... +</textarea></form> + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), {}); + </script> + + <p><strong>MIME types defined:</strong> <code>text/x-properties</code>, + <code>text/x-ini</code>.</p> + + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/properties/properties.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/properties/properties.js new file mode 100644 index 0000000..ef8bf37 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/properties/properties.js @@ -0,0 +1,78 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("properties", function() { + return { + token: function(stream, state) { + var sol = stream.sol() || state.afterSection; + var eol = stream.eol(); + + state.afterSection = false; + + if (sol) { + if (state.nextMultiline) { + state.inMultiline = true; + state.nextMultiline = false; + } else { + state.position = "def"; + } + } + + if (eol && ! state.nextMultiline) { + state.inMultiline = false; + state.position = "def"; + } + + if (sol) { + while(stream.eatSpace()) {} + } + + var ch = stream.next(); + + if (sol && (ch === "#" || ch === "!" || ch === ";")) { + state.position = "comment"; + stream.skipToEnd(); + return "comment"; + } else if (sol && ch === "[") { + state.afterSection = true; + stream.skipTo("]"); stream.eat("]"); + return "header"; + } else if (ch === "=" || ch === ":") { + state.position = "quote"; + return null; + } else if (ch === "\\" && state.position === "quote") { + if (stream.eol()) { // end of line? + // Multiline value + state.nextMultiline = true; + } + } + + return state.position; + }, + + startState: function() { + return { + position : "def", // Current position, "def", "quote" or "comment" + nextMultiline : false, // Is the next line multiline value + inMultiline : false, // Is the current line a multiline value + afterSection : false // Did we just open a section + }; + } + + }; +}); + +CodeMirror.defineMIME("text/x-properties", "properties"); +CodeMirror.defineMIME("text/x-ini", "properties"); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/protobuf/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/protobuf/index.html new file mode 100644 index 0000000..cfe7b9d --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/protobuf/index.html @@ -0,0 +1,64 @@ +<!doctype html> + +<title>CodeMirror: ProtoBuf mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="protobuf.js"></script> +<style>.CodeMirror { border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">ProtoBuf</a> + </ul> +</div> + +<article> +<h2>ProtoBuf mode</h2> +<form><textarea id="code" name="code"> +package addressbook; + +message Address { + required string street = 1; + required string postCode = 2; +} + +message PhoneNumber { + required string number = 1; +} + +message Person { + optional int32 id = 1; + required string name = 2; + required string surname = 3; + optional Address address = 4; + repeated PhoneNumber phoneNumbers = 5; + optional uint32 age = 6; + repeated uint32 favouriteNumbers = 7; + optional string license = 8; + enum Gender { + MALE = 0; + FEMALE = 1; + } + optional Gender gender = 9; + optional fixed64 lastUpdate = 10; + required bool deleted = 11 [default = false]; +} + +</textarea></form> + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), {}); + </script> + + <p><strong>MIME types defined:</strong> <code>text/x-protobuf</code>.</p> + + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/protobuf/protobuf.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/protobuf/protobuf.js new file mode 100644 index 0000000..bcae276 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/protobuf/protobuf.js @@ -0,0 +1,68 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { + "use strict"; + + function wordRegexp(words) { + return new RegExp("^((" + words.join(")|(") + "))\\b", "i"); + }; + + var keywordArray = [ + "package", "message", "import", "syntax", + "required", "optional", "repeated", "reserved", "default", "extensions", "packed", + "bool", "bytes", "double", "enum", "float", "string", + "int32", "int64", "uint32", "uint64", "sint32", "sint64", "fixed32", "fixed64", "sfixed32", "sfixed64" + ]; + var keywords = wordRegexp(keywordArray); + + CodeMirror.registerHelper("hintWords", "protobuf", keywordArray); + + var identifiers = new RegExp("^[_A-Za-z\xa1-\uffff][_A-Za-z0-9\xa1-\uffff]*"); + + function tokenBase(stream) { + // whitespaces + if (stream.eatSpace()) return null; + + // Handle one line Comments + if (stream.match("//")) { + stream.skipToEnd(); + return "comment"; + } + + // Handle Number Literals + if (stream.match(/^[0-9\.+-]/, false)) { + if (stream.match(/^[+-]?0x[0-9a-fA-F]+/)) + return "number"; + if (stream.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/)) + return "number"; + if (stream.match(/^[+-]?\d+([EeDd][+-]?\d+)?/)) + return "number"; + } + + // Handle Strings + if (stream.match(/^"([^"]|(""))*"/)) { return "string"; } + if (stream.match(/^'([^']|(''))*'/)) { return "string"; } + + // Handle words + if (stream.match(keywords)) { return "keyword"; } + if (stream.match(identifiers)) { return "variable"; } ; + + // Handle non-detected items + stream.next(); + return null; + }; + + CodeMirror.defineMode("protobuf", function() { + return {token: tokenBase}; + }); + + CodeMirror.defineMIME("text/x-protobuf", "protobuf"); +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/pug/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/pug/index.html new file mode 100644 index 0000000..1765853 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/pug/index.html @@ -0,0 +1,70 @@ +<!doctype html> + +<title>CodeMirror: Pug Templating Mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../javascript/javascript.js"></script> +<script src="../css/css.js"></script> +<script src="../xml/xml.js"></script> +<script src="../htmlmixed/htmlmixed.js"></script> +<script src="pug.js"></script> +<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Pug Templating Mode</a> + </ul> +</div> + +<article> +<h2>Pug Templating Mode</h2> +<form><textarea id="code" name="code"> +doctype html + html + head + title= "Pug Templating CodeMirror Mode Example" + link(rel='stylesheet', href='/css/bootstrap.min.css') + link(rel='stylesheet', href='/css/index.css') + script(type='text/javascript', src='/js/jquery-1.9.1.min.js') + script(type='text/javascript', src='/js/bootstrap.min.js') + body + div.header + h1 Welcome to this Example + div.spots + if locals.spots + each spot in spots + div.spot.well + div + if spot.logo + img.img-rounded.logo(src=spot.logo) + else + img.img-rounded.logo(src="img/placeholder.png") + h3 + a(href=spot.hash) ##{spot.hash} + if spot.title + span.title #{spot.title} + if spot.desc + div #{spot.desc} + else + h3 There are no spots currently available. +</textarea></form> + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + mode: {name: "pug", alignCDATA: true}, + lineNumbers: true + }); + </script> + <h3>The Pug Templating Mode</h3> + <p> Created by Forbes Lindesay. Managed as part of a Brackets extension at <a href="https://github.com/ForbesLindesay/jade-brackets">https://github.com/ForbesLindesay/jade-brackets</a>.</p> + <p><strong>MIME type defined:</strong> <code>text/x-pug</code>, <code>text/x-jade</code>.</p> + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/pug/pug.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/pug/pug.js new file mode 100644 index 0000000..4018233 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/pug/pug.js @@ -0,0 +1,591 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror"), require("../javascript/javascript"), require("../css/css"), require("../htmlmixed/htmlmixed")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror", "../javascript/javascript", "../css/css", "../htmlmixed/htmlmixed"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("pug", function (config) { + // token types + var KEYWORD = 'keyword'; + var DOCTYPE = 'meta'; + var ID = 'builtin'; + var CLASS = 'qualifier'; + + var ATTRS_NEST = { + '{': '}', + '(': ')', + '[': ']' + }; + + var jsMode = CodeMirror.getMode(config, 'javascript'); + + function State() { + this.javaScriptLine = false; + this.javaScriptLineExcludesColon = false; + + this.javaScriptArguments = false; + this.javaScriptArgumentsDepth = 0; + + this.isInterpolating = false; + this.interpolationNesting = 0; + + this.jsState = CodeMirror.startState(jsMode); + + this.restOfLine = ''; + + this.isIncludeFiltered = false; + this.isEach = false; + + this.lastTag = ''; + this.scriptType = ''; + + // Attributes Mode + this.isAttrs = false; + this.attrsNest = []; + this.inAttributeName = true; + this.attributeIsType = false; + this.attrValue = ''; + + // Indented Mode + this.indentOf = Infinity; + this.indentToken = ''; + + this.innerMode = null; + this.innerState = null; + + this.innerModeForLine = false; + } + /** + * Safely copy a state + * + * @return {State} + */ + State.prototype.copy = function () { + var res = new State(); + res.javaScriptLine = this.javaScriptLine; + res.javaScriptLineExcludesColon = this.javaScriptLineExcludesColon; + res.javaScriptArguments = this.javaScriptArguments; + res.javaScriptArgumentsDepth = this.javaScriptArgumentsDepth; + res.isInterpolating = this.isInterpolating; + res.interpolationNesting = this.interpolationNesting; + + res.jsState = CodeMirror.copyState(jsMode, this.jsState); + + res.innerMode = this.innerMode; + if (this.innerMode && this.innerState) { + res.innerState = CodeMirror.copyState(this.innerMode, this.innerState); + } + + res.restOfLine = this.restOfLine; + + res.isIncludeFiltered = this.isIncludeFiltered; + res.isEach = this.isEach; + res.lastTag = this.lastTag; + res.scriptType = this.scriptType; + res.isAttrs = this.isAttrs; + res.attrsNest = this.attrsNest.slice(); + res.inAttributeName = this.inAttributeName; + res.attributeIsType = this.attributeIsType; + res.attrValue = this.attrValue; + res.indentOf = this.indentOf; + res.indentToken = this.indentToken; + + res.innerModeForLine = this.innerModeForLine; + + return res; + }; + + function javaScript(stream, state) { + if (stream.sol()) { + // if javaScriptLine was set at end of line, ignore it + state.javaScriptLine = false; + state.javaScriptLineExcludesColon = false; + } + if (state.javaScriptLine) { + if (state.javaScriptLineExcludesColon && stream.peek() === ':') { + state.javaScriptLine = false; + state.javaScriptLineExcludesColon = false; + return; + } + var tok = jsMode.token(stream, state.jsState); + if (stream.eol()) state.javaScriptLine = false; + return tok || true; + } + } + function javaScriptArguments(stream, state) { + if (state.javaScriptArguments) { + if (state.javaScriptArgumentsDepth === 0 && stream.peek() !== '(') { + state.javaScriptArguments = false; + return; + } + if (stream.peek() === '(') { + state.javaScriptArgumentsDepth++; + } else if (stream.peek() === ')') { + state.javaScriptArgumentsDepth--; + } + if (state.javaScriptArgumentsDepth === 0) { + state.javaScriptArguments = false; + return; + } + + var tok = jsMode.token(stream, state.jsState); + return tok || true; + } + } + + function yieldStatement(stream) { + if (stream.match(/^yield\b/)) { + return 'keyword'; + } + } + + function doctype(stream) { + if (stream.match(/^(?:doctype) *([^\n]+)?/)) { + return DOCTYPE; + } + } + + function interpolation(stream, state) { + if (stream.match('#{')) { + state.isInterpolating = true; + state.interpolationNesting = 0; + return 'punctuation'; + } + } + + function interpolationContinued(stream, state) { + if (state.isInterpolating) { + if (stream.peek() === '}') { + state.interpolationNesting--; + if (state.interpolationNesting < 0) { + stream.next(); + state.isInterpolating = false; + return 'punctuation'; + } + } else if (stream.peek() === '{') { + state.interpolationNesting++; + } + return jsMode.token(stream, state.jsState) || true; + } + } + + function caseStatement(stream, state) { + if (stream.match(/^case\b/)) { + state.javaScriptLine = true; + return KEYWORD; + } + } + + function when(stream, state) { + if (stream.match(/^when\b/)) { + state.javaScriptLine = true; + state.javaScriptLineExcludesColon = true; + return KEYWORD; + } + } + + function defaultStatement(stream) { + if (stream.match(/^default\b/)) { + return KEYWORD; + } + } + + function extendsStatement(stream, state) { + if (stream.match(/^extends?\b/)) { + state.restOfLine = 'string'; + return KEYWORD; + } + } + + function append(stream, state) { + if (stream.match(/^append\b/)) { + state.restOfLine = 'variable'; + return KEYWORD; + } + } + function prepend(stream, state) { + if (stream.match(/^prepend\b/)) { + state.restOfLine = 'variable'; + return KEYWORD; + } + } + function block(stream, state) { + if (stream.match(/^block\b *(?:(prepend|append)\b)?/)) { + state.restOfLine = 'variable'; + return KEYWORD; + } + } + + function include(stream, state) { + if (stream.match(/^include\b/)) { + state.restOfLine = 'string'; + return KEYWORD; + } + } + + function includeFiltered(stream, state) { + if (stream.match(/^include:([a-zA-Z0-9\-]+)/, false) && stream.match('include')) { + state.isIncludeFiltered = true; + return KEYWORD; + } + } + + function includeFilteredContinued(stream, state) { + if (state.isIncludeFiltered) { + var tok = filter(stream, state); + state.isIncludeFiltered = false; + state.restOfLine = 'string'; + return tok; + } + } + + function mixin(stream, state) { + if (stream.match(/^mixin\b/)) { + state.javaScriptLine = true; + return KEYWORD; + } + } + + function call(stream, state) { + if (stream.match(/^\+([-\w]+)/)) { + if (!stream.match(/^\( *[-\w]+ *=/, false)) { + state.javaScriptArguments = true; + state.javaScriptArgumentsDepth = 0; + } + return 'variable'; + } + if (stream.match(/^\+#{/, false)) { + stream.next(); + state.mixinCallAfter = true; + return interpolation(stream, state); + } + } + function callArguments(stream, state) { + if (state.mixinCallAfter) { + state.mixinCallAfter = false; + if (!stream.match(/^\( *[-\w]+ *=/, false)) { + state.javaScriptArguments = true; + state.javaScriptArgumentsDepth = 0; + } + return true; + } + } + + function conditional(stream, state) { + if (stream.match(/^(if|unless|else if|else)\b/)) { + state.javaScriptLine = true; + return KEYWORD; + } + } + + function each(stream, state) { + if (stream.match(/^(- *)?(each|for)\b/)) { + state.isEach = true; + return KEYWORD; + } + } + function eachContinued(stream, state) { + if (state.isEach) { + if (stream.match(/^ in\b/)) { + state.javaScriptLine = true; + state.isEach = false; + return KEYWORD; + } else if (stream.sol() || stream.eol()) { + state.isEach = false; + } else if (stream.next()) { + while (!stream.match(/^ in\b/, false) && stream.next()); + return 'variable'; + } + } + } + + function whileStatement(stream, state) { + if (stream.match(/^while\b/)) { + state.javaScriptLine = true; + return KEYWORD; + } + } + + function tag(stream, state) { + var captures; + if (captures = stream.match(/^(\w(?:[-:\w]*\w)?)\/?/)) { + state.lastTag = captures[1].toLowerCase(); + if (state.lastTag === 'script') { + state.scriptType = 'application/javascript'; + } + return 'tag'; + } + } + + function filter(stream, state) { + if (stream.match(/^:([\w\-]+)/)) { + var innerMode; + if (config && config.innerModes) { + innerMode = config.innerModes(stream.current().substring(1)); + } + if (!innerMode) { + innerMode = stream.current().substring(1); + } + if (typeof innerMode === 'string') { + innerMode = CodeMirror.getMode(config, innerMode); + } + setInnerMode(stream, state, innerMode); + return 'atom'; + } + } + + function code(stream, state) { + if (stream.match(/^(!?=|-)/)) { + state.javaScriptLine = true; + return 'punctuation'; + } + } + + function id(stream) { + if (stream.match(/^#([\w-]+)/)) { + return ID; + } + } + + function className(stream) { + if (stream.match(/^\.([\w-]+)/)) { + return CLASS; + } + } + + function attrs(stream, state) { + if (stream.peek() == '(') { + stream.next(); + state.isAttrs = true; + state.attrsNest = []; + state.inAttributeName = true; + state.attrValue = ''; + state.attributeIsType = false; + return 'punctuation'; + } + } + + function attrsContinued(stream, state) { + if (state.isAttrs) { + if (ATTRS_NEST[stream.peek()]) { + state.attrsNest.push(ATTRS_NEST[stream.peek()]); + } + if (state.attrsNest[state.attrsNest.length - 1] === stream.peek()) { + state.attrsNest.pop(); + } else if (stream.eat(')')) { + state.isAttrs = false; + return 'punctuation'; + } + if (state.inAttributeName && stream.match(/^[^=,\)!]+/)) { + if (stream.peek() === '=' || stream.peek() === '!') { + state.inAttributeName = false; + state.jsState = CodeMirror.startState(jsMode); + if (state.lastTag === 'script' && stream.current().trim().toLowerCase() === 'type') { + state.attributeIsType = true; + } else { + state.attributeIsType = false; + } + } + return 'attribute'; + } + + var tok = jsMode.token(stream, state.jsState); + if (state.attributeIsType && tok === 'string') { + state.scriptType = stream.current().toString(); + } + if (state.attrsNest.length === 0 && (tok === 'string' || tok === 'variable' || tok === 'keyword')) { + try { + Function('', 'var x ' + state.attrValue.replace(/,\s*$/, '').replace(/^!/, '')); + state.inAttributeName = true; + state.attrValue = ''; + stream.backUp(stream.current().length); + return attrsContinued(stream, state); + } catch (ex) { + //not the end of an attribute + } + } + state.attrValue += stream.current(); + return tok || true; + } + } + + function attributesBlock(stream, state) { + if (stream.match(/^&attributes\b/)) { + state.javaScriptArguments = true; + state.javaScriptArgumentsDepth = 0; + return 'keyword'; + } + } + + function indent(stream) { + if (stream.sol() && stream.eatSpace()) { + return 'indent'; + } + } + + function comment(stream, state) { + if (stream.match(/^ *\/\/(-)?([^\n]*)/)) { + state.indentOf = stream.indentation(); + state.indentToken = 'comment'; + return 'comment'; + } + } + + function colon(stream) { + if (stream.match(/^: */)) { + return 'colon'; + } + } + + function text(stream, state) { + if (stream.match(/^(?:\| ?| )([^\n]+)/)) { + return 'string'; + } + if (stream.match(/^(<[^\n]*)/, false)) { + // html string + setInnerMode(stream, state, 'htmlmixed'); + state.innerModeForLine = true; + return innerMode(stream, state, true); + } + } + + function dot(stream, state) { + if (stream.eat('.')) { + var innerMode = null; + if (state.lastTag === 'script' && state.scriptType.toLowerCase().indexOf('javascript') != -1) { + innerMode = state.scriptType.toLowerCase().replace(/"|'/g, ''); + } else if (state.lastTag === 'style') { + innerMode = 'css'; + } + setInnerMode(stream, state, innerMode); + return 'dot'; + } + } + + function fail(stream) { + stream.next(); + return null; + } + + + function setInnerMode(stream, state, mode) { + mode = CodeMirror.mimeModes[mode] || mode; + mode = config.innerModes ? config.innerModes(mode) || mode : mode; + mode = CodeMirror.mimeModes[mode] || mode; + mode = CodeMirror.getMode(config, mode); + state.indentOf = stream.indentation(); + + if (mode && mode.name !== 'null') { + state.innerMode = mode; + } else { + state.indentToken = 'string'; + } + } + function innerMode(stream, state, force) { + if (stream.indentation() > state.indentOf || (state.innerModeForLine && !stream.sol()) || force) { + if (state.innerMode) { + if (!state.innerState) { + state.innerState = state.innerMode.startState ? CodeMirror.startState(state.innerMode, stream.indentation()) : {}; + } + return stream.hideFirstChars(state.indentOf + 2, function () { + return state.innerMode.token(stream, state.innerState) || true; + }); + } else { + stream.skipToEnd(); + return state.indentToken; + } + } else if (stream.sol()) { + state.indentOf = Infinity; + state.indentToken = null; + state.innerMode = null; + state.innerState = null; + } + } + function restOfLine(stream, state) { + if (stream.sol()) { + // if restOfLine was set at end of line, ignore it + state.restOfLine = ''; + } + if (state.restOfLine) { + stream.skipToEnd(); + var tok = state.restOfLine; + state.restOfLine = ''; + return tok; + } + } + + + function startState() { + return new State(); + } + function copyState(state) { + return state.copy(); + } + /** + * Get the next token in the stream + * + * @param {Stream} stream + * @param {State} state + */ + function nextToken(stream, state) { + var tok = innerMode(stream, state) + || restOfLine(stream, state) + || interpolationContinued(stream, state) + || includeFilteredContinued(stream, state) + || eachContinued(stream, state) + || attrsContinued(stream, state) + || javaScript(stream, state) + || javaScriptArguments(stream, state) + || callArguments(stream, state) + + || yieldStatement(stream, state) + || doctype(stream, state) + || interpolation(stream, state) + || caseStatement(stream, state) + || when(stream, state) + || defaultStatement(stream, state) + || extendsStatement(stream, state) + || append(stream, state) + || prepend(stream, state) + || block(stream, state) + || include(stream, state) + || includeFiltered(stream, state) + || mixin(stream, state) + || call(stream, state) + || conditional(stream, state) + || each(stream, state) + || whileStatement(stream, state) + || tag(stream, state) + || filter(stream, state) + || code(stream, state) + || id(stream, state) + || className(stream, state) + || attrs(stream, state) + || attributesBlock(stream, state) + || indent(stream, state) + || text(stream, state) + || comment(stream, state) + || colon(stream, state) + || dot(stream, state) + || fail(stream, state); + + return tok === true ? null : tok; + } + return { + startState: startState, + copyState: copyState, + token: nextToken + }; +}, 'javascript', 'css', 'htmlmixed'); + +CodeMirror.defineMIME('text/x-pug', 'pug'); +CodeMirror.defineMIME('text/x-jade', 'pug'); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/puppet/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/puppet/index.html new file mode 100644 index 0000000..5614c36 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/puppet/index.html @@ -0,0 +1,121 @@ +<!doctype html> + +<title>CodeMirror: Puppet mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../../addon/edit/matchbrackets.js"></script> +<script src="puppet.js"></script> +<style> + .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;} + .cm-s-default span.cm-arrow { color: red; } + </style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Puppet</a> + </ul> +</div> + +<article> +<h2>Puppet mode</h2> +<form><textarea id="code" name="code"> +# == Class: automysqlbackup +# +# Puppet module to install AutoMySQLBackup for periodic MySQL backups. +# +# class { 'automysqlbackup': +# backup_dir => '/mnt/backups', +# } +# + +class automysqlbackup ( + $bin_dir = $automysqlbackup::params::bin_dir, + $etc_dir = $automysqlbackup::params::etc_dir, + $backup_dir = $automysqlbackup::params::backup_dir, + $install_multicore = undef, + $config = {}, + $config_defaults = {}, +) inherits automysqlbackup::params { + +# Ensure valid paths are assigned + validate_absolute_path($bin_dir) + validate_absolute_path($etc_dir) + validate_absolute_path($backup_dir) + +# Create a subdirectory in /etc for config files + file { $etc_dir: + ensure => directory, + owner => 'root', + group => 'root', + mode => '0750', + } + +# Create an example backup file, useful for reference + file { "${etc_dir}/automysqlbackup.conf.example": + ensure => file, + owner => 'root', + group => 'root', + mode => '0660', + source => 'puppet:///modules/automysqlbackup/automysqlbackup.conf', + } + +# Add files from the developer + file { "${etc_dir}/AMB_README": + ensure => file, + source => 'puppet:///modules/automysqlbackup/AMB_README', + } + file { "${etc_dir}/AMB_LICENSE": + ensure => file, + source => 'puppet:///modules/automysqlbackup/AMB_LICENSE', + } + +# Install the actual binary file + file { "${bin_dir}/automysqlbackup": + ensure => file, + owner => 'root', + group => 'root', + mode => '0755', + source => 'puppet:///modules/automysqlbackup/automysqlbackup', + } + +# Create the base backup directory + file { $backup_dir: + ensure => directory, + owner => 'root', + group => 'root', + mode => '0755', + } + +# If you'd like to keep your config in hiera and pass it to this class + if !empty($config) { + create_resources('automysqlbackup::backup', $config, $config_defaults) + } + +# If using RedHat family, must have the RPMforge repo's enabled + if $install_multicore { + package { ['pigz', 'pbzip2']: ensure => installed } + } + +} +</textarea></form> + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + mode: "text/x-puppet", + matchBrackets: true, + indentUnit: 4 + }); + </script> + + <p><strong>MIME types defined:</strong> <code>text/x-puppet</code>.</p> + + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/puppet/puppet.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/puppet/puppet.js new file mode 100644 index 0000000..5704130 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/puppet/puppet.js @@ -0,0 +1,220 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("puppet", function () { + // Stores the words from the define method + var words = {}; + // Taken, mostly, from the Puppet official variable standards regex + var variable_regex = /({)?([a-z][a-z0-9_]*)?((::[a-z][a-z0-9_]*)*::)?[a-zA-Z0-9_]+(})?/; + + // Takes a string of words separated by spaces and adds them as + // keys with the value of the first argument 'style' + function define(style, string) { + var split = string.split(' '); + for (var i = 0; i < split.length; i++) { + words[split[i]] = style; + } + } + + // Takes commonly known puppet types/words and classifies them to a style + define('keyword', 'class define site node include import inherits'); + define('keyword', 'case if else in and elsif default or'); + define('atom', 'false true running present absent file directory undef'); + define('builtin', 'action augeas burst chain computer cron destination dport exec ' + + 'file filebucket group host icmp iniface interface jump k5login limit log_level ' + + 'log_prefix macauthorization mailalias maillist mcx mount nagios_command ' + + 'nagios_contact nagios_contactgroup nagios_host nagios_hostdependency ' + + 'nagios_hostescalation nagios_hostextinfo nagios_hostgroup nagios_service ' + + 'nagios_servicedependency nagios_serviceescalation nagios_serviceextinfo ' + + 'nagios_servicegroup nagios_timeperiod name notify outiface package proto reject ' + + 'resources router schedule scheduled_task selboolean selmodule service source ' + + 'sport ssh_authorized_key sshkey stage state table tidy todest toports tosource ' + + 'user vlan yumrepo zfs zone zpool'); + + // After finding a start of a string ('|") this function attempts to find the end; + // If a variable is encountered along the way, we display it differently when it + // is encapsulated in a double-quoted string. + function tokenString(stream, state) { + var current, prev, found_var = false; + while (!stream.eol() && (current = stream.next()) != state.pending) { + if (current === '$' && prev != '\\' && state.pending == '"') { + found_var = true; + break; + } + prev = current; + } + if (found_var) { + stream.backUp(1); + } + if (current == state.pending) { + state.continueString = false; + } else { + state.continueString = true; + } + return "string"; + } + + // Main function + function tokenize(stream, state) { + // Matches one whole word + var word = stream.match(/[\w]+/, false); + // Matches attributes (i.e. ensure => present ; 'ensure' would be matched) + var attribute = stream.match(/(\s+)?\w+\s+=>.*/, false); + // Matches non-builtin resource declarations + // (i.e. "apache::vhost {" or "mycustomclasss {" would be matched) + var resource = stream.match(/(\s+)?[\w:_]+(\s+)?{/, false); + // Matches virtual and exported resources (i.e. @@user { ; and the like) + var special_resource = stream.match(/(\s+)?[@]{1,2}[\w:_]+(\s+)?{/, false); + + // Finally advance the stream + var ch = stream.next(); + + // Have we found a variable? + if (ch === '$') { + if (stream.match(variable_regex)) { + // If so, and its in a string, assign it a different color + return state.continueString ? 'variable-2' : 'variable'; + } + // Otherwise return an invalid variable + return "error"; + } + // Should we still be looking for the end of a string? + if (state.continueString) { + // If so, go through the loop again + stream.backUp(1); + return tokenString(stream, state); + } + // Are we in a definition (class, node, define)? + if (state.inDefinition) { + // If so, return def (i.e. for 'class myclass {' ; 'myclass' would be matched) + if (stream.match(/(\s+)?[\w:_]+(\s+)?/)) { + return 'def'; + } + // Match the rest it the next time around + stream.match(/\s+{/); + state.inDefinition = false; + } + // Are we in an 'include' statement? + if (state.inInclude) { + // Match and return the included class + stream.match(/(\s+)?\S+(\s+)?/); + state.inInclude = false; + return 'def'; + } + // Do we just have a function on our hands? + // In 'ensure_resource("myclass")', 'ensure_resource' is matched + if (stream.match(/(\s+)?\w+\(/)) { + stream.backUp(1); + return 'def'; + } + // Have we matched the prior attribute regex? + if (attribute) { + stream.match(/(\s+)?\w+/); + return 'tag'; + } + // Do we have Puppet specific words? + if (word && words.hasOwnProperty(word)) { + // Negates the initial next() + stream.backUp(1); + // rs move the stream + stream.match(/[\w]+/); + // We want to process these words differently + // do to the importance they have in Puppet + if (stream.match(/\s+\S+\s+{/, false)) { + state.inDefinition = true; + } + if (word == 'include') { + state.inInclude = true; + } + // Returns their value as state in the prior define methods + return words[word]; + } + // Is there a match on a reference? + if (/(^|\s+)[A-Z][\w:_]+/.test(word)) { + // Negate the next() + stream.backUp(1); + // Match the full reference + stream.match(/(^|\s+)[A-Z][\w:_]+/); + return 'def'; + } + // Have we matched the prior resource regex? + if (resource) { + stream.match(/(\s+)?[\w:_]+/); + return 'def'; + } + // Have we matched the prior special_resource regex? + if (special_resource) { + stream.match(/(\s+)?[@]{1,2}/); + return 'special'; + } + // Match all the comments. All of them. + if (ch == "#") { + stream.skipToEnd(); + return "comment"; + } + // Have we found a string? + if (ch == "'" || ch == '"') { + // Store the type (single or double) + state.pending = ch; + // Perform the looping function to find the end + return tokenString(stream, state); + } + // Match all the brackets + if (ch == '{' || ch == '}') { + return 'bracket'; + } + // Match characters that we are going to assume + // are trying to be regex + if (ch == '/') { + stream.match(/.*?\//); + return 'variable-3'; + } + // Match all the numbers + if (ch.match(/[0-9]/)) { + stream.eatWhile(/[0-9]+/); + return 'number'; + } + // Match the '=' and '=>' operators + if (ch == '=') { + if (stream.peek() == '>') { + stream.next(); + } + return "operator"; + } + // Keep advancing through all the rest + stream.eatWhile(/[\w-]/); + // Return a blank line for everything else + return null; + } + // Start it all + return { + startState: function () { + var state = {}; + state.inDefinition = false; + state.inInclude = false; + state.continueString = false; + state.pending = false; + return state; + }, + token: function (stream, state) { + // Strip the spaces, but regex will account for them eitherway + if (stream.eatSpace()) return null; + // Go through the main process + return tokenize(stream, state); + } + }; +}); + +CodeMirror.defineMIME("text/x-puppet", "puppet"); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/python/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/python/index.html new file mode 100644 index 0000000..0ac02a3 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/python/index.html @@ -0,0 +1,198 @@ +<!doctype html> + +<title>CodeMirror: Python mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../../addon/edit/matchbrackets.js"></script> +<script src="python.js"></script> +<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Python</a> + </ul> +</div> + +<article> +<h2>Python mode</h2> + + <div><textarea id="code" name="code"> +# Literals +1234 +0.0e101 +.123 +0b01010011100 +0o01234567 +0x0987654321abcdef +7 +2147483647 +3L +79228162514264337593543950336L +0x100000000L +79228162514264337593543950336 +0xdeadbeef +3.14j +10.j +10j +.001j +1e100j +3.14e-10j + + +# String Literals +'For\'' +"God\"" +"""so loved +the world""" +'''that he gave +his only begotten\' ''' +'that whosoever believeth \ +in him' +'' + +# Identifiers +__a__ +a.b +a.b.c + +#Unicode identifiers on Python3 +# a = x\ddot +a⃗ = ẍ +# a = v\dot +a⃗ = v̇ + +#F\vec = m \cdot a\vec +F⃗ = m•a⃗ + +# Operators ++ - * / % & | ^ ~ < > +== != <= >= <> << >> // ** +and or not in is + +#infix matrix multiplication operator (PEP 465) +A @ B + +# Delimiters +() [] {} , : ` = ; @ . # Note that @ and . require the proper context on Python 2. ++= -= *= /= %= &= |= ^= +//= >>= <<= **= + +# Keywords +as assert break class continue def del elif else except +finally for from global if import lambda pass raise +return try while with yield + +# Python 2 Keywords (otherwise Identifiers) +exec print + +# Python 3 Keywords (otherwise Identifiers) +nonlocal + +# Types +bool classmethod complex dict enumerate float frozenset int list object +property reversed set slice staticmethod str super tuple type + +# Python 2 Types (otherwise Identifiers) +basestring buffer file long unicode xrange + +# Python 3 Types (otherwise Identifiers) +bytearray bytes filter map memoryview open range zip + +# Some Example code +import os +from package import ParentClass + +@nonsenseDecorator +def doesNothing(): + pass + +class ExampleClass(ParentClass): + @staticmethod + def example(inputStr): + a = list(inputStr) + a.reverse() + return ''.join(a) + + def __init__(self, mixin = 'Hello'): + self.mixin = mixin + +</textarea></div> + + +<h2>Cython mode</h2> + +<div><textarea id="code-cython" name="code-cython"> + +import numpy as np +cimport cython +from libc.math cimport sqrt + +@cython.boundscheck(False) +@cython.wraparound(False) +def pairwise_cython(double[:, ::1] X): + cdef int M = X.shape[0] + cdef int N = X.shape[1] + cdef double tmp, d + cdef double[:, ::1] D = np.empty((M, M), dtype=np.float64) + for i in range(M): + for j in range(M): + d = 0.0 + for k in range(N): + tmp = X[i, k] - X[j, k] + d += tmp * tmp + D[i, j] = sqrt(d) + return np.asarray(D) + +</textarea></div> + + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + mode: {name: "python", + version: 3, + singleLineStringErrors: false}, + lineNumbers: true, + indentUnit: 4, + matchBrackets: true + }); + + CodeMirror.fromTextArea(document.getElementById("code-cython"), { + mode: {name: "text/x-cython", + version: 2, + singleLineStringErrors: false}, + lineNumbers: true, + indentUnit: 4, + matchBrackets: true + }); + </script> + <h2>Configuration Options for Python mode:</h2> + <ul> + <li>version - 2/3 - The version of Python to recognize. Default is 3.</li> + <li>singleLineStringErrors - true/false - If you have a single-line string that is not terminated at the end of the line, this will show subsequent lines as errors if true, otherwise it will consider the newline as the end of the string. Default is false.</li> + <li>hangingIndent - int - If you want to write long arguments to a function starting on a new line, how much that line should be indented. Defaults to one normal indentation unit.</li> + </ul> + <h2>Advanced Configuration Options:</h2> + <p>Usefull for superset of python syntax like Enthought enaml, IPython magics and questionmark help</p> + <ul> + <li>singleOperators - RegEx - Regular Expression for single operator matching, default : <pre>^[\\+\\-\\*/%&|\\^~<>!]</pre> including <pre>@</pre> on Python 3</li> + <li>singleDelimiters - RegEx - Regular Expression for single delimiter matching, default : <pre>^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]</pre></li> + <li>doubleOperators - RegEx - Regular Expression for double operators matching, default : <pre>^((==)|(!=)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))</pre></li> + <li>doubleDelimiters - RegEx - Regular Expression for double delimiters matching, default : <pre>^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))</pre></li> + <li>tripleDelimiters - RegEx - Regular Expression for triple delimiters matching, default : <pre>^((//=)|(>>=)|(<<=)|(\\*\\*=))</pre></li> + <li>identifiers - RegEx - Regular Expression for identifier, default : <pre>^[_A-Za-z][_A-Za-z0-9]*</pre> on Python 2 and <pre>^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*</pre> on Python 3.</li> + <li>extra_keywords - list of string - List of extra words ton consider as keywords</li> + <li>extra_builtins - list of string - List of extra words ton consider as builtins</li> + </ul> + + + <p><strong>MIME types defined:</strong> <code>text/x-python</code> and <code>text/x-cython</code>.</p> + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/python/python.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/python/python.js new file mode 100644 index 0000000..efeed7f --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/python/python.js @@ -0,0 +1,340 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { + "use strict"; + + function wordRegexp(words) { + return new RegExp("^((" + words.join(")|(") + "))\\b"); + } + + var wordOperators = wordRegexp(["and", "or", "not", "is"]); + var commonKeywords = ["as", "assert", "break", "class", "continue", + "def", "del", "elif", "else", "except", "finally", + "for", "from", "global", "if", "import", + "lambda", "pass", "raise", "return", + "try", "while", "with", "yield", "in"]; + var commonBuiltins = ["abs", "all", "any", "bin", "bool", "bytearray", "callable", "chr", + "classmethod", "compile", "complex", "delattr", "dict", "dir", "divmod", + "enumerate", "eval", "filter", "float", "format", "frozenset", + "getattr", "globals", "hasattr", "hash", "help", "hex", "id", + "input", "int", "isinstance", "issubclass", "iter", "len", + "list", "locals", "map", "max", "memoryview", "min", "next", + "object", "oct", "open", "ord", "pow", "property", "range", + "repr", "reversed", "round", "set", "setattr", "slice", + "sorted", "staticmethod", "str", "sum", "super", "tuple", + "type", "vars", "zip", "__import__", "NotImplemented", + "Ellipsis", "__debug__"]; + CodeMirror.registerHelper("hintWords", "python", commonKeywords.concat(commonBuiltins)); + + function top(state) { + return state.scopes[state.scopes.length - 1]; + } + + CodeMirror.defineMode("python", function(conf, parserConf) { + var ERRORCLASS = "error"; + + var singleDelimiters = parserConf.singleDelimiters || /^[\(\)\[\]\{\}@,:`=;\.]/; + var doubleOperators = parserConf.doubleOperators || /^([!<>]==|<>|<<|>>|\/\/|\*\*)/; + var doubleDelimiters = parserConf.doubleDelimiters || /^(\+=|\-=|\*=|%=|\/=|&=|\|=|\^=)/; + var tripleDelimiters = parserConf.tripleDelimiters || /^(\/\/=|>>=|<<=|\*\*=)/; + + var hangingIndent = parserConf.hangingIndent || conf.indentUnit; + + var myKeywords = commonKeywords, myBuiltins = commonBuiltins; + if (parserConf.extra_keywords != undefined) + myKeywords = myKeywords.concat(parserConf.extra_keywords); + + if (parserConf.extra_builtins != undefined) + myBuiltins = myBuiltins.concat(parserConf.extra_builtins); + + var py3 = !(parserConf.version && Number(parserConf.version) < 3) + if (py3) { + // since http://legacy.python.org/dev/peps/pep-0465/ @ is also an operator + var singleOperators = parserConf.singleOperators || /^[\+\-\*\/%&|\^~<>!@]/; + var identifiers = parserConf.identifiers|| /^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*/; + myKeywords = myKeywords.concat(["nonlocal", "False", "True", "None", "async", "await"]); + myBuiltins = myBuiltins.concat(["ascii", "bytes", "exec", "print"]); + var stringPrefixes = new RegExp("^(([rbuf]|(br))?('{3}|\"{3}|['\"]))", "i"); + } else { + var singleOperators = parserConf.singleOperators || /^[\+\-\*\/%&|\^~<>!]/; + var identifiers = parserConf.identifiers|| /^[_A-Za-z][_A-Za-z0-9]*/; + myKeywords = myKeywords.concat(["exec", "print"]); + myBuiltins = myBuiltins.concat(["apply", "basestring", "buffer", "cmp", "coerce", "execfile", + "file", "intern", "long", "raw_input", "reduce", "reload", + "unichr", "unicode", "xrange", "False", "True", "None"]); + var stringPrefixes = new RegExp("^(([rub]|(ur)|(br))?('{3}|\"{3}|['\"]))", "i"); + } + var keywords = wordRegexp(myKeywords); + var builtins = wordRegexp(myBuiltins); + + // tokenizers + function tokenBase(stream, state) { + if (stream.sol()) state.indent = stream.indentation() + // Handle scope changes + if (stream.sol() && top(state).type == "py") { + var scopeOffset = top(state).offset; + if (stream.eatSpace()) { + var lineOffset = stream.indentation(); + if (lineOffset > scopeOffset) + pushPyScope(state); + else if (lineOffset < scopeOffset && dedent(stream, state)) + state.errorToken = true; + return null; + } else { + var style = tokenBaseInner(stream, state); + if (scopeOffset > 0 && dedent(stream, state)) + style += " " + ERRORCLASS; + return style; + } + } + return tokenBaseInner(stream, state); + } + + function tokenBaseInner(stream, state) { + if (stream.eatSpace()) return null; + + var ch = stream.peek(); + + // Handle Comments + if (ch == "#") { + stream.skipToEnd(); + return "comment"; + } + + // Handle Number Literals + if (stream.match(/^[0-9\.]/, false)) { + var floatLiteral = false; + // Floats + if (stream.match(/^\d*\.\d+(e[\+\-]?\d+)?/i)) { floatLiteral = true; } + if (stream.match(/^\d+\.\d*/)) { floatLiteral = true; } + if (stream.match(/^\.\d+/)) { floatLiteral = true; } + if (floatLiteral) { + // Float literals may be "imaginary" + stream.eat(/J/i); + return "number"; + } + // Integers + var intLiteral = false; + // Hex + if (stream.match(/^0x[0-9a-f]+/i)) intLiteral = true; + // Binary + if (stream.match(/^0b[01]+/i)) intLiteral = true; + // Octal + if (stream.match(/^0o[0-7]+/i)) intLiteral = true; + // Decimal + if (stream.match(/^[1-9]\d*(e[\+\-]?\d+)?/)) { + // Decimal literals may be "imaginary" + stream.eat(/J/i); + // TODO - Can you have imaginary longs? + intLiteral = true; + } + // Zero by itself with no other piece of number. + if (stream.match(/^0(?![\dx])/i)) intLiteral = true; + if (intLiteral) { + // Integer literals may be "long" + stream.eat(/L/i); + return "number"; + } + } + + // Handle Strings + if (stream.match(stringPrefixes)) { + state.tokenize = tokenStringFactory(stream.current()); + return state.tokenize(stream, state); + } + + // Handle operators and Delimiters + if (stream.match(tripleDelimiters) || stream.match(doubleDelimiters)) + return "punctuation"; + + if (stream.match(doubleOperators) || stream.match(singleOperators)) + return "operator"; + + if (stream.match(singleDelimiters)) + return "punctuation"; + + if (state.lastToken == "." && stream.match(identifiers)) + return "property"; + + if (stream.match(keywords) || stream.match(wordOperators)) + return "keyword"; + + if (stream.match(builtins)) + return "builtin"; + + if (stream.match(/^(self|cls)\b/)) + return "variable-2"; + + if (stream.match(identifiers)) { + if (state.lastToken == "def" || state.lastToken == "class") + return "def"; + return "variable"; + } + + // Handle non-detected items + stream.next(); + return ERRORCLASS; + } + + function tokenStringFactory(delimiter) { + while ("rubf".indexOf(delimiter.charAt(0).toLowerCase()) >= 0) + delimiter = delimiter.substr(1); + + var singleline = delimiter.length == 1; + var OUTCLASS = "string"; + + function tokenString(stream, state) { + while (!stream.eol()) { + stream.eatWhile(/[^'"\\]/); + if (stream.eat("\\")) { + stream.next(); + if (singleline && stream.eol()) + return OUTCLASS; + } else if (stream.match(delimiter)) { + state.tokenize = tokenBase; + return OUTCLASS; + } else { + stream.eat(/['"]/); + } + } + if (singleline) { + if (parserConf.singleLineStringErrors) + return ERRORCLASS; + else + state.tokenize = tokenBase; + } + return OUTCLASS; + } + tokenString.isString = true; + return tokenString; + } + + function pushPyScope(state) { + while (top(state).type != "py") state.scopes.pop() + state.scopes.push({offset: top(state).offset + conf.indentUnit, + type: "py", + align: null}) + } + + function pushBracketScope(stream, state, type) { + var align = stream.match(/^([\s\[\{\(]|#.*)*$/, false) ? null : stream.column() + 1 + state.scopes.push({offset: state.indent + hangingIndent, + type: type, + align: align}) + } + + function dedent(stream, state) { + var indented = stream.indentation(); + while (state.scopes.length > 1 && top(state).offset > indented) { + if (top(state).type != "py") return true; + state.scopes.pop(); + } + return top(state).offset != indented; + } + + function tokenLexer(stream, state) { + if (stream.sol()) state.beginningOfLine = true; + + var style = state.tokenize(stream, state); + var current = stream.current(); + + // Handle decorators + if (state.beginningOfLine && current == "@") + return stream.match(identifiers, false) ? "meta" : py3 ? "operator" : ERRORCLASS; + + if (/\S/.test(current)) state.beginningOfLine = false; + + if ((style == "variable" || style == "builtin") + && state.lastToken == "meta") + style = "meta"; + + // Handle scope changes. + if (current == "pass" || current == "return") + state.dedent += 1; + + if (current == "lambda") state.lambda = true; + if (current == ":" && !state.lambda && top(state).type == "py") + pushPyScope(state); + + var delimiter_index = current.length == 1 ? "[({".indexOf(current) : -1; + if (delimiter_index != -1) + pushBracketScope(stream, state, "])}".slice(delimiter_index, delimiter_index+1)); + + delimiter_index = "])}".indexOf(current); + if (delimiter_index != -1) { + if (top(state).type == current) state.indent = state.scopes.pop().offset - hangingIndent + else return ERRORCLASS; + } + if (state.dedent > 0 && stream.eol() && top(state).type == "py") { + if (state.scopes.length > 1) state.scopes.pop(); + state.dedent -= 1; + } + + return style; + } + + var external = { + startState: function(basecolumn) { + return { + tokenize: tokenBase, + scopes: [{offset: basecolumn || 0, type: "py", align: null}], + indent: basecolumn || 0, + lastToken: null, + lambda: false, + dedent: 0 + }; + }, + + token: function(stream, state) { + var addErr = state.errorToken; + if (addErr) state.errorToken = false; + var style = tokenLexer(stream, state); + + if (style && style != "comment") + state.lastToken = (style == "keyword" || style == "punctuation") ? stream.current() : style; + if (style == "punctuation") style = null; + + if (stream.eol() && state.lambda) + state.lambda = false; + return addErr ? style + " " + ERRORCLASS : style; + }, + + indent: function(state, textAfter) { + if (state.tokenize != tokenBase) + return state.tokenize.isString ? CodeMirror.Pass : 0; + + var scope = top(state), closing = scope.type == textAfter.charAt(0) + if (scope.align != null) + return scope.align - (closing ? 1 : 0) + else + return scope.offset - (closing ? hangingIndent : 0) + }, + + electricInput: /^\s*[\}\]\)]$/, + closeBrackets: {triples: "'\""}, + lineComment: "#", + fold: "indent" + }; + return external; + }); + + CodeMirror.defineMIME("text/x-python", "python"); + + var words = function(str) { return str.split(" "); }; + + CodeMirror.defineMIME("text/x-cython", { + name: "python", + extra_keywords: words("by cdef cimport cpdef ctypedef enum except"+ + "extern gil include nogil property public"+ + "readonly struct union DEF IF ELIF ELSE") + }); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/python/test.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/python/test.js new file mode 100644 index 0000000..c1a9c6a --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/python/test.js @@ -0,0 +1,30 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function() { + var mode = CodeMirror.getMode({indentUnit: 4}, + {name: "python", + version: 3, + singleLineStringErrors: false}); + function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); } + + // Error, because "foobarhello" is neither a known type or property, but + // property was expected (after "and"), and it should be in parentheses. + MT("decoratorStartOfLine", + "[meta @dec]", + "[keyword def] [def function]():", + " [keyword pass]"); + + MT("decoratorIndented", + "[keyword class] [def Foo]:", + " [meta @dec]", + " [keyword def] [def function]():", + " [keyword pass]"); + + MT("matmulWithSpace:", "[variable a] [operator @] [variable b]"); + MT("matmulWithoutSpace:", "[variable a][operator @][variable b]"); + MT("matmulSpaceBefore:", "[variable a] [operator @][variable b]"); + + MT("fValidStringPrefix", "[string f'this is a {formatted} string']"); + MT("uValidStringPrefix", "[string u'this is an unicode string']"); +})(); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/q/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/q/index.html new file mode 100644 index 0000000..72785ba --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/q/index.html @@ -0,0 +1,144 @@ +<!doctype html> + +<title>CodeMirror: Q mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../../addon/edit/matchbrackets.js"></script> +<script src="q.js"></script> +<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Q</a> + </ul> +</div> + +<article> +<h2>Q mode</h2> + + +<div><textarea id="code" name="code"> +/ utilities to quickly load a csv file - for more exhaustive analysis of the csv contents see csvguess.q +/ 2009.09.20 - updated to match latest csvguess.q + +/ .csv.colhdrs[file] - return a list of colhdrs from file +/ info:.csv.info[file] - return a table of information about the file +/ columns are: +/ c - column name; ci - column index; t - load type; mw - max width; +/ dchar - distinct characters in values; rule - rule that caught the type +/ maybe - needs checking, _could_ be say a date, but perhaps just a float? +/ .csv.info0[file;onlycols] - like .csv.info except that it only analyses <onlycols> +/ example: +/ info:.csv.info0[file;(.csv.colhdrs file)like"*price"] +/ info:.csv.infolike[file;"*price"] +/ show delete from info where t=" " +/ .csv.data[file;info] - use the info from .csv.info to read the data +/ .csv.data10[file;info] - like .csv.data but only returns the first 10 rows +/ bulkload[file;info] - bulk loads file into table DATA (which must be already defined :: DATA:() ) +/ .csv.read[file]/read10[file] - for when you don't care about checking/tweaking the <info> before reading + +\d .csv +DELIM:"," +ZAPHDRS:0b / lowercase and remove _ from colhdrs (junk characters are always removed) +WIDTHHDR:25000 / number of characters read to get the header +READLINES:222 / number of lines read and used to guess the types +SYMMAXWIDTH:11 / character columns narrower than this are stored as symbols +SYMMAXGR:10 / max symbol granularity% before we give up and keep as a * string +FORCECHARWIDTH:30 / every field (of any type) with values this wide or more is forced to character "*" +DISCARDEMPTY:0b / completely ignore empty columns if true else set them to "C" +CHUNKSIZE:50000000 / used in fs2 (modified .Q.fs) + +k)nameltrim:{$[~@x;.z.s'x;~(*x)in aA:.Q.a,.Q.A;(+/&\~x in aA)_x;x]} +k)fs2:{[f;s]((-7!s)>){[f;s;x]i:1+last@&0xa=r:1:(s;x;CHUNKSIZE);f@`\:i#r;x+i}[f;s]/0j} +cleanhdrs:{{$[ZAPHDRS;lower x except"_";x]}x where x in DELIM,.Q.an} +cancast:{nw:x$"";if[not x in"BXCS";nw:(min 0#;max 0#;::)@\:nw];$[not any nw in x$(11&count y)#y;$[11<count y;not any nw in x$y;1b];0b]} + +read:{[file]data[file;info[file]]} +read10:{[file]data10[file;info[file]]} + +colhdrs:{[file] + `$nameltrim DELIM vs cleanhdrs first read0(file;0;1+first where 0xa=read1(file;0;WIDTHHDR))} +data:{[file;info] + (exec c from info where not t=" ")xcol(exec t from info;enlist DELIM)0:file} +data10:{[file;info] + data[;info](file;0;1+last 11#where 0xa=read1(file;0;15*WIDTHHDR))} +info0:{[file;onlycols] + colhdrs:`$nameltrim DELIM vs cleanhdrs first head:read0(file;0;1+last where 0xa=read1(file;0;WIDTHHDR)); + loadfmts:(count colhdrs)#"S";if[count onlycols;loadfmts[where not colhdrs in onlycols]:"C"]; + breaks:where 0xa=read1(file;0;floor(10+READLINES)*WIDTHHDR%count head); + nas:count as:colhdrs xcol(loadfmts;enlist DELIM)0:(file;0;1+last((1+READLINES)&count breaks)#breaks); + info:([]c:key flip as;v:value flip as);as:(); + reserved:key`.q;reserved,:.Q.res;reserved,:`i; + info:update res:c in reserved from info; + info:update ci:i,t:"?",ipa:0b,mdot:0,mw:0,rule:0,gr:0,ndv:0,maybe:0b,empty:0b,j10:0b,j12:0b from info; + info:update ci:`s#ci from info; + if[count onlycols;info:update t:" ",rule:10 from info where not c in onlycols]; + info:update sdv:{string(distinct x)except`}peach v from info; + info:update ndv:count each sdv from info; + info:update gr:floor 0.5+100*ndv%nas,mw:{max count each x}peach sdv from info where 0<ndv; + info:update t:"*",rule:20 from info where mw>.csv.FORCECHARWIDTH; / long values + info:update t:"C "[.csv.DISCARDEMPTY],rule:30,empty:1b from info where t="?",mw=0; / empty columns + info:update dchar:{asc distinct raze x}peach sdv from info where t="?"; + info:update mdot:{max sum each"."=x}peach sdv from info where t="?",{"."in x}each dchar; + info:update t:"n",rule:40 from info where t="?",{any x in"0123456789"}each dchar; / vaguely numeric.. + info:update t:"I",rule:50,ipa:1b from info where t="n",mw within 7 15,mdot=3,{all x in".0123456789"}each dchar,.csv.cancast["I"]peach sdv; / ip-address + info:update t:"J",rule:60 from info where t="n",mdot=0,{all x in"+-0123456789"}each dchar,.csv.cancast["J"]peach sdv; + info:update t:"I",rule:70 from info where t="J",mw<12,.csv.cancast["I"]peach sdv; + info:update t:"H",rule:80 from info where t="I",mw<7,.csv.cancast["H"]peach sdv; + info:update t:"F",rule:90 from info where t="n",mdot<2,mw>1,.csv.cancast["F"]peach sdv; + info:update t:"E",rule:100,maybe:1b from info where t="F",mw<9; + info:update t:"M",rule:110,maybe:1b from info where t in"nIHEF",mdot<2,mw within 4 7,.csv.cancast["M"]peach sdv; + info:update t:"D",rule:120,maybe:1b from info where t in"nI",mdot in 0 2,mw within 6 11,.csv.cancast["D"]peach sdv; + info:update t:"V",rule:130,maybe:1b from info where t="I",mw in 5 6,7<count each dchar,{all x like"*[0-9][0-5][0-9][0-5][0-9]"}peach sdv,.csv.cancast["V"]peach sdv; / 235959 12345 + info:update t:"U",rule:140,maybe:1b from info where t="H",mw in 3 4,7<count each dchar,{all x like"*[0-9][0-5][0-9]"}peach sdv,.csv.cancast["U"]peach sdv; /2359 + info:update t:"U",rule:150,maybe:0b from info where t="n",mw in 4 5,mdot=0,{all x like"*[0-9]:[0-5][0-9]"}peach sdv,.csv.cancast["U"]peach sdv; + info:update t:"T",rule:160,maybe:0b from info where t="n",mw within 7 12,mdot<2,{all x like"*[0-9]:[0-5][0-9]:[0-5][0-9]*"}peach sdv,.csv.cancast["T"]peach sdv; + info:update t:"V",rule:170,maybe:0b from info where t="T",mw in 7 8,mdot=0,.csv.cancast["V"]peach sdv; + info:update t:"T",rule:180,maybe:1b from info where t in"EF",mw within 7 10,mdot=1,{all x like"*[0-9][0-5][0-9][0-5][0-9].*"}peach sdv,.csv.cancast["T"]peach sdv; + info:update t:"Z",rule:190,maybe:0b from info where t="n",mw within 11 24,mdot<4,.csv.cancast["Z"]peach sdv; + info:update t:"P",rule:200,maybe:1b from info where t="n",mw within 12 29,mdot<4,{all x like"[12]*"}peach sdv,.csv.cancast["P"]peach sdv; + info:update t:"N",rule:210,maybe:1b from info where t="n",mw within 3 28,mdot=1,.csv.cancast["N"]peach sdv; + info:update t:"?",rule:220,maybe:0b from info where t="n"; / reset remaining maybe numeric + info:update t:"C",rule:230,maybe:0b from info where t="?",mw=1; / char + info:update t:"B",rule:240,maybe:0b from info where t in"HC",mw=1,mdot=0,{$[all x in"01tTfFyYnN";(any"0fFnN"in x)and any"1tTyY"in x;0b]}each dchar; / boolean + info:update t:"B",rule:250,maybe:1b from info where t in"HC",mw=1,mdot=0,{all x in"01tTfFyYnN"}each dchar; / boolean + info:update t:"X",rule:260,maybe:0b from info where t="?",mw=2,{$[all x in"0123456789abcdefABCDEF";(any .Q.n in x)and any"abcdefABCDEF"in x;0b]}each dchar; /hex + info:update t:"S",rule:270,maybe:1b from info where t="?",mw<.csv.SYMMAXWIDTH,mw>1,gr<.csv.SYMMAXGR; / symbols (max width permitting) + info:update t:"*",rule:280,maybe:0b from info where t="?"; / the rest as strings + / flag those S/* columns which could be encoded to integers (.Q.j10/x10/j12/x12) to avoid symbols + info:update j12:1b from info where t in"S*",mw<13,{all x in .Q.nA}each dchar; + info:update j10:1b from info where t in"S*",mw<11,{all x in .Q.b6}each dchar; + select c,ci,t,maybe,empty,res,j10,j12,ipa,mw,mdot,rule,gr,ndv,dchar from info} +info:info0[;()] / by default don't restrict columns +infolike:{[file;pattern] info0[file;{x where x like y}[lower colhdrs[file];pattern]]} / .csv.infolike[file;"*time"] + +\d . +/ DATA:() +bulkload:{[file;info] + if[not`DATA in system"v";'`DATA.not.defined]; + if[count DATA;'`DATA.not.empty]; + loadhdrs:exec c from info where not t=" ";loadfmts:exec t from info; + .csv.fs2[{[file;loadhdrs;loadfmts] `DATA insert $[count DATA;flip loadhdrs!(loadfmts;.csv.DELIM)0:file;loadhdrs xcol(loadfmts;enlist .csv.DELIM)0:file]}[file;loadhdrs;loadfmts]]; + count DATA} +@[.:;"\\l csvutil.custom.q";::]; / save your custom settings in csvutil.custom.q to override those set at the beginning of the file +</textarea></div> + + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + lineNumbers: true, + matchBrackets: true + }); + </script> + + <p><strong>MIME type defined:</strong> <code>text/x-q</code>.</p> + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/q/q.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/q/q.js new file mode 100644 index 0000000..a4af938 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/q/q.js @@ -0,0 +1,139 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("q",function(config){ + var indentUnit=config.indentUnit, + curPunc, + keywords=buildRE(["abs","acos","aj","aj0","all","and","any","asc","asin","asof","atan","attr","avg","avgs","bin","by","ceiling","cols","cor","cos","count","cov","cross","csv","cut","delete","deltas","desc","dev","differ","distinct","div","do","each","ej","enlist","eval","except","exec","exit","exp","fby","fills","first","fkeys","flip","floor","from","get","getenv","group","gtime","hclose","hcount","hdel","hopen","hsym","iasc","idesc","if","ij","in","insert","inter","inv","key","keys","last","like","list","lj","load","log","lower","lsq","ltime","ltrim","mavg","max","maxs","mcount","md5","mdev","med","meta","min","mins","mmax","mmin","mmu","mod","msum","neg","next","not","null","or","over","parse","peach","pj","plist","prd","prds","prev","prior","rand","rank","ratios","raze","read0","read1","reciprocal","reverse","rload","rotate","rsave","rtrim","save","scan","select","set","setenv","show","signum","sin","sqrt","ss","ssr","string","sublist","sum","sums","sv","system","tables","tan","til","trim","txf","type","uj","ungroup","union","update","upper","upsert","value","var","view","views","vs","wavg","where","where","while","within","wj","wj1","wsum","xasc","xbar","xcol","xcols","xdesc","xexp","xgroup","xkey","xlog","xprev","xrank"]), + E=/[|/&^!+:\\\-*%$=~#;@><,?_\'\"\[\(\]\)\s{}]/; + function buildRE(w){return new RegExp("^("+w.join("|")+")$");} + function tokenBase(stream,state){ + var sol=stream.sol(),c=stream.next(); + curPunc=null; + if(sol) + if(c=="/") + return(state.tokenize=tokenLineComment)(stream,state); + else if(c=="\\"){ + if(stream.eol()||/\s/.test(stream.peek())) + return stream.skipToEnd(),/^\\\s*$/.test(stream.current())?(state.tokenize=tokenCommentToEOF)(stream, state):state.tokenize=tokenBase,"comment"; + else + return state.tokenize=tokenBase,"builtin"; + } + if(/\s/.test(c)) + return stream.peek()=="/"?(stream.skipToEnd(),"comment"):"whitespace"; + if(c=='"') + return(state.tokenize=tokenString)(stream,state); + if(c=='`') + return stream.eatWhile(/[A-Z|a-z|\d|_|:|\/|\.]/),"symbol"; + if(("."==c&&/\d/.test(stream.peek()))||/\d/.test(c)){ + var t=null; + stream.backUp(1); + if(stream.match(/^\d{4}\.\d{2}(m|\.\d{2}([D|T](\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)?)?)/) + || stream.match(/^\d+D(\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)/) + || stream.match(/^\d{2}:\d{2}(:\d{2}(\.\d{1,9})?)?/) + || stream.match(/^\d+[ptuv]{1}/)) + t="temporal"; + else if(stream.match(/^0[NwW]{1}/) + || stream.match(/^0x[\d|a-f|A-F]*/) + || stream.match(/^[0|1]+[b]{1}/) + || stream.match(/^\d+[chijn]{1}/) + || stream.match(/-?\d*(\.\d*)?(e[+\-]?\d+)?(e|f)?/)) + t="number"; + return(t&&(!(c=stream.peek())||E.test(c)))?t:(stream.next(),"error"); + } + if(/[A-Z|a-z]|\./.test(c)) + return stream.eatWhile(/[A-Z|a-z|\.|_|\d]/),keywords.test(stream.current())?"keyword":"variable"; + if(/[|/&^!+:\\\-*%$=~#;@><\.,?_\']/.test(c)) + return null; + if(/[{}\(\[\]\)]/.test(c)) + return null; + return"error"; + } + function tokenLineComment(stream,state){ + return stream.skipToEnd(),/\/\s*$/.test(stream.current())?(state.tokenize=tokenBlockComment)(stream,state):(state.tokenize=tokenBase),"comment"; + } + function tokenBlockComment(stream,state){ + var f=stream.sol()&&stream.peek()=="\\"; + stream.skipToEnd(); + if(f&&/^\\\s*$/.test(stream.current())) + state.tokenize=tokenBase; + return"comment"; + } + function tokenCommentToEOF(stream){return stream.skipToEnd(),"comment";} + function tokenString(stream,state){ + var escaped=false,next,end=false; + while((next=stream.next())){ + if(next=="\""&&!escaped){end=true;break;} + escaped=!escaped&&next=="\\"; + } + if(end)state.tokenize=tokenBase; + return"string"; + } + function pushContext(state,type,col){state.context={prev:state.context,indent:state.indent,col:col,type:type};} + function popContext(state){state.indent=state.context.indent;state.context=state.context.prev;} + return{ + startState:function(){ + return{tokenize:tokenBase, + context:null, + indent:0, + col:0}; + }, + token:function(stream,state){ + if(stream.sol()){ + if(state.context&&state.context.align==null) + state.context.align=false; + state.indent=stream.indentation(); + } + //if (stream.eatSpace()) return null; + var style=state.tokenize(stream,state); + if(style!="comment"&&state.context&&state.context.align==null&&state.context.type!="pattern"){ + state.context.align=true; + } + if(curPunc=="(")pushContext(state,")",stream.column()); + else if(curPunc=="[")pushContext(state,"]",stream.column()); + else if(curPunc=="{")pushContext(state,"}",stream.column()); + else if(/[\]\}\)]/.test(curPunc)){ + while(state.context&&state.context.type=="pattern")popContext(state); + if(state.context&&curPunc==state.context.type)popContext(state); + } + else if(curPunc=="."&&state.context&&state.context.type=="pattern")popContext(state); + else if(/atom|string|variable/.test(style)&&state.context){ + if(/[\}\]]/.test(state.context.type)) + pushContext(state,"pattern",stream.column()); + else if(state.context.type=="pattern"&&!state.context.align){ + state.context.align=true; + state.context.col=stream.column(); + } + } + return style; + }, + indent:function(state,textAfter){ + var firstChar=textAfter&&textAfter.charAt(0); + var context=state.context; + if(/[\]\}]/.test(firstChar)) + while (context&&context.type=="pattern")context=context.prev; + var closing=context&&firstChar==context.type; + if(!context) + return 0; + else if(context.type=="pattern") + return context.col; + else if(context.align) + return context.col+(closing?0:1); + else + return context.indent+(closing?0:indentUnit); + } + }; +}); +CodeMirror.defineMIME("text/x-q","q"); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/r/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/r/index.html new file mode 100644 index 0000000..6dd9634 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/r/index.html @@ -0,0 +1,85 @@ +<!doctype html> + +<title>CodeMirror: R mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="r.js"></script> +<style> + .CodeMirror { border-top: 1px solid silver; border-bottom: 1px solid silver; } + .cm-s-default span.cm-semi { color: blue; font-weight: bold; } + .cm-s-default span.cm-dollar { color: orange; font-weight: bold; } + .cm-s-default span.cm-arrow { color: brown; } + .cm-s-default span.cm-arg-is { color: brown; } + </style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">R</a> + </ul> +</div> + +<article> +<h2>R mode</h2> +<form><textarea id="code" name="code"> +# Code from http://www.mayin.org/ajayshah/KB/R/ + +# FIRST LEARN ABOUT LISTS -- +X = list(height=5.4, weight=54) +print("Use default printing --") +print(X) +print("Accessing individual elements --") +cat("Your height is ", X$height, " and your weight is ", X$weight, "\n") + +# FUNCTIONS -- +square <- function(x) { + return(x*x) +} +cat("The square of 3 is ", square(3), "\n") + + # default value of the arg is set to 5. +cube <- function(x=5) { + return(x*x*x); +} +cat("Calling cube with 2 : ", cube(2), "\n") # will give 2^3 +cat("Calling cube : ", cube(), "\n") # will default to 5^3. + +# LEARN ABOUT FUNCTIONS THAT RETURN MULTIPLE OBJECTS -- +powers <- function(x) { + parcel = list(x2=x*x, x3=x*x*x, x4=x*x*x*x); + return(parcel); +} + +X = powers(3); +print("Showing powers of 3 --"); print(X); + +# WRITING THIS COMPACTLY (4 lines instead of 7) + +powerful <- function(x) { + return(list(x2=x*x, x3=x*x*x, x4=x*x*x*x)); +} +print("Showing powers of 3 --"); print(powerful(3)); + +# In R, the last expression in a function is, by default, what is +# returned. So you could equally just say: +powerful <- function(x) {list(x2=x*x, x3=x*x*x, x4=x*x*x*x)} +</textarea></form> + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), {}); + </script> + + <p><strong>MIME types defined:</strong> <code>text/x-rsrc</code>.</p> + + <p>Development of the CodeMirror R mode was kindly sponsored + by <a href="https://twitter.com/ubalo">Ubalo</a>.</p> + + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/r/r.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/r/r.js new file mode 100644 index 0000000..d41d1c5 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/r/r.js @@ -0,0 +1,164 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.registerHelper("wordChars", "r", /[\w.]/); + +CodeMirror.defineMode("r", function(config) { + function wordObj(str) { + var words = str.split(" "), res = {}; + for (var i = 0; i < words.length; ++i) res[words[i]] = true; + return res; + } + var atoms = wordObj("NULL NA Inf NaN NA_integer_ NA_real_ NA_complex_ NA_character_"); + var builtins = wordObj("list quote bquote eval return call parse deparse"); + var keywords = wordObj("if else repeat while function for in next break"); + var blockkeywords = wordObj("if else repeat while function for"); + var opChars = /[+\-*\/^<>=!&|~$:]/; + var curPunc; + + function tokenBase(stream, state) { + curPunc = null; + var ch = stream.next(); + if (ch == "#") { + stream.skipToEnd(); + return "comment"; + } else if (ch == "0" && stream.eat("x")) { + stream.eatWhile(/[\da-f]/i); + return "number"; + } else if (ch == "." && stream.eat(/\d/)) { + stream.match(/\d*(?:e[+\-]?\d+)?/); + return "number"; + } else if (/\d/.test(ch)) { + stream.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/); + return "number"; + } else if (ch == "'" || ch == '"') { + state.tokenize = tokenString(ch); + return "string"; + } else if (ch == "." && stream.match(/.[.\d]+/)) { + return "keyword"; + } else if (/[\w\.]/.test(ch) && ch != "_") { + stream.eatWhile(/[\w\.]/); + var word = stream.current(); + if (atoms.propertyIsEnumerable(word)) return "atom"; + if (keywords.propertyIsEnumerable(word)) { + // Block keywords start new blocks, except 'else if', which only starts + // one new block for the 'if', no block for the 'else'. + if (blockkeywords.propertyIsEnumerable(word) && + !stream.match(/\s*if(\s+|$)/, false)) + curPunc = "block"; + return "keyword"; + } + if (builtins.propertyIsEnumerable(word)) return "builtin"; + return "variable"; + } else if (ch == "%") { + if (stream.skipTo("%")) stream.next(); + return "variable-2"; + } else if (ch == "<" && stream.eat("-")) { + return "arrow"; + } else if (ch == "=" && state.ctx.argList) { + return "arg-is"; + } else if (opChars.test(ch)) { + if (ch == "$") return "dollar"; + stream.eatWhile(opChars); + return "operator"; + } else if (/[\(\){}\[\];]/.test(ch)) { + curPunc = ch; + if (ch == ";") return "semi"; + return null; + } else { + return null; + } + } + + function tokenString(quote) { + return function(stream, state) { + if (stream.eat("\\")) { + var ch = stream.next(); + if (ch == "x") stream.match(/^[a-f0-9]{2}/i); + else if ((ch == "u" || ch == "U") && stream.eat("{") && stream.skipTo("}")) stream.next(); + else if (ch == "u") stream.match(/^[a-f0-9]{4}/i); + else if (ch == "U") stream.match(/^[a-f0-9]{8}/i); + else if (/[0-7]/.test(ch)) stream.match(/^[0-7]{1,2}/); + return "string-2"; + } else { + var next; + while ((next = stream.next()) != null) { + if (next == quote) { state.tokenize = tokenBase; break; } + if (next == "\\") { stream.backUp(1); break; } + } + return "string"; + } + }; + } + + function push(state, type, stream) { + state.ctx = {type: type, + indent: state.indent, + align: null, + column: stream.column(), + prev: state.ctx}; + } + function pop(state) { + state.indent = state.ctx.indent; + state.ctx = state.ctx.prev; + } + + return { + startState: function() { + return {tokenize: tokenBase, + ctx: {type: "top", + indent: -config.indentUnit, + align: false}, + indent: 0, + afterIdent: false}; + }, + + token: function(stream, state) { + if (stream.sol()) { + if (state.ctx.align == null) state.ctx.align = false; + state.indent = stream.indentation(); + } + if (stream.eatSpace()) return null; + var style = state.tokenize(stream, state); + if (style != "comment" && state.ctx.align == null) state.ctx.align = true; + + var ctype = state.ctx.type; + if ((curPunc == ";" || curPunc == "{" || curPunc == "}") && ctype == "block") pop(state); + if (curPunc == "{") push(state, "}", stream); + else if (curPunc == "(") { + push(state, ")", stream); + if (state.afterIdent) state.ctx.argList = true; + } + else if (curPunc == "[") push(state, "]", stream); + else if (curPunc == "block") push(state, "block", stream); + else if (curPunc == ctype) pop(state); + state.afterIdent = style == "variable" || style == "keyword"; + return style; + }, + + indent: function(state, textAfter) { + if (state.tokenize != tokenBase) return 0; + var firstChar = textAfter && textAfter.charAt(0), ctx = state.ctx, + closing = firstChar == ctx.type; + if (ctx.type == "block") return ctx.indent + (firstChar == "{" ? 0 : config.indentUnit); + else if (ctx.align) return ctx.column + (closing ? 0 : 1); + else return ctx.indent + (closing ? 0 : config.indentUnit); + }, + + lineComment: "#" + }; +}); + +CodeMirror.defineMIME("text/x-rsrc", "r"); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/rpm/changes/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/rpm/changes/index.html new file mode 100644 index 0000000..6e5031b --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/rpm/changes/index.html @@ -0,0 +1,66 @@ +<!doctype html> + +<title>CodeMirror: RPM changes mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + + <link rel="stylesheet" href="../../../lib/codemirror.css"> + <script src="../../../lib/codemirror.js"></script> + <script src="changes.js"></script> + <link rel="stylesheet" href="../../../doc/docs.css"> + <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> + +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../../doc/logo.png"></a> + + <ul> + <li><a href="../../../index.html">Home</a> + <li><a href="../../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../../index.html">Language modes</a> + <li><a class=active href="#">RPM changes</a> + </ul> +</div> + +<article> +<h2>RPM changes mode</h2> + + <div><textarea id="code" name="code"> +------------------------------------------------------------------- +Tue Oct 18 13:58:40 UTC 2011 - misterx@example.com + +- Update to r60.3 +- Fixes bug in the reflect package + * disallow Interface method on Value obtained via unexported name + +------------------------------------------------------------------- +Thu Oct 6 08:14:24 UTC 2011 - misterx@example.com + +- Update to r60.2 +- Fixes memory leak in certain map types + +------------------------------------------------------------------- +Wed Oct 5 14:34:10 UTC 2011 - misterx@example.com + +- Tweaks for gdb debugging +- go.spec changes: + - move %go_arch definition to %prep section + - pass correct location of go specific gdb pretty printer and + functions to cpp as HOST_EXTRA_CFLAGS macro + - install go gdb functions & printer +- gdb-printer.patch + - patch linker (src/cmd/ld/dwarf.c) to emit correct location of go + gdb functions and pretty printer +</textarea></div> + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + mode: {name: "changes"}, + lineNumbers: true, + indentUnit: 4 + }); + </script> + + <p><strong>MIME types defined:</strong> <code>text/x-rpm-changes</code>.</p> +</article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/rpm/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/rpm/index.html new file mode 100644 index 0000000..9a34e6d --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/rpm/index.html @@ -0,0 +1,149 @@ +<!doctype html> + +<title>CodeMirror: RPM changes mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + + <link rel="stylesheet" href="../../lib/codemirror.css"> + <script src="../../lib/codemirror.js"></script> + <script src="rpm.js"></script> + <link rel="stylesheet" href="../../doc/docs.css"> + <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> + +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">RPM</a> + </ul> +</div> + +<article> +<h2>RPM changes mode</h2> + + <div><textarea id="code" name="code"> +------------------------------------------------------------------- +Tue Oct 18 13:58:40 UTC 2011 - misterx@example.com + +- Update to r60.3 +- Fixes bug in the reflect package + * disallow Interface method on Value obtained via unexported name + +------------------------------------------------------------------- +Thu Oct 6 08:14:24 UTC 2011 - misterx@example.com + +- Update to r60.2 +- Fixes memory leak in certain map types + +------------------------------------------------------------------- +Wed Oct 5 14:34:10 UTC 2011 - misterx@example.com + +- Tweaks for gdb debugging +- go.spec changes: + - move %go_arch definition to %prep section + - pass correct location of go specific gdb pretty printer and + functions to cpp as HOST_EXTRA_CFLAGS macro + - install go gdb functions & printer +- gdb-printer.patch + - patch linker (src/cmd/ld/dwarf.c) to emit correct location of go + gdb functions and pretty printer +</textarea></div> + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + mode: {name: "rpm-changes"}, + lineNumbers: true, + indentUnit: 4 + }); + </script> + +<h2>RPM spec mode</h2> + + <div><textarea id="code2" name="code2"> +# +# spec file for package minidlna +# +# Copyright (c) 2011, Sascha Peilicke <saschpe@gmx.de> +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + + +Name: libupnp6 +Version: 1.6.13 +Release: 0 +Summary: Portable Universal Plug and Play (UPnP) SDK +Group: System/Libraries +License: BSD-3-Clause +Url: http://sourceforge.net/projects/pupnp/ +Source0: http://downloads.sourceforge.net/pupnp/libupnp-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +The portable Universal Plug and Play (UPnP) SDK provides support for building +UPnP-compliant control points, devices, and bridges on several operating +systems. + +%package -n libupnp-devel +Summary: Portable Universal Plug and Play (UPnP) SDK +Group: Development/Libraries/C and C++ +Provides: pkgconfig(libupnp) +Requires: %{name} = %{version} + +%description -n libupnp-devel +The portable Universal Plug and Play (UPnP) SDK provides support for building +UPnP-compliant control points, devices, and bridges on several operating +systems. + +%prep +%setup -n libupnp-%{version} + +%build +%configure --disable-static +make %{?_smp_mflags} + +%install +%makeinstall +find %{buildroot} -type f -name '*.la' -exec rm -f {} ';' + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc ChangeLog NEWS README TODO +%{_libdir}/libixml.so.* +%{_libdir}/libthreadutil.so.* +%{_libdir}/libupnp.so.* + +%files -n libupnp-devel +%defattr(-,root,root,-) +%{_libdir}/pkgconfig/libupnp.pc +%{_libdir}/libixml.so +%{_libdir}/libthreadutil.so +%{_libdir}/libupnp.so +%{_includedir}/upnp/ + +%changelog</textarea></div> + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code2"), { + mode: {name: "rpm-spec"}, + lineNumbers: true, + indentUnit: 4 + }); + </script> + + <p><strong>MIME types defined:</strong> <code>text/x-rpm-spec</code>, <code>text/x-rpm-changes</code>.</p> +</article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/rpm/rpm.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/rpm/rpm.js new file mode 100644 index 0000000..87cde59 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/rpm/rpm.js @@ -0,0 +1,109 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("rpm-changes", function() { + var headerSeperator = /^-+$/; + var headerLine = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ?\d{1,2} \d{2}:\d{2}(:\d{2})? [A-Z]{3,4} \d{4} - /; + var simpleEmail = /^[\w+.-]+@[\w.-]+/; + + return { + token: function(stream) { + if (stream.sol()) { + if (stream.match(headerSeperator)) { return 'tag'; } + if (stream.match(headerLine)) { return 'tag'; } + } + if (stream.match(simpleEmail)) { return 'string'; } + stream.next(); + return null; + } + }; +}); + +CodeMirror.defineMIME("text/x-rpm-changes", "rpm-changes"); + +// Quick and dirty spec file highlighting + +CodeMirror.defineMode("rpm-spec", function() { + var arch = /^(i386|i586|i686|x86_64|ppc64le|ppc64|ppc|ia64|s390x|s390|sparc64|sparcv9|sparc|noarch|alphaev6|alpha|hppa|mipsel)/; + + var preamble = /^[a-zA-Z0-9()]+:/; + var section = /^%(debug_package|package|description|prep|build|install|files|clean|changelog|preinstall|preun|postinstall|postun|pretrans|posttrans|pre|post|triggerin|triggerun|verifyscript|check|triggerpostun|triggerprein|trigger)/; + var control_flow_complex = /^%(ifnarch|ifarch|if)/; // rpm control flow macros + var control_flow_simple = /^%(else|endif)/; // rpm control flow macros + var operators = /^(\!|\?|\<\=|\<|\>\=|\>|\=\=|\&\&|\|\|)/; // operators in control flow macros + + return { + startState: function () { + return { + controlFlow: false, + macroParameters: false, + section: false + }; + }, + token: function (stream, state) { + var ch = stream.peek(); + if (ch == "#") { stream.skipToEnd(); return "comment"; } + + if (stream.sol()) { + if (stream.match(preamble)) { return "header"; } + if (stream.match(section)) { return "atom"; } + } + + if (stream.match(/^\$\w+/)) { return "def"; } // Variables like '$RPM_BUILD_ROOT' + if (stream.match(/^\$\{\w+\}/)) { return "def"; } // Variables like '${RPM_BUILD_ROOT}' + + if (stream.match(control_flow_simple)) { return "keyword"; } + if (stream.match(control_flow_complex)) { + state.controlFlow = true; + return "keyword"; + } + if (state.controlFlow) { + if (stream.match(operators)) { return "operator"; } + if (stream.match(/^(\d+)/)) { return "number"; } + if (stream.eol()) { state.controlFlow = false; } + } + + if (stream.match(arch)) { + if (stream.eol()) { state.controlFlow = false; } + return "number"; + } + + // Macros like '%make_install' or '%attr(0775,root,root)' + if (stream.match(/^%[\w]+/)) { + if (stream.match(/^\(/)) { state.macroParameters = true; } + return "keyword"; + } + if (state.macroParameters) { + if (stream.match(/^\d+/)) { return "number";} + if (stream.match(/^\)/)) { + state.macroParameters = false; + return "keyword"; + } + } + + // Macros like '%{defined fedora}' + if (stream.match(/^%\{\??[\w \-\:\!]+\}/)) { + if (stream.eol()) { state.controlFlow = false; } + return "def"; + } + + //TODO: Include bash script sub-parser (CodeMirror supports that) + stream.next(); + return null; + } + }; +}); + +CodeMirror.defineMIME("text/x-rpm-spec", "rpm-spec"); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/rst/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/rst/index.html new file mode 100644 index 0000000..2902dea --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/rst/index.html @@ -0,0 +1,535 @@ +<!doctype html> + +<title>CodeMirror: reStructuredText mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../../addon/mode/overlay.js"></script> +<script src="rst.js"></script> +<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">reStructuredText</a> + </ul> +</div> + +<article> +<h2>reStructuredText mode</h2> +<form><textarea id="code" name="code"> +.. This is an excerpt from Sphinx documentation: http://sphinx.pocoo.org/_sources/rest.txt + +.. highlightlang:: rest + +.. _rst-primer: + +reStructuredText Primer +======================= + +This section is a brief introduction to reStructuredText (reST) concepts and +syntax, intended to provide authors with enough information to author documents +productively. Since reST was designed to be a simple, unobtrusive markup +language, this will not take too long. + +.. seealso:: + + The authoritative `reStructuredText User Documentation + <http://docutils.sourceforge.net/rst.html>`_. The "ref" links in this + document link to the description of the individual constructs in the reST + reference. + + +Paragraphs +---------- + +The paragraph (:duref:`ref <paragraphs>`) is the most basic block in a reST +document. Paragraphs are simply chunks of text separated by one or more blank +lines. As in Python, indentation is significant in reST, so all lines of the +same paragraph must be left-aligned to the same level of indentation. + + +.. _inlinemarkup: + +Inline markup +------------- + +The standard reST inline markup is quite simple: use + +* one asterisk: ``*text*`` for emphasis (italics), +* two asterisks: ``**text**`` for strong emphasis (boldface), and +* backquotes: ````text```` for code samples. + +If asterisks or backquotes appear in running text and could be confused with +inline markup delimiters, they have to be escaped with a backslash. + +Be aware of some restrictions of this markup: + +* it may not be nested, +* content may not start or end with whitespace: ``* text*`` is wrong, +* it must be separated from surrounding text by non-word characters. Use a + backslash escaped space to work around that: ``thisis\ *one*\ word``. + +These restrictions may be lifted in future versions of the docutils. + +reST also allows for custom "interpreted text roles"', which signify that the +enclosed text should be interpreted in a specific way. Sphinx uses this to +provide semantic markup and cross-referencing of identifiers, as described in +the appropriate section. The general syntax is ``:rolename:`content```. + +Standard reST provides the following roles: + +* :durole:`emphasis` -- alternate spelling for ``*emphasis*`` +* :durole:`strong` -- alternate spelling for ``**strong**`` +* :durole:`literal` -- alternate spelling for ````literal```` +* :durole:`subscript` -- subscript text +* :durole:`superscript` -- superscript text +* :durole:`title-reference` -- for titles of books, periodicals, and other + materials + +See :ref:`inline-markup` for roles added by Sphinx. + + +Lists and Quote-like blocks +--------------------------- + +List markup (:duref:`ref <bullet-lists>`) is natural: just place an asterisk at +the start of a paragraph and indent properly. The same goes for numbered lists; +they can also be autonumbered using a ``#`` sign:: + + * This is a bulleted list. + * It has two items, the second + item uses two lines. + + 1. This is a numbered list. + 2. It has two items too. + + #. This is a numbered list. + #. It has two items too. + + +Nested lists are possible, but be aware that they must be separated from the +parent list items by blank lines:: + + * this is + * a list + + * with a nested list + * and some subitems + + * and here the parent list continues + +Definition lists (:duref:`ref <definition-lists>`) are created as follows:: + + term (up to a line of text) + Definition of the term, which must be indented + + and can even consist of multiple paragraphs + + next term + Description. + +Note that the term cannot have more than one line of text. + +Quoted paragraphs (:duref:`ref <block-quotes>`) are created by just indenting +them more than the surrounding paragraphs. + +Line blocks (:duref:`ref <line-blocks>`) are a way of preserving line breaks:: + + | These lines are + | broken exactly like in + | the source file. + +There are also several more special blocks available: + +* field lists (:duref:`ref <field-lists>`) +* option lists (:duref:`ref <option-lists>`) +* quoted literal blocks (:duref:`ref <quoted-literal-blocks>`) +* doctest blocks (:duref:`ref <doctest-blocks>`) + + +Source Code +----------- + +Literal code blocks (:duref:`ref <literal-blocks>`) are introduced by ending a +paragraph with the special marker ``::``. The literal block must be indented +(and, like all paragraphs, separated from the surrounding ones by blank lines):: + + This is a normal text paragraph. The next paragraph is a code sample:: + + It is not processed in any way, except + that the indentation is removed. + + It can span multiple lines. + + This is a normal text paragraph again. + +The handling of the ``::`` marker is smart: + +* If it occurs as a paragraph of its own, that paragraph is completely left + out of the document. +* If it is preceded by whitespace, the marker is removed. +* If it is preceded by non-whitespace, the marker is replaced by a single + colon. + +That way, the second sentence in the above example's first paragraph would be +rendered as "The next paragraph is a code sample:". + + +.. _rst-tables: + +Tables +------ + +Two forms of tables are supported. For *grid tables* (:duref:`ref +<grid-tables>`), you have to "paint" the cell grid yourself. They look like +this:: + + +------------------------+------------+----------+----------+ + | Header row, column 1 | Header 2 | Header 3 | Header 4 | + | (header rows optional) | | | | + +========================+============+==========+==========+ + | body row 1, column 1 | column 2 | column 3 | column 4 | + +------------------------+------------+----------+----------+ + | body row 2 | ... | ... | | + +------------------------+------------+----------+----------+ + +*Simple tables* (:duref:`ref <simple-tables>`) are easier to write, but +limited: they must contain more than one row, and the first column cannot +contain multiple lines. They look like this:: + + ===== ===== ======= + A B A and B + ===== ===== ======= + False False False + True False False + False True False + True True True + ===== ===== ======= + + +Hyperlinks +---------- + +External links +^^^^^^^^^^^^^^ + +Use ```Link text <http://example.com/>`_`` for inline web links. If the link +text should be the web address, you don't need special markup at all, the parser +finds links and mail addresses in ordinary text. + +You can also separate the link and the target definition (:duref:`ref +<hyperlink-targets>`), like this:: + + This is a paragraph that contains `a link`_. + + .. _a link: http://example.com/ + + +Internal links +^^^^^^^^^^^^^^ + +Internal linking is done via a special reST role provided by Sphinx, see the +section on specific markup, :ref:`ref-role`. + + +Sections +-------- + +Section headers (:duref:`ref <sections>`) are created by underlining (and +optionally overlining) the section title with a punctuation character, at least +as long as the text:: + + ================= + This is a heading + ================= + +Normally, there are no heading levels assigned to certain characters as the +structure is determined from the succession of headings. However, for the +Python documentation, this convention is used which you may follow: + +* ``#`` with overline, for parts +* ``*`` with overline, for chapters +* ``=``, for sections +* ``-``, for subsections +* ``^``, for subsubsections +* ``"``, for paragraphs + +Of course, you are free to use your own marker characters (see the reST +documentation), and use a deeper nesting level, but keep in mind that most +target formats (HTML, LaTeX) have a limited supported nesting depth. + + +Explicit Markup +--------------- + +"Explicit markup" (:duref:`ref <explicit-markup-blocks>`) is used in reST for +most constructs that need special handling, such as footnotes, +specially-highlighted paragraphs, comments, and generic directives. + +An explicit markup block begins with a line starting with ``..`` followed by +whitespace and is terminated by the next paragraph at the same level of +indentation. (There needs to be a blank line between explicit markup and normal +paragraphs. This may all sound a bit complicated, but it is intuitive enough +when you write it.) + + +.. _directives: + +Directives +---------- + +A directive (:duref:`ref <directives>`) is a generic block of explicit markup. +Besides roles, it is one of the extension mechanisms of reST, and Sphinx makes +heavy use of it. + +Docutils supports the following directives: + +* Admonitions: :dudir:`attention`, :dudir:`caution`, :dudir:`danger`, + :dudir:`error`, :dudir:`hint`, :dudir:`important`, :dudir:`note`, + :dudir:`tip`, :dudir:`warning` and the generic :dudir:`admonition`. + (Most themes style only "note" and "warning" specially.) + +* Images: + + - :dudir:`image` (see also Images_ below) + - :dudir:`figure` (an image with caption and optional legend) + +* Additional body elements: + + - :dudir:`contents` (a local, i.e. for the current file only, table of + contents) + - :dudir:`container` (a container with a custom class, useful to generate an + outer ``<div>`` in HTML) + - :dudir:`rubric` (a heading without relation to the document sectioning) + - :dudir:`topic`, :dudir:`sidebar` (special highlighted body elements) + - :dudir:`parsed-literal` (literal block that supports inline markup) + - :dudir:`epigraph` (a block quote with optional attribution line) + - :dudir:`highlights`, :dudir:`pull-quote` (block quotes with their own + class attribute) + - :dudir:`compound` (a compound paragraph) + +* Special tables: + + - :dudir:`table` (a table with title) + - :dudir:`csv-table` (a table generated from comma-separated values) + - :dudir:`list-table` (a table generated from a list of lists) + +* Special directives: + + - :dudir:`raw` (include raw target-format markup) + - :dudir:`include` (include reStructuredText from another file) + -- in Sphinx, when given an absolute include file path, this directive takes + it as relative to the source directory + - :dudir:`class` (assign a class attribute to the next element) [1]_ + +* HTML specifics: + + - :dudir:`meta` (generation of HTML ``<meta>`` tags) + - :dudir:`title` (override document title) + +* Influencing markup: + + - :dudir:`default-role` (set a new default role) + - :dudir:`role` (create a new role) + + Since these are only per-file, better use Sphinx' facilities for setting the + :confval:`default_role`. + +Do *not* use the directives :dudir:`sectnum`, :dudir:`header` and +:dudir:`footer`. + +Directives added by Sphinx are described in :ref:`sphinxmarkup`. + +Basically, a directive consists of a name, arguments, options and content. (Keep +this terminology in mind, it is used in the next chapter describing custom +directives.) Looking at this example, :: + + .. function:: foo(x) + foo(y, z) + :module: some.module.name + + Return a line of text input from the user. + +``function`` is the directive name. It is given two arguments here, the +remainder of the first line and the second line, as well as one option +``module`` (as you can see, options are given in the lines immediately following +the arguments and indicated by the colons). Options must be indented to the +same level as the directive content. + +The directive content follows after a blank line and is indented relative to the +directive start. + + +Images +------ + +reST supports an image directive (:dudir:`ref <image>`), used like so:: + + .. image:: gnu.png + (options) + +When used within Sphinx, the file name given (here ``gnu.png``) must either be +relative to the source file, or absolute which means that they are relative to +the top source directory. For example, the file ``sketch/spam.rst`` could refer +to the image ``images/spam.png`` as ``../images/spam.png`` or +``/images/spam.png``. + +Sphinx will automatically copy image files over to a subdirectory of the output +directory on building (e.g. the ``_static`` directory for HTML output.) + +Interpretation of image size options (``width`` and ``height``) is as follows: +if the size has no unit or the unit is pixels, the given size will only be +respected for output channels that support pixels (i.e. not in LaTeX output). +Other units (like ``pt`` for points) will be used for HTML and LaTeX output. + +Sphinx extends the standard docutils behavior by allowing an asterisk for the +extension:: + + .. image:: gnu.* + +Sphinx then searches for all images matching the provided pattern and determines +their type. Each builder then chooses the best image out of these candidates. +For instance, if the file name ``gnu.*`` was given and two files :file:`gnu.pdf` +and :file:`gnu.png` existed in the source tree, the LaTeX builder would choose +the former, while the HTML builder would prefer the latter. + +.. versionchanged:: 0.4 + Added the support for file names ending in an asterisk. + +.. versionchanged:: 0.6 + Image paths can now be absolute. + + +Footnotes +--------- + +For footnotes (:duref:`ref <footnotes>`), use ``[#name]_`` to mark the footnote +location, and add the footnote body at the bottom of the document after a +"Footnotes" rubric heading, like so:: + + Lorem ipsum [#f1]_ dolor sit amet ... [#f2]_ + + .. rubric:: Footnotes + + .. [#f1] Text of the first footnote. + .. [#f2] Text of the second footnote. + +You can also explicitly number the footnotes (``[1]_``) or use auto-numbered +footnotes without names (``[#]_``). + + +Citations +--------- + +Standard reST citations (:duref:`ref <citations>`) are supported, with the +additional feature that they are "global", i.e. all citations can be referenced +from all files. Use them like so:: + + Lorem ipsum [Ref]_ dolor sit amet. + + .. [Ref] Book or article reference, URL or whatever. + +Citation usage is similar to footnote usage, but with a label that is not +numeric or begins with ``#``. + + +Substitutions +------------- + +reST supports "substitutions" (:duref:`ref <substitution-definitions>`), which +are pieces of text and/or markup referred to in the text by ``|name|``. They +are defined like footnotes with explicit markup blocks, like this:: + + .. |name| replace:: replacement *text* + +or this:: + + .. |caution| image:: warning.png + :alt: Warning! + +See the :duref:`reST reference for substitutions <substitution-definitions>` +for details. + +If you want to use some substitutions for all documents, put them into +:confval:`rst_prolog` or put them into a separate file and include it into all +documents you want to use them in, using the :rst:dir:`include` directive. (Be +sure to give the include file a file name extension differing from that of other +source files, to avoid Sphinx finding it as a standalone document.) + +Sphinx defines some default substitutions, see :ref:`default-substitutions`. + + +Comments +-------- + +Every explicit markup block which isn't a valid markup construct (like the +footnotes above) is regarded as a comment (:duref:`ref <comments>`). For +example:: + + .. This is a comment. + +You can indent text after a comment start to form multiline comments:: + + .. + This whole indented block + is a comment. + + Still in the comment. + + +Source encoding +--------------- + +Since the easiest way to include special characters like em dashes or copyright +signs in reST is to directly write them as Unicode characters, one has to +specify an encoding. Sphinx assumes source files to be encoded in UTF-8 by +default; you can change this with the :confval:`source_encoding` config value. + + +Gotchas +------- + +There are some problems one commonly runs into while authoring reST documents: + +* **Separation of inline markup:** As said above, inline markup spans must be + separated from the surrounding text by non-word characters, you have to use a + backslash-escaped space to get around that. See `the reference + <http://docutils.sf.net/docs/ref/rst/restructuredtext.html#inline-markup>`_ + for the details. + +* **No nested inline markup:** Something like ``*see :func:`foo`*`` is not + possible. + + +.. rubric:: Footnotes + +.. [1] When the default domain contains a :rst:dir:`class` directive, this directive + will be shadowed. Therefore, Sphinx re-exports it as :rst:dir:`rst-class`. +</textarea></form> + + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + lineNumbers: true, + }); + </script> + <p> + The <code>python</code> mode will be used for highlighting blocks + containing Python/IPython terminal sessions: blocks starting with + <code>>>></code> (for Python) or <code>In [num]:</code> (for + IPython). + + Further, the <code>stex</code> mode will be used for highlighting + blocks containing LaTex code. + </p> + + <p><strong>MIME types defined:</strong> <code>text/x-rst</code>.</p> + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/rst/rst.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/rst/rst.js new file mode 100644 index 0000000..bcf110c --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/rst/rst.js @@ -0,0 +1,557 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror"), require("../python/python"), require("../stex/stex"), require("../../addon/mode/overlay")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror", "../python/python", "../stex/stex", "../../addon/mode/overlay"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode('rst', function (config, options) { + + var rx_strong = /^\*\*[^\*\s](?:[^\*]*[^\*\s])?\*\*/; + var rx_emphasis = /^\*[^\*\s](?:[^\*]*[^\*\s])?\*/; + var rx_literal = /^``[^`\s](?:[^`]*[^`\s])``/; + + var rx_number = /^(?:[\d]+(?:[\.,]\d+)*)/; + var rx_positive = /^(?:\s\+[\d]+(?:[\.,]\d+)*)/; + var rx_negative = /^(?:\s\-[\d]+(?:[\.,]\d+)*)/; + + var rx_uri_protocol = "[Hh][Tt][Tt][Pp][Ss]?://"; + var rx_uri_domain = "(?:[\\d\\w.-]+)\\.(?:\\w{2,6})"; + var rx_uri_path = "(?:/[\\d\\w\\#\\%\\&\\-\\.\\,\\/\\:\\=\\?\\~]+)*"; + var rx_uri = new RegExp("^" + rx_uri_protocol + rx_uri_domain + rx_uri_path); + + var overlay = { + token: function (stream) { + + if (stream.match(rx_strong) && stream.match (/\W+|$/, false)) + return 'strong'; + if (stream.match(rx_emphasis) && stream.match (/\W+|$/, false)) + return 'em'; + if (stream.match(rx_literal) && stream.match (/\W+|$/, false)) + return 'string-2'; + if (stream.match(rx_number)) + return 'number'; + if (stream.match(rx_positive)) + return 'positive'; + if (stream.match(rx_negative)) + return 'negative'; + if (stream.match(rx_uri)) + return 'link'; + + while (stream.next() != null) { + if (stream.match(rx_strong, false)) break; + if (stream.match(rx_emphasis, false)) break; + if (stream.match(rx_literal, false)) break; + if (stream.match(rx_number, false)) break; + if (stream.match(rx_positive, false)) break; + if (stream.match(rx_negative, false)) break; + if (stream.match(rx_uri, false)) break; + } + + return null; + } + }; + + var mode = CodeMirror.getMode( + config, options.backdrop || 'rst-base' + ); + + return CodeMirror.overlayMode(mode, overlay, true); // combine +}, 'python', 'stex'); + +/////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// + +CodeMirror.defineMode('rst-base', function (config) { + + /////////////////////////////////////////////////////////////////////////// + /////////////////////////////////////////////////////////////////////////// + + function format(string) { + var args = Array.prototype.slice.call(arguments, 1); + return string.replace(/{(\d+)}/g, function (match, n) { + return typeof args[n] != 'undefined' ? args[n] : match; + }); + } + + /////////////////////////////////////////////////////////////////////////// + /////////////////////////////////////////////////////////////////////////// + + var mode_python = CodeMirror.getMode(config, 'python'); + var mode_stex = CodeMirror.getMode(config, 'stex'); + + /////////////////////////////////////////////////////////////////////////// + /////////////////////////////////////////////////////////////////////////// + + var SEPA = "\\s+"; + var TAIL = "(?:\\s*|\\W|$)", + rx_TAIL = new RegExp(format('^{0}', TAIL)); + + var NAME = + "(?:[^\\W\\d_](?:[\\w!\"#$%&'()\\*\\+,\\-\\.\/:;<=>\\?]*[^\\W_])?)", + rx_NAME = new RegExp(format('^{0}', NAME)); + var NAME_WWS = + "(?:[^\\W\\d_](?:[\\w\\s!\"#$%&'()\\*\\+,\\-\\.\/:;<=>\\?]*[^\\W_])?)"; + var REF_NAME = format('(?:{0}|`{1}`)', NAME, NAME_WWS); + + var TEXT1 = "(?:[^\\s\\|](?:[^\\|]*[^\\s\\|])?)"; + var TEXT2 = "(?:[^\\`]+)", + rx_TEXT2 = new RegExp(format('^{0}', TEXT2)); + + var rx_section = new RegExp( + "^([!'#$%&\"()*+,-./:;<=>?@\\[\\\\\\]^_`{|}~])\\1{3,}\\s*$"); + var rx_explicit = new RegExp( + format('^\\.\\.{0}', SEPA)); + var rx_link = new RegExp( + format('^_{0}:{1}|^__:{1}', REF_NAME, TAIL)); + var rx_directive = new RegExp( + format('^{0}::{1}', REF_NAME, TAIL)); + var rx_substitution = new RegExp( + format('^\\|{0}\\|{1}{2}::{3}', TEXT1, SEPA, REF_NAME, TAIL)); + var rx_footnote = new RegExp( + format('^\\[(?:\\d+|#{0}?|\\*)]{1}', REF_NAME, TAIL)); + var rx_citation = new RegExp( + format('^\\[{0}\\]{1}', REF_NAME, TAIL)); + + var rx_substitution_ref = new RegExp( + format('^\\|{0}\\|', TEXT1)); + var rx_footnote_ref = new RegExp( + format('^\\[(?:\\d+|#{0}?|\\*)]_', REF_NAME)); + var rx_citation_ref = new RegExp( + format('^\\[{0}\\]_', REF_NAME)); + var rx_link_ref1 = new RegExp( + format('^{0}__?', REF_NAME)); + var rx_link_ref2 = new RegExp( + format('^`{0}`_', TEXT2)); + + var rx_role_pre = new RegExp( + format('^:{0}:`{1}`{2}', NAME, TEXT2, TAIL)); + var rx_role_suf = new RegExp( + format('^`{1}`:{0}:{2}', NAME, TEXT2, TAIL)); + var rx_role = new RegExp( + format('^:{0}:{1}', NAME, TAIL)); + + var rx_directive_name = new RegExp(format('^{0}', REF_NAME)); + var rx_directive_tail = new RegExp(format('^::{0}', TAIL)); + var rx_substitution_text = new RegExp(format('^\\|{0}\\|', TEXT1)); + var rx_substitution_sepa = new RegExp(format('^{0}', SEPA)); + var rx_substitution_name = new RegExp(format('^{0}', REF_NAME)); + var rx_substitution_tail = new RegExp(format('^::{0}', TAIL)); + var rx_link_head = new RegExp("^_"); + var rx_link_name = new RegExp(format('^{0}|_', REF_NAME)); + var rx_link_tail = new RegExp(format('^:{0}', TAIL)); + + var rx_verbatim = new RegExp('^::\\s*$'); + var rx_examples = new RegExp('^\\s+(?:>>>|In \\[\\d+\\]:)\\s'); + + /////////////////////////////////////////////////////////////////////////// + /////////////////////////////////////////////////////////////////////////// + + function to_normal(stream, state) { + var token = null; + + if (stream.sol() && stream.match(rx_examples, false)) { + change(state, to_mode, { + mode: mode_python, local: CodeMirror.startState(mode_python) + }); + } else if (stream.sol() && stream.match(rx_explicit)) { + change(state, to_explicit); + token = 'meta'; + } else if (stream.sol() && stream.match(rx_section)) { + change(state, to_normal); + token = 'header'; + } else if (phase(state) == rx_role_pre || + stream.match(rx_role_pre, false)) { + + switch (stage(state)) { + case 0: + change(state, to_normal, context(rx_role_pre, 1)); + stream.match(/^:/); + token = 'meta'; + break; + case 1: + change(state, to_normal, context(rx_role_pre, 2)); + stream.match(rx_NAME); + token = 'keyword'; + + if (stream.current().match(/^(?:math|latex)/)) { + state.tmp_stex = true; + } + break; + case 2: + change(state, to_normal, context(rx_role_pre, 3)); + stream.match(/^:`/); + token = 'meta'; + break; + case 3: + if (state.tmp_stex) { + state.tmp_stex = undefined; state.tmp = { + mode: mode_stex, local: CodeMirror.startState(mode_stex) + }; + } + + if (state.tmp) { + if (stream.peek() == '`') { + change(state, to_normal, context(rx_role_pre, 4)); + state.tmp = undefined; + break; + } + + token = state.tmp.mode.token(stream, state.tmp.local); + break; + } + + change(state, to_normal, context(rx_role_pre, 4)); + stream.match(rx_TEXT2); + token = 'string'; + break; + case 4: + change(state, to_normal, context(rx_role_pre, 5)); + stream.match(/^`/); + token = 'meta'; + break; + case 5: + change(state, to_normal, context(rx_role_pre, 6)); + stream.match(rx_TAIL); + break; + default: + change(state, to_normal); + } + } else if (phase(state) == rx_role_suf || + stream.match(rx_role_suf, false)) { + + switch (stage(state)) { + case 0: + change(state, to_normal, context(rx_role_suf, 1)); + stream.match(/^`/); + token = 'meta'; + break; + case 1: + change(state, to_normal, context(rx_role_suf, 2)); + stream.match(rx_TEXT2); + token = 'string'; + break; + case 2: + change(state, to_normal, context(rx_role_suf, 3)); + stream.match(/^`:/); + token = 'meta'; + break; + case 3: + change(state, to_normal, context(rx_role_suf, 4)); + stream.match(rx_NAME); + token = 'keyword'; + break; + case 4: + change(state, to_normal, context(rx_role_suf, 5)); + stream.match(/^:/); + token = 'meta'; + break; + case 5: + change(state, to_normal, context(rx_role_suf, 6)); + stream.match(rx_TAIL); + break; + default: + change(state, to_normal); + } + } else if (phase(state) == rx_role || stream.match(rx_role, false)) { + + switch (stage(state)) { + case 0: + change(state, to_normal, context(rx_role, 1)); + stream.match(/^:/); + token = 'meta'; + break; + case 1: + change(state, to_normal, context(rx_role, 2)); + stream.match(rx_NAME); + token = 'keyword'; + break; + case 2: + change(state, to_normal, context(rx_role, 3)); + stream.match(/^:/); + token = 'meta'; + break; + case 3: + change(state, to_normal, context(rx_role, 4)); + stream.match(rx_TAIL); + break; + default: + change(state, to_normal); + } + } else if (phase(state) == rx_substitution_ref || + stream.match(rx_substitution_ref, false)) { + + switch (stage(state)) { + case 0: + change(state, to_normal, context(rx_substitution_ref, 1)); + stream.match(rx_substitution_text); + token = 'variable-2'; + break; + case 1: + change(state, to_normal, context(rx_substitution_ref, 2)); + if (stream.match(/^_?_?/)) token = 'link'; + break; + default: + change(state, to_normal); + } + } else if (stream.match(rx_footnote_ref)) { + change(state, to_normal); + token = 'quote'; + } else if (stream.match(rx_citation_ref)) { + change(state, to_normal); + token = 'quote'; + } else if (stream.match(rx_link_ref1)) { + change(state, to_normal); + if (!stream.peek() || stream.peek().match(/^\W$/)) { + token = 'link'; + } + } else if (phase(state) == rx_link_ref2 || + stream.match(rx_link_ref2, false)) { + + switch (stage(state)) { + case 0: + if (!stream.peek() || stream.peek().match(/^\W$/)) { + change(state, to_normal, context(rx_link_ref2, 1)); + } else { + stream.match(rx_link_ref2); + } + break; + case 1: + change(state, to_normal, context(rx_link_ref2, 2)); + stream.match(/^`/); + token = 'link'; + break; + case 2: + change(state, to_normal, context(rx_link_ref2, 3)); + stream.match(rx_TEXT2); + break; + case 3: + change(state, to_normal, context(rx_link_ref2, 4)); + stream.match(/^`_/); + token = 'link'; + break; + default: + change(state, to_normal); + } + } else if (stream.match(rx_verbatim)) { + change(state, to_verbatim); + } + + else { + if (stream.next()) change(state, to_normal); + } + + return token; + } + + /////////////////////////////////////////////////////////////////////////// + /////////////////////////////////////////////////////////////////////////// + + function to_explicit(stream, state) { + var token = null; + + if (phase(state) == rx_substitution || + stream.match(rx_substitution, false)) { + + switch (stage(state)) { + case 0: + change(state, to_explicit, context(rx_substitution, 1)); + stream.match(rx_substitution_text); + token = 'variable-2'; + break; + case 1: + change(state, to_explicit, context(rx_substitution, 2)); + stream.match(rx_substitution_sepa); + break; + case 2: + change(state, to_explicit, context(rx_substitution, 3)); + stream.match(rx_substitution_name); + token = 'keyword'; + break; + case 3: + change(state, to_explicit, context(rx_substitution, 4)); + stream.match(rx_substitution_tail); + token = 'meta'; + break; + default: + change(state, to_normal); + } + } else if (phase(state) == rx_directive || + stream.match(rx_directive, false)) { + + switch (stage(state)) { + case 0: + change(state, to_explicit, context(rx_directive, 1)); + stream.match(rx_directive_name); + token = 'keyword'; + + if (stream.current().match(/^(?:math|latex)/)) + state.tmp_stex = true; + else if (stream.current().match(/^python/)) + state.tmp_py = true; + break; + case 1: + change(state, to_explicit, context(rx_directive, 2)); + stream.match(rx_directive_tail); + token = 'meta'; + + if (stream.match(/^latex\s*$/) || state.tmp_stex) { + state.tmp_stex = undefined; change(state, to_mode, { + mode: mode_stex, local: CodeMirror.startState(mode_stex) + }); + } + break; + case 2: + change(state, to_explicit, context(rx_directive, 3)); + if (stream.match(/^python\s*$/) || state.tmp_py) { + state.tmp_py = undefined; change(state, to_mode, { + mode: mode_python, local: CodeMirror.startState(mode_python) + }); + } + break; + default: + change(state, to_normal); + } + } else if (phase(state) == rx_link || stream.match(rx_link, false)) { + + switch (stage(state)) { + case 0: + change(state, to_explicit, context(rx_link, 1)); + stream.match(rx_link_head); + stream.match(rx_link_name); + token = 'link'; + break; + case 1: + change(state, to_explicit, context(rx_link, 2)); + stream.match(rx_link_tail); + token = 'meta'; + break; + default: + change(state, to_normal); + } + } else if (stream.match(rx_footnote)) { + change(state, to_normal); + token = 'quote'; + } else if (stream.match(rx_citation)) { + change(state, to_normal); + token = 'quote'; + } + + else { + stream.eatSpace(); + if (stream.eol()) { + change(state, to_normal); + } else { + stream.skipToEnd(); + change(state, to_comment); + token = 'comment'; + } + } + + return token; + } + + /////////////////////////////////////////////////////////////////////////// + /////////////////////////////////////////////////////////////////////////// + + function to_comment(stream, state) { + return as_block(stream, state, 'comment'); + } + + function to_verbatim(stream, state) { + return as_block(stream, state, 'meta'); + } + + function as_block(stream, state, token) { + if (stream.eol() || stream.eatSpace()) { + stream.skipToEnd(); + return token; + } else { + change(state, to_normal); + return null; + } + } + + /////////////////////////////////////////////////////////////////////////// + /////////////////////////////////////////////////////////////////////////// + + function to_mode(stream, state) { + + if (state.ctx.mode && state.ctx.local) { + + if (stream.sol()) { + if (!stream.eatSpace()) change(state, to_normal); + return null; + } + + return state.ctx.mode.token(stream, state.ctx.local); + } + + change(state, to_normal); + return null; + } + + /////////////////////////////////////////////////////////////////////////// + /////////////////////////////////////////////////////////////////////////// + + function context(phase, stage, mode, local) { + return {phase: phase, stage: stage, mode: mode, local: local}; + } + + function change(state, tok, ctx) { + state.tok = tok; + state.ctx = ctx || {}; + } + + function stage(state) { + return state.ctx.stage || 0; + } + + function phase(state) { + return state.ctx.phase; + } + + /////////////////////////////////////////////////////////////////////////// + /////////////////////////////////////////////////////////////////////////// + + return { + startState: function () { + return {tok: to_normal, ctx: context(undefined, 0)}; + }, + + copyState: function (state) { + var ctx = state.ctx, tmp = state.tmp; + if (ctx.local) + ctx = {mode: ctx.mode, local: CodeMirror.copyState(ctx.mode, ctx.local)}; + if (tmp) + tmp = {mode: tmp.mode, local: CodeMirror.copyState(tmp.mode, tmp.local)}; + return {tok: state.tok, ctx: ctx, tmp: tmp}; + }, + + innerMode: function (state) { + return state.tmp ? {state: state.tmp.local, mode: state.tmp.mode} + : state.ctx.mode ? {state: state.ctx.local, mode: state.ctx.mode} + : null; + }, + + token: function (stream, state) { + return state.tok(stream, state); + } + }; +}, 'python', 'stex'); + +/////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// + +CodeMirror.defineMIME('text/x-rst', 'rst'); + +/////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/ruby/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/ruby/index.html new file mode 100644 index 0000000..97544ba --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/ruby/index.html @@ -0,0 +1,183 @@ +<!doctype html> + +<title>CodeMirror: Ruby mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../../addon/edit/matchbrackets.js"></script> +<script src="ruby.js"></script> +<style> + .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;} + .cm-s-default span.cm-arrow { color: red; } + </style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Ruby</a> + </ul> +</div> + +<article> +<h2>Ruby mode</h2> +<form><textarea id="code" name="code"> +# Code from http://sandbox.mc.edu/~bennet/ruby/code/poly_rb.html +# +# This program evaluates polynomials. It first asks for the coefficients +# of a polynomial, which must be entered on one line, highest-order first. +# It then requests values of x and will compute the value of the poly for +# each x. It will repeatly ask for x values, unless you the user enters +# a blank line. It that case, it will ask for another polynomial. If the +# user types quit for either input, the program immediately exits. +# + +# +# Function to evaluate a polynomial at x. The polynomial is given +# as a list of coefficients, from the greatest to the least. +def polyval(x, coef) + sum = 0 + coef = coef.clone # Don't want to destroy the original + while true + sum += coef.shift # Add and remove the next coef + break if coef.empty? # If no more, done entirely. + sum *= x # This happens the right number of times. + end + return sum +end + +# +# Function to read a line containing a list of integers and return +# them as an array of integers. If the string conversion fails, it +# throws TypeError. If the input line is the word 'quit', then it +# converts it to an end-of-file exception +def readints(prompt) + # Read a line + print prompt + line = readline.chomp + raise EOFError.new if line == 'quit' # You can also use a real EOF. + + # Go through each item on the line, converting each one and adding it + # to retval. + retval = [ ] + for str in line.split(/\s+/) + if str =~ /^\-?\d+$/ + retval.push(str.to_i) + else + raise TypeError.new + end + end + + return retval +end + +# +# Take a coeff and an exponent and return the string representation, ignoring +# the sign of the coefficient. +def term_to_str(coef, exp) + ret = "" + + # Show coeff, unless it's 1 or at the right + coef = coef.abs + ret = coef.to_s unless coef == 1 && exp > 0 + ret += "x" if exp > 0 # x if exponent not 0 + ret += "^" + exp.to_s if exp > 1 # ^exponent, if > 1. + + return ret +end + +# +# Create a string of the polynomial in sort-of-readable form. +def polystr(p) + # Get the exponent of first coefficient, plus 1. + exp = p.length + + # Assign exponents to each term, making pairs of coeff and exponent, + # Then get rid of the zero terms. + p = (p.map { |c| exp -= 1; [ c, exp ] }).select { |p| p[0] != 0 } + + # If there's nothing left, it's a zero + return "0" if p.empty? + + # *** Now p is a non-empty list of [ coef, exponent ] pairs. *** + + # Convert the first term, preceded by a "-" if it's negative. + result = (if p[0][0] < 0 then "-" else "" end) + term_to_str(*p[0]) + + # Convert the rest of the terms, in each case adding the appropriate + # + or - separating them. + for term in p[1...p.length] + # Add the separator then the rep. of the term. + result += (if term[0] < 0 then " - " else " + " end) + + term_to_str(*term) + end + + return result +end + +# +# Run until some kind of endfile. +begin + # Repeat until an exception or quit gets us out. + while true + # Read a poly until it works. An EOF will except out of the + # program. + print "\n" + begin + poly = readints("Enter a polynomial coefficients: ") + rescue TypeError + print "Try again.\n" + retry + end + break if poly.empty? + + # Read and evaluate x values until the user types a blank line. + # Again, an EOF will except out of the pgm. + while true + # Request an integer. + print "Enter x value or blank line: " + x = readline.chomp + break if x == '' + raise EOFError.new if x == 'quit' + + # If it looks bad, let's try again. + if x !~ /^\-?\d+$/ + print "That doesn't look like an integer. Please try again.\n" + next + end + + # Convert to an integer and print the result. + x = x.to_i + print "p(x) = ", polystr(poly), "\n" + print "p(", x, ") = ", polyval(x, poly), "\n" + end + end +rescue EOFError + print "\n=== EOF ===\n" +rescue Interrupt, SignalException + print "\n=== Interrupted ===\n" +else + print "--- Bye ---\n" +end +</textarea></form> + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + mode: "text/x-ruby", + matchBrackets: true, + indentUnit: 4 + }); + </script> + + <p><strong>MIME types defined:</strong> <code>text/x-ruby</code>.</p> + + <p>Development of the CodeMirror Ruby mode was kindly sponsored + by <a href="http://ubalo.com/">Ubalo</a>.</p> + + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/ruby/ruby.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/ruby/ruby.js new file mode 100644 index 0000000..10cad8d --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/ruby/ruby.js @@ -0,0 +1,285 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("ruby", function(config) { + function wordObj(words) { + var o = {}; + for (var i = 0, e = words.length; i < e; ++i) o[words[i]] = true; + return o; + } + var keywords = wordObj([ + "alias", "and", "BEGIN", "begin", "break", "case", "class", "def", "defined?", "do", "else", + "elsif", "END", "end", "ensure", "false", "for", "if", "in", "module", "next", "not", "or", + "redo", "rescue", "retry", "return", "self", "super", "then", "true", "undef", "unless", + "until", "when", "while", "yield", "nil", "raise", "throw", "catch", "fail", "loop", "callcc", + "caller", "lambda", "proc", "public", "protected", "private", "require", "load", + "require_relative", "extend", "autoload", "__END__", "__FILE__", "__LINE__", "__dir__" + ]); + var indentWords = wordObj(["def", "class", "case", "for", "while", "until", "module", "then", + "catch", "loop", "proc", "begin"]); + var dedentWords = wordObj(["end", "until"]); + var matching = {"[": "]", "{": "}", "(": ")"}; + var curPunc; + + function chain(newtok, stream, state) { + state.tokenize.push(newtok); + return newtok(stream, state); + } + + function tokenBase(stream, state) { + if (stream.sol() && stream.match("=begin") && stream.eol()) { + state.tokenize.push(readBlockComment); + return "comment"; + } + if (stream.eatSpace()) return null; + var ch = stream.next(), m; + if (ch == "`" || ch == "'" || ch == '"') { + return chain(readQuoted(ch, "string", ch == '"' || ch == "`"), stream, state); + } else if (ch == "/") { + var currentIndex = stream.current().length; + if (stream.skipTo("/")) { + var search_till = stream.current().length; + stream.backUp(stream.current().length - currentIndex); + var balance = 0; // balance brackets + while (stream.current().length < search_till) { + var chchr = stream.next(); + if (chchr == "(") balance += 1; + else if (chchr == ")") balance -= 1; + if (balance < 0) break; + } + stream.backUp(stream.current().length - currentIndex); + if (balance == 0) + return chain(readQuoted(ch, "string-2", true), stream, state); + } + return "operator"; + } else if (ch == "%") { + var style = "string", embed = true; + if (stream.eat("s")) style = "atom"; + else if (stream.eat(/[WQ]/)) style = "string"; + else if (stream.eat(/[r]/)) style = "string-2"; + else if (stream.eat(/[wxq]/)) { style = "string"; embed = false; } + var delim = stream.eat(/[^\w\s=]/); + if (!delim) return "operator"; + if (matching.propertyIsEnumerable(delim)) delim = matching[delim]; + return chain(readQuoted(delim, style, embed, true), stream, state); + } else if (ch == "#") { + stream.skipToEnd(); + return "comment"; + } else if (ch == "<" && (m = stream.match(/^<-?[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/))) { + return chain(readHereDoc(m[1]), stream, state); + } else if (ch == "0") { + if (stream.eat("x")) stream.eatWhile(/[\da-fA-F]/); + else if (stream.eat("b")) stream.eatWhile(/[01]/); + else stream.eatWhile(/[0-7]/); + return "number"; + } else if (/\d/.test(ch)) { + stream.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/); + return "number"; + } else if (ch == "?") { + while (stream.match(/^\\[CM]-/)) {} + if (stream.eat("\\")) stream.eatWhile(/\w/); + else stream.next(); + return "string"; + } else if (ch == ":") { + if (stream.eat("'")) return chain(readQuoted("'", "atom", false), stream, state); + if (stream.eat('"')) return chain(readQuoted('"', "atom", true), stream, state); + + // :> :>> :< :<< are valid symbols + if (stream.eat(/[\<\>]/)) { + stream.eat(/[\<\>]/); + return "atom"; + } + + // :+ :- :/ :* :| :& :! are valid symbols + if (stream.eat(/[\+\-\*\/\&\|\:\!]/)) { + return "atom"; + } + + // Symbols can't start by a digit + if (stream.eat(/[a-zA-Z$@_\xa1-\uffff]/)) { + stream.eatWhile(/[\w$\xa1-\uffff]/); + // Only one ? ! = is allowed and only as the last character + stream.eat(/[\?\!\=]/); + return "atom"; + } + return "operator"; + } else if (ch == "@" && stream.match(/^@?[a-zA-Z_\xa1-\uffff]/)) { + stream.eat("@"); + stream.eatWhile(/[\w\xa1-\uffff]/); + return "variable-2"; + } else if (ch == "$") { + if (stream.eat(/[a-zA-Z_]/)) { + stream.eatWhile(/[\w]/); + } else if (stream.eat(/\d/)) { + stream.eat(/\d/); + } else { + stream.next(); // Must be a special global like $: or $! + } + return "variable-3"; + } else if (/[a-zA-Z_\xa1-\uffff]/.test(ch)) { + stream.eatWhile(/[\w\xa1-\uffff]/); + stream.eat(/[\?\!]/); + if (stream.eat(":")) return "atom"; + return "ident"; + } else if (ch == "|" && (state.varList || state.lastTok == "{" || state.lastTok == "do")) { + curPunc = "|"; + return null; + } else if (/[\(\)\[\]{}\\;]/.test(ch)) { + curPunc = ch; + return null; + } else if (ch == "-" && stream.eat(">")) { + return "arrow"; + } else if (/[=+\-\/*:\.^%<>~|]/.test(ch)) { + var more = stream.eatWhile(/[=+\-\/*:\.^%<>~|]/); + if (ch == "." && !more) curPunc = "."; + return "operator"; + } else { + return null; + } + } + + function tokenBaseUntilBrace(depth) { + if (!depth) depth = 1; + return function(stream, state) { + if (stream.peek() == "}") { + if (depth == 1) { + state.tokenize.pop(); + return state.tokenize[state.tokenize.length-1](stream, state); + } else { + state.tokenize[state.tokenize.length - 1] = tokenBaseUntilBrace(depth - 1); + } + } else if (stream.peek() == "{") { + state.tokenize[state.tokenize.length - 1] = tokenBaseUntilBrace(depth + 1); + } + return tokenBase(stream, state); + }; + } + function tokenBaseOnce() { + var alreadyCalled = false; + return function(stream, state) { + if (alreadyCalled) { + state.tokenize.pop(); + return state.tokenize[state.tokenize.length-1](stream, state); + } + alreadyCalled = true; + return tokenBase(stream, state); + }; + } + function readQuoted(quote, style, embed, unescaped) { + return function(stream, state) { + var escaped = false, ch; + + if (state.context.type === 'read-quoted-paused') { + state.context = state.context.prev; + stream.eat("}"); + } + + while ((ch = stream.next()) != null) { + if (ch == quote && (unescaped || !escaped)) { + state.tokenize.pop(); + break; + } + if (embed && ch == "#" && !escaped) { + if (stream.eat("{")) { + if (quote == "}") { + state.context = {prev: state.context, type: 'read-quoted-paused'}; + } + state.tokenize.push(tokenBaseUntilBrace()); + break; + } else if (/[@\$]/.test(stream.peek())) { + state.tokenize.push(tokenBaseOnce()); + break; + } + } + escaped = !escaped && ch == "\\"; + } + return style; + }; + } + function readHereDoc(phrase) { + return function(stream, state) { + if (stream.match(phrase)) state.tokenize.pop(); + else stream.skipToEnd(); + return "string"; + }; + } + function readBlockComment(stream, state) { + if (stream.sol() && stream.match("=end") && stream.eol()) + state.tokenize.pop(); + stream.skipToEnd(); + return "comment"; + } + + return { + startState: function() { + return {tokenize: [tokenBase], + indented: 0, + context: {type: "top", indented: -config.indentUnit}, + continuedLine: false, + lastTok: null, + varList: false}; + }, + + token: function(stream, state) { + curPunc = null; + if (stream.sol()) state.indented = stream.indentation(); + var style = state.tokenize[state.tokenize.length-1](stream, state), kwtype; + var thisTok = curPunc; + if (style == "ident") { + var word = stream.current(); + style = state.lastTok == "." ? "property" + : keywords.propertyIsEnumerable(stream.current()) ? "keyword" + : /^[A-Z]/.test(word) ? "tag" + : (state.lastTok == "def" || state.lastTok == "class" || state.varList) ? "def" + : "variable"; + if (style == "keyword") { + thisTok = word; + if (indentWords.propertyIsEnumerable(word)) kwtype = "indent"; + else if (dedentWords.propertyIsEnumerable(word)) kwtype = "dedent"; + else if ((word == "if" || word == "unless") && stream.column() == stream.indentation()) + kwtype = "indent"; + else if (word == "do" && state.context.indented < state.indented) + kwtype = "indent"; + } + } + if (curPunc || (style && style != "comment")) state.lastTok = thisTok; + if (curPunc == "|") state.varList = !state.varList; + + if (kwtype == "indent" || /[\(\[\{]/.test(curPunc)) + state.context = {prev: state.context, type: curPunc || style, indented: state.indented}; + else if ((kwtype == "dedent" || /[\)\]\}]/.test(curPunc)) && state.context.prev) + state.context = state.context.prev; + + if (stream.eol()) + state.continuedLine = (curPunc == "\\" || style == "operator"); + return style; + }, + + indent: function(state, textAfter) { + if (state.tokenize[state.tokenize.length-1] != tokenBase) return 0; + var firstChar = textAfter && textAfter.charAt(0); + var ct = state.context; + var closing = ct.type == matching[firstChar] || + ct.type == "keyword" && /^(?:end|until|else|elsif|when|rescue)\b/.test(textAfter); + return ct.indented + (closing ? 0 : config.indentUnit) + + (state.continuedLine ? config.indentUnit : 0); + }, + + electricInput: /^\s*(?:end|rescue|\})$/, + lineComment: "#" + }; +}); + +CodeMirror.defineMIME("text/x-ruby", "ruby"); + +}); diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/ruby/test.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/ruby/test.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/ruby/test.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/ruby/test.js diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/rust/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/rust/index.html new file mode 100644 index 0000000..1fe0ad1 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/rust/index.html @@ -0,0 +1,64 @@ +<!doctype html> + +<title>CodeMirror: Rust mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../../addon/mode/simple.js"></script> +<script src="rust.js"></script> +<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Rust</a> + </ul> +</div> + +<article> +<h2>Rust mode</h2> + + +<div><textarea id="code" name="code"> +// Demo code. + +type foo<T> = int; +enum bar { + some(int, foo<float>), + none +} + +fn check_crate(x: int) { + let v = 10; + match foo { + 1 ... 3 { + print_foo(); + if x { + blah().to_string(); + } + } + (x, y) { "bye" } + _ { "hi" } + } +} +</textarea></div> + + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + lineNumbers: true, + lineWrapping: true, + indentUnit: 4, + mode: "rust" + }); + </script> + + <p><strong>MIME types defined:</strong> <code>text/x-rustsrc</code>.</p> + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/rust/rust.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/rust/rust.js new file mode 100644 index 0000000..8558b53 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/rust/rust.js @@ -0,0 +1,71 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror"), require("../../addon/mode/simple")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror", "../../addon/mode/simple"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineSimpleMode("rust",{ + start: [ + // string and byte string + {regex: /b?"/, token: "string", next: "string"}, + // raw string and raw byte string + {regex: /b?r"/, token: "string", next: "string_raw"}, + {regex: /b?r#+"/, token: "string", next: "string_raw_hash"}, + // character + {regex: /'(?:[^'\\]|\\(?:[nrt0'"]|x[\da-fA-F]{2}|u\{[\da-fA-F]{6}\}))'/, token: "string-2"}, + // byte + {regex: /b'(?:[^']|\\(?:['\\nrt0]|x[\da-fA-F]{2}))'/, token: "string-2"}, + + {regex: /(?:(?:[0-9][0-9_]*)(?:(?:[Ee][+-]?[0-9_]+)|\.[0-9_]+(?:[Ee][+-]?[0-9_]+)?)(?:f32|f64)?)|(?:0(?:b[01_]+|(?:o[0-7_]+)|(?:x[0-9a-fA-F_]+))|(?:[0-9][0-9_]*))(?:u8|u16|u32|u64|i8|i16|i32|i64|isize|usize)?/, + token: "number"}, + {regex: /(let(?:\s+mut)?|fn|enum|mod|struct|type)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/, token: ["keyword", null, "def"]}, + {regex: /(?:abstract|alignof|as|box|break|continue|const|crate|do|else|enum|extern|fn|for|final|if|impl|in|loop|macro|match|mod|move|offsetof|override|priv|proc|pub|pure|ref|return|self|sizeof|static|struct|super|trait|type|typeof|unsafe|unsized|use|virtual|where|while|yield)\b/, token: "keyword"}, + {regex: /\b(?:Self|isize|usize|char|bool|u8|u16|u32|u64|f16|f32|f64|i8|i16|i32|i64|str|Option)\b/, token: "atom"}, + {regex: /\b(?:true|false|Some|None|Ok|Err)\b/, token: "builtin"}, + {regex: /\b(fn)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/, + token: ["keyword", null ,"def"]}, + {regex: /#!?\[.*\]/, token: "meta"}, + {regex: /\/\/.*/, token: "comment"}, + {regex: /\/\*/, token: "comment", next: "comment"}, + {regex: /[-+\/*=<>!]+/, token: "operator"}, + {regex: /[a-zA-Z_]\w*!/,token: "variable-3"}, + {regex: /[a-zA-Z_]\w*/, token: "variable"}, + {regex: /[\{\[\(]/, indent: true}, + {regex: /[\}\]\)]/, dedent: true} + ], + string: [ + {regex: /"/, token: "string", next: "start"}, + {regex: /(?:[^\\"]|\\(?:.|$))*/, token: "string"} + ], + string_raw: [ + {regex: /"/, token: "string", next: "start"}, + {regex: /[^"]*/, token: "string"} + ], + string_raw_hash: [ + {regex: /"#+/, token: "string", next: "start"}, + {regex: /(?:[^"]|"(?!#))*/, token: "string"} + ], + comment: [ + {regex: /.*?\*\//, token: "comment", next: "start"}, + {regex: /.*/, token: "comment"} + ], + meta: { + dontIndentStates: ["comment"], + electricInput: /^\s*\}$/, + blockCommentStart: "/*", + blockCommentEnd: "*/", + lineComment: "//", + fold: "brace" + } +}); + + +CodeMirror.defineMIME("text/x-rustsrc", "rust"); +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/rust/test.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/rust/test.js new file mode 100644 index 0000000..eb256c4 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/rust/test.js @@ -0,0 +1,39 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function() { + var mode = CodeMirror.getMode({indentUnit: 4}, "rust"); + function MT(name) {test.mode(name, mode, Array.prototype.slice.call(arguments, 1));} + + MT('integer_test', + '[number 123i32]', + '[number 123u32]', + '[number 123_u32]', + '[number 0xff_u8]', + '[number 0o70_i16]', + '[number 0b1111_1111_1001_0000_i32]', + '[number 0usize]'); + + MT('float_test', + '[number 123.0f64]', + '[number 0.1f64]', + '[number 0.1f32]', + '[number 12E+99_f64]'); + + MT('string-literals-test', + '[string "foo"]', + '[string r"foo"]', + '[string "\\"foo\\""]', + '[string r#""foo""#]', + '[string "foo #\\"# bar"]', + + '[string b"foo"]', + '[string br"foo"]', + '[string b"\\"foo\\""]', + '[string br#""foo""#]', + '[string br##"foo #" bar"##]', + + "[string-2 'h']", + "[string-2 b'h']"); + +})(); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/sas/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/sas/index.html new file mode 100644 index 0000000..636e065 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/sas/index.html @@ -0,0 +1,81 @@ +<!doctype html> + +<title>CodeMirror: SAS mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../xml/xml.js"></script> +<script src="sas.js"></script> +<style type="text/css"> + .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;} + .cm-s-default .cm-trailing-space-a:before, + .cm-s-default .cm-trailing-space-b:before {position: absolute; content: "\00B7"; color: #777;} + .cm-s-default .cm-trailing-space-new-line:before {position: absolute; content: "\21B5"; color: #777;} +</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">SAS</a> + </ul> +</div> + +<article> +<h2>SAS mode</h2> +<form><textarea id="code" name="code"> +libname foo "/tmp/foobar"; +%let count=1; + +/* Multi line +Comment +*/ +data _null_; + x=ranuni(); + * single comment; + x2=x**2; + sx=sqrt(x); + if x=x2 then put "x must be 1"; + else do; + put x=; + end; +run; + +/* embedded comment +* comment; +*/ + +proc glm data=sashelp.class; + class sex; + model weight = height sex; +run; + +proc sql; + select count(*) + from sashelp.class; + + create table foo as + select * from sashelp.class; + + select * + from foo; +quit; +</textarea></form> + +<script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + mode: 'sas', + lineNumbers: true + }); +</script> + +<p><strong>MIME types defined:</strong> <code>text/x-sas</code>.</p> + +</article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/sas/sas.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/sas/sas.js new file mode 100644 index 0000000..a6109eb --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/sas/sas.js @@ -0,0 +1,316 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + + +// SAS mode copyright (c) 2016 Jared Dean, SAS Institute +// Created by Jared Dean + +// TODO +// indent and de-indent +// identify macro variables + + +//Definitions +// comment -- text withing * ; or /* */ +// keyword -- SAS language variable +// variable -- macro variables starts with '&' or variable formats +// variable-2 -- DATA Step, proc, or macro names +// string -- text within ' ' or " " +// operator -- numeric operator + / - * ** le eq ge ... and so on +// builtin -- proc %macro data run mend +// atom +// def + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { + "use strict"; + + CodeMirror.defineMode("sas", function () { + var words = {}; + var isDoubleOperatorSym = { + eq: 'operator', + lt: 'operator', + le: 'operator', + gt: 'operator', + ge: 'operator', + "in": 'operator', + ne: 'operator', + or: 'operator' + }; + var isDoubleOperatorChar = /(<=|>=|!=|<>)/; + var isSingleOperatorChar = /[=\(:\),{}.*<>+\-\/^\[\]]/; + + // Takes a string of words separated by spaces and adds them as + // keys with the value of the first argument 'style' + function define(style, string, context) { + if (context) { + var split = string.split(' '); + for (var i = 0; i < split.length; i++) { + words[split[i]] = {style: style, state: context}; + } + } + } + //datastep + define('def', 'stack pgm view source debug nesting nolist', ['inDataStep']); + define('def', 'if while until for do do; end end; then else cancel', ['inDataStep']); + define('def', 'label format _n_ _error_', ['inDataStep']); + define('def', 'ALTER BUFNO BUFSIZE CNTLLEV COMPRESS DLDMGACTION ENCRYPT ENCRYPTKEY EXTENDOBSCOUNTER GENMAX GENNUM INDEX LABEL OBSBUF OUTREP PW PWREQ READ REPEMPTY REPLACE REUSE ROLE SORTEDBY SPILL TOBSNO TYPE WRITE FILECLOSE FIRSTOBS IN OBS POINTOBS WHERE WHEREUP IDXNAME IDXWHERE DROP KEEP RENAME', ['inDataStep']); + define('def', 'filevar finfo finv fipname fipnamel fipstate first firstobs floor', ['inDataStep']); + define('def', 'varfmt varinfmt varlabel varlen varname varnum varray varrayx vartype verify vformat vformatd vformatdx vformatn vformatnx vformatw vformatwx vformatx vinarray vinarrayx vinformat vinformatd vinformatdx vinformatn vinformatnx vinformatw vinformatwx vinformatx vlabel vlabelx vlength vlengthx vname vnamex vnferr vtype vtypex weekday', ['inDataStep']); + define('def', 'zipfips zipname zipnamel zipstate', ['inDataStep']); + define('def', 'put putc putn', ['inDataStep']); + define('builtin', 'data run', ['inDataStep']); + + + //proc + define('def', 'data', ['inProc']); + + // flow control for macros + define('def', '%if %end %end; %else %else; %do %do; %then', ['inMacro']); + + //everywhere + define('builtin', 'proc run; quit; libname filename %macro %mend option options', ['ALL']); + + define('def', 'footnote title libname ods', ['ALL']); + define('def', '%let %put %global %sysfunc %eval ', ['ALL']); + // automatic macro variables http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#a003167023.htm + define('variable', '&sysbuffr &syscc &syscharwidth &syscmd &sysdate &sysdate9 &sysday &sysdevic &sysdmg &sysdsn &sysencoding &sysenv &syserr &syserrortext &sysfilrc &syshostname &sysindex &sysinfo &sysjobid &syslast &syslckrc &syslibrc &syslogapplname &sysmacroname &sysmenv &sysmsg &sysncpu &sysodspath &sysparm &syspbuff &sysprocessid &sysprocessname &sysprocname &sysrc &sysscp &sysscpl &sysscpl &syssite &sysstartid &sysstartname &systcpiphostname &systime &sysuserid &sysver &sysvlong &sysvlong4 &syswarningtext', ['ALL']); + + //footnote[1-9]? title[1-9]? + + //options statement + define('def', 'source2 nosource2 page pageno pagesize', ['ALL']); + + //proc and datastep + define('def', '_all_ _character_ _cmd_ _freq_ _i_ _infile_ _last_ _msg_ _null_ _numeric_ _temporary_ _type_ abort abs addr adjrsq airy alpha alter altlog altprint and arcos array arsin as atan attrc attrib attrn authserver autoexec awscontrol awsdef awsmenu awsmenumerge awstitle backward band base betainv between blocksize blshift bnot bor brshift bufno bufsize bxor by byerr byline byte calculated call cards cards4 catcache cbufno cdf ceil center cexist change chisq cinv class cleanup close cnonct cntllev coalesce codegen col collate collin column comamid comaux1 comaux2 comdef compbl compound compress config continue convert cos cosh cpuid create cross crosstab css curobs cv daccdb daccdbsl daccsl daccsyd dacctab dairy datalines datalines4 datejul datepart datetime day dbcslang dbcstype dclose ddm delete delimiter depdb depdbsl depsl depsyd deptab dequote descending descript design= device dflang dhms dif digamma dim dinfo display distinct dkricond dkrocond dlm dnum do dopen doptname doptnum dread drop dropnote dsname dsnferr echo else emaildlg emailid emailpw emailserver emailsys encrypt end endsas engine eof eov erf erfc error errorcheck errors exist exp fappend fclose fcol fdelete feedback fetch fetchobs fexist fget file fileclose fileexist filefmt filename fileref fmterr fmtsearch fnonct fnote font fontalias fopen foptname foptnum force formatted formchar formdelim formdlim forward fpoint fpos fput fread frewind frlen from fsep fuzz fwrite gaminv gamma getoption getvarc getvarn go goto group gwindow hbar hbound helpenv helploc hms honorappearance hosthelp hostprint hour hpct html hvar ibessel ibr id if index indexc indexw initcmd initstmt inner input inputc inputn inr insert int intck intnx into intrr invaliddata irr is jbessel join juldate keep kentb kurtosis label lag last lbound leave left length levels lgamma lib library libref line linesize link list log log10 log2 logpdf logpmf logsdf lostcard lowcase lrecl ls macro macrogen maps mautosource max maxdec maxr mdy mean measures median memtype merge merror min minute missing missover mlogic mod mode model modify month mopen mort mprint mrecall msglevel msymtabmax mvarsize myy n nest netpv new news nmiss no nobatch nobs nocaps nocardimage nocenter nocharcode nocmdmac nocol nocum nodate nodbcs nodetails nodmr nodms nodmsbatch nodup nodupkey noduplicates noechoauto noequals noerrorabend noexitwindows nofullstimer noicon noimplmac noint nolist noloadlist nomiss nomlogic nomprint nomrecall nomsgcase nomstored nomultenvappl nonotes nonumber noobs noovp nopad nopercent noprint noprintinit normal norow norsasuser nosetinit nosplash nosymbolgen note notes notitle notitles notsorted noverbose noxsync noxwait npv null number numkeys nummousekeys nway obs on open order ordinal otherwise out outer outp= output over ovp p(1 5 10 25 50 75 90 95 99) pad pad2 paired parm parmcards path pathdll pathname pdf peek peekc pfkey pmf point poisson poke position printer probbeta probbnml probchi probf probgam probhypr probit probnegb probnorm probsig probt procleave prt ps pw pwreq qtr quote r ranbin rancau ranexp rangam range ranks rannor ranpoi rantbl rantri ranuni read recfm register regr remote remove rename repeat replace resolve retain return reuse reverse rewind right round rsquare rtf rtrace rtraceloc s s2 samploc sasautos sascontrol sasfrscr sasmsg sasmstore sasscript sasuser saving scan sdf second select selection separated seq serror set setcomm setot sign simple sin sinh siteinfo skewness skip sle sls sortedby sortpgm sortseq sortsize soundex spedis splashlocation split spool sqrt start std stderr stdin stfips stimer stname stnamel stop stopover subgroup subpopn substr sum sumwgt symbol symbolgen symget symput sysget sysin sysleave sysmsg sysparm sysprint sysprintfont sysprod sysrc system t table tables tan tanh tapeclose tbufsize terminal test then timepart tinv tnonct to today tol tooldef totper transformout translate trantab tranwrd trigamma trim trimn trunc truncover type unformatted uniform union until upcase update user usericon uss validate value var weight when where while wincharset window work workinit workterm write wsum xsync xwait yearcutoff yes yyq min max', ['inDataStep', 'inProc']); + define('operator', 'and not ', ['inDataStep', 'inProc']); + + // Main function + function tokenize(stream, state) { + // Finally advance the stream + var ch = stream.next(); + + // BLOCKCOMMENT + if (ch === '/' && stream.eat('*')) { + state.continueComment = true; + return "comment"; + } else if (state.continueComment === true) { // in comment block + //comment ends at the beginning of the line + if (ch === '*' && stream.peek() === '/') { + stream.next(); + state.continueComment = false; + } else if (stream.skipTo('*')) { //comment is potentially later in line + stream.skipTo('*'); + stream.next(); + if (stream.eat('/')) + state.continueComment = false; + } else { + stream.skipToEnd(); + } + return "comment"; + } + + // DoubleOperator match + var doubleOperator = ch + stream.peek(); + + // Match all line comments. + var myString = stream.string; + var myRegexp = /(?:^\s*|[;]\s*)(\*.*?);/ig; + var match = myRegexp.exec(myString); + if (match !== null) { + if (match.index === 0 && (stream.column() !== (match.index + match[0].length - 1))) { + stream.backUp(stream.column()); + stream.skipTo(';'); + stream.next(); + return 'comment'; + } else if (match.index + 1 < stream.column() && stream.column() < match.index + match[0].length - 1) { + // the ';' triggers the match so move one past it to start + // the comment block that is why match.index+1 + stream.backUp(stream.column() - match.index - 1); + stream.skipTo(';'); + stream.next(); + return 'comment'; + } + } else if ((ch === '"' || ch === "'") && !state.continueString) { + state.continueString = ch + return "string" + } else if (state.continueString) { + if (state.continueString == ch) { + state.continueString = null; + } else if (stream.skipTo(state.continueString)) { + // quote found on this line + stream.next(); + state.continueString = null; + } else { + stream.skipToEnd(); + } + return "string"; + } else if (state.continueString !== null && stream.eol()) { + stream.skipTo(state.continueString) || stream.skipToEnd(); + return "string"; + } else if (/[\d\.]/.test(ch)) { //find numbers + if (ch === ".") + stream.match(/^[0-9]+([eE][\-+]?[0-9]+)?/); + else if (ch === "0") + stream.match(/^[xX][0-9a-fA-F]+/) || stream.match(/^0[0-7]+/); + else + stream.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/); + return "number"; + } else if (isDoubleOperatorChar.test(ch + stream.peek())) { // TWO SYMBOL TOKENS + stream.next(); + return "operator"; + } else if (isDoubleOperatorSym.hasOwnProperty(doubleOperator)) { + stream.next(); + if (stream.peek() === ' ') + return isDoubleOperatorSym[doubleOperator.toLowerCase()]; + } else if (isSingleOperatorChar.test(ch)) { // SINGLE SYMBOL TOKENS + return "operator"; + } + + // Matches one whole word -- even if the word is a character + var word; + if (stream.match(/[%&;\w]+/, false) != null) { + word = ch + stream.match(/[%&;\w]+/, true); + if (/&/.test(word)) return 'variable' + } else { + word = ch; + } + // the word after DATA PROC or MACRO + if (state.nextword) { + stream.match(/[\w]+/); + // match memname.libname + if (stream.peek() === '.') stream.skipTo(' '); + state.nextword = false; + return 'variable-2'; + } + + word = word.toLowerCase() + // Are we in a DATA Step? + if (state.inDataStep) { + if (word === 'run;' || stream.match(/run\s;/)) { + state.inDataStep = false; + return 'builtin'; + } + // variable formats + if ((word) && stream.next() === '.') { + //either a format or libname.memname + if (/\w/.test(stream.peek())) return 'variable-2'; + else return 'variable'; + } + // do we have a DATA Step keyword + if (word && words.hasOwnProperty(word) && + (words[word].state.indexOf("inDataStep") !== -1 || + words[word].state.indexOf("ALL") !== -1)) { + //backup to the start of the word + if (stream.start < stream.pos) + stream.backUp(stream.pos - stream.start); + //advance the length of the word and return + for (var i = 0; i < word.length; ++i) stream.next(); + return words[word].style; + } + } + // Are we in an Proc statement? + if (state.inProc) { + if (word === 'run;' || word === 'quit;') { + state.inProc = false; + return 'builtin'; + } + // do we have a proc keyword + if (word && words.hasOwnProperty(word) && + (words[word].state.indexOf("inProc") !== -1 || + words[word].state.indexOf("ALL") !== -1)) { + stream.match(/[\w]+/); + return words[word].style; + } + } + // Are we in a Macro statement? + if (state.inMacro) { + if (word === '%mend') { + if (stream.peek() === ';') stream.next(); + state.inMacro = false; + return 'builtin'; + } + if (word && words.hasOwnProperty(word) && + (words[word].state.indexOf("inMacro") !== -1 || + words[word].state.indexOf("ALL") !== -1)) { + stream.match(/[\w]+/); + return words[word].style; + } + + return 'atom'; + } + // Do we have Keywords specific words? + if (word && words.hasOwnProperty(word)) { + // Negates the initial next() + stream.backUp(1); + // Actually move the stream + stream.match(/[\w]+/); + if (word === 'data' && /=/.test(stream.peek()) === false) { + state.inDataStep = true; + state.nextword = true; + return 'builtin'; + } + if (word === 'proc') { + state.inProc = true; + state.nextword = true; + return 'builtin'; + } + if (word === '%macro') { + state.inMacro = true; + state.nextword = true; + return 'builtin'; + } + if (/title[1-9]/.test(word)) return 'def'; + + if (word === 'footnote') { + stream.eat(/[1-9]/); + return 'def'; + } + + // Returns their value as state in the prior define methods + if (state.inDataStep === true && words[word].state.indexOf("inDataStep") !== -1) + return words[word].style; + if (state.inProc === true && words[word].state.indexOf("inProc") !== -1) + return words[word].style; + if (state.inMacro === true && words[word].state.indexOf("inMacro") !== -1) + return words[word].style; + if (words[word].state.indexOf("ALL") !== -1) + return words[word].style; + return null; + } + // Unrecognized syntax + return null; + } + + return { + startState: function () { + return { + inDataStep: false, + inProc: false, + inMacro: false, + nextword: false, + continueString: null, + continueComment: false + }; + }, + token: function (stream, state) { + // Strip the spaces, but regex will account for them either way + if (stream.eatSpace()) return null; + // Go through the main process + return tokenize(stream, state); + }, + + blockCommentStart: "/*", + blockCommentEnd: "*/" + }; + + }); + + CodeMirror.defineMIME("text/x-sas", "sas"); +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/sass/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/sass/index.html new file mode 100644 index 0000000..9f4a790 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/sass/index.html @@ -0,0 +1,66 @@ +<!doctype html> + +<title>CodeMirror: Sass mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../../addon/edit/matchbrackets.js"></script> +<script src="sass.js"></script> +<style>.CodeMirror {border: 1px solid #ddd; font-size:12px; height: 400px}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Sass</a> + </ul> +</div> + +<article> +<h2>Sass mode</h2> +<form><textarea id="code" name="code">// Variable Definitions + +$page-width: 800px +$sidebar-width: 200px +$primary-color: #eeeeee + +// Global Attributes + +body + font: + family: sans-serif + size: 30em + weight: bold + +// Scoped Styles + +#contents + width: $page-width + #sidebar + float: right + width: $sidebar-width + #main + width: $page-width - $sidebar-width + background: $primary-color + h2 + color: blue + +#footer + height: 200px +</textarea></form> + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + lineNumbers : true, + matchBrackets : true + }); + </script> + + <p><strong>MIME types defined:</strong> <code>text/x-sass</code>.</p> + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/sass/sass.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/sass/sass.js new file mode 100644 index 0000000..6973ece --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/sass/sass.js @@ -0,0 +1,414 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("sass", function(config) { + function tokenRegexp(words) { + return new RegExp("^" + words.join("|")); + } + + var keywords = ["true", "false", "null", "auto"]; + var keywordsRegexp = new RegExp("^" + keywords.join("|")); + + var operators = ["\\(", "\\)", "=", ">", "<", "==", ">=", "<=", "\\+", "-", + "\\!=", "/", "\\*", "%", "and", "or", "not", ";","\\{","\\}",":"]; + var opRegexp = tokenRegexp(operators); + + var pseudoElementsRegexp = /^::?[a-zA-Z_][\w\-]*/; + + function urlTokens(stream, state) { + var ch = stream.peek(); + + if (ch === ")") { + stream.next(); + state.tokenizer = tokenBase; + return "operator"; + } else if (ch === "(") { + stream.next(); + stream.eatSpace(); + + return "operator"; + } else if (ch === "'" || ch === '"') { + state.tokenizer = buildStringTokenizer(stream.next()); + return "string"; + } else { + state.tokenizer = buildStringTokenizer(")", false); + return "string"; + } + } + function comment(indentation, multiLine) { + return function(stream, state) { + if (stream.sol() && stream.indentation() <= indentation) { + state.tokenizer = tokenBase; + return tokenBase(stream, state); + } + + if (multiLine && stream.skipTo("*/")) { + stream.next(); + stream.next(); + state.tokenizer = tokenBase; + } else { + stream.skipToEnd(); + } + + return "comment"; + }; + } + + function buildStringTokenizer(quote, greedy) { + if (greedy == null) { greedy = true; } + + function stringTokenizer(stream, state) { + var nextChar = stream.next(); + var peekChar = stream.peek(); + var previousChar = stream.string.charAt(stream.pos-2); + + var endingString = ((nextChar !== "\\" && peekChar === quote) || (nextChar === quote && previousChar !== "\\")); + + if (endingString) { + if (nextChar !== quote && greedy) { stream.next(); } + state.tokenizer = tokenBase; + return "string"; + } else if (nextChar === "#" && peekChar === "{") { + state.tokenizer = buildInterpolationTokenizer(stringTokenizer); + stream.next(); + return "operator"; + } else { + return "string"; + } + } + + return stringTokenizer; + } + + function buildInterpolationTokenizer(currentTokenizer) { + return function(stream, state) { + if (stream.peek() === "}") { + stream.next(); + state.tokenizer = currentTokenizer; + return "operator"; + } else { + return tokenBase(stream, state); + } + }; + } + + function indent(state) { + if (state.indentCount == 0) { + state.indentCount++; + var lastScopeOffset = state.scopes[0].offset; + var currentOffset = lastScopeOffset + config.indentUnit; + state.scopes.unshift({ offset:currentOffset }); + } + } + + function dedent(state) { + if (state.scopes.length == 1) return; + + state.scopes.shift(); + } + + function tokenBase(stream, state) { + var ch = stream.peek(); + + // Comment + if (stream.match("/*")) { + state.tokenizer = comment(stream.indentation(), true); + return state.tokenizer(stream, state); + } + if (stream.match("//")) { + state.tokenizer = comment(stream.indentation(), false); + return state.tokenizer(stream, state); + } + + // Interpolation + if (stream.match("#{")) { + state.tokenizer = buildInterpolationTokenizer(tokenBase); + return "operator"; + } + + // Strings + if (ch === '"' || ch === "'") { + stream.next(); + state.tokenizer = buildStringTokenizer(ch); + return "string"; + } + + if(!state.cursorHalf){// state.cursorHalf === 0 + // first half i.e. before : for key-value pairs + // including selectors + + if (ch === ".") { + stream.next(); + if (stream.match(/^[\w-]+/)) { + indent(state); + return "atom"; + } else if (stream.peek() === "#") { + indent(state); + return "atom"; + } + } + + if (ch === "#") { + stream.next(); + // ID selectors + if (stream.match(/^[\w-]+/)) { + indent(state); + return "atom"; + } + if (stream.peek() === "#") { + indent(state); + return "atom"; + } + } + + // Variables + if (ch === "$") { + stream.next(); + stream.eatWhile(/[\w-]/); + return "variable-2"; + } + + // Numbers + if (stream.match(/^-?[0-9\.]+/)) + return "number"; + + // Units + if (stream.match(/^(px|em|in)\b/)) + return "unit"; + + if (stream.match(keywordsRegexp)) + return "keyword"; + + if (stream.match(/^url/) && stream.peek() === "(") { + state.tokenizer = urlTokens; + return "atom"; + } + + if (ch === "=") { + // Match shortcut mixin definition + if (stream.match(/^=[\w-]+/)) { + indent(state); + return "meta"; + } + } + + if (ch === "+") { + // Match shortcut mixin definition + if (stream.match(/^\+[\w-]+/)){ + return "variable-3"; + } + } + + if(ch === "@"){ + if(stream.match(/@extend/)){ + if(!stream.match(/\s*[\w]/)) + dedent(state); + } + } + + + // Indent Directives + if (stream.match(/^@(else if|if|media|else|for|each|while|mixin|function)/)) { + indent(state); + return "meta"; + } + + // Other Directives + if (ch === "@") { + stream.next(); + stream.eatWhile(/[\w-]/); + return "meta"; + } + + if (stream.eatWhile(/[\w-]/)){ + if(stream.match(/ *: *[\w-\+\$#!\("']/,false)){ + return "property"; + } + else if(stream.match(/ *:/,false)){ + indent(state); + state.cursorHalf = 1; + return "atom"; + } + else if(stream.match(/ *,/,false)){ + return "atom"; + } + else{ + indent(state); + return "atom"; + } + } + + if(ch === ":"){ + if (stream.match(pseudoElementsRegexp)){ // could be a pseudo-element + return "keyword"; + } + stream.next(); + state.cursorHalf=1; + return "operator"; + } + + } // cursorHalf===0 ends here + else{ + + if (ch === "#") { + stream.next(); + // Hex numbers + if (stream.match(/[0-9a-fA-F]{6}|[0-9a-fA-F]{3}/)){ + if(!stream.peek()){ + state.cursorHalf = 0; + } + return "number"; + } + } + + // Numbers + if (stream.match(/^-?[0-9\.]+/)){ + if(!stream.peek()){ + state.cursorHalf = 0; + } + return "number"; + } + + // Units + if (stream.match(/^(px|em|in)\b/)){ + if(!stream.peek()){ + state.cursorHalf = 0; + } + return "unit"; + } + + if (stream.match(keywordsRegexp)){ + if(!stream.peek()){ + state.cursorHalf = 0; + } + return "keyword"; + } + + if (stream.match(/^url/) && stream.peek() === "(") { + state.tokenizer = urlTokens; + if(!stream.peek()){ + state.cursorHalf = 0; + } + return "atom"; + } + + // Variables + if (ch === "$") { + stream.next(); + stream.eatWhile(/[\w-]/); + if(!stream.peek()){ + state.cursorHalf = 0; + } + return "variable-3"; + } + + // bang character for !important, !default, etc. + if (ch === "!") { + stream.next(); + if(!stream.peek()){ + state.cursorHalf = 0; + } + return stream.match(/^[\w]+/) ? "keyword": "operator"; + } + + if (stream.match(opRegexp)){ + if(!stream.peek()){ + state.cursorHalf = 0; + } + return "operator"; + } + + // attributes + if (stream.eatWhile(/[\w-]/)) { + if(!stream.peek()){ + state.cursorHalf = 0; + } + return "attribute"; + } + + //stream.eatSpace(); + if(!stream.peek()){ + state.cursorHalf = 0; + return null; + } + + } // else ends here + + if (stream.match(opRegexp)) + return "operator"; + + // If we haven't returned by now, we move 1 character + // and return an error + stream.next(); + return null; + } + + function tokenLexer(stream, state) { + if (stream.sol()) state.indentCount = 0; + var style = state.tokenizer(stream, state); + var current = stream.current(); + + if (current === "@return" || current === "}"){ + dedent(state); + } + + if (style !== null) { + var startOfToken = stream.pos - current.length; + + var withCurrentIndent = startOfToken + (config.indentUnit * state.indentCount); + + var newScopes = []; + + for (var i = 0; i < state.scopes.length; i++) { + var scope = state.scopes[i]; + + if (scope.offset <= withCurrentIndent) + newScopes.push(scope); + } + + state.scopes = newScopes; + } + + + return style; + } + + return { + startState: function() { + return { + tokenizer: tokenBase, + scopes: [{offset: 0, type: "sass"}], + indentCount: 0, + cursorHalf: 0, // cursor half tells us if cursor lies after (1) + // or before (0) colon (well... more or less) + definedVars: [], + definedMixins: [] + }; + }, + token: function(stream, state) { + var style = tokenLexer(stream, state); + + state.lastToken = { style: style, content: stream.current() }; + + return style; + }, + + indent: function(state) { + return state.scopes[0].offset; + } + }; +}); + +CodeMirror.defineMIME("text/x-sass", "sass"); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/scheme/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/scheme/index.html new file mode 100644 index 0000000..04d5c6a --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/scheme/index.html @@ -0,0 +1,77 @@ +<!doctype html> + +<title>CodeMirror: Scheme mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="scheme.js"></script> +<style>.CodeMirror {background: #f8f8f8;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Scheme</a> + </ul> +</div> + +<article> +<h2>Scheme mode</h2> +<form><textarea id="code" name="code"> +; See if the input starts with a given symbol. +(define (match-symbol input pattern) + (cond ((null? (remain input)) #f) + ((eqv? (car (remain input)) pattern) (r-cdr input)) + (else #f))) + +; Allow the input to start with one of a list of patterns. +(define (match-or input pattern) + (cond ((null? pattern) #f) + ((match-pattern input (car pattern))) + (else (match-or input (cdr pattern))))) + +; Allow a sequence of patterns. +(define (match-seq input pattern) + (if (null? pattern) + input + (let ((match (match-pattern input (car pattern)))) + (if match (match-seq match (cdr pattern)) #f)))) + +; Match with the pattern but no problem if it does not match. +(define (match-opt input pattern) + (let ((match (match-pattern input (car pattern)))) + (if match match input))) + +; Match anything (other than '()), until pattern is found. The rather +; clumsy form of requiring an ending pattern is needed to decide where +; the end of the match is. If none is given, this will match the rest +; of the sentence. +(define (match-any input pattern) + (cond ((null? (remain input)) #f) + ((null? pattern) (f-cons (remain input) (clear-remain input))) + (else + (let ((accum-any (collector))) + (define (match-pattern-any input pattern) + (cond ((null? (remain input)) #f) + (else (accum-any (car (remain input))) + (cond ((match-pattern (r-cdr input) pattern)) + (else (match-pattern-any (r-cdr input) pattern)))))) + (let ((retval (match-pattern-any input (car pattern)))) + (if retval + (f-cons (accum-any) retval) + #f)))))) +</textarea></form> + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), {}); + </script> + + <p><strong>MIME types defined:</strong> <code>text/x-scheme</code>.</p> + + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/scheme/scheme.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/scheme/scheme.js new file mode 100644 index 0000000..2234645 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/scheme/scheme.js @@ -0,0 +1,249 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +/** + * Author: Koh Zi Han, based on implementation by Koh Zi Chun + */ + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("scheme", function () { + var BUILTIN = "builtin", COMMENT = "comment", STRING = "string", + ATOM = "atom", NUMBER = "number", BRACKET = "bracket"; + var INDENT_WORD_SKIP = 2; + + function makeKeywords(str) { + var obj = {}, words = str.split(" "); + for (var i = 0; i < words.length; ++i) obj[words[i]] = true; + return obj; + } + + var keywords = makeKeywords("λ case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt #f floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? string=? string>=? string>? string? substring symbol->string symbol? #t tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"); + var indentKeys = makeKeywords("define let letrec let* lambda"); + + function stateStack(indent, type, prev) { // represents a state stack object + this.indent = indent; + this.type = type; + this.prev = prev; + } + + function pushStack(state, indent, type) { + state.indentStack = new stateStack(indent, type, state.indentStack); + } + + function popStack(state) { + state.indentStack = state.indentStack.prev; + } + + var binaryMatcher = new RegExp(/^(?:[-+]i|[-+][01]+#*(?:\/[01]+#*)?i|[-+]?[01]+#*(?:\/[01]+#*)?@[-+]?[01]+#*(?:\/[01]+#*)?|[-+]?[01]+#*(?:\/[01]+#*)?[-+](?:[01]+#*(?:\/[01]+#*)?)?i|[-+]?[01]+#*(?:\/[01]+#*)?)(?=[()\s;"]|$)/i); + var octalMatcher = new RegExp(/^(?:[-+]i|[-+][0-7]+#*(?:\/[0-7]+#*)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?@[-+]?[0-7]+#*(?:\/[0-7]+#*)?|[-+]?[0-7]+#*(?:\/[0-7]+#*)?[-+](?:[0-7]+#*(?:\/[0-7]+#*)?)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?)(?=[()\s;"]|$)/i); + var hexMatcher = new RegExp(/^(?:[-+]i|[-+][\da-f]+#*(?:\/[\da-f]+#*)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?@[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?[-+](?:[\da-f]+#*(?:\/[\da-f]+#*)?)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?)(?=[()\s;"]|$)/i); + var decimalMatcher = new RegExp(/^(?:[-+]i|[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)i|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)@[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)?i|(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*))(?=[()\s;"]|$)/i); + + function isBinaryNumber (stream) { + return stream.match(binaryMatcher); + } + + function isOctalNumber (stream) { + return stream.match(octalMatcher); + } + + function isDecimalNumber (stream, backup) { + if (backup === true) { + stream.backUp(1); + } + return stream.match(decimalMatcher); + } + + function isHexNumber (stream) { + return stream.match(hexMatcher); + } + + return { + startState: function () { + return { + indentStack: null, + indentation: 0, + mode: false, + sExprComment: false + }; + }, + + token: function (stream, state) { + if (state.indentStack == null && stream.sol()) { + // update indentation, but only if indentStack is empty + state.indentation = stream.indentation(); + } + + // skip spaces + if (stream.eatSpace()) { + return null; + } + var returnType = null; + + switch(state.mode){ + case "string": // multi-line string parsing mode + var next, escaped = false; + while ((next = stream.next()) != null) { + if (next == "\"" && !escaped) { + + state.mode = false; + break; + } + escaped = !escaped && next == "\\"; + } + returnType = STRING; // continue on in scheme-string mode + break; + case "comment": // comment parsing mode + var next, maybeEnd = false; + while ((next = stream.next()) != null) { + if (next == "#" && maybeEnd) { + + state.mode = false; + break; + } + maybeEnd = (next == "|"); + } + returnType = COMMENT; + break; + case "s-expr-comment": // s-expr commenting mode + state.mode = false; + if(stream.peek() == "(" || stream.peek() == "["){ + // actually start scheme s-expr commenting mode + state.sExprComment = 0; + }else{ + // if not we just comment the entire of the next token + stream.eatWhile(/[^/s]/); // eat non spaces + returnType = COMMENT; + break; + } + default: // default parsing mode + var ch = stream.next(); + + if (ch == "\"") { + state.mode = "string"; + returnType = STRING; + + } else if (ch == "'") { + returnType = ATOM; + } else if (ch == '#') { + if (stream.eat("|")) { // Multi-line comment + state.mode = "comment"; // toggle to comment mode + returnType = COMMENT; + } else if (stream.eat(/[tf]/i)) { // #t/#f (atom) + returnType = ATOM; + } else if (stream.eat(';')) { // S-Expr comment + state.mode = "s-expr-comment"; + returnType = COMMENT; + } else { + var numTest = null, hasExactness = false, hasRadix = true; + if (stream.eat(/[ei]/i)) { + hasExactness = true; + } else { + stream.backUp(1); // must be radix specifier + } + if (stream.match(/^#b/i)) { + numTest = isBinaryNumber; + } else if (stream.match(/^#o/i)) { + numTest = isOctalNumber; + } else if (stream.match(/^#x/i)) { + numTest = isHexNumber; + } else if (stream.match(/^#d/i)) { + numTest = isDecimalNumber; + } else if (stream.match(/^[-+0-9.]/, false)) { + hasRadix = false; + numTest = isDecimalNumber; + // re-consume the intial # if all matches failed + } else if (!hasExactness) { + stream.eat('#'); + } + if (numTest != null) { + if (hasRadix && !hasExactness) { + // consume optional exactness after radix + stream.match(/^#[ei]/i); + } + if (numTest(stream)) + returnType = NUMBER; + } + } + } else if (/^[-+0-9.]/.test(ch) && isDecimalNumber(stream, true)) { // match non-prefixed number, must be decimal + returnType = NUMBER; + } else if (ch == ";") { // comment + stream.skipToEnd(); // rest of the line is a comment + returnType = COMMENT; + } else if (ch == "(" || ch == "[") { + var keyWord = ''; var indentTemp = stream.column(), letter; + /** + Either + (indent-word .. + (non-indent-word .. + (;something else, bracket, etc. + */ + + while ((letter = stream.eat(/[^\s\(\[\;\)\]]/)) != null) { + keyWord += letter; + } + + if (keyWord.length > 0 && indentKeys.propertyIsEnumerable(keyWord)) { // indent-word + + pushStack(state, indentTemp + INDENT_WORD_SKIP, ch); + } else { // non-indent word + // we continue eating the spaces + stream.eatSpace(); + if (stream.eol() || stream.peek() == ";") { + // nothing significant after + // we restart indentation 1 space after + pushStack(state, indentTemp + 1, ch); + } else { + pushStack(state, indentTemp + stream.current().length, ch); // else we match + } + } + stream.backUp(stream.current().length - 1); // undo all the eating + + if(typeof state.sExprComment == "number") state.sExprComment++; + + returnType = BRACKET; + } else if (ch == ")" || ch == "]") { + returnType = BRACKET; + if (state.indentStack != null && state.indentStack.type == (ch == ")" ? "(" : "[")) { + popStack(state); + + if(typeof state.sExprComment == "number"){ + if(--state.sExprComment == 0){ + returnType = COMMENT; // final closing bracket + state.sExprComment = false; // turn off s-expr commenting mode + } + } + } + } else { + stream.eatWhile(/[\w\$_\-!$%&*+\.\/:<=>?@\^~]/); + + if (keywords && keywords.propertyIsEnumerable(stream.current())) { + returnType = BUILTIN; + } else returnType = "variable"; + } + } + return (typeof state.sExprComment == "number") ? COMMENT : returnType; + }, + + indent: function (state) { + if (state.indentStack == null) return state.indentation; + return state.indentStack.indent; + }, + + closeBrackets: {pairs: "()[]{}\"\""}, + lineComment: ";;" + }; +}); + +CodeMirror.defineMIME("text/x-scheme", "scheme"); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/shell/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/shell/index.html new file mode 100644 index 0000000..0b56300 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/shell/index.html @@ -0,0 +1,66 @@ +<!doctype html> + +<title>CodeMirror: Shell mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel=stylesheet href=../../lib/codemirror.css> +<script src=../../lib/codemirror.js></script> +<script src="../../addon/edit/matchbrackets.js"></script> +<script src=shell.js></script> +<style type=text/css> + .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;} +</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Shell</a> + </ul> +</div> + +<article> +<h2>Shell mode</h2> + + +<textarea id=code> +#!/bin/bash + +# clone the repository +git clone http://github.com/garden/tree + +# generate HTTPS credentials +cd tree +openssl genrsa -aes256 -out https.key 1024 +openssl req -new -nodes -key https.key -out https.csr +openssl x509 -req -days 365 -in https.csr -signkey https.key -out https.crt +cp https.key{,.orig} +openssl rsa -in https.key.orig -out https.key + +# start the server in HTTPS mode +cd web +sudo node ../server.js 443 'yes' >> ../node.log & + +# here is how to stop the server +for pid in `ps aux | grep 'node ../server.js' | awk '{print $2}'` ; do + sudo kill -9 $pid 2> /dev/null +done + +exit 0</textarea> + +<script> + var editor = CodeMirror.fromTextArea(document.getElementById('code'), { + mode: 'shell', + lineNumbers: true, + matchBrackets: true + }); +</script> + +<p><strong>MIME types defined:</strong> <code>text/x-sh</code>.</p> +</article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/shell/shell.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/shell/shell.js new file mode 100644 index 0000000..a684e8c --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/shell/shell.js @@ -0,0 +1,139 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode('shell', function() { + + var words = {}; + function define(style, string) { + var split = string.split(' '); + for(var i = 0; i < split.length; i++) { + words[split[i]] = style; + } + }; + + // Atoms + define('atom', 'true false'); + + // Keywords + define('keyword', 'if then do else elif while until for in esac fi fin ' + + 'fil done exit set unset export function'); + + // Commands + define('builtin', 'ab awk bash beep cat cc cd chown chmod chroot clear cp ' + + 'curl cut diff echo find gawk gcc get git grep kill killall ln ls make ' + + 'mkdir openssl mv nc node npm ping ps restart rm rmdir sed service sh ' + + 'shopt shred source sort sleep ssh start stop su sudo tee telnet top ' + + 'touch vi vim wall wc wget who write yes zsh'); + + function tokenBase(stream, state) { + if (stream.eatSpace()) return null; + + var sol = stream.sol(); + var ch = stream.next(); + + if (ch === '\\') { + stream.next(); + return null; + } + if (ch === '\'' || ch === '"' || ch === '`') { + state.tokens.unshift(tokenString(ch)); + return tokenize(stream, state); + } + if (ch === '#') { + if (sol && stream.eat('!')) { + stream.skipToEnd(); + return 'meta'; // 'comment'? + } + stream.skipToEnd(); + return 'comment'; + } + if (ch === '$') { + state.tokens.unshift(tokenDollar); + return tokenize(stream, state); + } + if (ch === '+' || ch === '=') { + return 'operator'; + } + if (ch === '-') { + stream.eat('-'); + stream.eatWhile(/\w/); + return 'attribute'; + } + if (/\d/.test(ch)) { + stream.eatWhile(/\d/); + if(stream.eol() || !/\w/.test(stream.peek())) { + return 'number'; + } + } + stream.eatWhile(/[\w-]/); + var cur = stream.current(); + if (stream.peek() === '=' && /\w+/.test(cur)) return 'def'; + return words.hasOwnProperty(cur) ? words[cur] : null; + } + + function tokenString(quote) { + return function(stream, state) { + var next, end = false, escaped = false; + while ((next = stream.next()) != null) { + if (next === quote && !escaped) { + end = true; + break; + } + if (next === '$' && !escaped && quote !== '\'') { + escaped = true; + stream.backUp(1); + state.tokens.unshift(tokenDollar); + break; + } + escaped = !escaped && next === '\\'; + } + if (end || !escaped) { + state.tokens.shift(); + } + return (quote === '`' || quote === ')' ? 'quote' : 'string'); + }; + }; + + var tokenDollar = function(stream, state) { + if (state.tokens.length > 1) stream.eat('$'); + var ch = stream.next(), hungry = /\w/; + if (ch === '{') hungry = /[^}]/; + if (ch === '(') { + state.tokens[0] = tokenString(')'); + return tokenize(stream, state); + } + if (!/\d/.test(ch)) { + stream.eatWhile(hungry); + stream.eat('}'); + } + state.tokens.shift(); + return 'def'; + }; + + function tokenize(stream, state) { + return (state.tokens[0] || tokenBase) (stream, state); + }; + + return { + startState: function() {return {tokens:[]};}, + token: function(stream, state) { + return tokenize(stream, state); + }, + lineComment: '#', + fold: "brace" + }; +}); + +CodeMirror.defineMIME('text/x-sh', 'shell'); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/shell/test.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/shell/test.js new file mode 100644 index 0000000..a413b5a --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/shell/test.js @@ -0,0 +1,58 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function() { + var mode = CodeMirror.getMode({}, "shell"); + function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); } + + MT("var", + "text [def $var] text"); + MT("varBraces", + "text[def ${var}]text"); + MT("varVar", + "text [def $a$b] text"); + MT("varBracesVarBraces", + "text[def ${a}${b}]text"); + + MT("singleQuotedVar", + "[string 'text $var text']"); + MT("singleQuotedVarBraces", + "[string 'text ${var} text']"); + + MT("doubleQuotedVar", + '[string "text ][def $var][string text"]'); + MT("doubleQuotedVarBraces", + '[string "text][def ${var}][string text"]'); + MT("doubleQuotedVarPunct", + '[string "text ][def $@][string text"]'); + MT("doubleQuotedVarVar", + '[string "][def $a$b][string "]'); + MT("doubleQuotedVarBracesVarBraces", + '[string "][def ${a}${b}][string "]'); + + MT("notAString", + "text\\'text"); + MT("escapes", + "outside\\'\\\"\\`\\\\[string \"inside\\`\\'\\\"\\\\`\\$notAVar\"]outside\\$\\(notASubShell\\)"); + + MT("subshell", + "[builtin echo] [quote $(whoami)] s log, stardate [quote `date`]."); + MT("doubleQuotedSubshell", + "[builtin echo] [string \"][quote $(whoami)][string 's log, stardate `date`.\"]"); + + MT("hashbang", + "[meta #!/bin/bash]"); + MT("comment", + "text [comment # Blurb]"); + + MT("numbers", + "[number 0] [number 1] [number 2]"); + MT("keywords", + "[keyword while] [atom true]; [keyword do]", + " [builtin sleep] [number 3]", + "[keyword done]"); + MT("options", + "[builtin ls] [attribute -l] [attribute --human-readable]"); + MT("operator", + "[def var][operator =]value"); +})(); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/sieve/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/sieve/index.html new file mode 100644 index 0000000..6f029b6 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/sieve/index.html @@ -0,0 +1,93 @@ +<!doctype html> + +<title>CodeMirror: Sieve (RFC5228) mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="sieve.js"></script> +<style>.CodeMirror {background: #f8f8f8;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Sieve (RFC5228)</a> + </ul> +</div> + +<article> +<h2>Sieve (RFC5228) mode</h2> +<form><textarea id="code" name="code"> +# +# Example Sieve Filter +# Declare any optional features or extension used by the script +# + +require ["fileinto", "reject"]; + +# +# Reject any large messages (note that the four leading dots get +# "stuffed" to three) +# +if size :over 1M +{ + reject text: +Please do not send me large attachments. +Put your file on a server and send me the URL. +Thank you. +.... Fred +. +; + stop; +} + +# +# Handle messages from known mailing lists +# Move messages from IETF filter discussion list to filter folder +# +if header :is "Sender" "owner-ietf-mta-filters@imc.org" +{ + fileinto "filter"; # move to "filter" folder +} +# +# Keep all messages to or from people in my company +# +elsif address :domain :is ["From", "To"] "example.com" +{ + keep; # keep in "In" folder +} + +# +# Try and catch unsolicited email. If a message is not to me, +# or it contains a subject known to be spam, file it away. +# +elsif anyof (not address :all :contains + ["To", "Cc", "Bcc"] "me@example.com", + header :matches "subject" + ["*make*money*fast*", "*university*dipl*mas*"]) +{ + # If message header does not contain my address, + # it's from a list. + fileinto "spam"; # move to "spam" folder +} +else +{ + # Move all other (non-company) mail to "personal" + # folder. + fileinto "personal"; +} +</textarea></form> + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), {}); + </script> + + <p><strong>MIME types defined:</strong> <code>application/sieve</code>.</p> + + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/sieve/sieve.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/sieve/sieve.js new file mode 100644 index 0000000..f67db2f --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/sieve/sieve.js @@ -0,0 +1,193 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("sieve", function(config) { + function words(str) { + var obj = {}, words = str.split(" "); + for (var i = 0; i < words.length; ++i) obj[words[i]] = true; + return obj; + } + + var keywords = words("if elsif else stop require"); + var atoms = words("true false not"); + var indentUnit = config.indentUnit; + + function tokenBase(stream, state) { + + var ch = stream.next(); + if (ch == "/" && stream.eat("*")) { + state.tokenize = tokenCComment; + return tokenCComment(stream, state); + } + + if (ch === '#') { + stream.skipToEnd(); + return "comment"; + } + + if (ch == "\"") { + state.tokenize = tokenString(ch); + return state.tokenize(stream, state); + } + + if (ch == "(") { + state._indent.push("("); + // add virtual angel wings so that editor behaves... + // ...more sane incase of broken brackets + state._indent.push("{"); + return null; + } + + if (ch === "{") { + state._indent.push("{"); + return null; + } + + if (ch == ")") { + state._indent.pop(); + state._indent.pop(); + } + + if (ch === "}") { + state._indent.pop(); + return null; + } + + if (ch == ",") + return null; + + if (ch == ";") + return null; + + + if (/[{}\(\),;]/.test(ch)) + return null; + + // 1*DIGIT "K" / "M" / "G" + if (/\d/.test(ch)) { + stream.eatWhile(/[\d]/); + stream.eat(/[KkMmGg]/); + return "number"; + } + + // ":" (ALPHA / "_") *(ALPHA / DIGIT / "_") + if (ch == ":") { + stream.eatWhile(/[a-zA-Z_]/); + stream.eatWhile(/[a-zA-Z0-9_]/); + + return "operator"; + } + + stream.eatWhile(/\w/); + var cur = stream.current(); + + // "text:" *(SP / HTAB) (hash-comment / CRLF) + // *(multiline-literal / multiline-dotstart) + // "." CRLF + if ((cur == "text") && stream.eat(":")) + { + state.tokenize = tokenMultiLineString; + return "string"; + } + + if (keywords.propertyIsEnumerable(cur)) + return "keyword"; + + if (atoms.propertyIsEnumerable(cur)) + return "atom"; + + return null; + } + + function tokenMultiLineString(stream, state) + { + state._multiLineString = true; + // the first line is special it may contain a comment + if (!stream.sol()) { + stream.eatSpace(); + + if (stream.peek() == "#") { + stream.skipToEnd(); + return "comment"; + } + + stream.skipToEnd(); + return "string"; + } + + if ((stream.next() == ".") && (stream.eol())) + { + state._multiLineString = false; + state.tokenize = tokenBase; + } + + return "string"; + } + + function tokenCComment(stream, state) { + var maybeEnd = false, ch; + while ((ch = stream.next()) != null) { + if (maybeEnd && ch == "/") { + state.tokenize = tokenBase; + break; + } + maybeEnd = (ch == "*"); + } + return "comment"; + } + + function tokenString(quote) { + return function(stream, state) { + var escaped = false, ch; + while ((ch = stream.next()) != null) { + if (ch == quote && !escaped) + break; + escaped = !escaped && ch == "\\"; + } + if (!escaped) state.tokenize = tokenBase; + return "string"; + }; + } + + return { + startState: function(base) { + return {tokenize: tokenBase, + baseIndent: base || 0, + _indent: []}; + }, + + token: function(stream, state) { + if (stream.eatSpace()) + return null; + + return (state.tokenize || tokenBase)(stream, state);; + }, + + indent: function(state, _textAfter) { + var length = state._indent.length; + if (_textAfter && (_textAfter[0] == "}")) + length--; + + if (length <0) + length = 0; + + return length * indentUnit; + }, + + electricChars: "}" + }; +}); + +CodeMirror.defineMIME("application/sieve", "sieve"); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/slim/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/slim/index.html new file mode 100644 index 0000000..7fa4e50 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/slim/index.html @@ -0,0 +1,96 @@ +<!doctype html> + +<title>CodeMirror: SLIM mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<link rel="stylesheet" href="../../theme/ambiance.css"> +<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script> +<script src="https://code.jquery.com/ui/1.11.0/jquery-ui.min.js"></script> +<link rel="stylesheet" href="https://code.jquery.com/ui/1.11.0/themes/smoothness/jquery-ui.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../xml/xml.js"></script> +<script src="../htmlembedded/htmlembedded.js"></script> +<script src="../htmlmixed/htmlmixed.js"></script> +<script src="../coffeescript/coffeescript.js"></script> +<script src="../javascript/javascript.js"></script> +<script src="../ruby/ruby.js"></script> +<script src="../markdown/markdown.js"></script> +<script src="slim.js"></script> +<style>.CodeMirror {background: #f8f8f8;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">SLIM</a> + </ul> +</div> + +<article> + <h2>SLIM mode</h2> + <form><textarea id="code" name="code"> +body + table + - for user in users + td id="user_#{user.id}" class=user.role + a href=user_action(user, :edit) Edit #{user.name} + a href=(path_to_user user) = user.name +body + h1(id="logo") = page_logo + h2[id="tagline" class="small tagline"] = page_tagline + +h2[id="tagline" + class="small tagline"] = page_tagline + +h1 id = "logo" = page_logo +h2 [ id = "tagline" ] = page_tagline + +/ comment + second line +/! html comment + second line +<!-- html comment --> +<a href="#{'hello' if set}">link</a> +a.slim href="work" disabled=false running==:atom Text <b>bold</b> +.clazz data-id="test" == 'hello' unless quark + | Text mode #{12} + Second line += x ||= :ruby_atom +#menu.left + - @env.each do |x| + li: a = x +*@dyntag attr="val" +.first *{:class => [:second, :third]} Text +.second class=["text","more"] +.third class=:text,:symbol + + </textarea></form> + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + lineNumbers: true, + theme: "ambiance", + mode: "application/x-slim" + }); + $('.CodeMirror').resizable({ + resize: function() { + editor.setSize($(this).width(), $(this).height()); + //editor.refresh(); + } + }); + </script> + + <p><strong>MIME types defined:</strong> <code>application/x-slim</code>.</p> + + <p> + <strong>Parsing/Highlighting Tests:</strong> + <a href="../../test/index.html#slim_*">normal</a>, + <a href="../../test/index.html#verbose,slim_*">verbose</a>. + </p> +</article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/slim/slim.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/slim/slim.js new file mode 100644 index 0000000..991a97e --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/slim/slim.js @@ -0,0 +1,575 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +// Slim Highlighting for CodeMirror copyright (c) HicknHack Software Gmbh + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed"), require("../ruby/ruby")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror", "../htmlmixed/htmlmixed", "../ruby/ruby"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + + CodeMirror.defineMode("slim", function(config) { + var htmlMode = CodeMirror.getMode(config, {name: "htmlmixed"}); + var rubyMode = CodeMirror.getMode(config, "ruby"); + var modes = { html: htmlMode, ruby: rubyMode }; + var embedded = { + ruby: "ruby", + javascript: "javascript", + css: "text/css", + sass: "text/x-sass", + scss: "text/x-scss", + less: "text/x-less", + styl: "text/x-styl", // no highlighting so far + coffee: "coffeescript", + asciidoc: "text/x-asciidoc", + markdown: "text/x-markdown", + textile: "text/x-textile", // no highlighting so far + creole: "text/x-creole", // no highlighting so far + wiki: "text/x-wiki", // no highlighting so far + mediawiki: "text/x-mediawiki", // no highlighting so far + rdoc: "text/x-rdoc", // no highlighting so far + builder: "text/x-builder", // no highlighting so far + nokogiri: "text/x-nokogiri", // no highlighting so far + erb: "application/x-erb" + }; + var embeddedRegexp = function(map){ + var arr = []; + for(var key in map) arr.push(key); + return new RegExp("^("+arr.join('|')+"):"); + }(embedded); + + var styleMap = { + "commentLine": "comment", + "slimSwitch": "operator special", + "slimTag": "tag", + "slimId": "attribute def", + "slimClass": "attribute qualifier", + "slimAttribute": "attribute", + "slimSubmode": "keyword special", + "closeAttributeTag": null, + "slimDoctype": null, + "lineContinuation": null + }; + var closing = { + "{": "}", + "[": "]", + "(": ")" + }; + + var nameStartChar = "_a-zA-Z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD"; + var nameChar = nameStartChar + "\\-0-9\xB7\u0300-\u036F\u203F-\u2040"; + var nameRegexp = new RegExp("^[:"+nameStartChar+"](?::["+nameChar+"]|["+nameChar+"]*)"); + var attributeNameRegexp = new RegExp("^[:"+nameStartChar+"][:\\."+nameChar+"]*(?=\\s*=)"); + var wrappedAttributeNameRegexp = new RegExp("^[:"+nameStartChar+"][:\\."+nameChar+"]*"); + var classNameRegexp = /^\.-?[_a-zA-Z]+[\w\-]*/; + var classIdRegexp = /^#[_a-zA-Z]+[\w\-]*/; + + function backup(pos, tokenize, style) { + var restore = function(stream, state) { + state.tokenize = tokenize; + if (stream.pos < pos) { + stream.pos = pos; + return style; + } + return state.tokenize(stream, state); + }; + return function(stream, state) { + state.tokenize = restore; + return tokenize(stream, state); + }; + } + + function maybeBackup(stream, state, pat, offset, style) { + var cur = stream.current(); + var idx = cur.search(pat); + if (idx > -1) { + state.tokenize = backup(stream.pos, state.tokenize, style); + stream.backUp(cur.length - idx - offset); + } + return style; + } + + function continueLine(state, column) { + state.stack = { + parent: state.stack, + style: "continuation", + indented: column, + tokenize: state.line + }; + state.line = state.tokenize; + } + function finishContinue(state) { + if (state.line == state.tokenize) { + state.line = state.stack.tokenize; + state.stack = state.stack.parent; + } + } + + function lineContinuable(column, tokenize) { + return function(stream, state) { + finishContinue(state); + if (stream.match(/^\\$/)) { + continueLine(state, column); + return "lineContinuation"; + } + var style = tokenize(stream, state); + if (stream.eol() && stream.current().match(/(?:^|[^\\])(?:\\\\)*\\$/)) { + stream.backUp(1); + } + return style; + }; + } + function commaContinuable(column, tokenize) { + return function(stream, state) { + finishContinue(state); + var style = tokenize(stream, state); + if (stream.eol() && stream.current().match(/,$/)) { + continueLine(state, column); + } + return style; + }; + } + + function rubyInQuote(endQuote, tokenize) { + // TODO: add multi line support + return function(stream, state) { + var ch = stream.peek(); + if (ch == endQuote && state.rubyState.tokenize.length == 1) { + // step out of ruby context as it seems to complete processing all the braces + stream.next(); + state.tokenize = tokenize; + return "closeAttributeTag"; + } else { + return ruby(stream, state); + } + }; + } + function startRubySplat(tokenize) { + var rubyState; + var runSplat = function(stream, state) { + if (state.rubyState.tokenize.length == 1 && !state.rubyState.context.prev) { + stream.backUp(1); + if (stream.eatSpace()) { + state.rubyState = rubyState; + state.tokenize = tokenize; + return tokenize(stream, state); + } + stream.next(); + } + return ruby(stream, state); + }; + return function(stream, state) { + rubyState = state.rubyState; + state.rubyState = CodeMirror.startState(rubyMode); + state.tokenize = runSplat; + return ruby(stream, state); + }; + } + + function ruby(stream, state) { + return rubyMode.token(stream, state.rubyState); + } + + function htmlLine(stream, state) { + if (stream.match(/^\\$/)) { + return "lineContinuation"; + } + return html(stream, state); + } + function html(stream, state) { + if (stream.match(/^#\{/)) { + state.tokenize = rubyInQuote("}", state.tokenize); + return null; + } + return maybeBackup(stream, state, /[^\\]#\{/, 1, htmlMode.token(stream, state.htmlState)); + } + + function startHtmlLine(lastTokenize) { + return function(stream, state) { + var style = htmlLine(stream, state); + if (stream.eol()) state.tokenize = lastTokenize; + return style; + }; + } + + function startHtmlMode(stream, state, offset) { + state.stack = { + parent: state.stack, + style: "html", + indented: stream.column() + offset, // pipe + space + tokenize: state.line + }; + state.line = state.tokenize = html; + return null; + } + + function comment(stream, state) { + stream.skipToEnd(); + return state.stack.style; + } + + function commentMode(stream, state) { + state.stack = { + parent: state.stack, + style: "comment", + indented: state.indented + 1, + tokenize: state.line + }; + state.line = comment; + return comment(stream, state); + } + + function attributeWrapper(stream, state) { + if (stream.eat(state.stack.endQuote)) { + state.line = state.stack.line; + state.tokenize = state.stack.tokenize; + state.stack = state.stack.parent; + return null; + } + if (stream.match(wrappedAttributeNameRegexp)) { + state.tokenize = attributeWrapperAssign; + return "slimAttribute"; + } + stream.next(); + return null; + } + function attributeWrapperAssign(stream, state) { + if (stream.match(/^==?/)) { + state.tokenize = attributeWrapperValue; + return null; + } + return attributeWrapper(stream, state); + } + function attributeWrapperValue(stream, state) { + var ch = stream.peek(); + if (ch == '"' || ch == "\'") { + state.tokenize = readQuoted(ch, "string", true, false, attributeWrapper); + stream.next(); + return state.tokenize(stream, state); + } + if (ch == '[') { + return startRubySplat(attributeWrapper)(stream, state); + } + if (stream.match(/^(true|false|nil)\b/)) { + state.tokenize = attributeWrapper; + return "keyword"; + } + return startRubySplat(attributeWrapper)(stream, state); + } + + function startAttributeWrapperMode(state, endQuote, tokenize) { + state.stack = { + parent: state.stack, + style: "wrapper", + indented: state.indented + 1, + tokenize: tokenize, + line: state.line, + endQuote: endQuote + }; + state.line = state.tokenize = attributeWrapper; + return null; + } + + function sub(stream, state) { + if (stream.match(/^#\{/)) { + state.tokenize = rubyInQuote("}", state.tokenize); + return null; + } + var subStream = new CodeMirror.StringStream(stream.string.slice(state.stack.indented), stream.tabSize); + subStream.pos = stream.pos - state.stack.indented; + subStream.start = stream.start - state.stack.indented; + subStream.lastColumnPos = stream.lastColumnPos - state.stack.indented; + subStream.lastColumnValue = stream.lastColumnValue - state.stack.indented; + var style = state.subMode.token(subStream, state.subState); + stream.pos = subStream.pos + state.stack.indented; + return style; + } + function firstSub(stream, state) { + state.stack.indented = stream.column(); + state.line = state.tokenize = sub; + return state.tokenize(stream, state); + } + + function createMode(mode) { + var query = embedded[mode]; + var spec = CodeMirror.mimeModes[query]; + if (spec) { + return CodeMirror.getMode(config, spec); + } + var factory = CodeMirror.modes[query]; + if (factory) { + return factory(config, {name: query}); + } + return CodeMirror.getMode(config, "null"); + } + + function getMode(mode) { + if (!modes.hasOwnProperty(mode)) { + return modes[mode] = createMode(mode); + } + return modes[mode]; + } + + function startSubMode(mode, state) { + var subMode = getMode(mode); + var subState = CodeMirror.startState(subMode); + + state.subMode = subMode; + state.subState = subState; + + state.stack = { + parent: state.stack, + style: "sub", + indented: state.indented + 1, + tokenize: state.line + }; + state.line = state.tokenize = firstSub; + return "slimSubmode"; + } + + function doctypeLine(stream, _state) { + stream.skipToEnd(); + return "slimDoctype"; + } + + function startLine(stream, state) { + var ch = stream.peek(); + if (ch == '<') { + return (state.tokenize = startHtmlLine(state.tokenize))(stream, state); + } + if (stream.match(/^[|']/)) { + return startHtmlMode(stream, state, 1); + } + if (stream.match(/^\/(!|\[\w+])?/)) { + return commentMode(stream, state); + } + if (stream.match(/^(-|==?[<>]?)/)) { + state.tokenize = lineContinuable(stream.column(), commaContinuable(stream.column(), ruby)); + return "slimSwitch"; + } + if (stream.match(/^doctype\b/)) { + state.tokenize = doctypeLine; + return "keyword"; + } + + var m = stream.match(embeddedRegexp); + if (m) { + return startSubMode(m[1], state); + } + + return slimTag(stream, state); + } + + function slim(stream, state) { + if (state.startOfLine) { + return startLine(stream, state); + } + return slimTag(stream, state); + } + + function slimTag(stream, state) { + if (stream.eat('*')) { + state.tokenize = startRubySplat(slimTagExtras); + return null; + } + if (stream.match(nameRegexp)) { + state.tokenize = slimTagExtras; + return "slimTag"; + } + return slimClass(stream, state); + } + function slimTagExtras(stream, state) { + if (stream.match(/^(<>?|><?)/)) { + state.tokenize = slimClass; + return null; + } + return slimClass(stream, state); + } + function slimClass(stream, state) { + if (stream.match(classIdRegexp)) { + state.tokenize = slimClass; + return "slimId"; + } + if (stream.match(classNameRegexp)) { + state.tokenize = slimClass; + return "slimClass"; + } + return slimAttribute(stream, state); + } + function slimAttribute(stream, state) { + if (stream.match(/^([\[\{\(])/)) { + return startAttributeWrapperMode(state, closing[RegExp.$1], slimAttribute); + } + if (stream.match(attributeNameRegexp)) { + state.tokenize = slimAttributeAssign; + return "slimAttribute"; + } + if (stream.peek() == '*') { + stream.next(); + state.tokenize = startRubySplat(slimContent); + return null; + } + return slimContent(stream, state); + } + function slimAttributeAssign(stream, state) { + if (stream.match(/^==?/)) { + state.tokenize = slimAttributeValue; + return null; + } + // should never happen, because of forward lookup + return slimAttribute(stream, state); + } + + function slimAttributeValue(stream, state) { + var ch = stream.peek(); + if (ch == '"' || ch == "\'") { + state.tokenize = readQuoted(ch, "string", true, false, slimAttribute); + stream.next(); + return state.tokenize(stream, state); + } + if (ch == '[') { + return startRubySplat(slimAttribute)(stream, state); + } + if (ch == ':') { + return startRubySplat(slimAttributeSymbols)(stream, state); + } + if (stream.match(/^(true|false|nil)\b/)) { + state.tokenize = slimAttribute; + return "keyword"; + } + return startRubySplat(slimAttribute)(stream, state); + } + function slimAttributeSymbols(stream, state) { + stream.backUp(1); + if (stream.match(/^[^\s],(?=:)/)) { + state.tokenize = startRubySplat(slimAttributeSymbols); + return null; + } + stream.next(); + return slimAttribute(stream, state); + } + function readQuoted(quote, style, embed, unescaped, nextTokenize) { + return function(stream, state) { + finishContinue(state); + var fresh = stream.current().length == 0; + if (stream.match(/^\\$/, fresh)) { + if (!fresh) return style; + continueLine(state, state.indented); + return "lineContinuation"; + } + if (stream.match(/^#\{/, fresh)) { + if (!fresh) return style; + state.tokenize = rubyInQuote("}", state.tokenize); + return null; + } + var escaped = false, ch; + while ((ch = stream.next()) != null) { + if (ch == quote && (unescaped || !escaped)) { + state.tokenize = nextTokenize; + break; + } + if (embed && ch == "#" && !escaped) { + if (stream.eat("{")) { + stream.backUp(2); + break; + } + } + escaped = !escaped && ch == "\\"; + } + if (stream.eol() && escaped) { + stream.backUp(1); + } + return style; + }; + } + function slimContent(stream, state) { + if (stream.match(/^==?/)) { + state.tokenize = ruby; + return "slimSwitch"; + } + if (stream.match(/^\/$/)) { // tag close hint + state.tokenize = slim; + return null; + } + if (stream.match(/^:/)) { // inline tag + state.tokenize = slimTag; + return "slimSwitch"; + } + startHtmlMode(stream, state, 0); + return state.tokenize(stream, state); + } + + var mode = { + // default to html mode + startState: function() { + var htmlState = CodeMirror.startState(htmlMode); + var rubyState = CodeMirror.startState(rubyMode); + return { + htmlState: htmlState, + rubyState: rubyState, + stack: null, + last: null, + tokenize: slim, + line: slim, + indented: 0 + }; + }, + + copyState: function(state) { + return { + htmlState : CodeMirror.copyState(htmlMode, state.htmlState), + rubyState: CodeMirror.copyState(rubyMode, state.rubyState), + subMode: state.subMode, + subState: state.subMode && CodeMirror.copyState(state.subMode, state.subState), + stack: state.stack, + last: state.last, + tokenize: state.tokenize, + line: state.line + }; + }, + + token: function(stream, state) { + if (stream.sol()) { + state.indented = stream.indentation(); + state.startOfLine = true; + state.tokenize = state.line; + while (state.stack && state.stack.indented > state.indented && state.last != "slimSubmode") { + state.line = state.tokenize = state.stack.tokenize; + state.stack = state.stack.parent; + state.subMode = null; + state.subState = null; + } + } + if (stream.eatSpace()) return null; + var style = state.tokenize(stream, state); + state.startOfLine = false; + if (style) state.last = style; + return styleMap.hasOwnProperty(style) ? styleMap[style] : style; + }, + + blankLine: function(state) { + if (state.subMode && state.subMode.blankLine) { + return state.subMode.blankLine(state.subState); + } + }, + + innerMode: function(state) { + if (state.subMode) return {state: state.subState, mode: state.subMode}; + return {state: state, mode: mode}; + } + + //indent: function(state) { + // return state.indented; + //} + }; + return mode; + }, "htmlmixed", "ruby"); + + CodeMirror.defineMIME("text/x-slim", "slim"); + CodeMirror.defineMIME("application/x-slim", "slim"); +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/slim/test.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/slim/test.js new file mode 100644 index 0000000..be4ddac --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/slim/test.js @@ -0,0 +1,96 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +// Slim Highlighting for CodeMirror copyright (c) HicknHack Software Gmbh + +(function() { + var mode = CodeMirror.getMode({tabSize: 4, indentUnit: 2}, "slim"); + function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); } + + // Requires at least one media query + MT("elementName", + "[tag h1] Hey There"); + + MT("oneElementPerLine", + "[tag h1] Hey There .h2"); + + MT("idShortcut", + "[attribute&def #test] Hey There"); + + MT("tagWithIdShortcuts", + "[tag h1][attribute&def #test] Hey There"); + + MT("classShortcut", + "[attribute&qualifier .hello] Hey There"); + + MT("tagWithIdAndClassShortcuts", + "[tag h1][attribute&def #test][attribute&qualifier .hello] Hey There"); + + MT("docType", + "[keyword doctype] xml"); + + MT("comment", + "[comment / Hello WORLD]"); + + MT("notComment", + "[tag h1] This is not a / comment "); + + MT("attributes", + "[tag a]([attribute title]=[string \"test\"]) [attribute href]=[string \"link\"]}"); + + MT("multiLineAttributes", + "[tag a]([attribute title]=[string \"test\"]", + " ) [attribute href]=[string \"link\"]}"); + + MT("htmlCode", + "[tag&bracket <][tag h1][tag&bracket >]Title[tag&bracket </][tag h1][tag&bracket >]"); + + MT("rubyBlock", + "[operator&special =][variable-2 @item]"); + + MT("selectorRubyBlock", + "[tag a][attribute&qualifier .test][operator&special =] [variable-2 @item]"); + + MT("nestedRubyBlock", + "[tag a]", + " [operator&special =][variable puts] [string \"test\"]"); + + MT("multilinePlaintext", + "[tag p]", + " | Hello,", + " World"); + + MT("multilineRuby", + "[tag p]", + " [comment /# this is a comment]", + " [comment and this is a comment too]", + " | Date/Time", + " [operator&special -] [variable now] [operator =] [tag DateTime][operator .][property now]", + " [tag strong][operator&special =] [variable now]", + " [operator&special -] [keyword if] [variable now] [operator >] [tag DateTime][operator .][property parse]([string \"December 31, 2006\"])", + " [operator&special =][string \"Happy\"]", + " [operator&special =][string \"Belated\"]", + " [operator&special =][string \"Birthday\"]"); + + MT("multilineComment", + "[comment /]", + " [comment Multiline]", + " [comment Comment]"); + + MT("hamlAfterRubyTag", + "[attribute&qualifier .block]", + " [tag strong][operator&special =] [variable now]", + " [attribute&qualifier .test]", + " [operator&special =][variable now]", + " [attribute&qualifier .right]"); + + MT("stretchedRuby", + "[operator&special =] [variable puts] [string \"Hello\"],", + " [string \"World\"]"); + + MT("interpolationInHashAttribute", + "[tag div]{[attribute id] = [string \"]#{[variable test]}[string _]#{[variable ting]}[string \"]} test"); + + MT("interpolationInHTMLAttribute", + "[tag div]([attribute title]=[string \"]#{[variable test]}[string _]#{[variable ting]()}[string \"]) Test"); +})(); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/smalltalk/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/smalltalk/index.html new file mode 100644 index 0000000..2155ebc --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/smalltalk/index.html @@ -0,0 +1,68 @@ +<!doctype html> + +<title>CodeMirror: Smalltalk mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../../addon/edit/matchbrackets.js"></script> +<script src="smalltalk.js"></script> +<style> + .CodeMirror {border: 2px solid #dee; border-right-width: 10px;} + .CodeMirror-gutter {border: none; background: #dee;} + .CodeMirror-gutter pre {color: white; font-weight: bold;} + </style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Smalltalk</a> + </ul> +</div> + +<article> +<h2>Smalltalk mode</h2> +<form><textarea id="code" name="code"> +" + This is a test of the Smalltalk code +" +Seaside.WAComponent subclass: #MyCounter [ + | count | + MyCounter class >> canBeRoot [ ^true ] + + initialize [ + super initialize. + count := 0. + ] + states [ ^{ self } ] + renderContentOn: html [ + html heading: count. + html anchor callback: [ count := count + 1 ]; with: '++'. + html space. + html anchor callback: [ count := count - 1 ]; with: '--'. + ] +] + +MyCounter registerAsApplication: 'mycounter' +</textarea></form> + + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + lineNumbers: true, + matchBrackets: true, + mode: "text/x-stsrc", + indentUnit: 4 + }); + </script> + + <p>Simple Smalltalk mode.</p> + + <p><strong>MIME types defined:</strong> <code>text/x-stsrc</code>.</p> + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/smalltalk/smalltalk.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/smalltalk/smalltalk.js new file mode 100644 index 0000000..bb510ba --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/smalltalk/smalltalk.js @@ -0,0 +1,168 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode('smalltalk', function(config) { + + var specialChars = /[+\-\/\\*~<>=@%|&?!.,:;^]/; + var keywords = /true|false|nil|self|super|thisContext/; + + var Context = function(tokenizer, parent) { + this.next = tokenizer; + this.parent = parent; + }; + + var Token = function(name, context, eos) { + this.name = name; + this.context = context; + this.eos = eos; + }; + + var State = function() { + this.context = new Context(next, null); + this.expectVariable = true; + this.indentation = 0; + this.userIndentationDelta = 0; + }; + + State.prototype.userIndent = function(indentation) { + this.userIndentationDelta = indentation > 0 ? (indentation / config.indentUnit - this.indentation) : 0; + }; + + var next = function(stream, context, state) { + var token = new Token(null, context, false); + var aChar = stream.next(); + + if (aChar === '"') { + token = nextComment(stream, new Context(nextComment, context)); + + } else if (aChar === '\'') { + token = nextString(stream, new Context(nextString, context)); + + } else if (aChar === '#') { + if (stream.peek() === '\'') { + stream.next(); + token = nextSymbol(stream, new Context(nextSymbol, context)); + } else { + if (stream.eatWhile(/[^\s.{}\[\]()]/)) + token.name = 'string-2'; + else + token.name = 'meta'; + } + + } else if (aChar === '$') { + if (stream.next() === '<') { + stream.eatWhile(/[^\s>]/); + stream.next(); + } + token.name = 'string-2'; + + } else if (aChar === '|' && state.expectVariable) { + token.context = new Context(nextTemporaries, context); + + } else if (/[\[\]{}()]/.test(aChar)) { + token.name = 'bracket'; + token.eos = /[\[{(]/.test(aChar); + + if (aChar === '[') { + state.indentation++; + } else if (aChar === ']') { + state.indentation = Math.max(0, state.indentation - 1); + } + + } else if (specialChars.test(aChar)) { + stream.eatWhile(specialChars); + token.name = 'operator'; + token.eos = aChar !== ';'; // ; cascaded message expression + + } else if (/\d/.test(aChar)) { + stream.eatWhile(/[\w\d]/); + token.name = 'number'; + + } else if (/[\w_]/.test(aChar)) { + stream.eatWhile(/[\w\d_]/); + token.name = state.expectVariable ? (keywords.test(stream.current()) ? 'keyword' : 'variable') : null; + + } else { + token.eos = state.expectVariable; + } + + return token; + }; + + var nextComment = function(stream, context) { + stream.eatWhile(/[^"]/); + return new Token('comment', stream.eat('"') ? context.parent : context, true); + }; + + var nextString = function(stream, context) { + stream.eatWhile(/[^']/); + return new Token('string', stream.eat('\'') ? context.parent : context, false); + }; + + var nextSymbol = function(stream, context) { + stream.eatWhile(/[^']/); + return new Token('string-2', stream.eat('\'') ? context.parent : context, false); + }; + + var nextTemporaries = function(stream, context) { + var token = new Token(null, context, false); + var aChar = stream.next(); + + if (aChar === '|') { + token.context = context.parent; + token.eos = true; + + } else { + stream.eatWhile(/[^|]/); + token.name = 'variable'; + } + + return token; + }; + + return { + startState: function() { + return new State; + }, + + token: function(stream, state) { + state.userIndent(stream.indentation()); + + if (stream.eatSpace()) { + return null; + } + + var token = state.context.next(stream, state.context, state); + state.context = token.context; + state.expectVariable = token.eos; + + return token.name; + }, + + blankLine: function(state) { + state.userIndent(0); + }, + + indent: function(state, textAfter) { + var i = state.context.next === next && textAfter && textAfter.charAt(0) === ']' ? -1 : state.userIndentationDelta; + return (state.indentation + i) * config.indentUnit; + }, + + electricChars: ']' + }; + +}); + +CodeMirror.defineMIME('text/x-stsrc', {name: 'smalltalk'}); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/smarty/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/smarty/index.html new file mode 100644 index 0000000..b19c8f0 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/smarty/index.html @@ -0,0 +1,138 @@ +<!doctype html> + +<title>CodeMirror: Smarty mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../xml/xml.js"></script> +<script src="smarty.js"></script> +<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Smarty</a> + </ul> +</div> + +<article> +<h2>Smarty mode</h2> +<form><textarea id="code" name="code"> +{extends file="parent.tpl"} +{include file="template.tpl"} + +{* some example Smarty content *} +{if isset($name) && $name == 'Blog'} + This is a {$var}. + {$integer = 451}, {$array[] = "a"}, {$stringvar = "string"} + {assign var='bob' value=$var.prop} +{elseif $name == $foo} + {function name=menu level=0} + {foreach $data as $entry} + {if is_array($entry)} + - {$entry@key} + {menu data=$entry level=$level+1} + {else} + {$entry} + {/if} + {/foreach} + {/function} +{/if}</textarea></form> + +<p>Mode for Smarty version 2 or 3, which allows for custom delimiter tags.</p> + +<p>Several configuration parameters are supported:</p> + +<ul> + <li><code>leftDelimiter</code> and <code>rightDelimiter</code>, + which should be strings that determine where the Smarty syntax + starts and ends.</li> + <li><code>version</code>, which should be 2 or 3.</li> + <li><code>baseMode</code>, which can be a mode spec + like <code>"text/html"</code> to set a different background mode.</li> +</ul> + +<p><strong>MIME types defined:</strong> <code>text/x-smarty</code></p> + +<h3>Smarty 2, custom delimiters</h3> + +<form><textarea id="code2" name="code2"> +{--extends file="parent.tpl"--} +{--include file="template.tpl"--} + +{--* some example Smarty content *--} +{--if isset($name) && $name == 'Blog'--} + This is a {--$var--}. + {--$integer = 451--}, {--$array[] = "a"--}, {--$stringvar = "string"--} + {--assign var='bob' value=$var.prop--} +{--elseif $name == $foo--} + {--function name=menu level=0--} + {--foreach $data as $entry--} + {--if is_array($entry)--} + - {--$entry@key--} + {--menu data=$entry level=$level+1--} + {--else--} + {--$entry--} + {--/if--} + {--/foreach--} + {--/function--} +{--/if--}</textarea></form> + +<h3>Smarty 3</h3> + +<textarea id="code3" name="code3"> +Nested tags {$foo={counter one=1 two={inception}}+3} are now valid in Smarty 3. + +<script> +function test() { + console.log("Smarty 3 permits single curly braces followed by whitespace to NOT slip into Smarty mode."); +} +</script> + +{assign var=foo value=[1,2,3]} +{assign var=foo value=['y'=>'yellow','b'=>'blue']} +{assign var=foo value=[1,[9,8],3]} + +{$foo=$bar+2} {* a comment *} +{$foo.bar=1} {* another comment *} +{$foo = myfunct(($x+$y)*3)} +{$foo = strlen($bar)} +{$foo.bar.baz=1}, {$foo[]=1} + +Smarty "dot" syntax (note: embedded {} are used to address ambiguities): + +{$foo.a.b.c} => $foo['a']['b']['c'] +{$foo.a.$b.c} => $foo['a'][$b]['c'] +{$foo.a.{$b+4}.c} => $foo['a'][$b+4]['c'] +{$foo.a.{$b.c}} => $foo['a'][$b['c']] + +{$object->method1($x)->method2($y)}</textarea> + +<script> +var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + lineNumbers: true, + mode: "smarty" +}); +var editor = CodeMirror.fromTextArea(document.getElementById("code2"), { + lineNumbers: true, + mode: { + name: "smarty", + leftDelimiter: "{--", + rightDelimiter: "--}" + } +}); +var editor = CodeMirror.fromTextArea(document.getElementById("code3"), { + lineNumbers: true, + mode: {name: "smarty", version: 3, baseMode: "text/html"} +}); +</script> + +</article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/smarty/smarty.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/smarty/smarty.js new file mode 100644 index 0000000..6e0fbed --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/smarty/smarty.js @@ -0,0 +1,225 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +/** + * Smarty 2 and 3 mode. + */ + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { + "use strict"; + + CodeMirror.defineMode("smarty", function(config, parserConf) { + var rightDelimiter = parserConf.rightDelimiter || "}"; + var leftDelimiter = parserConf.leftDelimiter || "{"; + var version = parserConf.version || 2; + var baseMode = CodeMirror.getMode(config, parserConf.baseMode || "null"); + + var keyFunctions = ["debug", "extends", "function", "include", "literal"]; + var regs = { + operatorChars: /[+\-*&%=<>!?]/, + validIdentifier: /[a-zA-Z0-9_]/, + stringChar: /['"]/ + }; + + var last; + function cont(style, lastType) { + last = lastType; + return style; + } + + function chain(stream, state, parser) { + state.tokenize = parser; + return parser(stream, state); + } + + // Smarty 3 allows { and } surrounded by whitespace to NOT slip into Smarty mode + function doesNotCount(stream, pos) { + if (pos == null) pos = stream.pos; + return version === 3 && leftDelimiter == "{" && + (pos == stream.string.length || /\s/.test(stream.string.charAt(pos))); + } + + function tokenTop(stream, state) { + var string = stream.string; + for (var scan = stream.pos;;) { + var nextMatch = string.indexOf(leftDelimiter, scan); + scan = nextMatch + leftDelimiter.length; + if (nextMatch == -1 || !doesNotCount(stream, nextMatch + leftDelimiter.length)) break; + } + if (nextMatch == stream.pos) { + stream.match(leftDelimiter); + if (stream.eat("*")) { + return chain(stream, state, tokenBlock("comment", "*" + rightDelimiter)); + } else { + state.depth++; + state.tokenize = tokenSmarty; + last = "startTag"; + return "tag"; + } + } + + if (nextMatch > -1) stream.string = string.slice(0, nextMatch); + var token = baseMode.token(stream, state.base); + if (nextMatch > -1) stream.string = string; + return token; + } + + // parsing Smarty content + function tokenSmarty(stream, state) { + if (stream.match(rightDelimiter, true)) { + if (version === 3) { + state.depth--; + if (state.depth <= 0) { + state.tokenize = tokenTop; + } + } else { + state.tokenize = tokenTop; + } + return cont("tag", null); + } + + if (stream.match(leftDelimiter, true)) { + state.depth++; + return cont("tag", "startTag"); + } + + var ch = stream.next(); + if (ch == "$") { + stream.eatWhile(regs.validIdentifier); + return cont("variable-2", "variable"); + } else if (ch == "|") { + return cont("operator", "pipe"); + } else if (ch == ".") { + return cont("operator", "property"); + } else if (regs.stringChar.test(ch)) { + state.tokenize = tokenAttribute(ch); + return cont("string", "string"); + } else if (regs.operatorChars.test(ch)) { + stream.eatWhile(regs.operatorChars); + return cont("operator", "operator"); + } else if (ch == "[" || ch == "]") { + return cont("bracket", "bracket"); + } else if (ch == "(" || ch == ")") { + return cont("bracket", "operator"); + } else if (/\d/.test(ch)) { + stream.eatWhile(/\d/); + return cont("number", "number"); + } else { + + if (state.last == "variable") { + if (ch == "@") { + stream.eatWhile(regs.validIdentifier); + return cont("property", "property"); + } else if (ch == "|") { + stream.eatWhile(regs.validIdentifier); + return cont("qualifier", "modifier"); + } + } else if (state.last == "pipe") { + stream.eatWhile(regs.validIdentifier); + return cont("qualifier", "modifier"); + } else if (state.last == "whitespace") { + stream.eatWhile(regs.validIdentifier); + return cont("attribute", "modifier"); + } if (state.last == "property") { + stream.eatWhile(regs.validIdentifier); + return cont("property", null); + } else if (/\s/.test(ch)) { + last = "whitespace"; + return null; + } + + var str = ""; + if (ch != "/") { + str += ch; + } + var c = null; + while (c = stream.eat(regs.validIdentifier)) { + str += c; + } + for (var i=0, j=keyFunctions.length; i<j; i++) { + if (keyFunctions[i] == str) { + return cont("keyword", "keyword"); + } + } + if (/\s/.test(ch)) { + return null; + } + return cont("tag", "tag"); + } + } + + function tokenAttribute(quote) { + return function(stream, state) { + var prevChar = null; + var currChar = null; + while (!stream.eol()) { + currChar = stream.peek(); + if (stream.next() == quote && prevChar !== '\\') { + state.tokenize = tokenSmarty; + break; + } + prevChar = currChar; + } + return "string"; + }; + } + + function tokenBlock(style, terminator) { + return function(stream, state) { + while (!stream.eol()) { + if (stream.match(terminator)) { + state.tokenize = tokenTop; + break; + } + stream.next(); + } + return style; + }; + } + + return { + startState: function() { + return { + base: CodeMirror.startState(baseMode), + tokenize: tokenTop, + last: null, + depth: 0 + }; + }, + copyState: function(state) { + return { + base: CodeMirror.copyState(baseMode, state.base), + tokenize: state.tokenize, + last: state.last, + depth: state.depth + }; + }, + innerMode: function(state) { + if (state.tokenize == tokenTop) + return {mode: baseMode, state: state.base}; + }, + token: function(stream, state) { + var style = state.tokenize(stream, state); + state.last = last; + return style; + }, + indent: function(state, text) { + if (state.tokenize == tokenTop && baseMode.indent) + return baseMode.indent(state.base, text); + else + return CodeMirror.Pass; + }, + blockCommentStart: leftDelimiter + "*", + blockCommentEnd: "*" + rightDelimiter + }; + }); + + CodeMirror.defineMIME("text/x-smarty", "smarty"); +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/solr/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/solr/index.html new file mode 100644 index 0000000..4b18c25 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/solr/index.html @@ -0,0 +1,57 @@ +<!doctype html> + +<title>CodeMirror: Solr mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="solr.js"></script> +<style type="text/css"> + .CodeMirror { + border-top: 1px solid black; + border-bottom: 1px solid black; + } + + .CodeMirror .cm-operator { + color: orange; + } +</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Solr</a> + </ul> +</div> + +<article> + <h2>Solr mode</h2> + + <div> + <textarea id="code" name="code">author:Camus + +title:"The Rebel" and author:Camus + +philosophy:Existentialism -author:Kierkegaard + +hardToSpell:Dostoevsky~ + +published:[194* TO 1960] and author:(Sartre or "Simone de Beauvoir")</textarea> + </div> + + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + mode: 'solr', + lineNumbers: true + }); + </script> + + <p><strong>MIME types defined:</strong> <code>text/x-solr</code>.</p> +</article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/solr/solr.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/solr/solr.js new file mode 100644 index 0000000..f7f7087 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/solr/solr.js @@ -0,0 +1,104 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("solr", function() { + "use strict"; + + var isStringChar = /[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\^\"\\]/; + var isOperatorChar = /[\|\!\+\-\*\?\~\^\&]/; + var isOperatorString = /^(OR|AND|NOT|TO)$/i; + + function isNumber(word) { + return parseFloat(word, 10).toString() === word; + } + + function tokenString(quote) { + return function(stream, state) { + var escaped = false, next; + while ((next = stream.next()) != null) { + if (next == quote && !escaped) break; + escaped = !escaped && next == "\\"; + } + + if (!escaped) state.tokenize = tokenBase; + return "string"; + }; + } + + function tokenOperator(operator) { + return function(stream, state) { + var style = "operator"; + if (operator == "+") + style += " positive"; + else if (operator == "-") + style += " negative"; + else if (operator == "|") + stream.eat(/\|/); + else if (operator == "&") + stream.eat(/\&/); + else if (operator == "^") + style += " boost"; + + state.tokenize = tokenBase; + return style; + }; + } + + function tokenWord(ch) { + return function(stream, state) { + var word = ch; + while ((ch = stream.peek()) && ch.match(isStringChar) != null) { + word += stream.next(); + } + + state.tokenize = tokenBase; + if (isOperatorString.test(word)) + return "operator"; + else if (isNumber(word)) + return "number"; + else if (stream.peek() == ":") + return "field"; + else + return "string"; + }; + } + + function tokenBase(stream, state) { + var ch = stream.next(); + if (ch == '"') + state.tokenize = tokenString(ch); + else if (isOperatorChar.test(ch)) + state.tokenize = tokenOperator(ch); + else if (isStringChar.test(ch)) + state.tokenize = tokenWord(ch); + + return (state.tokenize != tokenBase) ? state.tokenize(stream, state) : null; + } + + return { + startState: function() { + return { + tokenize: tokenBase + }; + }, + + token: function(stream, state) { + if (stream.eatSpace()) return null; + return state.tokenize(stream, state); + } + }; +}); + +CodeMirror.defineMIME("text/x-solr", "solr"); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/soy/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/soy/index.html new file mode 100644 index 0000000..f0216f0 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/soy/index.html @@ -0,0 +1,68 @@ +<!doctype html> + +<title>CodeMirror: Soy (Closure Template) mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../../addon/edit/matchbrackets.js"></script> +<script src="../htmlmixed/htmlmixed.js"></script> +<script src="../xml/xml.js"></script> +<script src="../javascript/javascript.js"></script> +<script src="../css/css.js"></script> +<script src="soy.js"></script> +<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Soy (Closure Template)</a> + </ul> +</div> + +<article> +<h2>Soy (Closure Template) mode</h2> +<form><textarea id="code" name="code"> +{namespace example} + +/** + * Says hello to the world. + */ +{template .helloWorld} + {@param name: string} + {@param? score: number} + Hello <b>{$name}</b>! + <div> + {if $score} + <em>{$score} points</em> + {else} + no score + {/if} + </div> +{/template} + +{template .alertHelloWorld kind="js"} + alert('Hello World'); +{/template} +</textarea></form> + + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + lineNumbers: true, + matchBrackets: true, + mode: "text/x-soy", + indentUnit: 2, + indentWithTabs: false + }); + </script> + + <p>A mode for <a href="https://developers.google.com/closure/templates/">Closure Templates</a> (Soy).</p> + <p><strong>MIME type defined:</strong> <code>text/x-soy</code>.</p> + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/soy/soy.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/soy/soy.js new file mode 100644 index 0000000..580c306 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/soy/soy.js @@ -0,0 +1,199 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror", "../htmlmixed/htmlmixed"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { + "use strict"; + + var indentingTags = ["template", "literal", "msg", "fallbackmsg", "let", "if", "elseif", + "else", "switch", "case", "default", "foreach", "ifempty", "for", + "call", "param", "deltemplate", "delcall", "log"]; + + CodeMirror.defineMode("soy", function(config) { + var textMode = CodeMirror.getMode(config, "text/plain"); + var modes = { + html: CodeMirror.getMode(config, {name: "text/html", multilineTagIndentFactor: 2, multilineTagIndentPastTag: false}), + attributes: textMode, + text: textMode, + uri: textMode, + css: CodeMirror.getMode(config, "text/css"), + js: CodeMirror.getMode(config, {name: "text/javascript", statementIndent: 2 * config.indentUnit}) + }; + + function last(array) { + return array[array.length - 1]; + } + + function tokenUntil(stream, state, untilRegExp) { + var oldString = stream.string; + var match = untilRegExp.exec(oldString.substr(stream.pos)); + if (match) { + // We don't use backUp because it backs up just the position, not the state. + // This uses an undocumented API. + stream.string = oldString.substr(0, stream.pos + match.index); + } + var result = stream.hideFirstChars(state.indent, function() { + return state.localMode.token(stream, state.localState); + }); + stream.string = oldString; + return result; + } + + return { + startState: function() { + return { + kind: [], + kindTag: [], + soyState: [], + indent: 0, + localMode: modes.html, + localState: CodeMirror.startState(modes.html) + }; + }, + + copyState: function(state) { + return { + tag: state.tag, // Last seen Soy tag. + kind: state.kind.concat([]), // Values of kind="" attributes. + kindTag: state.kindTag.concat([]), // Opened tags with kind="" attributes. + soyState: state.soyState.concat([]), + indent: state.indent, // Indentation of the following line. + localMode: state.localMode, + localState: CodeMirror.copyState(state.localMode, state.localState) + }; + }, + + token: function(stream, state) { + var match; + + switch (last(state.soyState)) { + case "comment": + if (stream.match(/^.*?\*\//)) { + state.soyState.pop(); + } else { + stream.skipToEnd(); + } + return "comment"; + + case "variable": + if (stream.match(/^}/)) { + state.indent -= 2 * config.indentUnit; + state.soyState.pop(); + return "variable-2"; + } + stream.next(); + return null; + + case "tag": + if (stream.match(/^\/?}/)) { + if (state.tag == "/template" || state.tag == "/deltemplate") state.indent = 0; + else state.indent -= (stream.current() == "/}" || indentingTags.indexOf(state.tag) == -1 ? 2 : 1) * config.indentUnit; + state.soyState.pop(); + return "keyword"; + } else if (stream.match(/^([\w?]+)(?==)/)) { + if (stream.current() == "kind" && (match = stream.match(/^="([^"]+)/, false))) { + var kind = match[1]; + state.kind.push(kind); + state.kindTag.push(state.tag); + state.localMode = modes[kind] || modes.html; + state.localState = CodeMirror.startState(state.localMode); + } + return "attribute"; + } else if (stream.match(/^"/)) { + state.soyState.push("string"); + return "string"; + } + stream.next(); + return null; + + case "literal": + if (stream.match(/^(?=\{\/literal})/)) { + state.indent -= config.indentUnit; + state.soyState.pop(); + return this.token(stream, state); + } + return tokenUntil(stream, state, /\{\/literal}/); + + case "string": + var match = stream.match(/^.*?("|\\[\s\S])/); + if (!match) { + stream.skipToEnd(); + } else if (match[1] == "\"") { + state.soyState.pop(); + } + return "string"; + } + + if (stream.match(/^\/\*/)) { + state.soyState.push("comment"); + return "comment"; + } else if (stream.match(stream.sol() ? /^\s*\/\/.*/ : /^\s+\/\/.*/)) { + return "comment"; + } else if (stream.match(/^\{\$[\w?]*/)) { + state.indent += 2 * config.indentUnit; + state.soyState.push("variable"); + return "variable-2"; + } else if (stream.match(/^\{literal}/)) { + state.indent += config.indentUnit; + state.soyState.push("literal"); + return "keyword"; + } else if (match = stream.match(/^\{([\/@\\]?[\w?]*)/)) { + if (match[1] != "/switch") + state.indent += (/^(\/|(else|elseif|case|default)$)/.test(match[1]) && state.tag != "switch" ? 1 : 2) * config.indentUnit; + state.tag = match[1]; + if (state.tag == "/" + last(state.kindTag)) { + // We found the tag that opened the current kind="". + state.kind.pop(); + state.kindTag.pop(); + state.localMode = modes[last(state.kind)] || modes.html; + state.localState = CodeMirror.startState(state.localMode); + } + state.soyState.push("tag"); + return "keyword"; + } + + return tokenUntil(stream, state, /\{|\s+\/\/|\/\*/); + }, + + indent: function(state, textAfter) { + var indent = state.indent, top = last(state.soyState); + if (top == "comment") return CodeMirror.Pass; + + if (top == "literal") { + if (/^\{\/literal}/.test(textAfter)) indent -= config.indentUnit; + } else { + if (/^\s*\{\/(template|deltemplate)\b/.test(textAfter)) return 0; + if (/^\{(\/|(fallbackmsg|elseif|else|ifempty)\b)/.test(textAfter)) indent -= config.indentUnit; + if (state.tag != "switch" && /^\{(case|default)\b/.test(textAfter)) indent -= config.indentUnit; + if (/^\{\/switch\b/.test(textAfter)) indent -= config.indentUnit; + } + if (indent && state.localMode.indent) + indent += state.localMode.indent(state.localState, textAfter); + return indent; + }, + + innerMode: function(state) { + if (state.soyState.length && last(state.soyState) != "literal") return null; + else return {state: state.localState, mode: state.localMode}; + }, + + electricInput: /^\s*\{(\/|\/template|\/deltemplate|\/switch|fallbackmsg|elseif|else|case|default|ifempty|\/literal\})$/, + lineComment: "//", + blockCommentStart: "/*", + blockCommentEnd: "*/", + blockCommentContinue: " * ", + fold: "indent" + }; + }, "htmlmixed"); + + CodeMirror.registerHelper("hintWords", "soy", indentingTags.concat( + ["delpackage", "namespace", "alias", "print", "css", "debugger"])); + + CodeMirror.defineMIME("text/x-soy", "soy"); +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/sparql/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/sparql/index.html new file mode 100644 index 0000000..84ef4d3 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/sparql/index.html @@ -0,0 +1,61 @@ +<!doctype html> + +<title>CodeMirror: SPARQL mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../../addon/edit/matchbrackets.js"></script> +<script src="sparql.js"></script> +<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">SPARQL</a> + </ul> +</div> + +<article> +<h2>SPARQL mode</h2> +<form><textarea id="code" name="code"> +PREFIX a: <http://www.w3.org/2000/10/annotation-ns#> +PREFIX dc: <http://purl.org/dc/elements/1.1/> +PREFIX foaf: <http://xmlns.com/foaf/0.1/> +PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> + +# Comment! + +SELECT ?given ?family +WHERE { + { + ?annot a:annotates <http://www.w3.org/TR/rdf-sparql-query/> . + ?annot dc:creator ?c . + OPTIONAL {?c foaf:givenName ?given ; + foaf:familyName ?family } + } UNION { + ?c !foaf:knows/foaf:knows? ?thing. + ?thing rdfs + } MINUS { + ?thing rdfs:label "剛柔流"@jp + } + FILTER isBlank(?c) +} +</textarea></form> + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + mode: "application/sparql-query", + matchBrackets: true + }); + </script> + + <p><strong>MIME types defined:</strong> <code>application/sparql-query</code>.</p> + + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/sparql/sparql.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/sparql/sparql.js new file mode 100644 index 0000000..095dcca --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/sparql/sparql.js @@ -0,0 +1,180 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("sparql", function(config) { + var indentUnit = config.indentUnit; + var curPunc; + + function wordRegexp(words) { + return new RegExp("^(?:" + words.join("|") + ")$", "i"); + } + var ops = wordRegexp(["str", "lang", "langmatches", "datatype", "bound", "sameterm", "isiri", "isuri", + "iri", "uri", "bnode", "count", "sum", "min", "max", "avg", "sample", + "group_concat", "rand", "abs", "ceil", "floor", "round", "concat", "substr", "strlen", + "replace", "ucase", "lcase", "encode_for_uri", "contains", "strstarts", "strends", + "strbefore", "strafter", "year", "month", "day", "hours", "minutes", "seconds", + "timezone", "tz", "now", "uuid", "struuid", "md5", "sha1", "sha256", "sha384", + "sha512", "coalesce", "if", "strlang", "strdt", "isnumeric", "regex", "exists", + "isblank", "isliteral", "a", "bind"]); + var keywords = wordRegexp(["base", "prefix", "select", "distinct", "reduced", "construct", "describe", + "ask", "from", "named", "where", "order", "limit", "offset", "filter", "optional", + "graph", "by", "asc", "desc", "as", "having", "undef", "values", "group", + "minus", "in", "not", "service", "silent", "using", "insert", "delete", "union", + "true", "false", "with", + "data", "copy", "to", "move", "add", "create", "drop", "clear", "load"]); + var operatorChars = /[*+\-<>=&|\^\/!\?]/; + + function tokenBase(stream, state) { + var ch = stream.next(); + curPunc = null; + if (ch == "$" || ch == "?") { + if(ch == "?" && stream.match(/\s/, false)){ + return "operator"; + } + stream.match(/^[\w\d]*/); + return "variable-2"; + } + else if (ch == "<" && !stream.match(/^[\s\u00a0=]/, false)) { + stream.match(/^[^\s\u00a0>]*>?/); + return "atom"; + } + else if (ch == "\"" || ch == "'") { + state.tokenize = tokenLiteral(ch); + return state.tokenize(stream, state); + } + else if (/[{}\(\),\.;\[\]]/.test(ch)) { + curPunc = ch; + return "bracket"; + } + else if (ch == "#") { + stream.skipToEnd(); + return "comment"; + } + else if (operatorChars.test(ch)) { + stream.eatWhile(operatorChars); + return "operator"; + } + else if (ch == ":") { + stream.eatWhile(/[\w\d\._\-]/); + return "atom"; + } + else if (ch == "@") { + stream.eatWhile(/[a-z\d\-]/i); + return "meta"; + } + else { + stream.eatWhile(/[_\w\d]/); + if (stream.eat(":")) { + stream.eatWhile(/[\w\d_\-]/); + return "atom"; + } + var word = stream.current(); + if (ops.test(word)) + return "builtin"; + else if (keywords.test(word)) + return "keyword"; + else + return "variable"; + } + } + + function tokenLiteral(quote) { + return function(stream, state) { + var escaped = false, ch; + while ((ch = stream.next()) != null) { + if (ch == quote && !escaped) { + state.tokenize = tokenBase; + break; + } + escaped = !escaped && ch == "\\"; + } + return "string"; + }; + } + + function pushContext(state, type, col) { + state.context = {prev: state.context, indent: state.indent, col: col, type: type}; + } + function popContext(state) { + state.indent = state.context.indent; + state.context = state.context.prev; + } + + return { + startState: function() { + return {tokenize: tokenBase, + context: null, + indent: 0, + col: 0}; + }, + + token: function(stream, state) { + if (stream.sol()) { + if (state.context && state.context.align == null) state.context.align = false; + state.indent = stream.indentation(); + } + if (stream.eatSpace()) return null; + var style = state.tokenize(stream, state); + + if (style != "comment" && state.context && state.context.align == null && state.context.type != "pattern") { + state.context.align = true; + } + + if (curPunc == "(") pushContext(state, ")", stream.column()); + else if (curPunc == "[") pushContext(state, "]", stream.column()); + else if (curPunc == "{") pushContext(state, "}", stream.column()); + else if (/[\]\}\)]/.test(curPunc)) { + while (state.context && state.context.type == "pattern") popContext(state); + if (state.context && curPunc == state.context.type) { + popContext(state); + if (curPunc == "}" && state.context && state.context.type == "pattern") + popContext(state); + } + } + else if (curPunc == "." && state.context && state.context.type == "pattern") popContext(state); + else if (/atom|string|variable/.test(style) && state.context) { + if (/[\}\]]/.test(state.context.type)) + pushContext(state, "pattern", stream.column()); + else if (state.context.type == "pattern" && !state.context.align) { + state.context.align = true; + state.context.col = stream.column(); + } + } + + return style; + }, + + indent: function(state, textAfter) { + var firstChar = textAfter && textAfter.charAt(0); + var context = state.context; + if (/[\]\}]/.test(firstChar)) + while (context && context.type == "pattern") context = context.prev; + + var closing = context && firstChar == context.type; + if (!context) + return 0; + else if (context.type == "pattern") + return context.col; + else if (context.align) + return context.col + (closing ? 0 : 1); + else + return context.indent + (closing ? 0 : indentUnit); + }, + + lineComment: "#" + }; +}); + +CodeMirror.defineMIME("application/sparql-query", "sparql"); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/spreadsheet/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/spreadsheet/index.html new file mode 100644 index 0000000..a52f76f --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/spreadsheet/index.html @@ -0,0 +1,42 @@ +<!doctype html> + +<title>CodeMirror: Spreadsheet mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../../addon/edit/matchbrackets.js"></script> +<script src="spreadsheet.js"></script> +<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Spreadsheet</a> + </ul> +</div> + +<article> + <h2>Spreadsheet mode</h2> + <form><textarea id="code" name="code">=IF(A1:B2, TRUE, FALSE) / 100</textarea></form> + + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + lineNumbers: true, + matchBrackets: true, + extraKeys: {"Tab": "indentAuto"} + }); + </script> + + <p><strong>MIME types defined:</strong> <code>text/x-spreadsheet</code>.</p> + + <h3>The Spreadsheet Mode</h3> + <p> Created by <a href="https://github.com/robertleeplummerjr">Robert Plummer</a></p> +</article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/spreadsheet/spreadsheet.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/spreadsheet/spreadsheet.js new file mode 100644 index 0000000..222f297 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/spreadsheet/spreadsheet.js @@ -0,0 +1,112 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { + "use strict"; + + CodeMirror.defineMode("spreadsheet", function () { + return { + startState: function () { + return { + stringType: null, + stack: [] + }; + }, + token: function (stream, state) { + if (!stream) return; + + //check for state changes + if (state.stack.length === 0) { + //strings + if ((stream.peek() == '"') || (stream.peek() == "'")) { + state.stringType = stream.peek(); + stream.next(); // Skip quote + state.stack.unshift("string"); + } + } + + //return state + //stack has + switch (state.stack[0]) { + case "string": + while (state.stack[0] === "string" && !stream.eol()) { + if (stream.peek() === state.stringType) { + stream.next(); // Skip quote + state.stack.shift(); // Clear flag + } else if (stream.peek() === "\\") { + stream.next(); + stream.next(); + } else { + stream.match(/^.[^\\\"\']*/); + } + } + return "string"; + + case "characterClass": + while (state.stack[0] === "characterClass" && !stream.eol()) { + if (!(stream.match(/^[^\]\\]+/) || stream.match(/^\\./))) + state.stack.shift(); + } + return "operator"; + } + + var peek = stream.peek(); + + //no stack + switch (peek) { + case "[": + stream.next(); + state.stack.unshift("characterClass"); + return "bracket"; + case ":": + stream.next(); + return "operator"; + case "\\": + if (stream.match(/\\[a-z]+/)) return "string-2"; + else { + stream.next(); + return "atom"; + } + case ".": + case ",": + case ";": + case "*": + case "-": + case "+": + case "^": + case "<": + case "/": + case "=": + stream.next(); + return "atom"; + case "$": + stream.next(); + return "builtin"; + } + + if (stream.match(/\d+/)) { + if (stream.match(/^\w+/)) return "error"; + return "number"; + } else if (stream.match(/^[a-zA-Z_]\w*/)) { + if (stream.match(/(?=[\(.])/, false)) return "keyword"; + return "variable-2"; + } else if (["[", "]", "(", ")", "{", "}"].indexOf(peek) != -1) { + stream.next(); + return "bracket"; + } else if (!stream.eatSpace()) { + stream.next(); + } + return null; + } + }; + }); + + CodeMirror.defineMIME("text/x-spreadsheet", "spreadsheet"); +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/sql/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/sql/index.html new file mode 100644 index 0000000..dba069d --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/sql/index.html @@ -0,0 +1,86 @@ +<!doctype html> + +<title>CodeMirror: SQL Mode for CodeMirror</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css" /> +<script src="../../lib/codemirror.js"></script> +<script src="sql.js"></script> +<link rel="stylesheet" href="../../addon/hint/show-hint.css" /> +<script src="../../addon/hint/show-hint.js"></script> +<script src="../../addon/hint/sql-hint.js"></script> +<style> +.CodeMirror { + border-top: 1px solid black; + border-bottom: 1px solid black; +} + </style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">SQL Mode for CodeMirror</a> + </ul> +</div> + +<article> +<h2>SQL Mode for CodeMirror</h2> +<form> + <textarea id="code" name="code">-- SQL Mode for CodeMirror +SELECT SQL_NO_CACHE DISTINCT + @var1 AS `val1`, @'val2', @global.'sql_mode', + 1.1 AS `float_val`, .14 AS `another_float`, 0.09e3 AS `int_with_esp`, + 0xFA5 AS `hex`, x'fa5' AS `hex2`, 0b101 AS `bin`, b'101' AS `bin2`, + DATE '1994-01-01' AS `sql_date`, { T "1994-01-01" } AS `odbc_date`, + 'my string', _utf8'your string', N'her string', + TRUE, FALSE, UNKNOWN + FROM DUAL + -- space needed after '--' + # 1 line comment + /* multiline + comment! */ + LIMIT 1 OFFSET 0; +</textarea> + </form> + <p><strong>MIME types defined:</strong> + <code><a href="?mime=text/x-sql">text/x-sql</a></code>, + <code><a href="?mime=text/x-mysql">text/x-mysql</a></code>, + <code><a href="?mime=text/x-mariadb">text/x-mariadb</a></code>, + <code><a href="?mime=text/x-cassandra">text/x-cassandra</a></code>, + <code><a href="?mime=text/x-plsql">text/x-plsql</a></code>, + <code><a href="?mime=text/x-mssql">text/x-mssql</a></code>, + <code><a href="?mime=text/x-hive">text/x-hive</a></code>, + <code><a href="?mime=text/x-pgsql">text/x-pgsql</a></code>, + <code><a href="?mime=text/x-gql">text/x-gql</a></code>. + </p> +<script> +window.onload = function() { + var mime = 'text/x-mariadb'; + // get mime type + if (window.location.href.indexOf('mime=') > -1) { + mime = window.location.href.substr(window.location.href.indexOf('mime=') + 5); + } + window.editor = CodeMirror.fromTextArea(document.getElementById('code'), { + mode: mime, + indentWithTabs: true, + smartIndent: true, + lineNumbers: true, + matchBrackets : true, + autofocus: true, + extraKeys: {"Ctrl-Space": "autocomplete"}, + hintOptions: {tables: { + users: {name: null, score: null, birthDate: null}, + countries: {name: null, population: null, size: null} + }} + }); +}; +</script> + +</article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/sql/sql.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/sql/sql.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/sql/sql.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/sql/sql.js diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/stex/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/stex/index.html new file mode 100644 index 0000000..14679da --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/stex/index.html @@ -0,0 +1,110 @@ +<!doctype html> + +<title>CodeMirror: sTeX mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="stex.js"></script> +<style>.CodeMirror {background: #f8f8f8;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">sTeX</a> + </ul> +</div> + +<article> +<h2>sTeX mode</h2> +<form><textarea id="code" name="code"> +\begin{module}[id=bbt-size] +\importmodule[balanced-binary-trees]{balanced-binary-trees} +\importmodule[\KWARCslides{dmath/en/cardinality}]{cardinality} + +\begin{frame} + \frametitle{Size Lemma for Balanced Trees} + \begin{itemize} + \item + \begin{assertion}[id=size-lemma,type=lemma] + Let $G=\tup{V,E}$ be a \termref[cd=binary-trees]{balanced binary tree} + of \termref[cd=graph-depth,name=vertex-depth]{depth}$n>i$, then the set + $\defeq{\livar{V}i}{\setst{\inset{v}{V}}{\gdepth{v} = i}}$ of + \termref[cd=graphs-intro,name=node]{nodes} at + \termref[cd=graph-depth,name=vertex-depth]{depth} $i$ has + \termref[cd=cardinality,name=cardinality]{cardinality} $\power2i$. + \end{assertion} + \item + \begin{sproof}[id=size-lemma-pf,proofend=,for=size-lemma]{via induction over the depth $i$.} + \begin{spfcases}{We have to consider two cases} + \begin{spfcase}{$i=0$} + \begin{spfstep}[display=flow] + then $\livar{V}i=\set{\livar{v}r}$, where $\livar{v}r$ is the root, so + $\eq{\card{\livar{V}0},\card{\set{\livar{v}r}},1,\power20}$. + \end{spfstep} + \end{spfcase} + \begin{spfcase}{$i>0$} + \begin{spfstep}[display=flow] + then $\livar{V}{i-1}$ contains $\power2{i-1}$ vertexes + \begin{justification}[method=byIH](IH)\end{justification} + \end{spfstep} + \begin{spfstep} + By the \begin{justification}[method=byDef]definition of a binary + tree\end{justification}, each $\inset{v}{\livar{V}{i-1}}$ is a leaf or has + two children that are at depth $i$. + \end{spfstep} + \begin{spfstep} + As $G$ is \termref[cd=balanced-binary-trees,name=balanced-binary-tree]{balanced} and $\gdepth{G}=n>i$, $\livar{V}{i-1}$ cannot contain + leaves. + \end{spfstep} + \begin{spfstep}[type=conclusion] + Thus $\eq{\card{\livar{V}i},{\atimes[cdot]{2,\card{\livar{V}{i-1}}}},{\atimes[cdot]{2,\power2{i-1}}},\power2i}$. + \end{spfstep} + \end{spfcase} + \end{spfcases} + \end{sproof} + \item + \begin{assertion}[id=fbbt,type=corollary] + A fully balanced tree of depth $d$ has $\power2{d+1}-1$ nodes. + \end{assertion} + \item + \begin{sproof}[for=fbbt,id=fbbt-pf]{} + \begin{spfstep} + Let $\defeq{G}{\tup{V,E}}$ be a fully balanced tree + \end{spfstep} + \begin{spfstep} + Then $\card{V}=\Sumfromto{i}1d{\power2i}= \power2{d+1}-1$. + \end{spfstep} + \end{sproof} + \end{itemize} + \end{frame} +\begin{note} + \begin{omtext}[type=conclusion,for=binary-tree] + This shows that balanced binary trees grow in breadth very quickly, a consequence of + this is that they are very shallow (and this compute very fast), which is the essence of + the next result. + \end{omtext} +\end{note} +\end{module} + +%%% Local Variables: +%%% mode: LaTeX +%%% TeX-master: "all" +%%% End: \end{document} +</textarea></form> + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), {}); + </script> + + <p><strong>MIME types defined:</strong> <code>text/x-stex</code>.</p> + + <p><strong>Parsing/Highlighting Tests:</strong> <a href="../../test/index.html#stex_*">normal</a>, <a href="../../test/index.html#verbose,stex_*">verbose</a>.</p> + + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/stex/stex.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/stex/stex.js new file mode 100644 index 0000000..835ed46 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/stex/stex.js @@ -0,0 +1,251 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +/* + * Author: Constantin Jucovschi (c.jucovschi@jacobs-university.de) + * Licence: MIT + */ + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { + "use strict"; + + CodeMirror.defineMode("stex", function() { + "use strict"; + + function pushCommand(state, command) { + state.cmdState.push(command); + } + + function peekCommand(state) { + if (state.cmdState.length > 0) { + return state.cmdState[state.cmdState.length - 1]; + } else { + return null; + } + } + + function popCommand(state) { + var plug = state.cmdState.pop(); + if (plug) { + plug.closeBracket(); + } + } + + // returns the non-default plugin closest to the end of the list + function getMostPowerful(state) { + var context = state.cmdState; + for (var i = context.length - 1; i >= 0; i--) { + var plug = context[i]; + if (plug.name == "DEFAULT") { + continue; + } + return plug; + } + return { styleIdentifier: function() { return null; } }; + } + + function addPluginPattern(pluginName, cmdStyle, styles) { + return function () { + this.name = pluginName; + this.bracketNo = 0; + this.style = cmdStyle; + this.styles = styles; + this.argument = null; // \begin and \end have arguments that follow. These are stored in the plugin + + this.styleIdentifier = function() { + return this.styles[this.bracketNo - 1] || null; + }; + this.openBracket = function() { + this.bracketNo++; + return "bracket"; + }; + this.closeBracket = function() {}; + }; + } + + var plugins = {}; + + plugins["importmodule"] = addPluginPattern("importmodule", "tag", ["string", "builtin"]); + plugins["documentclass"] = addPluginPattern("documentclass", "tag", ["", "atom"]); + plugins["usepackage"] = addPluginPattern("usepackage", "tag", ["atom"]); + plugins["begin"] = addPluginPattern("begin", "tag", ["atom"]); + plugins["end"] = addPluginPattern("end", "tag", ["atom"]); + + plugins["DEFAULT"] = function () { + this.name = "DEFAULT"; + this.style = "tag"; + + this.styleIdentifier = this.openBracket = this.closeBracket = function() {}; + }; + + function setState(state, f) { + state.f = f; + } + + // called when in a normal (no environment) context + function normal(source, state) { + var plug; + // Do we look like '\command' ? If so, attempt to apply the plugin 'command' + if (source.match(/^\\[a-zA-Z@]+/)) { + var cmdName = source.current().slice(1); + plug = plugins[cmdName] || plugins["DEFAULT"]; + plug = new plug(); + pushCommand(state, plug); + setState(state, beginParams); + return plug.style; + } + + // escape characters + if (source.match(/^\\[$&%#{}_]/)) { + return "tag"; + } + + // white space control characters + if (source.match(/^\\[,;!\/\\]/)) { + return "tag"; + } + + // find if we're starting various math modes + if (source.match("\\[")) { + setState(state, function(source, state){ return inMathMode(source, state, "\\]"); }); + return "keyword"; + } + if (source.match("$$")) { + setState(state, function(source, state){ return inMathMode(source, state, "$$"); }); + return "keyword"; + } + if (source.match("$")) { + setState(state, function(source, state){ return inMathMode(source, state, "$"); }); + return "keyword"; + } + + var ch = source.next(); + if (ch == "%") { + source.skipToEnd(); + return "comment"; + } else if (ch == '}' || ch == ']') { + plug = peekCommand(state); + if (plug) { + plug.closeBracket(ch); + setState(state, beginParams); + } else { + return "error"; + } + return "bracket"; + } else if (ch == '{' || ch == '[') { + plug = plugins["DEFAULT"]; + plug = new plug(); + pushCommand(state, plug); + return "bracket"; + } else if (/\d/.test(ch)) { + source.eatWhile(/[\w.%]/); + return "atom"; + } else { + source.eatWhile(/[\w\-_]/); + plug = getMostPowerful(state); + if (plug.name == 'begin') { + plug.argument = source.current(); + } + return plug.styleIdentifier(); + } + } + + function inMathMode(source, state, endModeSeq) { + if (source.eatSpace()) { + return null; + } + if (source.match(endModeSeq)) { + setState(state, normal); + return "keyword"; + } + if (source.match(/^\\[a-zA-Z@]+/)) { + return "tag"; + } + if (source.match(/^[a-zA-Z]+/)) { + return "variable-2"; + } + // escape characters + if (source.match(/^\\[$&%#{}_]/)) { + return "tag"; + } + // white space control characters + if (source.match(/^\\[,;!\/]/)) { + return "tag"; + } + // special math-mode characters + if (source.match(/^[\^_&]/)) { + return "tag"; + } + // non-special characters + if (source.match(/^[+\-<>|=,\/@!*:;'"`~#?]/)) { + return null; + } + if (source.match(/^(\d+\.\d*|\d*\.\d+|\d+)/)) { + return "number"; + } + var ch = source.next(); + if (ch == "{" || ch == "}" || ch == "[" || ch == "]" || ch == "(" || ch == ")") { + return "bracket"; + } + + if (ch == "%") { + source.skipToEnd(); + return "comment"; + } + return "error"; + } + + function beginParams(source, state) { + var ch = source.peek(), lastPlug; + if (ch == '{' || ch == '[') { + lastPlug = peekCommand(state); + lastPlug.openBracket(ch); + source.eat(ch); + setState(state, normal); + return "bracket"; + } + if (/[ \t\r]/.test(ch)) { + source.eat(ch); + return null; + } + setState(state, normal); + popCommand(state); + + return normal(source, state); + } + + return { + startState: function() { + return { + cmdState: [], + f: normal + }; + }, + copyState: function(s) { + return { + cmdState: s.cmdState.slice(), + f: s.f + }; + }, + token: function(stream, state) { + return state.f(stream, state); + }, + blankLine: function(state) { + state.f = normal; + state.cmdState.length = 0; + }, + lineComment: "%" + }; + }); + + CodeMirror.defineMIME("text/x-stex", "stex"); + CodeMirror.defineMIME("text/x-latex", "stex"); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/stex/test.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/stex/test.js new file mode 100644 index 0000000..22f027e --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/stex/test.js @@ -0,0 +1,123 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function() { + var mode = CodeMirror.getMode({tabSize: 4}, "stex"); + function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); } + + MT("word", + "foo"); + + MT("twoWords", + "foo bar"); + + MT("beginEndDocument", + "[tag \\begin][bracket {][atom document][bracket }]", + "[tag \\end][bracket {][atom document][bracket }]"); + + MT("beginEndEquation", + "[tag \\begin][bracket {][atom equation][bracket }]", + " E=mc^2", + "[tag \\end][bracket {][atom equation][bracket }]"); + + MT("beginModule", + "[tag \\begin][bracket {][atom module][bracket }[[]]]"); + + MT("beginModuleId", + "[tag \\begin][bracket {][atom module][bracket }[[]id=bbt-size[bracket ]]]"); + + MT("importModule", + "[tag \\importmodule][bracket [[][string b-b-t][bracket ]]{][builtin b-b-t][bracket }]"); + + MT("importModulePath", + "[tag \\importmodule][bracket [[][tag \\KWARCslides][bracket {][string dmath/en/cardinality][bracket }]]{][builtin card][bracket }]"); + + MT("psForPDF", + "[tag \\PSforPDF][bracket [[][atom 1][bracket ]]{]#1[bracket }]"); + + MT("comment", + "[comment % foo]"); + + MT("tagComment", + "[tag \\item][comment % bar]"); + + MT("commentTag", + " [comment % \\item]"); + + MT("commentLineBreak", + "[comment %]", + "foo"); + + MT("tagErrorCurly", + "[tag \\begin][error }][bracket {]"); + + MT("tagErrorSquare", + "[tag \\item][error ]]][bracket {]"); + + MT("commentCurly", + "[comment % }]"); + + MT("tagHash", + "the [tag \\#] key"); + + MT("tagNumber", + "a [tag \\$][atom 5] stetson"); + + MT("tagPercent", + "[atom 100][tag \\%] beef"); + + MT("tagAmpersand", + "L [tag \\&] N"); + + MT("tagUnderscore", + "foo[tag \\_]bar"); + + MT("tagBracketOpen", + "[tag \\emph][bracket {][tag \\{][bracket }]"); + + MT("tagBracketClose", + "[tag \\emph][bracket {][tag \\}][bracket }]"); + + MT("tagLetterNumber", + "section [tag \\S][atom 1]"); + + MT("textTagNumber", + "para [tag \\P][atom 2]"); + + MT("thinspace", + "x[tag \\,]y"); + + MT("thickspace", + "x[tag \\;]y"); + + MT("negativeThinspace", + "x[tag \\!]y"); + + MT("periodNotSentence", + "J.\\ L.\\ is"); + + MT("periodSentence", + "X[tag \\@]. The"); + + MT("italicCorrection", + "[bracket {][tag \\em] If[tag \\/][bracket }] I"); + + MT("tagBracket", + "[tag \\newcommand][bracket {][tag \\pop][bracket }]"); + + MT("inlineMathTagFollowedByNumber", + "[keyword $][tag \\pi][number 2][keyword $]"); + + MT("inlineMath", + "[keyword $][number 3][variable-2 x][tag ^][number 2.45]-[tag \\sqrt][bracket {][tag \\$\\alpha][bracket }] = [number 2][keyword $] other text"); + + MT("displayMath", + "More [keyword $$]\t[variable-2 S][tag ^][variable-2 n][tag \\sum] [variable-2 i][keyword $$] other text"); + + MT("mathWithComment", + "[keyword $][variable-2 x] [comment % $]", + "[variable-2 y][keyword $] other text"); + + MT("lineBreakArgument", + "[tag \\\\][bracket [[][atom 1cm][bracket ]]]"); +})(); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/stylus/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/stylus/index.html new file mode 100644 index 0000000..862c18f --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/stylus/index.html @@ -0,0 +1,106 @@ +<!doctype html> + +<title>CodeMirror: Stylus mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> +<link rel="stylesheet" href="../../lib/codemirror.css"> +<link rel="stylesheet" href="../../addon/hint/show-hint.css"> +<script src="../../lib/codemirror.js"></script> +<script src="stylus.js"></script> +<script src="../../addon/hint/show-hint.js"></script> +<script src="../../addon/hint/css-hint.js"></script> +<style>.CodeMirror {background: #f8f8f8;} form{margin-bottom: .7em;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Stylus</a> + </ul> +</div> + +<article> +<h2>Stylus mode</h2> +<form><textarea id="code" name="code"> +/* Stylus mode */ + +#id, +.class, +article + font-family Arial, sans-serif + +#id, +.class, +article { + font-family: Arial, sans-serif; +} + +// Variables +font-size-base = 16px +line-height-base = 1.5 +font-family-base = "Helvetica Neue", Helvetica, Arial, sans-serif +text-color = lighten(#000, 20%) + +body + font font-size-base/line-height-base font-family-base + color text-color + +body { + font: 400 16px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif; + color: #333; +} + +// Variables +link-color = darken(#428bca, 6.5%) +link-hover-color = darken(link-color, 15%) +link-decoration = none +link-hover-decoration = false + +// Mixin +tab-focus() + outline thin dotted + outline 5px auto -webkit-focus-ring-color + outline-offset -2px + +a + color link-color + if link-decoration + text-decoration link-decoration + &:hover + &:focus + color link-hover-color + if link-hover-decoration + text-decoration link-hover-decoration + &:focus + tab-focus() + +a { + color: #3782c4; + text-decoration: none; +} +a:hover, +a:focus { + color: #2f6ea7; +} +a:focus { + outline: thin dotted; + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px; +} +</textarea> +</form> +<script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + extraKeys: {"Ctrl-Space": "autocomplete"}, + tabSize: 2 + }); +</script> + +<p><strong>MIME types defined:</strong> <code>text/x-styl</code>.</p> +<p>Created by <a href="https://github.com/dmitrykiselyov">Dmitry Kiselyov</a></p> +</article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/stylus/stylus.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/stylus/stylus.js similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/stylus/stylus.js rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/stylus/stylus.js diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/swift/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/swift/index.html new file mode 100644 index 0000000..109f3fd --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/swift/index.html @@ -0,0 +1,88 @@ +<!doctype html> + +<title>CodeMirror: Swift mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../../addon/edit/matchbrackets.js"></script> +<script src="./swift.js"></script> +<style> + .CodeMirror { border: 2px inset #dee; } + </style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Swift</a> + </ul> +</div> + +<article> +<h2>Swift mode</h2> +<form><textarea id="code" name="code"> +// +// TipCalculatorModel.swift +// TipCalculator +// +// Created by Main Account on 12/18/14. +// Copyright (c) 2014 Razeware LLC. All rights reserved. +// + +import Foundation + +class TipCalculatorModel { + + var total: Double + var taxPct: Double + var subtotal: Double { + get { + return total / (taxPct + 1) + } + } + + init(total: Double, taxPct: Double) { + self.total = total + self.taxPct = taxPct + } + + func calcTipWithTipPct(tipPct: Double) -> Double { + return subtotal * tipPct + } + + func returnPossibleTips() -> [Int: Double] { + + let possibleTipsInferred = [0.15, 0.18, 0.20] + let possibleTipsExplicit:[Double] = [0.15, 0.18, 0.20] + + var retval = [Int: Double]() + for possibleTip in possibleTipsInferred { + let intPct = Int(possibleTip*100) + retval[intPct] = calcTipWithTipPct(possibleTip) + } + return retval + + } + +} +</textarea></form> + + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + lineNumbers: true, + matchBrackets: true, + mode: "text/x-swift" + }); + </script> + + <p>A simple mode for Swift</p> + + <p><strong>MIME types defined:</strong> <code>text/x-swift</code> (Swift code)</p> + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/swift/swift.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/swift/swift.js new file mode 100644 index 0000000..3c28ced --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/swift/swift.js @@ -0,0 +1,202 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +// Swift mode created by Michael Kaminsky https://github.com/mkaminsky11 + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") + mod(require("../../lib/codemirror")) + else if (typeof define == "function" && define.amd) + define(["../../lib/codemirror"], mod) + else + mod(CodeMirror) +})(function(CodeMirror) { + "use strict" + + function wordSet(words) { + var set = {} + for (var i = 0; i < words.length; i++) set[words[i]] = true + return set + } + + var keywords = wordSet(["var","let","class","deinit","enum","extension","func","import","init","protocol", + "static","struct","subscript","typealias","as","dynamicType","is","new","super", + "self","Self","Type","__COLUMN__","__FILE__","__FUNCTION__","__LINE__","break","case", + "continue","default","do","else","fallthrough","if","in","for","return","switch", + "where","while","associativity","didSet","get","infix","inout","left","mutating", + "none","nonmutating","operator","override","postfix","precedence","prefix","right", + "set","unowned","weak","willSet"]) + var definingKeywords = wordSet(["var","let","class","enum","extension","func","import","protocol","struct", + "typealias","dynamicType","for"]) + var atoms = wordSet(["Infinity","NaN","undefined","null","true","false","on","off","yes","no","nil","null", + "this","super"]) + var types = wordSet(["String","bool","int","string","double","Double","Int","Float","float","public", + "private","extension"]) + var operators = "+-/*%=|&<>#" + var punc = ";,.(){}[]" + var number = /^-?(?:(?:[\d_]+\.[_\d]*|\.[_\d]+|0o[0-7_\.]+|0b[01_\.]+)(?:e-?[\d_]+)?|0x[\d_a-f\.]+(?:p-?[\d_]+)?)/i + var identifier = /^[_A-Za-z$][_A-Za-z$0-9]*/ + var property = /^[@\.][_A-Za-z$][_A-Za-z$0-9]*/ + var regexp = /^\/(?!\s)(?:\/\/)?(?:\\.|[^\/])+\// + + function tokenBase(stream, state, prev) { + if (stream.sol()) state.indented = stream.indentation() + if (stream.eatSpace()) return null + + var ch = stream.peek() + if (ch == "/") { + if (stream.match("//")) { + stream.skipToEnd() + return "comment" + } + if (stream.match("/*")) { + state.tokenize.push(tokenComment) + return tokenComment(stream, state) + } + if (stream.match(regexp)) return "string-2" + } + if (operators.indexOf(ch) > -1) { + stream.next() + return "operator" + } + if (punc.indexOf(ch) > -1) { + stream.next() + stream.match("..") + return "punctuation" + } + if (ch == '"' || ch == "'") { + stream.next() + var tokenize = tokenString(ch) + state.tokenize.push(tokenize) + return tokenize(stream, state) + } + + if (stream.match(number)) return "number" + if (stream.match(property)) return "property" + + if (stream.match(identifier)) { + var ident = stream.current() + if (keywords.hasOwnProperty(ident)) { + if (definingKeywords.hasOwnProperty(ident)) + state.prev = "define" + return "keyword" + } + if (types.hasOwnProperty(ident)) return "variable-2" + if (atoms.hasOwnProperty(ident)) return "atom" + if (prev == "define") return "def" + return "variable" + } + + stream.next() + return null + } + + function tokenUntilClosingParen() { + var depth = 0 + return function(stream, state, prev) { + var inner = tokenBase(stream, state, prev) + if (inner == "punctuation") { + if (stream.current() == "(") ++depth + else if (stream.current() == ")") { + if (depth == 0) { + stream.backUp(1) + state.tokenize.pop() + return state.tokenize[state.tokenize.length - 1](stream, state) + } + else --depth + } + } + return inner + } + } + + function tokenString(quote) { + return function(stream, state) { + var ch, escaped = false + while (ch = stream.next()) { + if (escaped) { + if (ch == "(") { + state.tokenize.push(tokenUntilClosingParen()) + return "string" + } + escaped = false + } else if (ch == quote) { + break + } else { + escaped = ch == "\\" + } + } + state.tokenize.pop() + return "string" + } + } + + function tokenComment(stream, state) { + stream.match(/^(?:[^*]|\*(?!\/))*/) + if (stream.match("*/")) state.tokenize.pop() + return "comment" + } + + function Context(prev, align, indented) { + this.prev = prev + this.align = align + this.indented = indented + } + + function pushContext(state, stream) { + var align = stream.match(/^\s*($|\/[\/\*])/, false) ? null : stream.column() + 1 + state.context = new Context(state.context, align, state.indented) + } + + function popContext(state) { + if (state.context) { + state.indented = state.context.indented + state.context = state.context.prev + } + } + + CodeMirror.defineMode("swift", function(config) { + return { + startState: function() { + return { + prev: null, + context: null, + indented: 0, + tokenize: [] + } + }, + + token: function(stream, state) { + var prev = state.prev + state.prev = null + var tokenize = state.tokenize[state.tokenize.length - 1] || tokenBase + var style = tokenize(stream, state, prev) + if (!style || style == "comment") state.prev = prev + else if (!state.prev) state.prev = style + + if (style == "punctuation") { + var bracket = /[\(\[\{]|([\]\)\}])/.exec(stream.current()) + if (bracket) (bracket[1] ? popContext : pushContext)(state, stream) + } + + return style + }, + + indent: function(state, textAfter) { + var cx = state.context + if (!cx) return 0 + var closing = /^[\]\}\)]/.test(textAfter) + if (cx.align != null) return cx.align - (closing ? 1 : 0) + return cx.indented + (closing ? 0 : config.indentUnit) + }, + + electricInput: /^\s*[\)\}\]]$/, + + lineComment: "//", + blockCommentStart: "/*", + blockCommentEnd: "*/" + } + }) + + CodeMirror.defineMIME("text/x-swift","swift") +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/tcl/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/tcl/index.html new file mode 100644 index 0000000..ce4ad34 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/tcl/index.html @@ -0,0 +1,142 @@ +<!doctype html> + +<title>CodeMirror: Tcl mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<link rel="stylesheet" href="../../theme/night.css"> +<script src="../../lib/codemirror.js"></script> +<script src="tcl.js"></script> +<script src="../../addon/scroll/scrollpastend.js"></script> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Tcl</a> + </ul> +</div> + +<article> +<h2>Tcl mode</h2> +<form><textarea id="code" name="code"> +############################################################################################## +## ## whois.tcl for eggdrop by Ford_Lawnmower irc.geekshed.net #Script-Help ## ## +############################################################################################## +## To use this script you must set channel flag +whois (ie .chanset #chan +whois) ## +############################################################################################## +## ____ __ ########################################### ## +## / __/___ _ ___ _ ___/ /____ ___ ___ ########################################### ## +## / _/ / _ `// _ `// _ // __// _ \ / _ \ ########################################### ## +## /___/ \_, / \_, / \_,_//_/ \___// .__/ ########################################### ## +## /___/ /___/ /_/ ########################################### ## +## ########################################### ## +############################################################################################## +## ## Start Setup. ## ## +############################################################################################## +namespace eval whois { +## change cmdchar to the trigger you want to use ## ## + variable cmdchar "!" +## change command to the word trigger you would like to use. ## ## +## Keep in mind, This will also change the .chanset +/-command ## ## + variable command "whois" +## change textf to the colors you want for the text. ## ## + variable textf "\017\00304" +## change tagf to the colors you want for tags: ## ## + variable tagf "\017\002" +## Change logo to the logo you want at the start of the line. ## ## + variable logo "\017\00304\002\[\00306W\003hois\00304\]\017" +## Change lineout to the results you want. Valid results are channel users modes topic ## ## + variable lineout "channel users modes topic" +############################################################################################## +## ## End Setup. ## ## +############################################################################################## + variable channel "" + setudef flag $whois::command + bind pub -|- [string trimleft $whois::cmdchar]${whois::command} whois::list + bind raw -|- "311" whois::311 + bind raw -|- "312" whois::312 + bind raw -|- "319" whois::319 + bind raw -|- "317" whois::317 + bind raw -|- "313" whois::multi + bind raw -|- "310" whois::multi + bind raw -|- "335" whois::multi + bind raw -|- "301" whois::301 + bind raw -|- "671" whois::multi + bind raw -|- "320" whois::multi + bind raw -|- "401" whois::multi + bind raw -|- "318" whois::318 + bind raw -|- "307" whois::307 +} +proc whois::311 {from key text} { + if {[regexp -- {^[^\s]+\s(.+?)\s(.+?)\s(.+?)\s\*\s\:(.+)$} $text wholematch nick ident host realname]} { + putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Host:${whois::textf} \ + $nick \(${ident}@${host}\) ${whois::tagf}Realname:${whois::textf} $realname" + } +} +proc whois::multi {from key text} { + if {[regexp {\:(.*)$} $text match $key]} { + putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Note:${whois::textf} [subst $$key]" + return 1 + } +} +proc whois::312 {from key text} { + regexp {([^\s]+)\s\:} $text match server + putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Server:${whois::textf} $server" +} +proc whois::319 {from key text} { + if {[regexp {.+\:(.+)$} $text match channels]} { + putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Channels:${whois::textf} $channels" + } +} +proc whois::317 {from key text} { + if {[regexp -- {.*\s(\d+)\s(\d+)\s\:} $text wholematch idle signon]} { + putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Connected:${whois::textf} \ + [ctime $signon] ${whois::tagf}Idle:${whois::textf} [duration $idle]" + } +} +proc whois::301 {from key text} { + if {[regexp {^.+\s[^\s]+\s\:(.*)$} $text match awaymsg]} { + putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Away:${whois::textf} $awaymsg" + } +} +proc whois::318 {from key text} { + namespace eval whois { + variable channel "" + } + variable whois::channel "" +} +proc whois::307 {from key text} { + putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Services:${whois::textf} Registered Nick" +} +proc whois::list {nick host hand chan text} { + if {[lsearch -exact [channel info $chan] "+${whois::command}"] != -1} { + namespace eval whois { + variable channel "" + } + variable whois::channel $chan + putserv "WHOIS $text" + } +} +putlog "\002*Loaded* \017\00304\002\[\00306W\003hois\00304\]\017 \002by \ +Ford_Lawnmower irc.GeekShed.net #Script-Help" +</textarea></form> + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + theme: "night", + lineNumbers: true, + indentUnit: 2, + scrollPastEnd: true, + mode: "text/x-tcl" + }); + </script> + + <p><strong>MIME types defined:</strong> <code>text/x-tcl</code>.</p> + + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/tcl/tcl.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/tcl/tcl.js new file mode 100644 index 0000000..8c76d52 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/tcl/tcl.js @@ -0,0 +1,139 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +//tcl mode by Ford_Lawnmower :: Based on Velocity mode by Steve O'Hara + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("tcl", function() { + function parseWords(str) { + var obj = {}, words = str.split(" "); + for (var i = 0; i < words.length; ++i) obj[words[i]] = true; + return obj; + } + var keywords = parseWords("Tcl safe after append array auto_execok auto_import auto_load " + + "auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror " + + "binary break catch cd close concat continue dde eof encoding error " + + "eval exec exit expr fblocked fconfigure fcopy file fileevent filename " + + "filename flush for foreach format gets glob global history http if " + + "incr info interp join lappend lindex linsert list llength load lrange " + + "lreplace lsearch lset lsort memory msgcat namespace open package parray " + + "pid pkg::create pkg_mkIndex proc puts pwd re_syntax read regex regexp " + + "registry regsub rename resource return scan seek set socket source split " + + "string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord " + + "tcl_wordBreakAfter tcl_startOfPreviousWord tcl_wordBreakBefore tcltest " + + "tclvars tell time trace unknown unset update uplevel upvar variable " + + "vwait"); + var functions = parseWords("if elseif else and not or eq ne in ni for foreach while switch"); + var isOperatorChar = /[+\-*&%=<>!?^\/\|]/; + function chain(stream, state, f) { + state.tokenize = f; + return f(stream, state); + } + function tokenBase(stream, state) { + var beforeParams = state.beforeParams; + state.beforeParams = false; + var ch = stream.next(); + if ((ch == '"' || ch == "'") && state.inParams) { + return chain(stream, state, tokenString(ch)); + } else if (/[\[\]{}\(\),;\.]/.test(ch)) { + if (ch == "(" && beforeParams) state.inParams = true; + else if (ch == ")") state.inParams = false; + return null; + } else if (/\d/.test(ch)) { + stream.eatWhile(/[\w\.]/); + return "number"; + } else if (ch == "#") { + if (stream.eat("*")) + return chain(stream, state, tokenComment); + if (ch == "#" && stream.match(/ *\[ *\[/)) + return chain(stream, state, tokenUnparsed); + stream.skipToEnd(); + return "comment"; + } else if (ch == '"') { + stream.skipTo(/"/); + return "comment"; + } else if (ch == "$") { + stream.eatWhile(/[$_a-z0-9A-Z\.{:]/); + stream.eatWhile(/}/); + state.beforeParams = true; + return "builtin"; + } else if (isOperatorChar.test(ch)) { + stream.eatWhile(isOperatorChar); + return "comment"; + } else { + stream.eatWhile(/[\w\$_{}\xa1-\uffff]/); + var word = stream.current().toLowerCase(); + if (keywords && keywords.propertyIsEnumerable(word)) + return "keyword"; + if (functions && functions.propertyIsEnumerable(word)) { + state.beforeParams = true; + return "keyword"; + } + return null; + } + } + function tokenString(quote) { + return function(stream, state) { + var escaped = false, next, end = false; + while ((next = stream.next()) != null) { + if (next == quote && !escaped) { + end = true; + break; + } + escaped = !escaped && next == "\\"; + } + if (end) state.tokenize = tokenBase; + return "string"; + }; + } + function tokenComment(stream, state) { + var maybeEnd = false, ch; + while (ch = stream.next()) { + if (ch == "#" && maybeEnd) { + state.tokenize = tokenBase; + break; + } + maybeEnd = (ch == "*"); + } + return "comment"; + } + function tokenUnparsed(stream, state) { + var maybeEnd = 0, ch; + while (ch = stream.next()) { + if (ch == "#" && maybeEnd == 2) { + state.tokenize = tokenBase; + break; + } + if (ch == "]") + maybeEnd++; + else if (ch != " ") + maybeEnd = 0; + } + return "meta"; + } + return { + startState: function() { + return { + tokenize: tokenBase, + beforeParams: false, + inParams: false + }; + }, + token: function(stream, state) { + if (stream.eatSpace()) return null; + return state.tokenize(stream, state); + } + }; +}); +CodeMirror.defineMIME("text/x-tcl", "tcl"); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/textile/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/textile/index.html new file mode 100644 index 0000000..42b156b --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/textile/index.html @@ -0,0 +1,191 @@ +<!doctype html> + +<title>CodeMirror: Textile mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="textile.js"></script> +<style>.CodeMirror {background: #f8f8f8;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/marijnh/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class="active" href="#">Textile</a> + </ul> +</div> + +<article> + <h2>Textile mode</h2> + <form><textarea id="code" name="code"> +h1. Textile Mode + +A paragraph without formatting. + +p. A simple Paragraph. + + +h2. Phrase Modifiers + +Here are some simple phrase modifiers: *strong*, _emphasis_, **bold**, and __italic__. + +A ??citation??, -deleted text-, +inserted text+, some ^superscript^, and some ~subscript~. + +A %span element% and @code element@ + +A "link":http://example.com, a "link with (alt text)":urlAlias + +[urlAlias]http://example.com/ + +An image: !http://example.com/image.png! and an image with a link: !http://example.com/image.png!:http://example.com + +A sentence with a footnote.[123] + +fn123. The footnote is defined here. + +Registered(r), Trademark(tm), and Copyright(c) + + +h2. Headers + +h1. Top level +h2. Second level +h3. Third level +h4. Fourth level +h5. Fifth level +h6. Lowest level + + +h2. Lists + +* An unordered list +** foo bar +*** foo bar +**** foo bar +** foo bar + +# An ordered list +## foo bar +### foo bar +#### foo bar +## foo bar + +- definition list := description +- another item := foo bar +- spanning ines := + foo bar + + foo bar =: + + +h2. Attributes + +Layouts and phrase modifiers can be modified with various kinds of attributes: alignment, CSS ID, CSS class names, language, padding, and CSS styles. + +h3. Alignment + +div<. left align +div>. right align + +h3. CSS ID and class name + +You are a %(my-id#my-classname) rad% person. + +h3. Language + +p[en_CA]. Strange weather, eh? + +h3. Horizontal Padding + +p(())). 2em left padding, 3em right padding + +h3. CSS styling + +p{background: red}. Fire! + + +h2. Table + +|_. Header 1 |_. Header 2 | +|{background:#ddd}. Cell with background| Normal | +|\2. Cell spanning 2 columns | +|/2. Cell spanning 2 rows |(cell-class). one | +| two | +|>. Right aligned cell |<. Left aligned cell | + + +h3. A table with attributes: + +table(#prices). +|Adults|$5| +|Children|$2| + + +h2. Code blocks + +bc. +function factorial(n) { + if (n === 0) { + return 1; + } + return n * factorial(n - 1); +} + +pre.. + ,,,,,, + o#'9MMHb':'-,o, + .oH":HH$' "' ' -*R&o, + dMMM*""'`' .oM"HM?. + ,MMM' "HLbd< ?&H\ + .:MH ."\ ` MM MM&b + . "*H - &MMMMMMMMMH: + . dboo MMMMMMMMMMMM. + . dMMMMMMb *MMMMMMMMMP. + . MMMMMMMP *MMMMMP . + `#MMMMM MM6P , + ' `MMMP" HM*`, + ' :MM .- , + '. `#?.. . ..' + -. . .- + ''-.oo,oo.-'' + +\. _(9> + \==_) + -'= + +h2. Temporarily disabling textile markup + +notextile. Don't __touch this!__ + +Surround text with double-equals to disable textile inline. Example: Use ==*asterisks*== for *strong* text. + + +h2. HTML + +Some block layouts are simply textile versions of HTML tags with the same name, like @div@, @pre@, and @p@. HTML tags can also exist on their own line: + +<section> + <h1>Title</h1> + <p>Hello!</p> +</section> + +</textarea></form> + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + lineNumbers: true, + mode: "text/x-textile" + }); + </script> + + <p><strong>MIME types defined:</strong> <code>text/x-textile</code>.</p> + + <p><strong>Parsing/Highlighting Tests:</strong> <a href="../../test/index.html#textile_*">normal</a>, <a href="../../test/index.html#verbose,textile_*">verbose</a>.</p> + +</article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/textile/test.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/textile/test.js new file mode 100644 index 0000000..49cdaf9 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/textile/test.js @@ -0,0 +1,417 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function() { + var mode = CodeMirror.getMode({tabSize: 4}, 'textile'); + function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); } + + MT('simpleParagraphs', + 'Some text.', + '', + 'Some more text.'); + + /* + * Phrase Modifiers + */ + + MT('em', + 'foo [em _bar_]'); + + MT('emBoogus', + 'code_mirror'); + + MT('strong', + 'foo [strong *bar*]'); + + MT('strongBogus', + '3 * 3 = 9'); + + MT('italic', + 'foo [em __bar__]'); + + MT('italicBogus', + 'code__mirror'); + + MT('bold', + 'foo [strong **bar**]'); + + MT('boldBogus', + '3 ** 3 = 27'); + + MT('simpleLink', + '[link "CodeMirror":http://codemirror.net]'); + + MT('referenceLink', + '[link "CodeMirror":code_mirror]', + 'Normal Text.', + '[link [[code_mirror]]http://codemirror.net]'); + + MT('footCite', + 'foo bar[qualifier [[1]]]'); + + MT('footCiteBogus', + 'foo bar[[1a2]]'); + + MT('special-characters', + 'Registered [tag (r)], ' + + 'Trademark [tag (tm)], and ' + + 'Copyright [tag (c)] 2008'); + + MT('cite', + "A book is [keyword ??The Count of Monte Cristo??] by Dumas."); + + MT('additionAndDeletion', + 'The news networks declared [negative -Al Gore-] ' + + '[positive +George W. Bush+] the winner in Florida.'); + + MT('subAndSup', + 'f(x, n) = log [builtin ~4~] x [builtin ^n^]'); + + MT('spanAndCode', + 'A [quote %span element%] and [atom @code element@]'); + + MT('spanBogus', + 'Percentage 25% is not a span.'); + + MT('citeBogus', + 'Question? is not a citation.'); + + MT('codeBogus', + 'user@example.com'); + + MT('subBogus', + '~username'); + + MT('supBogus', + 'foo ^ bar'); + + MT('deletionBogus', + '3 - 3 = 0'); + + MT('additionBogus', + '3 + 3 = 6'); + + MT('image', + 'An image: [string !http://www.example.com/image.png!]'); + + MT('imageWithAltText', + 'An image: [string !http://www.example.com/image.png (Alt Text)!]'); + + MT('imageWithUrl', + 'An image: [string !http://www.example.com/image.png!:http://www.example.com/]'); + + /* + * Headers + */ + + MT('h1', + '[header&header-1 h1. foo]'); + + MT('h2', + '[header&header-2 h2. foo]'); + + MT('h3', + '[header&header-3 h3. foo]'); + + MT('h4', + '[header&header-4 h4. foo]'); + + MT('h5', + '[header&header-5 h5. foo]'); + + MT('h6', + '[header&header-6 h6. foo]'); + + MT('h7Bogus', + 'h7. foo'); + + MT('multipleHeaders', + '[header&header-1 h1. Heading 1]', + '', + 'Some text.', + '', + '[header&header-2 h2. Heading 2]', + '', + 'More text.'); + + MT('h1inline', + '[header&header-1 h1. foo ][header&header-1&em _bar_][header&header-1 baz]'); + + /* + * Lists + */ + + MT('ul', + 'foo', + 'bar', + '', + '[variable-2 * foo]', + '[variable-2 * bar]'); + + MT('ulNoBlank', + 'foo', + 'bar', + '[variable-2 * foo]', + '[variable-2 * bar]'); + + MT('ol', + 'foo', + 'bar', + '', + '[variable-2 # foo]', + '[variable-2 # bar]'); + + MT('olNoBlank', + 'foo', + 'bar', + '[variable-2 # foo]', + '[variable-2 # bar]'); + + MT('ulFormatting', + '[variable-2 * ][variable-2&em _foo_][variable-2 bar]', + '[variable-2 * ][variable-2&strong *][variable-2&em&strong _foo_]' + + '[variable-2&strong *][variable-2 bar]', + '[variable-2 * ][variable-2&strong *foo*][variable-2 bar]'); + + MT('olFormatting', + '[variable-2 # ][variable-2&em _foo_][variable-2 bar]', + '[variable-2 # ][variable-2&strong *][variable-2&em&strong _foo_]' + + '[variable-2&strong *][variable-2 bar]', + '[variable-2 # ][variable-2&strong *foo*][variable-2 bar]'); + + MT('ulNested', + '[variable-2 * foo]', + '[variable-3 ** bar]', + '[keyword *** bar]', + '[variable-2 **** bar]', + '[variable-3 ** bar]'); + + MT('olNested', + '[variable-2 # foo]', + '[variable-3 ## bar]', + '[keyword ### bar]', + '[variable-2 #### bar]', + '[variable-3 ## bar]'); + + MT('ulNestedWithOl', + '[variable-2 * foo]', + '[variable-3 ## bar]', + '[keyword *** bar]', + '[variable-2 #### bar]', + '[variable-3 ** bar]'); + + MT('olNestedWithUl', + '[variable-2 # foo]', + '[variable-3 ** bar]', + '[keyword ### bar]', + '[variable-2 **** bar]', + '[variable-3 ## bar]'); + + MT('definitionList', + '[number - coffee := Hot ][number&em _and_][number black]', + '', + 'Normal text.'); + + MT('definitionListSpan', + '[number - coffee :=]', + '', + '[number Hot ][number&em _and_][number black =:]', + '', + 'Normal text.'); + + MT('boo', + '[number - dog := woof woof]', + '[number - cat := meow meow]', + '[number - whale :=]', + '[number Whale noises.]', + '', + '[number Also, ][number&em _splashing_][number . =:]'); + + /* + * Attributes + */ + + MT('divWithAttribute', + '[punctuation div][punctuation&attribute (#my-id)][punctuation . foo bar]'); + + MT('divWithAttributeAnd2emRightPadding', + '[punctuation div][punctuation&attribute (#my-id)((][punctuation . foo bar]'); + + MT('divWithClassAndId', + '[punctuation div][punctuation&attribute (my-class#my-id)][punctuation . foo bar]'); + + MT('paragraphWithCss', + 'p[attribute {color:red;}]. foo bar'); + + MT('paragraphNestedStyles', + 'p. [strong *foo ][strong&em _bar_][strong *]'); + + MT('paragraphWithLanguage', + 'p[attribute [[fr]]]. Parlez-vous français?'); + + MT('paragraphLeftAlign', + 'p[attribute <]. Left'); + + MT('paragraphRightAlign', + 'p[attribute >]. Right'); + + MT('paragraphRightAlign', + 'p[attribute =]. Center'); + + MT('paragraphJustified', + 'p[attribute <>]. Justified'); + + MT('paragraphWithLeftIndent1em', + 'p[attribute (]. Left'); + + MT('paragraphWithRightIndent1em', + 'p[attribute )]. Right'); + + MT('paragraphWithLeftIndent2em', + 'p[attribute ((]. Left'); + + MT('paragraphWithRightIndent2em', + 'p[attribute ))]. Right'); + + MT('paragraphWithLeftIndent3emRightIndent2em', + 'p[attribute ((())]. Right'); + + MT('divFormatting', + '[punctuation div. ][punctuation&strong *foo ]' + + '[punctuation&strong&em _bar_][punctuation&strong *]'); + + MT('phraseModifierAttributes', + 'p[attribute (my-class)]. This is a paragraph that has a class and' + + ' this [em _][em&attribute (#special-phrase)][em emphasized phrase_]' + + ' has an id.'); + + MT('linkWithClass', + '[link "(my-class). This is a link with class":http://redcloth.org]'); + + /* + * Layouts + */ + + MT('paragraphLayouts', + 'p. This is one paragraph.', + '', + 'p. This is another.'); + + MT('div', + '[punctuation div. foo bar]'); + + MT('pre', + '[operator pre. Text]'); + + MT('bq.', + '[bracket bq. foo bar]', + '', + 'Normal text.'); + + MT('footnote', + '[variable fn123. foo ][variable&strong *bar*]'); + + /* + * Spanning Layouts + */ + + MT('bq..ThenParagraph', + '[bracket bq.. foo bar]', + '', + '[bracket More quote.]', + 'p. Normal Text'); + + MT('bq..ThenH1', + '[bracket bq.. foo bar]', + '', + '[bracket More quote.]', + '[header&header-1 h1. Header Text]'); + + MT('bc..ThenParagraph', + '[atom bc.. # Some ruby code]', + '[atom obj = {foo: :bar}]', + '[atom puts obj]', + '', + '[atom obj[[:love]] = "*love*"]', + '[atom puts obj.love.upcase]', + '', + 'p. Normal text.'); + + MT('fn1..ThenParagraph', + '[variable fn1.. foo bar]', + '', + '[variable More.]', + 'p. Normal Text'); + + MT('pre..ThenParagraph', + '[operator pre.. foo bar]', + '', + '[operator More.]', + 'p. Normal Text'); + + /* + * Tables + */ + + MT('table', + '[variable-3&operator |_. name |_. age|]', + '[variable-3 |][variable-3&strong *Walter*][variable-3 | 5 |]', + '[variable-3 |Florence| 6 |]', + '', + 'p. Normal text.'); + + MT('tableWithAttributes', + '[variable-3&operator |_. name |_. age|]', + '[variable-3 |][variable-3&attribute /2.][variable-3 Jim |]', + '[variable-3 |][variable-3&attribute \\2{color: red}.][variable-3 Sam |]'); + + /* + * HTML + */ + + MT('html', + '[comment <div id="wrapper">]', + '[comment <section id="introduction">]', + '', + '[header&header-1 h1. Welcome]', + '', + '[variable-2 * Item one]', + '[variable-2 * Item two]', + '', + '[comment <a href="http://example.com">Example</a>]', + '', + '[comment </section>]', + '[comment </div>]'); + + MT('inlineHtml', + 'I can use HTML directly in my [comment <span class="youbetcha">Textile</span>].'); + + /* + * No-Textile + */ + + MT('notextile', + '[string-2 notextile. *No* formatting]'); + + MT('notextileInline', + 'Use [string-2 ==*asterisks*==] for [strong *strong*] text.'); + + MT('notextileWithPre', + '[operator pre. *No* formatting]'); + + MT('notextileWithSpanningPre', + '[operator pre.. *No* formatting]', + '', + '[operator *No* formatting]'); + + /* Only toggling phrases between non-word chars. */ + + MT('phrase-in-word', + 'foo_bar_baz'); + + MT('phrase-non-word', + '[negative -x-] aaa-bbb ccc-ddd [negative -eee-] fff [negative -ggg-]'); + + MT('phrase-lone-dash', + 'foo - bar - baz'); +})(); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/textile/textile.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/textile/textile.js new file mode 100644 index 0000000..a6f7576 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/textile/textile.js @@ -0,0 +1,469 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") { // CommonJS + mod(require("../../lib/codemirror")); + } else if (typeof define == "function" && define.amd) { // AMD + define(["../../lib/codemirror"], mod); + } else { // Plain browser env + mod(CodeMirror); + } +})(function(CodeMirror) { + "use strict"; + + var TOKEN_STYLES = { + addition: "positive", + attributes: "attribute", + bold: "strong", + cite: "keyword", + code: "atom", + definitionList: "number", + deletion: "negative", + div: "punctuation", + em: "em", + footnote: "variable", + footCite: "qualifier", + header: "header", + html: "comment", + image: "string", + italic: "em", + link: "link", + linkDefinition: "link", + list1: "variable-2", + list2: "variable-3", + list3: "keyword", + notextile: "string-2", + pre: "operator", + p: "property", + quote: "bracket", + span: "quote", + specialChar: "tag", + strong: "strong", + sub: "builtin", + sup: "builtin", + table: "variable-3", + tableHeading: "operator" + }; + + function startNewLine(stream, state) { + state.mode = Modes.newLayout; + state.tableHeading = false; + + if (state.layoutType === "definitionList" && state.spanningLayout && + stream.match(RE("definitionListEnd"), false)) + state.spanningLayout = false; + } + + function handlePhraseModifier(stream, state, ch) { + if (ch === "_") { + if (stream.eat("_")) + return togglePhraseModifier(stream, state, "italic", /__/, 2); + else + return togglePhraseModifier(stream, state, "em", /_/, 1); + } + + if (ch === "*") { + if (stream.eat("*")) { + return togglePhraseModifier(stream, state, "bold", /\*\*/, 2); + } + return togglePhraseModifier(stream, state, "strong", /\*/, 1); + } + + if (ch === "[") { + if (stream.match(/\d+\]/)) state.footCite = true; + return tokenStyles(state); + } + + if (ch === "(") { + var spec = stream.match(/^(r|tm|c)\)/); + if (spec) + return tokenStylesWith(state, TOKEN_STYLES.specialChar); + } + + if (ch === "<" && stream.match(/(\w+)[^>]+>[^<]+<\/\1>/)) + return tokenStylesWith(state, TOKEN_STYLES.html); + + if (ch === "?" && stream.eat("?")) + return togglePhraseModifier(stream, state, "cite", /\?\?/, 2); + + if (ch === "=" && stream.eat("=")) + return togglePhraseModifier(stream, state, "notextile", /==/, 2); + + if (ch === "-" && !stream.eat("-")) + return togglePhraseModifier(stream, state, "deletion", /-/, 1); + + if (ch === "+") + return togglePhraseModifier(stream, state, "addition", /\+/, 1); + + if (ch === "~") + return togglePhraseModifier(stream, state, "sub", /~/, 1); + + if (ch === "^") + return togglePhraseModifier(stream, state, "sup", /\^/, 1); + + if (ch === "%") + return togglePhraseModifier(stream, state, "span", /%/, 1); + + if (ch === "@") + return togglePhraseModifier(stream, state, "code", /@/, 1); + + if (ch === "!") { + var type = togglePhraseModifier(stream, state, "image", /(?:\([^\)]+\))?!/, 1); + stream.match(/^:\S+/); // optional Url portion + return type; + } + return tokenStyles(state); + } + + function togglePhraseModifier(stream, state, phraseModifier, closeRE, openSize) { + var charBefore = stream.pos > openSize ? stream.string.charAt(stream.pos - openSize - 1) : null; + var charAfter = stream.peek(); + if (state[phraseModifier]) { + if ((!charAfter || /\W/.test(charAfter)) && charBefore && /\S/.test(charBefore)) { + var type = tokenStyles(state); + state[phraseModifier] = false; + return type; + } + } else if ((!charBefore || /\W/.test(charBefore)) && charAfter && /\S/.test(charAfter) && + stream.match(new RegExp("^.*\\S" + closeRE.source + "(?:\\W|$)"), false)) { + state[phraseModifier] = true; + state.mode = Modes.attributes; + } + return tokenStyles(state); + }; + + function tokenStyles(state) { + var disabled = textileDisabled(state); + if (disabled) return disabled; + + var styles = []; + if (state.layoutType) styles.push(TOKEN_STYLES[state.layoutType]); + + styles = styles.concat(activeStyles( + state, "addition", "bold", "cite", "code", "deletion", "em", "footCite", + "image", "italic", "link", "span", "strong", "sub", "sup", "table", "tableHeading")); + + if (state.layoutType === "header") + styles.push(TOKEN_STYLES.header + "-" + state.header); + + return styles.length ? styles.join(" ") : null; + } + + function textileDisabled(state) { + var type = state.layoutType; + + switch(type) { + case "notextile": + case "code": + case "pre": + return TOKEN_STYLES[type]; + default: + if (state.notextile) + return TOKEN_STYLES.notextile + (type ? (" " + TOKEN_STYLES[type]) : ""); + return null; + } + } + + function tokenStylesWith(state, extraStyles) { + var disabled = textileDisabled(state); + if (disabled) return disabled; + + var type = tokenStyles(state); + if (extraStyles) + return type ? (type + " " + extraStyles) : extraStyles; + else + return type; + } + + function activeStyles(state) { + var styles = []; + for (var i = 1; i < arguments.length; ++i) { + if (state[arguments[i]]) + styles.push(TOKEN_STYLES[arguments[i]]); + } + return styles; + } + + function blankLine(state) { + var spanningLayout = state.spanningLayout, type = state.layoutType; + + for (var key in state) if (state.hasOwnProperty(key)) + delete state[key]; + + state.mode = Modes.newLayout; + if (spanningLayout) { + state.layoutType = type; + state.spanningLayout = true; + } + } + + var REs = { + cache: {}, + single: { + bc: "bc", + bq: "bq", + definitionList: /- [^(?::=)]+:=+/, + definitionListEnd: /.*=:\s*$/, + div: "div", + drawTable: /\|.*\|/, + foot: /fn\d+/, + header: /h[1-6]/, + html: /\s*<(?:\/)?(\w+)(?:[^>]+)?>(?:[^<]+<\/\1>)?/, + link: /[^"]+":\S/, + linkDefinition: /\[[^\s\]]+\]\S+/, + list: /(?:#+|\*+)/, + notextile: "notextile", + para: "p", + pre: "pre", + table: "table", + tableCellAttributes: /[\/\\]\d+/, + tableHeading: /\|_\./, + tableText: /[^"_\*\[\(\?\+~\^%@|-]+/, + text: /[^!"_=\*\[\(<\?\+~\^%@-]+/ + }, + attributes: { + align: /(?:<>|<|>|=)/, + selector: /\([^\(][^\)]+\)/, + lang: /\[[^\[\]]+\]/, + pad: /(?:\(+|\)+){1,2}/, + css: /\{[^\}]+\}/ + }, + createRe: function(name) { + switch (name) { + case "drawTable": + return REs.makeRe("^", REs.single.drawTable, "$"); + case "html": + return REs.makeRe("^", REs.single.html, "(?:", REs.single.html, ")*", "$"); + case "linkDefinition": + return REs.makeRe("^", REs.single.linkDefinition, "$"); + case "listLayout": + return REs.makeRe("^", REs.single.list, RE("allAttributes"), "*\\s+"); + case "tableCellAttributes": + return REs.makeRe("^", REs.choiceRe(REs.single.tableCellAttributes, + RE("allAttributes")), "+\\."); + case "type": + return REs.makeRe("^", RE("allTypes")); + case "typeLayout": + return REs.makeRe("^", RE("allTypes"), RE("allAttributes"), + "*\\.\\.?", "(\\s+|$)"); + case "attributes": + return REs.makeRe("^", RE("allAttributes"), "+"); + + case "allTypes": + return REs.choiceRe(REs.single.div, REs.single.foot, + REs.single.header, REs.single.bc, REs.single.bq, + REs.single.notextile, REs.single.pre, REs.single.table, + REs.single.para); + + case "allAttributes": + return REs.choiceRe(REs.attributes.selector, REs.attributes.css, + REs.attributes.lang, REs.attributes.align, REs.attributes.pad); + + default: + return REs.makeRe("^", REs.single[name]); + } + }, + makeRe: function() { + var pattern = ""; + for (var i = 0; i < arguments.length; ++i) { + var arg = arguments[i]; + pattern += (typeof arg === "string") ? arg : arg.source; + } + return new RegExp(pattern); + }, + choiceRe: function() { + var parts = [arguments[0]]; + for (var i = 1; i < arguments.length; ++i) { + parts[i * 2 - 1] = "|"; + parts[i * 2] = arguments[i]; + } + + parts.unshift("(?:"); + parts.push(")"); + return REs.makeRe.apply(null, parts); + } + }; + + function RE(name) { + return (REs.cache[name] || (REs.cache[name] = REs.createRe(name))); + } + + var Modes = { + newLayout: function(stream, state) { + if (stream.match(RE("typeLayout"), false)) { + state.spanningLayout = false; + return (state.mode = Modes.blockType)(stream, state); + } + var newMode; + if (!textileDisabled(state)) { + if (stream.match(RE("listLayout"), false)) + newMode = Modes.list; + else if (stream.match(RE("drawTable"), false)) + newMode = Modes.table; + else if (stream.match(RE("linkDefinition"), false)) + newMode = Modes.linkDefinition; + else if (stream.match(RE("definitionList"))) + newMode = Modes.definitionList; + else if (stream.match(RE("html"), false)) + newMode = Modes.html; + } + return (state.mode = (newMode || Modes.text))(stream, state); + }, + + blockType: function(stream, state) { + var match, type; + state.layoutType = null; + + if (match = stream.match(RE("type"))) + type = match[0]; + else + return (state.mode = Modes.text)(stream, state); + + if (match = type.match(RE("header"))) { + state.layoutType = "header"; + state.header = parseInt(match[0][1]); + } else if (type.match(RE("bq"))) { + state.layoutType = "quote"; + } else if (type.match(RE("bc"))) { + state.layoutType = "code"; + } else if (type.match(RE("foot"))) { + state.layoutType = "footnote"; + } else if (type.match(RE("notextile"))) { + state.layoutType = "notextile"; + } else if (type.match(RE("pre"))) { + state.layoutType = "pre"; + } else if (type.match(RE("div"))) { + state.layoutType = "div"; + } else if (type.match(RE("table"))) { + state.layoutType = "table"; + } + + state.mode = Modes.attributes; + return tokenStyles(state); + }, + + text: function(stream, state) { + if (stream.match(RE("text"))) return tokenStyles(state); + + var ch = stream.next(); + if (ch === '"') + return (state.mode = Modes.link)(stream, state); + return handlePhraseModifier(stream, state, ch); + }, + + attributes: function(stream, state) { + state.mode = Modes.layoutLength; + + if (stream.match(RE("attributes"))) + return tokenStylesWith(state, TOKEN_STYLES.attributes); + else + return tokenStyles(state); + }, + + layoutLength: function(stream, state) { + if (stream.eat(".") && stream.eat(".")) + state.spanningLayout = true; + + state.mode = Modes.text; + return tokenStyles(state); + }, + + list: function(stream, state) { + var match = stream.match(RE("list")); + state.listDepth = match[0].length; + var listMod = (state.listDepth - 1) % 3; + if (!listMod) + state.layoutType = "list1"; + else if (listMod === 1) + state.layoutType = "list2"; + else + state.layoutType = "list3"; + + state.mode = Modes.attributes; + return tokenStyles(state); + }, + + link: function(stream, state) { + state.mode = Modes.text; + if (stream.match(RE("link"))) { + stream.match(/\S+/); + return tokenStylesWith(state, TOKEN_STYLES.link); + } + return tokenStyles(state); + }, + + linkDefinition: function(stream, state) { + stream.skipToEnd(); + return tokenStylesWith(state, TOKEN_STYLES.linkDefinition); + }, + + definitionList: function(stream, state) { + stream.match(RE("definitionList")); + + state.layoutType = "definitionList"; + + if (stream.match(/\s*$/)) + state.spanningLayout = true; + else + state.mode = Modes.attributes; + + return tokenStyles(state); + }, + + html: function(stream, state) { + stream.skipToEnd(); + return tokenStylesWith(state, TOKEN_STYLES.html); + }, + + table: function(stream, state) { + state.layoutType = "table"; + return (state.mode = Modes.tableCell)(stream, state); + }, + + tableCell: function(stream, state) { + if (stream.match(RE("tableHeading"))) + state.tableHeading = true; + else + stream.eat("|"); + + state.mode = Modes.tableCellAttributes; + return tokenStyles(state); + }, + + tableCellAttributes: function(stream, state) { + state.mode = Modes.tableText; + + if (stream.match(RE("tableCellAttributes"))) + return tokenStylesWith(state, TOKEN_STYLES.attributes); + else + return tokenStyles(state); + }, + + tableText: function(stream, state) { + if (stream.match(RE("tableText"))) + return tokenStyles(state); + + if (stream.peek() === "|") { // end of cell + state.mode = Modes.tableCell; + return tokenStyles(state); + } + return handlePhraseModifier(stream, state, stream.next()); + } + }; + + CodeMirror.defineMode("textile", function() { + return { + startState: function() { + return { mode: Modes.newLayout }; + }, + token: function(stream, state) { + if (stream.sol()) startNewLine(stream, state); + return state.mode(stream, state); + }, + blankLine: blankLine + }; + }); + + CodeMirror.defineMIME("text/x-textile", "textile"); +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/tiddlywiki/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/tiddlywiki/index.html new file mode 100644 index 0000000..77dd045 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/tiddlywiki/index.html @@ -0,0 +1,154 @@ +<!doctype html> + +<title>CodeMirror: TiddlyWiki mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<link rel="stylesheet" href="tiddlywiki.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../../addon/edit/matchbrackets.js"></script> +<script src="tiddlywiki.js"></script> +<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">TiddlyWiki</a> + </ul> +</div> + +<article> +<h2>TiddlyWiki mode</h2> + + +<div><textarea id="code" name="code"> +!TiddlyWiki Formatting +* Rendered versions can be found at: http://www.tiddlywiki.com/#Reference + +|!Option | !Syntax | +|bold font | ''bold'' | +|italic type | //italic// | +|underlined text | __underlined__ | +|strikethrough text | --strikethrough-- | +|superscript text | super^^script^^ | +|subscript text | sub~~script~~ | +|highlighted text | @@highlighted@@ | +|preformatted text | {{{preformatted}}} | + +!Block Elements +<<< +!Heading 1 + +!!Heading 2 + +!!!Heading 3 + +!!!!Heading 4 + +!!!!!Heading 5 +<<< + +!!Lists +<<< +* unordered list, level 1 +** unordered list, level 2 +*** unordered list, level 3 + +# ordered list, level 1 +## ordered list, level 2 +### unordered list, level 3 + +; definition list, term +: definition list, description +<<< + +!!Blockquotes +<<< +> blockquote, level 1 +>> blockquote, level 2 +>>> blockquote, level 3 + +> blockquote +<<< + +!!Preformatted Text +<<< +{{{ +preformatted (e.g. code) +}}} +<<< + +!!Code Sections +<<< +{{{ +Text style code +}}} + +//{{{ +JS styled code. TiddlyWiki mixed mode should support highlighter switching in the future. +//}}} + +<!--{{{--> +XML styled code. TiddlyWiki mixed mode should support highlighter switching in the future. +<!--}}}--> +<<< + +!!Tables +<<< +|CssClass|k +|!heading column 1|!heading column 2| +|row 1, column 1|row 1, column 2| +|row 2, column 1|row 2, column 2| +|>|COLSPAN| +|ROWSPAN| ... | +|~| ... | +|CssProperty:value;...| ... | +|caption|c + +''Annotation:'' +* The {{{>}}} marker creates a "colspan", causing the current cell to merge with the one to the right. +* The {{{~}}} marker creates a "rowspan", causing the current cell to merge with the one above. +<<< +!!Images /% TODO %/ +cf. [[TiddlyWiki.com|http://www.tiddlywiki.com/#EmbeddedImages]] + +!Hyperlinks +* [[WikiWords|WikiWord]] are automatically transformed to hyperlinks to the respective tiddler +** the automatic transformation can be suppressed by preceding the respective WikiWord with a tilde ({{{~}}}): {{{~WikiWord}}} +* [[PrettyLinks]] are enclosed in square brackets and contain the desired tiddler name: {{{[[tiddler name]]}}} +** optionally, a custom title or description can be added, separated by a pipe character ({{{|}}}): {{{[[title|target]]}}}<br>'''N.B.:''' In this case, the target can also be any website (i.e. URL). + +!Custom Styling +* {{{@@CssProperty:value;CssProperty:value;...@@}}}<br>''N.B.:'' CSS color definitions should use lowercase letters to prevent the inadvertent creation of WikiWords. +* <html><code>{{customCssClass{...}}}</code></html> +* raw HTML can be inserted by enclosing the respective code in HTML tags: {{{<html> ... </html>}}} + +!Special Markers +* {{{<br>}}} forces a manual line break +* {{{----}}} creates a horizontal ruler +* [[HTML entities|http://www.tiddlywiki.com/#HtmlEntities]] +* [[HTML entities local|HtmlEntities]] +* {{{<<macroName>>}}} calls the respective [[macro|Macros]] +* To hide text within a tiddler so that it is not displayed, it can be wrapped in {{{/%}}} and {{{%/}}}.<br/>This can be a useful trick for hiding drafts or annotating complex markup. +* To prevent wiki markup from taking effect for a particular section, that section can be enclosed in three double quotes: e.g. {{{"""WikiWord"""}}}. +</textarea></div> + + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + mode: 'tiddlywiki', + lineNumbers: true, + matchBrackets: true + }); + </script> + + <p>TiddlyWiki mode supports a single configuration.</p> + + <p><strong>MIME types defined:</strong> <code>text/x-tiddlywiki</code>.</p> + </article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/tiddlywiki/tiddlywiki.css b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/tiddlywiki/tiddlywiki.css similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/tiddlywiki/tiddlywiki.css rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/tiddlywiki/tiddlywiki.css diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/tiddlywiki/tiddlywiki.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/tiddlywiki/tiddlywiki.js new file mode 100644 index 0000000..1a3b3bc --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/tiddlywiki/tiddlywiki.js @@ -0,0 +1,308 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +/*** + |''Name''|tiddlywiki.js| + |''Description''|Enables TiddlyWikiy syntax highlighting using CodeMirror| + |''Author''|PMario| + |''Version''|0.1.7| + |''Status''|''stable''| + |''Source''|[[GitHub|https://github.com/pmario/CodeMirror2/blob/tw-syntax/mode/tiddlywiki]]| + |''Documentation''|http://codemirror.tiddlyspace.com/| + |''License''|[[MIT License|http://www.opensource.org/licenses/mit-license.php]]| + |''CoreVersion''|2.5.0| + |''Requires''|codemirror.js| + |''Keywords''|syntax highlighting color code mirror codemirror| + ! Info + CoreVersion parameter is needed for TiddlyWiki only! +***/ + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("tiddlywiki", function () { + // Tokenizer + var textwords = {}; + + var keywords = { + "allTags": true, "closeAll": true, "list": true, + "newJournal": true, "newTiddler": true, + "permaview": true, "saveChanges": true, + "search": true, "slider": true, "tabs": true, + "tag": true, "tagging": true, "tags": true, + "tiddler": true, "timeline": true, + "today": true, "version": true, "option": true, + "with": true, "filter": true + }; + + var isSpaceName = /[\w_\-]/i, + reHR = /^\-\-\-\-+$/, // <hr> + reWikiCommentStart = /^\/\*\*\*$/, // /*** + reWikiCommentStop = /^\*\*\*\/$/, // ***/ + reBlockQuote = /^<<<$/, + + reJsCodeStart = /^\/\/\{\{\{$/, // //{{{ js block start + reJsCodeStop = /^\/\/\}\}\}$/, // //}}} js stop + reXmlCodeStart = /^<!--\{\{\{-->$/, // xml block start + reXmlCodeStop = /^<!--\}\}\}-->$/, // xml stop + + reCodeBlockStart = /^\{\{\{$/, // {{{ TW text div block start + reCodeBlockStop = /^\}\}\}$/, // }}} TW text stop + + reUntilCodeStop = /.*?\}\}\}/; + + function chain(stream, state, f) { + state.tokenize = f; + return f(stream, state); + } + + function tokenBase(stream, state) { + var sol = stream.sol(), ch = stream.peek(); + + state.block = false; // indicates the start of a code block. + + // check start of blocks + if (sol && /[<\/\*{}\-]/.test(ch)) { + if (stream.match(reCodeBlockStart)) { + state.block = true; + return chain(stream, state, twTokenCode); + } + if (stream.match(reBlockQuote)) + return 'quote'; + if (stream.match(reWikiCommentStart) || stream.match(reWikiCommentStop)) + return 'comment'; + if (stream.match(reJsCodeStart) || stream.match(reJsCodeStop) || stream.match(reXmlCodeStart) || stream.match(reXmlCodeStop)) + return 'comment'; + if (stream.match(reHR)) + return 'hr'; + } + + stream.next(); + if (sol && /[\/\*!#;:>|]/.test(ch)) { + if (ch == "!") { // tw header + stream.skipToEnd(); + return "header"; + } + if (ch == "*") { // tw list + stream.eatWhile('*'); + return "comment"; + } + if (ch == "#") { // tw numbered list + stream.eatWhile('#'); + return "comment"; + } + if (ch == ";") { // definition list, term + stream.eatWhile(';'); + return "comment"; + } + if (ch == ":") { // definition list, description + stream.eatWhile(':'); + return "comment"; + } + if (ch == ">") { // single line quote + stream.eatWhile(">"); + return "quote"; + } + if (ch == '|') + return 'header'; + } + + if (ch == '{' && stream.match(/\{\{/)) + return chain(stream, state, twTokenCode); + + // rudimentary html:// file:// link matching. TW knows much more ... + if (/[hf]/i.test(ch) && + /[ti]/i.test(stream.peek()) && + stream.match(/\b(ttps?|tp|ile):\/\/[\-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i)) + return "link"; + + // just a little string indicator, don't want to have the whole string covered + if (ch == '"') + return 'string'; + + if (ch == '~') // _no_ CamelCase indicator should be bold + return 'brace'; + + if (/[\[\]]/.test(ch) && stream.match(ch)) // check for [[..]] + return 'brace'; + + if (ch == "@") { // check for space link. TODO fix @@...@@ highlighting + stream.eatWhile(isSpaceName); + return "link"; + } + + if (/\d/.test(ch)) { // numbers + stream.eatWhile(/\d/); + return "number"; + } + + if (ch == "/") { // tw invisible comment + if (stream.eat("%")) { + return chain(stream, state, twTokenComment); + } else if (stream.eat("/")) { // + return chain(stream, state, twTokenEm); + } + } + + if (ch == "_" && stream.eat("_")) // tw underline + return chain(stream, state, twTokenUnderline); + + // strikethrough and mdash handling + if (ch == "-" && stream.eat("-")) { + // if strikethrough looks ugly, change CSS. + if (stream.peek() != ' ') + return chain(stream, state, twTokenStrike); + // mdash + if (stream.peek() == ' ') + return 'brace'; + } + + if (ch == "'" && stream.eat("'")) // tw bold + return chain(stream, state, twTokenStrong); + + if (ch == "<" && stream.eat("<")) // tw macro + return chain(stream, state, twTokenMacro); + + // core macro handling + stream.eatWhile(/[\w\$_]/); + return textwords.propertyIsEnumerable(stream.current()) ? "keyword" : null + } + + // tw invisible comment + function twTokenComment(stream, state) { + var maybeEnd = false, ch; + while (ch = stream.next()) { + if (ch == "/" && maybeEnd) { + state.tokenize = tokenBase; + break; + } + maybeEnd = (ch == "%"); + } + return "comment"; + } + + // tw strong / bold + function twTokenStrong(stream, state) { + var maybeEnd = false, + ch; + while (ch = stream.next()) { + if (ch == "'" && maybeEnd) { + state.tokenize = tokenBase; + break; + } + maybeEnd = (ch == "'"); + } + return "strong"; + } + + // tw code + function twTokenCode(stream, state) { + var sb = state.block; + + if (sb && stream.current()) { + return "comment"; + } + + if (!sb && stream.match(reUntilCodeStop)) { + state.tokenize = tokenBase; + return "comment"; + } + + if (sb && stream.sol() && stream.match(reCodeBlockStop)) { + state.tokenize = tokenBase; + return "comment"; + } + + stream.next(); + return "comment"; + } + + // tw em / italic + function twTokenEm(stream, state) { + var maybeEnd = false, + ch; + while (ch = stream.next()) { + if (ch == "/" && maybeEnd) { + state.tokenize = tokenBase; + break; + } + maybeEnd = (ch == "/"); + } + return "em"; + } + + // tw underlined text + function twTokenUnderline(stream, state) { + var maybeEnd = false, + ch; + while (ch = stream.next()) { + if (ch == "_" && maybeEnd) { + state.tokenize = tokenBase; + break; + } + maybeEnd = (ch == "_"); + } + return "underlined"; + } + + // tw strike through text looks ugly + // change CSS if needed + function twTokenStrike(stream, state) { + var maybeEnd = false, ch; + + while (ch = stream.next()) { + if (ch == "-" && maybeEnd) { + state.tokenize = tokenBase; + break; + } + maybeEnd = (ch == "-"); + } + return "strikethrough"; + } + + // macro + function twTokenMacro(stream, state) { + if (stream.current() == '<<') { + return 'macro'; + } + + var ch = stream.next(); + if (!ch) { + state.tokenize = tokenBase; + return null; + } + if (ch == ">") { + if (stream.peek() == '>') { + stream.next(); + state.tokenize = tokenBase; + return "macro"; + } + } + + stream.eatWhile(/[\w\$_]/); + return keywords.propertyIsEnumerable(stream.current()) ? "keyword" : null + } + + // Interface + return { + startState: function () { + return {tokenize: tokenBase}; + }, + + token: function (stream, state) { + if (stream.eatSpace()) return null; + var style = state.tokenize(stream, state); + return style; + } + }; +}); + +CodeMirror.defineMIME("text/x-tiddlywiki", "tiddlywiki"); +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/tiki/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/tiki/index.html new file mode 100644 index 0000000..091c5fb --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/tiki/index.html @@ -0,0 +1,95 @@ +<!doctype html> + +<title>CodeMirror: Tiki wiki mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<link rel="stylesheet" href="tiki.css"> +<script src="../../lib/codemirror.js"></script> +<script src="tiki.js"></script> +<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Tiki wiki</a> + </ul> +</div> + +<article> +<h2>Tiki wiki mode</h2> + + +<div><textarea id="code" name="code"> +Headings +!Header 1 +!!Header 2 +!!!Header 3 +!!!!Header 4 +!!!!!Header 5 +!!!!!!Header 6 + +Styling +-=titlebar=- +^^ Box on multi +lines +of content^^ +__bold__ +''italic'' +===underline=== +::center:: +--Line Through-- + +Operators +~np~No parse~/np~ + +Link +[link|desc|nocache] + +Wiki +((Wiki)) +((Wiki|desc)) +((Wiki|desc|timeout)) + +Table +||row1 col1|row1 col2|row1 col3 +row2 col1|row2 col2|row2 col3 +row3 col1|row3 col2|row3 col3|| + +Lists: +*bla +**bla-1 +++continue-bla-1 +***bla-2 +++continue-bla-1 +*bla ++continue-bla +#bla +** tra-la-la ++continue-bla +#bla + +Plugin (standard): +{PLUGIN(attr="my attr")} +Plugin Body +{PLUGIN} + +Plugin (inline): +{plugin attr="my attr"} +</textarea></div> + +<script type="text/javascript"> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + mode: 'tiki', + lineNumbers: true + }); +</script> + +</article> diff --git a/Mobile.Search.Web/Scripts/CodeMirror/mode/tiki/tiki.css b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/tiki/tiki.css similarity index 100% rename from Mobile.Search.Web/Scripts/CodeMirror/mode/tiki/tiki.css rename to Mobile.WYSIWYG/Scripts/CodeMirror/mode/tiki/tiki.css diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/tiki/tiki.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/tiki/tiki.js new file mode 100644 index 0000000..5e05b1f --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/tiki/tiki.js @@ -0,0 +1,312 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode('tiki', function(config) { + function inBlock(style, terminator, returnTokenizer) { + return function(stream, state) { + while (!stream.eol()) { + if (stream.match(terminator)) { + state.tokenize = inText; + break; + } + stream.next(); + } + + if (returnTokenizer) state.tokenize = returnTokenizer; + + return style; + }; + } + + function inLine(style) { + return function(stream, state) { + while(!stream.eol()) { + stream.next(); + } + state.tokenize = inText; + return style; + }; + } + + function inText(stream, state) { + function chain(parser) { + state.tokenize = parser; + return parser(stream, state); + } + + var sol = stream.sol(); + var ch = stream.next(); + + //non start of line + switch (ch) { //switch is generally much faster than if, so it is used here + case "{": //plugin + stream.eat("/"); + stream.eatSpace(); + stream.eatWhile(/[^\s\u00a0=\"\'\/?(}]/); + state.tokenize = inPlugin; + return "tag"; + case "_": //bold + if (stream.eat("_")) + return chain(inBlock("strong", "__", inText)); + break; + case "'": //italics + if (stream.eat("'")) + return chain(inBlock("em", "''", inText)); + break; + case "(":// Wiki Link + if (stream.eat("(")) + return chain(inBlock("variable-2", "))", inText)); + break; + case "[":// Weblink + return chain(inBlock("variable-3", "]", inText)); + break; + case "|": //table + if (stream.eat("|")) + return chain(inBlock("comment", "||")); + break; + case "-": + if (stream.eat("=")) {//titleBar + return chain(inBlock("header string", "=-", inText)); + } else if (stream.eat("-")) {//deleted + return chain(inBlock("error tw-deleted", "--", inText)); + } + break; + case "=": //underline + if (stream.match("==")) + return chain(inBlock("tw-underline", "===", inText)); + break; + case ":": + if (stream.eat(":")) + return chain(inBlock("comment", "::")); + break; + case "^": //box + return chain(inBlock("tw-box", "^")); + break; + case "~": //np + if (stream.match("np~")) + return chain(inBlock("meta", "~/np~")); + break; + } + + //start of line types + if (sol) { + switch (ch) { + case "!": //header at start of line + if (stream.match('!!!!!')) { + return chain(inLine("header string")); + } else if (stream.match('!!!!')) { + return chain(inLine("header string")); + } else if (stream.match('!!!')) { + return chain(inLine("header string")); + } else if (stream.match('!!')) { + return chain(inLine("header string")); + } else { + return chain(inLine("header string")); + } + break; + case "*": //unordered list line item, or <li /> at start of line + case "#": //ordered list line item, or <li /> at start of line + case "+": //ordered list line item, or <li /> at start of line + return chain(inLine("tw-listitem bracket")); + break; + } + } + + //stream.eatWhile(/[&{]/); was eating up plugins, turned off to act less like html and more like tiki + return null; + } + + var indentUnit = config.indentUnit; + + // Return variables for tokenizers + var pluginName, type; + function inPlugin(stream, state) { + var ch = stream.next(); + var peek = stream.peek(); + + if (ch == "}") { + state.tokenize = inText; + //type = ch == ")" ? "endPlugin" : "selfclosePlugin"; inPlugin + return "tag"; + } else if (ch == "(" || ch == ")") { + return "bracket"; + } else if (ch == "=") { + type = "equals"; + + if (peek == ">") { + ch = stream.next(); + peek = stream.peek(); + } + + //here we detect values directly after equal character with no quotes + if (!/[\'\"]/.test(peek)) { + state.tokenize = inAttributeNoQuote(); + } + //end detect values + + return "operator"; + } else if (/[\'\"]/.test(ch)) { + state.tokenize = inAttribute(ch); + return state.tokenize(stream, state); + } else { + stream.eatWhile(/[^\s\u00a0=\"\'\/?]/); + return "keyword"; + } + } + + function inAttribute(quote) { + return function(stream, state) { + while (!stream.eol()) { + if (stream.next() == quote) { + state.tokenize = inPlugin; + break; + } + } + return "string"; + }; + } + + function inAttributeNoQuote() { + return function(stream, state) { + while (!stream.eol()) { + var ch = stream.next(); + var peek = stream.peek(); + if (ch == " " || ch == "," || /[ )}]/.test(peek)) { + state.tokenize = inPlugin; + break; + } + } + return "string"; +}; + } + +var curState, setStyle; +function pass() { + for (var i = arguments.length - 1; i >= 0; i--) curState.cc.push(arguments[i]); +} + +function cont() { + pass.apply(null, arguments); + return true; +} + +function pushContext(pluginName, startOfLine) { + var noIndent = curState.context && curState.context.noIndent; + curState.context = { + prev: curState.context, + pluginName: pluginName, + indent: curState.indented, + startOfLine: startOfLine, + noIndent: noIndent + }; +} + +function popContext() { + if (curState.context) curState.context = curState.context.prev; +} + +function element(type) { + if (type == "openPlugin") {curState.pluginName = pluginName; return cont(attributes, endplugin(curState.startOfLine));} + else if (type == "closePlugin") { + var err = false; + if (curState.context) { + err = curState.context.pluginName != pluginName; + popContext(); + } else { + err = true; + } + if (err) setStyle = "error"; + return cont(endcloseplugin(err)); + } + else if (type == "string") { + if (!curState.context || curState.context.name != "!cdata") pushContext("!cdata"); + if (curState.tokenize == inText) popContext(); + return cont(); + } + else return cont(); +} + +function endplugin(startOfLine) { + return function(type) { + if ( + type == "selfclosePlugin" || + type == "endPlugin" + ) + return cont(); + if (type == "endPlugin") {pushContext(curState.pluginName, startOfLine); return cont();} + return cont(); + }; +} + +function endcloseplugin(err) { + return function(type) { + if (err) setStyle = "error"; + if (type == "endPlugin") return cont(); + return pass(); + }; +} + +function attributes(type) { + if (type == "keyword") {setStyle = "attribute"; return cont(attributes);} + if (type == "equals") return cont(attvalue, attributes); + return pass(); +} +function attvalue(type) { + if (type == "keyword") {setStyle = "string"; return cont();} + if (type == "string") return cont(attvaluemaybe); + return pass(); +} +function attvaluemaybe(type) { + if (type == "string") return cont(attvaluemaybe); + else return pass(); +} +return { + startState: function() { + return {tokenize: inText, cc: [], indented: 0, startOfLine: true, pluginName: null, context: null}; + }, + token: function(stream, state) { + if (stream.sol()) { + state.startOfLine = true; + state.indented = stream.indentation(); + } + if (stream.eatSpace()) return null; + + setStyle = type = pluginName = null; + var style = state.tokenize(stream, state); + if ((style || type) && style != "comment") { + curState = state; + while (true) { + var comb = state.cc.pop() || element; + if (comb(type || style)) break; + } + } + state.startOfLine = false; + return setStyle || style; + }, + indent: function(state, textAfter) { + var context = state.context; + if (context && context.noIndent) return 0; + if (context && /^{\//.test(textAfter)) + context = context.prev; + while (context && !context.startOfLine) + context = context.prev; + if (context) return context.indent + indentUnit; + else return 0; + }, + electricChars: "/" + }; +}); + +CodeMirror.defineMIME("text/tiki", "tiki"); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/toml/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/toml/index.html new file mode 100644 index 0000000..90a2a02 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/toml/index.html @@ -0,0 +1,73 @@ +<!doctype html> + +<title>CodeMirror: TOML Mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="toml.js"></script> +<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">TOML Mode</a> + </ul> +</div> + +<article> +<h2>TOML Mode</h2> +<form><textarea id="code" name="code"> +# This is a TOML document. Boom. + +title = "TOML Example" + +[owner] +name = "Tom Preston-Werner" +organization = "GitHub" +bio = "GitHub Cofounder & CEO\nLikes tater tots and beer." +dob = 1979-05-27T07:32:00Z # First class dates? Why not? + +[database] +server = "192.168.1.1" +ports = [ 8001, 8001, 8002 ] +connection_max = 5000 +enabled = true + +[servers] + + # You can indent as you please. Tabs or spaces. TOML don't care. + [servers.alpha] + ip = "10.0.0.1" + dc = "eqdc10" + + [servers.beta] + ip = "10.0.0.2" + dc = "eqdc10" + +[clients] +data = [ ["gamma", "delta"], [1, 2] ] + +# Line breaks are OK when inside arrays +hosts = [ + "alpha", + "omega" +] +</textarea></form> + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + mode: {name: "toml"}, + lineNumbers: true + }); + </script> + <h3>The TOML Mode</h3> + <p> Created by Forbes Lindesay.</p> + <p><strong>MIME type defined:</strong> <code>text/x-toml</code>.</p> + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/toml/toml.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/toml/toml.js new file mode 100644 index 0000000..baeca15 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/toml/toml.js @@ -0,0 +1,88 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("toml", function () { + return { + startState: function () { + return { + inString: false, + stringType: "", + lhs: true, + inArray: 0 + }; + }, + token: function (stream, state) { + //check for state changes + if (!state.inString && ((stream.peek() == '"') || (stream.peek() == "'"))) { + state.stringType = stream.peek(); + stream.next(); // Skip quote + state.inString = true; // Update state + } + if (stream.sol() && state.inArray === 0) { + state.lhs = true; + } + //return state + if (state.inString) { + while (state.inString && !stream.eol()) { + if (stream.peek() === state.stringType) { + stream.next(); // Skip quote + state.inString = false; // Clear flag + } else if (stream.peek() === '\\') { + stream.next(); + stream.next(); + } else { + stream.match(/^.[^\\\"\']*/); + } + } + return state.lhs ? "property string" : "string"; // Token style + } else if (state.inArray && stream.peek() === ']') { + stream.next(); + state.inArray--; + return 'bracket'; + } else if (state.lhs && stream.peek() === '[' && stream.skipTo(']')) { + stream.next();//skip closing ] + // array of objects has an extra open & close [] + if (stream.peek() === ']') stream.next(); + return "atom"; + } else if (stream.peek() === "#") { + stream.skipToEnd(); + return "comment"; + } else if (stream.eatSpace()) { + return null; + } else if (state.lhs && stream.eatWhile(function (c) { return c != '=' && c != ' '; })) { + return "property"; + } else if (state.lhs && stream.peek() === "=") { + stream.next(); + state.lhs = false; + return null; + } else if (!state.lhs && stream.match(/^\d\d\d\d[\d\-\:\.T]*Z/)) { + return 'atom'; //date + } else if (!state.lhs && (stream.match('true') || stream.match('false'))) { + return 'atom'; + } else if (!state.lhs && stream.peek() === '[') { + state.inArray++; + stream.next(); + return 'bracket'; + } else if (!state.lhs && stream.match(/^\-?\d+(?:\.\d+)?/)) { + return 'number'; + } else if (!stream.eatSpace()) { + stream.next(); + } + return null; + } + }; +}); + +CodeMirror.defineMIME('text/x-toml', 'toml'); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/tornado/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/tornado/index.html new file mode 100644 index 0000000..8ee7ef5 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/tornado/index.html @@ -0,0 +1,63 @@ +<!doctype html> + +<title>CodeMirror: Tornado template mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../../addon/mode/overlay.js"></script> +<script src="../xml/xml.js"></script> +<script src="../htmlmixed/htmlmixed.js"></script> +<script src="tornado.js"></script> +<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/marijnh/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Tornado</a> + </ul> +</div> + +<article> +<h2>Tornado template mode</h2> +<form><textarea id="code" name="code"> +<!doctype html> +<html> + <head> + <title>My Tornado web application</title> + </head> + <body> + <h1> + {{ title }} + </h1> + <ul class="my-list"> + {% for item in items %} + <li>{% item.name %}</li> + {% empty %} + <li>You have no items in your list.</li> + {% end %} + </ul> + </body> +</html> +</textarea></form> + + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + lineNumbers: true, + mode: "tornado", + indentUnit: 4, + indentWithTabs: true + }); + </script> + + <p>Mode for HTML with embedded Tornado template markup.</p> + + <p><strong>MIME types defined:</strong> <code>text/x-tornado</code></p> + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/tornado/tornado.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/tornado/tornado.js new file mode 100644 index 0000000..dbfbc34 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/tornado/tornado.js @@ -0,0 +1,68 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed"), + require("../../addon/mode/overlay")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror", "../htmlmixed/htmlmixed", + "../../addon/mode/overlay"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { + "use strict"; + + CodeMirror.defineMode("tornado:inner", function() { + var keywords = ["and","as","assert","autoescape","block","break","class","comment","context", + "continue","datetime","def","del","elif","else","end","escape","except", + "exec","extends","false","finally","for","from","global","if","import","in", + "include","is","json_encode","lambda","length","linkify","load","module", + "none","not","or","pass","print","put","raise","raw","return","self","set", + "squeeze","super","true","try","url_escape","while","with","without","xhtml_escape","yield"]; + keywords = new RegExp("^((" + keywords.join(")|(") + "))\\b"); + + function tokenBase (stream, state) { + stream.eatWhile(/[^\{]/); + var ch = stream.next(); + if (ch == "{") { + if (ch = stream.eat(/\{|%|#/)) { + state.tokenize = inTag(ch); + return "tag"; + } + } + } + function inTag (close) { + if (close == "{") { + close = "}"; + } + return function (stream, state) { + var ch = stream.next(); + if ((ch == close) && stream.eat("}")) { + state.tokenize = tokenBase; + return "tag"; + } + if (stream.match(keywords)) { + return "keyword"; + } + return close == "#" ? "comment" : "string"; + }; + } + return { + startState: function () { + return {tokenize: tokenBase}; + }, + token: function (stream, state) { + return state.tokenize(stream, state); + } + }; + }); + + CodeMirror.defineMode("tornado", function(config) { + var htmlBase = CodeMirror.getMode(config, "text/html"); + var tornadoInner = CodeMirror.getMode(config, "tornado:inner"); + return CodeMirror.overlayMode(htmlBase, tornadoInner); + }); + + CodeMirror.defineMIME("text/x-tornado", "tornado"); +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/troff/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/troff/index.html new file mode 100644 index 0000000..7c5a54e --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/troff/index.html @@ -0,0 +1,146 @@ +<!doctype html> + +<title>CodeMirror: troff mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel=stylesheet href=../../lib/codemirror.css> +<script src=../../lib/codemirror.js></script> +<script src="../../addon/edit/matchbrackets.js"></script> +<script src=troff.js></script> +<style type=text/css> + .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;} +</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">troff</a> + </ul> +</div> + +<article> +<h2>troff</h2> + + +<textarea id=code> +'\" t +.\" Title: mkvextract +.TH "MKVEXTRACT" "1" "2015\-02\-28" "MKVToolNix 7\&.7\&.0" "User Commands" +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" ----------------------------------------------------------------- +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.\" ----------------------------------------------------------------- +.SH "NAME" +mkvextract \- extract tracks from Matroska(TM) files into other files +.SH "SYNOPSIS" +.HP \w'\fBmkvextract\fR\ 'u +\fBmkvextract\fR {mode} {source\-filename} [options] [extraction\-spec] +.SH "DESCRIPTION" +.PP +.B mkvextract +extracts specific parts from a +.I Matroska(TM) +file to other useful formats\&. The first argument, +\fBmode\fR, tells +\fBmkvextract\fR(1) +what to extract\&. Currently supported is the extraction of +tracks, +tags, +attachments, +chapters, +CUE sheets, +timecodes +and +cues\&. The second argument is the name of the source file\&. It must be a +Matroska(TM) +file\&. All following arguments are options and extraction specifications; both of which depend on the selected mode\&. +.SS "Common options" +.PP +The following options are available in all modes and only described once in this section\&. +.PP +\fB\-f\fR, \fB\-\-parse\-fully\fR +.RS 4 +Sets the parse mode to \*(Aqfull\*(Aq\&. The default mode does not parse the whole file but uses the meta seek elements for locating the required elements of a source file\&. In 99% of all cases this is enough\&. But for files that do not contain meta seek elements or which are damaged the user might have to use this mode\&. A full scan of a file can take a couple of minutes while a fast scan only takes seconds\&. +.RE +.PP +\fB\-\-command\-line\-charset\fR \fIcharacter\-set\fR +.RS 4 +Sets the character set to convert strings given on the command line from\&. It defaults to the character set given by system\*(Aqs current locale\&. +.RE +.PP +\fB\-\-output\-charset\fR \fIcharacter\-set\fR +.RS 4 +Sets the character set to which strings are converted that are to be output\&. It defaults to the character set given by system\*(Aqs current locale\&. +.RE +.PP +\fB\-r\fR, \fB\-\-redirect\-output\fR \fIfile\-name\fR +.RS 4 +Writes all messages to the file +\fIfile\-name\fR +instead of to the console\&. While this can be done easily with output redirection there are cases in which this option is needed: when the terminal reinterprets the output before writing it to a file\&. The character set set with +\fB\-\-output\-charset\fR +is honored\&. +.RE +.PP +\fB\-\-ui\-language\fR \fIcode\fR +.RS 4 +Forces the translations for the language +\fIcode\fR +to be used (e\&.g\&. \*(Aqde_DE\*(Aq for the German translations)\&. It is preferable to use the environment variables +\fILANG\fR, +\fILC_MESSAGES\fR +and +\fILC_ALL\fR +though\&. Entering \*(Aqlist\*(Aq as the +\fIcode\fR +will cause +\fBmkvextract\fR(1) +to output a list of available translations\&. + +.\" [...] + +.SH "SEE ALSO" +.PP +\fBmkvmerge\fR(1), +\fBmkvinfo\fR(1), +\fBmkvpropedit\fR(1), +\fBmmg\fR(1) +.SH "WWW" +.PP +The latest version can always be found at +\m[blue]\fBthe MKVToolNix homepage\fR\m[]\&\s-2\u[1]\d\s+2\&. +.SH "AUTHOR" +.PP +\(co \fBMoritz Bunkus\fR <\&moritz@bunkus\&.org\&> +.RS 4 +Developer +.RE +.SH "NOTES" +.IP " 1." 4 +the MKVToolNix homepage +.RS 4 +\%https://www.bunkus.org/videotools/mkvtoolnix/ +.RE +</textarea> + +<script> + var editor = CodeMirror.fromTextArea(document.getElementById('code'), { + mode: 'troff', + lineNumbers: true, + matchBrackets: false + }); +</script> + +<p><strong>MIME types defined:</strong> <code>troff</code>.</p> +</article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/troff/troff.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/troff/troff.js new file mode 100644 index 0000000..86154b6 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/troff/troff.js @@ -0,0 +1,84 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) + define(["../../lib/codemirror"], mod); + else + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode('troff', function() { + + var words = {}; + + function tokenBase(stream) { + if (stream.eatSpace()) return null; + + var sol = stream.sol(); + var ch = stream.next(); + + if (ch === '\\') { + if (stream.match('fB') || stream.match('fR') || stream.match('fI') || + stream.match('u') || stream.match('d') || + stream.match('%') || stream.match('&')) { + return 'string'; + } + if (stream.match('m[')) { + stream.skipTo(']'); + stream.next(); + return 'string'; + } + if (stream.match('s+') || stream.match('s-')) { + stream.eatWhile(/[\d-]/); + return 'string'; + } + if (stream.match('\(') || stream.match('*\(')) { + stream.eatWhile(/[\w-]/); + return 'string'; + } + return 'string'; + } + if (sol && (ch === '.' || ch === '\'')) { + if (stream.eat('\\') && stream.eat('\"')) { + stream.skipToEnd(); + return 'comment'; + } + } + if (sol && ch === '.') { + if (stream.match('B ') || stream.match('I ') || stream.match('R ')) { + return 'attribute'; + } + if (stream.match('TH ') || stream.match('SH ') || stream.match('SS ') || stream.match('HP ')) { + stream.skipToEnd(); + return 'quote'; + } + if ((stream.match(/[A-Z]/) && stream.match(/[A-Z]/)) || (stream.match(/[a-z]/) && stream.match(/[a-z]/))) { + return 'attribute'; + } + } + stream.eatWhile(/[\w-]/); + var cur = stream.current(); + return words.hasOwnProperty(cur) ? words[cur] : null; + } + + function tokenize(stream, state) { + return (state.tokens[0] || tokenBase) (stream, state); + }; + + return { + startState: function() {return {tokens:[]};}, + token: function(stream, state) { + return tokenize(stream, state); + } + }; +}); + +CodeMirror.defineMIME('text/troff', 'troff'); +CodeMirror.defineMIME('text/x-troff', 'troff'); +CodeMirror.defineMIME('application/x-troff', 'troff'); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/ttcn-cfg/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/ttcn-cfg/index.html new file mode 100644 index 0000000..4a4cd45 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/ttcn-cfg/index.html @@ -0,0 +1,115 @@ +<!doctype html> + +<title>CodeMirror: TTCN-CFG mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="ttcn-cfg.js"></script> +<style type="text/css"> + .CodeMirror { + border-top: 1px solid black; + border-bottom: 1px solid black; + } +</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1> + <img id=logo src="../../doc/logo.png"> + </a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="http://en.wikipedia.org/wiki/TTCN">TTCN-CFG</a> + </ul> +</div> +<article> + <h2>TTCN-CFG example</h2> + <div> + <textarea id="ttcn-cfg-code"> +[MODULE_PARAMETERS] +# This section shall contain the values of all parameters that are defined in your TTCN-3 modules. + +[LOGGING] +# In this section you can specify the name of the log file and the classes of events +# you want to log into the file or display on console (standard error). + +LogFile := "logs/%e.%h-%r.%s" +FileMask := LOG_ALL | DEBUG | MATCHING +ConsoleMask := ERROR | WARNING | TESTCASE | STATISTICS | PORTEVENT + +LogSourceInfo := Yes +AppendFile := No +TimeStampFormat := DateTime +LogEventTypes := Yes +SourceInfoFormat := Single +LogEntityName := Yes + +[TESTPORT_PARAMETERS] +# In this section you can specify parameters that are passed to Test Ports. + +[DEFINE] +# In this section you can create macro definitions, +# that can be used in other configuration file sections except [INCLUDE]. + +[INCLUDE] +# To use configuration settings given in other configuration files, +# the configuration files just need to be listed in this section, with their full or relative pathnames. + +[EXTERNAL_COMMANDS] +# This section can define external commands (shell scripts) to be executed by the ETS +# whenever a control part or test case is started or terminated. + +BeginTestCase := "" +EndTestCase := "" +BeginControlPart := "" +EndControlPart := "" + +[EXECUTE] +# In this section you can specify what parts of your test suite you want to execute. + +[GROUPS] +# In this section you can specify groups of hosts. These groups can be used inside the +# [COMPONENTS] section to restrict the creation of certain PTCs to a given set of hosts. + +[COMPONENTS] +# This section consists of rules restricting the location of created PTCs. + +[MAIN_CONTROLLER] +# The options herein control the behavior of MC. + +TCPPort := 0 +KillTimer := 10.0 +NumHCs := 0 +LocalAddress := + </textarea> + </div> + + <script> + var ttcnEditor = CodeMirror.fromTextArea(document.getElementById("ttcn-cfg-code"), { + lineNumbers: true, + matchBrackets: true, + mode: "text/x-ttcn-cfg" + }); + ttcnEditor.setSize(600, 860); + var mac = CodeMirror.keyMap.default == CodeMirror.keyMap.macDefault; + CodeMirror.keyMap.default[(mac ? "Cmd" : "Ctrl") + "-Space"] = "autocomplete"; + </script> + <br/> + <p><strong>Language:</strong> Testing and Test Control Notation - + Configuration files + (<a href="http://en.wikipedia.org/wiki/TTCN">TTCN-CFG</a>) + </p> + <p><strong>MIME types defined:</strong> <code>text/x-ttcn-cfg</code>.</p> + + <br/> + <p>The development of this mode has been sponsored by <a href="http://www.ericsson.com/">Ericsson + </a>.</p> + <p>Coded by Asmelash Tsegay Gebretsadkan </p> +</article> + diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/ttcn-cfg/ttcn-cfg.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/ttcn-cfg/ttcn-cfg.js new file mode 100644 index 0000000..e108051 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/ttcn-cfg/ttcn-cfg.js @@ -0,0 +1,214 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { + "use strict"; + + CodeMirror.defineMode("ttcn-cfg", function(config, parserConfig) { + var indentUnit = config.indentUnit, + keywords = parserConfig.keywords || {}, + fileNCtrlMaskOptions = parserConfig.fileNCtrlMaskOptions || {}, + externalCommands = parserConfig.externalCommands || {}, + multiLineStrings = parserConfig.multiLineStrings, + indentStatements = parserConfig.indentStatements !== false; + var isOperatorChar = /[\|]/; + var curPunc; + + function tokenBase(stream, state) { + var ch = stream.next(); + if (ch == '"' || ch == "'") { + state.tokenize = tokenString(ch); + return state.tokenize(stream, state); + } + if (/[:=]/.test(ch)) { + curPunc = ch; + return "punctuation"; + } + if (ch == "#"){ + stream.skipToEnd(); + return "comment"; + } + if (/\d/.test(ch)) { + stream.eatWhile(/[\w\.]/); + return "number"; + } + if (isOperatorChar.test(ch)) { + stream.eatWhile(isOperatorChar); + return "operator"; + } + if (ch == "["){ + stream.eatWhile(/[\w_\]]/); + return "number sectionTitle"; + } + + stream.eatWhile(/[\w\$_]/); + var cur = stream.current(); + if (keywords.propertyIsEnumerable(cur)) return "keyword"; + if (fileNCtrlMaskOptions.propertyIsEnumerable(cur)) + return "negative fileNCtrlMaskOptions"; + if (externalCommands.propertyIsEnumerable(cur)) return "negative externalCommands"; + + return "variable"; + } + + function tokenString(quote) { + return function(stream, state) { + var escaped = false, next, end = false; + while ((next = stream.next()) != null) { + if (next == quote && !escaped){ + var afterNext = stream.peek(); + //look if the character if the quote is like the B in '10100010'B + if (afterNext){ + afterNext = afterNext.toLowerCase(); + if(afterNext == "b" || afterNext == "h" || afterNext == "o") + stream.next(); + } + end = true; break; + } + escaped = !escaped && next == "\\"; + } + if (end || !(escaped || multiLineStrings)) + state.tokenize = null; + return "string"; + }; + } + + function Context(indented, column, type, align, prev) { + this.indented = indented; + this.column = column; + this.type = type; + this.align = align; + this.prev = prev; + } + function pushContext(state, col, type) { + var indent = state.indented; + if (state.context && state.context.type == "statement") + indent = state.context.indented; + return state.context = new Context(indent, col, type, null, state.context); + } + function popContext(state) { + var t = state.context.type; + if (t == ")" || t == "]" || t == "}") + state.indented = state.context.indented; + return state.context = state.context.prev; + } + + //Interface + return { + startState: function(basecolumn) { + return { + tokenize: null, + context: new Context((basecolumn || 0) - indentUnit, 0, "top", false), + indented: 0, + startOfLine: true + }; + }, + + token: function(stream, state) { + var ctx = state.context; + if (stream.sol()) { + if (ctx.align == null) ctx.align = false; + state.indented = stream.indentation(); + state.startOfLine = true; + } + if (stream.eatSpace()) return null; + curPunc = null; + var style = (state.tokenize || tokenBase)(stream, state); + if (style == "comment") return style; + if (ctx.align == null) ctx.align = true; + + if ((curPunc == ";" || curPunc == ":" || curPunc == ",") + && ctx.type == "statement"){ + popContext(state); + } + else if (curPunc == "{") pushContext(state, stream.column(), "}"); + else if (curPunc == "[") pushContext(state, stream.column(), "]"); + else if (curPunc == "(") pushContext(state, stream.column(), ")"); + else if (curPunc == "}") { + while (ctx.type == "statement") ctx = popContext(state); + if (ctx.type == "}") ctx = popContext(state); + while (ctx.type == "statement") ctx = popContext(state); + } + else if (curPunc == ctx.type) popContext(state); + else if (indentStatements && (((ctx.type == "}" || ctx.type == "top") + && curPunc != ';') || (ctx.type == "statement" + && curPunc == "newstatement"))) + pushContext(state, stream.column(), "statement"); + state.startOfLine = false; + return style; + }, + + electricChars: "{}", + lineComment: "#", + fold: "brace" + }; + }); + + function words(str) { + var obj = {}, words = str.split(" "); + for (var i = 0; i < words.length; ++i) + obj[words[i]] = true; + return obj; + } + + CodeMirror.defineMIME("text/x-ttcn-cfg", { + name: "ttcn-cfg", + keywords: words("Yes No LogFile FileMask ConsoleMask AppendFile" + + " TimeStampFormat LogEventTypes SourceInfoFormat" + + " LogEntityName LogSourceInfo DiskFullAction" + + " LogFileNumber LogFileSize MatchingHints Detailed" + + " Compact SubCategories Stack Single None Seconds" + + " DateTime Time Stop Error Retry Delete TCPPort KillTimer" + + " NumHCs UnixSocketsEnabled LocalAddress"), + fileNCtrlMaskOptions: words("TTCN_EXECUTOR TTCN_ERROR TTCN_WARNING" + + " TTCN_PORTEVENT TTCN_TIMEROP TTCN_VERDICTOP" + + " TTCN_DEFAULTOP TTCN_TESTCASE TTCN_ACTION" + + " TTCN_USER TTCN_FUNCTION TTCN_STATISTICS" + + " TTCN_PARALLEL TTCN_MATCHING TTCN_DEBUG" + + " EXECUTOR ERROR WARNING PORTEVENT TIMEROP" + + " VERDICTOP DEFAULTOP TESTCASE ACTION USER" + + " FUNCTION STATISTICS PARALLEL MATCHING DEBUG" + + " LOG_ALL LOG_NOTHING ACTION_UNQUALIFIED" + + " DEBUG_ENCDEC DEBUG_TESTPORT" + + " DEBUG_UNQUALIFIED DEFAULTOP_ACTIVATE" + + " DEFAULTOP_DEACTIVATE DEFAULTOP_EXIT" + + " DEFAULTOP_UNQUALIFIED ERROR_UNQUALIFIED" + + " EXECUTOR_COMPONENT EXECUTOR_CONFIGDATA" + + " EXECUTOR_EXTCOMMAND EXECUTOR_LOGOPTIONS" + + " EXECUTOR_RUNTIME EXECUTOR_UNQUALIFIED" + + " FUNCTION_RND FUNCTION_UNQUALIFIED" + + " MATCHING_DONE MATCHING_MCSUCCESS" + + " MATCHING_MCUNSUCC MATCHING_MMSUCCESS" + + " MATCHING_MMUNSUCC MATCHING_PCSUCCESS" + + " MATCHING_PCUNSUCC MATCHING_PMSUCCESS" + + " MATCHING_PMUNSUCC MATCHING_PROBLEM" + + " MATCHING_TIMEOUT MATCHING_UNQUALIFIED" + + " PARALLEL_PORTCONN PARALLEL_PORTMAP" + + " PARALLEL_PTC PARALLEL_UNQUALIFIED" + + " PORTEVENT_DUALRECV PORTEVENT_DUALSEND" + + " PORTEVENT_MCRECV PORTEVENT_MCSEND" + + " PORTEVENT_MMRECV PORTEVENT_MMSEND" + + " PORTEVENT_MQUEUE PORTEVENT_PCIN" + + " PORTEVENT_PCOUT PORTEVENT_PMIN" + + " PORTEVENT_PMOUT PORTEVENT_PQUEUE" + + " PORTEVENT_STATE PORTEVENT_UNQUALIFIED" + + " STATISTICS_UNQUALIFIED STATISTICS_VERDICT" + + " TESTCASE_FINISH TESTCASE_START" + + " TESTCASE_UNQUALIFIED TIMEROP_GUARD" + + " TIMEROP_READ TIMEROP_START TIMEROP_STOP" + + " TIMEROP_TIMEOUT TIMEROP_UNQUALIFIED" + + " USER_UNQUALIFIED VERDICTOP_FINAL" + + " VERDICTOP_GETVERDICT VERDICTOP_SETVERDICT" + + " VERDICTOP_UNQUALIFIED WARNING_UNQUALIFIED"), + externalCommands: words("BeginControlPart EndControlPart BeginTestCase" + + " EndTestCase"), + multiLineStrings: true + }); +}); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/ttcn/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/ttcn/index.html new file mode 100644 index 0000000..f1ef811 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/ttcn/index.html @@ -0,0 +1,118 @@ +<!doctype html> + +<title>CodeMirror: TTCN mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="ttcn.js"></script> +<style type="text/css"> + .CodeMirror { + border-top: 1px solid black; + border-bottom: 1px solid black; + } +</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1> + <img id=logo src="../../doc/logo.png"> + </a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="http://en.wikipedia.org/wiki/TTCN">TTCN</a> + </ul> +</div> +<article> + <h2>TTCN example</h2> + <div> + <textarea id="ttcn-code"> +module Templates { + /* import types from ASN.1 */ + import from Types language "ASN.1:1997" all; + + /* During the conversion phase from ASN.1 to TTCN-3 */ + /* - the minus sign (Message-Type) within the identifiers will be replaced by underscore (Message_Type)*/ + /* - the ASN.1 identifiers matching a TTCN-3 keyword (objid) will be postfixed with an underscore (objid_)*/ + + // simple types + + template SenderID localObjid := objid {itu_t(0) identified_organization(4) etsi(0)}; + + // complex types + + /* ASN.1 Message-Type mapped to TTCN-3 Message_Type */ + template Message receiveMsg(template (present) Message_Type p_messageType) := { + header := p_messageType, + body := ? + } + + /* ASN.1 objid mapped to TTCN-3 objid_ */ + template Message sendInviteMsg := { + header := inviteType, + body := { + /* optional fields may be assigned by omit or may be ignored/skipped */ + description := "Invite Message", + data := 'FF'O, + objid_ := localObjid + } + } + + template Message sendAcceptMsg modifies sendInviteMsg := { + header := acceptType, + body := { + description := "Accept Message" + } + }; + + template Message sendErrorMsg modifies sendInviteMsg := { + header := errorType, + body := { + description := "Error Message" + } + }; + + template Message expectedErrorMsg := { + header := errorType, + body := ? + }; + + template Message expectedInviteMsg modifies expectedErrorMsg := { + header := inviteType + }; + + template Message expectedAcceptMsg modifies expectedErrorMsg := { + header := acceptType + }; + +} with { encode "BER:1997" } + </textarea> + </div> + + <script> + var ttcnEditor = CodeMirror.fromTextArea(document.getElementById("ttcn-code"), { + lineNumbers: true, + matchBrackets: true, + mode: "text/x-ttcn" + }); + ttcnEditor.setSize(600, 860); + var mac = CodeMirror.keyMap.default == CodeMirror.keyMap.macDefault; + CodeMirror.keyMap.default[(mac ? "Cmd" : "Ctrl") + "-Space"] = "autocomplete"; + </script> + <br/> + <p><strong>Language:</strong> Testing and Test Control Notation + (<a href="http://en.wikipedia.org/wiki/TTCN">TTCN</a>) + </p> + <p><strong>MIME types defined:</strong> <code>text/x-ttcn, + text/x-ttcn3, text/x-ttcnpp</code>.</p> + <br/> + <p>The development of this mode has been sponsored by <a href="http://www.ericsson.com/">Ericsson + </a>.</p> + <p>Coded by Asmelash Tsegay Gebretsadkan </p> +</article> + diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/ttcn/ttcn.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/ttcn/ttcn.js new file mode 100644 index 0000000..3051851 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/ttcn/ttcn.js @@ -0,0 +1,283 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { + "use strict"; + + CodeMirror.defineMode("ttcn", function(config, parserConfig) { + var indentUnit = config.indentUnit, + keywords = parserConfig.keywords || {}, + builtin = parserConfig.builtin || {}, + timerOps = parserConfig.timerOps || {}, + portOps = parserConfig.portOps || {}, + configOps = parserConfig.configOps || {}, + verdictOps = parserConfig.verdictOps || {}, + sutOps = parserConfig.sutOps || {}, + functionOps = parserConfig.functionOps || {}, + + verdictConsts = parserConfig.verdictConsts || {}, + booleanConsts = parserConfig.booleanConsts || {}, + otherConsts = parserConfig.otherConsts || {}, + + types = parserConfig.types || {}, + visibilityModifiers = parserConfig.visibilityModifiers || {}, + templateMatch = parserConfig.templateMatch || {}, + multiLineStrings = parserConfig.multiLineStrings, + indentStatements = parserConfig.indentStatements !== false; + var isOperatorChar = /[+\-*&@=<>!\/]/; + var curPunc; + + function tokenBase(stream, state) { + var ch = stream.next(); + + if (ch == '"' || ch == "'") { + state.tokenize = tokenString(ch); + return state.tokenize(stream, state); + } + if (/[\[\]{}\(\),;\\:\?\.]/.test(ch)) { + curPunc = ch; + return "punctuation"; + } + if (ch == "#"){ + stream.skipToEnd(); + return "atom preprocessor"; + } + if (ch == "%"){ + stream.eatWhile(/\b/); + return "atom ttcn3Macros"; + } + if (/\d/.test(ch)) { + stream.eatWhile(/[\w\.]/); + return "number"; + } + if (ch == "/") { + if (stream.eat("*")) { + state.tokenize = tokenComment; + return tokenComment(stream, state); + } + if (stream.eat("/")) { + stream.skipToEnd(); + return "comment"; + } + } + if (isOperatorChar.test(ch)) { + if(ch == "@"){ + if(stream.match("try") || stream.match("catch") + || stream.match("lazy")){ + return "keyword"; + } + } + stream.eatWhile(isOperatorChar); + return "operator"; + } + stream.eatWhile(/[\w\$_\xa1-\uffff]/); + var cur = stream.current(); + + if (keywords.propertyIsEnumerable(cur)) return "keyword"; + if (builtin.propertyIsEnumerable(cur)) return "builtin"; + + if (timerOps.propertyIsEnumerable(cur)) return "def timerOps"; + if (configOps.propertyIsEnumerable(cur)) return "def configOps"; + if (verdictOps.propertyIsEnumerable(cur)) return "def verdictOps"; + if (portOps.propertyIsEnumerable(cur)) return "def portOps"; + if (sutOps.propertyIsEnumerable(cur)) return "def sutOps"; + if (functionOps.propertyIsEnumerable(cur)) return "def functionOps"; + + if (verdictConsts.propertyIsEnumerable(cur)) return "string verdictConsts"; + if (booleanConsts.propertyIsEnumerable(cur)) return "string booleanConsts"; + if (otherConsts.propertyIsEnumerable(cur)) return "string otherConsts"; + + if (types.propertyIsEnumerable(cur)) return "builtin types"; + if (visibilityModifiers.propertyIsEnumerable(cur)) + return "builtin visibilityModifiers"; + if (templateMatch.propertyIsEnumerable(cur)) return "atom templateMatch"; + + return "variable"; + } + + function tokenString(quote) { + return function(stream, state) { + var escaped = false, next, end = false; + while ((next = stream.next()) != null) { + if (next == quote && !escaped){ + var afterQuote = stream.peek(); + //look if the character after the quote is like the B in '10100010'B + if (afterQuote){ + afterQuote = afterQuote.toLowerCase(); + if(afterQuote == "b" || afterQuote == "h" || afterQuote == "o") + stream.next(); + } + end = true; break; + } + escaped = !escaped && next == "\\"; + } + if (end || !(escaped || multiLineStrings)) + state.tokenize = null; + return "string"; + }; + } + + function tokenComment(stream, state) { + var maybeEnd = false, ch; + while (ch = stream.next()) { + if (ch == "/" && maybeEnd) { + state.tokenize = null; + break; + } + maybeEnd = (ch == "*"); + } + return "comment"; + } + + function Context(indented, column, type, align, prev) { + this.indented = indented; + this.column = column; + this.type = type; + this.align = align; + this.prev = prev; + } + + function pushContext(state, col, type) { + var indent = state.indented; + if (state.context && state.context.type == "statement") + indent = state.context.indented; + return state.context = new Context(indent, col, type, null, state.context); + } + + function popContext(state) { + var t = state.context.type; + if (t == ")" || t == "]" || t == "}") + state.indented = state.context.indented; + return state.context = state.context.prev; + } + + //Interface + return { + startState: function(basecolumn) { + return { + tokenize: null, + context: new Context((basecolumn || 0) - indentUnit, 0, "top", false), + indented: 0, + startOfLine: true + }; + }, + + token: function(stream, state) { + var ctx = state.context; + if (stream.sol()) { + if (ctx.align == null) ctx.align = false; + state.indented = stream.indentation(); + state.startOfLine = true; + } + if (stream.eatSpace()) return null; + curPunc = null; + var style = (state.tokenize || tokenBase)(stream, state); + if (style == "comment") return style; + if (ctx.align == null) ctx.align = true; + + if ((curPunc == ";" || curPunc == ":" || curPunc == ",") + && ctx.type == "statement"){ + popContext(state); + } + else if (curPunc == "{") pushContext(state, stream.column(), "}"); + else if (curPunc == "[") pushContext(state, stream.column(), "]"); + else if (curPunc == "(") pushContext(state, stream.column(), ")"); + else if (curPunc == "}") { + while (ctx.type == "statement") ctx = popContext(state); + if (ctx.type == "}") ctx = popContext(state); + while (ctx.type == "statement") ctx = popContext(state); + } + else if (curPunc == ctx.type) popContext(state); + else if (indentStatements && + (((ctx.type == "}" || ctx.type == "top") && curPunc != ';') || + (ctx.type == "statement" && curPunc == "newstatement"))) + pushContext(state, stream.column(), "statement"); + + state.startOfLine = false; + + return style; + }, + + electricChars: "{}", + blockCommentStart: "/*", + blockCommentEnd: "*/", + lineComment: "//", + fold: "brace" + }; + }); + + function words(str) { + var obj = {}, words = str.split(" "); + for (var i = 0; i < words.length; ++i) obj[words[i]] = true; + return obj; + } + + function def(mimes, mode) { + if (typeof mimes == "string") mimes = [mimes]; + var words = []; + function add(obj) { + if (obj) for (var prop in obj) if (obj.hasOwnProperty(prop)) + words.push(prop); + } + + add(mode.keywords); + add(mode.builtin); + add(mode.timerOps); + add(mode.portOps); + + if (words.length) { + mode.helperType = mimes[0]; + CodeMirror.registerHelper("hintWords", mimes[0], words); + } + + for (var i = 0; i < mimes.length; ++i) + CodeMirror.defineMIME(mimes[i], mode); + } + + def(["text/x-ttcn", "text/x-ttcn3", "text/x-ttcnpp"], { + name: "ttcn", + keywords: words("activate address alive all alt altstep and and4b any" + + " break case component const continue control deactivate" + + " display do else encode enumerated except exception" + + " execute extends extension external for from function" + + " goto group if import in infinity inout interleave" + + " label language length log match message mixed mod" + + " modifies module modulepar mtc noblock not not4b nowait" + + " of on optional or or4b out override param pattern port" + + " procedure record recursive rem repeat return runs select" + + " self sender set signature system template testcase to" + + " type union value valueof var variant while with xor xor4b"), + builtin: words("bit2hex bit2int bit2oct bit2str char2int char2oct encvalue" + + " decomp decvalue float2int float2str hex2bit hex2int" + + " hex2oct hex2str int2bit int2char int2float int2hex" + + " int2oct int2str int2unichar isbound ischosen ispresent" + + " isvalue lengthof log2str oct2bit oct2char oct2hex oct2int" + + " oct2str regexp replace rnd sizeof str2bit str2float" + + " str2hex str2int str2oct substr unichar2int unichar2char" + + " enum2int"), + types: words("anytype bitstring boolean char charstring default float" + + " hexstring integer objid octetstring universal verdicttype timer"), + timerOps: words("read running start stop timeout"), + portOps: words("call catch check clear getcall getreply halt raise receive" + + " reply send trigger"), + configOps: words("create connect disconnect done kill killed map unmap"), + verdictOps: words("getverdict setverdict"), + sutOps: words("action"), + functionOps: words("apply derefers refers"), + + verdictConsts: words("error fail inconc none pass"), + booleanConsts: words("true false"), + otherConsts: words("null NULL omit"), + + visibilityModifiers: words("private public friend"), + templateMatch: words("complement ifpresent subset superset permutation"), + multiLineStrings: true + }); +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/turtle/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/turtle/index.html new file mode 100644 index 0000000..a4962b6 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/turtle/index.html @@ -0,0 +1,50 @@ +<!doctype html> + +<title>CodeMirror: Turtle mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="turtle.js"></script> +<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Turtle</a> + </ul> +</div> + +<article> +<h2>Turtle mode</h2> +<form><textarea id="code" name="code"> +@prefix foaf: <http://xmlns.com/foaf/0.1/> . +@prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> . +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . + +<http://purl.org/net/bsletten> + a foaf:Person; + foaf:interest <http://www.w3.org/2000/01/sw/>; + foaf:based_near [ + geo:lat "34.0736111" ; + geo:lon "-118.3994444" + ] + +</textarea></form> + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + mode: "text/turtle", + matchBrackets: true + }); + </script> + + <p><strong>MIME types defined:</strong> <code>text/turtle</code>.</p> + + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/turtle/turtle.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/turtle/turtle.js new file mode 100644 index 0000000..0988f0a --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/turtle/turtle.js @@ -0,0 +1,162 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("turtle", function(config) { + var indentUnit = config.indentUnit; + var curPunc; + + function wordRegexp(words) { + return new RegExp("^(?:" + words.join("|") + ")$", "i"); + } + var ops = wordRegexp([]); + var keywords = wordRegexp(["@prefix", "@base", "a"]); + var operatorChars = /[*+\-<>=&|]/; + + function tokenBase(stream, state) { + var ch = stream.next(); + curPunc = null; + if (ch == "<" && !stream.match(/^[\s\u00a0=]/, false)) { + stream.match(/^[^\s\u00a0>]*>?/); + return "atom"; + } + else if (ch == "\"" || ch == "'") { + state.tokenize = tokenLiteral(ch); + return state.tokenize(stream, state); + } + else if (/[{}\(\),\.;\[\]]/.test(ch)) { + curPunc = ch; + return null; + } + else if (ch == "#") { + stream.skipToEnd(); + return "comment"; + } + else if (operatorChars.test(ch)) { + stream.eatWhile(operatorChars); + return null; + } + else if (ch == ":") { + return "operator"; + } else { + stream.eatWhile(/[_\w\d]/); + if(stream.peek() == ":") { + return "variable-3"; + } else { + var word = stream.current(); + + if(keywords.test(word)) { + return "meta"; + } + + if(ch >= "A" && ch <= "Z") { + return "comment"; + } else { + return "keyword"; + } + } + var word = stream.current(); + if (ops.test(word)) + return null; + else if (keywords.test(word)) + return "meta"; + else + return "variable"; + } + } + + function tokenLiteral(quote) { + return function(stream, state) { + var escaped = false, ch; + while ((ch = stream.next()) != null) { + if (ch == quote && !escaped) { + state.tokenize = tokenBase; + break; + } + escaped = !escaped && ch == "\\"; + } + return "string"; + }; + } + + function pushContext(state, type, col) { + state.context = {prev: state.context, indent: state.indent, col: col, type: type}; + } + function popContext(state) { + state.indent = state.context.indent; + state.context = state.context.prev; + } + + return { + startState: function() { + return {tokenize: tokenBase, + context: null, + indent: 0, + col: 0}; + }, + + token: function(stream, state) { + if (stream.sol()) { + if (state.context && state.context.align == null) state.context.align = false; + state.indent = stream.indentation(); + } + if (stream.eatSpace()) return null; + var style = state.tokenize(stream, state); + + if (style != "comment" && state.context && state.context.align == null && state.context.type != "pattern") { + state.context.align = true; + } + + if (curPunc == "(") pushContext(state, ")", stream.column()); + else if (curPunc == "[") pushContext(state, "]", stream.column()); + else if (curPunc == "{") pushContext(state, "}", stream.column()); + else if (/[\]\}\)]/.test(curPunc)) { + while (state.context && state.context.type == "pattern") popContext(state); + if (state.context && curPunc == state.context.type) popContext(state); + } + else if (curPunc == "." && state.context && state.context.type == "pattern") popContext(state); + else if (/atom|string|variable/.test(style) && state.context) { + if (/[\}\]]/.test(state.context.type)) + pushContext(state, "pattern", stream.column()); + else if (state.context.type == "pattern" && !state.context.align) { + state.context.align = true; + state.context.col = stream.column(); + } + } + + return style; + }, + + indent: function(state, textAfter) { + var firstChar = textAfter && textAfter.charAt(0); + var context = state.context; + if (/[\]\}]/.test(firstChar)) + while (context && context.type == "pattern") context = context.prev; + + var closing = context && firstChar == context.type; + if (!context) + return 0; + else if (context.type == "pattern") + return context.col; + else if (context.align) + return context.col + (closing ? 0 : 1); + else + return context.indent + (closing ? 0 : indentUnit); + }, + + lineComment: "#" + }; +}); + +CodeMirror.defineMIME("text/turtle", "turtle"); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/twig/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/twig/index.html new file mode 100644 index 0000000..02493a5 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/twig/index.html @@ -0,0 +1,45 @@ +<!doctype html> + +<title>CodeMirror: Twig mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="twig.js"></script> +<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Twig</a> + </ul> +</div> + +<article> +<h2>Twig mode</h2> +<form><textarea id="code" name="code"> +{% extends "layout.twig" %} +{% block title %}CodeMirror: Twig mode{% endblock %} +{# this is a comment #} +{% block content %} + {% for foo in bar if foo.baz is divisible by(3) %} + Hello {{ foo.world }} + {% else %} + {% set msg = "Result not found" %} + {% include "empty.twig" with { message: msg } %} + {% endfor %} +{% endblock %} +</textarea></form> + <script> + var editor = + CodeMirror.fromTextArea(document.getElementById("code"), {mode: + {name: "twig", htmlMode: true}}); + </script> + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/twig/twig.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/twig/twig.js new file mode 100644 index 0000000..1f2854b --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/twig/twig.js @@ -0,0 +1,141 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror"), require("../../addon/mode/multiplex")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror", "../../addon/mode/multiplex"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { + "use strict"; + + CodeMirror.defineMode("twig:inner", function() { + var keywords = ["and", "as", "autoescape", "endautoescape", "block", "do", "endblock", "else", "elseif", "extends", "for", "endfor", "embed", "endembed", "filter", "endfilter", "flush", "from", "if", "endif", "in", "is", "include", "import", "not", "or", "set", "spaceless", "endspaceless", "with", "endwith", "trans", "endtrans", "blocktrans", "endblocktrans", "macro", "endmacro", "use", "verbatim", "endverbatim"], + operator = /^[+\-*&%=<>!?|~^]/, + sign = /^[:\[\(\{]/, + atom = ["true", "false", "null", "empty", "defined", "divisibleby", "divisible by", "even", "odd", "iterable", "sameas", "same as"], + number = /^(\d[+\-\*\/])?\d+(\.\d+)?/; + + keywords = new RegExp("((" + keywords.join(")|(") + "))\\b"); + atom = new RegExp("((" + atom.join(")|(") + "))\\b"); + + function tokenBase (stream, state) { + var ch = stream.peek(); + + //Comment + if (state.incomment) { + if (!stream.skipTo("#}")) { + stream.skipToEnd(); + } else { + stream.eatWhile(/\#|}/); + state.incomment = false; + } + return "comment"; + //Tag + } else if (state.intag) { + //After operator + if (state.operator) { + state.operator = false; + if (stream.match(atom)) { + return "atom"; + } + if (stream.match(number)) { + return "number"; + } + } + //After sign + if (state.sign) { + state.sign = false; + if (stream.match(atom)) { + return "atom"; + } + if (stream.match(number)) { + return "number"; + } + } + + if (state.instring) { + if (ch == state.instring) { + state.instring = false; + } + stream.next(); + return "string"; + } else if (ch == "'" || ch == '"') { + state.instring = ch; + stream.next(); + return "string"; + } else if (stream.match(state.intag + "}") || stream.eat("-") && stream.match(state.intag + "}")) { + state.intag = false; + return "tag"; + } else if (stream.match(operator)) { + state.operator = true; + return "operator"; + } else if (stream.match(sign)) { + state.sign = true; + } else { + if (stream.eat(" ") || stream.sol()) { + if (stream.match(keywords)) { + return "keyword"; + } + if (stream.match(atom)) { + return "atom"; + } + if (stream.match(number)) { + return "number"; + } + if (stream.sol()) { + stream.next(); + } + } else { + stream.next(); + } + + } + return "variable"; + } else if (stream.eat("{")) { + if (ch = stream.eat("#")) { + state.incomment = true; + if (!stream.skipTo("#}")) { + stream.skipToEnd(); + } else { + stream.eatWhile(/\#|}/); + state.incomment = false; + } + return "comment"; + //Open tag + } else if (ch = stream.eat(/\{|%/)) { + //Cache close tag + state.intag = ch; + if (ch == "{") { + state.intag = "}"; + } + stream.eat("-"); + return "tag"; + } + } + stream.next(); + }; + + return { + startState: function () { + return {}; + }, + token: function (stream, state) { + return tokenBase(stream, state); + } + }; + }); + + CodeMirror.defineMode("twig", function(config, parserConfig) { + var twigInner = CodeMirror.getMode(config, "twig:inner"); + if (!parserConfig || !parserConfig.base) return twigInner; + return CodeMirror.multiplexingMode( + CodeMirror.getMode(config, parserConfig.base), { + open: /\{[{#%]/, close: /[}#%]\}/, mode: twigInner, parseDelimiters: true + } + ); + }); + CodeMirror.defineMIME("text/x-twig", "twig"); +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/vb/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/vb/index.html new file mode 100644 index 0000000..adcc44f --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/vb/index.html @@ -0,0 +1,102 @@ +<!doctype html> + +<title>CodeMirror: VB.NET mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<link href="http://fonts.googleapis.com/css?family=Inconsolata" rel="stylesheet" type="text/css"> +<script src="../../lib/codemirror.js"></script> +<script src="vb.js"></script> +<script type="text/javascript" src="../../addon/runmode/runmode.js"></script> +<style> + .CodeMirror {border: 1px solid #aaa; height:210px; height: auto;} + .CodeMirror-scroll { overflow-x: auto; overflow-y: hidden;} + .CodeMirror pre { font-family: Inconsolata; font-size: 14px} + </style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">VB.NET</a> + </ul> +</div> + +<article> +<h2>VB.NET mode</h2> + +<script type="text/javascript"> +function test(golden, text) { + var ok = true; + var i = 0; + function callback(token, style, lineNo, pos){ + //console.log(String(token) + " " + String(style) + " " + String(lineNo) + " " + String(pos)); + var result = [String(token), String(style)]; + if (golden[i][0] != result[0] || golden[i][1] != result[1]){ + return "Error, expected: " + String(golden[i]) + ", got: " + String(result); + ok = false; + } + i++; + } + CodeMirror.runMode(text, "text/x-vb",callback); + + if (ok) return "Tests OK"; +} +function testTypes() { + var golden = [['Integer','keyword'],[' ','null'],['Float','keyword']] + var text = "Integer Float"; + return test(golden,text); +} +function testIf(){ + var golden = [['If','keyword'],[' ','null'],['True','keyword'],[' ','null'],['End','keyword'],[' ','null'],['If','keyword']]; + var text = 'If True End If'; + return test(golden, text); +} +function testDecl(){ + var golden = [['Dim','keyword'],[' ','null'],['x','variable'],[' ','null'],['as','keyword'],[' ','null'],['Integer','keyword']]; + var text = 'Dim x as Integer'; + return test(golden, text); +} +function testAll(){ + var result = ""; + + result += testTypes() + "\n"; + result += testIf() + "\n"; + result += testDecl() + "\n"; + return result; + +} +function initText(editor) { + var content = 'Class rocket\nPrivate quality as Double\nPublic Sub launch() as String\nif quality > 0.8\nlaunch = "Successful"\nElse\nlaunch = "Failed"\nEnd If\nEnd sub\nEnd class\n'; + editor.setValue(content); + for (var i =0; i< editor.lineCount(); i++) editor.indentLine(i); +} +function init() { + editor = CodeMirror.fromTextArea(document.getElementById("solution"), { + lineNumbers: true, + mode: "text/x-vb", + readOnly: false + }); + runTest(); +} +function runTest() { + document.getElementById('testresult').innerHTML = testAll(); + initText(editor); + +} +document.body.onload = init; +</script> + + <div id="edit"> + <textarea style="width:95%;height:200px;padding:5px;" name="solution" id="solution" ></textarea> + </div> + <pre id="testresult"></pre> + <p>MIME type defined: <code>text/x-vb</code>.</p> + +</article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/vb/vb.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/vb/vb.js new file mode 100644 index 0000000..d78f91f --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/vb/vb.js @@ -0,0 +1,276 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("vb", function(conf, parserConf) { + var ERRORCLASS = 'error'; + + function wordRegexp(words) { + return new RegExp("^((" + words.join(")|(") + "))\\b", "i"); + } + + var singleOperators = new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"); + var singleDelimiters = new RegExp('^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]'); + var doubleOperators = new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"); + var doubleDelimiters = new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"); + var tripleDelimiters = new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"); + var identifiers = new RegExp("^[_A-Za-z][_A-Za-z0-9]*"); + + var openingKeywords = ['class','module', 'sub','enum','select','while','if','function', 'get','set','property', 'try']; + var middleKeywords = ['else','elseif','case', 'catch']; + var endKeywords = ['next','loop']; + + var operatorKeywords = ['and', 'or', 'not', 'xor', 'in']; + var wordOperators = wordRegexp(operatorKeywords); + var commonKeywords = ['as', 'dim', 'break', 'continue','optional', 'then', 'until', + 'goto', 'byval','byref','new','handles','property', 'return', + 'const','private', 'protected', 'friend', 'public', 'shared', 'static', 'true','false']; + var commontypes = ['integer','string','double','decimal','boolean','short','char', 'float','single']; + + var keywords = wordRegexp(commonKeywords); + var types = wordRegexp(commontypes); + var stringPrefixes = '"'; + + var opening = wordRegexp(openingKeywords); + var middle = wordRegexp(middleKeywords); + var closing = wordRegexp(endKeywords); + var doubleClosing = wordRegexp(['end']); + var doOpening = wordRegexp(['do']); + + var indentInfo = null; + + CodeMirror.registerHelper("hintWords", "vb", openingKeywords.concat(middleKeywords).concat(endKeywords) + .concat(operatorKeywords).concat(commonKeywords).concat(commontypes)); + + function indent(_stream, state) { + state.currentIndent++; + } + + function dedent(_stream, state) { + state.currentIndent--; + } + // tokenizers + function tokenBase(stream, state) { + if (stream.eatSpace()) { + return null; + } + + var ch = stream.peek(); + + // Handle Comments + if (ch === "'") { + stream.skipToEnd(); + return 'comment'; + } + + + // Handle Number Literals + if (stream.match(/^((&H)|(&O))?[0-9\.a-f]/i, false)) { + var floatLiteral = false; + // Floats + if (stream.match(/^\d*\.\d+F?/i)) { floatLiteral = true; } + else if (stream.match(/^\d+\.\d*F?/)) { floatLiteral = true; } + else if (stream.match(/^\.\d+F?/)) { floatLiteral = true; } + + if (floatLiteral) { + // Float literals may be "imaginary" + stream.eat(/J/i); + return 'number'; + } + // Integers + var intLiteral = false; + // Hex + if (stream.match(/^&H[0-9a-f]+/i)) { intLiteral = true; } + // Octal + else if (stream.match(/^&O[0-7]+/i)) { intLiteral = true; } + // Decimal + else if (stream.match(/^[1-9]\d*F?/)) { + // Decimal literals may be "imaginary" + stream.eat(/J/i); + // TODO - Can you have imaginary longs? + intLiteral = true; + } + // Zero by itself with no other piece of number. + else if (stream.match(/^0(?![\dx])/i)) { intLiteral = true; } + if (intLiteral) { + // Integer literals may be "long" + stream.eat(/L/i); + return 'number'; + } + } + + // Handle Strings + if (stream.match(stringPrefixes)) { + state.tokenize = tokenStringFactory(stream.current()); + return state.tokenize(stream, state); + } + + // Handle operators and Delimiters + if (stream.match(tripleDelimiters) || stream.match(doubleDelimiters)) { + return null; + } + if (stream.match(doubleOperators) + || stream.match(singleOperators) + || stream.match(wordOperators)) { + return 'operator'; + } + if (stream.match(singleDelimiters)) { + return null; + } + if (stream.match(doOpening)) { + indent(stream,state); + state.doInCurrentLine = true; + return 'keyword'; + } + if (stream.match(opening)) { + if (! state.doInCurrentLine) + indent(stream,state); + else + state.doInCurrentLine = false; + return 'keyword'; + } + if (stream.match(middle)) { + return 'keyword'; + } + + if (stream.match(doubleClosing)) { + dedent(stream,state); + dedent(stream,state); + return 'keyword'; + } + if (stream.match(closing)) { + dedent(stream,state); + return 'keyword'; + } + + if (stream.match(types)) { + return 'keyword'; + } + + if (stream.match(keywords)) { + return 'keyword'; + } + + if (stream.match(identifiers)) { + return 'variable'; + } + + // Handle non-detected items + stream.next(); + return ERRORCLASS; + } + + function tokenStringFactory(delimiter) { + var singleline = delimiter.length == 1; + var OUTCLASS = 'string'; + + return function(stream, state) { + while (!stream.eol()) { + stream.eatWhile(/[^'"]/); + if (stream.match(delimiter)) { + state.tokenize = tokenBase; + return OUTCLASS; + } else { + stream.eat(/['"]/); + } + } + if (singleline) { + if (parserConf.singleLineStringErrors) { + return ERRORCLASS; + } else { + state.tokenize = tokenBase; + } + } + return OUTCLASS; + }; + } + + + function tokenLexer(stream, state) { + var style = state.tokenize(stream, state); + var current = stream.current(); + + // Handle '.' connected identifiers + if (current === '.') { + style = state.tokenize(stream, state); + current = stream.current(); + if (style === 'variable') { + return 'variable'; + } else { + return ERRORCLASS; + } + } + + + var delimiter_index = '[({'.indexOf(current); + if (delimiter_index !== -1) { + indent(stream, state ); + } + if (indentInfo === 'dedent') { + if (dedent(stream, state)) { + return ERRORCLASS; + } + } + delimiter_index = '])}'.indexOf(current); + if (delimiter_index !== -1) { + if (dedent(stream, state)) { + return ERRORCLASS; + } + } + + return style; + } + + var external = { + electricChars:"dDpPtTfFeE ", + startState: function() { + return { + tokenize: tokenBase, + lastToken: null, + currentIndent: 0, + nextLineIndent: 0, + doInCurrentLine: false + + + }; + }, + + token: function(stream, state) { + if (stream.sol()) { + state.currentIndent += state.nextLineIndent; + state.nextLineIndent = 0; + state.doInCurrentLine = 0; + } + var style = tokenLexer(stream, state); + + state.lastToken = {style:style, content: stream.current()}; + + + + return style; + }, + + indent: function(state, textAfter) { + var trueText = textAfter.replace(/^\s+|\s+$/g, '') ; + if (trueText.match(closing) || trueText.match(doubleClosing) || trueText.match(middle)) return conf.indentUnit*(state.currentIndent-1); + if(state.currentIndent < 0) return 0; + return state.currentIndent * conf.indentUnit; + }, + + lineComment: "'" + }; + return external; +}); + +CodeMirror.defineMIME("text/x-vb", "vb"); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/vbscript/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/vbscript/index.html new file mode 100644 index 0000000..ad7532d --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/vbscript/index.html @@ -0,0 +1,55 @@ +<!doctype html> + +<title>CodeMirror: VBScript mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="vbscript.js"></script> +<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">VBScript</a> + </ul> +</div> + +<article> +<h2>VBScript mode</h2> + + +<div><textarea id="code" name="code"> +' Pete Guhl +' 03-04-2012 +' +' Basic VBScript support for codemirror2 + +Const ForReading = 1, ForWriting = 2, ForAppending = 8 + +Call Sub020_PostBroadcastToUrbanAirship(strUserName, strPassword, intTransmitID, strResponse) + +If Not IsNull(strResponse) AND Len(strResponse) = 0 Then + boolTransmitOkYN = False +Else + ' WScript.Echo "Oh Happy Day! Oh Happy DAY!" + boolTransmitOkYN = True +End If +</textarea></div> + + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + lineNumbers: true, + indentUnit: 4 + }); + </script> + + <p><strong>MIME types defined:</strong> <code>text/vbscript</code>.</p> + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/vbscript/vbscript.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/vbscript/vbscript.js new file mode 100644 index 0000000..b66df22 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/vbscript/vbscript.js @@ -0,0 +1,350 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +/* +For extra ASP classic objects, initialize CodeMirror instance with this option: + isASP: true + +E.G.: + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + lineNumbers: true, + isASP: true + }); +*/ + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("vbscript", function(conf, parserConf) { + var ERRORCLASS = 'error'; + + function wordRegexp(words) { + return new RegExp("^((" + words.join(")|(") + "))\\b", "i"); + } + + var singleOperators = new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"); + var doubleOperators = new RegExp("^((<>)|(<=)|(>=))"); + var singleDelimiters = new RegExp('^[\\.,]'); + var brakets = new RegExp('^[\\(\\)]'); + var identifiers = new RegExp("^[A-Za-z][_A-Za-z0-9]*"); + + var openingKeywords = ['class','sub','select','while','if','function', 'property', 'with', 'for']; + var middleKeywords = ['else','elseif','case']; + var endKeywords = ['next','loop','wend']; + + var wordOperators = wordRegexp(['and', 'or', 'not', 'xor', 'is', 'mod', 'eqv', 'imp']); + var commonkeywords = ['dim', 'redim', 'then', 'until', 'randomize', + 'byval','byref','new','property', 'exit', 'in', + 'const','private', 'public', + 'get','set','let', 'stop', 'on error resume next', 'on error goto 0', 'option explicit', 'call', 'me']; + + //This list was from: http://msdn.microsoft.com/en-us/library/f8tbc79x(v=vs.84).aspx + var atomWords = ['true', 'false', 'nothing', 'empty', 'null']; + //This list was from: http://msdn.microsoft.com/en-us/library/3ca8tfek(v=vs.84).aspx + var builtinFuncsWords = ['abs', 'array', 'asc', 'atn', 'cbool', 'cbyte', 'ccur', 'cdate', 'cdbl', 'chr', 'cint', 'clng', 'cos', 'csng', 'cstr', 'date', 'dateadd', 'datediff', 'datepart', + 'dateserial', 'datevalue', 'day', 'escape', 'eval', 'execute', 'exp', 'filter', 'formatcurrency', 'formatdatetime', 'formatnumber', 'formatpercent', 'getlocale', 'getobject', + 'getref', 'hex', 'hour', 'inputbox', 'instr', 'instrrev', 'int', 'fix', 'isarray', 'isdate', 'isempty', 'isnull', 'isnumeric', 'isobject', 'join', 'lbound', 'lcase', 'left', + 'len', 'loadpicture', 'log', 'ltrim', 'rtrim', 'trim', 'maths', 'mid', 'minute', 'month', 'monthname', 'msgbox', 'now', 'oct', 'replace', 'rgb', 'right', 'rnd', 'round', + 'scriptengine', 'scriptenginebuildversion', 'scriptenginemajorversion', 'scriptengineminorversion', 'second', 'setlocale', 'sgn', 'sin', 'space', 'split', 'sqr', 'strcomp', + 'string', 'strreverse', 'tan', 'time', 'timer', 'timeserial', 'timevalue', 'typename', 'ubound', 'ucase', 'unescape', 'vartype', 'weekday', 'weekdayname', 'year']; + + //This list was from: http://msdn.microsoft.com/en-us/library/ydz4cfk3(v=vs.84).aspx + var builtinConsts = ['vbBlack', 'vbRed', 'vbGreen', 'vbYellow', 'vbBlue', 'vbMagenta', 'vbCyan', 'vbWhite', 'vbBinaryCompare', 'vbTextCompare', + 'vbSunday', 'vbMonday', 'vbTuesday', 'vbWednesday', 'vbThursday', 'vbFriday', 'vbSaturday', 'vbUseSystemDayOfWeek', 'vbFirstJan1', 'vbFirstFourDays', 'vbFirstFullWeek', + 'vbGeneralDate', 'vbLongDate', 'vbShortDate', 'vbLongTime', 'vbShortTime', 'vbObjectError', + 'vbOKOnly', 'vbOKCancel', 'vbAbortRetryIgnore', 'vbYesNoCancel', 'vbYesNo', 'vbRetryCancel', 'vbCritical', 'vbQuestion', 'vbExclamation', 'vbInformation', 'vbDefaultButton1', 'vbDefaultButton2', + 'vbDefaultButton3', 'vbDefaultButton4', 'vbApplicationModal', 'vbSystemModal', 'vbOK', 'vbCancel', 'vbAbort', 'vbRetry', 'vbIgnore', 'vbYes', 'vbNo', + 'vbCr', 'VbCrLf', 'vbFormFeed', 'vbLf', 'vbNewLine', 'vbNullChar', 'vbNullString', 'vbTab', 'vbVerticalTab', 'vbUseDefault', 'vbTrue', 'vbFalse', + 'vbEmpty', 'vbNull', 'vbInteger', 'vbLong', 'vbSingle', 'vbDouble', 'vbCurrency', 'vbDate', 'vbString', 'vbObject', 'vbError', 'vbBoolean', 'vbVariant', 'vbDataObject', 'vbDecimal', 'vbByte', 'vbArray']; + //This list was from: http://msdn.microsoft.com/en-us/library/hkc375ea(v=vs.84).aspx + var builtinObjsWords = ['WScript', 'err', 'debug', 'RegExp']; + var knownProperties = ['description', 'firstindex', 'global', 'helpcontext', 'helpfile', 'ignorecase', 'length', 'number', 'pattern', 'source', 'value', 'count']; + var knownMethods = ['clear', 'execute', 'raise', 'replace', 'test', 'write', 'writeline', 'close', 'open', 'state', 'eof', 'update', 'addnew', 'end', 'createobject', 'quit']; + + var aspBuiltinObjsWords = ['server', 'response', 'request', 'session', 'application']; + var aspKnownProperties = ['buffer', 'cachecontrol', 'charset', 'contenttype', 'expires', 'expiresabsolute', 'isclientconnected', 'pics', 'status', //response + 'clientcertificate', 'cookies', 'form', 'querystring', 'servervariables', 'totalbytes', //request + 'contents', 'staticobjects', //application + 'codepage', 'lcid', 'sessionid', 'timeout', //session + 'scripttimeout']; //server + var aspKnownMethods = ['addheader', 'appendtolog', 'binarywrite', 'end', 'flush', 'redirect', //response + 'binaryread', //request + 'remove', 'removeall', 'lock', 'unlock', //application + 'abandon', //session + 'getlasterror', 'htmlencode', 'mappath', 'transfer', 'urlencode']; //server + + var knownWords = knownMethods.concat(knownProperties); + + builtinObjsWords = builtinObjsWords.concat(builtinConsts); + + if (conf.isASP){ + builtinObjsWords = builtinObjsWords.concat(aspBuiltinObjsWords); + knownWords = knownWords.concat(aspKnownMethods, aspKnownProperties); + }; + + var keywords = wordRegexp(commonkeywords); + var atoms = wordRegexp(atomWords); + var builtinFuncs = wordRegexp(builtinFuncsWords); + var builtinObjs = wordRegexp(builtinObjsWords); + var known = wordRegexp(knownWords); + var stringPrefixes = '"'; + + var opening = wordRegexp(openingKeywords); + var middle = wordRegexp(middleKeywords); + var closing = wordRegexp(endKeywords); + var doubleClosing = wordRegexp(['end']); + var doOpening = wordRegexp(['do']); + var noIndentWords = wordRegexp(['on error resume next', 'exit']); + var comment = wordRegexp(['rem']); + + + function indent(_stream, state) { + state.currentIndent++; + } + + function dedent(_stream, state) { + state.currentIndent--; + } + // tokenizers + function tokenBase(stream, state) { + if (stream.eatSpace()) { + return 'space'; + //return null; + } + + var ch = stream.peek(); + + // Handle Comments + if (ch === "'") { + stream.skipToEnd(); + return 'comment'; + } + if (stream.match(comment)){ + stream.skipToEnd(); + return 'comment'; + } + + + // Handle Number Literals + if (stream.match(/^((&H)|(&O))?[0-9\.]/i, false) && !stream.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i, false)) { + var floatLiteral = false; + // Floats + if (stream.match(/^\d*\.\d+/i)) { floatLiteral = true; } + else if (stream.match(/^\d+\.\d*/)) { floatLiteral = true; } + else if (stream.match(/^\.\d+/)) { floatLiteral = true; } + + if (floatLiteral) { + // Float literals may be "imaginary" + stream.eat(/J/i); + return 'number'; + } + // Integers + var intLiteral = false; + // Hex + if (stream.match(/^&H[0-9a-f]+/i)) { intLiteral = true; } + // Octal + else if (stream.match(/^&O[0-7]+/i)) { intLiteral = true; } + // Decimal + else if (stream.match(/^[1-9]\d*F?/)) { + // Decimal literals may be "imaginary" + stream.eat(/J/i); + // TODO - Can you have imaginary longs? + intLiteral = true; + } + // Zero by itself with no other piece of number. + else if (stream.match(/^0(?![\dx])/i)) { intLiteral = true; } + if (intLiteral) { + // Integer literals may be "long" + stream.eat(/L/i); + return 'number'; + } + } + + // Handle Strings + if (stream.match(stringPrefixes)) { + state.tokenize = tokenStringFactory(stream.current()); + return state.tokenize(stream, state); + } + + // Handle operators and Delimiters + if (stream.match(doubleOperators) + || stream.match(singleOperators) + || stream.match(wordOperators)) { + return 'operator'; + } + if (stream.match(singleDelimiters)) { + return null; + } + + if (stream.match(brakets)) { + return "bracket"; + } + + if (stream.match(noIndentWords)) { + state.doInCurrentLine = true; + + return 'keyword'; + } + + if (stream.match(doOpening)) { + indent(stream,state); + state.doInCurrentLine = true; + + return 'keyword'; + } + if (stream.match(opening)) { + if (! state.doInCurrentLine) + indent(stream,state); + else + state.doInCurrentLine = false; + + return 'keyword'; + } + if (stream.match(middle)) { + return 'keyword'; + } + + + if (stream.match(doubleClosing)) { + dedent(stream,state); + dedent(stream,state); + + return 'keyword'; + } + if (stream.match(closing)) { + if (! state.doInCurrentLine) + dedent(stream,state); + else + state.doInCurrentLine = false; + + return 'keyword'; + } + + if (stream.match(keywords)) { + return 'keyword'; + } + + if (stream.match(atoms)) { + return 'atom'; + } + + if (stream.match(known)) { + return 'variable-2'; + } + + if (stream.match(builtinFuncs)) { + return 'builtin'; + } + + if (stream.match(builtinObjs)){ + return 'variable-2'; + } + + if (stream.match(identifiers)) { + return 'variable'; + } + + // Handle non-detected items + stream.next(); + return ERRORCLASS; + } + + function tokenStringFactory(delimiter) { + var singleline = delimiter.length == 1; + var OUTCLASS = 'string'; + + return function(stream, state) { + while (!stream.eol()) { + stream.eatWhile(/[^'"]/); + if (stream.match(delimiter)) { + state.tokenize = tokenBase; + return OUTCLASS; + } else { + stream.eat(/['"]/); + } + } + if (singleline) { + if (parserConf.singleLineStringErrors) { + return ERRORCLASS; + } else { + state.tokenize = tokenBase; + } + } + return OUTCLASS; + }; + } + + + function tokenLexer(stream, state) { + var style = state.tokenize(stream, state); + var current = stream.current(); + + // Handle '.' connected identifiers + if (current === '.') { + style = state.tokenize(stream, state); + + current = stream.current(); + if (style && (style.substr(0, 8) === 'variable' || style==='builtin' || style==='keyword')){//|| knownWords.indexOf(current.substring(1)) > -1) { + if (style === 'builtin' || style === 'keyword') style='variable'; + if (knownWords.indexOf(current.substr(1)) > -1) style='variable-2'; + + return style; + } else { + return ERRORCLASS; + } + } + + return style; + } + + var external = { + electricChars:"dDpPtTfFeE ", + startState: function() { + return { + tokenize: tokenBase, + lastToken: null, + currentIndent: 0, + nextLineIndent: 0, + doInCurrentLine: false, + ignoreKeyword: false + + + }; + }, + + token: function(stream, state) { + if (stream.sol()) { + state.currentIndent += state.nextLineIndent; + state.nextLineIndent = 0; + state.doInCurrentLine = 0; + } + var style = tokenLexer(stream, state); + + state.lastToken = {style:style, content: stream.current()}; + + if (style==='space') style=null; + + return style; + }, + + indent: function(state, textAfter) { + var trueText = textAfter.replace(/^\s+|\s+$/g, '') ; + if (trueText.match(closing) || trueText.match(doubleClosing) || trueText.match(middle)) return conf.indentUnit*(state.currentIndent-1); + if(state.currentIndent < 0) return 0; + return state.currentIndent * conf.indentUnit; + } + + }; + return external; +}); + +CodeMirror.defineMIME("text/vbscript", "vbscript"); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/velocity/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/velocity/index.html new file mode 100644 index 0000000..7eba8f4 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/velocity/index.html @@ -0,0 +1,120 @@ +<!doctype html> + +<title>CodeMirror: Velocity mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<link rel="stylesheet" href="../../theme/night.css"> +<script src="../../lib/codemirror.js"></script> +<script src="velocity.js"></script> +<style>.CodeMirror {border: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Velocity</a> + </ul> +</div> + +<article> +<h2>Velocity mode</h2> +<form><textarea id="code" name="code"> +## Velocity Code Demo +#* + based on PL/SQL mode by Peter Raganitsch, adapted to Velocity by Steve O'Hara ( http://www.pivotal-solutions.co.uk ) + August 2011 +*# + +#* + This is a multiline comment. + This is the second line +*# + +#[[ hello steve + This has invalid syntax that would normally need "poor man's escaping" like: + + #define() + + ${blah +]]# + +#include( "disclaimer.txt" "opinion.txt" ) +#include( $foo $bar ) + +#parse( "lecorbusier.vm" ) +#parse( $foo ) + +#evaluate( 'string with VTL #if(true)will be displayed#end' ) + +#define( $hello ) Hello $who #end #set( $who = "World!") $hello ## displays Hello World! + +#foreach( $customer in $customerList ) + + $foreach.count $customer.Name + + #if( $foo == ${bar}) + it's true! + #break + #{else} + it's not! + #stop + #end + + #if ($foreach.parent.hasNext) + $velocityCount + #end +#end + +$someObject.getValues("this is a string split + across lines") + +$someObject("This plus $something in the middle").method(7567).property + +#set($something = "Parseable string with '$quotes'!") + +#macro( tablerows $color $somelist ) + #foreach( $something in $somelist ) + <tr><td bgcolor=$color>$something</td></tr> + <tr><td bgcolor=$color>$bodyContent</td></tr> + #end +#end + +#tablerows("red" ["dadsdf","dsa"]) +#@tablerows("red" ["dadsdf","dsa"]) some body content #end + + Variable reference: #set( $monkey = $bill ) + String literal: #set( $monkey.Friend = 'monica' ) + Property reference: #set( $monkey.Blame = $whitehouse.Leak ) + Method reference: #set( $monkey.Plan = $spindoctor.weave($web) ) + Number literal: #set( $monkey.Number = 123 ) + Range operator: #set( $monkey.Numbers = [1..3] ) + Object list: #set( $monkey.Say = ["Not", $my, "fault"] ) + Object map: #set( $monkey.Map = {"banana" : "good", "roast beef" : "bad"}) + +The RHS can also be a simple arithmetic expression, such as: +Addition: #set( $value = $foo + 1 ) + Subtraction: #set( $value = $bar - 1 ) + Multiplication: #set( $value = $foo * $bar ) + Division: #set( $value = $foo / $bar ) + Remainder: #set( $value = $foo % $bar ) + +</textarea></form> + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + theme: "night", + lineNumbers: true, + indentUnit: 4, + mode: "text/velocity" + }); + </script> + + <p><strong>MIME types defined:</strong> <code>text/velocity</code>.</p> + + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/velocity/velocity.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/velocity/velocity.js new file mode 100644 index 0000000..12ee221 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/velocity/velocity.js @@ -0,0 +1,201 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("velocity", function() { + function parseWords(str) { + var obj = {}, words = str.split(" "); + for (var i = 0; i < words.length; ++i) obj[words[i]] = true; + return obj; + } + + var keywords = parseWords("#end #else #break #stop #[[ #]] " + + "#{end} #{else} #{break} #{stop}"); + var functions = parseWords("#if #elseif #foreach #set #include #parse #macro #define #evaluate " + + "#{if} #{elseif} #{foreach} #{set} #{include} #{parse} #{macro} #{define} #{evaluate}"); + var specials = parseWords("$foreach.count $foreach.hasNext $foreach.first $foreach.last $foreach.topmost $foreach.parent.count $foreach.parent.hasNext $foreach.parent.first $foreach.parent.last $foreach.parent $velocityCount $!bodyContent $bodyContent"); + var isOperatorChar = /[+\-*&%=<>!?:\/|]/; + + function chain(stream, state, f) { + state.tokenize = f; + return f(stream, state); + } + function tokenBase(stream, state) { + var beforeParams = state.beforeParams; + state.beforeParams = false; + var ch = stream.next(); + // start of unparsed string? + if ((ch == "'") && !state.inString && state.inParams) { + state.lastTokenWasBuiltin = false; + return chain(stream, state, tokenString(ch)); + } + // start of parsed string? + else if ((ch == '"')) { + state.lastTokenWasBuiltin = false; + if (state.inString) { + state.inString = false; + return "string"; + } + else if (state.inParams) + return chain(stream, state, tokenString(ch)); + } + // is it one of the special signs []{}().,;? Seperator? + else if (/[\[\]{}\(\),;\.]/.test(ch)) { + if (ch == "(" && beforeParams) + state.inParams = true; + else if (ch == ")") { + state.inParams = false; + state.lastTokenWasBuiltin = true; + } + return null; + } + // start of a number value? + else if (/\d/.test(ch)) { + state.lastTokenWasBuiltin = false; + stream.eatWhile(/[\w\.]/); + return "number"; + } + // multi line comment? + else if (ch == "#" && stream.eat("*")) { + state.lastTokenWasBuiltin = false; + return chain(stream, state, tokenComment); + } + // unparsed content? + else if (ch == "#" && stream.match(/ *\[ *\[/)) { + state.lastTokenWasBuiltin = false; + return chain(stream, state, tokenUnparsed); + } + // single line comment? + else if (ch == "#" && stream.eat("#")) { + state.lastTokenWasBuiltin = false; + stream.skipToEnd(); + return "comment"; + } + // variable? + else if (ch == "$") { + stream.eatWhile(/[\w\d\$_\.{}]/); + // is it one of the specials? + if (specials && specials.propertyIsEnumerable(stream.current())) { + return "keyword"; + } + else { + state.lastTokenWasBuiltin = true; + state.beforeParams = true; + return "builtin"; + } + } + // is it a operator? + else if (isOperatorChar.test(ch)) { + state.lastTokenWasBuiltin = false; + stream.eatWhile(isOperatorChar); + return "operator"; + } + else { + // get the whole word + stream.eatWhile(/[\w\$_{}@]/); + var word = stream.current(); + // is it one of the listed keywords? + if (keywords && keywords.propertyIsEnumerable(word)) + return "keyword"; + // is it one of the listed functions? + if (functions && functions.propertyIsEnumerable(word) || + (stream.current().match(/^#@?[a-z0-9_]+ *$/i) && stream.peek()=="(") && + !(functions && functions.propertyIsEnumerable(word.toLowerCase()))) { + state.beforeParams = true; + state.lastTokenWasBuiltin = false; + return "keyword"; + } + if (state.inString) { + state.lastTokenWasBuiltin = false; + return "string"; + } + if (stream.pos > word.length && stream.string.charAt(stream.pos-word.length-1)=="." && state.lastTokenWasBuiltin) + return "builtin"; + // default: just a "word" + state.lastTokenWasBuiltin = false; + return null; + } + } + + function tokenString(quote) { + return function(stream, state) { + var escaped = false, next, end = false; + while ((next = stream.next()) != null) { + if ((next == quote) && !escaped) { + end = true; + break; + } + if (quote=='"' && stream.peek() == '$' && !escaped) { + state.inString = true; + end = true; + break; + } + escaped = !escaped && next == "\\"; + } + if (end) state.tokenize = tokenBase; + return "string"; + }; + } + + function tokenComment(stream, state) { + var maybeEnd = false, ch; + while (ch = stream.next()) { + if (ch == "#" && maybeEnd) { + state.tokenize = tokenBase; + break; + } + maybeEnd = (ch == "*"); + } + return "comment"; + } + + function tokenUnparsed(stream, state) { + var maybeEnd = 0, ch; + while (ch = stream.next()) { + if (ch == "#" && maybeEnd == 2) { + state.tokenize = tokenBase; + break; + } + if (ch == "]") + maybeEnd++; + else if (ch != " ") + maybeEnd = 0; + } + return "meta"; + } + // Interface + + return { + startState: function() { + return { + tokenize: tokenBase, + beforeParams: false, + inParams: false, + inString: false, + lastTokenWasBuiltin: false + }; + }, + + token: function(stream, state) { + if (stream.eatSpace()) return null; + return state.tokenize(stream, state); + }, + blockCommentStart: "#*", + blockCommentEnd: "*#", + lineComment: "##", + fold: "velocity" + }; +}); + +CodeMirror.defineMIME("text/velocity", "velocity"); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/verilog/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/verilog/index.html new file mode 100644 index 0000000..9c52722 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/verilog/index.html @@ -0,0 +1,120 @@ +<!doctype html> + +<title>CodeMirror: Verilog/SystemVerilog mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../../addon/edit/matchbrackets.js"></script> +<script src="verilog.js"></script> +<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Verilog/SystemVerilog</a> + </ul> +</div> + +<article> +<h2>SystemVerilog mode</h2> + +<div><textarea id="code" name="code"> +// Literals +1'b0 +1'bx +1'bz +16'hDC78 +'hdeadbeef +'b0011xxzz +1234 +32'd5678 +3.4e6 +-128.7 + +// Macro definition +`define BUS_WIDTH = 8; + +// Module definition +module block( + input clk, + input rst_n, + input [`BUS_WIDTH-1:0] data_in, + output [`BUS_WIDTH-1:0] data_out +); + + always @(posedge clk or negedge rst_n) begin + + if (~rst_n) begin + data_out <= 8'b0; + end else begin + data_out <= data_in; + end + + if (~rst_n) + data_out <= 8'b0; + else + data_out <= data_in; + + if (~rst_n) + begin + data_out <= 8'b0; + end + else + begin + data_out <= data_in; + end + + end + +endmodule + +// Class definition +class test; + + /** + * Sum two integers + */ + function int sum(int a, int b); + int result = a + b; + string msg = $sformatf("%d + %d = %d", a, b, result); + $display(msg); + return result; + endfunction + + task delay(int num_cycles); + repeat(num_cycles) #1; + endtask + +endclass + +</textarea></div> + +<script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + lineNumbers: true, + matchBrackets: true, + mode: { + name: "verilog", + noIndentKeywords: ["package"] + } + }); +</script> + +<p> +Syntax highlighting and indentation for the Verilog and SystemVerilog languages (IEEE 1800). +<h2>Configuration options:</h2> + <ul> + <li><strong>noIndentKeywords</strong> - List of keywords which should not cause indentation to increase. E.g. ["package", "module"]. Default: None</li> + </ul> +</p> + +<p><strong>MIME types defined:</strong> <code>text/x-verilog</code> and <code>text/x-systemverilog</code>.</p> +</article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/verilog/test.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/verilog/test.js new file mode 100644 index 0000000..8334fab --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/verilog/test.js @@ -0,0 +1,273 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function() { + var mode = CodeMirror.getMode({indentUnit: 4}, "verilog"); + function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); } + + MT("binary_literals", + "[number 1'b0]", + "[number 1'b1]", + "[number 1'bx]", + "[number 1'bz]", + "[number 1'bX]", + "[number 1'bZ]", + "[number 1'B0]", + "[number 1'B1]", + "[number 1'Bx]", + "[number 1'Bz]", + "[number 1'BX]", + "[number 1'BZ]", + "[number 1'b0]", + "[number 1'b1]", + "[number 2'b01]", + "[number 2'bxz]", + "[number 2'b11]", + "[number 2'b10]", + "[number 2'b1Z]", + "[number 12'b0101_0101_0101]", + "[number 1'b 0]", + "[number 'b0101]" + ); + + MT("octal_literals", + "[number 3'o7]", + "[number 3'O7]", + "[number 3'so7]", + "[number 3'SO7]" + ); + + MT("decimal_literals", + "[number 0]", + "[number 1]", + "[number 7]", + "[number 123_456]", + "[number 'd33]", + "[number 8'd255]", + "[number 8'D255]", + "[number 8'sd255]", + "[number 8'SD255]", + "[number 32'd123]", + "[number 32 'd123]", + "[number 32 'd 123]" + ); + + MT("hex_literals", + "[number 4'h0]", + "[number 4'ha]", + "[number 4'hF]", + "[number 4'hx]", + "[number 4'hz]", + "[number 4'hX]", + "[number 4'hZ]", + "[number 32'hdc78]", + "[number 32'hDC78]", + "[number 32 'hDC78]", + "[number 32'h DC78]", + "[number 32 'h DC78]", + "[number 32'h44x7]", + "[number 32'hFFF?]" + ); + + MT("real_number_literals", + "[number 1.2]", + "[number 0.1]", + "[number 2394.26331]", + "[number 1.2E12]", + "[number 1.2e12]", + "[number 1.30e-2]", + "[number 0.1e-0]", + "[number 23E10]", + "[number 29E-2]", + "[number 236.123_763_e-12]" + ); + + MT("operators", + "[meta ^]" + ); + + MT("keywords", + "[keyword logic]", + "[keyword logic] [variable foo]", + "[keyword reg] [variable abc]" + ); + + MT("variables", + "[variable _leading_underscore]", + "[variable _if]", + "[number 12] [variable foo]", + "[variable foo] [number 14]" + ); + + MT("tick_defines", + "[def `FOO]", + "[def `foo]", + "[def `FOO_bar]" + ); + + MT("system_calls", + "[meta $display]", + "[meta $vpi_printf]" + ); + + MT("line_comment", "[comment // Hello world]"); + + // Alignment tests + MT("align_port_map_style1", + /** + * mod mod(.a(a), + * .b(b) + * ); + */ + "[variable mod] [variable mod][bracket (].[variable a][bracket (][variable a][bracket )],", + " .[variable b][bracket (][variable b][bracket )]", + " [bracket )];", + "" + ); + + MT("align_port_map_style2", + /** + * mod mod( + * .a(a), + * .b(b) + * ); + */ + "[variable mod] [variable mod][bracket (]", + " .[variable a][bracket (][variable a][bracket )],", + " .[variable b][bracket (][variable b][bracket )]", + "[bracket )];", + "" + ); + + // Indentation tests + MT("indent_single_statement_if", + "[keyword if] [bracket (][variable foo][bracket )]", + " [keyword break];", + "" + ); + + MT("no_indent_after_single_line_if", + "[keyword if] [bracket (][variable foo][bracket )] [keyword break];", + "" + ); + + MT("indent_after_if_begin_same_line", + "[keyword if] [bracket (][variable foo][bracket )] [keyword begin]", + " [keyword break];", + " [keyword break];", + "[keyword end]", + "" + ); + + MT("indent_after_if_begin_next_line", + "[keyword if] [bracket (][variable foo][bracket )]", + " [keyword begin]", + " [keyword break];", + " [keyword break];", + " [keyword end]", + "" + ); + + MT("indent_single_statement_if_else", + "[keyword if] [bracket (][variable foo][bracket )]", + " [keyword break];", + "[keyword else]", + " [keyword break];", + "" + ); + + MT("indent_if_else_begin_same_line", + "[keyword if] [bracket (][variable foo][bracket )] [keyword begin]", + " [keyword break];", + " [keyword break];", + "[keyword end] [keyword else] [keyword begin]", + " [keyword break];", + " [keyword break];", + "[keyword end]", + "" + ); + + MT("indent_if_else_begin_next_line", + "[keyword if] [bracket (][variable foo][bracket )]", + " [keyword begin]", + " [keyword break];", + " [keyword break];", + " [keyword end]", + "[keyword else]", + " [keyword begin]", + " [keyword break];", + " [keyword break];", + " [keyword end]", + "" + ); + + MT("indent_if_nested_without_begin", + "[keyword if] [bracket (][variable foo][bracket )]", + " [keyword if] [bracket (][variable foo][bracket )]", + " [keyword if] [bracket (][variable foo][bracket )]", + " [keyword break];", + "" + ); + + MT("indent_case", + "[keyword case] [bracket (][variable state][bracket )]", + " [variable FOO]:", + " [keyword break];", + " [variable BAR]:", + " [keyword break];", + "[keyword endcase]", + "" + ); + + MT("unindent_after_end_with_preceding_text", + "[keyword begin]", + " [keyword break]; [keyword end]", + "" + ); + + MT("export_function_one_line_does_not_indent", + "[keyword export] [string \"DPI-C\"] [keyword function] [variable helloFromSV];", + "" + ); + + MT("export_task_one_line_does_not_indent", + "[keyword export] [string \"DPI-C\"] [keyword task] [variable helloFromSV];", + "" + ); + + MT("export_function_two_lines_indents_properly", + "[keyword export]", + " [string \"DPI-C\"] [keyword function] [variable helloFromSV];", + "" + ); + + MT("export_task_two_lines_indents_properly", + "[keyword export]", + " [string \"DPI-C\"] [keyword task] [variable helloFromSV];", + "" + ); + + MT("import_function_one_line_does_not_indent", + "[keyword import] [string \"DPI-C\"] [keyword function] [variable helloFromC];", + "" + ); + + MT("import_task_one_line_does_not_indent", + "[keyword import] [string \"DPI-C\"] [keyword task] [variable helloFromC];", + "" + ); + + MT("import_package_single_line_does_not_indent", + "[keyword import] [variable p]::[variable x];", + "[keyword import] [variable p]::[variable y];", + "" + ); + + MT("covergroup_with_function_indents_properly", + "[keyword covergroup] [variable cg] [keyword with] [keyword function] [variable sample][bracket (][keyword bit] [variable b][bracket )];", + " [variable c] : [keyword coverpoint] [variable c];", + "[keyword endgroup]: [variable cg]", + "" + ); + +})(); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/verilog/verilog.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/verilog/verilog.js new file mode 100644 index 0000000..7513dce --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/verilog/verilog.js @@ -0,0 +1,537 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("verilog", function(config, parserConfig) { + + var indentUnit = config.indentUnit, + statementIndentUnit = parserConfig.statementIndentUnit || indentUnit, + dontAlignCalls = parserConfig.dontAlignCalls, + noIndentKeywords = parserConfig.noIndentKeywords || [], + multiLineStrings = parserConfig.multiLineStrings, + hooks = parserConfig.hooks || {}; + + function words(str) { + var obj = {}, words = str.split(" "); + for (var i = 0; i < words.length; ++i) obj[words[i]] = true; + return obj; + } + + /** + * Keywords from IEEE 1800-2012 + */ + var keywords = words( + "accept_on alias always always_comb always_ff always_latch and assert assign assume automatic before begin bind " + + "bins binsof bit break buf bufif0 bufif1 byte case casex casez cell chandle checker class clocking cmos config " + + "const constraint context continue cover covergroup coverpoint cross deassign default defparam design disable " + + "dist do edge else end endcase endchecker endclass endclocking endconfig endfunction endgenerate endgroup " + + "endinterface endmodule endpackage endprimitive endprogram endproperty endspecify endsequence endtable endtask " + + "enum event eventually expect export extends extern final first_match for force foreach forever fork forkjoin " + + "function generate genvar global highz0 highz1 if iff ifnone ignore_bins illegal_bins implements implies import " + + "incdir include initial inout input inside instance int integer interconnect interface intersect join join_any " + + "join_none large let liblist library local localparam logic longint macromodule matches medium modport module " + + "nand negedge nettype new nexttime nmos nor noshowcancelled not notif0 notif1 null or output package packed " + + "parameter pmos posedge primitive priority program property protected pull0 pull1 pulldown pullup " + + "pulsestyle_ondetect pulsestyle_onevent pure rand randc randcase randsequence rcmos real realtime ref reg " + + "reject_on release repeat restrict return rnmos rpmos rtran rtranif0 rtranif1 s_always s_eventually s_nexttime " + + "s_until s_until_with scalared sequence shortint shortreal showcancelled signed small soft solve specify " + + "specparam static string strong strong0 strong1 struct super supply0 supply1 sync_accept_on sync_reject_on " + + "table tagged task this throughout time timeprecision timeunit tran tranif0 tranif1 tri tri0 tri1 triand trior " + + "trireg type typedef union unique unique0 unsigned until until_with untyped use uwire var vectored virtual void " + + "wait wait_order wand weak weak0 weak1 while wildcard wire with within wor xnor xor"); + + /** Operators from IEEE 1800-2012 + unary_operator ::= + + | - | ! | ~ | & | ~& | | | ~| | ^ | ~^ | ^~ + binary_operator ::= + + | - | * | / | % | == | != | === | !== | ==? | !=? | && | || | ** + | < | <= | > | >= | & | | | ^ | ^~ | ~^ | >> | << | >>> | <<< + | -> | <-> + inc_or_dec_operator ::= ++ | -- + unary_module_path_operator ::= + ! | ~ | & | ~& | | | ~| | ^ | ~^ | ^~ + binary_module_path_operator ::= + == | != | && | || | & | | | ^ | ^~ | ~^ + */ + var isOperatorChar = /[\+\-\*\/!~&|^%=?:]/; + var isBracketChar = /[\[\]{}()]/; + + var unsignedNumber = /\d[0-9_]*/; + var decimalLiteral = /\d*\s*'s?d\s*\d[0-9_]*/i; + var binaryLiteral = /\d*\s*'s?b\s*[xz01][xz01_]*/i; + var octLiteral = /\d*\s*'s?o\s*[xz0-7][xz0-7_]*/i; + var hexLiteral = /\d*\s*'s?h\s*[0-9a-fxz?][0-9a-fxz?_]*/i; + var realLiteral = /(\d[\d_]*(\.\d[\d_]*)?E-?[\d_]+)|(\d[\d_]*\.\d[\d_]*)/i; + + var closingBracketOrWord = /^((\w+)|[)}\]])/; + var closingBracket = /[)}\]]/; + + var curPunc; + var curKeyword; + + // Block openings which are closed by a matching keyword in the form of ("end" + keyword) + // E.g. "task" => "endtask" + var blockKeywords = words( + "case checker class clocking config function generate interface module package" + + "primitive program property specify sequence table task" + ); + + // Opening/closing pairs + var openClose = {}; + for (var keyword in blockKeywords) { + openClose[keyword] = "end" + keyword; + } + openClose["begin"] = "end"; + openClose["casex"] = "endcase"; + openClose["casez"] = "endcase"; + openClose["do" ] = "while"; + openClose["fork" ] = "join;join_any;join_none"; + openClose["covergroup"] = "endgroup"; + + for (var i in noIndentKeywords) { + var keyword = noIndentKeywords[i]; + if (openClose[keyword]) { + openClose[keyword] = undefined; + } + } + + // Keywords which open statements that are ended with a semi-colon + var statementKeywords = words("always always_comb always_ff always_latch assert assign assume else export for foreach forever if import initial repeat while"); + + function tokenBase(stream, state) { + var ch = stream.peek(), style; + if (hooks[ch] && (style = hooks[ch](stream, state)) != false) return style; + if (hooks.tokenBase && (style = hooks.tokenBase(stream, state)) != false) + return style; + + if (/[,;:\.]/.test(ch)) { + curPunc = stream.next(); + return null; + } + if (isBracketChar.test(ch)) { + curPunc = stream.next(); + return "bracket"; + } + // Macros (tick-defines) + if (ch == '`') { + stream.next(); + if (stream.eatWhile(/[\w\$_]/)) { + return "def"; + } else { + return null; + } + } + // System calls + if (ch == '$') { + stream.next(); + if (stream.eatWhile(/[\w\$_]/)) { + return "meta"; + } else { + return null; + } + } + // Time literals + if (ch == '#') { + stream.next(); + stream.eatWhile(/[\d_.]/); + return "def"; + } + // Strings + if (ch == '"') { + stream.next(); + state.tokenize = tokenString(ch); + return state.tokenize(stream, state); + } + // Comments + if (ch == "/") { + stream.next(); + if (stream.eat("*")) { + state.tokenize = tokenComment; + return tokenComment(stream, state); + } + if (stream.eat("/")) { + stream.skipToEnd(); + return "comment"; + } + stream.backUp(1); + } + + // Numeric literals + if (stream.match(realLiteral) || + stream.match(decimalLiteral) || + stream.match(binaryLiteral) || + stream.match(octLiteral) || + stream.match(hexLiteral) || + stream.match(unsignedNumber) || + stream.match(realLiteral)) { + return "number"; + } + + // Operators + if (stream.eatWhile(isOperatorChar)) { + return "meta"; + } + + // Keywords / plain variables + if (stream.eatWhile(/[\w\$_]/)) { + var cur = stream.current(); + if (keywords[cur]) { + if (openClose[cur]) { + curPunc = "newblock"; + } + if (statementKeywords[cur]) { + curPunc = "newstatement"; + } + curKeyword = cur; + return "keyword"; + } + return "variable"; + } + + stream.next(); + return null; + } + + function tokenString(quote) { + return function(stream, state) { + var escaped = false, next, end = false; + while ((next = stream.next()) != null) { + if (next == quote && !escaped) {end = true; break;} + escaped = !escaped && next == "\\"; + } + if (end || !(escaped || multiLineStrings)) + state.tokenize = tokenBase; + return "string"; + }; + } + + function tokenComment(stream, state) { + var maybeEnd = false, ch; + while (ch = stream.next()) { + if (ch == "/" && maybeEnd) { + state.tokenize = tokenBase; + break; + } + maybeEnd = (ch == "*"); + } + return "comment"; + } + + function Context(indented, column, type, align, prev) { + this.indented = indented; + this.column = column; + this.type = type; + this.align = align; + this.prev = prev; + } + function pushContext(state, col, type) { + var indent = state.indented; + var c = new Context(indent, col, type, null, state.context); + return state.context = c; + } + function popContext(state) { + var t = state.context.type; + if (t == ")" || t == "]" || t == "}") { + state.indented = state.context.indented; + } + return state.context = state.context.prev; + } + + function isClosing(text, contextClosing) { + if (text == contextClosing) { + return true; + } else { + // contextClosing may be multiple keywords separated by ; + var closingKeywords = contextClosing.split(";"); + for (var i in closingKeywords) { + if (text == closingKeywords[i]) { + return true; + } + } + return false; + } + } + + function buildElectricInputRegEx() { + // Reindentation should occur on any bracket char: {}()[] + // or on a match of any of the block closing keywords, at + // the end of a line + var allClosings = []; + for (var i in openClose) { + if (openClose[i]) { + var closings = openClose[i].split(";"); + for (var j in closings) { + allClosings.push(closings[j]); + } + } + } + var re = new RegExp("[{}()\\[\\]]|(" + allClosings.join("|") + ")$"); + return re; + } + + // Interface + return { + + // Regex to force current line to reindent + electricInput: buildElectricInputRegEx(), + + startState: function(basecolumn) { + var state = { + tokenize: null, + context: new Context((basecolumn || 0) - indentUnit, 0, "top", false), + indented: 0, + startOfLine: true + }; + if (hooks.startState) hooks.startState(state); + return state; + }, + + token: function(stream, state) { + var ctx = state.context; + if (stream.sol()) { + if (ctx.align == null) ctx.align = false; + state.indented = stream.indentation(); + state.startOfLine = true; + } + if (hooks.token) hooks.token(stream, state); + if (stream.eatSpace()) return null; + curPunc = null; + curKeyword = null; + var style = (state.tokenize || tokenBase)(stream, state); + if (style == "comment" || style == "meta" || style == "variable") return style; + if (ctx.align == null) ctx.align = true; + + if (curPunc == ctx.type) { + popContext(state); + } else if ((curPunc == ";" && ctx.type == "statement") || + (ctx.type && isClosing(curKeyword, ctx.type))) { + ctx = popContext(state); + while (ctx && ctx.type == "statement") ctx = popContext(state); + } else if (curPunc == "{") { + pushContext(state, stream.column(), "}"); + } else if (curPunc == "[") { + pushContext(state, stream.column(), "]"); + } else if (curPunc == "(") { + pushContext(state, stream.column(), ")"); + } else if (ctx && ctx.type == "endcase" && curPunc == ":") { + pushContext(state, stream.column(), "statement"); + } else if (curPunc == "newstatement") { + pushContext(state, stream.column(), "statement"); + } else if (curPunc == "newblock") { + if (curKeyword == "function" && ctx && (ctx.type == "statement" || ctx.type == "endgroup")) { + // The 'function' keyword can appear in some other contexts where it actually does not + // indicate a function (import/export DPI and covergroup definitions). + // Do nothing in this case + } else if (curKeyword == "task" && ctx && ctx.type == "statement") { + // Same thing for task + } else { + var close = openClose[curKeyword]; + pushContext(state, stream.column(), close); + } + } + + state.startOfLine = false; + return style; + }, + + indent: function(state, textAfter) { + if (state.tokenize != tokenBase && state.tokenize != null) return CodeMirror.Pass; + if (hooks.indent) { + var fromHook = hooks.indent(state); + if (fromHook >= 0) return fromHook; + } + var ctx = state.context, firstChar = textAfter && textAfter.charAt(0); + if (ctx.type == "statement" && firstChar == "}") ctx = ctx.prev; + var closing = false; + var possibleClosing = textAfter.match(closingBracketOrWord); + if (possibleClosing) + closing = isClosing(possibleClosing[0], ctx.type); + if (ctx.type == "statement") return ctx.indented + (firstChar == "{" ? 0 : statementIndentUnit); + else if (closingBracket.test(ctx.type) && ctx.align && !dontAlignCalls) return ctx.column + (closing ? 0 : 1); + else if (ctx.type == ")" && !closing) return ctx.indented + statementIndentUnit; + else return ctx.indented + (closing ? 0 : indentUnit); + }, + + blockCommentStart: "/*", + blockCommentEnd: "*/", + lineComment: "//" + }; +}); + + CodeMirror.defineMIME("text/x-verilog", { + name: "verilog" + }); + + CodeMirror.defineMIME("text/x-systemverilog", { + name: "verilog" + }); + + // TLVVerilog mode + + var tlvchScopePrefixes = { + ">": "property", "->": "property", "-": "hr", "|": "link", "?$": "qualifier", "?*": "qualifier", + "@-": "variable-3", "@": "variable-3", "?": "qualifier" + }; + + function tlvGenIndent(stream, state) { + var tlvindentUnit = 2; + var rtnIndent = -1, indentUnitRq = 0, curIndent = stream.indentation(); + switch (state.tlvCurCtlFlowChar) { + case "\\": + curIndent = 0; + break; + case "|": + if (state.tlvPrevPrevCtlFlowChar == "@") { + indentUnitRq = -2; //-2 new pipe rq after cur pipe + break; + } + if (tlvchScopePrefixes[state.tlvPrevCtlFlowChar]) + indentUnitRq = 1; // +1 new scope + break; + case "M": // m4 + if (state.tlvPrevPrevCtlFlowChar == "@") { + indentUnitRq = -2; //-2 new inst rq after pipe + break; + } + if (tlvchScopePrefixes[state.tlvPrevCtlFlowChar]) + indentUnitRq = 1; // +1 new scope + break; + case "@": + if (state.tlvPrevCtlFlowChar == "S") + indentUnitRq = -1; // new pipe stage after stmts + if (state.tlvPrevCtlFlowChar == "|") + indentUnitRq = 1; // 1st pipe stage + break; + case "S": + if (state.tlvPrevCtlFlowChar == "@") + indentUnitRq = 1; // flow in pipe stage + if (tlvchScopePrefixes[state.tlvPrevCtlFlowChar]) + indentUnitRq = 1; // +1 new scope + break; + } + var statementIndentUnit = tlvindentUnit; + rtnIndent = curIndent + (indentUnitRq*statementIndentUnit); + return rtnIndent >= 0 ? rtnIndent : curIndent; + } + + CodeMirror.defineMIME("text/x-tlv", { + name: "verilog", + hooks: { + "\\": function(stream, state) { + var vxIndent = 0, style = false; + var curPunc = stream.string; + if ((stream.sol()) && ((/\\SV/.test(stream.string)) || (/\\TLV/.test(stream.string)))) { + curPunc = (/\\TLV_version/.test(stream.string)) + ? "\\TLV_version" : stream.string; + stream.skipToEnd(); + if (curPunc == "\\SV" && state.vxCodeActive) {state.vxCodeActive = false;}; + if ((/\\TLV/.test(curPunc) && !state.vxCodeActive) + || (curPunc=="\\TLV_version" && state.vxCodeActive)) {state.vxCodeActive = true;}; + style = "keyword"; + state.tlvCurCtlFlowChar = state.tlvPrevPrevCtlFlowChar + = state.tlvPrevCtlFlowChar = ""; + if (state.vxCodeActive == true) { + state.tlvCurCtlFlowChar = "\\"; + vxIndent = tlvGenIndent(stream, state); + } + state.vxIndentRq = vxIndent; + } + return style; + }, + tokenBase: function(stream, state) { + var vxIndent = 0, style = false; + var tlvisOperatorChar = /[\[\]=:]/; + var tlvkpScopePrefixs = { + "**":"variable-2", "*":"variable-2", "$$":"variable", "$":"variable", + "^^":"attribute", "^":"attribute"}; + var ch = stream.peek(); + var vxCurCtlFlowCharValueAtStart = state.tlvCurCtlFlowChar; + if (state.vxCodeActive == true) { + if (/[\[\]{}\(\);\:]/.test(ch)) { + // bypass nesting and 1 char punc + style = "meta"; + stream.next(); + } else if (ch == "/") { + stream.next(); + if (stream.eat("/")) { + stream.skipToEnd(); + style = "comment"; + state.tlvCurCtlFlowChar = "S"; + } else { + stream.backUp(1); + } + } else if (ch == "@") { + // pipeline stage + style = tlvchScopePrefixes[ch]; + state.tlvCurCtlFlowChar = "@"; + stream.next(); + stream.eatWhile(/[\w\$_]/); + } else if (stream.match(/\b[mM]4+/, true)) { // match: function(pattern, consume, caseInsensitive) + // m4 pre proc + stream.skipTo("("); + style = "def"; + state.tlvCurCtlFlowChar = "M"; + } else if (ch == "!" && stream.sol()) { + // v stmt in tlv region + // state.tlvCurCtlFlowChar = "S"; + style = "comment"; + stream.next(); + } else if (tlvisOperatorChar.test(ch)) { + // operators + stream.eatWhile(tlvisOperatorChar); + style = "operator"; + } else if (ch == "#") { + // phy hier + state.tlvCurCtlFlowChar = (state.tlvCurCtlFlowChar == "") + ? ch : state.tlvCurCtlFlowChar; + stream.next(); + stream.eatWhile(/[+-]\d/); + style = "tag"; + } else if (tlvkpScopePrefixs.propertyIsEnumerable(ch)) { + // special TLV operators + style = tlvkpScopePrefixs[ch]; + state.tlvCurCtlFlowChar = state.tlvCurCtlFlowChar == "" ? "S" : state.tlvCurCtlFlowChar; // stmt + stream.next(); + stream.match(/[a-zA-Z_0-9]+/); + } else if (style = tlvchScopePrefixes[ch] || false) { + // special TLV operators + state.tlvCurCtlFlowChar = state.tlvCurCtlFlowChar == "" ? ch : state.tlvCurCtlFlowChar; + stream.next(); + stream.match(/[a-zA-Z_0-9]+/); + } + if (state.tlvCurCtlFlowChar != vxCurCtlFlowCharValueAtStart) { // flow change + vxIndent = tlvGenIndent(stream, state); + state.vxIndentRq = vxIndent; + } + } + return style; + }, + token: function(stream, state) { + if (state.vxCodeActive == true && stream.sol() && state.tlvCurCtlFlowChar != "") { + state.tlvPrevPrevCtlFlowChar = state.tlvPrevCtlFlowChar; + state.tlvPrevCtlFlowChar = state.tlvCurCtlFlowChar; + state.tlvCurCtlFlowChar = ""; + } + }, + indent: function(state) { + return (state.vxCodeActive == true) ? state.vxIndentRq : -1; + }, + startState: function(state) { + state.tlvCurCtlFlowChar = ""; + state.tlvPrevCtlFlowChar = ""; + state.tlvPrevPrevCtlFlowChar = ""; + state.vxCodeActive = true; + state.vxIndentRq = 0; + } + } + }); +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/vhdl/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/vhdl/index.html new file mode 100644 index 0000000..3051bc3 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/vhdl/index.html @@ -0,0 +1,95 @@ +<!doctype html> + +<title>CodeMirror: VHDL mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../../addon/edit/matchbrackets.js"></script> +<script src="vhdl.js"></script> +<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">VHDL</a> + </ul> +</div> + +<article> +<h2>VHDL mode</h2> + +<div><textarea id="code" name="code"> +LIBRARY ieee; +USE ieee.std_logic_1164.ALL; +USE ieee.numeric_std.ALL; + +ENTITY tb IS +END tb; + +ARCHITECTURE behavior OF tb IS + --Inputs + signal a : unsigned(2 downto 0) := (others => '0'); + signal b : unsigned(2 downto 0) := (others => '0'); + --Outputs + signal a_eq_b : std_logic; + signal a_le_b : std_logic; + signal a_gt_b : std_logic; + + signal i,j : integer; + +BEGIN + + -- Instantiate the Unit Under Test (UUT) + uut: entity work.comparator PORT MAP ( + a => a, + b => b, + a_eq_b => a_eq_b, + a_le_b => a_le_b, + a_gt_b => a_gt_b + ); + + -- Stimulus process + stim_proc: process + begin + for i in 0 to 8 loop + for j in 0 to 8 loop + a <= to_unsigned(i,3); --integer to unsigned type conversion + b <= to_unsigned(j,3); + wait for 10 ns; + end loop; + end loop; + end process; + +END; +</textarea></div> + +<script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + lineNumbers: true, + matchBrackets: true, + mode: { + name: "vhdl", + } + }); +</script> + +<p> +Syntax highlighting and indentation for the VHDL language. +<h2>Configuration options:</h2> + <ul> + <li><strong>atoms</strong> - List of atom words. Default: "null"</li> + <li><strong>hooks</strong> - List of meta hooks. Default: ["`", "$"]</li> + <li><strong>multiLineStrings</strong> - Whether multi-line strings are accepted. Default: false</li> + </ul> +</p> + +<p><strong>MIME types defined:</strong> <code>text/x-vhdl</code>.</p> +</article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/vhdl/vhdl.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/vhdl/vhdl.js new file mode 100644 index 0000000..97e086e --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/vhdl/vhdl.js @@ -0,0 +1,189 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +// Originally written by Alf Nielsen, re-written by Michael Zhou +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +function words(str) { + var obj = {}, words = str.split(","); + for (var i = 0; i < words.length; ++i) { + var allCaps = words[i].toUpperCase(); + var firstCap = words[i].charAt(0).toUpperCase() + words[i].slice(1); + obj[words[i]] = true; + obj[allCaps] = true; + obj[firstCap] = true; + } + return obj; +} + +function metaHook(stream) { + stream.eatWhile(/[\w\$_]/); + return "meta"; +} + +CodeMirror.defineMode("vhdl", function(config, parserConfig) { + var indentUnit = config.indentUnit, + atoms = parserConfig.atoms || words("null"), + hooks = parserConfig.hooks || {"`": metaHook, "$": metaHook}, + multiLineStrings = parserConfig.multiLineStrings; + + var keywords = words("abs,access,after,alias,all,and,architecture,array,assert,attribute,begin,block," + + "body,buffer,bus,case,component,configuration,constant,disconnect,downto,else,elsif,end,end block,end case," + + "end component,end for,end generate,end if,end loop,end process,end record,end units,entity,exit,file,for," + + "function,generate,generic,generic map,group,guarded,if,impure,in,inertial,inout,is,label,library,linkage," + + "literal,loop,map,mod,nand,new,next,nor,null,of,on,open,or,others,out,package,package body,port,port map," + + "postponed,procedure,process,pure,range,record,register,reject,rem,report,return,rol,ror,select,severity,signal," + + "sla,sll,sra,srl,subtype,then,to,transport,type,unaffected,units,until,use,variable,wait,when,while,with,xnor,xor"); + + var blockKeywords = words("architecture,entity,begin,case,port,else,elsif,end,for,function,if"); + + var isOperatorChar = /[&|~><!\)\(*#%@+\/=?\:;}{,\.\^\-\[\]]/; + var curPunc; + + function tokenBase(stream, state) { + var ch = stream.next(); + if (hooks[ch]) { + var result = hooks[ch](stream, state); + if (result !== false) return result; + } + if (ch == '"') { + state.tokenize = tokenString2(ch); + return state.tokenize(stream, state); + } + if (ch == "'") { + state.tokenize = tokenString(ch); + return state.tokenize(stream, state); + } + if (/[\[\]{}\(\),;\:\.]/.test(ch)) { + curPunc = ch; + return null; + } + if (/[\d']/.test(ch)) { + stream.eatWhile(/[\w\.']/); + return "number"; + } + if (ch == "-") { + if (stream.eat("-")) { + stream.skipToEnd(); + return "comment"; + } + } + if (isOperatorChar.test(ch)) { + stream.eatWhile(isOperatorChar); + return "operator"; + } + stream.eatWhile(/[\w\$_]/); + var cur = stream.current(); + if (keywords.propertyIsEnumerable(cur.toLowerCase())) { + if (blockKeywords.propertyIsEnumerable(cur)) curPunc = "newstatement"; + return "keyword"; + } + if (atoms.propertyIsEnumerable(cur)) return "atom"; + return "variable"; + } + + function tokenString(quote) { + return function(stream, state) { + var escaped = false, next, end = false; + while ((next = stream.next()) != null) { + if (next == quote && !escaped) {end = true; break;} + escaped = !escaped && next == "--"; + } + if (end || !(escaped || multiLineStrings)) + state.tokenize = tokenBase; + return "string"; + }; + } + function tokenString2(quote) { + return function(stream, state) { + var escaped = false, next, end = false; + while ((next = stream.next()) != null) { + if (next == quote && !escaped) {end = true; break;} + escaped = !escaped && next == "--"; + } + if (end || !(escaped || multiLineStrings)) + state.tokenize = tokenBase; + return "string-2"; + }; + } + + function Context(indented, column, type, align, prev) { + this.indented = indented; + this.column = column; + this.type = type; + this.align = align; + this.prev = prev; + } + function pushContext(state, col, type) { + return state.context = new Context(state.indented, col, type, null, state.context); + } + function popContext(state) { + var t = state.context.type; + if (t == ")" || t == "]" || t == "}") + state.indented = state.context.indented; + return state.context = state.context.prev; + } + + // Interface + return { + startState: function(basecolumn) { + return { + tokenize: null, + context: new Context((basecolumn || 0) - indentUnit, 0, "top", false), + indented: 0, + startOfLine: true + }; + }, + + token: function(stream, state) { + var ctx = state.context; + if (stream.sol()) { + if (ctx.align == null) ctx.align = false; + state.indented = stream.indentation(); + state.startOfLine = true; + } + if (stream.eatSpace()) return null; + curPunc = null; + var style = (state.tokenize || tokenBase)(stream, state); + if (style == "comment" || style == "meta") return style; + if (ctx.align == null) ctx.align = true; + + if ((curPunc == ";" || curPunc == ":") && ctx.type == "statement") popContext(state); + else if (curPunc == "{") pushContext(state, stream.column(), "}"); + else if (curPunc == "[") pushContext(state, stream.column(), "]"); + else if (curPunc == "(") pushContext(state, stream.column(), ")"); + else if (curPunc == "}") { + while (ctx.type == "statement") ctx = popContext(state); + if (ctx.type == "}") ctx = popContext(state); + while (ctx.type == "statement") ctx = popContext(state); + } + else if (curPunc == ctx.type) popContext(state); + else if (ctx.type == "}" || ctx.type == "top" || (ctx.type == "statement" && curPunc == "newstatement")) + pushContext(state, stream.column(), "statement"); + state.startOfLine = false; + return style; + }, + + indent: function(state, textAfter) { + if (state.tokenize != tokenBase && state.tokenize != null) return 0; + var firstChar = textAfter && textAfter.charAt(0), ctx = state.context, closing = firstChar == ctx.type; + if (ctx.type == "statement") return ctx.indented + (firstChar == "{" ? 0 : indentUnit); + else if (ctx.align) return ctx.column + (closing ? 0 : 1); + else return ctx.indented + (closing ? 0 : indentUnit); + }, + + electricChars: "{}" + }; +}); + +CodeMirror.defineMIME("text/x-vhdl", "vhdl"); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/vue/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/vue/index.html new file mode 100644 index 0000000..e0b45b9 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/vue/index.html @@ -0,0 +1,69 @@ +<!doctype html> + +<title>CodeMirror: Vue.js mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../../addon/mode/overlay.js"></script> +<script src="../../addon/mode/simple.js"></script> +<script src="../../addon/selection/selection-pointer.js"></script> +<script src="../xml/xml.js"></script> +<script src="../javascript/javascript.js"></script> +<script src="../css/css.js"></script> +<script src="../coffeescript/coffeescript.js"></script> +<script src="../sass/sass.js"></script> +<script src="../pug/pug.js"></script> + +<script src="../handlebars/handlebars.js"></script> +<script src="../htmlmixed/htmlmixed.js"></script> +<script src="vue.js"></script> +<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Vue.js mode</a> + </ul> +</div> + +<article> +<h2>Vue.js mode</h2> +<form><textarea id="code" name="code"> +<template> + <div class="sass">Im am a {{mustache-like}} template</div> +</template> + +<script lang="coffee"> + module.exports = + props: ['one', 'two', 'three'] +</script> + +<style lang="sass"> +.sass + font-size: 18px +</style> + +</textarea></form> + <script> + // Define an extended mixed-mode that understands vbscript and + // leaves mustache/handlebars embedded templates in html mode + var mixedMode = { + name: "vue" + }; + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + mode: mixedMode, + selectionPointer: true + }); + </script> + + <p><strong>MIME types defined:</strong> <code>text/x-vue</code></p> + + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/vue/vue.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/vue/vue.js new file mode 100644 index 0000000..f8089af --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/vue/vue.js @@ -0,0 +1,69 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function (mod) { + "use strict"; + if (typeof exports === "object" && typeof module === "object") {// CommonJS + mod(require("../../lib/codemirror"), + require("../../addon/mode/overlay"), + require("../xml/xml"), + require("../javascript/javascript"), + require("../coffeescript/coffeescript"), + require("../css/css"), + require("../sass/sass"), + require("../stylus/stylus"), + require("../pug/pug"), + require("../handlebars/handlebars")); + } else if (typeof define === "function" && define.amd) { // AMD + define(["../../lib/codemirror", + "../../addon/mode/overlay", + "../xml/xml", + "../javascript/javascript", + "../coffeescript/coffeescript", + "../css/css", + "../sass/sass", + "../stylus/stylus", + "../pug/pug", + "../handlebars/handlebars"], mod); + } else { // Plain browser env + mod(CodeMirror); + } +})(function (CodeMirror) { + var tagLanguages = { + script: [ + ["lang", /coffee(script)?/, "coffeescript"], + ["type", /^(?:text|application)\/(?:x-)?coffee(?:script)?$/, "coffeescript"] + ], + style: [ + ["lang", /^stylus$/i, "stylus"], + ["lang", /^sass$/i, "sass"], + ["type", /^(text\/)?(x-)?styl(us)?$/i, "stylus"], + ["type", /^text\/sass/i, "sass"] + ], + template: [ + ["lang", /^vue-template$/i, "vue"], + ["lang", /^pug$/i, "pug"], + ["lang", /^handlebars$/i, "handlebars"], + ["type", /^(text\/)?(x-)?pug$/i, "pug"], + ["type", /^text\/x-handlebars-template$/i, "handlebars"], + [null, null, "vue-template"] + ] + }; + + CodeMirror.defineMode("vue-template", function (config, parserConfig) { + var mustacheOverlay = { + token: function (stream) { + if (stream.match(/^\{\{.*?\}\}/)) return "meta mustache"; + while (stream.next() && !stream.match("{{", false)) {} + return null; + } + }; + return CodeMirror.overlayMode(CodeMirror.getMode(config, parserConfig.backdrop || "text/html"), mustacheOverlay); + }); + + CodeMirror.defineMode("vue", function (config) { + return CodeMirror.getMode(config, {name: "htmlmixed", tags: tagLanguages}); + }, "htmlmixed", "xml", "javascript", "coffeescript", "css", "sass", "stylus", "pug", "handlebars"); + + CodeMirror.defineMIME("script/x-vue", "vue"); +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/webidl/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/webidl/index.html new file mode 100644 index 0000000..1d4112e --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/webidl/index.html @@ -0,0 +1,71 @@ +<!doctype html> + +<title>CodeMirror: Web IDL mode</title> +<meta charset="utf-8"> +<link rel="stylesheet" href="../../doc/docs.css"> +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../../addon/edit/matchbrackets.js"></script> +<script src="webidl.js"></script> +<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> + +<div id="nav"> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id="logo" src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class="active" href="#">Web IDL</a> + </ul> +</div> + +<article> + <h2>Web IDL mode</h2> + + <div> +<textarea id="code" name="code"> +[NamedConstructor=Image(optional unsigned long width, optional unsigned long height)] +interface HTMLImageElement : HTMLElement { + attribute DOMString alt; + attribute DOMString src; + attribute DOMString srcset; + attribute DOMString sizes; + attribute DOMString? crossOrigin; + attribute DOMString useMap; + attribute boolean isMap; + attribute unsigned long width; + attribute unsigned long height; + readonly attribute unsigned long naturalWidth; + readonly attribute unsigned long naturalHeight; + readonly attribute boolean complete; + readonly attribute DOMString currentSrc; + + // also has obsolete members +}; + +partial interface HTMLImageElement { + attribute DOMString name; + attribute DOMString lowsrc; + attribute DOMString align; + attribute unsigned long hspace; + attribute unsigned long vspace; + attribute DOMString longDesc; + + [TreatNullAs=EmptyString] attribute DOMString border; +}; +</textarea> + </div> + + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + lineNumbers: true, + matchBrackets: true + }); + </script> + + <p><strong>MIME type defined:</strong> <code>text/x-webidl</code>.</p> +</article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/webidl/webidl.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/webidl/webidl.js new file mode 100644 index 0000000..8143336 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/webidl/webidl.js @@ -0,0 +1,195 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +function wordRegexp(words) { + return new RegExp("^((" + words.join(")|(") + "))\\b"); +}; + +var builtinArray = [ + "Clamp", + "Constructor", + "EnforceRange", + "Exposed", + "ImplicitThis", + "Global", "PrimaryGlobal", + "LegacyArrayClass", + "LegacyUnenumerableNamedProperties", + "LenientThis", + "NamedConstructor", + "NewObject", + "NoInterfaceObject", + "OverrideBuiltins", + "PutForwards", + "Replaceable", + "SameObject", + "TreatNonObjectAsNull", + "TreatNullAs", + "EmptyString", + "Unforgeable", + "Unscopeable" +]; +var builtins = wordRegexp(builtinArray); + +var typeArray = [ + "unsigned", "short", "long", // UnsignedIntegerType + "unrestricted", "float", "double", // UnrestrictedFloatType + "boolean", "byte", "octet", // Rest of PrimitiveType + "Promise", // PromiseType + "ArrayBuffer", "DataView", "Int8Array", "Int16Array", "Int32Array", + "Uint8Array", "Uint16Array", "Uint32Array", "Uint8ClampedArray", + "Float32Array", "Float64Array", // BufferRelatedType + "ByteString", "DOMString", "USVString", "sequence", "object", "RegExp", + "Error", "DOMException", "FrozenArray", // Rest of NonAnyType + "any", // Rest of SingleType + "void" // Rest of ReturnType +]; +var types = wordRegexp(typeArray); + +var keywordArray = [ + "attribute", "callback", "const", "deleter", "dictionary", "enum", "getter", + "implements", "inherit", "interface", "iterable", "legacycaller", "maplike", + "partial", "required", "serializer", "setlike", "setter", "static", + "stringifier", "typedef", // ArgumentNameKeyword except + // "unrestricted" + "optional", "readonly", "or" +]; +var keywords = wordRegexp(keywordArray); + +var atomArray = [ + "true", "false", // BooleanLiteral + "Infinity", "NaN", // FloatLiteral + "null" // Rest of ConstValue +]; +var atoms = wordRegexp(atomArray); + +CodeMirror.registerHelper("hintWords", "webidl", + builtinArray.concat(typeArray).concat(keywordArray).concat(atomArray)); + +var startDefArray = ["callback", "dictionary", "enum", "interface"]; +var startDefs = wordRegexp(startDefArray); + +var endDefArray = ["typedef"]; +var endDefs = wordRegexp(endDefArray); + +var singleOperators = /^[:<=>?]/; +var integers = /^-?([1-9][0-9]*|0[Xx][0-9A-Fa-f]+|0[0-7]*)/; +var floats = /^-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)/; +var identifiers = /^_?[A-Za-z][0-9A-Z_a-z-]*/; +var identifiersEnd = /^_?[A-Za-z][0-9A-Z_a-z-]*(?=\s*;)/; +var strings = /^"[^"]*"/; +var multilineComments = /^\/\*.*?\*\//; +var multilineCommentsStart = /^\/\*.*/; +var multilineCommentsEnd = /^.*?\*\//; + +function readToken(stream, state) { + // whitespace + if (stream.eatSpace()) return null; + + // comment + if (state.inComment) { + if (stream.match(multilineCommentsEnd)) { + state.inComment = false; + return "comment"; + } + stream.skipToEnd(); + return "comment"; + } + if (stream.match("//")) { + stream.skipToEnd(); + return "comment"; + } + if (stream.match(multilineComments)) return "comment"; + if (stream.match(multilineCommentsStart)) { + state.inComment = true; + return "comment"; + } + + // integer and float + if (stream.match(/^-?[0-9\.]/, false)) { + if (stream.match(integers) || stream.match(floats)) return "number"; + } + + // string + if (stream.match(strings)) return "string"; + + // identifier + if (state.startDef && stream.match(identifiers)) return "def"; + + if (state.endDef && stream.match(identifiersEnd)) { + state.endDef = false; + return "def"; + } + + if (stream.match(keywords)) return "keyword"; + + if (stream.match(types)) { + var lastToken = state.lastToken; + var nextToken = (stream.match(/^\s*(.+?)\b/, false) || [])[1]; + + if (lastToken === ":" || lastToken === "implements" || + nextToken === "implements" || nextToken === "=") { + // Used as identifier + return "builtin"; + } else { + // Used as type + return "variable-3"; + } + } + + if (stream.match(builtins)) return "builtin"; + if (stream.match(atoms)) return "atom"; + if (stream.match(identifiers)) return "variable"; + + // other + if (stream.match(singleOperators)) return "operator"; + + // unrecognized + stream.next(); + return null; +}; + +CodeMirror.defineMode("webidl", function() { + return { + startState: function() { + return { + // Is in multiline comment + inComment: false, + // Last non-whitespace, matched token + lastToken: "", + // Next token is a definition + startDef: false, + // Last token of the statement is a definition + endDef: false + }; + }, + token: function(stream, state) { + var style = readToken(stream, state); + + if (style) { + var cur = stream.current(); + state.lastToken = cur; + if (style === "keyword") { + state.startDef = startDefs.test(cur); + state.endDef = state.endDef || endDefs.test(cur); + } else { + state.startDef = false; + } + } + + return style; + } + }; +}); + +CodeMirror.defineMIME("text/x-webidl", "webidl"); +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/xml/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/xml/index.html new file mode 100644 index 0000000..c56b8b6 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/xml/index.html @@ -0,0 +1,61 @@ +<!doctype html> + +<title>CodeMirror: XML mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="xml.js"></script> +<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">XML</a> + </ul> +</div> + +<article> +<h2>XML mode</h2> +<form><textarea id="code" name="code"> +<html style="color: green"> + <!-- this is a comment --> + <head> + <title>HTML Example</title> + </head> + <body> + The indentation tries to be <em>somewhat &quot;do what + I mean&quot;</em>... but might not match your style. + </body> +</html> +</textarea></form> + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + mode: "text/html", + lineNumbers: true + }); + </script> + <p>The XML mode supports these configuration parameters:</p> + <dl> + <dt><code>htmlMode (boolean)</code></dt> + <dd>This switches the mode to parse HTML instead of XML. This + means attributes do not have to be quoted, and some elements + (such as <code>br</code>) do not require a closing tag.</dd> + <dt><code>matchClosing (boolean)</code></dt> + <dd>Controls whether the mode checks that close tags match the + corresponding opening tag, and highlights mismatches as errors. + Defaults to true.</dd> + <dt><code>alignCDATA (boolean)</code></dt> + <dd>Setting this to true will force the opening tag of CDATA + blocks to not be indented.</dd> + </dl> + + <p><strong>MIME types defined:</strong> <code>application/xml</code>, <code>text/html</code>.</p> + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/xml/test.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/xml/test.js new file mode 100644 index 0000000..f48156b --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/xml/test.js @@ -0,0 +1,51 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function() { + var mode = CodeMirror.getMode({indentUnit: 2}, "xml"), mname = "xml"; + function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1), mname); } + + MT("matching", + "[tag&bracket <][tag top][tag&bracket >]", + " text", + " [tag&bracket <][tag inner][tag&bracket />]", + "[tag&bracket </][tag top][tag&bracket >]"); + + MT("nonmatching", + "[tag&bracket <][tag top][tag&bracket >]", + " [tag&bracket <][tag inner][tag&bracket />]", + " [tag&bracket </][tag&error tip][tag&bracket&error >]"); + + MT("doctype", + "[meta <!doctype foobar>]", + "[tag&bracket <][tag top][tag&bracket />]"); + + MT("cdata", + "[tag&bracket <][tag top][tag&bracket >]", + " [atom <![CDATA[foo]", + "[atom barbazguh]]]]>]", + "[tag&bracket </][tag top][tag&bracket >]"); + + // HTML tests + mode = CodeMirror.getMode({indentUnit: 2}, "text/html"); + + MT("selfclose", + "[tag&bracket <][tag html][tag&bracket >]", + " [tag&bracket <][tag link] [attribute rel]=[string stylesheet] [attribute href]=[string \"/foobar\"][tag&bracket >]", + "[tag&bracket </][tag html][tag&bracket >]"); + + MT("list", + "[tag&bracket <][tag ol][tag&bracket >]", + " [tag&bracket <][tag li][tag&bracket >]one", + " [tag&bracket <][tag li][tag&bracket >]two", + "[tag&bracket </][tag ol][tag&bracket >]"); + + MT("valueless", + "[tag&bracket <][tag input] [attribute type]=[string checkbox] [attribute checked][tag&bracket />]"); + + MT("pThenArticle", + "[tag&bracket <][tag p][tag&bracket >]", + " foo", + "[tag&bracket <][tag article][tag&bracket >]bar"); + +})(); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/xml/xml.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/xml/xml.js new file mode 100644 index 0000000..f987a3a --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/xml/xml.js @@ -0,0 +1,394 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +var htmlConfig = { + autoSelfClosers: {'area': true, 'base': true, 'br': true, 'col': true, 'command': true, + 'embed': true, 'frame': true, 'hr': true, 'img': true, 'input': true, + 'keygen': true, 'link': true, 'meta': true, 'param': true, 'source': true, + 'track': true, 'wbr': true, 'menuitem': true}, + implicitlyClosed: {'dd': true, 'li': true, 'optgroup': true, 'option': true, 'p': true, + 'rp': true, 'rt': true, 'tbody': true, 'td': true, 'tfoot': true, + 'th': true, 'tr': true}, + contextGrabbers: { + 'dd': {'dd': true, 'dt': true}, + 'dt': {'dd': true, 'dt': true}, + 'li': {'li': true}, + 'option': {'option': true, 'optgroup': true}, + 'optgroup': {'optgroup': true}, + 'p': {'address': true, 'article': true, 'aside': true, 'blockquote': true, 'dir': true, + 'div': true, 'dl': true, 'fieldset': true, 'footer': true, 'form': true, + 'h1': true, 'h2': true, 'h3': true, 'h4': true, 'h5': true, 'h6': true, + 'header': true, 'hgroup': true, 'hr': true, 'menu': true, 'nav': true, 'ol': true, + 'p': true, 'pre': true, 'section': true, 'table': true, 'ul': true}, + 'rp': {'rp': true, 'rt': true}, + 'rt': {'rp': true, 'rt': true}, + 'tbody': {'tbody': true, 'tfoot': true}, + 'td': {'td': true, 'th': true}, + 'tfoot': {'tbody': true}, + 'th': {'td': true, 'th': true}, + 'thead': {'tbody': true, 'tfoot': true}, + 'tr': {'tr': true} + }, + doNotIndent: {"pre": true}, + allowUnquoted: true, + allowMissing: true, + caseFold: true +} + +var xmlConfig = { + autoSelfClosers: {}, + implicitlyClosed: {}, + contextGrabbers: {}, + doNotIndent: {}, + allowUnquoted: false, + allowMissing: false, + caseFold: false +} + +CodeMirror.defineMode("xml", function(editorConf, config_) { + var indentUnit = editorConf.indentUnit + var config = {} + var defaults = config_.htmlMode ? htmlConfig : xmlConfig + for (var prop in defaults) config[prop] = defaults[prop] + for (var prop in config_) config[prop] = config_[prop] + + // Return variables for tokenizers + var type, setStyle; + + function inText(stream, state) { + function chain(parser) { + state.tokenize = parser; + return parser(stream, state); + } + + var ch = stream.next(); + if (ch == "<") { + if (stream.eat("!")) { + if (stream.eat("[")) { + if (stream.match("CDATA[")) return chain(inBlock("atom", "]]>")); + else return null; + } else if (stream.match("--")) { + return chain(inBlock("comment", "-->")); + } else if (stream.match("DOCTYPE", true, true)) { + stream.eatWhile(/[\w\._\-]/); + return chain(doctype(1)); + } else { + return null; + } + } else if (stream.eat("?")) { + stream.eatWhile(/[\w\._\-]/); + state.tokenize = inBlock("meta", "?>"); + return "meta"; + } else { + type = stream.eat("/") ? "closeTag" : "openTag"; + state.tokenize = inTag; + return "tag bracket"; + } + } else if (ch == "&") { + var ok; + if (stream.eat("#")) { + if (stream.eat("x")) { + ok = stream.eatWhile(/[a-fA-F\d]/) && stream.eat(";"); + } else { + ok = stream.eatWhile(/[\d]/) && stream.eat(";"); + } + } else { + ok = stream.eatWhile(/[\w\.\-:]/) && stream.eat(";"); + } + return ok ? "atom" : "error"; + } else { + stream.eatWhile(/[^&<]/); + return null; + } + } + inText.isInText = true; + + function inTag(stream, state) { + var ch = stream.next(); + if (ch == ">" || (ch == "/" && stream.eat(">"))) { + state.tokenize = inText; + type = ch == ">" ? "endTag" : "selfcloseTag"; + return "tag bracket"; + } else if (ch == "=") { + type = "equals"; + return null; + } else if (ch == "<") { + state.tokenize = inText; + state.state = baseState; + state.tagName = state.tagStart = null; + var next = state.tokenize(stream, state); + return next ? next + " tag error" : "tag error"; + } else if (/[\'\"]/.test(ch)) { + state.tokenize = inAttribute(ch); + state.stringStartCol = stream.column(); + return state.tokenize(stream, state); + } else { + stream.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/); + return "word"; + } + } + + function inAttribute(quote) { + var closure = function(stream, state) { + while (!stream.eol()) { + if (stream.next() == quote) { + state.tokenize = inTag; + break; + } + } + return "string"; + }; + closure.isInAttribute = true; + return closure; + } + + function inBlock(style, terminator) { + return function(stream, state) { + while (!stream.eol()) { + if (stream.match(terminator)) { + state.tokenize = inText; + break; + } + stream.next(); + } + return style; + }; + } + function doctype(depth) { + return function(stream, state) { + var ch; + while ((ch = stream.next()) != null) { + if (ch == "<") { + state.tokenize = doctype(depth + 1); + return state.tokenize(stream, state); + } else if (ch == ">") { + if (depth == 1) { + state.tokenize = inText; + break; + } else { + state.tokenize = doctype(depth - 1); + return state.tokenize(stream, state); + } + } + } + return "meta"; + }; + } + + function Context(state, tagName, startOfLine) { + this.prev = state.context; + this.tagName = tagName; + this.indent = state.indented; + this.startOfLine = startOfLine; + if (config.doNotIndent.hasOwnProperty(tagName) || (state.context && state.context.noIndent)) + this.noIndent = true; + } + function popContext(state) { + if (state.context) state.context = state.context.prev; + } + function maybePopContext(state, nextTagName) { + var parentTagName; + while (true) { + if (!state.context) { + return; + } + parentTagName = state.context.tagName; + if (!config.contextGrabbers.hasOwnProperty(parentTagName) || + !config.contextGrabbers[parentTagName].hasOwnProperty(nextTagName)) { + return; + } + popContext(state); + } + } + + function baseState(type, stream, state) { + if (type == "openTag") { + state.tagStart = stream.column(); + return tagNameState; + } else if (type == "closeTag") { + return closeTagNameState; + } else { + return baseState; + } + } + function tagNameState(type, stream, state) { + if (type == "word") { + state.tagName = stream.current(); + setStyle = "tag"; + return attrState; + } else { + setStyle = "error"; + return tagNameState; + } + } + function closeTagNameState(type, stream, state) { + if (type == "word") { + var tagName = stream.current(); + if (state.context && state.context.tagName != tagName && + config.implicitlyClosed.hasOwnProperty(state.context.tagName)) + popContext(state); + if ((state.context && state.context.tagName == tagName) || config.matchClosing === false) { + setStyle = "tag"; + return closeState; + } else { + setStyle = "tag error"; + return closeStateErr; + } + } else { + setStyle = "error"; + return closeStateErr; + } + } + + function closeState(type, _stream, state) { + if (type != "endTag") { + setStyle = "error"; + return closeState; + } + popContext(state); + return baseState; + } + function closeStateErr(type, stream, state) { + setStyle = "error"; + return closeState(type, stream, state); + } + + function attrState(type, _stream, state) { + if (type == "word") { + setStyle = "attribute"; + return attrEqState; + } else if (type == "endTag" || type == "selfcloseTag") { + var tagName = state.tagName, tagStart = state.tagStart; + state.tagName = state.tagStart = null; + if (type == "selfcloseTag" || + config.autoSelfClosers.hasOwnProperty(tagName)) { + maybePopContext(state, tagName); + } else { + maybePopContext(state, tagName); + state.context = new Context(state, tagName, tagStart == state.indented); + } + return baseState; + } + setStyle = "error"; + return attrState; + } + function attrEqState(type, stream, state) { + if (type == "equals") return attrValueState; + if (!config.allowMissing) setStyle = "error"; + return attrState(type, stream, state); + } + function attrValueState(type, stream, state) { + if (type == "string") return attrContinuedState; + if (type == "word" && config.allowUnquoted) {setStyle = "string"; return attrState;} + setStyle = "error"; + return attrState(type, stream, state); + } + function attrContinuedState(type, stream, state) { + if (type == "string") return attrContinuedState; + return attrState(type, stream, state); + } + + return { + startState: function(baseIndent) { + var state = {tokenize: inText, + state: baseState, + indented: baseIndent || 0, + tagName: null, tagStart: null, + context: null} + if (baseIndent != null) state.baseIndent = baseIndent + return state + }, + + token: function(stream, state) { + if (!state.tagName && stream.sol()) + state.indented = stream.indentation(); + + if (stream.eatSpace()) return null; + type = null; + var style = state.tokenize(stream, state); + if ((style || type) && style != "comment") { + setStyle = null; + state.state = state.state(type || style, stream, state); + if (setStyle) + style = setStyle == "error" ? style + " error" : setStyle; + } + return style; + }, + + indent: function(state, textAfter, fullLine) { + var context = state.context; + // Indent multi-line strings (e.g. css). + if (state.tokenize.isInAttribute) { + if (state.tagStart == state.indented) + return state.stringStartCol + 1; + else + return state.indented + indentUnit; + } + if (context && context.noIndent) return CodeMirror.Pass; + if (state.tokenize != inTag && state.tokenize != inText) + return fullLine ? fullLine.match(/^(\s*)/)[0].length : 0; + // Indent the starts of attribute names. + if (state.tagName) { + if (config.multilineTagIndentPastTag !== false) + return state.tagStart + state.tagName.length + 2; + else + return state.tagStart + indentUnit * (config.multilineTagIndentFactor || 1); + } + if (config.alignCDATA && /<!\[CDATA\[/.test(textAfter)) return 0; + var tagAfter = textAfter && /^<(\/)?([\w_:\.-]*)/.exec(textAfter); + if (tagAfter && tagAfter[1]) { // Closing tag spotted + while (context) { + if (context.tagName == tagAfter[2]) { + context = context.prev; + break; + } else if (config.implicitlyClosed.hasOwnProperty(context.tagName)) { + context = context.prev; + } else { + break; + } + } + } else if (tagAfter) { // Opening tag spotted + while (context) { + var grabbers = config.contextGrabbers[context.tagName]; + if (grabbers && grabbers.hasOwnProperty(tagAfter[2])) + context = context.prev; + else + break; + } + } + while (context && context.prev && !context.startOfLine) + context = context.prev; + if (context) return context.indent + indentUnit; + else return state.baseIndent || 0; + }, + + electricInput: /<\/[\s\w:]+>$/, + blockCommentStart: "<!--", + blockCommentEnd: "-->", + + configuration: config.htmlMode ? "html" : "xml", + helperType: config.htmlMode ? "html" : "xml", + + skipAttribute: function(state) { + if (state.state == attrValueState) + state.state = attrState + } + }; +}); + +CodeMirror.defineMIME("text/xml", "xml"); +CodeMirror.defineMIME("application/xml", "xml"); +if (!CodeMirror.mimeModes.hasOwnProperty("text/html")) + CodeMirror.defineMIME("text/html", {name: "xml", htmlMode: true}); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/xquery/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/xquery/index.html new file mode 100644 index 0000000..7ac5aae --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/xquery/index.html @@ -0,0 +1,210 @@ +<!doctype html> + +<title>CodeMirror: XQuery mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<link rel="stylesheet" href="../../theme/xq-dark.css"> +<script src="../../lib/codemirror.js"></script> +<script src="xquery.js"></script> +<style type="text/css"> + .CodeMirror { + border-top: 1px solid black; border-bottom: 1px solid black; + height:400px; + } + </style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">XQuery</a> + </ul> +</div> + +<article> +<h2>XQuery mode</h2> + + +<div class="cm-s-default"> + <textarea id="code" name="code"> +xquery version "1.0-ml"; +(: this is + : a + "comment" :) +let $let := <x attr="value">"test"<func>function() $var {function()} {$var}</func></x> +let $joe:=1 +return element element { + attribute attribute { 1 }, + element test { 'a' }, + attribute foo { "bar" }, + fn:doc()[ foo/@bar eq $let ], + //x } + +(: a more 'evil' test :) +(: Modified Blakeley example (: with nested comment :) ... :) +declare private function local:declare() {()}; +declare private function local:private() {()}; +declare private function local:function() {()}; +declare private function local:local() {()}; +let $let := <let>let $let := "let"</let> +return element element { + attribute attribute { try { xdmp:version() } catch($e) { xdmp:log($e) } }, + attribute fn:doc { "bar" castable as xs:string }, + element text { text { "text" } }, + fn:doc()[ child::eq/(@bar | attribute::attribute) eq $let ], + //fn:doc +} + + + +xquery version "1.0-ml"; + +(: Copyright 2006-2010 Mark Logic Corporation. :) + +(: + : Licensed under the Apache License, Version 2.0 (the "License"); + : you may not use this file except in compliance with the License. + : You may obtain a copy of the License at + : + : http://www.apache.org/licenses/LICENSE-2.0 + : + : Unless required by applicable law or agreed to in writing, software + : distributed under the License is distributed on an "AS IS" BASIS, + : WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + : See the License for the specific language governing permissions and + : limitations under the License. + :) + +module namespace json = "http://marklogic.com/json"; +declare default function namespace "http://www.w3.org/2005/xpath-functions"; + +(: Need to backslash escape any double quotes, backslashes, and newlines :) +declare function json:escape($s as xs:string) as xs:string { + let $s := replace($s, "\\", "\\\\") + let $s := replace($s, """", "\\""") + let $s := replace($s, codepoints-to-string((13, 10)), "\\n") + let $s := replace($s, codepoints-to-string(13), "\\n") + let $s := replace($s, codepoints-to-string(10), "\\n") + return $s +}; + +declare function json:atomize($x as element()) as xs:string { + if (count($x/node()) = 0) then 'null' + else if ($x/@type = "number") then + let $castable := $x castable as xs:float or + $x castable as xs:double or + $x castable as xs:decimal + return + if ($castable) then xs:string($x) + else error(concat("Not a number: ", xdmp:describe($x))) + else if ($x/@type = "boolean") then + let $castable := $x castable as xs:boolean + return + if ($castable) then xs:string(xs:boolean($x)) + else error(concat("Not a boolean: ", xdmp:describe($x))) + else concat('"', json:escape($x), '"') +}; + +(: Print the thing that comes after the colon :) +declare function json:print-value($x as element()) as xs:string { + if (count($x/*) = 0) then + json:atomize($x) + else if ($x/@quote = "true") then + concat('"', json:escape(xdmp:quote($x/node())), '"') + else + string-join(('{', + string-join(for $i in $x/* return json:print-name-value($i), ","), + '}'), "") +}; + +(: Print the name and value both :) +declare function json:print-name-value($x as element()) as xs:string? { + let $name := name($x) + let $first-in-array := + count($x/preceding-sibling::*[name(.) = $name]) = 0 and + (count($x/following-sibling::*[name(.) = $name]) > 0 or $x/@array = "true") + let $later-in-array := count($x/preceding-sibling::*[name(.) = $name]) > 0 + return + + if ($later-in-array) then + () (: I was handled previously :) + else if ($first-in-array) then + string-join(('"', json:escape($name), '":[', + string-join((for $i in ($x, $x/following-sibling::*[name(.) = $name]) return json:print-value($i)), ","), + ']'), "") + else + string-join(('"', json:escape($name), '":', json:print-value($x)), "") +}; + +(:~ + Transforms an XML element into a JSON string representation. See http://json.org. + <p/> + Sample usage: + <pre> + xquery version "1.0-ml"; + import module namespace json="http://marklogic.com/json" at "json.xqy"; + json:serialize(&lt;foo&gt;&lt;bar&gt;kid&lt;/bar&gt;&lt;/foo&gt;) + </pre> + Sample transformations: + <pre> + &lt;e/&gt; becomes {"e":null} + &lt;e&gt;text&lt;/e&gt; becomes {"e":"text"} + &lt;e&gt;quote " escaping&lt;/e&gt; becomes {"e":"quote \" escaping"} + &lt;e&gt;backslash \ escaping&lt;/e&gt; becomes {"e":"backslash \\ escaping"} + &lt;e&gt;&lt;a&gt;text1&lt;/a&gt;&lt;b&gt;text2&lt;/b&gt;&lt;/e&gt; becomes {"e":{"a":"text1","b":"text2"}} + &lt;e&gt;&lt;a&gt;text1&lt;/a&gt;&lt;a&gt;text2&lt;/a&gt;&lt;/e&gt; becomes {"e":{"a":["text1","text2"]}} + &lt;e&gt;&lt;a array="true"&gt;text1&lt;/a&gt;&lt;/e&gt; becomes {"e":{"a":["text1"]}} + &lt;e&gt;&lt;a type="boolean"&gt;false&lt;/a&gt;&lt;/e&gt; becomes {"e":{"a":false}} + &lt;e&gt;&lt;a type="number"&gt;123.5&lt;/a&gt;&lt;/e&gt; becomes {"e":{"a":123.5}} + &lt;e quote="true"&gt;&lt;div attrib="value"/&gt;&lt;/e&gt; becomes {"e":"&lt;div attrib=\"value\"/&gt;"} + </pre> + <p/> + Namespace URIs are ignored. Namespace prefixes are included in the JSON name. + <p/> + Attributes are ignored, except for the special attribute @array="true" that + indicates the JSON serialization should write the node, even if single, as an + array, and the attribute @type that can be set to "boolean" or "number" to + dictate the value should be written as that type (unquoted). There's also + an @quote attribute that when set to true writes the inner content as text + rather than as structured JSON, useful for sending some XHTML over the + wire. + <p/> + Text nodes within mixed content are ignored. + + @param $x Element node to convert + @return String holding JSON serialized representation of $x + + @author Jason Hunter + @version 1.0.1 + + Ported to xquery 1.0-ml; double escaped backslashes in json:escape +:) +declare function json:serialize($x as element()) as xs:string { + string-join(('{', json:print-name-value($x), '}'), "") +}; + </textarea> +</div> + + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + lineNumbers: true, + matchBrackets: true, + theme: "xq-dark" + }); + </script> + + <p><strong>MIME types defined:</strong> <code>application/xquery</code>.</p> + + <p>Development of the CodeMirror XQuery mode was sponsored by + <a href="http://marklogic.com">MarkLogic</a> and developed by + <a href="https://twitter.com/mbrevoort">Mike Brevoort</a>. + </p> + + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/xquery/test.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/xquery/test.js new file mode 100644 index 0000000..1f148cd --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/xquery/test.js @@ -0,0 +1,67 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +// Don't take these too seriously -- the expected results appear to be +// based on the results of actual runs without any serious manual +// verification. If a change you made causes them to fail, the test is +// as likely to wrong as the code. + +(function() { + var mode = CodeMirror.getMode({tabSize: 4}, "xquery"); + function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); } + + MT("eviltest", + "[keyword xquery] [keyword version] [variable "1][keyword .][atom 0][keyword -][variable ml"][def&variable ;] [comment (: this is : a \"comment\" :)]", + " [keyword let] [variable $let] [keyword :=] [variable <x] [variable attr][keyword =][variable "value">"test"<func>][def&variable ;function]() [variable $var] {[keyword function]()} {[variable $var]}[variable <][keyword /][variable func><][keyword /][variable x>]", + " [keyword let] [variable $joe][keyword :=][atom 1]", + " [keyword return] [keyword element] [variable element] {", + " [keyword attribute] [variable attribute] { [atom 1] },", + " [keyword element] [variable test] { [variable 'a'] }, [keyword attribute] [variable foo] { [variable "bar"] },", + " [def&variable fn:doc]()[[ [variable foo][keyword /][variable @bar] [keyword eq] [variable $let] ]],", + " [keyword //][variable x] } [comment (: a more 'evil' test :)]", + " [comment (: Modified Blakeley example (: with nested comment :) ... :)]", + " [keyword declare] [keyword private] [keyword function] [def&variable local:declare]() {()}[variable ;]", + " [keyword declare] [keyword private] [keyword function] [def&variable local:private]() {()}[variable ;]", + " [keyword declare] [keyword private] [keyword function] [def&variable local:function]() {()}[variable ;]", + " [keyword declare] [keyword private] [keyword function] [def&variable local:local]() {()}[variable ;]", + " [keyword let] [variable $let] [keyword :=] [variable <let>let] [variable $let] [keyword :=] [variable "let"<][keyword /let][variable >]", + " [keyword return] [keyword element] [variable element] {", + " [keyword attribute] [variable attribute] { [keyword try] { [def&variable xdmp:version]() } [keyword catch]([variable $e]) { [def&variable xdmp:log]([variable $e]) } },", + " [keyword attribute] [variable fn:doc] { [variable "bar"] [variable castable] [keyword as] [atom xs:string] },", + " [keyword element] [variable text] { [keyword text] { [variable "text"] } },", + " [def&variable fn:doc]()[[ [qualifier child::][variable eq][keyword /]([variable @bar] [keyword |] [qualifier attribute::][variable attribute]) [keyword eq] [variable $let] ]],", + " [keyword //][variable fn:doc]", + " }"); + + MT("testEmptySequenceKeyword", + "[string \"foo\"] [keyword instance] [keyword of] [keyword empty-sequence]()"); + + MT("testMultiAttr", + "[tag <p ][attribute a1]=[string \"foo\"] [attribute a2]=[string \"bar\"][tag >][variable hello] [variable world][tag </p>]"); + + MT("test namespaced variable", + "[keyword declare] [keyword namespace] [variable e] [keyword =] [string \"http://example.com/ANamespace\"][variable ;declare] [keyword variable] [variable $e:exampleComThisVarIsNotRecognized] [keyword as] [keyword element]([keyword *]) [variable external;]"); + + MT("test EQName variable", + "[keyword declare] [keyword variable] [variable $\"http://www.example.com/ns/my\":var] [keyword :=] [atom 12][variable ;]", + "[tag <out>]{[variable $\"http://www.example.com/ns/my\":var]}[tag </out>]"); + + MT("test EQName function", + "[keyword declare] [keyword function] [def&variable \"http://www.example.com/ns/my\":fn] ([variable $a] [keyword as] [atom xs:integer]) [keyword as] [atom xs:integer] {", + " [variable $a] [keyword +] [atom 2]", + "}[variable ;]", + "[tag <out>]{[def&variable \"http://www.example.com/ns/my\":fn]([atom 12])}[tag </out>]"); + + MT("test EQName function with single quotes", + "[keyword declare] [keyword function] [def&variable 'http://www.example.com/ns/my':fn] ([variable $a] [keyword as] [atom xs:integer]) [keyword as] [atom xs:integer] {", + " [variable $a] [keyword +] [atom 2]", + "}[variable ;]", + "[tag <out>]{[def&variable 'http://www.example.com/ns/my':fn]([atom 12])}[tag </out>]"); + + MT("testProcessingInstructions", + "[def&variable data]([comment&meta <?target content?>]) [keyword instance] [keyword of] [atom xs:string]"); + + MT("testQuoteEscapeDouble", + "[keyword let] [variable $rootfolder] [keyword :=] [string \"c:\\builds\\winnt\\HEAD\\qa\\scripts\\\"]", + "[keyword let] [variable $keysfolder] [keyword :=] [def&variable concat]([variable $rootfolder], [string \"keys\\\"])"); +})(); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/xquery/xquery.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/xquery/xquery.js new file mode 100644 index 0000000..75dcbee --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/xquery/xquery.js @@ -0,0 +1,437 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("xquery", function() { + + // The keywords object is set to the result of this self executing + // function. Each keyword is a property of the keywords object whose + // value is {type: atype, style: astyle} + var keywords = function(){ + // convenience functions used to build keywords object + function kw(type) {return {type: type, style: "keyword"};} + var A = kw("keyword a") + , B = kw("keyword b") + , C = kw("keyword c") + , operator = kw("operator") + , atom = {type: "atom", style: "atom"} + , punctuation = {type: "punctuation", style: null} + , qualifier = {type: "axis_specifier", style: "qualifier"}; + + // kwObj is what is return from this function at the end + var kwObj = { + 'if': A, 'switch': A, 'while': A, 'for': A, + 'else': B, 'then': B, 'try': B, 'finally': B, 'catch': B, + 'element': C, 'attribute': C, 'let': C, 'implements': C, 'import': C, 'module': C, 'namespace': C, + 'return': C, 'super': C, 'this': C, 'throws': C, 'where': C, 'private': C, + ',': punctuation, + 'null': atom, 'fn:false()': atom, 'fn:true()': atom + }; + + // a list of 'basic' keywords. For each add a property to kwObj with the value of + // {type: basic[i], style: "keyword"} e.g. 'after' --> {type: "after", style: "keyword"} + var basic = ['after','ancestor','ancestor-or-self','and','as','ascending','assert','attribute','before', + 'by','case','cast','child','comment','declare','default','define','descendant','descendant-or-self', + 'descending','document','document-node','element','else','eq','every','except','external','following', + 'following-sibling','follows','for','function','if','import','in','instance','intersect','item', + 'let','module','namespace','node','node','of','only','or','order','parent','precedes','preceding', + 'preceding-sibling','processing-instruction','ref','return','returns','satisfies','schema','schema-element', + 'self','some','sortby','stable','text','then','to','treat','typeswitch','union','variable','version','where', + 'xquery', 'empty-sequence']; + for(var i=0, l=basic.length; i < l; i++) { kwObj[basic[i]] = kw(basic[i]);}; + + // a list of types. For each add a property to kwObj with the value of + // {type: "atom", style: "atom"} + var types = ['xs:string', 'xs:float', 'xs:decimal', 'xs:double', 'xs:integer', 'xs:boolean', 'xs:date', 'xs:dateTime', + 'xs:time', 'xs:duration', 'xs:dayTimeDuration', 'xs:time', 'xs:yearMonthDuration', 'numeric', 'xs:hexBinary', + 'xs:base64Binary', 'xs:anyURI', 'xs:QName', 'xs:byte','xs:boolean','xs:anyURI','xf:yearMonthDuration']; + for(var i=0, l=types.length; i < l; i++) { kwObj[types[i]] = atom;}; + + // each operator will add a property to kwObj with value of {type: "operator", style: "keyword"} + var operators = ['eq', 'ne', 'lt', 'le', 'gt', 'ge', ':=', '=', '>', '>=', '<', '<=', '.', '|', '?', 'and', 'or', 'div', 'idiv', 'mod', '*', '/', '+', '-']; + for(var i=0, l=operators.length; i < l; i++) { kwObj[operators[i]] = operator;}; + + // each axis_specifiers will add a property to kwObj with value of {type: "axis_specifier", style: "qualifier"} + var axis_specifiers = ["self::", "attribute::", "child::", "descendant::", "descendant-or-self::", "parent::", + "ancestor::", "ancestor-or-self::", "following::", "preceding::", "following-sibling::", "preceding-sibling::"]; + for(var i=0, l=axis_specifiers.length; i < l; i++) { kwObj[axis_specifiers[i]] = qualifier; }; + + return kwObj; + }(); + + function chain(stream, state, f) { + state.tokenize = f; + return f(stream, state); + } + + // the primary mode tokenizer + function tokenBase(stream, state) { + var ch = stream.next(), + mightBeFunction = false, + isEQName = isEQNameAhead(stream); + + // an XML tag (if not in some sub, chained tokenizer) + if (ch == "<") { + if(stream.match("!--", true)) + return chain(stream, state, tokenXMLComment); + + if(stream.match("![CDATA", false)) { + state.tokenize = tokenCDATA; + return "tag"; + } + + if(stream.match("?", false)) { + return chain(stream, state, tokenPreProcessing); + } + + var isclose = stream.eat("/"); + stream.eatSpace(); + var tagName = "", c; + while ((c = stream.eat(/[^\s\u00a0=<>\"\'\/?]/))) tagName += c; + + return chain(stream, state, tokenTag(tagName, isclose)); + } + // start code block + else if(ch == "{") { + pushStateStack(state,{ type: "codeblock"}); + return null; + } + // end code block + else if(ch == "}") { + popStateStack(state); + return null; + } + // if we're in an XML block + else if(isInXmlBlock(state)) { + if(ch == ">") + return "tag"; + else if(ch == "/" && stream.eat(">")) { + popStateStack(state); + return "tag"; + } + else + return "variable"; + } + // if a number + else if (/\d/.test(ch)) { + stream.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/); + return "atom"; + } + // comment start + else if (ch === "(" && stream.eat(":")) { + pushStateStack(state, { type: "comment"}); + return chain(stream, state, tokenComment); + } + // quoted string + else if ( !isEQName && (ch === '"' || ch === "'")) + return chain(stream, state, tokenString(ch)); + // variable + else if(ch === "$") { + return chain(stream, state, tokenVariable); + } + // assignment + else if(ch ===":" && stream.eat("=")) { + return "keyword"; + } + // open paren + else if(ch === "(") { + pushStateStack(state, { type: "paren"}); + return null; + } + // close paren + else if(ch === ")") { + popStateStack(state); + return null; + } + // open paren + else if(ch === "[") { + pushStateStack(state, { type: "bracket"}); + return null; + } + // close paren + else if(ch === "]") { + popStateStack(state); + return null; + } + else { + var known = keywords.propertyIsEnumerable(ch) && keywords[ch]; + + // if there's a EQName ahead, consume the rest of the string portion, it's likely a function + if(isEQName && ch === '\"') while(stream.next() !== '"'){} + if(isEQName && ch === '\'') while(stream.next() !== '\''){} + + // gobble up a word if the character is not known + if(!known) stream.eatWhile(/[\w\$_-]/); + + // gobble a colon in the case that is a lib func type call fn:doc + var foundColon = stream.eat(":"); + + // if there's not a second colon, gobble another word. Otherwise, it's probably an axis specifier + // which should get matched as a keyword + if(!stream.eat(":") && foundColon) { + stream.eatWhile(/[\w\$_-]/); + } + // if the next non whitespace character is an open paren, this is probably a function (if not a keyword of other sort) + if(stream.match(/^[ \t]*\(/, false)) { + mightBeFunction = true; + } + // is the word a keyword? + var word = stream.current(); + known = keywords.propertyIsEnumerable(word) && keywords[word]; + + // if we think it's a function call but not yet known, + // set style to variable for now for lack of something better + if(mightBeFunction && !known) known = {type: "function_call", style: "variable def"}; + + // if the previous word was element, attribute, axis specifier, this word should be the name of that + if(isInXmlConstructor(state)) { + popStateStack(state); + return "variable"; + } + // as previously checked, if the word is element,attribute, axis specifier, call it an "xmlconstructor" and + // push the stack so we know to look for it on the next word + if(word == "element" || word == "attribute" || known.type == "axis_specifier") pushStateStack(state, {type: "xmlconstructor"}); + + // if the word is known, return the details of that else just call this a generic 'word' + return known ? known.style : "variable"; + } + } + + // handle comments, including nested + function tokenComment(stream, state) { + var maybeEnd = false, maybeNested = false, nestedCount = 0, ch; + while (ch = stream.next()) { + if (ch == ")" && maybeEnd) { + if(nestedCount > 0) + nestedCount--; + else { + popStateStack(state); + break; + } + } + else if(ch == ":" && maybeNested) { + nestedCount++; + } + maybeEnd = (ch == ":"); + maybeNested = (ch == "("); + } + + return "comment"; + } + + // tokenizer for string literals + // optionally pass a tokenizer function to set state.tokenize back to when finished + function tokenString(quote, f) { + return function(stream, state) { + var ch; + + if(isInString(state) && stream.current() == quote) { + popStateStack(state); + if(f) state.tokenize = f; + return "string"; + } + + pushStateStack(state, { type: "string", name: quote, tokenize: tokenString(quote, f) }); + + // if we're in a string and in an XML block, allow an embedded code block + if(stream.match("{", false) && isInXmlAttributeBlock(state)) { + state.tokenize = tokenBase; + return "string"; + } + + + while (ch = stream.next()) { + if (ch == quote) { + popStateStack(state); + if(f) state.tokenize = f; + break; + } + else { + // if we're in a string and in an XML block, allow an embedded code block in an attribute + if(stream.match("{", false) && isInXmlAttributeBlock(state)) { + state.tokenize = tokenBase; + return "string"; + } + + } + } + + return "string"; + }; + } + + // tokenizer for variables + function tokenVariable(stream, state) { + var isVariableChar = /[\w\$_-]/; + + // a variable may start with a quoted EQName so if the next character is quote, consume to the next quote + if(stream.eat("\"")) { + while(stream.next() !== '\"'){}; + stream.eat(":"); + } else { + stream.eatWhile(isVariableChar); + if(!stream.match(":=", false)) stream.eat(":"); + } + stream.eatWhile(isVariableChar); + state.tokenize = tokenBase; + return "variable"; + } + + // tokenizer for XML tags + function tokenTag(name, isclose) { + return function(stream, state) { + stream.eatSpace(); + if(isclose && stream.eat(">")) { + popStateStack(state); + state.tokenize = tokenBase; + return "tag"; + } + // self closing tag without attributes? + if(!stream.eat("/")) + pushStateStack(state, { type: "tag", name: name, tokenize: tokenBase}); + if(!stream.eat(">")) { + state.tokenize = tokenAttribute; + return "tag"; + } + else { + state.tokenize = tokenBase; + } + return "tag"; + }; + } + + // tokenizer for XML attributes + function tokenAttribute(stream, state) { + var ch = stream.next(); + + if(ch == "/" && stream.eat(">")) { + if(isInXmlAttributeBlock(state)) popStateStack(state); + if(isInXmlBlock(state)) popStateStack(state); + return "tag"; + } + if(ch == ">") { + if(isInXmlAttributeBlock(state)) popStateStack(state); + return "tag"; + } + if(ch == "=") + return null; + // quoted string + if (ch == '"' || ch == "'") + return chain(stream, state, tokenString(ch, tokenAttribute)); + + if(!isInXmlAttributeBlock(state)) + pushStateStack(state, { type: "attribute", tokenize: tokenAttribute}); + + stream.eat(/[a-zA-Z_:]/); + stream.eatWhile(/[-a-zA-Z0-9_:.]/); + stream.eatSpace(); + + // the case where the attribute has not value and the tag was closed + if(stream.match(">", false) || stream.match("/", false)) { + popStateStack(state); + state.tokenize = tokenBase; + } + + return "attribute"; + } + + // handle comments, including nested + function tokenXMLComment(stream, state) { + var ch; + while (ch = stream.next()) { + if (ch == "-" && stream.match("->", true)) { + state.tokenize = tokenBase; + return "comment"; + } + } + } + + + // handle CDATA + function tokenCDATA(stream, state) { + var ch; + while (ch = stream.next()) { + if (ch == "]" && stream.match("]", true)) { + state.tokenize = tokenBase; + return "comment"; + } + } + } + + // handle preprocessing instructions + function tokenPreProcessing(stream, state) { + var ch; + while (ch = stream.next()) { + if (ch == "?" && stream.match(">", true)) { + state.tokenize = tokenBase; + return "comment meta"; + } + } + } + + + // functions to test the current context of the state + function isInXmlBlock(state) { return isIn(state, "tag"); } + function isInXmlAttributeBlock(state) { return isIn(state, "attribute"); } + function isInXmlConstructor(state) { return isIn(state, "xmlconstructor"); } + function isInString(state) { return isIn(state, "string"); } + + function isEQNameAhead(stream) { + // assume we've already eaten a quote (") + if(stream.current() === '"') + return stream.match(/^[^\"]+\"\:/, false); + else if(stream.current() === '\'') + return stream.match(/^[^\"]+\'\:/, false); + else + return false; + } + + function isIn(state, type) { + return (state.stack.length && state.stack[state.stack.length - 1].type == type); + } + + function pushStateStack(state, newState) { + state.stack.push(newState); + } + + function popStateStack(state) { + state.stack.pop(); + var reinstateTokenize = state.stack.length && state.stack[state.stack.length-1].tokenize; + state.tokenize = reinstateTokenize || tokenBase; + } + + // the interface for the mode API + return { + startState: function() { + return { + tokenize: tokenBase, + cc: [], + stack: [] + }; + }, + + token: function(stream, state) { + if (stream.eatSpace()) return null; + var style = state.tokenize(stream, state); + return style; + }, + + blockCommentStart: "(:", + blockCommentEnd: ":)" + + }; + +}); + +CodeMirror.defineMIME("application/xquery", "xquery"); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/yacas/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/yacas/index.html new file mode 100644 index 0000000..8e52caf --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/yacas/index.html @@ -0,0 +1,87 @@ +<!doctype html> + +<title>CodeMirror: yacas mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel=stylesheet href=../../lib/codemirror.css> +<script src=../../lib/codemirror.js></script> +<script src=../../addon/edit/matchbrackets.js></script> +<script src=yacas.js></script> +<style type=text/css> + .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;} +</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">yacas</a> + </ul> +</div> + +<article> +<h2>yacas mode</h2> + + +<textarea id="yacasCode"> +// example yacas code +Graph(edges_IsList) <-- [ + Local(v, e, f, t); + + vertices := {}; + + ForEach (e, edges) [ + If (IsList(e), e := Head(e)); + {f, t} := Tail(Listify(e)); + + DestructiveAppend(vertices, f); + DestructiveAppend(vertices, t); + ]; + + Graph(RemoveDuplicates(vertices), edges); +]; + +10 # IsGraph(Graph(vertices_IsList, edges_IsList)) <-- True; +20 # IsGraph(_x) <-- False; + +Edges(Graph(vertices_IsList, edges_IsList)) <-- edges; +Vertices(Graph(vertices_IsList, edges_IsList)) <-- vertices; + +AdjacencyList(g_IsGraph) <-- [ + Local(l, vertices, edges, e, op, f, t); + + l := Association'Create(); + + vertices := Vertices(g); + ForEach (v, vertices) + Association'Set(l, v, {}); + + edges := Edges(g); + + ForEach(e, edges) [ + If (IsList(e), e := Head(e)); + {op, f, t} := Listify(e); + DestructiveAppend(Association'Get(l, f), t); + If (String(op) = "<->", DestructiveAppend(Association'Get(l, t), f)); + ]; + + l; +]; +</textarea> + +<script> + var yacasEditor = CodeMirror.fromTextArea(document.getElementById('yacasCode'), { + mode: 'text/x-yacas', + lineNumbers: true, + matchBrackets: true + }); +</script> + +<p><strong>MIME types defined:</strong> <code>text/x-yacas</code> (yacas).</p> +</article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/yacas/yacas.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/yacas/yacas.js new file mode 100644 index 0000000..30bd60b --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/yacas/yacas.js @@ -0,0 +1,204 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +// Yacas mode copyright (c) 2015 by Grzegorz Mazur +// Loosely based on mathematica mode by Calin Barbat + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode('yacas', function(_config, _parserConfig) { + + function words(str) { + var obj = {}, words = str.split(" "); + for (var i = 0; i < words.length; ++i) obj[words[i]] = true; + return obj; + } + + var bodiedOps = words("Assert BackQuote D Defun Deriv For ForEach FromFile " + + "FromString Function Integrate InverseTaylor Limit " + + "LocalSymbols Macro MacroRule MacroRulePattern " + + "NIntegrate Rule RulePattern Subst TD TExplicitSum " + + "TSum Taylor Taylor1 Taylor2 Taylor3 ToFile " + + "ToStdout ToString TraceRule Until While"); + + // patterns + var pFloatForm = "(?:(?:\\.\\d+|\\d+\\.\\d*|\\d+)(?:[eE][+-]?\\d+)?)"; + var pIdentifier = "(?:[a-zA-Z\\$'][a-zA-Z0-9\\$']*)"; + + // regular expressions + var reFloatForm = new RegExp(pFloatForm); + var reIdentifier = new RegExp(pIdentifier); + var rePattern = new RegExp(pIdentifier + "?_" + pIdentifier); + var reFunctionLike = new RegExp(pIdentifier + "\\s*\\("); + + function tokenBase(stream, state) { + var ch; + + // get next character + ch = stream.next(); + + // string + if (ch === '"') { + state.tokenize = tokenString; + return state.tokenize(stream, state); + } + + // comment + if (ch === '/') { + if (stream.eat('*')) { + state.tokenize = tokenComment; + return state.tokenize(stream, state); + } + if (stream.eat("/")) { + stream.skipToEnd(); + return "comment"; + } + } + + // go back one character + stream.backUp(1); + + // update scope info + var m = stream.match(/^(\w+)\s*\(/, false); + if (m !== null && bodiedOps.hasOwnProperty(m[1])) + state.scopes.push('bodied'); + + var scope = currentScope(state); + + if (scope === 'bodied' && ch === '[') + state.scopes.pop(); + + if (ch === '[' || ch === '{' || ch === '(') + state.scopes.push(ch); + + scope = currentScope(state); + + if (scope === '[' && ch === ']' || + scope === '{' && ch === '}' || + scope === '(' && ch === ')') + state.scopes.pop(); + + if (ch === ';') { + while (scope === 'bodied') { + state.scopes.pop(); + scope = currentScope(state); + } + } + + // look for ordered rules + if (stream.match(/\d+ *#/, true, false)) { + return 'qualifier'; + } + + // look for numbers + if (stream.match(reFloatForm, true, false)) { + return 'number'; + } + + // look for placeholders + if (stream.match(rePattern, true, false)) { + return 'variable-3'; + } + + // match all braces separately + if (stream.match(/(?:\[|\]|{|}|\(|\))/, true, false)) { + return 'bracket'; + } + + // literals looking like function calls + if (stream.match(reFunctionLike, true, false)) { + stream.backUp(1); + return 'variable'; + } + + // all other identifiers + if (stream.match(reIdentifier, true, false)) { + return 'variable-2'; + } + + // operators; note that operators like @@ or /; are matched separately for each symbol. + if (stream.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%)/, true, false)) { + return 'operator'; + } + + // everything else is an error + return 'error'; + } + + function tokenString(stream, state) { + var next, end = false, escaped = false; + while ((next = stream.next()) != null) { + if (next === '"' && !escaped) { + end = true; + break; + } + escaped = !escaped && next === '\\'; + } + if (end && !escaped) { + state.tokenize = tokenBase; + } + return 'string'; + }; + + function tokenComment(stream, state) { + var prev, next; + while((next = stream.next()) != null) { + if (prev === '*' && next === '/') { + state.tokenize = tokenBase; + break; + } + prev = next; + } + return 'comment'; + } + + function currentScope(state) { + var scope = null; + if (state.scopes.length > 0) + scope = state.scopes[state.scopes.length - 1]; + return scope; + } + + return { + startState: function() { + return { + tokenize: tokenBase, + scopes: [] + }; + }, + token: function(stream, state) { + if (stream.eatSpace()) return null; + return state.tokenize(stream, state); + }, + indent: function(state, textAfter) { + if (state.tokenize !== tokenBase && state.tokenize !== null) + return CodeMirror.Pass; + + var delta = 0; + if (textAfter === ']' || textAfter === '];' || + textAfter === '}' || textAfter === '};' || + textAfter === ');') + delta = -1; + + return (state.scopes.length + delta) * _config.indentUnit; + }, + electricChars: "{}[]();", + blockCommentStart: "/*", + blockCommentEnd: "*/", + lineComment: "//" + }; +}); + +CodeMirror.defineMIME('text/x-yacas', { + name: 'yacas' +}); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/yaml-frontmatter/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/yaml-frontmatter/index.html new file mode 100644 index 0000000..30cb294 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/yaml-frontmatter/index.html @@ -0,0 +1,121 @@ +<!doctype html> + +<title>CodeMirror: YAML front matter mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="../../addon/mode/overlay.js"></script> +<script src="../markdown/markdown.js"></script> +<script src="../gfm/gfm.js"></script> +<script src="../yaml/yaml.js"></script> +<script src="yaml-frontmatter.js"></script> +<style>.CodeMirror { border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">YAML-Frontmatter</a> + </ul> +</div> + +<article> +<h2>YAML front matter mode</h2> +<form><textarea id="code" name="code"> +--- +receipt: Oz-Ware Purchase Invoice +date: 2007-08-06 +customer: + given: Dorothy + family: Gale + +items: + - part_no: A4786 + descrip: Water Bucket (Filled) + price: 1.47 + quantity: 4 + + - part_no: E1628 + descrip: High Heeled "Ruby" Slippers + size: 8 + price: 100.27 + quantity: 1 + +bill-to: &id001 + street: | + 123 Tornado Alley + Suite 16 + city: East Centerville + state: KS + +ship-to: *id001 + +specialDelivery: > + Follow the Yellow Brick + Road to the Emerald City. + Pay no attention to the + man behind the curtain. +--- + +GitHub Flavored Markdown +======================== + +Everything from markdown plus GFM features: + +## URL autolinking + +Underscores_are_allowed_between_words. + +## Strikethrough text + +GFM adds syntax to strikethrough text, which is missing from standard Markdown. + +~~Mistaken text.~~ +~~**works with other formatting**~~ + +~~spans across +lines~~ + +## Fenced code blocks (and syntax highlighting) + +```javascript +for (var i = 0; i < items.length; i++) { + console.log(items[i], i); // log them +} +``` + +## Task Lists + +- [ ] Incomplete task list item +- [x] **Completed** task list item + +## A bit of GitHub spice + +* SHA: be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2 +* User@SHA ref: mojombo@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2 +* User/Project@SHA: mojombo/god@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2 +* \#Num: #1 +* User/#Num: mojombo#1 +* User/Project#Num: mojombo/god#1 + +See http://github.github.com/github-flavored-markdown/. +</textarea></form> + +<p>Defines a mode that parses +a <a href="http://jekyllrb.com/docs/frontmatter/">YAML frontmatter</a> +at the start of a file, switching to a base mode at the end of that. +Takes a mode configuration option <code>base</code> to configure the +base mode, which defaults to <code>"gfm"</code>.</p> + + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), {mode: "yaml-frontmatter"}); + </script> + + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/yaml-frontmatter/yaml-frontmatter.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/yaml-frontmatter/yaml-frontmatter.js new file mode 100644 index 0000000..5f49772 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/yaml-frontmatter/yaml-frontmatter.js @@ -0,0 +1,68 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function (mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror"), require("../yaml/yaml")) + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror", "../yaml/yaml"], mod) + else // Plain browser env + mod(CodeMirror) +})(function (CodeMirror) { + + var START = 0, FRONTMATTER = 1, BODY = 2 + + // a mixed mode for Markdown text with an optional YAML front matter + CodeMirror.defineMode("yaml-frontmatter", function (config, parserConfig) { + var yamlMode = CodeMirror.getMode(config, "yaml") + var innerMode = CodeMirror.getMode(config, parserConfig && parserConfig.base || "gfm") + + function curMode(state) { + return state.state == BODY ? innerMode : yamlMode + } + + return { + startState: function () { + return { + state: START, + inner: CodeMirror.startState(yamlMode) + } + }, + copyState: function (state) { + return { + state: state.state, + inner: CodeMirror.copyState(curMode(state), state.inner) + } + }, + token: function (stream, state) { + if (state.state == START) { + if (stream.match(/---/, false)) { + state.state = FRONTMATTER + return yamlMode.token(stream, state.inner) + } else { + state.state = BODY + state.inner = CodeMirror.startState(innerMode) + return innerMode.token(stream, state.inner) + } + } else if (state.state == FRONTMATTER) { + var end = stream.sol() && stream.match(/---/, false) + var style = yamlMode.token(stream, state.inner) + if (end) { + state.state = BODY + state.inner = CodeMirror.startState(innerMode) + } + return style + } else { + return innerMode.token(stream, state.inner) + } + }, + innerMode: function (state) { + return {mode: curMode(state), state: state.inner} + }, + blankLine: function (state) { + var mode = curMode(state) + if (mode.blankLine) return mode.blankLine(state.inner) + } + } + }) +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/yaml/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/yaml/index.html new file mode 100644 index 0000000..be9b632 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/yaml/index.html @@ -0,0 +1,80 @@ +<!doctype html> + +<title>CodeMirror: YAML mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="yaml.js"></script> +<style>.CodeMirror { border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">YAML</a> + </ul> +</div> + +<article> +<h2>YAML mode</h2> +<form><textarea id="code" name="code"> +--- # Favorite movies +- Casablanca +- North by Northwest +- The Man Who Wasn't There +--- # Shopping list +[milk, pumpkin pie, eggs, juice] +--- # Indented Blocks, common in YAML data files, use indentation and new lines to separate the key: value pairs + name: John Smith + age: 33 +--- # Inline Blocks, common in YAML data streams, use commas to separate the key: value pairs between braces +{name: John Smith, age: 33} +--- +receipt: Oz-Ware Purchase Invoice +date: 2007-08-06 +customer: + given: Dorothy + family: Gale + +items: + - part_no: A4786 + descrip: Water Bucket (Filled) + price: 1.47 + quantity: 4 + + - part_no: E1628 + descrip: High Heeled "Ruby" Slippers + size: 8 + price: 100.27 + quantity: 1 + +bill-to: &id001 + street: | + 123 Tornado Alley + Suite 16 + city: East Centerville + state: KS + +ship-to: *id001 + +specialDelivery: > + Follow the Yellow Brick + Road to the Emerald City. + Pay no attention to the + man behind the curtain. +... +</textarea></form> + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), {}); + </script> + + <p><strong>MIME types defined:</strong> <code>text/x-yaml</code>.</p> + + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/yaml/yaml.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/yaml/yaml.js new file mode 100644 index 0000000..b7015e5 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/yaml/yaml.js @@ -0,0 +1,117 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode("yaml", function() { + + var cons = ['true', 'false', 'on', 'off', 'yes', 'no']; + var keywordRegex = new RegExp("\\b(("+cons.join(")|(")+"))$", 'i'); + + return { + token: function(stream, state) { + var ch = stream.peek(); + var esc = state.escaped; + state.escaped = false; + /* comments */ + if (ch == "#" && (stream.pos == 0 || /\s/.test(stream.string.charAt(stream.pos - 1)))) { + stream.skipToEnd(); + return "comment"; + } + + if (stream.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/)) + return "string"; + + if (state.literal && stream.indentation() > state.keyCol) { + stream.skipToEnd(); return "string"; + } else if (state.literal) { state.literal = false; } + if (stream.sol()) { + state.keyCol = 0; + state.pair = false; + state.pairStart = false; + /* document start */ + if(stream.match(/---/)) { return "def"; } + /* document end */ + if (stream.match(/\.\.\./)) { return "def"; } + /* array list item */ + if (stream.match(/\s*-\s+/)) { return 'meta'; } + } + /* inline pairs/lists */ + if (stream.match(/^(\{|\}|\[|\])/)) { + if (ch == '{') + state.inlinePairs++; + else if (ch == '}') + state.inlinePairs--; + else if (ch == '[') + state.inlineList++; + else + state.inlineList--; + return 'meta'; + } + + /* list seperator */ + if (state.inlineList > 0 && !esc && ch == ',') { + stream.next(); + return 'meta'; + } + /* pairs seperator */ + if (state.inlinePairs > 0 && !esc && ch == ',') { + state.keyCol = 0; + state.pair = false; + state.pairStart = false; + stream.next(); + return 'meta'; + } + + /* start of value of a pair */ + if (state.pairStart) { + /* block literals */ + if (stream.match(/^\s*(\||\>)\s*/)) { state.literal = true; return 'meta'; }; + /* references */ + if (stream.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i)) { return 'variable-2'; } + /* numbers */ + if (state.inlinePairs == 0 && stream.match(/^\s*-?[0-9\.\,]+\s?$/)) { return 'number'; } + if (state.inlinePairs > 0 && stream.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/)) { return 'number'; } + /* keywords */ + if (stream.match(keywordRegex)) { return 'keyword'; } + } + + /* pairs (associative arrays) -> key */ + if (!state.pair && stream.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)) { + state.pair = true; + state.keyCol = stream.indentation(); + return "atom"; + } + if (state.pair && stream.match(/^:\s*/)) { state.pairStart = true; return 'meta'; } + + /* nothing found, continue */ + state.pairStart = false; + state.escaped = (ch == '\\'); + stream.next(); + return null; + }, + startState: function() { + return { + pair: false, + pairStart: false, + keyCol: 0, + inlinePairs: 0, + inlineList: 0, + literal: false, + escaped: false + }; + } + }; +}); + +CodeMirror.defineMIME("text/x-yaml", "yaml"); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/z80/index.html b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/z80/index.html new file mode 100644 index 0000000..a41b747 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/z80/index.html @@ -0,0 +1,53 @@ +<!doctype html> + +<title>CodeMirror: Z80 assembly mode</title> +<meta charset="utf-8"/> +<link rel=stylesheet href="../../doc/docs.css"> + +<link rel="stylesheet" href="../../lib/codemirror.css"> +<script src="../../lib/codemirror.js"></script> +<script src="z80.js"></script> +<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> +<div id=nav> + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> + + <ul> + <li><a href="../../index.html">Home</a> + <li><a href="../../doc/manual.html">Manual</a> + <li><a href="https://github.com/codemirror/codemirror">Code</a> + </ul> + <ul> + <li><a href="../index.html">Language modes</a> + <li><a class=active href="#">Z80 assembly</a> + </ul> +</div> + +<article> +<h2>Z80 assembly mode</h2> + + +<div><textarea id="code" name="code"> +#include "ti83plus.inc" +#define progStart $9D95 + .org progStart-2 + .db $BB,$6D + + bcall(_ClrLCDFull) + ld hl,0 + ld (CurCol),hl + ld hl,Message + bcall(_PutS) ; Displays the string + bcall(_NewLine) + ret +Message: + .db "Hello world!",0 +</textarea></div> + + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + lineNumbers: true + }); + </script> + + <p><strong>MIME types defined:</strong> <code>text/x-z80</code>, <code>text/x-ez80</code>.</p> + </article> diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/mode/z80/z80.js b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/z80/z80.js new file mode 100644 index 0000000..aae7021 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/mode/z80/z80.js @@ -0,0 +1,116 @@ +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: http://codemirror.net/LICENSE + +(function(mod) { + if (typeof exports == "object" && typeof module == "object") // CommonJS + mod(require("../../lib/codemirror")); + else if (typeof define == "function" && define.amd) // AMD + define(["../../lib/codemirror"], mod); + else // Plain browser env + mod(CodeMirror); +})(function(CodeMirror) { +"use strict"; + +CodeMirror.defineMode('z80', function(_config, parserConfig) { + var ez80 = parserConfig.ez80; + var keywords1, keywords2; + if (ez80) { + keywords1 = /^(exx?|(ld|cp)([di]r?)?|[lp]ea|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|[de]i|halt|im|in([di]mr?|ir?|irx|2r?)|ot(dmr?|[id]rx|imr?)|out(0?|[di]r?|[di]2r?)|tst(io)?|slp)(\.([sl]?i)?[sl])?\b/i; + keywords2 = /^(((call|j[pr]|rst|ret[in]?)(\.([sl]?i)?[sl])?)|(rs|st)mix)\b/i; + } else { + keywords1 = /^(exx?|(ld|cp|in)([di]r?)?|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|rst|[de]i|halt|im|ot[di]r|out[di]?)\b/i; + keywords2 = /^(call|j[pr]|ret[in]?|b_?(call|jump))\b/i; + } + + var variables1 = /^(af?|bc?|c|de?|e|hl?|l|i[xy]?|r|sp)\b/i; + var variables2 = /^(n?[zc]|p[oe]?|m)\b/i; + var errors = /^([hl][xy]|i[xy][hl]|slia|sll)\b/i; + var numbers = /^([\da-f]+h|[0-7]+o|[01]+b|\d+d?)\b/i; + + return { + startState: function() { + return { + context: 0 + }; + }, + token: function(stream, state) { + if (!stream.column()) + state.context = 0; + + if (stream.eatSpace()) + return null; + + var w; + + if (stream.eatWhile(/\w/)) { + if (ez80 && stream.eat('.')) { + stream.eatWhile(/\w/); + } + w = stream.current(); + + if (stream.indentation()) { + if ((state.context == 1 || state.context == 4) && variables1.test(w)) { + state.context = 4; + return 'var2'; + } + + if (state.context == 2 && variables2.test(w)) { + state.context = 4; + return 'var3'; + } + + if (keywords1.test(w)) { + state.context = 1; + return 'keyword'; + } else if (keywords2.test(w)) { + state.context = 2; + return 'keyword'; + } else if (state.context == 4 && numbers.test(w)) { + return 'number'; + } + + if (errors.test(w)) + return 'error'; + } else if (stream.match(numbers)) { + return 'number'; + } else { + return null; + } + } else if (stream.eat(';')) { + stream.skipToEnd(); + return 'comment'; + } else if (stream.eat('"')) { + while (w = stream.next()) { + if (w == '"') + break; + + if (w == '\\') + stream.next(); + } + return 'string'; + } else if (stream.eat('\'')) { + if (stream.match(/\\?.'/)) + return 'number'; + } else if (stream.eat('.') || stream.sol() && stream.eat('#')) { + state.context = 5; + + if (stream.eatWhile(/\w/)) + return 'def'; + } else if (stream.eat('$')) { + if (stream.eatWhile(/[\da-f]/i)) + return 'number'; + } else if (stream.eat('%')) { + if (stream.eatWhile(/[01]/)) + return 'number'; + } else { + stream.next(); + } + return null; + } + }; +}); + +CodeMirror.defineMIME("text/x-z80", "z80"); +CodeMirror.defineMIME("text/x-ez80", { name: "z80", ez80: true }); + +}); diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/3024-day.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/3024-day.css new file mode 100644 index 0000000..7132655 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/3024-day.css @@ -0,0 +1,41 @@ +/* + + Name: 3024 day + Author: Jan T. Sott (http://github.com/idleberg) + + CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror) + Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) + +*/ + +.cm-s-3024-day.CodeMirror { background: #f7f7f7; color: #3a3432; } +.cm-s-3024-day div.CodeMirror-selected { background: #d6d5d4; } + +.cm-s-3024-day .CodeMirror-line::selection, .cm-s-3024-day .CodeMirror-line > span::selection, .cm-s-3024-day .CodeMirror-line > span > span::selection { background: #d6d5d4; } +.cm-s-3024-day .CodeMirror-line::-moz-selection, .cm-s-3024-day .CodeMirror-line > span::-moz-selection, .cm-s-3024-day .CodeMirror-line > span > span::selection { background: #d9d9d9; } + +.cm-s-3024-day .CodeMirror-gutters { background: #f7f7f7; border-right: 0px; } +.cm-s-3024-day .CodeMirror-guttermarker { color: #db2d20; } +.cm-s-3024-day .CodeMirror-guttermarker-subtle { color: #807d7c; } +.cm-s-3024-day .CodeMirror-linenumber { color: #807d7c; } + +.cm-s-3024-day .CodeMirror-cursor { border-left: 1px solid #5c5855; } + +.cm-s-3024-day span.cm-comment { color: #cdab53; } +.cm-s-3024-day span.cm-atom { color: #a16a94; } +.cm-s-3024-day span.cm-number { color: #a16a94; } + +.cm-s-3024-day span.cm-property, .cm-s-3024-day span.cm-attribute { color: #01a252; } +.cm-s-3024-day span.cm-keyword { color: #db2d20; } +.cm-s-3024-day span.cm-string { color: #fded02; } + +.cm-s-3024-day span.cm-variable { color: #01a252; } +.cm-s-3024-day span.cm-variable-2 { color: #01a0e4; } +.cm-s-3024-day span.cm-def { color: #e8bbd0; } +.cm-s-3024-day span.cm-bracket { color: #3a3432; } +.cm-s-3024-day span.cm-tag { color: #db2d20; } +.cm-s-3024-day span.cm-link { color: #a16a94; } +.cm-s-3024-day span.cm-error { background: #db2d20; color: #5c5855; } + +.cm-s-3024-day .CodeMirror-activeline-background { background: #e8f2ff; } +.cm-s-3024-day .CodeMirror-matchingbracket { text-decoration: underline; color: #a16a94 !important; } diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/3024-night.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/3024-night.css new file mode 100644 index 0000000..adc5900 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/3024-night.css @@ -0,0 +1,39 @@ +/* + + Name: 3024 night + Author: Jan T. Sott (http://github.com/idleberg) + + CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror) + Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) + +*/ + +.cm-s-3024-night.CodeMirror { background: #090300; color: #d6d5d4; } +.cm-s-3024-night div.CodeMirror-selected { background: #3a3432; } +.cm-s-3024-night .CodeMirror-line::selection, .cm-s-3024-night .CodeMirror-line > span::selection, .cm-s-3024-night .CodeMirror-line > span > span::selection { background: rgba(58, 52, 50, .99); } +.cm-s-3024-night .CodeMirror-line::-moz-selection, .cm-s-3024-night .CodeMirror-line > span::-moz-selection, .cm-s-3024-night .CodeMirror-line > span > span::-moz-selection { background: rgba(58, 52, 50, .99); } +.cm-s-3024-night .CodeMirror-gutters { background: #090300; border-right: 0px; } +.cm-s-3024-night .CodeMirror-guttermarker { color: #db2d20; } +.cm-s-3024-night .CodeMirror-guttermarker-subtle { color: #5c5855; } +.cm-s-3024-night .CodeMirror-linenumber { color: #5c5855; } + +.cm-s-3024-night .CodeMirror-cursor { border-left: 1px solid #807d7c; } + +.cm-s-3024-night span.cm-comment { color: #cdab53; } +.cm-s-3024-night span.cm-atom { color: #a16a94; } +.cm-s-3024-night span.cm-number { color: #a16a94; } + +.cm-s-3024-night span.cm-property, .cm-s-3024-night span.cm-attribute { color: #01a252; } +.cm-s-3024-night span.cm-keyword { color: #db2d20; } +.cm-s-3024-night span.cm-string { color: #fded02; } + +.cm-s-3024-night span.cm-variable { color: #01a252; } +.cm-s-3024-night span.cm-variable-2 { color: #01a0e4; } +.cm-s-3024-night span.cm-def { color: #e8bbd0; } +.cm-s-3024-night span.cm-bracket { color: #d6d5d4; } +.cm-s-3024-night span.cm-tag { color: #db2d20; } +.cm-s-3024-night span.cm-link { color: #a16a94; } +.cm-s-3024-night span.cm-error { background: #db2d20; color: #807d7c; } + +.cm-s-3024-night .CodeMirror-activeline-background { background: #2F2F2F; } +.cm-s-3024-night .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/abcdef.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/abcdef.css new file mode 100644 index 0000000..7f9d788 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/abcdef.css @@ -0,0 +1,32 @@ +.cm-s-abcdef.CodeMirror { background: #0f0f0f; color: #defdef; } +.cm-s-abcdef div.CodeMirror-selected { background: #515151; } +.cm-s-abcdef .CodeMirror-line::selection, .cm-s-abcdef .CodeMirror-line > span::selection, .cm-s-abcdef .CodeMirror-line > span > span::selection { background: rgba(56, 56, 56, 0.99); } +.cm-s-abcdef .CodeMirror-line::-moz-selection, .cm-s-abcdef .CodeMirror-line > span::-moz-selection, .cm-s-abcdef .CodeMirror-line > span > span::-moz-selection { background: rgba(56, 56, 56, 0.99); } +.cm-s-abcdef .CodeMirror-gutters { background: #555; border-right: 2px solid #314151; } +.cm-s-abcdef .CodeMirror-guttermarker { color: #222; } +.cm-s-abcdef .CodeMirror-guttermarker-subtle { color: azure; } +.cm-s-abcdef .CodeMirror-linenumber { color: #FFFFFF; } +.cm-s-abcdef .CodeMirror-cursor { border-left: 1px solid #00FF00; } + +.cm-s-abcdef span.cm-keyword { color: darkgoldenrod; font-weight: bold; } +.cm-s-abcdef span.cm-atom { color: #77F; } +.cm-s-abcdef span.cm-number { color: violet; } +.cm-s-abcdef span.cm-def { color: #fffabc; } +.cm-s-abcdef span.cm-variable { color: #abcdef; } +.cm-s-abcdef span.cm-variable-2 { color: #cacbcc; } +.cm-s-abcdef span.cm-variable-3 { color: #def; } +.cm-s-abcdef span.cm-property { color: #fedcba; } +.cm-s-abcdef span.cm-operator { color: #ff0; } +.cm-s-abcdef span.cm-comment { color: #7a7b7c; font-style: italic;} +.cm-s-abcdef span.cm-string { color: #2b4; } +.cm-s-abcdef span.cm-meta { color: #C9F; } +.cm-s-abcdef span.cm-qualifier { color: #FFF700; } +.cm-s-abcdef span.cm-builtin { color: #30aabc; } +.cm-s-abcdef span.cm-bracket { color: #8a8a8a; } +.cm-s-abcdef span.cm-tag { color: #FFDD44; } +.cm-s-abcdef span.cm-attribute { color: #DDFF00; } +.cm-s-abcdef span.cm-error { color: #FF0000; } +.cm-s-abcdef span.cm-header { color: aquamarine; font-weight: bold; } +.cm-s-abcdef span.cm-link { color: blueviolet; } + +.cm-s-abcdef .CodeMirror-activeline-background { background: #314151; } diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/ambiance-mobile.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/ambiance-mobile.css new file mode 100644 index 0000000..88d332e --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/ambiance-mobile.css @@ -0,0 +1,5 @@ +.cm-s-ambiance.CodeMirror { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/ambiance.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/ambiance.css new file mode 100644 index 0000000..bce3446 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/ambiance.css @@ -0,0 +1,74 @@ +/* ambiance theme for codemirror */ + +/* Color scheme */ + +.cm-s-ambiance .cm-header { color: blue; } +.cm-s-ambiance .cm-quote { color: #24C2C7; } + +.cm-s-ambiance .cm-keyword { color: #cda869; } +.cm-s-ambiance .cm-atom { color: #CF7EA9; } +.cm-s-ambiance .cm-number { color: #78CF8A; } +.cm-s-ambiance .cm-def { color: #aac6e3; } +.cm-s-ambiance .cm-variable { color: #ffb795; } +.cm-s-ambiance .cm-variable-2 { color: #eed1b3; } +.cm-s-ambiance .cm-variable-3 { color: #faded3; } +.cm-s-ambiance .cm-property { color: #eed1b3; } +.cm-s-ambiance .cm-operator { color: #fa8d6a; } +.cm-s-ambiance .cm-comment { color: #555; font-style:italic; } +.cm-s-ambiance .cm-string { color: #8f9d6a; } +.cm-s-ambiance .cm-string-2 { color: #9d937c; } +.cm-s-ambiance .cm-meta { color: #D2A8A1; } +.cm-s-ambiance .cm-qualifier { color: yellow; } +.cm-s-ambiance .cm-builtin { color: #9999cc; } +.cm-s-ambiance .cm-bracket { color: #24C2C7; } +.cm-s-ambiance .cm-tag { color: #fee4ff; } +.cm-s-ambiance .cm-attribute { color: #9B859D; } +.cm-s-ambiance .cm-hr { color: pink; } +.cm-s-ambiance .cm-link { color: #F4C20B; } +.cm-s-ambiance .cm-special { color: #FF9D00; } +.cm-s-ambiance .cm-error { color: #AF2018; } + +.cm-s-ambiance .CodeMirror-matchingbracket { color: #0f0; } +.cm-s-ambiance .CodeMirror-nonmatchingbracket { color: #f22; } + +.cm-s-ambiance div.CodeMirror-selected { background: rgba(255, 255, 255, 0.15); } +.cm-s-ambiance.CodeMirror-focused div.CodeMirror-selected { background: rgba(255, 255, 255, 0.10); } +.cm-s-ambiance .CodeMirror-line::selection, .cm-s-ambiance .CodeMirror-line > span::selection, .cm-s-ambiance .CodeMirror-line > span > span::selection { background: rgba(255, 255, 255, 0.10); } +.cm-s-ambiance .CodeMirror-line::-moz-selection, .cm-s-ambiance .CodeMirror-line > span::-moz-selection, .cm-s-ambiance .CodeMirror-line > span > span::-moz-selection { background: rgba(255, 255, 255, 0.10); } + +/* Editor styling */ + +.cm-s-ambiance.CodeMirror { + line-height: 1.40em; + color: #E6E1DC; + background-color: #202020; + -webkit-box-shadow: inset 0 0 10px black; + -moz-box-shadow: inset 0 0 10px black; + box-shadow: inset 0 0 10px black; +} + +.cm-s-ambiance .CodeMirror-gutters { + background: #3D3D3D; + border-right: 1px solid #4D4D4D; + box-shadow: 0 10px 20px black; +} + +.cm-s-ambiance .CodeMirror-linenumber { + text-shadow: 0px 1px 1px #4d4d4d; + color: #111; + padding: 0 5px; +} + +.cm-s-ambiance .CodeMirror-guttermarker { color: #aaa; } +.cm-s-ambiance .CodeMirror-guttermarker-subtle { color: #111; } + +.cm-s-ambiance .CodeMirror-cursor { border-left: 1px solid #7991E8; } + +.cm-s-ambiance .CodeMirror-activeline-background { + background: none repeat scroll 0% 0% rgba(255, 255, 255, 0.031); +} + +.cm-s-ambiance.CodeMirror, +.cm-s-ambiance .CodeMirror-gutters { + background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAQAAAAHUWYVAABFFUlEQVQYGbzBCeDVU/74/6fj9HIcx/FRHx9JCFmzMyGRURhLZIkUsoeRfUjS2FNDtr6WkMhO9sm+S8maJfu+Jcsg+/o/c+Z4z/t97/vezy3z+z8ekGlnYICG/o7gdk+wmSHZ1z4pJItqapjoKXWahm8NmV6eOTbWUOp6/6a/XIg6GQqmenJ2lDHyvCFZ2cBDbmtHA043VFhHwXxClWmeYAdLhV00Bd85go8VmaFCkbVkzlQENzfBDZ5gtN7HwF0KDrTwJ0dypSOzpaKCMwQHKTIreYIxlmhXTzTWkVm+LTynZhiSBT3RZQ7aGfjGEd3qyXQ1FDymqbKxpspERQN2MiRjNZlFFQXfCNFm9nM1zpAsoYjmtRTc5ajwuaXc5xrWskT97RaKzAGe5ARHhVUsDbjKklziiX5WROcJwSNCNI+9w1Jwv4Zb2r7lCMZ4oq5C0EdTx+2GzNuKpJ+iFf38JEWkHJn9DNF7mmBDITrWEg0VWL3pHU20tSZnuqWu+R3BtYa8XxV1HO7GyD32UkOpL/yDloINFTmvtId+nmAjxRw40VMwVKiwrKLE4bK5UOVntYwhOcSSXKrJHKPJedocpGjVz/ZMIbnYUPB10/eKCrs5apqpgVmWzBYWpmtKHecJPjaUuEgRDDaU0oZghCJ6zNMQ5ZhDYx05r5v2muQdM0EILtXUsaKiQX9WMEUotagQzFbUNN6NUPC2nm5pxEWGCjMc3GdJHjSU2kORLK/JGSrkfGEIjncU/CYUnOipoYemwj8tST9NsJmB7TUVXtbUtXATJVZXBMvYeTXJfobgJUPmGMP/yFaWonaa6BcFO3nqcIqCozSZoZoSr1g4zJOzuyGnxTEX3lUEJ7WcZgme8ddaWvWJo2AJR9DZU3CUIbhCSG6ybSwN6qtJVnCU2svDTP2ZInOw2cBTrqtQahtNZn9NcJ4l2NaSmSkkP1noZWnVwkLmdUPOwLZEwy2Z3S3R+4rIG9hcbpPXHFVWcQdZkn2FOta3cKWQnNRC5g1LsJah4GCzSVsKnCOY5OAFRTBekyyryeyilhFKva75r4Mc0aWanGEaThcy31s439KKxTzJYY5WTHPU1FtIHjQU3Oip4xlNzj/lBw23dYZVliQa7WAXf4shetcQfatI+jWRDBPmyNeW6A1P5kdDgyYJlba0BIM8BZu1JfrFwItyjcAMR3K0BWOIrtMEXyhyrlVEx3ui5dUBjmB/Q3CXW85R4mBD0s7B+4q5tKUjOlb9qqmhi5AZ6GFIC5HXtOobdYGlVdMVbNJ8toNTFcHxnoL+muBagcctjWnbNMuR00uI7nQESwg5q2qqrKWIfrNUmeQocY6HuyxJV02wj36w00yhpmUFenv4p6fUkZYqLyuinx2RGOjhCXYyJF84oiU00YMOOhhquNdfbOB7gU88pY4xJO8LVdp6/q2voeB4R04vIdhSE40xZObx1HGGJ/ja0LBthFInKaLPPFzuCaYaoj8JjPME8yoyxo6zlBqkiUZYgq00OYMswbWO5NGmq+xhipxHLRW29ARjNKXO0wRnear8XSg4XFPLKEPUS1GqvyLwiuBUoa7zpZ0l5xxFwWmWZC1H5h5FwU8eQ7K+g8UcVY6TMQreVQT/8uQ8Z+ALIXnSEa2pYZQneE9RZbSBNYXfWYJzW/h/4j4Dp1tYVcFIC5019Vyi4ThPqSFCzjGWaHQTBU8q6vrVwgxP9Lkm840imWKpcLCjYTtrKuwvsKSnrvHCXGkSMk9p6lhckfRpIeis+N2PiszT+mFLspyGleUhDwcLrZqmyeylxwjBcKHEapqkmyangyLZRVOijwOtCY5SsG5zL0OwlCJ4y5KznF3EUNDDrinwiyLZRzOXtlBbK5ITHFGLp8Q0R6ab6mS7enI2cFrxOyHvOCFaT1HThS1krjCwqWeurCkk+willhCC+RSZnRXBiZaC5RXRIZYKp2lyfrHwiKPKR0JDzrdU2EFgpidawlFDR6FgXUMNa+g1FY3bUQh2cLCwosRdnuQTS/S+JVrGLeWIvtQUvONJxlqSQYYKpwoN2kaocLjdVsis4Mk80ESF2YpSkzwldjHkjFCUutI/r+EHDU8oCs6yzL3PhWiEooZdFMkymlas4AcI3KmoMMNSQ3tHzjGWCrcJJdYyZC7QFGwjRL9p+MrRkAGWzIaWCn9W0F3TsK01c2ZvQw0byvxuQU0r1lM0qJO7wW0kRIMdDTtXEdzi4VIh+EoIHm0mWtAtpCixlabgn83fKTI7anJe9ST7WIK1DMGpQmYeA58ImV6ezOGOzK2Kgq01pd60cKWiUi9Lievb/0vIDPHQ05Kzt4ddPckQBQtoaurjyHnek/nKzpQLrVgKPjIkh2v4uyezpv+Xoo7fPFXaGFp1vaLKxQ4uUpQQS5VuQs7BCq4xRJv7fwpVvvFEB3j+620haOuocqMhWd6TTPAEx+mdFNGHdranFe95WrWmIvlY4F1Dle2ECgc6cto7SryuqGGGha0tFQ5V53migUKmg6XKAo4qS3mik+0OZpAhOLeZKicacgaYcyx5hypYQE02ZA4xi/pNhOQxR4klNKyqacj+mpxnLTnnGSo85++3ZCZq6lrZkXlGEX3o+C9FieccJbZWVFjC0Yo1FZnJhoYMFoI1hEZ9r6hwg75HwzBNhbZCdJEfJwTPGzJvaKImw1yYX1HDAmpXR+ZJQ/SmgqMNVQb5vgamGwLtt7VwvP7Qk1xpiM5x5Cyv93E06MZmgs0Nya2azIKOYKCGBQQW97RmhKNKF02JZqHEJ4o58qp7X5EcZmc56trXEqzjCBZ1MFGR87Ql2tSTs6CGxS05PTzRQorkbw7aKoKXFDXsYW42VJih/q+FP2BdTzDTwVqOYB13liM50vG7wy28qagyuIXMeQI/Oqq8bcn5wJI50xH00CRntyfpL1T4hydYpoXgNiFzoIUTDZnLNRzh4TBHwbYGDvZkxmlyJloyr6tRihpeUG94GnKtIznREF0tzJG/OOr73JBcrSh1k6WuTprgLU+mnSGnv6Zge0NNz+kTDdH8nuAuTdJDCNb21LCiIuqlYbqGzT3RAoZofQfjFazkqeNWdYaGvYTM001EW2oKPvVk1ldUGSgUtHFwjKM1h9jnFcmy5lChoLNaQMGGDsYbKixlaMBmmsx1QjCfflwTfO/gckW0ruZ3jugKR3R5W9hGUWqCgxuFgsuaCHorotGKzGaeZB9DMsaTnKCpMtwTvOzhYk0rdrArKCqcaWmVk1+F372ur1YkKxgatI8Qfe1gIX9wE9FgS8ESmuABIXnRUbCapcKe+nO7slClSZFzpV/LkLncEb1qiO42fS3R855Su2mCLh62t1SYZZYVmKwIHjREF2uihTzB20JOkz7dkxzYQnK0UOU494wh+VWRc6Un2kpTaVgLDFEkJ/uhzRcI0YKGgpGWOlocBU/a4fKoJ/pEaNV6jip3+Es9VXY078rGnmAdf7t9ylPXS34RBSuYPs1UecZTU78WanhBCHpZ5sAoTz0LGZKjPf9TRypqWEiTvOFglL1fCEY3wY/++rbk7C8bWebA6p6om6PgOL2kp44TFJlVNBXae2rqqdZztOJpT87GQsE9jqCPIe9VReZuQ/CIgacsyZdCpIScSYqcZk8r+nsyCzhyfhOqHGOIvrLknC8wTpFcaYiGC/RU1NRbUeUpocQOnkRpGOrIOcNRx+1uA0UrzhSSt+VyS3SJpnFWkzNDqOFGIWcfR86DnmARTQ1HKIL33ExPiemeOhYSSjzlSUZZuE4TveoJLnBUOFof6KiysCbnAEcZgcUNTDOwkqWu3RWtmGpZwlHhJENdZ3miGz0lJlsKnjbwqSHQjpxnFDlTLLwqJPMZMjd7KrzkSG7VsxXBZE+F8YZkb01Oe00yyRK9psh5SYh29ySPKBo2ylNht7ZkZnsKenjKNJu9PNEyZpaCHv4Kt6RQsLvAVp7M9kIimmCUwGeWqLMmGuIotYMmWNpSahkhZw9FqZsVnKJhsjAHvtHMsTM9fCI06Dx/u3vfUXCqfsKRc4oFY2jMsoo/7DJDwZ1CsIKnJu+J9ldkpmiCxQx1rWjI+T9FwcWWzOuaYH0Hj7klNRVWEQpmaqosakiGNTFHdjS/qnUdmf0NJW5xsL0HhimCCZZSRzmSPTXJQ4aaztAwtZnoabebJ+htCaZ7Cm535ByoqXKbX1WRc4Eh2MkRXWzImVc96Cj4VdOKVxR84VdQsIUM8Psoou2byVHyZFuq7O8otbSQ2UAoeEWTudATLGSpZzVLlXVkPU2Jc+27lsw2jmg5T5VhbeE3BT083K9WsTTkFU/Osi0rC5lRlpwRHUiesNS0sOvmqGML1aRbPAxTJD9ZKtxuob+hhl8cwYGWpJ8nub7t5p6coYbMovZ1BTdaKn1jYD6h4GFDNFyT/Kqe1XCXphXHOKLZmuRSRdBPEfVUXQzJm5YGPGGJdvAEr7hHNdGZnuBvrpciGmopOLf5N0uVMy0FfYToJk90uUCbJupaVpO53UJXR2bVpoU00V2KOo4zMFrBd0Jtz2pa0clT5Q5L8IpQ177mWQejPMEJhuQjS10ref6HHjdEhy1P1EYR7GtO0uSsKJQYLiTnG1rVScj5lyazpqWGl5uBbRWl7m6ixGOOnEsMJR7z8J0n6KMnCdxhiNYQCoZ6CmYLnO8omC3MkW3bktlPmEt/VQQHejL3+dOE5FlPdK/Mq8hZxxJtLyRrepLThYKbLZxkSb5W52vYxNOaOxUF0yxMUPwBTYqCzy01XayYK0sJyWBLqX0MwU5CzoymRzV0EjjeUeLgDpTo6ij42ZAzvD01dHUUTPLU96MdLbBME8nFBn7zJCMtJcZokn8YoqU0FS5WFKyniHobguMcmW8N0XkWZjkyN3hqOMtS08r+/xTBwpZSZ3qiVRX8SzMHHjfUNFjgHEPmY9PL3ykEzxkSre/1ZD6z/NuznuB0RcE1TWTm9zRgfUWVJiG6yrzgmWPXC8EAR4Wxhlad0ZbgQyEz3pG5RVEwwDJH2mgKpjcTiCOzn1lfUWANFbZ2BA8balnEweJC9J0iuaeZoI+ippFCztEKVvckR2iice1JvhVytrQwUAZpgsubCPaU7xUe9vWnaOpaSBEspalykhC9bUlOMpT42ZHca6hyrqKmw/wMR8H5ZmdFoBVJb03O4UL0tSNnvIeRmkrLWqrs78gcrEn2tpcboh0UPOW3UUR9PMk4T4nnNKWmCjlrefhCwxRNztfmIQVdDElvS4m1/WuOujoZCs5XVOjtKPGokJzsYCtFYoWonSPT21DheU/wWhM19FcElwqNGOsp9Q8N/cwXaiND1MmeL1Q5XROtYYgGeFq1aTMsoMmcrKjQrOFQTQ1fmBYhmW6o8Jkjc7iDJRTBIo5kgJD5yMEYA3srCg7VFKwiVJkmRCc5ohGOKhsYMn/XBLdo5taZjlb9YAlGWRimqbCsoY7HFAXLa5I1HPRxMMsQDHFkWtRNniqT9UEeNjcE7RUlrCJ4R2CSJuqlKHWvJXjAUNcITYkenuBRB84TbeepcqTj3zZyFJzgYQdHnqfgI0ddUwS6GqWpsKWhjq9cV0vBAEMN2znq+EBfIWT+pClYw5xsTlJU6GeIBsjGmmANTzJZiIYpgrM0Oa8ZMjd7NP87jxhqGOhJlnQtjuQpB+8aEE00wZFznSJPyHxgH3HkPOsJFvYk8zqCHzTs1BYOa4J3PFU+UVRZxlHDM4YavlNUuMoRveiZA2d7grMNc2g+RbSCEKzmgYsUmWmazFJyoiOZ4KnyhKOGRzWJa0+moyV4TVHDzn51Awtqaphfk/lRQ08FX1iiqxTB/kLwd0VynKfEvI6cd4XMV5bMhZ7gZUWVzYQ6Nm2BYzxJbw3bGthEUUMfgbGeorae6DxHtJoZ6alhZ0+ytiVoK1R4z5PTrOECT/SugseEOlb1MMNR4VRNcJy+V1Hg9ONClSZFZjdHlc6W6FBLdJja2MC5hhpu0DBYEY1TFGwiFAxRRCsYkiM9JRb0JNMVkW6CZYT/2EiTGWmo8k+h4FhDNE7BvppoTSFnmCV5xZKzvcCdDo7VVPnIU+I+Rc68juApC90MwcFCsJ5hDqxgScYKreruyQwTqrzoqDCmhWi4IbhB0Yrt3RGa6GfDv52rKXWhh28dyZaWUvcZeMTBaZoSGyiCtRU5J8iviioHaErs7Jkj61syVzTTgOcUOQ8buFBTYWdL5g3T4qlpe0+wvD63heAXRfCCIed9RbCsp2CiI7raUOYOTU13N8PNHvpaGvayo4a3LLT1lDrVEPT2zLUlheB1R+ZTRfKWJ+dcocLJfi11vyJ51lLqJ0WD7tRwryezjiV5W28uJO9qykzX8JDe2lHl/9oyBwa2UMfOngpXCixvKdXTk3wrsKmiVYdZIqsoWEERjbcUNDuiaQomGoIbFdEHmsyWnuR+IeriKDVLnlawlyNHKwKlSU631PKep8J4Q+ayjkSLKYLhalNHlYvttb6fHm0p6OApsZ4l2VfdqZkjuysy6ysKLlckf1KUutCTs39bmCgEyyoasIWlVaMF7mgmWtBT8Kol5xpH9IGllo8cJdopcvZ2sImlDmMIbtDk3KIpeNiS08lQw11NFPTwVFlPP6pJ2gvRfI7gQUfmNAtf6Gs0wQxDsKGlVBdF8rCa3jzdwMaGHOsItrZk7hAyOzpK9VS06j5F49b0VNGOOfKs3lDToMsMBe9ZWtHFEgxTJLs7qrygKZjUnmCYoeAqeU6jqWuLJup4WghOdvCYJnrSkSzoyRkm5M2StQwVltPkfCAk58tET/CSg+8MUecmotMEnhBKfWBIZsg2ihruMJQaoIm+tkTLKEqspMh00w95gvFCQRtDwTT1gVDDSEVdlwqZfxoQRbK0g+tbiBZxzKlpnpypejdDwTaeOvorMk/IJE10h9CqRe28hhLbe0pMsdSwv4ZbhKivo2BjDWfL8UKJgeavwlwb5KlwhyE4u4XkGE2ytZCznKLCDZZq42VzT8HLCrpruFbIfOIINmh/qCdZ1ZBc65kLHR1Bkyf5zn6pN3SvGKIlFNGplhrO9QSXanLOMQTLCa0YJCRrCZm/CZmrLTm7WzCK4GJDiWUdFeYx1LCFg3NMd0XmCuF3Y5rITLDUsYS9zoHVzwnJoYpSTQoObyEzr4cFBNqYTopoaU/wkyLZ2lPhX/5Y95ulxGTV7KjhWrOZgl8MyUUafjYraNjNU1N3IWcjT5WzWqjwtoarHSUObGYO3GCJZpsBlnJGPd6ZYLyl1GdCA2625IwwJDP8GUKymbzuyPlZlvTUsaUh5zFDhRWFzPKKZLAlWdcQbObgF9tOqOsmB1dqcqYJmWstFbZRRI9poolmqiLnU0POvxScpah2iSL5UJNzgScY5+AuIbpO0YD3NCW+dLMszFSdFCWGqG6eVq2uYVNDdICGD6W7EPRWZEY5gpsE9rUkS3mijzzJnm6UpUFXG1hCUeVoS5WfNcFpblELL2qqrCvMvRfd45oalvKU2tiQ6ePJOVMRXase9iTtLJztPxJKLWpo2CRDcJwn2sWSLKIO1WQWNTCvpVUvOZhgSC40JD0dOctaSqzkCRbXsKlb11Oip6PCJ0IwSJM31j3akRxlP7Rwn6aGaUL0qiLnJkvB3xWZ2+Q1TfCwpQH3G0o92UzmX4o/oJNQMMSQc547wVHhdk+VCw01DFYEnTxzZKAm74QmeNNR1w6WzEhNK15VJzuCdxQ53dRUDws5KvwgBMOEgpcVNe0hZI6RXT1Jd0cyj5nsaEAHgVmGaJIlWdsc5Ui2ElrRR6jrRAttNMEAIWrTDFubkZaok7/AkzfIwfuWVq0jHzuCK4QabtLUMVPB3kJ0oyHTSVFlqMALilJf2Rf8k5aaHtMfayocLBS8L89oKoxpJvnAkDPa0qp5DAUTHKWmCcnthlou8iCKaFFLHWcINd1nyIwXqrSxMNmSs6KmoL2QrKuWtlQ5V0120xQ5vRyZS1rgFkWwhiOwiuQbR0OOVhQM9iS3tiXp4RawRPMp5tDletOOBL95MpM01dZTBM9pkn5qF010rIeHFcFZhmSGpYpTsI6nwhqe5C9ynhlpp5ophuRb6WcJFldkVnVEwwxVfrVkvnWUuNLCg5bgboFHPDlDPDmnK7hUrWiIbjadDclujlZcaokOFup4Ri1kacV6jmrrK1hN9bGwpKEBQ4Q6DvIUXOmo6U5LqQM6EPyiKNjVkPnJkDPNEaxhiFay5ExW1NXVUGqcpYYdPcGiCq7z/TSlbhL4pplWXKd7NZO5QQFrefhRQW/NHOsqcIglc4UhWklR8K0QzbAw08CBDnpbgqXdeD/QUsM4RZXDFBW6WJKe/mFPdH0LtBgiq57wFLzlyQzz82qYx5D5WJP5yVJDW01BfyHnS6HKO/reZqId1WGa4Hkh2kWodJ8i6KoIPlAj2hPt76CzXsVR6koPRzWTfKqIentatYpQw2me4AA3y1Kind3SwoOKZDcFXTwl9tWU6mfgRk9d71sKtlNwrjnYw5tC5n5LdKiGry3JKNlHEd3oaMCFHrazBPMp/uNJ+V7IudcSbeOIdjUEdwl0VHCOZo5t6YluEuaC9mQeMgSfOyKnYGFHcIeQ84yQWbuJYJpZw5CzglDH7gKnWqqM9ZTaXcN0TeYhR84eQtJT76JJ1lREe7WnnvsMmRc9FQ7SBBM9mV3lCUdmHk/S2RAMt0QjFNFqQpWjDPQ01DXWUdDBkXziKPjGEP3VP+zIWU2t7im41FOloyWzn/L6dkUy3VLDaZ6appgDLHPjJEsyvJngWEPUyVBiAaHCTEXwrLvSEbV1e1gKJniicWorC1MUrVjB3uDhJE/wgSOzk1DXpk0k73qCM8xw2UvD5kJmDUfOomqMpWCkJRlvKXGmoeBm18USjVIk04SClxTB6YrgLAPLWYK9HLUt5cmc0vYES8GnTeRc6skZbQkWdxRsIcyBRzx1DbTk9FbU0caTPOgJHhJKnOGIVhQqvKmo0llRw9sabrZkDtdg3PqaKi9oatjY8B+G371paMg6+mZFNNtQ04mWBq3rYLOmtWWQp8KJnpy9DdFensyjdqZ+yY40VJlH8wcdLzC8PZnvHMFUTZUrDTkLyQaGus5X5LzpYAf3i+e/ZlhqGqWhh6Ou6xTR9Z6oi5AZZtp7Mj2EEm8oSpxiYZCHU/1fbGdNNNRRoZMhmilEb2gqHOEJDtXkHK/JnG6IrvbPCwV3NhONVdS1thBMs1T4QOBcTWa2IzhMk2nW5Kyn9tXUtpv9RsG2msxk+ZsQzRQacJncpgke0+T8y5Fzj8BiGo7XlJjaTIlpQs7KFjpqGnKuoyEPeIKnFMkZHvopgh81ySxNFWvJWcKRs70j2FOT012IllEEO1n4pD1513Yg2ssQPOThOkvyrqHUdEXOSEsihmBbTbKX1kLBPWqWkLOqJbjB3GBIZmoa8qWl4CG/iZ7oiA72ZL7TJNeZUY7kFQftDcHHluBzRbCegzMtrRjVQpX2lgoPKKLJAkcbMl01XK2p7yhL8pCBbQ3BN2avJgKvttcrWDK3CiUOVxQ8ZP+pqXKyIxnmBymCg5vJjNfkPK4+c8cIfK8ocVt7kmfd/I5SR1hKvCzUtb+lhgc00ZaO6CyhIQP1Uv4yIZjload72PXX0OIJvnFU+0Zf6MhsJwTfW0r0UwQfW4LNLZl5HK261JCZ4qnBaAreVAS3WrjV0LBnNDUNNDToCEeFfwgcb4gOEqLRhirWkexrCEYKVV711DLYEE1XBEsp5tpTGjorkomKYF9FDXv7fR3BGwbettSxnyL53MBPjsxDZjMh+VUW9NRxq1DhVk+FSxQcaGjV9Pawv6eGByw5qzoy7xk4RsOShqjJwWKe/1pEEfzkobeD/dQJmpqedcyBTy2sr4nGNRH0c0SPWTLrqAc0OQcb/gemKgqucQT7ySWKCn2EUotoCvpZct7RO2sy/QW0IWcXd7pQRQyZVwT2USRO87uhjioTLKV2brpMUcMQRbKH/N2T+UlTpaMls6cmc6CCNy3JdYYSUzzJQ4oSD3oKLncULOiJvjBEC2oqnCJkJluCYy2ZQ5so9YYlZ1VLlQU1mXEW1jZERwj/MUSRc24TdexlqLKfQBtDTScJUV8FszXBEY5ktpD5Ur9hYB4Nb1iikw3JoYpkKX+RodRKFt53MMuRnKSpY31PwYaGaILh3wxJGz9TkTPEETxoCWZrgvOlmyMzxFEwVJE5xZKzvyJ4WxEc16Gd4Xe3Weq4XH2jKRikqOkGQ87hQnC7wBmGYLAnesX3M+S87eFATauuN+Qcrh7xIxXJbUIdMw3JGE3ylCWzrieaqCn4zhGM19TQ3z1oH1AX+pWEqIc7wNGAkULBo/ZxRaV9NNyh4Br3rCHZzbzmSfawBL0dNRwpW1kK9mxPXR9povcdrGSZK9c2k0xwFGzjuniCtRSZCZ6ccZ7gaktmgAOtKbG/JnOkJrjcQTdFMsxRQ2cLY3WTIrlCw1eWKn8R6pvt4GFDso3QoL4a3nLk3G6JrtME3dSenpx7PNFTmga0EaJTLQ061sEeQoWXhSo9LTXsaSjoJQRXeZLtDclbCrYzfzHHeaKjHCVOUkQHO3JeEepr56mhiyaYYKjjNU+Fed1wS5VlhWSqI/hYUdDOkaxiKehoyOnrCV5yBHtbWFqTHCCwtpDcYolesVR5yUzTZBb3RNMd0d6WP+SvhuBmRcGxnuQzT95IC285cr41cLGQ6aJJhmi4TMGempxeimBRQw1tFKV+8jd6KuzoSTqqDxzRtpZkurvKEHxlqXKRIjjfUNNXQsNOsRScoWFLT+YeRZVD3GRN0MdQcKqQjHDMrdGGVu3iYJpQx3WGUvfbmxwFfR20WBq0oYY7LMFhhgYtr8jpaEnaOzjawWWaTP8mMr0t/EPDPoqcnxTBI5o58L7uoWnMrpoqPwgVrlAUWE+V+TQl9rawoyP6QGAlQw2TPRX+YSkxyBC8Z6jhHkXBgQL7WII3DVFnRfCrBfxewv9D6xsyjys4VkhWb9pUU627JllV0YDNHMku/ldNMMXDEo4aFnAkk4U6frNEU4XgZUPmEKHUl44KrzmYamjAbh0JFvGnaTLPu1s9jPCwjFpYiN7z1DTOk/nc07CfDFzmCf7i+bfNHXhDtLeBXzTBT5rkMvWOIxpl4EMh2LGJBu2syDnAEx2naEhHDWMMzPZEhygyS1mS5RTJr5ZkoKbEUoYqr2kqdDUE8ztK7OaIntJkFrIECwv8LJTaVx5XJE86go8dFeZ3FN3rjabCAYpoYEeC9zzJVULBbmZhDyd7ko09ydpNZ3nm2Kee4FPPXHnYEF1nqOFEC08LUVcDvYXkJHW8gTaKCk9YGOeIJhqiE4ToPEepdp7IWFjdwnWaufGMwJJCMtUTTBBK9BGCOy2tGGrJTHIwyEOzp6aPzNMOtlZkDvcEWpP5SVNhfkvDxhmSazTJXYrM9U1E0xwFVwqZQwzJxw6+kGGGUj2FglGGmnb1/G51udRSMNlTw6GGnCcUwVcOpmsqTHa06o72sw1RL02p9z0VbnMLOaIX3QKaYKSCFQzBKEUNHTSc48k53RH9wxGMtpQa5KjjW0W0n6XCCCG4yxNNdhQ4R4l1Ff+2sSd6UFHiIEOyqqFgT01mEUMD+joy75jPhOA+oVVLm309FR4yVOlp4RhLiScNmSmaYF5Pw0STrOIoWMSR2UkRXOMp+M4SHW8o8Zoi6OZgjKOaFar8zZDzkWzvKOjkKBjmCXby8JahhjXULY4KlzgKLvAwxVGhvyd4zxB1d9T0piazmKLCVZY5sKiD0y2ZSYrkUEPUbIk+dlQ4SJHTR50k1DPaUWIdTZW9NJwnJMOECgd7ou/MnppMJ02O1VT4Wsh85MnZzcFTngpXGKo84qmwgKbCL/orR/SzJ2crA+t6Mp94KvxJUeIbT3CQu1uIdlQEOzlKfS3UMcrTiFmOuroocrZrT2AcmamOKg8YomeEKm/rlT2sociMaybaUlFhuqHCM2qIJ+rg4EcDFymiDSxzaHdPcpE62pD5kyM5SBMoA1PaUtfIthS85ig1VPiPPYXgYEMNk4Qq7TXBgo7oT57gPUdwgCHzhIVFPFU6OYJzHAX9m5oNrVjeE61miDrqQ4VSa1oiURTsKHC0IfjNwU2WzK6eqK8jWln4g15TVBnqmDteCJ501PGAocJhhqjZdtBEB6lnhLreFJKxmlKbeGrqLiSThVIbCdGzloasa6lpMQXHCME2boLpJgT7yWaemu6wBONbqGNVRS0PKIL7LckbjmQtR7K8I5qtqel+T/ChJTNIKLjdUMNIRyvOEko9YYl2cwQveBikCNawJKcLBbc7+JM92mysNvd/Fqp8a0k6CNEe7cnZrxlW0wQXaXjaktnRwNOGZKYiONwS7a1JVheq3WgJHlQUGKHKmp4KAxXR/ULURcNgoa4zhKSLpZR3kxRRb0NmD0OFn+UCS7CzI1nbP6+o4x47QZE5xRCt3ZagnYcvmpYQktXdk5YKXTzBC57kKEe0VVuiSYqapssMS3C9p2CKkHOg8B8Pa8p5atrIw3qezIWanMGa5HRDNF6RM9wcacl0N+Q8Z8hsIkSnaIIdHRUOEebAPy1zbCkhM062FCJtif7PU+UtoVXzWKqM1PxXO8cfdruhFQ/a6x3JKYagvVDhQEtNiyiiSQ7OsuRsZUku0CRNDs4Sog6KKjsZgk2bYJqijgsEenoKeniinRXBn/U3lgpPdyDZynQx8IiioMnCep5Ky8mjGs6Wty0l1hUQTcNWswS3WRp2kCNZwJG8omG8JphPUaFbC8lEfabwP7VtM9yoaNCAjpR41VNhrD9LkbN722v0CoZMByFzhaW+MyzRYEWFDQwN2M4/JiT76PuljT3VU/A36eaIThb+R9oZGOAJ9tewkgGvqOMNRWYjT/Cwu99Q8LqDE4TgbLWxJ1jaDDAERsFOFrobgjUsBScaguXU8kKm2RL19tRypSHnHNlHiIZqgufs4opgQdVdwxBNNFBR6kVFqb8ogimOzB6a6HTzrlDHEpYaxjiiA4TMQobkDg2vejjfwJGWmnbVFAw3H3hq2NyQfG7hz4aC+w3BbwbesG0swYayvpAs6++Ri1Vfzx93mFChvyN5xVHTS+0p9aqCAxyZ6ZacZyw5+7uuQkFPR9DDk9NOiE7X1PCYJVjVUqq7JlrHwWALF5nfHNGjApdpqgzx5OwilDhCiDYTgnc9waGW4BdLNNUQvOtpzDOWHDH8D7TR/A/85KljEQu3NREc4Pl/6B1Hhc8Umb5CsKMmGC9EPcxoT2amwHNCmeOEnOPbklnMkbOgIvO5UMOpQrS9UGVdt6iH/fURjhI/WOpaW9OKLYRod6HCUEdOX000wpDZQ6hwg6LgZfOqo1RfT/CrJzjekXOGhpc1VW71ZLbXyyp+93ILbC1kPtIEYx0FIx1VDrLoVzXRKRYWk809yYlC9ImcrinxtabKnzRJk3lAU1OLEN1j2zrYzr2myHRXJFf4h4QKT1qSTzTB5+ZNTzTRkAxX8FcLV2uS8eoQQ2aAkFzvCM72sJIcJET3WPjRk5wi32uSS9rfZajpWEvj9hW42F4o5NytSXYy8IKHay10VYdrcl4SkqscrXpMwyGOgtkajheSxdQqmpxP1L3t4R5PqasFnrQEjytq6qgp9Y09Qx9o4S1FzhUCn1kyHSzBWLemoSGvOqLNhZyBjmCaAUYpMgt4Ck7wBBMMwWKWgjsUwTaGVsxWC1mYoKiyqqeGKYqonSIRQ3KIkHO0pmAxTdBHkbOvfllfr+AA+7gnc50huVKYK393FOyg7rbPO/izI7hE4CnHHHnJ0ogNPRUGeUpsrZZTBJcrovUcJe51BPsr6GkJdhCCsZ6aTtMEb2pqWkqeVtDXE/QVggsU/Nl86d9RMF3DxvZTA58agu810RWawCiSzzXBeU3MMW9oyJUedvNEvQyNu1f10BSMddR1vaLCYpYa/mGocLSiYDcLbQz8aMn5iyF4xBNMs1P0QEOV7o5gaWGuzSeLue4tt3ro7y4Tgm4G/mopdZgl6q0o6KzJWE3mMksNr3r+a6CbT8g5wZNzT9O7fi/zpaOmnz3BRoqos+tv9zMbdpxsqDBOEewtJLt7cg5wtKKbvldpSzRRCD43VFheCI7yZLppggMVBS/KMAdHODJvOwq2NQSbKKKPLdFWQs7Fqo+mpl01JXYRgq8dnGLhTiFzqmWsUMdpllZdbKlyvSdYxhI9YghOtxR8LgSLWHK62mGGVoxzBE8LNWzqH9CUesQzFy5RQzTc56mhi6fgXEWwpKfE5Z7M05ZgZUPmo6auiv8YKzDYwWBLMErIbKHJvOwIrvEdhOBcQ9JdU1NHQ7CXn2XIDFBKU2WAgcX9UAUzDXWd5alwuyJ41Z9rjKLCL4aCp4WarhPm2rH+SaHUYE001JDZ2ZAzXPjdMpZWvC9wmqIB2lLhQ01D5jO06hghWMndbM7yRJMsoCj1vYbnFQVrW9jak3OlEJ3s/96+p33dEPRV5GxiqaGjIthUU6FFEZyqCa5qJrpBdzSw95IUnOPIrCUUjRZQFrbw5PR0R1qiYx3cb6nrWUMrBmmiBQxVHtTew5ICP/ip6g4hed/Akob/32wvBHsIOX83cI8hGeNeNPCIkPmXe8fPKx84OMSRM1MTdXSwjCZ4S30jVGhvqTRak/OVhgGazHuOCud5onEO1lJr6ecVyaOK6H7zqlBlIaHE0oroCgfvGJIdPcmfLNGLjpz7hZwZQpUbFME0A1cIJa7VNORkgfsMBatbKgwwJM9bSvQXeNOvbIjelg6WWvo5kvbKaJJNHexkKNHL9xRyFlH8Ti2riB5wVPhUk7nGkJnoCe428LR/wRGdYIlmWebCyxou1rCk4g/ShugBDX0V0ZQWkh0dOVsagkM0yV6OoLd5ye+pRlsCr0n+KiQrGuq5yJDzrTAXHtLUMduTDBVKrSm3eHL+6ijxhFDX9Z5gVU/wliHYTMiMFpKLNMEywu80wd3meoFmt6VbRMPenhrOc6DVe4pgXU8DnnHakLOIIrlF4FZPIw6R+zxBP0dyq6OOZ4Q5sLKCcz084ok+VsMMyQhNZmmBgX5xIXOEJTmi7VsGTvMTNdHHhpzdbE8Du2oKxgvBqQKdDDnTFOylCFaxR1syz2iqrOI/FEpNc3C6f11/7+ASS6l2inq2ciTrCCzgyemrCL5SVPjQkdPZUmGy2c9Sw9FtR1sS30RmsKPCS4rkIC/2U0MduwucYolGaPjKEyhzmiPYXagyWbYz8LWBDdzRimAXzxx4z8K9hpzlhLq+NiQ97HuKorMUfK/OVvC2JfiHUPCQI/q7J2gjK+tTDNxkCc4TMssqCs4TGtLVwQihyoAWgj9bosU80XGW6Ac9TJGziaUh5+hnFcHOnlaM1iRn29NaqGENTTTSUHCH2tWTeV0osUhH6psuVLjRUmGWhm6OZEshGeNowABHcJ2Bpy2ZszRcKkRXd2QuKVEeXnbfaEq825FguqfgfE2whlChSRMdron+LATTPQ2Z369t4B9C5gs/ylzv+CMmepIDPclFQl13W0rspPd1JOcbghGOEutqCv5qacURQl3dDKyvyJlqKXGPgcM9FfawJAMVmdcspcYKOZc4GjDYkFlK05olNMHyHn4zFNykyOxt99RkHlfwmiHo60l2EKI+mhreEKp080Tbug08BVPcgoqC5zWt+NLDTZ7oNSF51N1qie7Va3uCCwyZbkINf/NED6jzOsBdZjFN8oqG3wxVunqCSYYKf3EdhJyf9YWGf7tRU2oH3VHgPr1fe5J9hOgHd7xQ0y7qBwXr23aGErP0cm64JVjZwsOGqL+mhNgZmhJLW2oY4UhedsyBgzrCKrq7BmcpNVhR6jBPq64Vgi+kn6XE68pp8J5/+0wRHGOpsKenQn9DZntPzjRLZpDAdD2fnSgkG9tmIXnUwQ6WVighs7Yi2MxQ0N3CqYaCXkJ0oyOztMDJjmSSpcpvlrk0RMMOjmArQ04PRV1DO1FwhCVaUVPpKUM03JK5SxPsIWRu8/CGHi8UHChiqGFDTbSRJWeYUDDcH6vJWUxR4k1FXbMUwV6e4AJFXS8oMqsZKqzvYQ9DDQdZckY4aGsIhtlubbd2r3j4QBMoTamdPZk7O/Bf62lacZwneNjQoGcdVU7zJOd7ghsUHOkosagic6cnWc8+4gg285R6zZP5s1/LUbCKIznTwK36PkdwlOrl4U1LwfdCCa+IrvFkmgw1PCAUXKWo0sURXWcI2muKJlgyFzhynCY4RBOsqCjoI1R5zREco0n2Vt09BQtYSizgKNHfUmUrQ5UOCh51BFcLmY7umhYqXKQomOop8bUnWNNQcIiBcYaC6xzMNOS8JQQfeqKBmmglB+97ok/lfk3ygaHSyZaCRTzRxQo6GzLfa2jWBPepw+UmT7SQEJyiyRkhBLMVOfcoMjcK0eZChfUNzFAUzCsEN5vP/X1uP/n/aoMX+K+nw/Hjr/9xOo7j7Pju61tLcgvJpTWXNbfN5jLpi6VfCOviTktKlFusQixdEKWmEBUKNaIpjZRSSOXSgzaaKLdabrm1/9nZ+/f+vd/vz/v9+Xy+zZ7PRorYoZqyLrCwQdEAixxVOEXNNnjX2nUSRlkqGmWowk8lxR50JPy9Bo6qJXaXwNvREBvnThPEPrewryLhcAnj5WE15Fqi8W7R1sAuEu86S4ENikItFN4xkv9Af4nXSnUVcLiA9xzesFpivRRVeFKtsMRaKBhuSbjOELnAUtlSQUpXgdfB4Z1oSbnFEetbQ0IrAe+Y+pqnDcEJFj6S8LDZzZHwY4e3XONNlARraomNEt2bkvGsosA3ioyHm+6jCMbI59wqt4eeara28IzEmyPgoRaUOEDhTVdEJhmCoTWfC0p8aNkCp0oYqih2iqGi4yXeMkOsn4LdLLnmKfh/YogjNsPebeFGR4m9BJHLzB61XQ3BtpISfS2FugsK9FAtLWX1dCRcrCnUp44CNzuCowUZmxSRgYaE6Za0W2u/E7CVXCiI/UOR8aAm1+OSyE3mOUcwyc1zBBeoX1kiKy0Zfxck1Gsyulti11i83QTBF5Kg3pDQThFMVHiPSlK+0cSedng/VaS8bOZbtsBcTcZAR8JP5KeqQ1OYKAi20njdNNRpgnsU//K+JnaXJaGTomr7aYIphoRn9aeShJWKEq9LcozSF7QleEfDI5LYm5bgVkFkRwVDBCVu0DDIkGupo8TZBq+/pMQURYErJQmPKGKjNDkWOLx7Jd5QizdUweIaKrlP7SwJDhZvONjLkOsBBX9UpGxnydhXkfBLQ8IxgojQbLFnJf81JytSljclYYyEFyx0kVBvKWOFJmONpshGAcsduQY5giVNCV51eOdJYo/pLhbvM0uDHSevNKRcrKZIqnCtJeEsO95RoqcgGK4ocZcho1tTYtcZvH41pNQ7vA0WrhIfOSraIIntIAi+NXWCErdbkvrWwjRLrt0NKUdL6KSOscTOdMSOUtBHwL6OLA0vNSdynaWQEnCpIvKaIrJJEbvHkmuNhn6OjM8VkSGSqn1uYJCGHnq9I3aLhNME3t6GjIkO7xrNFumpyTNX/NrwX7CrIRiqqWijI9JO4d1iieykyfiposQIQ8YjjsjlBh6oHWbwRjgYJQn2NgSnNycmJAk3NiXhx44Sxykihxm8ybUwT1OVKySc7vi3OXVkdBJ4AyXBeksDXG0IhgtYY0lY5ahCD0ehborIk5aUWRJviMA7Xt5kyRjonrXENkm8yYqgs8VzgrJmClK20uMM3jRJ0FiQICQF9hdETlLQWRIb5ki6WDfWRPobvO6a4GP5mcOrNzDFELtTkONLh9dXE8xypEg7z8A9jkhrQ6Fhjlg/QVktJXxt4WXzT/03Q8IaQWSqIuEvloQ2mqC9Jfi7wRul4RX3pSPlzpoVlmCtI2jvKHCFhjcM3sN6lqF6HxnKelLjXWbwrpR4xzuCrTUZx2qq9oAh8p6ixCUGr78g8oyjRAtB5CZFwi80VerVpI0h+IeBxa6Zg6kWvpDHaioYYuEsRbDC3eOmC2JvGYLeioxGknL2UATNJN6hmtj1DlpLvDVmocYbrGCVJKOrg4X6DgddLA203BKMFngdJJFtFd7vJLm6KEpc5yjQrkk7M80SGe34X24nSex1Ra5Omgb71JKyg8SrU3i/kARKwWpH0kOGhKkObyfd0ZGjvyXlAkVZ4xRbYJ2irFMkFY1SwyWxr2oo4zlNiV+7zmaweFpT4kR3kaDAFW6xpSqzJay05FtYR4HmZhc9UxKbbfF2V8RG1MBmSaE+kmC6JnaRXK9gsiXhJHl/U0qM0WTcbyhwkYIvFGwjSbjfwhiJt8ZSQU+Bd5+marPMOkVkD0muxYLIfEuhh60x/J92itguihJSEMySVPQnTewnEm+620rTQEMsOfo4/kP/0ARvWjitlpSX7GxBgcMEsd3EEeYWvdytd+Saawi6aCIj1CkGb6Aj9rwhx16Cf3vAwFy5pyLhVonXzy51FDpdEblbkdJbUcEPDEFzQ8qNmhzzLTmmKWKbFCXeEuRabp6rxbvAtLF442QjQ+wEA9eL1xSR7Q0JXzlSHjJ4exq89yR0laScJ/FW6z4a73pFMEfDiRZvuvijIt86RaSFOl01riV2mD1UEvxGk/Geg5aWwGki1zgKPG9J2U8PEg8qYvMsZeytiTRXBMslCU8JSlxi8EabjwUldlDNLfzTUmCgxWsjqWCOHavYAqsknKFIO0yQ61VL5AVFxk6WhEaCAkdJgt9aSkzXlKNX2jEa79waYuc7gq0N3GDJGCBhoiTXUEPsdknCUE1CK0fwsiaylSF2uiDyO4XX3pFhNd7R4itFGc0k/ElBZwWvq+GC6szVeEoS/MZ+qylwpKNKv9Z469UOjqCjwlusicyTxG6VpNxcQ8IncoR4RhLbR+NdpGGmJWOcIzJGUuKPGpQg8rrG21dOMqQssJQ4RxH5jaUqnZuQ0F4Q+cjxLwPtpZbIAk3QTJHQWBE5S1BokoVtDd6lhqr9UpHSUxMcIYl9pojsb8h4SBOsMQcqvOWC2E8EVehqiJ1hrrAEbQxeK0NGZ0Gkq+guSRgniM23bIHVkqwx4hiHd7smaOyglyIyQuM978j4VS08J/A2G1KeMBRo4fBaSNhKUEZfQewVQ/C1I+MgfbEleEzCUw7mKXI0M3hd1EESVji8x5uQ41nxs1q4RMJCCXs7Iq9acpxn22oSDnQ/sJTxsCbHIYZiLyhY05TY0ZLIOQrGaSJDDN4t8pVaIrsqqFdEegtizc1iTew5Q4ayBDMUsQMkXocaYkc0hZua412siZ1rSXlR460zRJ5SlHGe5j801RLMlJTxtaOM3Q1pvxJ45zUlWFD7rsAbpfEm1JHxG0eh8w2R7QQVzBUw28FhFp5QZzq8t2rx2joqulYTWSuJdTYfWwqMFMcovFmSyJPNyLhE4E10pHzYjOC3huArRa571ZsGajQpQx38SBP5pyZB6lMU3khDnp0MBV51BE9o2E+TY5Ml2E8S7C0o6w1xvCZjf0HkVEHCzFoyNmqC+9wdcqN+Tp7jSDheE9ws8Y5V0NJCn2bk2tqSY4okdrEhx1iDN8cSudwepWmAGXKcJXK65H9to8jYQRH7SBF01ESUJdd0TayVInaWhLkOjlXE5irKGOnI6GSWGCJa482zBI9rCr0jyTVcEuzriC1vcr6mwFGSiqy5zMwxBH/TJHwjSPhL8+01kaaSUuMFKTcLEvaUePcrSmwn8DZrgikWb7CGPxkSjhQwrRk57tctmxLsb9sZvL9LSlyuSLlWkqOjwduo8b6Uv1DkmudIeFF2dHCgxVtk8dpIvHpBxhEOdhKk7OLIUSdJ+cSRY57B+0DgGUUlNfpthTfGkauzxrvTsUUaCVhlKeteTXCoJDCa2NOKhOmC4G1H8JBd4OBZReSRGkqcb/CO1PyLJTLB4j1q8JYaIutEjSLX8YKM+a6phdMsdLFUoV5RTm9JSkuDN8WcIon0NZMNZWh1q8C7SJEwV5HxrmnnTrf3KoJBlmCYI2ilSLlfEvlE4011NNgjgthzEua0oKK7JLE7HZHlEl60BLMVFewg4EWNt0ThrVNEVkkiTwpKXSWJzdRENgvKGq4IhjsiezgSFtsfCUq8qki5S1LRQeYQQ4nemmCkImWMw3tFUoUBZk4NOeZYEp4XRKTGa6wJjrWNHBVJR4m3FCnbuD6aak2WsMTh3SZImGCIPKNgsDpVwnsa70K31lCFJZYcwwSMFcQulGTsZuEaSdBXkPGZhu0FsdUO73RHjq8MPGGIfaGIbVTk6iuI3GFgucHrIQkmWSJdBd7BBu+uOryWAhY7+Lki9rK5wtEQzWwvtbqGhIMFwWRJsElsY4m9IIg9L6lCX0VklaPAYkfkZEGDnOWowlBJjtMUkcGK4Lg6EtoZInMUBVYLgn0UsdmCyCz7gIGHFfk+k1QwTh5We7A9x+IdJ6CvIkEagms0hR50eH9UnTQJ+2oiKyVlLFUE+8gBGu8MQ3CppUHesnjTHN4QB/UGPhCTHLFPHMFrCqa73gqObUJGa03wgbhHkrCfpEpzNLE7JDS25FMKhlhKKWKfCgqstLCPu1zBXy0J2ztwjtixBu8UTRn9LVtkmCN2iyFhtME70JHRQ1KVZXqKI/KNIKYMCYs1GUMEKbM1bKOI9LDXC7zbHS+bt+1MTWS9odA9DtrYtpbImQJ2VHh/lisEwaHqUk1kjKTAKknkBEXkbkdMGwq0dnhzLJF3NJH3JVwrqOB4Sca2hti75nmJN0WzxS6UxDYoEpxpa4htVlRjkYE7DZGzJVU72uC9IyhQL4i8YfGWSYLLNcHXloyz7QhNifmKSE9JgfGmuyLhc403Xm9vqcp6gXe3xuuv8F6VJNxkyTHEkHG2g0aKXL0MsXc1bGfgas2//dCONXiNLCX+5mB7eZIl1kHh7ajwpikyzlUUWOVOsjSQlsS+M0R+pPje/dzBXRZGO0rMtgQrLLG9VSu9n6CMXS3BhwYmSoIBhsjNBmZbgusE9BCPCP5triU4VhNbJfE+swSP27aayE8tuTpYYjtrYjMVGZdp2NpS1s6aBnKSHDsbKuplKbHM4a0wMFd/5/DmGyKrJSUaW4IBrqUhx0vyfzTBBLPIUcnZdrAkNsKR0sWRspumSns6Ch0v/qqIbBYUWKvPU/CFoyrDJGwSNFhbA/MlzKqjrO80hRbpKx0Jewsi/STftwGSlKc1JZyAzx05dhLEdnfQvhZOqiHWWEAHC7+30FuRcZUgaO5gpaIK+xsiHRUsqaPElTV40xQZQ107Q9BZE1nryDVGU9ZSQ47bmhBpLcYpUt7S+xuK/FiT8qKjwXYw5ypS2iuCv7q1gtgjhuBuB8LCFY5cUuCNtsQOFcT+4Ih9JX+k8Ea6v0iCIRZOtCT0Et00JW5UeC85Cg0ScK0k411HcG1zKtre3SeITBRk7WfwDhEvaYLTHP9le0m8By0JDwn4TlLW/aJOvGHxdjYUes+ScZigCkYQdNdEOhkiezgShqkx8ueKjI8lDfK2oNiOFvrZH1hS+tk7NV7nOmLHicGWEgubkXKdwdtZknCLJXaCpkrjZBtLZFsDP9CdxWsSr05Sxl6CMmoFbCOgryX40uDtamB7SVmXW4Ihlgpmq+00tBKUUa83WbjLUNkzDmY7cow1JDygyPGlhgGKYKz4vcV7QBNbJIgM11TUqZaMdwTeSguH6rOaw1JRKzaaGyxVm2EJ/uCIrVWUcZUkcp2grMsEjK+DMwS59jQk3Kd6SEq1d0S6uVmO4Bc1lDXTUcHjluCXEq+1OlBDj1pi9zgiXxnKuE0SqTXwhqbETW6RggMEnGl/q49UT2iCzgJvRwVXS2K/d6+ZkyUl7jawSVLit46EwxVljDZwoSQ20sDBihztHfk2yA8NVZghiXwrYHQdfKAOtzsayjhY9bY0yE2CWEeJ9xfzO423xhL5syS2TFJofO2pboHob0nY4GiAgRrvGQEDa/FWSsoaaYl0syRsEt3kWoH3B01shCXhTUWe9w3Bt44SC9QCh3eShQctwbaK2ApLroGCMlZrYqvlY3qYhM0aXpFkPOuoqJ3Dm6fxXrGwVF9gCWZagjPqznfkuMKQ8DPTQRO8ZqG1hPGKEm9IgpGW4DZDgTNriTxvFiq+Lz+0cKfp4wj6OCK9JSnzNSn9LFU7UhKZZMnYwcJ8s8yRsECScK4j5UOB95HFO0CzhY4xJxuCix0lDlEUeMdS6EZBkTsUkZ4K74dugyTXS7aNgL8aqjDfkCE0ZbwkCXpaWCKhl8P7VD5jxykivSyxyZrYERbe168LYu9ZYh86IkscgVLE7tWPKmJv11CgoyJltMEbrohtVAQfO4ImltiHEroYEs7RxAarVpY8AwXMcMReFOTYWe5iiLRQxJ5Q8DtJ8LQhWOhIeFESPGsILhbNDRljNbHzNRlTFbk2S3L0NOS6V1KFJYKUbSTcIIhM0wQ/s2TM0SRMNcQmSap3jCH4yhJZKSkwyRHpYYgsFeQ4U7xoCB7VVOExhXepo9ABBsYbvGWKXPME3lyH95YioZ0gssQRWWbI+FaSMkXijZXwgiTlYdPdkNLaETxlyDVIwqeaEus0aTcYcg0RVOkpR3CSJqIddK+90JCxzsDVloyrFd5ZAr4TBKfaWa6boEA7C7s6EpYaeFPjveooY72mjIccLHJ9HUwVlDhKkmutJDJBwnp1rvulJZggKDRfbXAkvC/4l3ozQOG9a8lxjx0i7nV4jSXc7vhe3OwIxjgSHjdEhhsif9YkPGlus3iLFDnWOFhtCZbJg0UbQcIaR67JjthoCyMEZRwhiXWyxO5QxI6w5NhT4U1WsJvDO60J34fW9hwzwlKij6ZAW9ne4L0s8C6XeBMEkd/LQy1VucBRot6QMlbivaBhoBgjqGiCJNhsqVp/S2SsG6DIONCR0dXhvWbJ+MRRZJkkuEjgDXJjFQW6SSL7GXK8Z2CZg7cVsbWGoKmEpzQ5elpiy8Ryg7dMkLLUEauzeO86CuwlSOlgYLojZWeJ9xM3S1PWfEfKl5ISLQ0MEKR8YOB2QfCxJBjrKPCN4f9MkaSsqoVXJBmP7EpFZ9UQfOoOFwSzBN4MQ8LsGrymlipcJQhmy0GaQjPqCHaXRwuCZwRbqK2Fg9wlClZqYicrIgMdZfxTQ0c7TBIbrChxmuzoKG8XRaSrIhhiyNFJkrC7oIAWMEOQa5aBekPCRknCo4IKPrYkvCDI8aYmY7WFtprgekcJZ3oLIqssCSMtFbQTJKwXYy3BY5oCh2iKPCpJOE+zRdpYgi6O2KmOAgvVCYaU4ySRek1sgyFhJ403QFHiVEmJHwtybO1gs8Hr5+BETQX3War0qZngYGgtVZtoqd6vFSk/UwdZElYqyjrF4HXUeFspIi9IGKf4j92pKGAdCYMVsbcV3kRF0N+R8LUd5PCsIGWoxDtBkCI0nKofdJQxT+LtZflvuc8Q3CjwWkq8KwUpHzkK/NmSsclCL0nseQdj5FRH5CNHSgtLiW80Of5HU9Hhlsga9bnBq3fEVltKfO5IaSTmGjjc4J0otcP7QsJUSQM8pEj5/wCuUuC2DWz8AAAAAElFTkSuQmCC"); +} diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/base16-dark.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/base16-dark.css new file mode 100644 index 0000000..026a816 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/base16-dark.css @@ -0,0 +1,38 @@ +/* + + Name: Base16 Default Dark + Author: Chris Kempson (http://chriskempson.com) + + CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror) + Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) + +*/ + +.cm-s-base16-dark.CodeMirror { background: #151515; color: #e0e0e0; } +.cm-s-base16-dark div.CodeMirror-selected { background: #303030; } +.cm-s-base16-dark .CodeMirror-line::selection, .cm-s-base16-dark .CodeMirror-line > span::selection, .cm-s-base16-dark .CodeMirror-line > span > span::selection { background: rgba(48, 48, 48, .99); } +.cm-s-base16-dark .CodeMirror-line::-moz-selection, .cm-s-base16-dark .CodeMirror-line > span::-moz-selection, .cm-s-base16-dark .CodeMirror-line > span > span::-moz-selection { background: rgba(48, 48, 48, .99); } +.cm-s-base16-dark .CodeMirror-gutters { background: #151515; border-right: 0px; } +.cm-s-base16-dark .CodeMirror-guttermarker { color: #ac4142; } +.cm-s-base16-dark .CodeMirror-guttermarker-subtle { color: #505050; } +.cm-s-base16-dark .CodeMirror-linenumber { color: #505050; } +.cm-s-base16-dark .CodeMirror-cursor { border-left: 1px solid #b0b0b0; } + +.cm-s-base16-dark span.cm-comment { color: #8f5536; } +.cm-s-base16-dark span.cm-atom { color: #aa759f; } +.cm-s-base16-dark span.cm-number { color: #aa759f; } + +.cm-s-base16-dark span.cm-property, .cm-s-base16-dark span.cm-attribute { color: #90a959; } +.cm-s-base16-dark span.cm-keyword { color: #ac4142; } +.cm-s-base16-dark span.cm-string { color: #f4bf75; } + +.cm-s-base16-dark span.cm-variable { color: #90a959; } +.cm-s-base16-dark span.cm-variable-2 { color: #6a9fb5; } +.cm-s-base16-dark span.cm-def { color: #d28445; } +.cm-s-base16-dark span.cm-bracket { color: #e0e0e0; } +.cm-s-base16-dark span.cm-tag { color: #ac4142; } +.cm-s-base16-dark span.cm-link { color: #aa759f; } +.cm-s-base16-dark span.cm-error { background: #ac4142; color: #b0b0b0; } + +.cm-s-base16-dark .CodeMirror-activeline-background { background: #202020; } +.cm-s-base16-dark .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/base16-light.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/base16-light.css new file mode 100644 index 0000000..474e0ca --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/base16-light.css @@ -0,0 +1,38 @@ +/* + + Name: Base16 Default Light + Author: Chris Kempson (http://chriskempson.com) + + CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror) + Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) + +*/ + +.cm-s-base16-light.CodeMirror { background: #f5f5f5; color: #202020; } +.cm-s-base16-light div.CodeMirror-selected { background: #e0e0e0; } +.cm-s-base16-light .CodeMirror-line::selection, .cm-s-base16-light .CodeMirror-line > span::selection, .cm-s-base16-light .CodeMirror-line > span > span::selection { background: #e0e0e0; } +.cm-s-base16-light .CodeMirror-line::-moz-selection, .cm-s-base16-light .CodeMirror-line > span::-moz-selection, .cm-s-base16-light .CodeMirror-line > span > span::-moz-selection { background: #e0e0e0; } +.cm-s-base16-light .CodeMirror-gutters { background: #f5f5f5; border-right: 0px; } +.cm-s-base16-light .CodeMirror-guttermarker { color: #ac4142; } +.cm-s-base16-light .CodeMirror-guttermarker-subtle { color: #b0b0b0; } +.cm-s-base16-light .CodeMirror-linenumber { color: #b0b0b0; } +.cm-s-base16-light .CodeMirror-cursor { border-left: 1px solid #505050; } + +.cm-s-base16-light span.cm-comment { color: #8f5536; } +.cm-s-base16-light span.cm-atom { color: #aa759f; } +.cm-s-base16-light span.cm-number { color: #aa759f; } + +.cm-s-base16-light span.cm-property, .cm-s-base16-light span.cm-attribute { color: #90a959; } +.cm-s-base16-light span.cm-keyword { color: #ac4142; } +.cm-s-base16-light span.cm-string { color: #f4bf75; } + +.cm-s-base16-light span.cm-variable { color: #90a959; } +.cm-s-base16-light span.cm-variable-2 { color: #6a9fb5; } +.cm-s-base16-light span.cm-def { color: #d28445; } +.cm-s-base16-light span.cm-bracket { color: #202020; } +.cm-s-base16-light span.cm-tag { color: #ac4142; } +.cm-s-base16-light span.cm-link { color: #aa759f; } +.cm-s-base16-light span.cm-error { background: #ac4142; color: #505050; } + +.cm-s-base16-light .CodeMirror-activeline-background { background: #DDDCDC; } +.cm-s-base16-light .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/bespin.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/bespin.css new file mode 100644 index 0000000..60913ba --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/bespin.css @@ -0,0 +1,34 @@ +/* + + Name: Bespin + Author: Mozilla / Jan T. Sott + + CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror) + Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) + +*/ + +.cm-s-bespin.CodeMirror {background: #28211c; color: #9d9b97;} +.cm-s-bespin div.CodeMirror-selected {background: #36312e !important;} +.cm-s-bespin .CodeMirror-gutters {background: #28211c; border-right: 0px;} +.cm-s-bespin .CodeMirror-linenumber {color: #666666;} +.cm-s-bespin .CodeMirror-cursor {border-left: 1px solid #797977 !important;} + +.cm-s-bespin span.cm-comment {color: #937121;} +.cm-s-bespin span.cm-atom {color: #9b859d;} +.cm-s-bespin span.cm-number {color: #9b859d;} + +.cm-s-bespin span.cm-property, .cm-s-bespin span.cm-attribute {color: #54be0d;} +.cm-s-bespin span.cm-keyword {color: #cf6a4c;} +.cm-s-bespin span.cm-string {color: #f9ee98;} + +.cm-s-bespin span.cm-variable {color: #54be0d;} +.cm-s-bespin span.cm-variable-2 {color: #5ea6ea;} +.cm-s-bespin span.cm-def {color: #cf7d34;} +.cm-s-bespin span.cm-error {background: #cf6a4c; color: #797977;} +.cm-s-bespin span.cm-bracket {color: #9d9b97;} +.cm-s-bespin span.cm-tag {color: #cf6a4c;} +.cm-s-bespin span.cm-link {color: #9b859d;} + +.cm-s-bespin .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;} +.cm-s-bespin .CodeMirror-activeline-background { background: #404040; } diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/blackboard.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/blackboard.css new file mode 100644 index 0000000..b6eaedb --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/blackboard.css @@ -0,0 +1,32 @@ +/* Port of TextMate's Blackboard theme */ + +.cm-s-blackboard.CodeMirror { background: #0C1021; color: #F8F8F8; } +.cm-s-blackboard div.CodeMirror-selected { background: #253B76; } +.cm-s-blackboard .CodeMirror-line::selection, .cm-s-blackboard .CodeMirror-line > span::selection, .cm-s-blackboard .CodeMirror-line > span > span::selection { background: rgba(37, 59, 118, .99); } +.cm-s-blackboard .CodeMirror-line::-moz-selection, .cm-s-blackboard .CodeMirror-line > span::-moz-selection, .cm-s-blackboard .CodeMirror-line > span > span::-moz-selection { background: rgba(37, 59, 118, .99); } +.cm-s-blackboard .CodeMirror-gutters { background: #0C1021; border-right: 0; } +.cm-s-blackboard .CodeMirror-guttermarker { color: #FBDE2D; } +.cm-s-blackboard .CodeMirror-guttermarker-subtle { color: #888; } +.cm-s-blackboard .CodeMirror-linenumber { color: #888; } +.cm-s-blackboard .CodeMirror-cursor { border-left: 1px solid #A7A7A7; } + +.cm-s-blackboard .cm-keyword { color: #FBDE2D; } +.cm-s-blackboard .cm-atom { color: #D8FA3C; } +.cm-s-blackboard .cm-number { color: #D8FA3C; } +.cm-s-blackboard .cm-def { color: #8DA6CE; } +.cm-s-blackboard .cm-variable { color: #FF6400; } +.cm-s-blackboard .cm-operator { color: #FBDE2D; } +.cm-s-blackboard .cm-comment { color: #AEAEAE; } +.cm-s-blackboard .cm-string { color: #61CE3C; } +.cm-s-blackboard .cm-string-2 { color: #61CE3C; } +.cm-s-blackboard .cm-meta { color: #D8FA3C; } +.cm-s-blackboard .cm-builtin { color: #8DA6CE; } +.cm-s-blackboard .cm-tag { color: #8DA6CE; } +.cm-s-blackboard .cm-attribute { color: #8DA6CE; } +.cm-s-blackboard .cm-header { color: #FF6400; } +.cm-s-blackboard .cm-hr { color: #AEAEAE; } +.cm-s-blackboard .cm-link { color: #8DA6CE; } +.cm-s-blackboard .cm-error { background: #9D1E15; color: #F8F8F8; } + +.cm-s-blackboard .CodeMirror-activeline-background { background: #3C3636; } +.cm-s-blackboard .CodeMirror-matchingbracket { outline:1px solid grey;color:white !important; } diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/cobalt.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/cobalt.css new file mode 100644 index 0000000..d88223e --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/cobalt.css @@ -0,0 +1,25 @@ +.cm-s-cobalt.CodeMirror { background: #002240; color: white; } +.cm-s-cobalt div.CodeMirror-selected { background: #b36539; } +.cm-s-cobalt .CodeMirror-line::selection, .cm-s-cobalt .CodeMirror-line > span::selection, .cm-s-cobalt .CodeMirror-line > span > span::selection { background: rgba(179, 101, 57, .99); } +.cm-s-cobalt .CodeMirror-line::-moz-selection, .cm-s-cobalt .CodeMirror-line > span::-moz-selection, .cm-s-cobalt .CodeMirror-line > span > span::-moz-selection { background: rgba(179, 101, 57, .99); } +.cm-s-cobalt .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; } +.cm-s-cobalt .CodeMirror-guttermarker { color: #ffee80; } +.cm-s-cobalt .CodeMirror-guttermarker-subtle { color: #d0d0d0; } +.cm-s-cobalt .CodeMirror-linenumber { color: #d0d0d0; } +.cm-s-cobalt .CodeMirror-cursor { border-left: 1px solid white; } + +.cm-s-cobalt span.cm-comment { color: #08f; } +.cm-s-cobalt span.cm-atom { color: #845dc4; } +.cm-s-cobalt span.cm-number, .cm-s-cobalt span.cm-attribute { color: #ff80e1; } +.cm-s-cobalt span.cm-keyword { color: #ffee80; } +.cm-s-cobalt span.cm-string { color: #3ad900; } +.cm-s-cobalt span.cm-meta { color: #ff9d00; } +.cm-s-cobalt span.cm-variable-2, .cm-s-cobalt span.cm-tag { color: #9effff; } +.cm-s-cobalt span.cm-variable-3, .cm-s-cobalt span.cm-def { color: white; } +.cm-s-cobalt span.cm-bracket { color: #d8d8d8; } +.cm-s-cobalt span.cm-builtin, .cm-s-cobalt span.cm-special { color: #ff9e59; } +.cm-s-cobalt span.cm-link { color: #845dc4; } +.cm-s-cobalt span.cm-error { color: #9d1e15; } + +.cm-s-cobalt .CodeMirror-activeline-background { background: #002D57; } +.cm-s-cobalt .CodeMirror-matchingbracket { outline:1px solid grey;color:white !important; } diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/colorforth.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/colorforth.css new file mode 100644 index 0000000..606899f --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/colorforth.css @@ -0,0 +1,33 @@ +.cm-s-colorforth.CodeMirror { background: #000000; color: #f8f8f8; } +.cm-s-colorforth .CodeMirror-gutters { background: #0a001f; border-right: 1px solid #aaa; } +.cm-s-colorforth .CodeMirror-guttermarker { color: #FFBD40; } +.cm-s-colorforth .CodeMirror-guttermarker-subtle { color: #78846f; } +.cm-s-colorforth .CodeMirror-linenumber { color: #bababa; } +.cm-s-colorforth .CodeMirror-cursor { border-left: 1px solid white; } + +.cm-s-colorforth span.cm-comment { color: #ededed; } +.cm-s-colorforth span.cm-def { color: #ff1c1c; font-weight:bold; } +.cm-s-colorforth span.cm-keyword { color: #ffd900; } +.cm-s-colorforth span.cm-builtin { color: #00d95a; } +.cm-s-colorforth span.cm-variable { color: #73ff00; } +.cm-s-colorforth span.cm-string { color: #007bff; } +.cm-s-colorforth span.cm-number { color: #00c4ff; } +.cm-s-colorforth span.cm-atom { color: #606060; } + +.cm-s-colorforth span.cm-variable-2 { color: #EEE; } +.cm-s-colorforth span.cm-variable-3 { color: #DDD; } +.cm-s-colorforth span.cm-property {} +.cm-s-colorforth span.cm-operator {} + +.cm-s-colorforth span.cm-meta { color: yellow; } +.cm-s-colorforth span.cm-qualifier { color: #FFF700; } +.cm-s-colorforth span.cm-bracket { color: #cc7; } +.cm-s-colorforth span.cm-tag { color: #FFBD40; } +.cm-s-colorforth span.cm-attribute { color: #FFF700; } +.cm-s-colorforth span.cm-error { color: #f00; } + +.cm-s-colorforth div.CodeMirror-selected { background: #333d53; } + +.cm-s-colorforth span.cm-compilation { background: rgba(255, 255, 255, 0.12); } + +.cm-s-colorforth .CodeMirror-activeline-background { background: #253540; } diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/dracula.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/dracula.css new file mode 100644 index 0000000..57f979a --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/dracula.css @@ -0,0 +1,41 @@ +/* + + Name: dracula + Author: Michael Kaminsky (http://github.com/mkaminsky11) + + Original dracula color scheme by Zeno Rocha (https://github.com/zenorocha/dracula-theme) + +*/ + + +.cm-s-dracula.CodeMirror, .cm-s-dracula .CodeMirror-gutters { + background-color: #282a36 !important; + color: #f8f8f2 !important; + border: none; +} +.cm-s-dracula .CodeMirror-gutters { color: #282a36; } +.cm-s-dracula .CodeMirror-cursor { border-left: solid thin #f8f8f0; } +.cm-s-dracula .CodeMirror-linenumber { color: #6D8A88; } +.cm-s-dracula.CodeMirror-focused div.CodeMirror-selected { background: rgba(255, 255, 255, 0.10); } +.cm-s-dracula .CodeMirror-line::selection, .cm-s-dracula .CodeMirror-line > span::selection, .cm-s-dracula .CodeMirror-line > span > span::selection { background: rgba(255, 255, 255, 0.10); } +.cm-s-dracula .CodeMirror-line::-moz-selection, .cm-s-dracula .CodeMirror-line > span::-moz-selection, .cm-s-dracula .CodeMirror-line > span > span::-moz-selection { background: rgba(255, 255, 255, 0.10); } +.cm-s-dracula span.cm-comment { color: #6272a4; } +.cm-s-dracula span.cm-string, .cm-s-dracula span.cm-string-2 { color: #f1fa8c; } +.cm-s-dracula span.cm-number { color: #bd93f9; } +.cm-s-dracula span.cm-variable { color: #50fa7b; } +.cm-s-dracula span.cm-variable-2 { color: white; } +.cm-s-dracula span.cm-def { color: #ffb86c; } +.cm-s-dracula span.cm-keyword { color: #ff79c6; } +.cm-s-dracula span.cm-operator { color: #ff79c6; } +.cm-s-dracula span.cm-keyword { color: #ff79c6; } +.cm-s-dracula span.cm-atom { color: #bd93f9; } +.cm-s-dracula span.cm-meta { color: #f8f8f2; } +.cm-s-dracula span.cm-tag { color: #ff79c6; } +.cm-s-dracula span.cm-attribute { color: #50fa7b; } +.cm-s-dracula span.cm-qualifier { color: #50fa7b; } +.cm-s-dracula span.cm-property { color: #66d9ef; } +.cm-s-dracula span.cm-builtin { color: #50fa7b; } +.cm-s-dracula span.cm-variable-3 { color: #50fa7b; } + +.cm-s-dracula .CodeMirror-activeline-background { background: rgba(255,255,255,0.1); } +.cm-s-dracula .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/eclipse.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/eclipse.css new file mode 100644 index 0000000..1bde460 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/eclipse.css @@ -0,0 +1,23 @@ +.cm-s-eclipse span.cm-meta { color: #FF1717; } +.cm-s-eclipse span.cm-keyword { line-height: 1em; font-weight: bold; color: #7F0055; } +.cm-s-eclipse span.cm-atom { color: #219; } +.cm-s-eclipse span.cm-number { color: #164; } +.cm-s-eclipse span.cm-def { color: #00f; } +.cm-s-eclipse span.cm-variable { color: black; } +.cm-s-eclipse span.cm-variable-2 { color: #0000C0; } +.cm-s-eclipse span.cm-variable-3 { color: #0000C0; } +.cm-s-eclipse span.cm-property { color: black; } +.cm-s-eclipse span.cm-operator { color: black; } +.cm-s-eclipse span.cm-comment { color: #3F7F5F; } +.cm-s-eclipse span.cm-string { color: #2A00FF; } +.cm-s-eclipse span.cm-string-2 { color: #f50; } +.cm-s-eclipse span.cm-qualifier { color: #555; } +.cm-s-eclipse span.cm-builtin { color: #30a; } +.cm-s-eclipse span.cm-bracket { color: #cc7; } +.cm-s-eclipse span.cm-tag { color: #170; } +.cm-s-eclipse span.cm-attribute { color: #00c; } +.cm-s-eclipse span.cm-link { color: #219; } +.cm-s-eclipse span.cm-error { color: #f00; } + +.cm-s-eclipse .CodeMirror-activeline-background { background: #e8f2ff; } +.cm-s-eclipse .CodeMirror-matchingbracket { outline:1px solid grey; color:black !important; } diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/elegant.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/elegant.css new file mode 100644 index 0000000..45b3ea6 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/elegant.css @@ -0,0 +1,13 @@ +.cm-s-elegant span.cm-number, .cm-s-elegant span.cm-string, .cm-s-elegant span.cm-atom { color: #762; } +.cm-s-elegant span.cm-comment { color: #262; font-style: italic; line-height: 1em; } +.cm-s-elegant span.cm-meta { color: #555; font-style: italic; line-height: 1em; } +.cm-s-elegant span.cm-variable { color: black; } +.cm-s-elegant span.cm-variable-2 { color: #b11; } +.cm-s-elegant span.cm-qualifier { color: #555; } +.cm-s-elegant span.cm-keyword { color: #730; } +.cm-s-elegant span.cm-builtin { color: #30a; } +.cm-s-elegant span.cm-link { color: #762; } +.cm-s-elegant span.cm-error { background-color: #fdd; } + +.cm-s-elegant .CodeMirror-activeline-background { background: #e8f2ff; } +.cm-s-elegant .CodeMirror-matchingbracket { outline:1px solid grey; color:black !important; } diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/erlang-dark.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/erlang-dark.css new file mode 100644 index 0000000..65fe481 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/erlang-dark.css @@ -0,0 +1,34 @@ +.cm-s-erlang-dark.CodeMirror { background: #002240; color: white; } +.cm-s-erlang-dark div.CodeMirror-selected { background: #b36539; } +.cm-s-erlang-dark .CodeMirror-line::selection, .cm-s-erlang-dark .CodeMirror-line > span::selection, .cm-s-erlang-dark .CodeMirror-line > span > span::selection { background: rgba(179, 101, 57, .99); } +.cm-s-erlang-dark .CodeMirror-line::-moz-selection, .cm-s-erlang-dark .CodeMirror-line > span::-moz-selection, .cm-s-erlang-dark .CodeMirror-line > span > span::-moz-selection { background: rgba(179, 101, 57, .99); } +.cm-s-erlang-dark .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; } +.cm-s-erlang-dark .CodeMirror-guttermarker { color: white; } +.cm-s-erlang-dark .CodeMirror-guttermarker-subtle { color: #d0d0d0; } +.cm-s-erlang-dark .CodeMirror-linenumber { color: #d0d0d0; } +.cm-s-erlang-dark .CodeMirror-cursor { border-left: 1px solid white; } + +.cm-s-erlang-dark span.cm-quote { color: #ccc; } +.cm-s-erlang-dark span.cm-atom { color: #f133f1; } +.cm-s-erlang-dark span.cm-attribute { color: #ff80e1; } +.cm-s-erlang-dark span.cm-bracket { color: #ff9d00; } +.cm-s-erlang-dark span.cm-builtin { color: #eaa; } +.cm-s-erlang-dark span.cm-comment { color: #77f; } +.cm-s-erlang-dark span.cm-def { color: #e7a; } +.cm-s-erlang-dark span.cm-keyword { color: #ffee80; } +.cm-s-erlang-dark span.cm-meta { color: #50fefe; } +.cm-s-erlang-dark span.cm-number { color: #ffd0d0; } +.cm-s-erlang-dark span.cm-operator { color: #d55; } +.cm-s-erlang-dark span.cm-property { color: #ccc; } +.cm-s-erlang-dark span.cm-qualifier { color: #ccc; } +.cm-s-erlang-dark span.cm-special { color: #ffbbbb; } +.cm-s-erlang-dark span.cm-string { color: #3ad900; } +.cm-s-erlang-dark span.cm-string-2 { color: #ccc; } +.cm-s-erlang-dark span.cm-tag { color: #9effff; } +.cm-s-erlang-dark span.cm-variable { color: #50fe50; } +.cm-s-erlang-dark span.cm-variable-2 { color: #e0e; } +.cm-s-erlang-dark span.cm-variable-3 { color: #ccc; } +.cm-s-erlang-dark span.cm-error { color: #9d1e15; } + +.cm-s-erlang-dark .CodeMirror-activeline-background { background: #013461; } +.cm-s-erlang-dark .CodeMirror-matchingbracket { outline:1px solid grey; color:white !important; } diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/hopscotch.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/hopscotch.css new file mode 100644 index 0000000..7d05431 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/hopscotch.css @@ -0,0 +1,34 @@ +/* + + Name: Hopscotch + Author: Jan T. Sott + + CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror) + Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) + +*/ + +.cm-s-hopscotch.CodeMirror {background: #322931; color: #d5d3d5;} +.cm-s-hopscotch div.CodeMirror-selected {background: #433b42 !important;} +.cm-s-hopscotch .CodeMirror-gutters {background: #322931; border-right: 0px;} +.cm-s-hopscotch .CodeMirror-linenumber {color: #797379;} +.cm-s-hopscotch .CodeMirror-cursor {border-left: 1px solid #989498 !important;} + +.cm-s-hopscotch span.cm-comment {color: #b33508;} +.cm-s-hopscotch span.cm-atom {color: #c85e7c;} +.cm-s-hopscotch span.cm-number {color: #c85e7c;} + +.cm-s-hopscotch span.cm-property, .cm-s-hopscotch span.cm-attribute {color: #8fc13e;} +.cm-s-hopscotch span.cm-keyword {color: #dd464c;} +.cm-s-hopscotch span.cm-string {color: #fdcc59;} + +.cm-s-hopscotch span.cm-variable {color: #8fc13e;} +.cm-s-hopscotch span.cm-variable-2 {color: #1290bf;} +.cm-s-hopscotch span.cm-def {color: #fd8b19;} +.cm-s-hopscotch span.cm-error {background: #dd464c; color: #989498;} +.cm-s-hopscotch span.cm-bracket {color: #d5d3d5;} +.cm-s-hopscotch span.cm-tag {color: #dd464c;} +.cm-s-hopscotch span.cm-link {color: #c85e7c;} + +.cm-s-hopscotch .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;} +.cm-s-hopscotch .CodeMirror-activeline-background { background: #302020; } diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/icecoder.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/icecoder.css new file mode 100644 index 0000000..ffebaf2 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/icecoder.css @@ -0,0 +1,43 @@ +/* +ICEcoder default theme by Matt Pass, used in code editor available at https://icecoder.net +*/ + +.cm-s-icecoder { color: #666; background: #1d1d1b; } + +.cm-s-icecoder span.cm-keyword { color: #eee; font-weight:bold; } /* off-white 1 */ +.cm-s-icecoder span.cm-atom { color: #e1c76e; } /* yellow */ +.cm-s-icecoder span.cm-number { color: #6cb5d9; } /* blue */ +.cm-s-icecoder span.cm-def { color: #b9ca4a; } /* green */ + +.cm-s-icecoder span.cm-variable { color: #6cb5d9; } /* blue */ +.cm-s-icecoder span.cm-variable-2 { color: #cc1e5c; } /* pink */ +.cm-s-icecoder span.cm-variable-3 { color: #f9602c; } /* orange */ + +.cm-s-icecoder span.cm-property { color: #eee; } /* off-white 1 */ +.cm-s-icecoder span.cm-operator { color: #9179bb; } /* purple */ +.cm-s-icecoder span.cm-comment { color: #97a3aa; } /* grey-blue */ + +.cm-s-icecoder span.cm-string { color: #b9ca4a; } /* green */ +.cm-s-icecoder span.cm-string-2 { color: #6cb5d9; } /* blue */ + +.cm-s-icecoder span.cm-meta { color: #555; } /* grey */ + +.cm-s-icecoder span.cm-qualifier { color: #555; } /* grey */ +.cm-s-icecoder span.cm-builtin { color: #214e7b; } /* bright blue */ +.cm-s-icecoder span.cm-bracket { color: #cc7; } /* grey-yellow */ + +.cm-s-icecoder span.cm-tag { color: #e8e8e8; } /* off-white 2 */ +.cm-s-icecoder span.cm-attribute { color: #099; } /* teal */ + +.cm-s-icecoder span.cm-header { color: #6a0d6a; } /* purple-pink */ +.cm-s-icecoder span.cm-quote { color: #186718; } /* dark green */ +.cm-s-icecoder span.cm-hr { color: #888; } /* mid-grey */ +.cm-s-icecoder span.cm-link { color: #e1c76e; } /* yellow */ +.cm-s-icecoder span.cm-error { color: #d00; } /* red */ + +.cm-s-icecoder .CodeMirror-cursor { border-left: 1px solid white; } +.cm-s-icecoder div.CodeMirror-selected { color: #fff; background: #037; } +.cm-s-icecoder .CodeMirror-gutters { background: #1d1d1b; min-width: 41px; border-right: 0; } +.cm-s-icecoder .CodeMirror-linenumber { color: #555; cursor: default; } +.cm-s-icecoder .CodeMirror-matchingbracket { color: #fff !important; background: #555 !important; } +.cm-s-icecoder .CodeMirror-activeline-background { background: #000; } diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/isotope.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/isotope.css new file mode 100644 index 0000000..d0d6263 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/isotope.css @@ -0,0 +1,34 @@ +/* + + Name: Isotope + Author: David Desandro / Jan T. Sott + + CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror) + Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) + +*/ + +.cm-s-isotope.CodeMirror {background: #000000; color: #e0e0e0;} +.cm-s-isotope div.CodeMirror-selected {background: #404040 !important;} +.cm-s-isotope .CodeMirror-gutters {background: #000000; border-right: 0px;} +.cm-s-isotope .CodeMirror-linenumber {color: #808080;} +.cm-s-isotope .CodeMirror-cursor {border-left: 1px solid #c0c0c0 !important;} + +.cm-s-isotope span.cm-comment {color: #3300ff;} +.cm-s-isotope span.cm-atom {color: #cc00ff;} +.cm-s-isotope span.cm-number {color: #cc00ff;} + +.cm-s-isotope span.cm-property, .cm-s-isotope span.cm-attribute {color: #33ff00;} +.cm-s-isotope span.cm-keyword {color: #ff0000;} +.cm-s-isotope span.cm-string {color: #ff0099;} + +.cm-s-isotope span.cm-variable {color: #33ff00;} +.cm-s-isotope span.cm-variable-2 {color: #0066ff;} +.cm-s-isotope span.cm-def {color: #ff9900;} +.cm-s-isotope span.cm-error {background: #ff0000; color: #c0c0c0;} +.cm-s-isotope span.cm-bracket {color: #e0e0e0;} +.cm-s-isotope span.cm-tag {color: #ff0000;} +.cm-s-isotope span.cm-link {color: #cc00ff;} + +.cm-s-isotope .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;} +.cm-s-isotope .CodeMirror-activeline-background { background: #202020; } diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/lesser-dark.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/lesser-dark.css new file mode 100644 index 0000000..690c183 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/lesser-dark.css @@ -0,0 +1,47 @@ +/* +http://lesscss.org/ dark theme +Ported to CodeMirror by Peter Kroon +*/ +.cm-s-lesser-dark { + line-height: 1.3em; +} +.cm-s-lesser-dark.CodeMirror { background: #262626; color: #EBEFE7; text-shadow: 0 -1px 1px #262626; } +.cm-s-lesser-dark div.CodeMirror-selected { background: #45443B; } /* 33322B*/ +.cm-s-lesser-dark .CodeMirror-line::selection, .cm-s-lesser-dark .CodeMirror-line > span::selection, .cm-s-lesser-dark .CodeMirror-line > span > span::selection { background: rgba(69, 68, 59, .99); } +.cm-s-lesser-dark .CodeMirror-line::-moz-selection, .cm-s-lesser-dark .CodeMirror-line > span::-moz-selection, .cm-s-lesser-dark .CodeMirror-line > span > span::-moz-selection { background: rgba(69, 68, 59, .99); } +.cm-s-lesser-dark .CodeMirror-cursor { border-left: 1px solid white; } +.cm-s-lesser-dark pre { padding: 0 8px; }/*editable code holder*/ + +.cm-s-lesser-dark.CodeMirror span.CodeMirror-matchingbracket { color: #7EFC7E; }/*65FC65*/ + +.cm-s-lesser-dark .CodeMirror-gutters { background: #262626; border-right:1px solid #aaa; } +.cm-s-lesser-dark .CodeMirror-guttermarker { color: #599eff; } +.cm-s-lesser-dark .CodeMirror-guttermarker-subtle { color: #777; } +.cm-s-lesser-dark .CodeMirror-linenumber { color: #777; } + +.cm-s-lesser-dark span.cm-header { color: #a0a; } +.cm-s-lesser-dark span.cm-quote { color: #090; } +.cm-s-lesser-dark span.cm-keyword { color: #599eff; } +.cm-s-lesser-dark span.cm-atom { color: #C2B470; } +.cm-s-lesser-dark span.cm-number { color: #B35E4D; } +.cm-s-lesser-dark span.cm-def { color: white; } +.cm-s-lesser-dark span.cm-variable { color:#D9BF8C; } +.cm-s-lesser-dark span.cm-variable-2 { color: #669199; } +.cm-s-lesser-dark span.cm-variable-3 { color: white; } +.cm-s-lesser-dark span.cm-property { color: #92A75C; } +.cm-s-lesser-dark span.cm-operator { color: #92A75C; } +.cm-s-lesser-dark span.cm-comment { color: #666; } +.cm-s-lesser-dark span.cm-string { color: #BCD279; } +.cm-s-lesser-dark span.cm-string-2 { color: #f50; } +.cm-s-lesser-dark span.cm-meta { color: #738C73; } +.cm-s-lesser-dark span.cm-qualifier { color: #555; } +.cm-s-lesser-dark span.cm-builtin { color: #ff9e59; } +.cm-s-lesser-dark span.cm-bracket { color: #EBEFE7; } +.cm-s-lesser-dark span.cm-tag { color: #669199; } +.cm-s-lesser-dark span.cm-attribute { color: #00c; } +.cm-s-lesser-dark span.cm-hr { color: #999; } +.cm-s-lesser-dark span.cm-link { color: #00c; } +.cm-s-lesser-dark span.cm-error { color: #9d1e15; } + +.cm-s-lesser-dark .CodeMirror-activeline-background { background: #3C3A3A; } +.cm-s-lesser-dark .CodeMirror-matchingbracket { outline:1px solid grey; color:white !important; } diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/liquibyte.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/liquibyte.css new file mode 100644 index 0000000..9db8bde --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/liquibyte.css @@ -0,0 +1,95 @@ +.cm-s-liquibyte.CodeMirror { + background-color: #000; + color: #fff; + line-height: 1.2em; + font-size: 1em; +} +.cm-s-liquibyte .CodeMirror-focused .cm-matchhighlight { + text-decoration: underline; + text-decoration-color: #0f0; + text-decoration-style: wavy; +} +.cm-s-liquibyte .cm-trailingspace { + text-decoration: line-through; + text-decoration-color: #f00; + text-decoration-style: dotted; +} +.cm-s-liquibyte .cm-tab { + text-decoration: line-through; + text-decoration-color: #404040; + text-decoration-style: dotted; +} +.cm-s-liquibyte .CodeMirror-gutters { background-color: #262626; border-right: 1px solid #505050; padding-right: 0.8em; } +.cm-s-liquibyte .CodeMirror-gutter-elt div { font-size: 1.2em; } +.cm-s-liquibyte .CodeMirror-guttermarker { } +.cm-s-liquibyte .CodeMirror-guttermarker-subtle { } +.cm-s-liquibyte .CodeMirror-linenumber { color: #606060; padding-left: 0; } +.cm-s-liquibyte .CodeMirror-cursor { border-left: 1px solid #eee; } + +.cm-s-liquibyte span.cm-comment { color: #008000; } +.cm-s-liquibyte span.cm-def { color: #ffaf40; font-weight: bold; } +.cm-s-liquibyte span.cm-keyword { color: #c080ff; font-weight: bold; } +.cm-s-liquibyte span.cm-builtin { color: #ffaf40; font-weight: bold; } +.cm-s-liquibyte span.cm-variable { color: #5967ff; font-weight: bold; } +.cm-s-liquibyte span.cm-string { color: #ff8000; } +.cm-s-liquibyte span.cm-number { color: #0f0; font-weight: bold; } +.cm-s-liquibyte span.cm-atom { color: #bf3030; font-weight: bold; } + +.cm-s-liquibyte span.cm-variable-2 { color: #007f7f; font-weight: bold; } +.cm-s-liquibyte span.cm-variable-3 { color: #c080ff; font-weight: bold; } +.cm-s-liquibyte span.cm-property { color: #999; font-weight: bold; } +.cm-s-liquibyte span.cm-operator { color: #fff; } + +.cm-s-liquibyte span.cm-meta { color: #0f0; } +.cm-s-liquibyte span.cm-qualifier { color: #fff700; font-weight: bold; } +.cm-s-liquibyte span.cm-bracket { color: #cc7; } +.cm-s-liquibyte span.cm-tag { color: #ff0; font-weight: bold; } +.cm-s-liquibyte span.cm-attribute { color: #c080ff; font-weight: bold; } +.cm-s-liquibyte span.cm-error { color: #f00; } + +.cm-s-liquibyte div.CodeMirror-selected { background-color: rgba(255, 0, 0, 0.25); } + +.cm-s-liquibyte span.cm-compilation { background-color: rgba(255, 255, 255, 0.12); } + +.cm-s-liquibyte .CodeMirror-activeline-background { background-color: rgba(0, 255, 0, 0.15); } + +/* Default styles for common addons */ +.cm-s-liquibyte .CodeMirror span.CodeMirror-matchingbracket { color: #0f0; font-weight: bold; } +.cm-s-liquibyte .CodeMirror span.CodeMirror-nonmatchingbracket { color: #f00; font-weight: bold; } +.CodeMirror-matchingtag { background-color: rgba(150, 255, 0, .3); } +/* Scrollbars */ +/* Simple */ +.cm-s-liquibyte div.CodeMirror-simplescroll-horizontal div:hover, div.CodeMirror-simplescroll-vertical div:hover { + background-color: rgba(80, 80, 80, .7); +} +.cm-s-liquibyte div.CodeMirror-simplescroll-horizontal div, div.CodeMirror-simplescroll-vertical div { + background-color: rgba(80, 80, 80, .3); + border: 1px solid #404040; + border-radius: 5px; +} +.cm-s-liquibyte div.CodeMirror-simplescroll-vertical div { + border-top: 1px solid #404040; + border-bottom: 1px solid #404040; +} +.cm-s-liquibyte div.CodeMirror-simplescroll-horizontal div { + border-left: 1px solid #404040; + border-right: 1px solid #404040; +} +.cm-s-liquibyte div.CodeMirror-simplescroll-vertical { + background-color: #262626; +} +.cm-s-liquibyte div.CodeMirror-simplescroll-horizontal { + background-color: #262626; + border-top: 1px solid #404040; +} +/* Overlay */ +.cm-s-liquibyte div.CodeMirror-overlayscroll-horizontal div, div.CodeMirror-overlayscroll-vertical div { + background-color: #404040; + border-radius: 5px; +} +.cm-s-liquibyte div.CodeMirror-overlayscroll-vertical div { + border: 1px solid #404040; +} +.cm-s-liquibyte div.CodeMirror-overlayscroll-horizontal div { + border: 1px solid #404040; +} diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/material.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/material.css new file mode 100644 index 0000000..91ed6ce --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/material.css @@ -0,0 +1,53 @@ +/* + + Name: material + Author: Michael Kaminsky (http://github.com/mkaminsky11) + + Original material color scheme by Mattia Astorino (https://github.com/equinusocio/material-theme) + +*/ + +.cm-s-material { + background-color: #263238; + color: rgba(233, 237, 237, 1); +} +.cm-s-material .CodeMirror-gutters { + background: #263238; + color: rgb(83,127,126); + border: none; +} +.cm-s-material .CodeMirror-guttermarker, .cm-s-material .CodeMirror-guttermarker-subtle, .cm-s-material .CodeMirror-linenumber { color: rgb(83,127,126); } +.cm-s-material .CodeMirror-cursor { border-left: 1px solid #f8f8f0; } +.cm-s-material div.CodeMirror-selected { background: rgba(255, 255, 255, 0.15); } +.cm-s-material.CodeMirror-focused div.CodeMirror-selected { background: rgba(255, 255, 255, 0.10); } +.cm-s-material .CodeMirror-line::selection, .cm-s-material .CodeMirror-line > span::selection, .cm-s-material .CodeMirror-line > span > span::selection { background: rgba(255, 255, 255, 0.10); } +.cm-s-material .CodeMirror-line::-moz-selection, .cm-s-material .CodeMirror-line > span::-moz-selection, .cm-s-material .CodeMirror-line > span > span::-moz-selection { background: rgba(255, 255, 255, 0.10); } + +.cm-s-material .CodeMirror-activeline-background { background: rgba(0, 0, 0, 0); } +.cm-s-material .cm-keyword { color: rgba(199, 146, 234, 1); } +.cm-s-material .cm-operator { color: rgba(233, 237, 237, 1); } +.cm-s-material .cm-variable-2 { color: #80CBC4; } +.cm-s-material .cm-variable-3 { color: #82B1FF; } +.cm-s-material .cm-builtin { color: #DECB6B; } +.cm-s-material .cm-atom { color: #F77669; } +.cm-s-material .cm-number { color: #F77669; } +.cm-s-material .cm-def { color: rgba(233, 237, 237, 1); } +.cm-s-material .cm-string { color: #C3E88D; } +.cm-s-material .cm-string-2 { color: #80CBC4; } +.cm-s-material .cm-comment { color: #546E7A; } +.cm-s-material .cm-variable { color: #82B1FF; } +.cm-s-material .cm-tag { color: #80CBC4; } +.cm-s-material .cm-meta { color: #80CBC4; } +.cm-s-material .cm-attribute { color: #FFCB6B; } +.cm-s-material .cm-property { color: #80CBAE; } +.cm-s-material .cm-qualifier { color: #DECB6B; } +.cm-s-material .cm-variable-3 { color: #DECB6B; } +.cm-s-material .cm-tag { color: rgba(255, 83, 112, 1); } +.cm-s-material .cm-error { + color: rgba(255, 255, 255, 1.0); + background-color: #EC5F67; +} +.cm-s-material .CodeMirror-matchingbracket { + text-decoration: underline; + color: white !important; +} diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/mbo.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/mbo.css new file mode 100644 index 0000000..e164fcf --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/mbo.css @@ -0,0 +1,37 @@ +/****************************************************************/ +/* Based on mbonaci's Brackets mbo theme */ +/* https://github.com/mbonaci/global/blob/master/Mbo.tmTheme */ +/* Create your own: http://tmtheme-editor.herokuapp.com */ +/****************************************************************/ + +.cm-s-mbo.CodeMirror { background: #2c2c2c; color: #ffffec; } +.cm-s-mbo div.CodeMirror-selected { background: #716C62; } +.cm-s-mbo .CodeMirror-line::selection, .cm-s-mbo .CodeMirror-line > span::selection, .cm-s-mbo .CodeMirror-line > span > span::selection { background: rgba(113, 108, 98, .99); } +.cm-s-mbo .CodeMirror-line::-moz-selection, .cm-s-mbo .CodeMirror-line > span::-moz-selection, .cm-s-mbo .CodeMirror-line > span > span::-moz-selection { background: rgba(113, 108, 98, .99); } +.cm-s-mbo .CodeMirror-gutters { background: #4e4e4e; border-right: 0px; } +.cm-s-mbo .CodeMirror-guttermarker { color: white; } +.cm-s-mbo .CodeMirror-guttermarker-subtle { color: grey; } +.cm-s-mbo .CodeMirror-linenumber { color: #dadada; } +.cm-s-mbo .CodeMirror-cursor { border-left: 1px solid #ffffec; } + +.cm-s-mbo span.cm-comment { color: #95958a; } +.cm-s-mbo span.cm-atom { color: #00a8c6; } +.cm-s-mbo span.cm-number { color: #00a8c6; } + +.cm-s-mbo span.cm-property, .cm-s-mbo span.cm-attribute { color: #9ddfe9; } +.cm-s-mbo span.cm-keyword { color: #ffb928; } +.cm-s-mbo span.cm-string { color: #ffcf6c; } +.cm-s-mbo span.cm-string.cm-property { color: #ffffec; } + +.cm-s-mbo span.cm-variable { color: #ffffec; } +.cm-s-mbo span.cm-variable-2 { color: #00a8c6; } +.cm-s-mbo span.cm-def { color: #ffffec; } +.cm-s-mbo span.cm-bracket { color: #fffffc; font-weight: bold; } +.cm-s-mbo span.cm-tag { color: #9ddfe9; } +.cm-s-mbo span.cm-link { color: #f54b07; } +.cm-s-mbo span.cm-error { border-bottom: #636363; color: #ffffec; } +.cm-s-mbo span.cm-qualifier { color: #ffffec; } + +.cm-s-mbo .CodeMirror-activeline-background { background: #494b41; } +.cm-s-mbo .CodeMirror-matchingbracket { color: #ffb928 !important; } +.cm-s-mbo .CodeMirror-matchingtag { background: rgba(255, 255, 255, .37); } diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/mdn-like.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/mdn-like.css new file mode 100644 index 0000000..f325d45 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/mdn-like.css @@ -0,0 +1,46 @@ +/* + MDN-LIKE Theme - Mozilla + Ported to CodeMirror by Peter Kroon <plakroon@gmail.com> + Report bugs/issues here: https://github.com/codemirror/CodeMirror/issues + GitHub: @peterkroon + + The mdn-like theme is inspired on the displayed code examples at: https://developer.mozilla.org/en-US/docs/Web/CSS/animation + +*/ +.cm-s-mdn-like.CodeMirror { color: #999; background-color: #fff; } +.cm-s-mdn-like div.CodeMirror-selected { background: #cfc; } +.cm-s-mdn-like .CodeMirror-line::selection, .cm-s-mdn-like .CodeMirror-line > span::selection, .cm-s-mdn-like .CodeMirror-line > span > span::selection { background: #cfc; } +.cm-s-mdn-like .CodeMirror-line::-moz-selection, .cm-s-mdn-like .CodeMirror-line > span::-moz-selection, .cm-s-mdn-like .CodeMirror-line > span > span::-moz-selection { background: #cfc; } + +.cm-s-mdn-like .CodeMirror-gutters { background: #f8f8f8; border-left: 6px solid rgba(0,83,159,0.65); color: #333; } +.cm-s-mdn-like .CodeMirror-linenumber { color: #aaa; padding-left: 8px; } +.cm-s-mdn-like .CodeMirror-cursor { border-left: 2px solid #222; } + +.cm-s-mdn-like .cm-keyword { color: #6262FF; } +.cm-s-mdn-like .cm-atom { color: #F90; } +.cm-s-mdn-like .cm-number { color: #ca7841; } +.cm-s-mdn-like .cm-def { color: #8DA6CE; } +.cm-s-mdn-like span.cm-variable-2, .cm-s-mdn-like span.cm-tag { color: #690; } +.cm-s-mdn-like span.cm-variable-3, .cm-s-mdn-like span.cm-def { color: #07a; } + +.cm-s-mdn-like .cm-variable { color: #07a; } +.cm-s-mdn-like .cm-property { color: #905; } +.cm-s-mdn-like .cm-qualifier { color: #690; } + +.cm-s-mdn-like .cm-operator { color: #cda869; } +.cm-s-mdn-like .cm-comment { color:#777; font-weight:normal; } +.cm-s-mdn-like .cm-string { color:#07a; font-style:italic; } +.cm-s-mdn-like .cm-string-2 { color:#bd6b18; } /*?*/ +.cm-s-mdn-like .cm-meta { color: #000; } /*?*/ +.cm-s-mdn-like .cm-builtin { color: #9B7536; } /*?*/ +.cm-s-mdn-like .cm-tag { color: #997643; } +.cm-s-mdn-like .cm-attribute { color: #d6bb6d; } /*?*/ +.cm-s-mdn-like .cm-header { color: #FF6400; } +.cm-s-mdn-like .cm-hr { color: #AEAEAE; } +.cm-s-mdn-like .cm-link { color:#ad9361; font-style:italic; text-decoration:none; } +.cm-s-mdn-like .cm-error { border-bottom: 1px solid red; } + +div.cm-s-mdn-like .CodeMirror-activeline-background { background: #efefff; } +div.cm-s-mdn-like span.CodeMirror-matchingbracket { outline:1px solid grey; color: inherit; } + +.cm-s-mdn-like.CodeMirror { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFcAAAAyCAYAAAAp8UeFAAAHvklEQVR42s2b63bcNgyEQZCSHCdt2vd/0tWF7I+Q6XgMXiTtuvU5Pl57ZQKkKHzEAOtF5KeIJBGJ8uvL599FRFREZhFx8DeXv8trn68RuGaC8TRfo3SNp9dlDDHedyLyTUTeRWStXKPZrjtpZxaRw5hPqozRs1N8/enzIiQRWcCgy4MUA0f+XWliDhyL8Lfyvx7ei/Ae3iQFHyw7U/59pQVIMEEPEz0G7XiwdRjzSfC3UTtz9vchIntxvry5iMgfIhJoEflOz2CQr3F5h/HfeFe+GTdLaKcu9L8LTeQb/R/7GgbsfKedyNdoHsN31uRPWrfZ5wsj/NzzRQHuToIdU3ahwnsKPxXCjJITuOsi7XLc7SG/v5GdALs7wf8JjTFiB5+QvTEfRyGOfX3Lrx8wxyQi3sNq46O7QahQiCsRFgqddjBouVEHOKDgXAQHD9gJCr5sMKkEdjwsarG/ww3BMHBU7OBjXnzdyY7SfCxf5/z6ATccrwlKuwC/jhznnPF4CgVzhhVf4xp2EixcBActO75iZ8/fM9zAs2OMzKdslgXWJ9XG8PQoOAMA5fGcsvORgv0doBXyHrCwfLJAOwo71QLNkb8n2Pl6EWiR7OCibtkPaz4Kc/0NNAze2gju3zOwekALDaCFPI5vjPFmgGY5AZqyGEvH1x7QfIb8YtxMnA/b+QQ0aQDAwc6JMFg8CbQZ4qoYEEHbRwNojuK3EHwd7VALSgq+MNDKzfT58T8qdpADrgW0GmgcAS1lhzztJmkAzcPNOQbsWEALBDSlMKUG0Eq4CLAQWvEVQ9WU57gZJwZtgPO3r9oBTQ9WO8TjqXINx8R0EYpiZEUWOF3FxkbJkgU9B2f41YBrIj5ZfsQa0M5kTgiAAqM3ShXLgu8XMqcrQBvJ0CL5pnTsfMB13oB8athpAq2XOQmcGmoACCLydx7nToa23ATaSIY2ichfOdPTGxlasXMLaL0MLZAOwAKIM+y8CmicobGdCcbbK9DzN+yYGVoNNI5iUKTMyYOjPse4A8SM1MmcXgU0toOq1yO/v8FOxlASyc7TgeYaAMBJHcY1CcCwGI/TK4AmDbDyKYBBtFUkRwto8gygiQEaByFgJ00BH2M8JWwQS1nafDXQCidWyOI8AcjDCSjCLk8ngObuAm3JAHAdubAmOaK06V8MNEsKPJOhobSprwQa6gD7DclRQdqcwL4zxqgBrQcabUiBLclRDKAlWp+etPkBaNMA0AKlrHwTdEByZAA4GM+SNluSY6wAzcMNewxmgig5Ks0nkrSpBvSaQHMdKTBAnLojOdYyGpQ254602ZILPdTD1hdlggdIm74jbTp8vDwF5ZYUeLWGJpWsh6XNyXgcYwVoJQTEhhTYkxzZjiU5npU2TaB979TQehlaAVq4kaGpiPwwwLkYUuBbQwocyQTv1tA0+1UFWoJF3iv1oq+qoSk8EQdJmwHkziIF7oOZk14EGitibAdjLYYK78H5vZOhtWpoI0ATGHs0Q8OMb4Ey+2bU2UYztCtA0wFAs7TplGLRVQCcqaFdGSPCeTI1QNIC52iWNzof6Uib7xjEp07mNNoUYmVosVItHrHzRlLgBn9LFyRHaQCtVUMbtTNhoXWiTOO9k/V8BdAc1Oq0ArSQs6/5SU0hckNy9NnXqQY0PGYo5dWJ7nINaN6o958FWin27aBaWRka1r5myvLOAm0j30eBJqCxHLReVclxhxOEN2JfDWjxBtAC7MIH1fVaGdoOp4qJYDgKtKPSFNID2gSnGldrCqkFZ+5UeQXQBIRrSwocbdZYQT/2LwRahBPBXoHrB8nxaGROST62DKUbQOMMzZIC9abkuELfQzQALWTnDNAm8KHWFOJgJ5+SHIvTPcmx1xQyZRhNL5Qci689aXMEaN/uNIWkEwDAvFpOZmgsBaaGnbs1NPa1Jm32gBZAIh1pCtG7TSH4aE0y1uVY4uqoFPisGlpP2rSA5qTecWn5agK6BzSpgAyD+wFaqhnYoSZ1Vwr8CmlTQbrcO3ZaX0NAEyMbYaAlyquFoLKK3SPby9CeVUPThrSJmkCAE0CrKUQadi4DrdSlWhmah0YL9z9vClH59YGbHx1J8VZTyAjQepJjmXwAKTDQI3omc3p1U4gDUf6RfcdYfrUp5ClAi2J3Ba6UOXGo+K+bQrjjssitG2SJzshaLwMtXgRagUNpYYoVkMSBLM+9GGiJZMvduG6DRZ4qc04DMPtQQxOjEtACmhO7K1AbNbQDEggZyJwscFpAGwENhoBeUwh3bWolhe8BTYVKxQEWrSUn/uhcM5KhvUu/+eQu0Lzhi+VrK0PrZZNDQKs9cpYUuFYgMVpD4/NxenJTiMCNqdUEUf1qZWjppLT5qSkkUZbCwkbZMSuVnu80hfSkzRbQeqCZSAh6huR4VtoM2gHAlLf72smuWgE+VV7XpE25Ab2WFDgyhnSuKbs4GuGzCjR+tIoUuMFg3kgcWKLTwRqanJQ2W00hAsenfaApRC42hbCvK1SlE0HtE9BGgneJO+ELamitD1YjjOYnNYVcraGhtKkW0EqVVeDx733I2NH581k1NNxNLG0i0IJ8/NjVaOZ0tYZ2Vtr0Xv7tPV3hkWp9EFkgS/J0vosngTaSoaG06WHi+xObQkaAdlbanP8B2+2l0f90LmUAAAAASUVORK5CYII=); } diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/midnight.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/midnight.css new file mode 100644 index 0000000..e41f105 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/midnight.css @@ -0,0 +1,45 @@ +/* Based on the theme at http://bonsaiden.github.com/JavaScript-Garden */ + +/*<!--match-->*/ +.cm-s-midnight span.CodeMirror-matchhighlight { background: #494949; } +.cm-s-midnight.CodeMirror-focused span.CodeMirror-matchhighlight { background: #314D67 !important; } + +/*<!--activeline-->*/ +.cm-s-midnight .CodeMirror-activeline-background { background: #253540; } + +.cm-s-midnight.CodeMirror { + background: #0F192A; + color: #D1EDFF; +} + +.cm-s-midnight.CodeMirror { border-top: 1px solid black; border-bottom: 1px solid black; } + +.cm-s-midnight div.CodeMirror-selected { background: #314D67; } +.cm-s-midnight .CodeMirror-line::selection, .cm-s-midnight .CodeMirror-line > span::selection, .cm-s-midnight .CodeMirror-line > span > span::selection { background: rgba(49, 77, 103, .99); } +.cm-s-midnight .CodeMirror-line::-moz-selection, .cm-s-midnight .CodeMirror-line > span::-moz-selection, .cm-s-midnight .CodeMirror-line > span > span::-moz-selection { background: rgba(49, 77, 103, .99); } +.cm-s-midnight .CodeMirror-gutters { background: #0F192A; border-right: 1px solid; } +.cm-s-midnight .CodeMirror-guttermarker { color: white; } +.cm-s-midnight .CodeMirror-guttermarker-subtle { color: #d0d0d0; } +.cm-s-midnight .CodeMirror-linenumber { color: #D0D0D0; } +.cm-s-midnight .CodeMirror-cursor { border-left: 1px solid #F8F8F0; } + +.cm-s-midnight span.cm-comment { color: #428BDD; } +.cm-s-midnight span.cm-atom { color: #AE81FF; } +.cm-s-midnight span.cm-number { color: #D1EDFF; } + +.cm-s-midnight span.cm-property, .cm-s-midnight span.cm-attribute { color: #A6E22E; } +.cm-s-midnight span.cm-keyword { color: #E83737; } +.cm-s-midnight span.cm-string { color: #1DC116; } + +.cm-s-midnight span.cm-variable { color: #FFAA3E; } +.cm-s-midnight span.cm-variable-2 { color: #FFAA3E; } +.cm-s-midnight span.cm-def { color: #4DD; } +.cm-s-midnight span.cm-bracket { color: #D1EDFF; } +.cm-s-midnight span.cm-tag { color: #449; } +.cm-s-midnight span.cm-link { color: #AE81FF; } +.cm-s-midnight span.cm-error { background: #F92672; color: #F8F8F0; } + +.cm-s-midnight .CodeMirror-matchingbracket { + text-decoration: underline; + color: white !important; +} diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/monokai.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/monokai.css new file mode 100644 index 0000000..7c8a4c5 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/monokai.css @@ -0,0 +1,36 @@ +/* Based on Sublime Text's Monokai theme */ + +.cm-s-monokai.CodeMirror { background: #272822; color: #f8f8f2; } +.cm-s-monokai div.CodeMirror-selected { background: #49483E; } +.cm-s-monokai .CodeMirror-line::selection, .cm-s-monokai .CodeMirror-line > span::selection, .cm-s-monokai .CodeMirror-line > span > span::selection { background: rgba(73, 72, 62, .99); } +.cm-s-monokai .CodeMirror-line::-moz-selection, .cm-s-monokai .CodeMirror-line > span::-moz-selection, .cm-s-monokai .CodeMirror-line > span > span::-moz-selection { background: rgba(73, 72, 62, .99); } +.cm-s-monokai .CodeMirror-gutters { background: #272822; border-right: 0px; } +.cm-s-monokai .CodeMirror-guttermarker { color: white; } +.cm-s-monokai .CodeMirror-guttermarker-subtle { color: #d0d0d0; } +.cm-s-monokai .CodeMirror-linenumber { color: #d0d0d0; } +.cm-s-monokai .CodeMirror-cursor { border-left: 1px solid #f8f8f0; } + +.cm-s-monokai span.cm-comment { color: #75715e; } +.cm-s-monokai span.cm-atom { color: #ae81ff; } +.cm-s-monokai span.cm-number { color: #ae81ff; } + +.cm-s-monokai span.cm-property, .cm-s-monokai span.cm-attribute { color: #a6e22e; } +.cm-s-monokai span.cm-keyword { color: #f92672; } +.cm-s-monokai span.cm-builtin { color: #66d9ef; } +.cm-s-monokai span.cm-string { color: #e6db74; } + +.cm-s-monokai span.cm-variable { color: #f8f8f2; } +.cm-s-monokai span.cm-variable-2 { color: #9effff; } +.cm-s-monokai span.cm-variable-3 { color: #66d9ef; } +.cm-s-monokai span.cm-def { color: #fd971f; } +.cm-s-monokai span.cm-bracket { color: #f8f8f2; } +.cm-s-monokai span.cm-tag { color: #f92672; } +.cm-s-monokai span.cm-header { color: #ae81ff; } +.cm-s-monokai span.cm-link { color: #ae81ff; } +.cm-s-monokai span.cm-error { background: #f92672; color: #f8f8f0; } + +.cm-s-monokai .CodeMirror-activeline-background { background: #373831; } +.cm-s-monokai .CodeMirror-matchingbracket { + text-decoration: underline; + color: white !important; +} diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/neat.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/neat.css new file mode 100644 index 0000000..4267b1a --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/neat.css @@ -0,0 +1,12 @@ +.cm-s-neat span.cm-comment { color: #a86; } +.cm-s-neat span.cm-keyword { line-height: 1em; font-weight: bold; color: blue; } +.cm-s-neat span.cm-string { color: #a22; } +.cm-s-neat span.cm-builtin { line-height: 1em; font-weight: bold; color: #077; } +.cm-s-neat span.cm-special { line-height: 1em; font-weight: bold; color: #0aa; } +.cm-s-neat span.cm-variable { color: black; } +.cm-s-neat span.cm-number, .cm-s-neat span.cm-atom { color: #3a3; } +.cm-s-neat span.cm-meta { color: #555; } +.cm-s-neat span.cm-link { color: #3a3; } + +.cm-s-neat .CodeMirror-activeline-background { background: #e8f2ff; } +.cm-s-neat .CodeMirror-matchingbracket { outline:1px solid grey; color:black !important; } diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/neo.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/neo.css new file mode 100644 index 0000000..b28d5c6 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/neo.css @@ -0,0 +1,43 @@ +/* neo theme for codemirror */ + +/* Color scheme */ + +.cm-s-neo.CodeMirror { + background-color:#ffffff; + color:#2e383c; + line-height:1.4375; +} +.cm-s-neo .cm-comment { color:#75787b; } +.cm-s-neo .cm-keyword, .cm-s-neo .cm-property { color:#1d75b3; } +.cm-s-neo .cm-atom,.cm-s-neo .cm-number { color:#75438a; } +.cm-s-neo .cm-node,.cm-s-neo .cm-tag { color:#9c3328; } +.cm-s-neo .cm-string { color:#b35e14; } +.cm-s-neo .cm-variable,.cm-s-neo .cm-qualifier { color:#047d65; } + + +/* Editor styling */ + +.cm-s-neo pre { + padding:0; +} + +.cm-s-neo .CodeMirror-gutters { + border:none; + border-right:10px solid transparent; + background-color:transparent; +} + +.cm-s-neo .CodeMirror-linenumber { + padding:0; + color:#e0e2e5; +} + +.cm-s-neo .CodeMirror-guttermarker { color: #1d75b3; } +.cm-s-neo .CodeMirror-guttermarker-subtle { color: #e0e2e5; } + +.cm-s-neo .CodeMirror-cursor { + width: auto; + border: 0; + background: rgba(155,157,162,0.37); + z-index: 1; +} diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/night.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/night.css new file mode 100644 index 0000000..fd4e561 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/night.css @@ -0,0 +1,27 @@ +/* Loosely based on the Midnight Textmate theme */ + +.cm-s-night.CodeMirror { background: #0a001f; color: #f8f8f8; } +.cm-s-night div.CodeMirror-selected { background: #447; } +.cm-s-night .CodeMirror-line::selection, .cm-s-night .CodeMirror-line > span::selection, .cm-s-night .CodeMirror-line > span > span::selection { background: rgba(68, 68, 119, .99); } +.cm-s-night .CodeMirror-line::-moz-selection, .cm-s-night .CodeMirror-line > span::-moz-selection, .cm-s-night .CodeMirror-line > span > span::-moz-selection { background: rgba(68, 68, 119, .99); } +.cm-s-night .CodeMirror-gutters { background: #0a001f; border-right: 1px solid #aaa; } +.cm-s-night .CodeMirror-guttermarker { color: white; } +.cm-s-night .CodeMirror-guttermarker-subtle { color: #bbb; } +.cm-s-night .CodeMirror-linenumber { color: #f8f8f8; } +.cm-s-night .CodeMirror-cursor { border-left: 1px solid white; } + +.cm-s-night span.cm-comment { color: #8900d1; } +.cm-s-night span.cm-atom { color: #845dc4; } +.cm-s-night span.cm-number, .cm-s-night span.cm-attribute { color: #ffd500; } +.cm-s-night span.cm-keyword { color: #599eff; } +.cm-s-night span.cm-string { color: #37f14a; } +.cm-s-night span.cm-meta { color: #7678e2; } +.cm-s-night span.cm-variable-2, .cm-s-night span.cm-tag { color: #99b2ff; } +.cm-s-night span.cm-variable-3, .cm-s-night span.cm-def { color: white; } +.cm-s-night span.cm-bracket { color: #8da6ce; } +.cm-s-night span.cm-builtin, .cm-s-night span.cm-special { color: #ff9e59; } +.cm-s-night span.cm-link { color: #845dc4; } +.cm-s-night span.cm-error { color: #9d1e15; } + +.cm-s-night .CodeMirror-activeline-background { background: #1C005A; } +.cm-s-night .CodeMirror-matchingbracket { outline:1px solid grey; color:white !important; } diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/panda-syntax.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/panda-syntax.css new file mode 100644 index 0000000..8c0c754 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/panda-syntax.css @@ -0,0 +1,85 @@ +/* + Name: Panda Syntax + Author: Siamak Mokhtari (http://github.com/siamak/) + CodeMirror template by Siamak Mokhtari (https://github.com/siamak/atom-panda-syntax) +*/ +.cm-s-panda-syntax { + background: #292A2B; + color: #E6E6E6; + line-height: 1.5; + font-family: 'Operator Mono', 'Source Sans Pro', Menlo, Monaco, Consolas, Courier New, monospace; +} +.cm-s-panda-syntax .CodeMirror-cursor { border-color: #ff2c6d; } +.cm-s-panda-syntax .CodeMirror-activeline-background { + background: rgba(99, 123, 156, 0.1); +} +.cm-s-panda-syntax .CodeMirror-selected { + background: #FFF; +} +.cm-s-panda-syntax .cm-comment { + font-style: italic; + color: #676B79; +} +.cm-s-panda-syntax .cm-operator { + color: #f3f3f3; +} +.cm-s-panda-syntax .cm-string { + color: #19F9D8; +} +.cm-s-panda-syntax .cm-string-2 { + color: #FFB86C; +} + +.cm-s-panda-syntax .cm-tag { + color: #ff2c6d; +} +.cm-s-panda-syntax .cm-meta { + color: #b084eb; +} + +.cm-s-panda-syntax .cm-number { + color: #FFB86C; +} +.cm-s-panda-syntax .cm-atom { + color: #ff2c6d; +} +.cm-s-panda-syntax .cm-keyword { + color: #FF75B5; +} +.cm-s-panda-syntax .cm-variable { + color: #ffb86c; +} +.cm-s-panda-syntax .cm-variable-2 { + color: #ff9ac1; +} +.cm-s-panda-syntax .cm-variable-3 { + color: #ff9ac1; +} + +.cm-s-panda-syntax .cm-def { + color: #e6e6e6; +} +.cm-s-panda-syntax .cm-property { + color: #f3f3f3; +} +.cm-s-panda-syntax .cm-unit { + color: #ffb86c; +} + +.cm-s-panda-syntax .cm-attribute { + color: #ffb86c; +} + +.cm-s-panda-syntax .CodeMirror-matchingbracket { + border-bottom: 1px dotted #19F9D8; + padding-bottom: 2px; + color: #e6e6e6; +} +.CodeMirror-gutters { + background: #292a2b; + border-right-color: rgba(255, 255, 255, 0.1); +} +.CodeMirror-linenumber { + color: #e6e6e6; + opacity: 0.6; +} diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/paraiso-dark.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/paraiso-dark.css new file mode 100644 index 0000000..aa9d207 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/paraiso-dark.css @@ -0,0 +1,38 @@ +/* + + Name: Paraíso (Dark) + Author: Jan T. Sott + + Color scheme by Jan T. Sott (https://github.com/idleberg/Paraiso-CodeMirror) + Inspired by the art of Rubens LP (http://www.rubenslp.com.br) + +*/ + +.cm-s-paraiso-dark.CodeMirror { background: #2f1e2e; color: #b9b6b0; } +.cm-s-paraiso-dark div.CodeMirror-selected { background: #41323f; } +.cm-s-paraiso-dark .CodeMirror-line::selection, .cm-s-paraiso-dark .CodeMirror-line > span::selection, .cm-s-paraiso-dark .CodeMirror-line > span > span::selection { background: rgba(65, 50, 63, .99); } +.cm-s-paraiso-dark .CodeMirror-line::-moz-selection, .cm-s-paraiso-dark .CodeMirror-line > span::-moz-selection, .cm-s-paraiso-dark .CodeMirror-line > span > span::-moz-selection { background: rgba(65, 50, 63, .99); } +.cm-s-paraiso-dark .CodeMirror-gutters { background: #2f1e2e; border-right: 0px; } +.cm-s-paraiso-dark .CodeMirror-guttermarker { color: #ef6155; } +.cm-s-paraiso-dark .CodeMirror-guttermarker-subtle { color: #776e71; } +.cm-s-paraiso-dark .CodeMirror-linenumber { color: #776e71; } +.cm-s-paraiso-dark .CodeMirror-cursor { border-left: 1px solid #8d8687; } + +.cm-s-paraiso-dark span.cm-comment { color: #e96ba8; } +.cm-s-paraiso-dark span.cm-atom { color: #815ba4; } +.cm-s-paraiso-dark span.cm-number { color: #815ba4; } + +.cm-s-paraiso-dark span.cm-property, .cm-s-paraiso-dark span.cm-attribute { color: #48b685; } +.cm-s-paraiso-dark span.cm-keyword { color: #ef6155; } +.cm-s-paraiso-dark span.cm-string { color: #fec418; } + +.cm-s-paraiso-dark span.cm-variable { color: #48b685; } +.cm-s-paraiso-dark span.cm-variable-2 { color: #06b6ef; } +.cm-s-paraiso-dark span.cm-def { color: #f99b15; } +.cm-s-paraiso-dark span.cm-bracket { color: #b9b6b0; } +.cm-s-paraiso-dark span.cm-tag { color: #ef6155; } +.cm-s-paraiso-dark span.cm-link { color: #815ba4; } +.cm-s-paraiso-dark span.cm-error { background: #ef6155; color: #8d8687; } + +.cm-s-paraiso-dark .CodeMirror-activeline-background { background: #4D344A; } +.cm-s-paraiso-dark .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/paraiso-light.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/paraiso-light.css new file mode 100644 index 0000000..ae0c755 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/paraiso-light.css @@ -0,0 +1,38 @@ +/* + + Name: Paraíso (Light) + Author: Jan T. Sott + + Color scheme by Jan T. Sott (https://github.com/idleberg/Paraiso-CodeMirror) + Inspired by the art of Rubens LP (http://www.rubenslp.com.br) + +*/ + +.cm-s-paraiso-light.CodeMirror { background: #e7e9db; color: #41323f; } +.cm-s-paraiso-light div.CodeMirror-selected { background: #b9b6b0; } +.cm-s-paraiso-light .CodeMirror-line::selection, .cm-s-paraiso-light .CodeMirror-line > span::selection, .cm-s-paraiso-light .CodeMirror-line > span > span::selection { background: #b9b6b0; } +.cm-s-paraiso-light .CodeMirror-line::-moz-selection, .cm-s-paraiso-light .CodeMirror-line > span::-moz-selection, .cm-s-paraiso-light .CodeMirror-line > span > span::-moz-selection { background: #b9b6b0; } +.cm-s-paraiso-light .CodeMirror-gutters { background: #e7e9db; border-right: 0px; } +.cm-s-paraiso-light .CodeMirror-guttermarker { color: black; } +.cm-s-paraiso-light .CodeMirror-guttermarker-subtle { color: #8d8687; } +.cm-s-paraiso-light .CodeMirror-linenumber { color: #8d8687; } +.cm-s-paraiso-light .CodeMirror-cursor { border-left: 1px solid #776e71; } + +.cm-s-paraiso-light span.cm-comment { color: #e96ba8; } +.cm-s-paraiso-light span.cm-atom { color: #815ba4; } +.cm-s-paraiso-light span.cm-number { color: #815ba4; } + +.cm-s-paraiso-light span.cm-property, .cm-s-paraiso-light span.cm-attribute { color: #48b685; } +.cm-s-paraiso-light span.cm-keyword { color: #ef6155; } +.cm-s-paraiso-light span.cm-string { color: #fec418; } + +.cm-s-paraiso-light span.cm-variable { color: #48b685; } +.cm-s-paraiso-light span.cm-variable-2 { color: #06b6ef; } +.cm-s-paraiso-light span.cm-def { color: #f99b15; } +.cm-s-paraiso-light span.cm-bracket { color: #41323f; } +.cm-s-paraiso-light span.cm-tag { color: #ef6155; } +.cm-s-paraiso-light span.cm-link { color: #815ba4; } +.cm-s-paraiso-light span.cm-error { background: #ef6155; color: #776e71; } + +.cm-s-paraiso-light .CodeMirror-activeline-background { background: #CFD1C4; } +.cm-s-paraiso-light .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/pastel-on-dark.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/pastel-on-dark.css new file mode 100644 index 0000000..2603d36 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/pastel-on-dark.css @@ -0,0 +1,52 @@ +/** + * Pastel On Dark theme ported from ACE editor + * @license MIT + * @copyright AtomicPages LLC 2014 + * @author Dennis Thompson, AtomicPages LLC + * @version 1.1 + * @source https://github.com/atomicpages/codemirror-pastel-on-dark-theme + */ + +.cm-s-pastel-on-dark.CodeMirror { + background: #2c2827; + color: #8F938F; + line-height: 1.5; +} +.cm-s-pastel-on-dark div.CodeMirror-selected { background: rgba(221,240,255,0.2); } +.cm-s-pastel-on-dark .CodeMirror-line::selection, .cm-s-pastel-on-dark .CodeMirror-line > span::selection, .cm-s-pastel-on-dark .CodeMirror-line > span > span::selection { background: rgba(221,240,255,0.2); } +.cm-s-pastel-on-dark .CodeMirror-line::-moz-selection, .cm-s-pastel-on-dark .CodeMirror-line > span::-moz-selection, .cm-s-pastel-on-dark .CodeMirror-line > span > span::-moz-selection { background: rgba(221,240,255,0.2); } + +.cm-s-pastel-on-dark .CodeMirror-gutters { + background: #34302f; + border-right: 0px; + padding: 0 3px; +} +.cm-s-pastel-on-dark .CodeMirror-guttermarker { color: white; } +.cm-s-pastel-on-dark .CodeMirror-guttermarker-subtle { color: #8F938F; } +.cm-s-pastel-on-dark .CodeMirror-linenumber { color: #8F938F; } +.cm-s-pastel-on-dark .CodeMirror-cursor { border-left: 1px solid #A7A7A7; } +.cm-s-pastel-on-dark span.cm-comment { color: #A6C6FF; } +.cm-s-pastel-on-dark span.cm-atom { color: #DE8E30; } +.cm-s-pastel-on-dark span.cm-number { color: #CCCCCC; } +.cm-s-pastel-on-dark span.cm-property { color: #8F938F; } +.cm-s-pastel-on-dark span.cm-attribute { color: #a6e22e; } +.cm-s-pastel-on-dark span.cm-keyword { color: #AEB2F8; } +.cm-s-pastel-on-dark span.cm-string { color: #66A968; } +.cm-s-pastel-on-dark span.cm-variable { color: #AEB2F8; } +.cm-s-pastel-on-dark span.cm-variable-2 { color: #BEBF55; } +.cm-s-pastel-on-dark span.cm-variable-3 { color: #DE8E30; } +.cm-s-pastel-on-dark span.cm-def { color: #757aD8; } +.cm-s-pastel-on-dark span.cm-bracket { color: #f8f8f2; } +.cm-s-pastel-on-dark span.cm-tag { color: #C1C144; } +.cm-s-pastel-on-dark span.cm-link { color: #ae81ff; } +.cm-s-pastel-on-dark span.cm-qualifier,.cm-s-pastel-on-dark span.cm-builtin { color: #C1C144; } +.cm-s-pastel-on-dark span.cm-error { + background: #757aD8; + color: #f8f8f0; +} +.cm-s-pastel-on-dark .CodeMirror-activeline-background { background: rgba(255, 255, 255, 0.031); } +.cm-s-pastel-on-dark .CodeMirror-matchingbracket { + border: 1px solid rgba(255,255,255,0.25); + color: #8F938F !important; + margin: -1px -1px 0 -1px; +} diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/railscasts.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/railscasts.css new file mode 100644 index 0000000..aeff044 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/railscasts.css @@ -0,0 +1,34 @@ +/* + + Name: Railscasts + Author: Ryan Bates (http://railscasts.com) + + CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror) + Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) + +*/ + +.cm-s-railscasts.CodeMirror {background: #2b2b2b; color: #f4f1ed;} +.cm-s-railscasts div.CodeMirror-selected {background: #272935 !important;} +.cm-s-railscasts .CodeMirror-gutters {background: #2b2b2b; border-right: 0px;} +.cm-s-railscasts .CodeMirror-linenumber {color: #5a647e;} +.cm-s-railscasts .CodeMirror-cursor {border-left: 1px solid #d4cfc9 !important;} + +.cm-s-railscasts span.cm-comment {color: #bc9458;} +.cm-s-railscasts span.cm-atom {color: #b6b3eb;} +.cm-s-railscasts span.cm-number {color: #b6b3eb;} + +.cm-s-railscasts span.cm-property, .cm-s-railscasts span.cm-attribute {color: #a5c261;} +.cm-s-railscasts span.cm-keyword {color: #da4939;} +.cm-s-railscasts span.cm-string {color: #ffc66d;} + +.cm-s-railscasts span.cm-variable {color: #a5c261;} +.cm-s-railscasts span.cm-variable-2 {color: #6d9cbe;} +.cm-s-railscasts span.cm-def {color: #cc7833;} +.cm-s-railscasts span.cm-error {background: #da4939; color: #d4cfc9;} +.cm-s-railscasts span.cm-bracket {color: #f4f1ed;} +.cm-s-railscasts span.cm-tag {color: #da4939;} +.cm-s-railscasts span.cm-link {color: #b6b3eb;} + +.cm-s-railscasts .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;} +.cm-s-railscasts .CodeMirror-activeline-background { background: #303040; } diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/rubyblue.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/rubyblue.css new file mode 100644 index 0000000..76d33e7 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/rubyblue.css @@ -0,0 +1,25 @@ +.cm-s-rubyblue.CodeMirror { background: #112435; color: white; } +.cm-s-rubyblue div.CodeMirror-selected { background: #38566F; } +.cm-s-rubyblue .CodeMirror-line::selection, .cm-s-rubyblue .CodeMirror-line > span::selection, .cm-s-rubyblue .CodeMirror-line > span > span::selection { background: rgba(56, 86, 111, 0.99); } +.cm-s-rubyblue .CodeMirror-line::-moz-selection, .cm-s-rubyblue .CodeMirror-line > span::-moz-selection, .cm-s-rubyblue .CodeMirror-line > span > span::-moz-selection { background: rgba(56, 86, 111, 0.99); } +.cm-s-rubyblue .CodeMirror-gutters { background: #1F4661; border-right: 7px solid #3E7087; } +.cm-s-rubyblue .CodeMirror-guttermarker { color: white; } +.cm-s-rubyblue .CodeMirror-guttermarker-subtle { color: #3E7087; } +.cm-s-rubyblue .CodeMirror-linenumber { color: white; } +.cm-s-rubyblue .CodeMirror-cursor { border-left: 1px solid white; } + +.cm-s-rubyblue span.cm-comment { color: #999; font-style:italic; line-height: 1em; } +.cm-s-rubyblue span.cm-atom { color: #F4C20B; } +.cm-s-rubyblue span.cm-number, .cm-s-rubyblue span.cm-attribute { color: #82C6E0; } +.cm-s-rubyblue span.cm-keyword { color: #F0F; } +.cm-s-rubyblue span.cm-string { color: #F08047; } +.cm-s-rubyblue span.cm-meta { color: #F0F; } +.cm-s-rubyblue span.cm-variable-2, .cm-s-rubyblue span.cm-tag { color: #7BD827; } +.cm-s-rubyblue span.cm-variable-3, .cm-s-rubyblue span.cm-def { color: white; } +.cm-s-rubyblue span.cm-bracket { color: #F0F; } +.cm-s-rubyblue span.cm-link { color: #F4C20B; } +.cm-s-rubyblue span.CodeMirror-matchingbracket { color:#F0F !important; } +.cm-s-rubyblue span.cm-builtin, .cm-s-rubyblue span.cm-special { color: #FF9D00; } +.cm-s-rubyblue span.cm-error { color: #AF2018; } + +.cm-s-rubyblue .CodeMirror-activeline-background { background: #173047; } diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/seti.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/seti.css new file mode 100644 index 0000000..6632d3f --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/seti.css @@ -0,0 +1,44 @@ +/* + + Name: seti + Author: Michael Kaminsky (http://github.com/mkaminsky11) + + Original seti color scheme by Jesse Weed (https://github.com/jesseweed/seti-syntax) + +*/ + + +.cm-s-seti.CodeMirror { + background-color: #151718 !important; + color: #CFD2D1 !important; + border: none; +} +.cm-s-seti .CodeMirror-gutters { + color: #404b53; + background-color: #0E1112; + border: none; +} +.cm-s-seti .CodeMirror-cursor { border-left: solid thin #f8f8f0; } +.cm-s-seti .CodeMirror-linenumber { color: #6D8A88; } +.cm-s-seti.CodeMirror-focused div.CodeMirror-selected { background: rgba(255, 255, 255, 0.10); } +.cm-s-seti .CodeMirror-line::selection, .cm-s-seti .CodeMirror-line > span::selection, .cm-s-seti .CodeMirror-line > span > span::selection { background: rgba(255, 255, 255, 0.10); } +.cm-s-seti .CodeMirror-line::-moz-selection, .cm-s-seti .CodeMirror-line > span::-moz-selection, .cm-s-seti .CodeMirror-line > span > span::-moz-selection { background: rgba(255, 255, 255, 0.10); } +.cm-s-seti span.cm-comment { color: #41535b; } +.cm-s-seti span.cm-string, .cm-s-seti span.cm-string-2 { color: #55b5db; } +.cm-s-seti span.cm-number { color: #cd3f45; } +.cm-s-seti span.cm-variable { color: #55b5db; } +.cm-s-seti span.cm-variable-2 { color: #a074c4; } +.cm-s-seti span.cm-def { color: #55b5db; } +.cm-s-seti span.cm-keyword { color: #ff79c6; } +.cm-s-seti span.cm-operator { color: #9fca56; } +.cm-s-seti span.cm-keyword { color: #e6cd69; } +.cm-s-seti span.cm-atom { color: #cd3f45; } +.cm-s-seti span.cm-meta { color: #55b5db; } +.cm-s-seti span.cm-tag { color: #55b5db; } +.cm-s-seti span.cm-attribute { color: #9fca56; } +.cm-s-seti span.cm-qualifier { color: #9fca56; } +.cm-s-seti span.cm-property { color: #a074c4; } +.cm-s-seti span.cm-variable-3 { color: #9fca56; } +.cm-s-seti span.cm-builtin { color: #9fca56; } +.cm-s-seti .CodeMirror-activeline-background { background: #101213; } +.cm-s-seti .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/solarized.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/solarized.css new file mode 100644 index 0000000..1f39c7e --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/solarized.css @@ -0,0 +1,169 @@ +/* +Solarized theme for code-mirror +http://ethanschoonover.com/solarized +*/ + +/* +Solarized color palette +http://ethanschoonover.com/solarized/img/solarized-palette.png +*/ + +.solarized.base03 { color: #002b36; } +.solarized.base02 { color: #073642; } +.solarized.base01 { color: #586e75; } +.solarized.base00 { color: #657b83; } +.solarized.base0 { color: #839496; } +.solarized.base1 { color: #93a1a1; } +.solarized.base2 { color: #eee8d5; } +.solarized.base3 { color: #fdf6e3; } +.solarized.solar-yellow { color: #b58900; } +.solarized.solar-orange { color: #cb4b16; } +.solarized.solar-red { color: #dc322f; } +.solarized.solar-magenta { color: #d33682; } +.solarized.solar-violet { color: #6c71c4; } +.solarized.solar-blue { color: #268bd2; } +.solarized.solar-cyan { color: #2aa198; } +.solarized.solar-green { color: #859900; } + +/* Color scheme for code-mirror */ + +.cm-s-solarized { + line-height: 1.45em; + color-profile: sRGB; + rendering-intent: auto; +} +.cm-s-solarized.cm-s-dark { + color: #839496; + background-color: #002b36; + text-shadow: #002b36 0 1px; +} +.cm-s-solarized.cm-s-light { + background-color: #fdf6e3; + color: #657b83; + text-shadow: #eee8d5 0 1px; +} + +.cm-s-solarized .CodeMirror-widget { + text-shadow: none; +} + +.cm-s-solarized .cm-header { color: #586e75; } +.cm-s-solarized .cm-quote { color: #93a1a1; } + +.cm-s-solarized .cm-keyword { color: #cb4b16; } +.cm-s-solarized .cm-atom { color: #d33682; } +.cm-s-solarized .cm-number { color: #d33682; } +.cm-s-solarized .cm-def { color: #2aa198; } + +.cm-s-solarized .cm-variable { color: #839496; } +.cm-s-solarized .cm-variable-2 { color: #b58900; } +.cm-s-solarized .cm-variable-3 { color: #6c71c4; } + +.cm-s-solarized .cm-property { color: #2aa198; } +.cm-s-solarized .cm-operator { color: #6c71c4; } + +.cm-s-solarized .cm-comment { color: #586e75; font-style:italic; } + +.cm-s-solarized .cm-string { color: #859900; } +.cm-s-solarized .cm-string-2 { color: #b58900; } + +.cm-s-solarized .cm-meta { color: #859900; } +.cm-s-solarized .cm-qualifier { color: #b58900; } +.cm-s-solarized .cm-builtin { color: #d33682; } +.cm-s-solarized .cm-bracket { color: #cb4b16; } +.cm-s-solarized .CodeMirror-matchingbracket { color: #859900; } +.cm-s-solarized .CodeMirror-nonmatchingbracket { color: #dc322f; } +.cm-s-solarized .cm-tag { color: #93a1a1; } +.cm-s-solarized .cm-attribute { color: #2aa198; } +.cm-s-solarized .cm-hr { + color: transparent; + border-top: 1px solid #586e75; + display: block; +} +.cm-s-solarized .cm-link { color: #93a1a1; cursor: pointer; } +.cm-s-solarized .cm-special { color: #6c71c4; } +.cm-s-solarized .cm-em { + color: #999; + text-decoration: underline; + text-decoration-style: dotted; +} +.cm-s-solarized .cm-strong { color: #eee; } +.cm-s-solarized .cm-error, +.cm-s-solarized .cm-invalidchar { + color: #586e75; + border-bottom: 1px dotted #dc322f; +} + +.cm-s-solarized.cm-s-dark div.CodeMirror-selected { background: #073642; } +.cm-s-solarized.cm-s-dark.CodeMirror ::selection { background: rgba(7, 54, 66, 0.99); } +.cm-s-solarized.cm-s-dark .CodeMirror-line::-moz-selection, .cm-s-dark .CodeMirror-line > span::-moz-selection, .cm-s-dark .CodeMirror-line > span > span::-moz-selection { background: rgba(7, 54, 66, 0.99); } + +.cm-s-solarized.cm-s-light div.CodeMirror-selected { background: #eee8d5; } +.cm-s-solarized.cm-s-light .CodeMirror-line::selection, .cm-s-light .CodeMirror-line > span::selection, .cm-s-light .CodeMirror-line > span > span::selection { background: #eee8d5; } +.cm-s-solarized.cm-s-light .CodeMirror-line::-moz-selection, .cm-s-ligh .CodeMirror-line > span::-moz-selection, .cm-s-ligh .CodeMirror-line > span > span::-moz-selection { background: #eee8d5; } + +/* Editor styling */ + + + +/* Little shadow on the view-port of the buffer view */ +.cm-s-solarized.CodeMirror { + -moz-box-shadow: inset 7px 0 12px -6px #000; + -webkit-box-shadow: inset 7px 0 12px -6px #000; + box-shadow: inset 7px 0 12px -6px #000; +} + +/* Remove gutter border */ +.cm-s-solarized .CodeMirror-gutters { + border-right: 0; +} + +/* Gutter colors and line number styling based of color scheme (dark / light) */ + +/* Dark */ +.cm-s-solarized.cm-s-dark .CodeMirror-gutters { + background-color: #073642; +} + +.cm-s-solarized.cm-s-dark .CodeMirror-linenumber { + color: #586e75; + text-shadow: #021014 0 -1px; +} + +/* Light */ +.cm-s-solarized.cm-s-light .CodeMirror-gutters { + background-color: #eee8d5; +} + +.cm-s-solarized.cm-s-light .CodeMirror-linenumber { + color: #839496; +} + +/* Common */ +.cm-s-solarized .CodeMirror-linenumber { + padding: 0 5px; +} +.cm-s-solarized .CodeMirror-guttermarker-subtle { color: #586e75; } +.cm-s-solarized.cm-s-dark .CodeMirror-guttermarker { color: #ddd; } +.cm-s-solarized.cm-s-light .CodeMirror-guttermarker { color: #cb4b16; } + +.cm-s-solarized .CodeMirror-gutter .CodeMirror-gutter-text { + color: #586e75; +} + +/* Cursor */ +.cm-s-solarized .CodeMirror-cursor { border-left: 1px solid #819090; } + +/* Fat cursor */ +.cm-s-solarized.cm-s-light.cm-fat-cursor .CodeMirror-cursor { background: #77ee77; } +.cm-s-solarized.cm-s-light .cm-animate-fat-cursor { background-color: #77ee77; } +.cm-s-solarized.cm-s-dark.cm-fat-cursor .CodeMirror-cursor { background: #586e75; } +.cm-s-solarized.cm-s-dark .cm-animate-fat-cursor { background-color: #586e75; } + +/* Active line */ +.cm-s-solarized.cm-s-dark .CodeMirror-activeline-background { + background: rgba(255, 255, 255, 0.06); +} +.cm-s-solarized.cm-s-light .CodeMirror-activeline-background { + background: rgba(0, 0, 0, 0.06); +} diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/the-matrix.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/the-matrix.css new file mode 100644 index 0000000..3912a8d --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/the-matrix.css @@ -0,0 +1,30 @@ +.cm-s-the-matrix.CodeMirror { background: #000000; color: #00FF00; } +.cm-s-the-matrix div.CodeMirror-selected { background: #2D2D2D; } +.cm-s-the-matrix .CodeMirror-line::selection, .cm-s-the-matrix .CodeMirror-line > span::selection, .cm-s-the-matrix .CodeMirror-line > span > span::selection { background: rgba(45, 45, 45, 0.99); } +.cm-s-the-matrix .CodeMirror-line::-moz-selection, .cm-s-the-matrix .CodeMirror-line > span::-moz-selection, .cm-s-the-matrix .CodeMirror-line > span > span::-moz-selection { background: rgba(45, 45, 45, 0.99); } +.cm-s-the-matrix .CodeMirror-gutters { background: #060; border-right: 2px solid #00FF00; } +.cm-s-the-matrix .CodeMirror-guttermarker { color: #0f0; } +.cm-s-the-matrix .CodeMirror-guttermarker-subtle { color: white; } +.cm-s-the-matrix .CodeMirror-linenumber { color: #FFFFFF; } +.cm-s-the-matrix .CodeMirror-cursor { border-left: 1px solid #00FF00; } + +.cm-s-the-matrix span.cm-keyword { color: #008803; font-weight: bold; } +.cm-s-the-matrix span.cm-atom { color: #3FF; } +.cm-s-the-matrix span.cm-number { color: #FFB94F; } +.cm-s-the-matrix span.cm-def { color: #99C; } +.cm-s-the-matrix span.cm-variable { color: #F6C; } +.cm-s-the-matrix span.cm-variable-2 { color: #C6F; } +.cm-s-the-matrix span.cm-variable-3 { color: #96F; } +.cm-s-the-matrix span.cm-property { color: #62FFA0; } +.cm-s-the-matrix span.cm-operator { color: #999; } +.cm-s-the-matrix span.cm-comment { color: #CCCCCC; } +.cm-s-the-matrix span.cm-string { color: #39C; } +.cm-s-the-matrix span.cm-meta { color: #C9F; } +.cm-s-the-matrix span.cm-qualifier { color: #FFF700; } +.cm-s-the-matrix span.cm-builtin { color: #30a; } +.cm-s-the-matrix span.cm-bracket { color: #cc7; } +.cm-s-the-matrix span.cm-tag { color: #FFBD40; } +.cm-s-the-matrix span.cm-attribute { color: #FFF700; } +.cm-s-the-matrix span.cm-error { color: #FF0000; } + +.cm-s-the-matrix .CodeMirror-activeline-background { background: #040; } diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/tomorrow-night-bright.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/tomorrow-night-bright.css new file mode 100644 index 0000000..b6dd4a9 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/tomorrow-night-bright.css @@ -0,0 +1,35 @@ +/* + + Name: Tomorrow Night - Bright + Author: Chris Kempson + + Port done by Gerard Braad <me@gbraad.nl> + +*/ + +.cm-s-tomorrow-night-bright.CodeMirror { background: #000000; color: #eaeaea; } +.cm-s-tomorrow-night-bright div.CodeMirror-selected { background: #424242; } +.cm-s-tomorrow-night-bright .CodeMirror-gutters { background: #000000; border-right: 0px; } +.cm-s-tomorrow-night-bright .CodeMirror-guttermarker { color: #e78c45; } +.cm-s-tomorrow-night-bright .CodeMirror-guttermarker-subtle { color: #777; } +.cm-s-tomorrow-night-bright .CodeMirror-linenumber { color: #424242; } +.cm-s-tomorrow-night-bright .CodeMirror-cursor { border-left: 1px solid #6A6A6A; } + +.cm-s-tomorrow-night-bright span.cm-comment { color: #d27b53; } +.cm-s-tomorrow-night-bright span.cm-atom { color: #a16a94; } +.cm-s-tomorrow-night-bright span.cm-number { color: #a16a94; } + +.cm-s-tomorrow-night-bright span.cm-property, .cm-s-tomorrow-night-bright span.cm-attribute { color: #99cc99; } +.cm-s-tomorrow-night-bright span.cm-keyword { color: #d54e53; } +.cm-s-tomorrow-night-bright span.cm-string { color: #e7c547; } + +.cm-s-tomorrow-night-bright span.cm-variable { color: #b9ca4a; } +.cm-s-tomorrow-night-bright span.cm-variable-2 { color: #7aa6da; } +.cm-s-tomorrow-night-bright span.cm-def { color: #e78c45; } +.cm-s-tomorrow-night-bright span.cm-bracket { color: #eaeaea; } +.cm-s-tomorrow-night-bright span.cm-tag { color: #d54e53; } +.cm-s-tomorrow-night-bright span.cm-link { color: #a16a94; } +.cm-s-tomorrow-night-bright span.cm-error { background: #d54e53; color: #6A6A6A; } + +.cm-s-tomorrow-night-bright .CodeMirror-activeline-background { background: #2a2a2a; } +.cm-s-tomorrow-night-bright .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/tomorrow-night-eighties.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/tomorrow-night-eighties.css new file mode 100644 index 0000000..2a9debc --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/tomorrow-night-eighties.css @@ -0,0 +1,38 @@ +/* + + Name: Tomorrow Night - Eighties + Author: Chris Kempson + + CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror) + Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) + +*/ + +.cm-s-tomorrow-night-eighties.CodeMirror { background: #000000; color: #CCCCCC; } +.cm-s-tomorrow-night-eighties div.CodeMirror-selected { background: #2D2D2D; } +.cm-s-tomorrow-night-eighties .CodeMirror-line::selection, .cm-s-tomorrow-night-eighties .CodeMirror-line > span::selection, .cm-s-tomorrow-night-eighties .CodeMirror-line > span > span::selection { background: rgba(45, 45, 45, 0.99); } +.cm-s-tomorrow-night-eighties .CodeMirror-line::-moz-selection, .cm-s-tomorrow-night-eighties .CodeMirror-line > span::-moz-selection, .cm-s-tomorrow-night-eighties .CodeMirror-line > span > span::-moz-selection { background: rgba(45, 45, 45, 0.99); } +.cm-s-tomorrow-night-eighties .CodeMirror-gutters { background: #000000; border-right: 0px; } +.cm-s-tomorrow-night-eighties .CodeMirror-guttermarker { color: #f2777a; } +.cm-s-tomorrow-night-eighties .CodeMirror-guttermarker-subtle { color: #777; } +.cm-s-tomorrow-night-eighties .CodeMirror-linenumber { color: #515151; } +.cm-s-tomorrow-night-eighties .CodeMirror-cursor { border-left: 1px solid #6A6A6A; } + +.cm-s-tomorrow-night-eighties span.cm-comment { color: #d27b53; } +.cm-s-tomorrow-night-eighties span.cm-atom { color: #a16a94; } +.cm-s-tomorrow-night-eighties span.cm-number { color: #a16a94; } + +.cm-s-tomorrow-night-eighties span.cm-property, .cm-s-tomorrow-night-eighties span.cm-attribute { color: #99cc99; } +.cm-s-tomorrow-night-eighties span.cm-keyword { color: #f2777a; } +.cm-s-tomorrow-night-eighties span.cm-string { color: #ffcc66; } + +.cm-s-tomorrow-night-eighties span.cm-variable { color: #99cc99; } +.cm-s-tomorrow-night-eighties span.cm-variable-2 { color: #6699cc; } +.cm-s-tomorrow-night-eighties span.cm-def { color: #f99157; } +.cm-s-tomorrow-night-eighties span.cm-bracket { color: #CCCCCC; } +.cm-s-tomorrow-night-eighties span.cm-tag { color: #f2777a; } +.cm-s-tomorrow-night-eighties span.cm-link { color: #a16a94; } +.cm-s-tomorrow-night-eighties span.cm-error { background: #f2777a; color: #6A6A6A; } + +.cm-s-tomorrow-night-eighties .CodeMirror-activeline-background { background: #343600; } +.cm-s-tomorrow-night-eighties .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/ttcn.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/ttcn.css new file mode 100644 index 0000000..b3d4656 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/ttcn.css @@ -0,0 +1,64 @@ +.cm-s-ttcn .cm-quote { color: #090; } +.cm-s-ttcn .cm-negative { color: #d44; } +.cm-s-ttcn .cm-positive { color: #292; } +.cm-s-ttcn .cm-header, .cm-strong { font-weight: bold; } +.cm-s-ttcn .cm-em { font-style: italic; } +.cm-s-ttcn .cm-link { text-decoration: underline; } +.cm-s-ttcn .cm-strikethrough { text-decoration: line-through; } +.cm-s-ttcn .cm-header { color: #00f; font-weight: bold; } + +.cm-s-ttcn .cm-atom { color: #219; } +.cm-s-ttcn .cm-attribute { color: #00c; } +.cm-s-ttcn .cm-bracket { color: #997; } +.cm-s-ttcn .cm-comment { color: #333333; } +.cm-s-ttcn .cm-def { color: #00f; } +.cm-s-ttcn .cm-em { font-style: italic; } +.cm-s-ttcn .cm-error { color: #f00; } +.cm-s-ttcn .cm-hr { color: #999; } +.cm-s-ttcn .cm-invalidchar { color: #f00; } +.cm-s-ttcn .cm-keyword { font-weight:bold; } +.cm-s-ttcn .cm-link { color: #00c; text-decoration: underline; } +.cm-s-ttcn .cm-meta { color: #555; } +.cm-s-ttcn .cm-negative { color: #d44; } +.cm-s-ttcn .cm-positive { color: #292; } +.cm-s-ttcn .cm-qualifier { color: #555; } +.cm-s-ttcn .cm-strikethrough { text-decoration: line-through; } +.cm-s-ttcn .cm-string { color: #006400; } +.cm-s-ttcn .cm-string-2 { color: #f50; } +.cm-s-ttcn .cm-strong { font-weight: bold; } +.cm-s-ttcn .cm-tag { color: #170; } +.cm-s-ttcn .cm-variable { color: #8B2252; } +.cm-s-ttcn .cm-variable-2 { color: #05a; } +.cm-s-ttcn .cm-variable-3 { color: #085; } + +.cm-s-ttcn .cm-invalidchar { color: #f00; } + +/* ASN */ +.cm-s-ttcn .cm-accessTypes, +.cm-s-ttcn .cm-compareTypes { color: #27408B; } +.cm-s-ttcn .cm-cmipVerbs { color: #8B2252; } +.cm-s-ttcn .cm-modifier { color:#D2691E; } +.cm-s-ttcn .cm-status { color:#8B4545; } +.cm-s-ttcn .cm-storage { color:#A020F0; } +.cm-s-ttcn .cm-tags { color:#006400; } + +/* CFG */ +.cm-s-ttcn .cm-externalCommands { color: #8B4545; font-weight:bold; } +.cm-s-ttcn .cm-fileNCtrlMaskOptions, +.cm-s-ttcn .cm-sectionTitle { color: #2E8B57; font-weight:bold; } + +/* TTCN */ +.cm-s-ttcn .cm-booleanConsts, +.cm-s-ttcn .cm-otherConsts, +.cm-s-ttcn .cm-verdictConsts { color: #006400; } +.cm-s-ttcn .cm-configOps, +.cm-s-ttcn .cm-functionOps, +.cm-s-ttcn .cm-portOps, +.cm-s-ttcn .cm-sutOps, +.cm-s-ttcn .cm-timerOps, +.cm-s-ttcn .cm-verdictOps { color: #0000FF; } +.cm-s-ttcn .cm-preprocessor, +.cm-s-ttcn .cm-templateMatch, +.cm-s-ttcn .cm-ttcn3Macros { color: #27408B; } +.cm-s-ttcn .cm-types { color: #A52A2A; font-weight:bold; } +.cm-s-ttcn .cm-visibilityModifiers { font-weight:bold; } diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/twilight.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/twilight.css new file mode 100644 index 0000000..d342b89 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/twilight.css @@ -0,0 +1,32 @@ +.cm-s-twilight.CodeMirror { background: #141414; color: #f7f7f7; } /**/ +.cm-s-twilight div.CodeMirror-selected { background: #323232; } /**/ +.cm-s-twilight .CodeMirror-line::selection, .cm-s-twilight .CodeMirror-line > span::selection, .cm-s-twilight .CodeMirror-line > span > span::selection { background: rgba(50, 50, 50, 0.99); } +.cm-s-twilight .CodeMirror-line::-moz-selection, .cm-s-twilight .CodeMirror-line > span::-moz-selection, .cm-s-twilight .CodeMirror-line > span > span::-moz-selection { background: rgba(50, 50, 50, 0.99); } + +.cm-s-twilight .CodeMirror-gutters { background: #222; border-right: 1px solid #aaa; } +.cm-s-twilight .CodeMirror-guttermarker { color: white; } +.cm-s-twilight .CodeMirror-guttermarker-subtle { color: #aaa; } +.cm-s-twilight .CodeMirror-linenumber { color: #aaa; } +.cm-s-twilight .CodeMirror-cursor { border-left: 1px solid white; } + +.cm-s-twilight .cm-keyword { color: #f9ee98; } /**/ +.cm-s-twilight .cm-atom { color: #FC0; } +.cm-s-twilight .cm-number { color: #ca7841; } /**/ +.cm-s-twilight .cm-def { color: #8DA6CE; } +.cm-s-twilight span.cm-variable-2, .cm-s-twilight span.cm-tag { color: #607392; } /**/ +.cm-s-twilight span.cm-variable-3, .cm-s-twilight span.cm-def { color: #607392; } /**/ +.cm-s-twilight .cm-operator { color: #cda869; } /**/ +.cm-s-twilight .cm-comment { color:#777; font-style:italic; font-weight:normal; } /**/ +.cm-s-twilight .cm-string { color:#8f9d6a; font-style:italic; } /**/ +.cm-s-twilight .cm-string-2 { color:#bd6b18; } /*?*/ +.cm-s-twilight .cm-meta { background-color:#141414; color:#f7f7f7; } /*?*/ +.cm-s-twilight .cm-builtin { color: #cda869; } /*?*/ +.cm-s-twilight .cm-tag { color: #997643; } /**/ +.cm-s-twilight .cm-attribute { color: #d6bb6d; } /*?*/ +.cm-s-twilight .cm-header { color: #FF6400; } +.cm-s-twilight .cm-hr { color: #AEAEAE; } +.cm-s-twilight .cm-link { color:#ad9361; font-style:italic; text-decoration:none; } /**/ +.cm-s-twilight .cm-error { border-bottom: 1px solid red; } + +.cm-s-twilight .CodeMirror-activeline-background { background: #27282E; } +.cm-s-twilight .CodeMirror-matchingbracket { outline:1px solid grey; color:white !important; } diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/vibrant-ink.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/vibrant-ink.css new file mode 100644 index 0000000..ac4ec6d --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/vibrant-ink.css @@ -0,0 +1,34 @@ +/* Taken from the popular Visual Studio Vibrant Ink Schema */ + +.cm-s-vibrant-ink.CodeMirror { background: black; color: white; } +.cm-s-vibrant-ink div.CodeMirror-selected { background: #35493c; } +.cm-s-vibrant-ink .CodeMirror-line::selection, .cm-s-vibrant-ink .CodeMirror-line > span::selection, .cm-s-vibrant-ink .CodeMirror-line > span > span::selection { background: rgba(53, 73, 60, 0.99); } +.cm-s-vibrant-ink .CodeMirror-line::-moz-selection, .cm-s-vibrant-ink .CodeMirror-line > span::-moz-selection, .cm-s-vibrant-ink .CodeMirror-line > span > span::-moz-selection { background: rgba(53, 73, 60, 0.99); } + +.cm-s-vibrant-ink .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; } +.cm-s-vibrant-ink .CodeMirror-guttermarker { color: white; } +.cm-s-vibrant-ink .CodeMirror-guttermarker-subtle { color: #d0d0d0; } +.cm-s-vibrant-ink .CodeMirror-linenumber { color: #d0d0d0; } +.cm-s-vibrant-ink .CodeMirror-cursor { border-left: 1px solid white; } + +.cm-s-vibrant-ink .cm-keyword { color: #CC7832; } +.cm-s-vibrant-ink .cm-atom { color: #FC0; } +.cm-s-vibrant-ink .cm-number { color: #FFEE98; } +.cm-s-vibrant-ink .cm-def { color: #8DA6CE; } +.cm-s-vibrant-ink span.cm-variable-2, .cm-s-vibrant span.cm-tag { color: #FFC66D; } +.cm-s-vibrant-ink span.cm-variable-3, .cm-s-vibrant span.cm-def { color: #FFC66D; } +.cm-s-vibrant-ink .cm-operator { color: #888; } +.cm-s-vibrant-ink .cm-comment { color: gray; font-weight: bold; } +.cm-s-vibrant-ink .cm-string { color: #A5C25C; } +.cm-s-vibrant-ink .cm-string-2 { color: red; } +.cm-s-vibrant-ink .cm-meta { color: #D8FA3C; } +.cm-s-vibrant-ink .cm-builtin { color: #8DA6CE; } +.cm-s-vibrant-ink .cm-tag { color: #8DA6CE; } +.cm-s-vibrant-ink .cm-attribute { color: #8DA6CE; } +.cm-s-vibrant-ink .cm-header { color: #FF6400; } +.cm-s-vibrant-ink .cm-hr { color: #AEAEAE; } +.cm-s-vibrant-ink .cm-link { color: blue; } +.cm-s-vibrant-ink .cm-error { border-bottom: 1px solid red; } + +.cm-s-vibrant-ink .CodeMirror-activeline-background { background: #27282E; } +.cm-s-vibrant-ink .CodeMirror-matchingbracket { outline:1px solid grey; color:white !important; } diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/xq-dark.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/xq-dark.css new file mode 100644 index 0000000..e3bd960 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/xq-dark.css @@ -0,0 +1,53 @@ +/* +Copyright (C) 2011 by MarkLogic Corporation +Author: Mike Brevoort <mike@brevoort.com> + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ +.cm-s-xq-dark.CodeMirror { background: #0a001f; color: #f8f8f8; } +.cm-s-xq-dark div.CodeMirror-selected { background: #27007A; } +.cm-s-xq-dark .CodeMirror-line::selection, .cm-s-xq-dark .CodeMirror-line > span::selection, .cm-s-xq-dark .CodeMirror-line > span > span::selection { background: rgba(39, 0, 122, 0.99); } +.cm-s-xq-dark .CodeMirror-line::-moz-selection, .cm-s-xq-dark .CodeMirror-line > span::-moz-selection, .cm-s-xq-dark .CodeMirror-line > span > span::-moz-selection { background: rgba(39, 0, 122, 0.99); } +.cm-s-xq-dark .CodeMirror-gutters { background: #0a001f; border-right: 1px solid #aaa; } +.cm-s-xq-dark .CodeMirror-guttermarker { color: #FFBD40; } +.cm-s-xq-dark .CodeMirror-guttermarker-subtle { color: #f8f8f8; } +.cm-s-xq-dark .CodeMirror-linenumber { color: #f8f8f8; } +.cm-s-xq-dark .CodeMirror-cursor { border-left: 1px solid white; } + +.cm-s-xq-dark span.cm-keyword { color: #FFBD40; } +.cm-s-xq-dark span.cm-atom { color: #6C8CD5; } +.cm-s-xq-dark span.cm-number { color: #164; } +.cm-s-xq-dark span.cm-def { color: #FFF; text-decoration:underline; } +.cm-s-xq-dark span.cm-variable { color: #FFF; } +.cm-s-xq-dark span.cm-variable-2 { color: #EEE; } +.cm-s-xq-dark span.cm-variable-3 { color: #DDD; } +.cm-s-xq-dark span.cm-property {} +.cm-s-xq-dark span.cm-operator {} +.cm-s-xq-dark span.cm-comment { color: gray; } +.cm-s-xq-dark span.cm-string { color: #9FEE00; } +.cm-s-xq-dark span.cm-meta { color: yellow; } +.cm-s-xq-dark span.cm-qualifier { color: #FFF700; } +.cm-s-xq-dark span.cm-builtin { color: #30a; } +.cm-s-xq-dark span.cm-bracket { color: #cc7; } +.cm-s-xq-dark span.cm-tag { color: #FFBD40; } +.cm-s-xq-dark span.cm-attribute { color: #FFF700; } +.cm-s-xq-dark span.cm-error { color: #f00; } + +.cm-s-xq-dark .CodeMirror-activeline-background { background: #27282E; } +.cm-s-xq-dark .CodeMirror-matchingbracket { outline:1px solid grey; color:white !important; } diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/xq-light.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/xq-light.css new file mode 100644 index 0000000..8d2fcb6 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/xq-light.css @@ -0,0 +1,43 @@ +/* +Copyright (C) 2011 by MarkLogic Corporation +Author: Mike Brevoort <mike@brevoort.com> + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ +.cm-s-xq-light span.cm-keyword { line-height: 1em; font-weight: bold; color: #5A5CAD; } +.cm-s-xq-light span.cm-atom { color: #6C8CD5; } +.cm-s-xq-light span.cm-number { color: #164; } +.cm-s-xq-light span.cm-def { text-decoration:underline; } +.cm-s-xq-light span.cm-variable { color: black; } +.cm-s-xq-light span.cm-variable-2 { color:black; } +.cm-s-xq-light span.cm-variable-3 { color: black; } +.cm-s-xq-light span.cm-property {} +.cm-s-xq-light span.cm-operator {} +.cm-s-xq-light span.cm-comment { color: #0080FF; font-style: italic; } +.cm-s-xq-light span.cm-string { color: red; } +.cm-s-xq-light span.cm-meta { color: yellow; } +.cm-s-xq-light span.cm-qualifier { color: grey; } +.cm-s-xq-light span.cm-builtin { color: #7EA656; } +.cm-s-xq-light span.cm-bracket { color: #cc7; } +.cm-s-xq-light span.cm-tag { color: #3F7F7F; } +.cm-s-xq-light span.cm-attribute { color: #7F007F; } +.cm-s-xq-light span.cm-error { color: #f00; } + +.cm-s-xq-light .CodeMirror-activeline-background { background: #e8f2ff; } +.cm-s-xq-light .CodeMirror-matchingbracket { outline:1px solid grey;color:black !important;background:yellow; } diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/yeti.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/yeti.css new file mode 100644 index 0000000..c70d4d2 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/yeti.css @@ -0,0 +1,44 @@ +/* + + Name: yeti + Author: Michael Kaminsky (http://github.com/mkaminsky11) + + Original yeti color scheme by Jesse Weed (https://github.com/jesseweed/yeti-syntax) + +*/ + + +.cm-s-yeti.CodeMirror { + background-color: #ECEAE8 !important; + color: #d1c9c0 !important; + border: none; +} + +.cm-s-yeti .CodeMirror-gutters { + color: #adaba6; + background-color: #E5E1DB; + border: none; +} +.cm-s-yeti .CodeMirror-cursor { border-left: solid thin #d1c9c0; } +.cm-s-yeti .CodeMirror-linenumber { color: #adaba6; } +.cm-s-yeti.CodeMirror-focused div.CodeMirror-selected { background: #DCD8D2; } +.cm-s-yeti .CodeMirror-line::selection, .cm-s-yeti .CodeMirror-line > span::selection, .cm-s-yeti .CodeMirror-line > span > span::selection { background: #DCD8D2; } +.cm-s-yeti .CodeMirror-line::-moz-selection, .cm-s-yeti .CodeMirror-line > span::-moz-selection, .cm-s-yeti .CodeMirror-line > span > span::-moz-selection { background: #DCD8D2; } +.cm-s-yeti span.cm-comment { color: #d4c8be; } +.cm-s-yeti span.cm-string, .cm-s-yeti span.cm-string-2 { color: #96c0d8; } +.cm-s-yeti span.cm-number { color: #a074c4; } +.cm-s-yeti span.cm-variable { color: #55b5db; } +.cm-s-yeti span.cm-variable-2 { color: #a074c4; } +.cm-s-yeti span.cm-def { color: #55b5db; } +.cm-s-yeti span.cm-operator { color: #9fb96e; } +.cm-s-yeti span.cm-keyword { color: #9fb96e; } +.cm-s-yeti span.cm-atom { color: #a074c4; } +.cm-s-yeti span.cm-meta { color: #96c0d8; } +.cm-s-yeti span.cm-tag { color: #96c0d8; } +.cm-s-yeti span.cm-attribute { color: #9fb96e; } +.cm-s-yeti span.cm-qualifier { color: #96c0d8; } +.cm-s-yeti span.cm-property { color: #a074c4; } +.cm-s-yeti span.cm-builtin { color: #a074c4; } +.cm-s-yeti span.cm-variable-3 { color: #96c0d8; } +.cm-s-yeti .CodeMirror-activeline-background { background: #E7E4E0; } +.cm-s-yeti .CodeMirror-matchingbracket { text-decoration: underline; } diff --git a/Mobile.WYSIWYG/Scripts/CodeMirror/theme/zenburn.css b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/zenburn.css new file mode 100644 index 0000000..781c40a --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/CodeMirror/theme/zenburn.css @@ -0,0 +1,37 @@ +/** + * " + * Using Zenburn color palette from the Emacs Zenburn Theme + * https://github.com/bbatsov/zenburn-emacs/blob/master/zenburn-theme.el + * + * Also using parts of https://github.com/xavi/coderay-lighttable-theme + * " + * From: https://github.com/wisenomad/zenburn-lighttable-theme/blob/master/zenburn.css + */ + +.cm-s-zenburn .CodeMirror-gutters { background: #3f3f3f !important; } +.cm-s-zenburn .CodeMirror-foldgutter-open, .CodeMirror-foldgutter-folded { color: #999; } +.cm-s-zenburn .CodeMirror-cursor { border-left: 1px solid white; } +.cm-s-zenburn { background-color: #3f3f3f; color: #dcdccc; } +.cm-s-zenburn span.cm-builtin { color: #dcdccc; font-weight: bold; } +.cm-s-zenburn span.cm-comment { color: #7f9f7f; } +.cm-s-zenburn span.cm-keyword { color: #f0dfaf; font-weight: bold; } +.cm-s-zenburn span.cm-atom { color: #bfebbf; } +.cm-s-zenburn span.cm-def { color: #dcdccc; } +.cm-s-zenburn span.cm-variable { color: #dfaf8f; } +.cm-s-zenburn span.cm-variable-2 { color: #dcdccc; } +.cm-s-zenburn span.cm-string { color: #cc9393; } +.cm-s-zenburn span.cm-string-2 { color: #cc9393; } +.cm-s-zenburn span.cm-number { color: #dcdccc; } +.cm-s-zenburn span.cm-tag { color: #93e0e3; } +.cm-s-zenburn span.cm-property { color: #dfaf8f; } +.cm-s-zenburn span.cm-attribute { color: #dfaf8f; } +.cm-s-zenburn span.cm-qualifier { color: #7cb8bb; } +.cm-s-zenburn span.cm-meta { color: #f0dfaf; } +.cm-s-zenburn span.cm-header { color: #f0efd0; } +.cm-s-zenburn span.cm-operator { color: #f0efd0; } +.cm-s-zenburn span.CodeMirror-matchingbracket { box-sizing: border-box; background: transparent; border-bottom: 1px solid; } +.cm-s-zenburn span.CodeMirror-nonmatchingbracket { border-bottom: 1px solid; background: none; } +.cm-s-zenburn .CodeMirror-activeline { background: #000000; } +.cm-s-zenburn .CodeMirror-activeline-background { background: #000000; } +.cm-s-zenburn div.CodeMirror-selected { background: #545454; } +.cm-s-zenburn .CodeMirror-focused div.CodeMirror-selected { background: #4f4f4f; } diff --git a/Mobile.WYSIWYG/Scripts/_references.js b/Mobile.WYSIWYG/Scripts/_references.js new file mode 100644 index 0000000..4843eef Binary files /dev/null and b/Mobile.WYSIWYG/Scripts/_references.js differ diff --git a/Mobile.Search.Web/Scripts/bootstrap.js b/Mobile.WYSIWYG/Scripts/bootstrap.js similarity index 100% rename from Mobile.Search.Web/Scripts/bootstrap.js rename to Mobile.WYSIWYG/Scripts/bootstrap.js diff --git a/Mobile.Search.Web/Scripts/bootstrap.min.js b/Mobile.WYSIWYG/Scripts/bootstrap.min.js similarity index 100% rename from Mobile.Search.Web/Scripts/bootstrap.min.js rename to Mobile.WYSIWYG/Scripts/bootstrap.min.js diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/froala_editor.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/froala_editor.css new file mode 100644 index 0000000..f69161f --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/froala_editor.css @@ -0,0 +1,1262 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after { + clear: both; + display: block; + content: ""; + height: 0; +} +.hide-by-clipping { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; +} +.fr-element, +.fr-element:focus { + outline: 0px solid transparent; +} +.fr-box.fr-basic .fr-element { + color: #000000; + padding: 16px; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + overflow-x: auto; + min-height: 52px; +} +.fr-box.fr-basic.fr-rtl .fr-element { + text-align: right; +} +.fr-element { + background: transparent; + position: relative; + z-index: 2; + -webkit-user-select: auto; +} +.fr-element a { + user-select: auto; + -o-user-select: auto; + -moz-user-select: auto; + -khtml-user-select: auto; + -webkit-user-select: auto; + -ms-user-select: auto; +} +.fr-element.fr-disabled { + user-select: none; + -o-user-select: none; + -moz-user-select: none; + -khtml-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; +} +.fr-element [contenteditable="true"] { + outline: 0px solid transparent; +} +.fr-box a.fr-floating-btn { + -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); + -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); + border-radius: 100%; + -moz-border-radius: 100%; + -webkit-border-radius: 100%; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; + height: 32px; + width: 32px; + background: #ffffff; + color: #1e88e5; + -webkit-transition: background 0.2s ease 0s, color 0.2s ease 0s, transform 0.2s ease 0s; + -moz-transition: background 0.2s ease 0s, color 0.2s ease 0s, transform 0.2s ease 0s; + -ms-transition: background 0.2s ease 0s, color 0.2s ease 0s, transform 0.2s ease 0s; + -o-transition: background 0.2s ease 0s, color 0.2s ease 0s, transform 0.2s ease 0s; + outline: none; + left: 0; + top: 0; + line-height: 32px; + -webkit-transform: scale(0); + -moz-transform: scale(0); + -ms-transform: scale(0); + -o-transform: scale(0); + text-align: center; + display: block; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + border: none; +} +.fr-box a.fr-floating-btn svg { + -webkit-transition: transform 0.2s ease 0s; + -moz-transition: transform 0.2s ease 0s; + -ms-transition: transform 0.2s ease 0s; + -o-transition: transform 0.2s ease 0s; + fill: #1e88e5; +} +.fr-box a.fr-floating-btn i, +.fr-box a.fr-floating-btn svg { + font-size: 14px; + line-height: 32px; +} +.fr-box a.fr-floating-btn.fr-btn + .fr-btn { + margin-left: 10px; +} +.fr-box a.fr-floating-btn:hover { + background: #ebebeb; + cursor: pointer; +} +.fr-box a.fr-floating-btn:hover svg { + fill: #1e88e5; +} +.fr-box .fr-visible a.fr-floating-btn { + -webkit-transform: scale(1); + -moz-transform: scale(1); + -ms-transform: scale(1); + -o-transform: scale(1); +} +iframe.fr-iframe { + width: 100%; + border: none; + position: relative; + display: block; + z-index: 2; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +.fr-wrapper { + position: relative; + z-index: 1; +} +.fr-wrapper::after { + clear: both; + display: block; + content: ""; + height: 0; +} +.fr-wrapper .fr-placeholder { + position: absolute; + font-size: 12px; + color: #aaaaaa; + z-index: 1; + display: none; + top: 0; + left: 0; + right: 0; + overflow: hidden; +} +.fr-wrapper.show-placeholder .fr-placeholder { + display: block; +} +.fr-wrapper ::-moz-selection { + background: #b5d6fd; + color: #000000; +} +.fr-wrapper ::selection { + background: #b5d6fd; + color: #000000; +} +.fr-box.fr-basic .fr-wrapper { + background: #ffffff; + border: 0px; + border-top: 0; + top: 0; + left: 0; +} +.fr-box.fr-basic.fr-top .fr-wrapper { + border-top: 0; + border-radius: 0 0 2px 2px; + -moz-border-radius: 0 0 2px 2px; + -webkit-border-radius: 0 0 2px 2px; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; + -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); + -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); +} +.fr-box.fr-basic.fr-bottom .fr-wrapper { + border-bottom: 0; + border-radius: 2px 2px 0 0; + -moz-border-radius: 2px 2px 0 0; + -webkit-border-radius: 2px 2px 0 0; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; + -webkit-box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.12), 0 -1px 1px 1px rgba(0, 0, 0, 0.16); + -moz-box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.12), 0 -1px 1px 1px rgba(0, 0, 0, 0.16); + box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.12), 0 -1px 1px 1px rgba(0, 0, 0, 0.16); +} +.fr-tooltip { + position: absolute; + top: 0; + left: 0; + padding: 0 8px; + border-radius: 2px; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; + -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 2px 2px 1px rgba(0, 0, 0, 0.14); + -moz-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 2px 2px 1px rgba(0, 0, 0, 0.14); + box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 2px 2px 1px rgba(0, 0, 0, 0.14); + background: #222222; + color: #ffffff; + font-size: 11px; + line-height: 22px; + font-family: Arial, Helvetica, sans-serif; + -webkit-transition: opacity 0.2s ease 0s; + -moz-transition: opacity 0.2s ease 0s; + -ms-transition: opacity 0.2s ease 0s; + -o-transition: opacity 0.2s ease 0s; + -webkit-opacity: 0; + -moz-opacity: 0; + opacity: 0; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; + left: -3000px; + user-select: none; + -o-user-select: none; + -moz-user-select: none; + -khtml-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + z-index: 2147483647; + text-rendering: optimizelegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} +.fr-tooltip.fr-visible { + -webkit-opacity: 1; + -moz-opacity: 1; + opacity: 1; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; +} +.fr-toolbar .fr-command.fr-btn, +.fr-popup .fr-command.fr-btn { + background: transparent; + color: #222222; + -moz-outline: 0; + outline: 0; + border: 0; + line-height: 1; + cursor: pointer; + text-align: left; + margin: 0px 2px; + -webkit-transition: background 0.2s ease 0s; + -moz-transition: background 0.2s ease 0s; + -ms-transition: background 0.2s ease 0s; + -o-transition: background 0.2s ease 0s; + border-radius: 0; + -moz-border-radius: 0; + -webkit-border-radius: 0; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; + z-index: 2; + position: relative; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + text-decoration: none; + user-select: none; + -o-user-select: none; + -moz-user-select: none; + -khtml-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + float: left; + padding: 0; + width: 38px; + height: 38px; +} +.fr-toolbar .fr-command.fr-btn::-moz-focus-inner, +.fr-popup .fr-command.fr-btn::-moz-focus-inner { + border: 0; + padding: 0; +} +.fr-toolbar .fr-command.fr-btn.fr-btn-text, +.fr-popup .fr-command.fr-btn.fr-btn-text { + width: auto; +} +.fr-toolbar .fr-command.fr-btn i, +.fr-popup .fr-command.fr-btn i, +.fr-toolbar .fr-command.fr-btn svg, +.fr-popup .fr-command.fr-btn svg { + display: block; + font-size: 14px; + width: 14px; + margin: 12px 12px; + text-align: center; + float: none; +} +.fr-toolbar .fr-command.fr-btn span.fr-sr-only, +.fr-popup .fr-command.fr-btn span.fr-sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; +} +.fr-toolbar .fr-command.fr-btn span, +.fr-popup .fr-command.fr-btn span { + font-size: 14px; + display: block; + line-height: 17px; + min-width: 34px; + float: left; + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + height: 17px; + font-weight: bold; + padding: 0 2px; +} +.fr-toolbar .fr-command.fr-btn img, +.fr-popup .fr-command.fr-btn img { + margin: 12px 12px; + width: 14px; +} +.fr-toolbar .fr-command.fr-btn.fr-active, +.fr-popup .fr-command.fr-btn.fr-active { + color: #1e88e5; + background: transparent; +} +.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-selection, +.fr-popup .fr-command.fr-btn.fr-dropdown.fr-selection { + width: auto; +} +.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-selection span, +.fr-popup .fr-command.fr-btn.fr-dropdown.fr-selection span { + font-weight: normal; +} +.fr-toolbar .fr-command.fr-btn.fr-dropdown i, +.fr-popup .fr-command.fr-btn.fr-dropdown i, +.fr-toolbar .fr-command.fr-btn.fr-dropdown span, +.fr-popup .fr-command.fr-btn.fr-dropdown span, +.fr-toolbar .fr-command.fr-btn.fr-dropdown img, +.fr-popup .fr-command.fr-btn.fr-dropdown img, +.fr-toolbar .fr-command.fr-btn.fr-dropdown svg, +.fr-popup .fr-command.fr-btn.fr-dropdown svg { + margin-left: 8px; + margin-right: 16px; +} +.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active, +.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active { + color: #222222; + background: #d6d6d6; +} +.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:hover, +.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:hover, +.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:focus, +.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:focus { + background: #d6d6d6 !important; + color: #222222 !important; +} +.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:hover::after, +.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:hover::after, +.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:focus::after, +.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:focus::after { + border-top-color: #222222 !important; +} +.fr-toolbar .fr-command.fr-btn.fr-dropdown::after, +.fr-popup .fr-command.fr-btn.fr-dropdown::after { + position: absolute; + width: 0; + height: 0; + border-left: 4px solid transparent; + border-right: 4px solid transparent; + border-top: 4px solid #222222; + right: 4px; + top: 17px; + content: ""; +} +.fr-toolbar .fr-command.fr-btn.fr-disabled, +.fr-popup .fr-command.fr-btn.fr-disabled { + color: #bdbdbd; + cursor: default; +} +.fr-toolbar .fr-command.fr-btn.fr-disabled::after, +.fr-popup .fr-command.fr-btn.fr-disabled::after { + border-top-color: #bdbdbd !important; +} +.fr-toolbar .fr-command.fr-btn.fr-hidden, +.fr-popup .fr-command.fr-btn.fr-hidden { + display: none; +} +.fr-toolbar.fr-disabled .fr-btn, +.fr-popup.fr-disabled .fr-btn, +.fr-toolbar.fr-disabled .fr-btn.fr-active, +.fr-popup.fr-disabled .fr-btn.fr-active { + color: #bdbdbd; +} +.fr-toolbar.fr-disabled .fr-btn.fr-dropdown::after, +.fr-popup.fr-disabled .fr-btn.fr-dropdown::after, +.fr-toolbar.fr-disabled .fr-btn.fr-active.fr-dropdown::after, +.fr-popup.fr-disabled .fr-btn.fr-active.fr-dropdown::after { + border-top-color: #bdbdbd; +} +.fr-toolbar.fr-rtl .fr-command.fr-btn, +.fr-popup.fr-rtl .fr-command.fr-btn { + float: right; +} +.fr-toolbar.fr-inline .fr-command.fr-btn:not(.fr-hidden) { + display: -webkit-inline-flex; + display: -ms-inline-flexbox; + display: inline-flex; + float: none; +} +.fr-desktop .fr-command:hover, +.fr-desktop .fr-command:focus { + outline: 0; + color: #222222; + background: #ebebeb; +} +.fr-desktop .fr-command:hover::after, +.fr-desktop .fr-command:focus::after { + border-top-color: #222222 !important; +} +.fr-desktop .fr-command.fr-selected { + color: #222222; + background: #d6d6d6; +} +.fr-desktop .fr-command.fr-active:hover, +.fr-desktop .fr-command.fr-active:focus { + color: #1e88e5; + background: #ebebeb; +} +.fr-desktop .fr-command.fr-active.fr-selected { + color: #1e88e5; + background: #d6d6d6; +} +.fr-desktop .fr-command.fr-disabled:hover, +.fr-desktop .fr-command.fr-disabled:focus, +.fr-desktop .fr-command.fr-disabled.fr-selected { + background: transparent; +} +.fr-desktop.fr-disabled .fr-command:hover, +.fr-desktop.fr-disabled .fr-command:focus, +.fr-desktop.fr-disabled .fr-command.fr-selected { + background: transparent; +} +.fr-toolbar.fr-mobile .fr-command.fr-blink, +.fr-popup.fr-mobile .fr-command.fr-blink { + background: transparent; +} +.fr-command.fr-btn + .fr-dropdown-menu { + display: inline-block; + position: absolute; + right: auto; + bottom: auto; + height: auto; + z-index: 4; + -webkit-overflow-scrolling: touch; + overflow: hidden; + zoom: 1; + border-radius: 0 0 2px 2px; + -moz-border-radius: 0 0 2px 2px; + -webkit-border-radius: 0 0 2px 2px; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; +} +.fr-command.fr-btn + .fr-dropdown-menu.test-height .fr-dropdown-wrapper { + -webkit-transition: none; + -moz-transition: none; + -ms-transition: none; + -o-transition: none; + height: auto; + max-height: 275px; +} +.fr-command.fr-btn + .fr-dropdown-menu .fr-dropdown-wrapper { + background: #ffffff; + padding: 0; + margin: auto; + display: inline-block; + text-align: left; + position: relative; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + -webkit-transition: max-height 0.2s ease 0s; + -moz-transition: max-height 0.2s ease 0s; + -ms-transition: max-height 0.2s ease 0s; + -o-transition: max-height 0.2s ease 0s; + margin-top: 0; + float: left; + max-height: 0; + height: 0; + margin-top: 0 !important; +} +.fr-command.fr-btn + .fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content { + overflow: auto; + position: relative; + max-height: 275px; +} +.fr-command.fr-btn + .fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list { + list-style-type: none; + margin: 0; + padding: 0; +} +.fr-command.fr-btn + .fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li { + padding: 0; + margin: 0; + font-size: 15px; +} +.fr-command.fr-btn + .fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a { + padding: 0 24px; + line-height: 200%; + display: block; + cursor: pointer; + white-space: nowrap; + color: inherit; + text-decoration: none; +} +.fr-command.fr-btn + .fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-active { + background: #d6d6d6; +} +.fr-command.fr-btn + .fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-disabled { + color: #bdbdbd; + cursor: default; +} +.fr-command.fr-btn:not(.fr-active) + .fr-dropdown-menu { + left: -3000px !important; +} +.fr-command.fr-btn.fr-active + .fr-dropdown-menu { + display: inline-block; + -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 2px 2px 1px rgba(0, 0, 0, 0.14); + -moz-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 2px 2px 1px rgba(0, 0, 0, 0.14); + box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 2px 2px 1px rgba(0, 0, 0, 0.14); +} +.fr-command.fr-btn.fr-active + .fr-dropdown-menu .fr-dropdown-wrapper { + height: auto; + max-height: 275px; +} +.fr-bottom > .fr-command.fr-btn + .fr-dropdown-menu { + border-radius: 2px 2px 0 0; + -moz-border-radius: 2px 2px 0 0; + -webkit-border-radius: 2px 2px 0 0; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; +} +.fr-toolbar.fr-rtl .fr-dropdown-wrapper, +.fr-popup.fr-rtl .fr-dropdown-wrapper { + text-align: right !important; +} +body.prevent-scroll { + overflow: hidden; +} +body.prevent-scroll.fr-mobile { + position: fixed; + -webkit-overflow-scrolling: touch; +} +.fr-modal { + color: #222222; + font-family: Arial, Helvetica, sans-serif; + position: fixed; + overflow-x: auto; + overflow-y: scroll; + top: 0; + left: 0; + bottom: 0; + right: 0; + width: 100%; + z-index: 2147483640; + text-rendering: optimizelegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + text-align: center; + line-height: 1.2; +} +.fr-modal.fr-middle .fr-modal-wrapper { + margin-top: 0; + margin-bottom: 0; + margin-left: auto; + margin-right: auto; + top: 50%; + left: 50%; + -webkit-transform: translate(-50%, -50%); + -moz-transform: translate(-50%, -50%); + -ms-transform: translate(-50%, -50%); + -o-transform: translate(-50%, -50%); + position: absolute; +} +.fr-modal .fr-modal-wrapper { + border-radius: 2px; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; + margin: 20px auto; + display: inline-block; + background: #ffffff; + min-width: 300px; + -webkit-box-shadow: 0 5px 8px rgba(0, 0, 0, 0.19), 0 4px 3px 1px rgba(0, 0, 0, 0.14); + -moz-box-shadow: 0 5px 8px rgba(0, 0, 0, 0.19), 0 4px 3px 1px rgba(0, 0, 0, 0.14); + box-shadow: 0 5px 8px rgba(0, 0, 0, 0.19), 0 4px 3px 1px rgba(0, 0, 0, 0.14); + border: 0px; + border-top: 5px solid #222222; + overflow: hidden; + width: 90%; + position: relative; +} +@media (min-width: 768px) and (max-width: 991px) { + .fr-modal .fr-modal-wrapper { + margin: 30px auto; + width: 70%; + } +} +@media (min-width: 992px) { + .fr-modal .fr-modal-wrapper { + margin: 50px auto; + width: 600px; + } +} +.fr-modal .fr-modal-wrapper .fr-modal-head { + background: #ffffff; + -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 2px 2px 1px rgba(0, 0, 0, 0.14); + -moz-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 2px 2px 1px rgba(0, 0, 0, 0.14); + box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 2px 2px 1px rgba(0, 0, 0, 0.14); + border-bottom: 0px; + overflow: hidden; + position: absolute; + width: 100%; + min-height: 42px; + z-index: 3; + -webkit-transition: height 0.2s ease 0s; + -moz-transition: height 0.2s ease 0s; + -ms-transition: height 0.2s ease 0s; + -o-transition: height 0.2s ease 0s; +} +.fr-modal .fr-modal-wrapper .fr-modal-head .fr-modal-close { + padding: 12px; + width: 20px; + font-size: 16px; + cursor: pointer; + line-height: 18px; + color: #222222; + -webkit-box-sizing: content-box; + -moz-box-sizing: content-box; + box-sizing: content-box; + position: absolute; + top: 0; + right: 0; + -webkit-transition: color 0.2s ease 0s; + -moz-transition: color 0.2s ease 0s; + -ms-transition: color 0.2s ease 0s; + -o-transition: color 0.2s ease 0s; +} +.fr-modal .fr-modal-wrapper .fr-modal-head h4 { + font-size: 18px; + padding: 12px 10px; + margin: 0; + font-weight: 400; + line-height: 18px; + display: inline-block; + float: left; +} +.fr-modal .fr-modal-wrapper div.fr-modal-body { + height: 100%; + min-height: 150px; + overflow-y: scroll; + padding-bottom: 10px; +} +.fr-modal .fr-modal-wrapper div.fr-modal-body:focus { + outline: 0; +} +.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command { + height: 36px; + line-height: 1; + color: #1e88e5; + padding: 10px; + cursor: pointer; + text-decoration: none; + border: none; + background: none; + font-size: 16px; + outline: none; + -webkit-transition: background 0.2s ease 0s; + -moz-transition: background 0.2s ease 0s; + -ms-transition: background 0.2s ease 0s; + -o-transition: background 0.2s ease 0s; + border-radius: 2px; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; +} +.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command + button { + margin-left: 24px; +} +.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:hover, +.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:focus { + background: #ebebeb; + color: #1e88e5; +} +.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:active { + background: #d6d6d6; + color: #1e88e5; +} +.fr-modal .fr-modal-wrapper div.fr-modal-body button::-moz-focus-inner { + border: 0; +} +.fr-desktop .fr-modal-wrapper .fr-modal-head i:hover { + background: #ebebeb; +} +.fr-overlay { + position: fixed; + top: 0; + bottom: 0; + left: 0; + right: 0; + background: #000000; + -webkit-opacity: 0.5; + -moz-opacity: 0.5; + opacity: 0.5; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; + z-index: 2147483639; +} +.fr-popup { + position: absolute; + display: none; + color: #222222; + background: #ffffff; + -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); + -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); + border-radius: 2px; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; + font-family: Arial, Helvetica, sans-serif; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + user-select: none; + -o-user-select: none; + -moz-user-select: none; + -khtml-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + margin-top: 10px; + z-index: 2147483635; + text-align: left; + border: 0px; + border-top: 5px solid #222222; + text-rendering: optimizelegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + line-height: 1.2; +} +.fr-popup .fr-input-focus { + background: #f5f5f5; +} +.fr-popup.fr-above { + margin-top: -10px; + border-top: 0; + border-bottom: 5px solid #222222; + -webkit-box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.12), 0 -1px 1px 1px rgba(0, 0, 0, 0.16); + -moz-box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.12), 0 -1px 1px 1px rgba(0, 0, 0, 0.16); + box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.12), 0 -1px 1px 1px rgba(0, 0, 0, 0.16); +} +.fr-popup.fr-active { + display: block; +} +.fr-popup.fr-hidden { + -webkit-opacity: 0; + -moz-opacity: 0; + opacity: 0; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; +} +.fr-popup.fr-empty { + display: none !important; +} +.fr-popup .fr-hs { + display: block !important; +} +.fr-popup .fr-hs.fr-hidden { + display: none !important; +} +.fr-popup .fr-input-line { + position: relative; + padding: 8px 0; +} +.fr-popup .fr-input-line input[type="text"], +.fr-popup .fr-input-line textarea { + width: 100%; + margin: 0px 0 1px 0; + border: none; + border-bottom: solid 1px #bdbdbd; + color: #222222; + font-size: 14px; + padding: 6px 0 2px; + background: rgba(0, 0, 0, 0); + position: relative; + z-index: 2; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +.fr-popup .fr-input-line input[type="text"]:focus, +.fr-popup .fr-input-line textarea:focus { + border-bottom: solid 2px #1e88e5; + margin-bottom: 0px; +} +.fr-popup .fr-input-line input + label, +.fr-popup .fr-input-line textarea + label { + position: absolute; + top: 0; + left: 0; + font-size: 12px; + color: rgba(0, 0, 0, 0); + -webkit-transition: color 0.2s ease 0s; + -moz-transition: color 0.2s ease 0s; + -ms-transition: color 0.2s ease 0s; + -o-transition: color 0.2s ease 0s; + z-index: 3; + width: 100%; + display: block; + background: #ffffff; +} +.fr-popup .fr-input-line input.fr-not-empty:focus + label, +.fr-popup .fr-input-line textarea.fr-not-empty:focus + label { + color: #1e88e5; +} +.fr-popup .fr-input-line input.fr-not-empty + label, +.fr-popup .fr-input-line textarea.fr-not-empty + label { + color: #808080; +} +.fr-popup input, +.fr-popup textarea { + user-select: text; + -o-user-select: text; + -moz-user-select: text; + -khtml-user-select: text; + -webkit-user-select: text; + -ms-user-select: text; + border-radius: 0; + -moz-border-radius: 0; + -webkit-border-radius: 0; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; + outline: none; +} +.fr-popup textarea { + resize: none; +} +.fr-popup .fr-buttons { + -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); + -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); + padding: 0 2px; + white-space: nowrap; + line-height: 0; + border-bottom: 0px; +} +.fr-popup .fr-buttons::after { + clear: both; + display: block; + content: ""; + height: 0; +} +.fr-popup .fr-buttons .fr-btn { + display: inline-block; + float: none; +} +.fr-popup .fr-buttons .fr-btn i { + float: left; +} +.fr-popup .fr-buttons .fr-separator { + display: inline-block; + float: none; +} +.fr-popup .fr-layer { + width: 225px; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + margin: 10px; + display: none; +} +@media (min-width: 768px) { + .fr-popup .fr-layer { + width: 300px; + } +} +.fr-popup .fr-layer.fr-active { + display: inline-block; +} +.fr-popup .fr-action-buttons { + z-index: 7; + height: 36px; + text-align: right; +} +.fr-popup .fr-action-buttons button.fr-command { + height: 36px; + line-height: 1; + color: #1e88e5; + padding: 10px; + cursor: pointer; + text-decoration: none; + border: none; + background: none; + font-size: 16px; + outline: none; + -webkit-transition: background 0.2s ease 0s; + -moz-transition: background 0.2s ease 0s; + -ms-transition: background 0.2s ease 0s; + -o-transition: background 0.2s ease 0s; + border-radius: 2px; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; +} +.fr-popup .fr-action-buttons button.fr-command + button { + margin-left: 24px; +} +.fr-popup .fr-action-buttons button.fr-command:hover, +.fr-popup .fr-action-buttons button.fr-command:focus { + background: #ebebeb; + color: #1e88e5; +} +.fr-popup .fr-action-buttons button.fr-command:active { + background: #d6d6d6; + color: #1e88e5; +} +.fr-popup .fr-action-buttons button::-moz-focus-inner { + border: 0; +} +.fr-popup .fr-checkbox { + position: relative; + display: inline-block; + width: 16px; + height: 16px; + line-height: 1; + -webkit-box-sizing: content-box; + -moz-box-sizing: content-box; + box-sizing: content-box; + vertical-align: middle; +} +.fr-popup .fr-checkbox svg { + margin-left: 2px; + margin-top: 2px; + display: none; + width: 10px; + height: 10px; +} +.fr-popup .fr-checkbox span { + border: solid 1px #222222; + border-radius: 2px; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; + width: 16px; + height: 16px; + display: inline-block; + position: relative; + z-index: 1; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + -webkit-transition: background 0.2s ease 0s, border-color 0.2s ease 0s; + -moz-transition: background 0.2s ease 0s, border-color 0.2s ease 0s; + -ms-transition: background 0.2s ease 0s, border-color 0.2s ease 0s; + -o-transition: background 0.2s ease 0s, border-color 0.2s ease 0s; +} +.fr-popup .fr-checkbox input { + position: absolute; + z-index: 2; + -webkit-opacity: 0; + -moz-opacity: 0; + opacity: 0; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; + border: 0 none; + cursor: pointer; + height: 16px; + margin: 0; + padding: 0; + width: 16px; + top: 1px; + left: 1px; +} +.fr-popup .fr-checkbox input:checked + span { + background: #1e88e5; + border-color: #1e88e5; +} +.fr-popup .fr-checkbox input:checked + span svg { + display: block; +} +.fr-popup .fr-checkbox input:focus + span { + border-color: #1e88e5; +} +.fr-popup .fr-checkbox-line { + font-size: 14px; + line-height: 1.4px; + margin-top: 10px; +} +.fr-popup .fr-checkbox-line label { + cursor: pointer; + margin: 0 5px; + vertical-align: middle; +} +.fr-popup.fr-rtl { + direction: rtl; + text-align: right; +} +.fr-popup.fr-rtl .fr-action-buttons { + text-align: left; +} +.fr-popup.fr-rtl .fr-input-line input + label, +.fr-popup.fr-rtl .fr-input-line textarea + label { + left: auto; + right: 0; +} +.fr-popup.fr-rtl .fr-buttons .fr-separator.fr-vs { + float: right; +} +.fr-popup .fr-arrow { + width: 0; + height: 0; + border-left: 5px solid transparent; + border-right: 5px solid transparent; + border-bottom: 5px solid #222222; + position: absolute; + top: -9px; + left: 50%; + margin-left: -5px; + display: inline-block; +} +.fr-popup.fr-above .fr-arrow { + top: auto; + bottom: -9px; + border-bottom: 0; + border-top: 5px solid #222222; +} +.fr-text-edit-layer { + width: 250px; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + display: block !important; +} +.fr-toolbar { + color: #222222; + background: #ffffff; + position: relative; + z-index: 4; + font-family: Arial, Helvetica, sans-serif; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + user-select: none; + -o-user-select: none; + -moz-user-select: none; + -khtml-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + padding: 0 2px; + border-radius: 2px; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; + -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); + -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); + text-align: left; + border: 0px; + border-top: 5px solid #222222; + text-rendering: optimizelegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + line-height: 1.2; +} +.fr-toolbar::after { + clear: both; + display: block; + content: ""; + height: 0; +} +.fr-toolbar.fr-rtl { + text-align: right; +} +.fr-toolbar.fr-inline { + display: none; + white-space: nowrap; + position: absolute; + margin-top: 10px; +} +.fr-toolbar.fr-inline .fr-arrow { + width: 0; + height: 0; + border-left: 5px solid transparent; + border-right: 5px solid transparent; + border-bottom: 5px solid #222222; + position: absolute; + top: -9px; + left: 50%; + margin-left: -5px; + display: inline-block; +} +.fr-toolbar.fr-inline.fr-above { + margin-top: -10px; + -webkit-box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.12), 0 -1px 1px 1px rgba(0, 0, 0, 0.16); + -moz-box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.12), 0 -1px 1px 1px rgba(0, 0, 0, 0.16); + box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.12), 0 -1px 1px 1px rgba(0, 0, 0, 0.16); + border-bottom: 5px solid #222222; + border-top: 0; +} +.fr-toolbar.fr-inline.fr-above .fr-arrow { + top: auto; + bottom: -9px; + border-bottom: 0; + border-top-color: inherit; + border-top-style: solid; + border-top-width: 5px; +} +.fr-toolbar.fr-top { + top: 0; + border-radius: 2px 2px 0 0; + -moz-border-radius: 2px 2px 0 0; + -webkit-border-radius: 2px 2px 0 0; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; + -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); + -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); +} +.fr-toolbar.fr-bottom { + bottom: 0; + border-radius: 0 0 2px 2px; + -moz-border-radius: 0 0 2px 2px; + -webkit-border-radius: 0 0 2px 2px; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; + -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); + -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); +} +.fr-separator { + background: #ebebeb; + display: block; + vertical-align: top; + float: left; +} +.fr-separator + .fr-separator { + display: none; +} +.fr-separator.fr-vs { + height: 34px; + width: 1px; + margin: 2px; +} +.fr-separator.fr-hs { + clear: both; + height: 1px; + width: calc(100% - (2 * 2px)); + margin: 0 2px; +} +.fr-separator.fr-hidden { + display: none !important; +} +.fr-rtl .fr-separator { + float: right; +} +.fr-toolbar.fr-inline .fr-separator.fr-hs { + float: none; +} +.fr-toolbar.fr-inline .fr-separator.fr-vs { + float: none; + display: inline-block; +} +.fr-visibility-helper { + display: none; + margin-left: 0px !important; +} +@media (min-width: 768px) { + .fr-visibility-helper { + margin-left: 1px !important; + } +} +@media (min-width: 992px) { + .fr-visibility-helper { + margin-left: 2px !important; + } +} +@media (min-width: 1200px) { + .fr-visibility-helper { + margin-left: 3px !important; + } +} +.fr-opacity-0 { + -webkit-opacity: 0; + -moz-opacity: 0; + opacity: 0; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; +} +.fr-box { + position: relative; +} +/** + * Postion sticky hacks. + */ +.fr-sticky { + position: -webkit-sticky; + position: -moz-sticky; + position: -ms-sticky; + position: -o-sticky; + position: sticky; +} +.fr-sticky-off { + position: relative; +} +.fr-sticky-on { + position: fixed; +} +.fr-sticky-on.fr-sticky-ios { + position: absolute; + left: 0; + right: 0; + width: auto !important; +} +.fr-sticky-dummy { + display: none; +} +.fr-sticky-on + .fr-sticky-dummy, +.fr-sticky-box > .fr-sticky-dummy { + display: block; +} +span.fr-sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; +} diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/froala_editor.min.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/froala_editor.min.css new file mode 100644 index 0000000..1696bef --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/froala_editor.min.css @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.fr-element,.fr-element:focus{outline:0 solid transparent}.fr-box.fr-basic .fr-element{color:#000;padding:16px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;overflow-x:auto;min-height:52px}.fr-box.fr-basic.fr-rtl .fr-element{text-align:right}.fr-element{background:0 0;position:relative;z-index:2;-webkit-user-select:auto}.fr-element a{user-select:auto;-o-user-select:auto;-moz-user-select:auto;-khtml-user-select:auto;-webkit-user-select:auto;-ms-user-select:auto}.fr-element.fr-disabled{user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none}.fr-element [contenteditable=true]{outline:0 solid transparent}.fr-box a.fr-floating-btn{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);border-radius:100%;-moz-border-radius:100%;-webkit-border-radius:100%;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;height:32px;width:32px;background:#fff;color:#1e88e5;-webkit-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;-moz-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;-ms-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;-o-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;outline:0;left:0;top:0;line-height:32px;-webkit-transform:scale(0);-moz-transform:scale(0);-ms-transform:scale(0);-o-transform:scale(0);text-align:center;display:block;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border:0}.fr-box a.fr-floating-btn svg{-webkit-transition:transform .2s ease 0s;-moz-transition:transform .2s ease 0s;-ms-transition:transform .2s ease 0s;-o-transition:transform .2s ease 0s;fill:#1e88e5}.fr-box a.fr-floating-btn i,.fr-box a.fr-floating-btn svg{font-size:14px;line-height:32px}.fr-box a.fr-floating-btn.fr-btn+.fr-btn{margin-left:10px}.fr-box a.fr-floating-btn:hover{background:#ebebeb;cursor:pointer}.fr-box a.fr-floating-btn:hover svg{fill:#1e88e5}.fr-box .fr-visible a.fr-floating-btn{-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1)}iframe.fr-iframe{width:100%;border:0;position:relative;display:block;z-index:2;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.fr-wrapper{position:relative;z-index:1}.fr-wrapper::after{clear:both;display:block;content:"";height:0}.fr-wrapper .fr-placeholder{position:absolute;font-size:12px;color:#aaa;z-index:1;display:none;top:0;left:0;right:0;overflow:hidden}.fr-wrapper.show-placeholder .fr-placeholder{display:block}.fr-wrapper ::-moz-selection{background:#b5d6fd;color:#000}.fr-wrapper ::selection{background:#b5d6fd;color:#000}.fr-box.fr-basic .fr-wrapper{background:#fff;border:0;border-top:0;top:0;left:0}.fr-box.fr-basic.fr-top .fr-wrapper{border-top:0;border-radius:0 0 2px 2px;-moz-border-radius:0 0 2px 2px;-webkit-border-radius:0 0 2px 2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.fr-box.fr-basic.fr-bottom .fr-wrapper{border-bottom:0;border-radius:2px 2px 0 0;-moz-border-radius:2px 2px 0 0;-webkit-border-radius:2px 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16)}.fr-tooltip{position:absolute;top:0;left:0;padding:0 8px;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);-moz-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);background:#222;color:#fff;font-size:11px;line-height:22px;font-family:Arial,Helvetica,sans-serif;-webkit-transition:opacity .2s ease 0s;-moz-transition:opacity .2s ease 0s;-ms-transition:opacity .2s ease 0s;-o-transition:opacity .2s ease 0s;-webkit-opacity:0;-moz-opacity:0;opacity:0;-ms-filter:"alpha(Opacity=0)";left:-3000px;user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;z-index:2147483647;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fr-tooltip.fr-visible{-webkit-opacity:1;-moz-opacity:1;opacity:1;-ms-filter:"alpha(Opacity=0)"}.fr-toolbar .fr-command.fr-btn,.fr-popup .fr-command.fr-btn{background:0 0;color:#222;-moz-outline:0;outline:0;border:0;line-height:1;cursor:pointer;text-align:left;margin:0 2px;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s;border-radius:0;-moz-border-radius:0;-webkit-border-radius:0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;z-index:2;position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;text-decoration:none;user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;float:left;padding:0;width:38px;height:38px}.fr-toolbar .fr-command.fr-btn::-moz-focus-inner,.fr-popup .fr-command.fr-btn::-moz-focus-inner{border:0;padding:0}.fr-toolbar .fr-command.fr-btn.fr-btn-text,.fr-popup .fr-command.fr-btn.fr-btn-text{width:auto}.fr-toolbar .fr-command.fr-btn i,.fr-popup .fr-command.fr-btn i,.fr-toolbar .fr-command.fr-btn svg,.fr-popup .fr-command.fr-btn svg{display:block;font-size:14px;width:14px;margin:12px;text-align:center;float:none}.fr-toolbar .fr-command.fr-btn span.fr-sr-only,.fr-popup .fr-command.fr-btn span.fr-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.fr-toolbar .fr-command.fr-btn span,.fr-popup .fr-command.fr-btn span{font-size:14px;display:block;line-height:17px;min-width:34px;float:left;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;height:17px;font-weight:700;padding:0 2px}.fr-toolbar .fr-command.fr-btn img,.fr-popup .fr-command.fr-btn img{margin:12px;width:14px}.fr-toolbar .fr-command.fr-btn.fr-active,.fr-popup .fr-command.fr-btn.fr-active{color:#1e88e5;background:0 0}.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-selection,.fr-popup .fr-command.fr-btn.fr-dropdown.fr-selection{width:auto}.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-selection span,.fr-popup .fr-command.fr-btn.fr-dropdown.fr-selection span{font-weight:400}.fr-toolbar .fr-command.fr-btn.fr-dropdown i,.fr-popup .fr-command.fr-btn.fr-dropdown i,.fr-toolbar .fr-command.fr-btn.fr-dropdown span,.fr-popup .fr-command.fr-btn.fr-dropdown span,.fr-toolbar .fr-command.fr-btn.fr-dropdown img,.fr-popup .fr-command.fr-btn.fr-dropdown img,.fr-toolbar .fr-command.fr-btn.fr-dropdown svg,.fr-popup .fr-command.fr-btn.fr-dropdown svg{margin-left:8px;margin-right:16px}.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active,.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active{color:#222;background:#d6d6d6}.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:hover,.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:hover,.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:focus,.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:focus{background:#d6d6d6!important;color:#222!important}.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:hover::after,.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:hover::after,.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:focus::after,.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:focus::after{border-top-color:#222!important}.fr-toolbar .fr-command.fr-btn.fr-dropdown::after,.fr-popup .fr-command.fr-btn.fr-dropdown::after{position:absolute;width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid #222;right:4px;top:17px;content:""}.fr-toolbar .fr-command.fr-btn.fr-disabled,.fr-popup .fr-command.fr-btn.fr-disabled{color:#bdbdbd;cursor:default}.fr-toolbar .fr-command.fr-btn.fr-disabled::after,.fr-popup .fr-command.fr-btn.fr-disabled::after{border-top-color:#bdbdbd!important}.fr-toolbar .fr-command.fr-btn.fr-hidden,.fr-popup .fr-command.fr-btn.fr-hidden{display:none}.fr-toolbar.fr-disabled .fr-btn,.fr-popup.fr-disabled .fr-btn,.fr-toolbar.fr-disabled .fr-btn.fr-active,.fr-popup.fr-disabled .fr-btn.fr-active{color:#bdbdbd}.fr-toolbar.fr-disabled .fr-btn.fr-dropdown::after,.fr-popup.fr-disabled .fr-btn.fr-dropdown::after,.fr-toolbar.fr-disabled .fr-btn.fr-active.fr-dropdown::after,.fr-popup.fr-disabled .fr-btn.fr-active.fr-dropdown::after{border-top-color:#bdbdbd}.fr-toolbar.fr-rtl .fr-command.fr-btn,.fr-popup.fr-rtl .fr-command.fr-btn{float:right}.fr-toolbar.fr-inline .fr-command.fr-btn:not(.fr-hidden){display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;float:none}.fr-desktop .fr-command:hover,.fr-desktop .fr-command:focus{outline:0;color:#222;background:#ebebeb}.fr-desktop .fr-command:hover::after,.fr-desktop .fr-command:focus::after{border-top-color:#222!important}.fr-desktop .fr-command.fr-selected{color:#222;background:#d6d6d6}.fr-desktop .fr-command.fr-active:hover,.fr-desktop .fr-command.fr-active:focus{color:#1e88e5;background:#ebebeb}.fr-desktop .fr-command.fr-active.fr-selected{color:#1e88e5;background:#d6d6d6}.fr-desktop .fr-command.fr-disabled:hover,.fr-desktop .fr-command.fr-disabled:focus,.fr-desktop .fr-command.fr-disabled.fr-selected{background:0 0}.fr-desktop.fr-disabled .fr-command:hover,.fr-desktop.fr-disabled .fr-command:focus,.fr-desktop.fr-disabled .fr-command.fr-selected{background:0 0}.fr-toolbar.fr-mobile .fr-command.fr-blink,.fr-popup.fr-mobile .fr-command.fr-blink{background:0 0}.fr-command.fr-btn+.fr-dropdown-menu{display:inline-block;position:absolute;right:auto;bottom:auto;height:auto;z-index:4;-webkit-overflow-scrolling:touch;overflow:hidden;zoom:1;border-radius:0 0 2px 2px;-moz-border-radius:0 0 2px 2px;-webkit-border-radius:0 0 2px 2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.fr-command.fr-btn+.fr-dropdown-menu.test-height .fr-dropdown-wrapper{-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;height:auto;max-height:275px}.fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper{background:#fff;padding:0;margin:auto;display:inline-block;text-align:left;position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:max-height .2s ease 0s;-moz-transition:max-height .2s ease 0s;-ms-transition:max-height .2s ease 0s;-o-transition:max-height .2s ease 0s;margin-top:0;float:left;max-height:0;height:0;margin-top:0!important}.fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content{overflow:auto;position:relative;max-height:275px}.fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list{list-style-type:none;margin:0;padding:0}.fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li{padding:0;margin:0;font-size:15px}.fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a{padding:0 24px;line-height:200%;display:block;cursor:pointer;white-space:nowrap;color:inherit;text-decoration:none}.fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-active{background:#d6d6d6}.fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-disabled{color:#bdbdbd;cursor:default}.fr-command.fr-btn:not(.fr-active)+.fr-dropdown-menu{left:-3000px!important}.fr-command.fr-btn.fr-active+.fr-dropdown-menu{display:inline-block;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);-moz-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14)}.fr-command.fr-btn.fr-active+.fr-dropdown-menu .fr-dropdown-wrapper{height:auto;max-height:275px}.fr-bottom>.fr-command.fr-btn+.fr-dropdown-menu{border-radius:2px 2px 0 0;-moz-border-radius:2px 2px 0 0;-webkit-border-radius:2px 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.fr-toolbar.fr-rtl .fr-dropdown-wrapper,.fr-popup.fr-rtl .fr-dropdown-wrapper{text-align:right!important}body.prevent-scroll{overflow:hidden}body.prevent-scroll.fr-mobile{position:fixed;-webkit-overflow-scrolling:touch}.fr-modal{color:#222;font-family:Arial,Helvetica,sans-serif;position:fixed;overflow-x:auto;overflow-y:scroll;top:0;left:0;bottom:0;right:0;width:100%;z-index:2147483640;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:center;line-height:1.2}.fr-modal.fr-middle .fr-modal-wrapper{margin-top:0;margin-bottom:0;margin-left:auto;margin-right:auto;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);-o-transform:translate(-50%,-50%);position:absolute}.fr-modal .fr-modal-wrapper{border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;margin:20px auto;display:inline-block;background:#fff;min-width:300px;-webkit-box-shadow:0 5px 8px rgba(0,0,0,.19),0 4px 3px 1px rgba(0,0,0,.14);-moz-box-shadow:0 5px 8px rgba(0,0,0,.19),0 4px 3px 1px rgba(0,0,0,.14);box-shadow:0 5px 8px rgba(0,0,0,.19),0 4px 3px 1px rgba(0,0,0,.14);border:0;border-top:5px solid #222;overflow:hidden;width:90%;position:relative}@media (min-width:768px) and (max-width:991px){.fr-modal .fr-modal-wrapper{margin:30px auto;width:70%}}@media (min-width:992px){.fr-modal .fr-modal-wrapper{margin:50px auto;width:600px}}.fr-modal .fr-modal-wrapper .fr-modal-head{background:#fff;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);-moz-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);border-bottom:0;overflow:hidden;position:absolute;width:100%;min-height:42px;z-index:3;-webkit-transition:height .2s ease 0s;-moz-transition:height .2s ease 0s;-ms-transition:height .2s ease 0s;-o-transition:height .2s ease 0s}.fr-modal .fr-modal-wrapper .fr-modal-head .fr-modal-close{padding:12px;width:20px;font-size:16px;cursor:pointer;line-height:18px;color:#222;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;position:absolute;top:0;right:0;-webkit-transition:color .2s ease 0s;-moz-transition:color .2s ease 0s;-ms-transition:color .2s ease 0s;-o-transition:color .2s ease 0s}.fr-modal .fr-modal-wrapper .fr-modal-head h4{font-size:18px;padding:12px 10px;margin:0;font-weight:400;line-height:18px;display:inline-block;float:left}.fr-modal .fr-modal-wrapper div.fr-modal-body{height:100%;min-height:150px;overflow-y:scroll;padding-bottom:10px}.fr-modal .fr-modal-wrapper div.fr-modal-body:focus{outline:0}.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command{height:36px;line-height:1;color:#1e88e5;padding:10px;cursor:pointer;text-decoration:none;border:0;background:0 0;font-size:16px;outline:0;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command+button{margin-left:24px}.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:hover,.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:focus{background:#ebebeb;color:#1e88e5}.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:active{background:#d6d6d6;color:#1e88e5}.fr-modal .fr-modal-wrapper div.fr-modal-body button::-moz-focus-inner{border:0}.fr-desktop .fr-modal-wrapper .fr-modal-head i:hover{background:#ebebeb}.fr-overlay{position:fixed;top:0;bottom:0;left:0;right:0;background:#000;-webkit-opacity:.5;-moz-opacity:.5;opacity:.5;-ms-filter:"alpha(Opacity=0)";z-index:2147483639}.fr-popup{position:absolute;display:none;color:#222;background:#fff;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;font-family:Arial,Helvetica,sans-serif;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;margin-top:10px;z-index:2147483635;text-align:left;border:0;border-top:5px solid #222;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.2}.fr-popup .fr-input-focus{background:#f5f5f5}.fr-popup.fr-above{margin-top:-10px;border-top:0;border-bottom:5px solid #222;-webkit-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16)}.fr-popup.fr-active{display:block}.fr-popup.fr-hidden{-webkit-opacity:0;-moz-opacity:0;opacity:0;-ms-filter:"alpha(Opacity=0)"}.fr-popup.fr-empty{display:none!important}.fr-popup .fr-hs{display:block!important}.fr-popup .fr-hs.fr-hidden{display:none!important}.fr-popup .fr-input-line{position:relative;padding:8px 0}.fr-popup .fr-input-line input[type=text],.fr-popup .fr-input-line textarea{width:100%;margin:0 0 1px;border:0;border-bottom:solid 1px #bdbdbd;color:#222;font-size:14px;padding:6px 0 2px;background:rgba(0,0,0,0);position:relative;z-index:2;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.fr-popup .fr-input-line input[type=text]:focus,.fr-popup .fr-input-line textarea:focus{border-bottom:solid 2px #1e88e5;margin-bottom:0}.fr-popup .fr-input-line input+label,.fr-popup .fr-input-line textarea+label{position:absolute;top:0;left:0;font-size:12px;color:rgba(0,0,0,0);-webkit-transition:color .2s ease 0s;-moz-transition:color .2s ease 0s;-ms-transition:color .2s ease 0s;-o-transition:color .2s ease 0s;z-index:3;width:100%;display:block;background:#fff}.fr-popup .fr-input-line input.fr-not-empty:focus+label,.fr-popup .fr-input-line textarea.fr-not-empty:focus+label{color:#1e88e5}.fr-popup .fr-input-line input.fr-not-empty+label,.fr-popup .fr-input-line textarea.fr-not-empty+label{color:gray}.fr-popup input,.fr-popup textarea{user-select:text;-o-user-select:text;-moz-user-select:text;-khtml-user-select:text;-webkit-user-select:text;-ms-user-select:text;border-radius:0;-moz-border-radius:0;-webkit-border-radius:0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;outline:0}.fr-popup textarea{resize:none}.fr-popup .fr-buttons{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);padding:0 2px;white-space:nowrap;line-height:0;border-bottom:0}.fr-popup .fr-buttons::after{clear:both;display:block;content:"";height:0}.fr-popup .fr-buttons .fr-btn{display:inline-block;float:none}.fr-popup .fr-buttons .fr-btn i{float:left}.fr-popup .fr-buttons .fr-separator{display:inline-block;float:none}.fr-popup .fr-layer{width:225px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:10px;display:none}@media (min-width:768px){.fr-popup .fr-layer{width:300px}}.fr-popup .fr-layer.fr-active{display:inline-block}.fr-popup .fr-action-buttons{z-index:7;height:36px;text-align:right}.fr-popup .fr-action-buttons button.fr-command{height:36px;line-height:1;color:#1e88e5;padding:10px;cursor:pointer;text-decoration:none;border:0;background:0 0;font-size:16px;outline:0;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.fr-popup .fr-action-buttons button.fr-command+button{margin-left:24px}.fr-popup .fr-action-buttons button.fr-command:hover,.fr-popup .fr-action-buttons button.fr-command:focus{background:#ebebeb;color:#1e88e5}.fr-popup .fr-action-buttons button.fr-command:active{background:#d6d6d6;color:#1e88e5}.fr-popup .fr-action-buttons button::-moz-focus-inner{border:0}.fr-popup .fr-checkbox{position:relative;display:inline-block;width:16px;height:16px;line-height:1;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;vertical-align:middle}.fr-popup .fr-checkbox svg{margin-left:2px;margin-top:2px;display:none;width:10px;height:10px}.fr-popup .fr-checkbox span{border:solid 1px #222;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;width:16px;height:16px;display:inline-block;position:relative;z-index:1;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:background .2s ease 0s,border-color .2s ease 0s;-moz-transition:background .2s ease 0s,border-color .2s ease 0s;-ms-transition:background .2s ease 0s,border-color .2s ease 0s;-o-transition:background .2s ease 0s,border-color .2s ease 0s}.fr-popup .fr-checkbox input{position:absolute;z-index:2;-webkit-opacity:0;-moz-opacity:0;opacity:0;-ms-filter:"alpha(Opacity=0)";border:0 none;cursor:pointer;height:16px;margin:0;padding:0;width:16px;top:1px;left:1px}.fr-popup .fr-checkbox input:checked+span{background:#1e88e5;border-color:#1e88e5}.fr-popup .fr-checkbox input:checked+span svg{display:block}.fr-popup .fr-checkbox input:focus+span{border-color:#1e88e5}.fr-popup .fr-checkbox-line{font-size:14px;line-height:1.4px;margin-top:10px}.fr-popup .fr-checkbox-line label{cursor:pointer;margin:0 5px;vertical-align:middle}.fr-popup.fr-rtl{direction:rtl;text-align:right}.fr-popup.fr-rtl .fr-action-buttons{text-align:left}.fr-popup.fr-rtl .fr-input-line input+label,.fr-popup.fr-rtl .fr-input-line textarea+label{left:auto;right:0}.fr-popup.fr-rtl .fr-buttons .fr-separator.fr-vs{float:right}.fr-popup .fr-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid #222;position:absolute;top:-9px;left:50%;margin-left:-5px;display:inline-block}.fr-popup.fr-above .fr-arrow{top:auto;bottom:-9px;border-bottom:0;border-top:5px solid #222}.fr-text-edit-layer{width:250px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block!important}.fr-toolbar{color:#222;background:#fff;position:relative;z-index:4;font-family:Arial,Helvetica,sans-serif;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;padding:0 2px;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);text-align:left;border:0;border-top:5px solid #222;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.2}.fr-toolbar::after{clear:both;display:block;content:"";height:0}.fr-toolbar.fr-rtl{text-align:right}.fr-toolbar.fr-inline{display:none;white-space:nowrap;position:absolute;margin-top:10px}.fr-toolbar.fr-inline .fr-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid #222;position:absolute;top:-9px;left:50%;margin-left:-5px;display:inline-block}.fr-toolbar.fr-inline.fr-above{margin-top:-10px;-webkit-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);border-bottom:5px solid #222;border-top:0}.fr-toolbar.fr-inline.fr-above .fr-arrow{top:auto;bottom:-9px;border-bottom:0;border-top-color:inherit;border-top-style:solid;border-top-width:5px}.fr-toolbar.fr-top{top:0;border-radius:2px 2px 0 0;-moz-border-radius:2px 2px 0 0;-webkit-border-radius:2px 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.fr-toolbar.fr-bottom{bottom:0;border-radius:0 0 2px 2px;-moz-border-radius:0 0 2px 2px;-webkit-border-radius:0 0 2px 2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.fr-separator{background:#ebebeb;display:block;vertical-align:top;float:left}.fr-separator+.fr-separator{display:none}.fr-separator.fr-vs{height:34px;width:1px;margin:2px}.fr-separator.fr-hs{clear:both;height:1px;width:calc(100% - (2 * 2px));margin:0 2px}.fr-separator.fr-hidden{display:none!important}.fr-rtl .fr-separator{float:right}.fr-toolbar.fr-inline .fr-separator.fr-hs{float:none}.fr-toolbar.fr-inline .fr-separator.fr-vs{float:none;display:inline-block}.fr-visibility-helper{display:none;margin-left:0!important}@media (min-width:768px){.fr-visibility-helper{margin-left:1px!important}}@media (min-width:992px){.fr-visibility-helper{margin-left:2px!important}}@media (min-width:1200px){.fr-visibility-helper{margin-left:3px!important}}.fr-opacity-0{-webkit-opacity:0;-moz-opacity:0;opacity:0;-ms-filter:"alpha(Opacity=0)"}.fr-box{position:relative}.fr-sticky{position:-webkit-sticky;position:-moz-sticky;position:-ms-sticky;position:-o-sticky;position:sticky}.fr-sticky-off{position:relative}.fr-sticky-on{position:fixed}.fr-sticky-on.fr-sticky-ios{position:absolute;left:0;right:0;width:auto!important}.fr-sticky-dummy{display:none}.fr-sticky-on+.fr-sticky-dummy,.fr-sticky-box>.fr-sticky-dummy{display:block}span.fr-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0} \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/froala_editor.pkgd.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/froala_editor.pkgd.css similarity index 100% rename from Mobile.Search.Web/Scripts/froala-editor/css/froala_editor.pkgd.css rename to Mobile.WYSIWYG/Scripts/froala-editor/css/froala_editor.pkgd.css diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/froala_editor.pkgd.min.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/froala_editor.pkgd.min.css similarity index 100% rename from Mobile.Search.Web/Scripts/froala-editor/css/froala_editor.pkgd.min.css rename to Mobile.WYSIWYG/Scripts/froala-editor/css/froala_editor.pkgd.min.css diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/froala_style.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/froala_style.css new file mode 100644 index 0000000..161b6b7 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/froala_style.css @@ -0,0 +1,408 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after { + clear: both; + display: block; + content: ""; + height: 0; +} +.hide-by-clipping { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; +} +img.fr-rounded, +.fr-img-caption.fr-rounded img { + border-radius: 10px; + -moz-border-radius: 10px; + -webkit-border-radius: 10px; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; +} +img.fr-bordered, +.fr-img-caption.fr-bordered img { + border: solid 5px #CCC; +} +img.fr-bordered { + -webkit-box-sizing: content-box; + -moz-box-sizing: content-box; + box-sizing: content-box; +} +.fr-img-caption.fr-bordered img { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +img.fr-shadow, +.fr-img-caption.fr-shadow img { + -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); + -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); +} +.fr-view span[style~="color:"] a { + color: inherit; +} +.fr-view strong { + font-weight: 700; +} +.fr-view table { + border: none; + border-collapse: collapse; + empty-cells: show; + max-width: 100%; +} +.fr-view table.fr-dashed-borders td, +.fr-view table.fr-dashed-borders th { + border-style: dashed; +} +.fr-view table.fr-alternate-rows tbody tr:nth-child(2n) { + background: #f5f5f5; +} +.fr-view table td, +.fr-view table th { + border: 1px solid #dddddd; +} +.fr-view table td:empty, +.fr-view table th:empty { + height: 20px; +} +.fr-view table td.fr-highlighted, +.fr-view table th.fr-highlighted { + border: 1px double red; +} +.fr-view table td.fr-thick, +.fr-view table th.fr-thick { + border-width: 2px; +} +.fr-view table th { + background: #e6e6e6; +} +.fr-view hr { + clear: both; + user-select: none; + -o-user-select: none; + -moz-user-select: none; + -khtml-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + page-break-after: always; +} +.fr-view .fr-file { + position: relative; +} +.fr-view .fr-file::after { + position: relative; + content: "\1F4CE"; + font-weight: normal; +} +.fr-view pre { + white-space: pre-wrap; + word-wrap: break-word; +} +.fr-view[dir="rtl"] blockquote { + border-left: none; + border-right: solid 2px #5e35b1; + margin-right: 0; + padding-right: 5px; + padding-left: 0px; +} +.fr-view[dir="rtl"] blockquote blockquote { + border-color: #00bcd4; +} +.fr-view[dir="rtl"] blockquote blockquote blockquote { + border-color: #43a047; +} +.fr-view blockquote { + border-left: solid 2px #5e35b1; + margin-left: 0; + padding-left: 5px; + color: #5e35b1; +} +.fr-view blockquote blockquote { + border-color: #00bcd4; + color: #00bcd4; +} +.fr-view blockquote blockquote blockquote { + border-color: #43a047; + color: #43a047; +} +.fr-view span.fr-emoticon { + font-weight: normal; + font-family: "Apple Color Emoji", "Segoe UI Emoji", "NotoColorEmoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols"; + display: inline; + line-height: 0; +} +.fr-view span.fr-emoticon.fr-emoticon-img { + background-repeat: no-repeat !important; + font-size: inherit; + height: 1em; + width: 1em; + min-height: 20px; + min-width: 20px; + display: inline-block; + margin: -0.1em 0.1em 0.1em; + line-height: 1; + vertical-align: middle; +} +.fr-view .fr-text-gray { + color: #AAA !important; +} +.fr-view .fr-text-bordered { + border-top: solid 1px #222; + border-bottom: solid 1px #222; + padding: 10px 0; +} +.fr-view .fr-text-spaced { + letter-spacing: 1px; +} +.fr-view .fr-text-uppercase { + text-transform: uppercase; +} +.fr-view img { + position: relative; + max-width: 100%; +} +.fr-view img.fr-dib { + margin: 5px auto; + display: block; + float: none; + vertical-align: top; +} +.fr-view img.fr-dib.fr-fil { + margin-left: 0; + text-align: left; +} +.fr-view img.fr-dib.fr-fir { + margin-right: 0; + text-align: right; +} +.fr-view img.fr-dii { + display: inline-block; + float: none; + vertical-align: bottom; + margin-left: 5px; + margin-right: 5px; + max-width: calc(100% - (2 * 5px)); +} +.fr-view img.fr-dii.fr-fil { + float: left; + margin: 5px 5px 5px 0; + max-width: calc(100% - 5px); +} +.fr-view img.fr-dii.fr-fir { + float: right; + margin: 5px 0 5px 5px; + max-width: calc(100% - 5px); +} +.fr-view span.fr-img-caption { + position: relative; + max-width: 100%; +} +.fr-view span.fr-img-caption.fr-dib { + margin: 5px auto; + display: block; + float: none; + vertical-align: top; +} +.fr-view span.fr-img-caption.fr-dib.fr-fil { + margin-left: 0; + text-align: left; +} +.fr-view span.fr-img-caption.fr-dib.fr-fir { + margin-right: 0; + text-align: right; +} +.fr-view span.fr-img-caption.fr-dii { + display: inline-block; + float: none; + vertical-align: bottom; + margin-left: 5px; + margin-right: 5px; + max-width: calc(100% - (2 * 5px)); +} +.fr-view span.fr-img-caption.fr-dii.fr-fil { + float: left; + margin: 5px 5px 5px 0; + max-width: calc(100% - 5px); +} +.fr-view span.fr-img-caption.fr-dii.fr-fir { + float: right; + margin: 5px 0 5px 5px; + max-width: calc(100% - 5px); +} +.fr-view .fr-video { + text-align: center; + position: relative; +} +.fr-view .fr-video > * { + -webkit-box-sizing: content-box; + -moz-box-sizing: content-box; + box-sizing: content-box; + max-width: 100%; + border: none; +} +.fr-view .fr-video.fr-dvb { + display: block; + clear: both; +} +.fr-view .fr-video.fr-dvb.fr-fvl { + text-align: left; +} +.fr-view .fr-video.fr-dvb.fr-fvr { + text-align: right; +} +.fr-view .fr-video.fr-dvi { + display: inline-block; +} +.fr-view .fr-video.fr-dvi.fr-fvl { + float: left; +} +.fr-view .fr-video.fr-dvi.fr-fvr { + float: right; +} +.fr-view a.fr-strong { + font-weight: 700; +} +.fr-view a.fr-green { + color: green; +} +.fr-view .fr-img-caption { + text-align: center; +} +.fr-view .fr-img-caption .fr-img-wrap { + padding: 0px; + display: inline-block; + margin: auto; + text-align: center; + width: 100%; +} +.fr-view .fr-img-caption .fr-img-wrap img { + display: block; + margin: auto; + width: 100%; +} +.fr-view .fr-img-caption .fr-img-wrap > span { + margin: auto; + display: block; + padding: 5px 5px 10px; + font-size: 14px; + font-weight: initial; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + -webkit-opacity: 0.9; + -moz-opacity: 0.9; + opacity: 0.9; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; + width: 100%; + text-align: center; +} +.fr-view button.fr-rounded, +.fr-view input.fr-rounded, +.fr-view textarea.fr-rounded { + border-radius: 10px; + -moz-border-radius: 10px; + -webkit-border-radius: 10px; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; +} +.fr-view button.fr-large, +.fr-view input.fr-large, +.fr-view textarea.fr-large { + font-size: 24px; +} +/** + * Image style. + */ +a.fr-view.fr-strong { + font-weight: 700; +} +a.fr-view.fr-green { + color: green; +} +/** + * Link style. + */ +img.fr-view { + position: relative; + max-width: 100%; +} +img.fr-view.fr-dib { + margin: 5px auto; + display: block; + float: none; + vertical-align: top; +} +img.fr-view.fr-dib.fr-fil { + margin-left: 0; + text-align: left; +} +img.fr-view.fr-dib.fr-fir { + margin-right: 0; + text-align: right; +} +img.fr-view.fr-dii { + display: inline-block; + float: none; + vertical-align: bottom; + margin-left: 5px; + margin-right: 5px; + max-width: calc(100% - (2 * 5px)); +} +img.fr-view.fr-dii.fr-fil { + float: left; + margin: 5px 5px 5px 0; + max-width: calc(100% - 5px); +} +img.fr-view.fr-dii.fr-fir { + float: right; + margin: 5px 0 5px 5px; + max-width: calc(100% - 5px); +} +span.fr-img-caption.fr-view { + position: relative; + max-width: 100%; +} +span.fr-img-caption.fr-view.fr-dib { + margin: 5px auto; + display: block; + float: none; + vertical-align: top; +} +span.fr-img-caption.fr-view.fr-dib.fr-fil { + margin-left: 0; + text-align: left; +} +span.fr-img-caption.fr-view.fr-dib.fr-fir { + margin-right: 0; + text-align: right; +} +span.fr-img-caption.fr-view.fr-dii { + display: inline-block; + float: none; + vertical-align: bottom; + margin-left: 5px; + margin-right: 5px; + max-width: calc(100% - (2 * 5px)); +} +span.fr-img-caption.fr-view.fr-dii.fr-fil { + float: left; + margin: 5px 5px 5px 0; + max-width: calc(100% - 5px); +} +span.fr-img-caption.fr-view.fr-dii.fr-fir { + float: right; + margin: 5px 0 5px 5px; + max-width: calc(100% - 5px); +} diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/froala_style.min.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/froala_style.min.css new file mode 100644 index 0000000..fa30165 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/froala_style.min.css @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}img.fr-rounded,.fr-img-caption.fr-rounded img{border-radius:10px;-moz-border-radius:10px;-webkit-border-radius:10px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}img.fr-bordered,.fr-img-caption.fr-bordered img{border:solid 5px #CCC}img.fr-bordered{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.fr-img-caption.fr-bordered img{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}img.fr-shadow,.fr-img-caption.fr-shadow img{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.fr-view span[style~="color:"] a{color:inherit}.fr-view strong{font-weight:700}.fr-view table{border:0;border-collapse:collapse;empty-cells:show;max-width:100%}.fr-view table.fr-dashed-borders td,.fr-view table.fr-dashed-borders th{border-style:dashed}.fr-view table.fr-alternate-rows tbody tr:nth-child(2n){background:#f5f5f5}.fr-view table td,.fr-view table th{border:1px solid #ddd}.fr-view table td:empty,.fr-view table th:empty{height:20px}.fr-view table td.fr-highlighted,.fr-view table th.fr-highlighted{border:1px double red}.fr-view table td.fr-thick,.fr-view table th.fr-thick{border-width:2px}.fr-view table th{background:#e6e6e6}.fr-view hr{clear:both;user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;page-break-after:always}.fr-view .fr-file{position:relative}.fr-view .fr-file::after{position:relative;content:"\1F4CE";font-weight:400}.fr-view pre{white-space:pre-wrap;word-wrap:break-word}.fr-view[dir=rtl] blockquote{border-left:0;border-right:solid 2px #5e35b1;margin-right:0;padding-right:5px;padding-left:0}.fr-view[dir=rtl] blockquote blockquote{border-color:#00bcd4}.fr-view[dir=rtl] blockquote blockquote blockquote{border-color:#43a047}.fr-view blockquote{border-left:solid 2px #5e35b1;margin-left:0;padding-left:5px;color:#5e35b1}.fr-view blockquote blockquote{border-color:#00bcd4;color:#00bcd4}.fr-view blockquote blockquote blockquote{border-color:#43a047;color:#43a047}.fr-view span.fr-emoticon{font-weight:400;font-family:"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;display:inline;line-height:0}.fr-view span.fr-emoticon.fr-emoticon-img{background-repeat:no-repeat!important;font-size:inherit;height:1em;width:1em;min-height:20px;min-width:20px;display:inline-block;margin:-.1em .1em .1em;line-height:1;vertical-align:middle}.fr-view .fr-text-gray{color:#AAA!important}.fr-view .fr-text-bordered{border-top:solid 1px #222;border-bottom:solid 1px #222;padding:10px 0}.fr-view .fr-text-spaced{letter-spacing:1px}.fr-view .fr-text-uppercase{text-transform:uppercase}.fr-view img{position:relative;max-width:100%}.fr-view img.fr-dib{margin:5px auto;display:block;float:none;vertical-align:top}.fr-view img.fr-dib.fr-fil{margin-left:0;text-align:left}.fr-view img.fr-dib.fr-fir{margin-right:0;text-align:right}.fr-view img.fr-dii{display:inline-block;float:none;vertical-align:bottom;margin-left:5px;margin-right:5px;max-width:calc(100% - (2 * 5px))}.fr-view img.fr-dii.fr-fil{float:left;margin:5px 5px 5px 0;max-width:calc(100% - 5px)}.fr-view img.fr-dii.fr-fir{float:right;margin:5px 0 5px 5px;max-width:calc(100% - 5px)}.fr-view span.fr-img-caption{position:relative;max-width:100%}.fr-view span.fr-img-caption.fr-dib{margin:5px auto;display:block;float:none;vertical-align:top}.fr-view span.fr-img-caption.fr-dib.fr-fil{margin-left:0;text-align:left}.fr-view span.fr-img-caption.fr-dib.fr-fir{margin-right:0;text-align:right}.fr-view span.fr-img-caption.fr-dii{display:inline-block;float:none;vertical-align:bottom;margin-left:5px;margin-right:5px;max-width:calc(100% - (2 * 5px))}.fr-view span.fr-img-caption.fr-dii.fr-fil{float:left;margin:5px 5px 5px 0;max-width:calc(100% - 5px)}.fr-view span.fr-img-caption.fr-dii.fr-fir{float:right;margin:5px 0 5px 5px;max-width:calc(100% - 5px)}.fr-view .fr-video{text-align:center;position:relative}.fr-view .fr-video>*{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;max-width:100%;border:0}.fr-view .fr-video.fr-dvb{display:block;clear:both}.fr-view .fr-video.fr-dvb.fr-fvl{text-align:left}.fr-view .fr-video.fr-dvb.fr-fvr{text-align:right}.fr-view .fr-video.fr-dvi{display:inline-block}.fr-view .fr-video.fr-dvi.fr-fvl{float:left}.fr-view .fr-video.fr-dvi.fr-fvr{float:right}.fr-view a.fr-strong{font-weight:700}.fr-view a.fr-green{color:green}.fr-view .fr-img-caption{text-align:center}.fr-view .fr-img-caption .fr-img-wrap{padding:0;display:inline-block;margin:auto;text-align:center;width:100%}.fr-view .fr-img-caption .fr-img-wrap img{display:block;margin:auto;width:100%}.fr-view .fr-img-caption .fr-img-wrap>span{margin:auto;display:block;padding:5px 5px 10px;font-size:14px;font-weight:initial;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-opacity:.9;-moz-opacity:.9;opacity:.9;-ms-filter:"alpha(Opacity=0)";width:100%;text-align:center}.fr-view button.fr-rounded,.fr-view input.fr-rounded,.fr-view textarea.fr-rounded{border-radius:10px;-moz-border-radius:10px;-webkit-border-radius:10px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.fr-view button.fr-large,.fr-view input.fr-large,.fr-view textarea.fr-large{font-size:24px}a.fr-view.fr-strong{font-weight:700}a.fr-view.fr-green{color:green}img.fr-view{position:relative;max-width:100%}img.fr-view.fr-dib{margin:5px auto;display:block;float:none;vertical-align:top}img.fr-view.fr-dib.fr-fil{margin-left:0;text-align:left}img.fr-view.fr-dib.fr-fir{margin-right:0;text-align:right}img.fr-view.fr-dii{display:inline-block;float:none;vertical-align:bottom;margin-left:5px;margin-right:5px;max-width:calc(100% - (2 * 5px))}img.fr-view.fr-dii.fr-fil{float:left;margin:5px 5px 5px 0;max-width:calc(100% - 5px)}img.fr-view.fr-dii.fr-fir{float:right;margin:5px 0 5px 5px;max-width:calc(100% - 5px)}span.fr-img-caption.fr-view{position:relative;max-width:100%}span.fr-img-caption.fr-view.fr-dib{margin:5px auto;display:block;float:none;vertical-align:top}span.fr-img-caption.fr-view.fr-dib.fr-fil{margin-left:0;text-align:left}span.fr-img-caption.fr-view.fr-dib.fr-fir{margin-right:0;text-align:right}span.fr-img-caption.fr-view.fr-dii{display:inline-block;float:none;vertical-align:bottom;margin-left:5px;margin-right:5px;max-width:calc(100% - (2 * 5px))}span.fr-img-caption.fr-view.fr-dii.fr-fil{float:left;margin:5px 5px 5px 0;max-width:calc(100% - 5px)}span.fr-img-caption.fr-view.fr-dii.fr-fir{float:right;margin:5px 0 5px 5px;max-width:calc(100% - 5px)} \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/char_counter.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/char_counter.css new file mode 100644 index 0000000..70e72b7 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/char_counter.css @@ -0,0 +1,57 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after { + clear: both; + display: block; + content: ""; + height: 0; +} +.hide-by-clipping { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; +} +.fr-box .fr-counter { + position: absolute; + bottom: 0px; + padding: 5px; + right: 0px; + color: #cccccc; + content: attr(data-chars); + font-size: 15px; + font-family: "Times New Roman", Georgia, Serif; + z-index: 1; + background: #ffffff; + border-top: solid 1px #ebebeb; + border-left: solid 1px #ebebeb; + border-radius: 2px 0 0 0; + -moz-border-radius: 2px 0 0 0; + -webkit-border-radius: 2px 0 0 0; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; +} +.fr-box.fr-rtl .fr-counter { + left: 0px; + right: auto; + border-left: none; + border-right: solid 1px #ebebeb; + border-radius: 0 2px 0 0; + -moz-border-radius: 0 2px 0 0; + -webkit-border-radius: 0 2px 0 0; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; +} +.fr-box.fr-code-view .fr-counter { + display: none; +} diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/char_counter.min.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/char_counter.min.css new file mode 100644 index 0000000..858a65a --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/char_counter.min.css @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.fr-box .fr-counter{position:absolute;bottom:0;padding:5px;right:0;color:#ccc;content:attr(data-chars);font-size:15px;font-family:"Times New Roman",Georgia,Serif;z-index:1;background:#fff;border-top:solid 1px #ebebeb;border-left:solid 1px #ebebeb;border-radius:2px 0 0;-moz-border-radius:2px 0 0;-webkit-border-radius:2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.fr-box.fr-rtl .fr-counter{left:0;right:auto;border-left:0;border-right:solid 1px #ebebeb;border-radius:0 2px 0 0;-moz-border-radius:0 2px 0 0;-webkit-border-radius:0 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.fr-box.fr-code-view .fr-counter{display:none} \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/code_view.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/code_view.css new file mode 100644 index 0000000..937c610 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/code_view.css @@ -0,0 +1,112 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after { + clear: both; + display: block; + content: ""; + height: 0; +} +.hide-by-clipping { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; +} +textarea.fr-code { + display: none; + width: 100%; + resize: none; + -moz-resize: none; + -webkit-resize: none; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + border: none; + padding: 10px; + margin: 0px; + font-family: "Courier New", monospace; + font-size: 14px; + background: #ffffff; + color: #000000; + outline: none; +} +.fr-box.fr-rtl textarea.fr-code { + direction: rtl; +} +.fr-box .CodeMirror { + display: none; +} +.fr-box.fr-code-view textarea.fr-code { + display: block; +} +.fr-box.fr-code-view.fr-inline { + -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); + -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); +} +.fr-box.fr-code-view .fr-element, +.fr-box.fr-code-view .fr-placeholder, +.fr-box.fr-code-view .fr-iframe { + display: none; +} +.fr-box.fr-code-view .CodeMirror { + display: block; +} +.fr-box.fr-inline.fr-code-view .fr-command.fr-btn.html-switch { + display: block; +} +.fr-box.fr-inline .fr-command.fr-btn.html-switch { + position: absolute; + top: 0; + right: 0; + -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); + -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); + display: none; + background: #ffffff; + color: #222222; + -moz-outline: 0; + outline: 0; + border: 0; + line-height: 1; + cursor: pointer; + text-align: left; + padding: 12px 12px; + -webkit-transition: background 0.2s ease 0s; + -moz-transition: background 0.2s ease 0s; + -ms-transition: background 0.2s ease 0s; + -o-transition: background 0.2s ease 0s; + border-radius: 0; + -moz-border-radius: 0; + -webkit-border-radius: 0; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; + z-index: 2; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + text-decoration: none; + user-select: none; + -o-user-select: none; + -moz-user-select: none; + -khtml-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; +} +.fr-box.fr-inline .fr-command.fr-btn.html-switch i { + font-size: 14px; + width: 14px; + text-align: center; +} +.fr-box.fr-inline .fr-command.fr-btn.html-switch.fr-desktop:hover { + background: #ebebeb; +} diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/code_view.min.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/code_view.min.css new file mode 100644 index 0000000..2a37c3c --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/code_view.min.css @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}textarea.fr-code{display:none;width:100%;resize:none;-moz-resize:none;-webkit-resize:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border:0;padding:10px;margin:0;font-family:"Courier New",monospace;font-size:14px;background:#fff;color:#000;outline:0}.fr-box.fr-rtl textarea.fr-code{direction:rtl}.fr-box .CodeMirror{display:none}.fr-box.fr-code-view textarea.fr-code{display:block}.fr-box.fr-code-view.fr-inline{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.fr-box.fr-code-view .fr-element,.fr-box.fr-code-view .fr-placeholder,.fr-box.fr-code-view .fr-iframe{display:none}.fr-box.fr-code-view .CodeMirror{display:block}.fr-box.fr-inline.fr-code-view .fr-command.fr-btn.html-switch{display:block}.fr-box.fr-inline .fr-command.fr-btn.html-switch{position:absolute;top:0;right:0;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);display:none;background:#fff;color:#222;-moz-outline:0;outline:0;border:0;line-height:1;cursor:pointer;text-align:left;padding:12px;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s;border-radius:0;-moz-border-radius:0;-webkit-border-radius:0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;z-index:2;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;text-decoration:none;user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none}.fr-box.fr-inline .fr-command.fr-btn.html-switch i{font-size:14px;width:14px;text-align:center}.fr-box.fr-inline .fr-command.fr-btn.html-switch.fr-desktop:hover{background:#ebebeb} \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/colors.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/colors.css new file mode 100644 index 0000000..00a5c4d --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/colors.css @@ -0,0 +1,155 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after { + clear: both; + display: block; + content: ""; + height: 0; +} +.hide-by-clipping { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; +} +.fr-popup .fr-colors-tabs { + -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); + -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); + margin-bottom: 5px; + line-height: 16px; + margin-left: -2px; + margin-right: -2px; +} +.fr-popup .fr-colors-tabs .fr-colors-tab { + display: inline-block; + width: 50%; + cursor: pointer; + text-align: center; + color: #222222; + font-size: 13px; + padding: 8px 0; + position: relative; +} +.fr-popup .fr-colors-tabs .fr-colors-tab:hover, +.fr-popup .fr-colors-tabs .fr-colors-tab:focus { + color: #1e88e5; +} +.fr-popup .fr-colors-tabs .fr-colors-tab[data-param1="background"]::after { + position: absolute; + bottom: 0; + left: 0; + width: 100%; + height: 2px; + background: #1e88e5; + content: ''; + -webkit-transition: transform 0.2s ease 0s; + -moz-transition: transform 0.2s ease 0s; + -ms-transition: transform 0.2s ease 0s; + -o-transition: transform 0.2s ease 0s; +} +.fr-popup .fr-colors-tabs .fr-colors-tab.fr-selected-tab { + color: #1e88e5; +} +.fr-popup .fr-colors-tabs .fr-colors-tab.fr-selected-tab[data-param1="text"] ~ [data-param1="background"]::after { + -webkit-transform: translate3d(-100%, 0, 0); + -moz-transform: translate3d(-100%, 0, 0); + -ms-transform: translate3d(-100%, 0, 0); + -o-transform: translate3d(-100%, 0, 0); +} +.fr-popup .fr-color-hex-layer { + width: 100%; + margin: 0px; + padding: 10px; +} +.fr-popup .fr-color-hex-layer .fr-input-line { + float: left; + width: calc(100% - 50px); + padding: 8px 0 0; +} +.fr-popup .fr-color-hex-layer .fr-action-buttons { + float: right; + width: 50px; +} +.fr-popup .fr-color-hex-layer .fr-action-buttons button { + background-color: #1e88e5; + color: #FFF; + border-radius: 2px; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; + font-size: 13px; + height: 32px; +} +.fr-popup .fr-color-hex-layer .fr-action-buttons button:hover { + background-color: #166dba; + color: #FFF; +} +.fr-popup .fr-separator + .fr-colors-tabs { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + margin-left: 2px; + margin-right: 2px; +} +.fr-popup .fr-color-set { + line-height: 0; + display: none; +} +.fr-popup .fr-color-set.fr-selected-set { + display: block; +} +.fr-popup .fr-color-set > span { + display: inline-block; + width: 32px; + height: 32px; + position: relative; + z-index: 1; +} +.fr-popup .fr-color-set > span > i, +.fr-popup .fr-color-set > span > svg { + text-align: center; + line-height: 32px; + height: 32px; + width: 32px; + font-size: 13px; + position: absolute; + bottom: 0; + cursor: default; + left: 0; +} +.fr-popup .fr-color-set > span .fr-selected-color { + color: #ffffff; + font-family: FontAwesome; + font-size: 13px; + font-weight: 400; + line-height: 32px; + position: absolute; + top: 0; + bottom: 0; + right: 0; + left: 0; + text-align: center; + cursor: default; +} +.fr-popup .fr-color-set > span:hover, +.fr-popup .fr-color-set > span:focus { + outline: 1px solid #222222; + z-index: 2; +} +.fr-rtl .fr-popup .fr-colors-tabs .fr-colors-tab.fr-selected-tab[data-param1="text"] ~ [data-param1="background"]::after { + -webkit-transform: translate3d(100%, 0, 0); + -moz-transform: translate3d(100%, 0, 0); + -ms-transform: translate3d(100%, 0, 0); + -o-transform: translate3d(100%, 0, 0); +} diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/colors.min.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/colors.min.css new file mode 100644 index 0000000..a35fedc --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/colors.min.css @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.fr-popup .fr-colors-tabs{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);margin-bottom:5px;line-height:16px;margin-left:-2px;margin-right:-2px}.fr-popup .fr-colors-tabs .fr-colors-tab{display:inline-block;width:50%;cursor:pointer;text-align:center;color:#222;font-size:13px;padding:8px 0;position:relative}.fr-popup .fr-colors-tabs .fr-colors-tab:hover,.fr-popup .fr-colors-tabs .fr-colors-tab:focus{color:#1e88e5}.fr-popup .fr-colors-tabs .fr-colors-tab[data-param1=background]::after{position:absolute;bottom:0;left:0;width:100%;height:2px;background:#1e88e5;content:'';-webkit-transition:transform .2s ease 0s;-moz-transition:transform .2s ease 0s;-ms-transition:transform .2s ease 0s;-o-transition:transform .2s ease 0s}.fr-popup .fr-colors-tabs .fr-colors-tab.fr-selected-tab{color:#1e88e5}.fr-popup .fr-colors-tabs .fr-colors-tab.fr-selected-tab[data-param1=text]~[data-param1=background]::after{-webkit-transform:translate3d(-100%,0,0);-moz-transform:translate3d(-100%,0,0);-ms-transform:translate3d(-100%,0,0);-o-transform:translate3d(-100%,0,0)}.fr-popup .fr-color-hex-layer{width:100%;margin:0;padding:10px}.fr-popup .fr-color-hex-layer .fr-input-line{float:left;width:calc(100% - 50px);padding:8px 0 0}.fr-popup .fr-color-hex-layer .fr-action-buttons{float:right;width:50px}.fr-popup .fr-color-hex-layer .fr-action-buttons button{background-color:#1e88e5;color:#FFF;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;font-size:13px;height:32px}.fr-popup .fr-color-hex-layer .fr-action-buttons button:hover{background-color:#166dba;color:#FFF}.fr-popup .fr-separator+.fr-colors-tabs{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;margin-left:2px;margin-right:2px}.fr-popup .fr-color-set{line-height:0;display:none}.fr-popup .fr-color-set.fr-selected-set{display:block}.fr-popup .fr-color-set>span{display:inline-block;width:32px;height:32px;position:relative;z-index:1}.fr-popup .fr-color-set>span>i,.fr-popup .fr-color-set>span>svg{text-align:center;line-height:32px;height:32px;width:32px;font-size:13px;position:absolute;bottom:0;cursor:default;left:0}.fr-popup .fr-color-set>span .fr-selected-color{color:#fff;font-family:FontAwesome;font-size:13px;font-weight:400;line-height:32px;position:absolute;top:0;bottom:0;right:0;left:0;text-align:center;cursor:default}.fr-popup .fr-color-set>span:hover,.fr-popup .fr-color-set>span:focus{outline:1px solid #222;z-index:2}.fr-rtl .fr-popup .fr-colors-tabs .fr-colors-tab.fr-selected-tab[data-param1=text]~[data-param1=background]::after{-webkit-transform:translate3d(100%,0,0);-moz-transform:translate3d(100%,0,0);-ms-transform:translate3d(100%,0,0);-o-transform:translate3d(100%,0,0)} \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/draggable.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/draggable.css new file mode 100644 index 0000000..e45c417 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/draggable.css @@ -0,0 +1,43 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after { + clear: both; + display: block; + content: ""; + height: 0; +} +.hide-by-clipping { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; +} +.fr-drag-helper { + background: #1e88e5; + height: 2px; + margin-top: -1px; + -webkit-opacity: 0.2; + -moz-opacity: 0.2; + opacity: 0.2; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; + position: absolute; + z-index: 2147483640; + display: none; +} +.fr-drag-helper.fr-visible { + display: block; +} +.fr-dragging { + -webkit-opacity: 0.4; + -moz-opacity: 0.4; + opacity: 0.4; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; +} diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/draggable.min.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/draggable.min.css new file mode 100644 index 0000000..0227fbb --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/draggable.min.css @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.fr-drag-helper{background:#1e88e5;height:2px;margin-top:-1px;-webkit-opacity:.2;-moz-opacity:.2;opacity:.2;-ms-filter:"alpha(Opacity=0)";position:absolute;z-index:2147483640;display:none}.fr-drag-helper.fr-visible{display:block}.fr-dragging{-webkit-opacity:.4;-moz-opacity:.4;opacity:.4;-ms-filter:"alpha(Opacity=0)"} \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/emoticons.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/emoticons.css new file mode 100644 index 0000000..e987a8b --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/emoticons.css @@ -0,0 +1,42 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after { + clear: both; + display: block; + content: ""; + height: 0; +} +.hide-by-clipping { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; +} +.fr-popup .fr-emoticon { + display: inline-block; + font-size: 20px; + width: 20px; + padding: 5px; + line-height: 1; + cursor: default; + font-weight: normal; + font-family: "Apple Color Emoji", "Segoe UI Emoji", "NotoColorEmoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols"; + -webkit-box-sizing: content-box; + -moz-box-sizing: content-box; + box-sizing: content-box; +} +.fr-popup .fr-emoticon img { + height: 20px; +} +.fr-popup .fr-link:focus { + outline: 0; + background: #ebebeb; +} diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/emoticons.min.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/emoticons.min.css new file mode 100644 index 0000000..0df9ea2 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/emoticons.min.css @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.fr-popup .fr-emoticon{display:inline-block;font-size:20px;width:20px;padding:5px;line-height:1;cursor:default;font-weight:400;font-family:"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.fr-popup .fr-emoticon img{height:20px}.fr-popup .fr-link:focus{outline:0;background:#ebebeb} \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/file.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/file.css new file mode 100644 index 0000000..b2c6c08 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/file.css @@ -0,0 +1,146 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after { + clear: both; + display: block; + content: ""; + height: 0; +} +.hide-by-clipping { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; +} +.fr-popup .fr-file-upload-layer { + border: dashed 2px #bdbdbd; + padding: 25px 0; + position: relative; + font-size: 14px; + letter-spacing: 1px; + line-height: 140%; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + text-align: center; +} +.fr-popup .fr-file-upload-layer:hover { + background: #ebebeb; +} +.fr-popup .fr-file-upload-layer.fr-drop { + background: #ebebeb; + border-color: #1e88e5; +} +.fr-popup .fr-file-upload-layer .fr-form { + -webkit-opacity: 0; + -moz-opacity: 0; + opacity: 0; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + z-index: 2147483640; + overflow: hidden; + margin: 0 !important; + padding: 0 !important; + width: 100% !important; +} +.fr-popup .fr-file-upload-layer .fr-form input { + cursor: pointer; + position: absolute; + right: 0px; + top: 0px; + bottom: 0px; + width: 500%; + height: 100%; + margin: 0px; + font-size: 400px; +} +.fr-popup .fr-file-progress-bar-layer { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +.fr-popup .fr-file-progress-bar-layer > h3 { + font-size: 16px; + margin: 10px 0; + font-weight: normal; +} +.fr-popup .fr-file-progress-bar-layer > div.fr-action-buttons { + display: none; +} +.fr-popup .fr-file-progress-bar-layer > div.fr-loader { + background: #bcdbf7; + height: 10px; + width: 100%; + margin-top: 20px; + overflow: hidden; + position: relative; +} +.fr-popup .fr-file-progress-bar-layer > div.fr-loader span { + display: block; + height: 100%; + width: 0%; + background: #1e88e5; + -webkit-transition: width 0.2s ease 0s; + -moz-transition: width 0.2s ease 0s; + -ms-transition: width 0.2s ease 0s; + -o-transition: width 0.2s ease 0s; +} +.fr-popup .fr-file-progress-bar-layer > div.fr-loader.fr-indeterminate span { + width: 30% !important; + position: absolute; + top: 0; + -webkit-animation: loading 2s linear infinite; + -moz-animation: loading 2s linear infinite; + -o-animation: loading 2s linear infinite; + animation: loading 2s linear infinite; +} +.fr-popup .fr-file-progress-bar-layer.fr-error > div.fr-loader { + display: none; +} +.fr-popup .fr-file-progress-bar-layer.fr-error > div.fr-action-buttons { + display: block; +} +@keyframes loading { + from { + left: -25%; + } + to { + left: 100%; + } +} +@-webkit-keyframes loading { + from { + left: -25%; + } + to { + left: 100%; + } +} +@-moz-keyframes loading { + from { + left: -25%; + } + to { + left: 100%; + } +} +@-o-keyframes loading { + from { + left: -25%; + } + to { + left: 100%; + } +} diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/file.min.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/file.min.css new file mode 100644 index 0000000..e072e07 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/file.min.css @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.fr-popup .fr-file-upload-layer{border:dashed 2px #bdbdbd;padding:25px 0;position:relative;font-size:14px;letter-spacing:1px;line-height:140%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;text-align:center}.fr-popup .fr-file-upload-layer:hover{background:#ebebeb}.fr-popup .fr-file-upload-layer.fr-drop{background:#ebebeb;border-color:#1e88e5}.fr-popup .fr-file-upload-layer .fr-form{-webkit-opacity:0;-moz-opacity:0;opacity:0;-ms-filter:"alpha(Opacity=0)";position:absolute;top:0;bottom:0;left:0;right:0;z-index:2147483640;overflow:hidden;margin:0!important;padding:0!important;width:100%!important}.fr-popup .fr-file-upload-layer .fr-form input{cursor:pointer;position:absolute;right:0;top:0;bottom:0;width:500%;height:100%;margin:0;font-size:400px}.fr-popup .fr-file-progress-bar-layer{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.fr-popup .fr-file-progress-bar-layer>h3{font-size:16px;margin:10px 0;font-weight:400}.fr-popup .fr-file-progress-bar-layer>div.fr-action-buttons{display:none}.fr-popup .fr-file-progress-bar-layer>div.fr-loader{background:#bcdbf7;height:10px;width:100%;margin-top:20px;overflow:hidden;position:relative}.fr-popup .fr-file-progress-bar-layer>div.fr-loader span{display:block;height:100%;width:0;background:#1e88e5;-webkit-transition:width .2s ease 0s;-moz-transition:width .2s ease 0s;-ms-transition:width .2s ease 0s;-o-transition:width .2s ease 0s}.fr-popup .fr-file-progress-bar-layer>div.fr-loader.fr-indeterminate span{width:30%!important;position:absolute;top:0;-webkit-animation:loading 2s linear infinite;-moz-animation:loading 2s linear infinite;-o-animation:loading 2s linear infinite;animation:loading 2s linear infinite}.fr-popup .fr-file-progress-bar-layer.fr-error>div.fr-loader{display:none}.fr-popup .fr-file-progress-bar-layer.fr-error>div.fr-action-buttons{display:block}@keyframes loading{from{left:-25%}to{left:100%}}@-webkit-keyframes loading{from{left:-25%}to{left:100%}}@-moz-keyframes loading{from{left:-25%}to{left:100%}}@-o-keyframes loading{from{left:-25%}to{left:100%}} \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/fullscreen.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/fullscreen.css new file mode 100644 index 0000000..78ffeb9 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/fullscreen.css @@ -0,0 +1,28 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +body.fr-fullscreen { + overflow: hidden; + height: 100%; + width: 100%; + position: fixed; +} +.fr-box.fr-fullscreen { + margin: 0 !important; + position: fixed; + top: 0; + left: 0; + bottom: 0; + right: 0; + z-index: 2147483630 !important; + width: auto !important; +} +.fr-box.fr-fullscreen .fr-toolbar.fr-top { + top: 0 !important; +} +.fr-box.fr-fullscreen .fr-toolbar.fr-bottom { + bottom: 0 !important; +} diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/fullscreen.min.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/fullscreen.min.css new file mode 100644 index 0000000..022f9d5 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/fullscreen.min.css @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +body.fr-fullscreen{overflow:hidden;height:100%;width:100%;position:fixed}.fr-box.fr-fullscreen{margin:0!important;position:fixed;top:0;left:0;bottom:0;right:0;z-index:2147483630!important;width:auto!important}.fr-box.fr-fullscreen .fr-toolbar.fr-top{top:0!important}.fr-box.fr-fullscreen .fr-toolbar.fr-bottom{bottom:0!important} \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/help.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/help.css new file mode 100644 index 0000000..e91e3e3 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/help.css @@ -0,0 +1,52 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after { + clear: both; + display: block; + content: ""; + height: 0; +} +.hide-by-clipping { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; +} +.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal { + text-align: left; + padding: 20px 20px 10px; +} +.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table { + border-collapse: collapse; + font-size: 14px; + line-height: 1.5; + width: 100%; +} +.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table + table { + margin-top: 20px; +} +.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tr { + border: 0; +} +.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table th, +.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table td { + padding: 6px 0 4px; +} +.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tbody tr { + border-bottom: solid 1px #ebebeb; +} +.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tbody td:first-child { + width: 60%; + color: #646464; +} +.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tbody td:nth-child(n+2) { + letter-spacing: 0.5px; +} diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/help.min.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/help.min.css new file mode 100644 index 0000000..8eac233 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/help.min.css @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal{text-align:left;padding:20px 20px 10px}.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table{border-collapse:collapse;font-size:14px;line-height:1.5;width:100%}.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table+table{margin-top:20px}.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tr{border:0}.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table th,.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table td{padding:6px 0 4px}.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tbody tr{border-bottom:solid 1px #ebebeb}.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tbody td:first-child{width:60%;color:#646464}.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tbody td:nth-child(n+2){letter-spacing:.5px} \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/image.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/image.css new file mode 100644 index 0000000..9313de2 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/image.css @@ -0,0 +1,244 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after { + clear: both; + display: block; + content: ""; + height: 0; +} +.hide-by-clipping { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; +} +.fr-element img { + cursor: pointer; +} +.fr-image-resizer { + position: absolute; + border: solid 1px #1e88e5; + display: none; + user-select: none; + -o-user-select: none; + -moz-user-select: none; + -khtml-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + -webkit-box-sizing: content-box; + -moz-box-sizing: content-box; + box-sizing: content-box; +} +.fr-image-resizer.fr-active { + display: block; +} +.fr-image-resizer .fr-handler { + display: block; + position: absolute; + background: #1e88e5; + border: solid 1px #ffffff; + z-index: 4; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +.fr-image-resizer .fr-handler.fr-hnw { + cursor: nw-resize; +} +.fr-image-resizer .fr-handler.fr-hne { + cursor: ne-resize; +} +.fr-image-resizer .fr-handler.fr-hsw { + cursor: sw-resize; +} +.fr-image-resizer .fr-handler.fr-hse { + cursor: se-resize; +} +.fr-image-resizer .fr-handler { + width: 12px; + height: 12px; +} +.fr-image-resizer .fr-handler.fr-hnw { + left: -6px; + top: -6px; +} +.fr-image-resizer .fr-handler.fr-hne { + right: -6px; + top: -6px; +} +.fr-image-resizer .fr-handler.fr-hsw { + left: -6px; + bottom: -6px; +} +.fr-image-resizer .fr-handler.fr-hse { + right: -6px; + bottom: -6px; +} +@media (min-width: 1200px) { + .fr-image-resizer .fr-handler { + width: 10px; + height: 10px; + } + .fr-image-resizer .fr-handler.fr-hnw { + left: -5px; + top: -5px; + } + .fr-image-resizer .fr-handler.fr-hne { + right: -5px; + top: -5px; + } + .fr-image-resizer .fr-handler.fr-hsw { + left: -5px; + bottom: -5px; + } + .fr-image-resizer .fr-handler.fr-hse { + right: -5px; + bottom: -5px; + } +} +.fr-image-overlay { + position: fixed; + top: 0; + left: 0; + bottom: 0; + right: 0; + z-index: 2147483640; + display: none; +} +.fr-popup .fr-image-upload-layer { + border: dashed 2px #bdbdbd; + padding: 25px 0; + position: relative; + font-size: 14px; + letter-spacing: 1px; + line-height: 140%; + text-align: center; +} +.fr-popup .fr-image-upload-layer:hover { + background: #ebebeb; +} +.fr-popup .fr-image-upload-layer.fr-drop { + background: #ebebeb; + border-color: #1e88e5; +} +.fr-popup .fr-image-upload-layer .fr-form { + -webkit-opacity: 0; + -moz-opacity: 0; + opacity: 0; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + z-index: 2147483640; + overflow: hidden; + margin: 0 !important; + padding: 0 !important; + width: 100% !important; +} +.fr-popup .fr-image-upload-layer .fr-form input { + cursor: pointer; + position: absolute; + right: 0px; + top: 0px; + bottom: 0px; + width: 500%; + height: 100%; + margin: 0px; + font-size: 400px; +} +.fr-popup .fr-image-progress-bar-layer > h3 { + font-size: 16px; + margin: 10px 0; + font-weight: normal; +} +.fr-popup .fr-image-progress-bar-layer > div.fr-action-buttons { + display: none; +} +.fr-popup .fr-image-progress-bar-layer > div.fr-loader { + background: #bcdbf7; + height: 10px; + width: 100%; + margin-top: 20px; + overflow: hidden; + position: relative; +} +.fr-popup .fr-image-progress-bar-layer > div.fr-loader span { + display: block; + height: 100%; + width: 0%; + background: #1e88e5; + -webkit-transition: width 0.2s ease 0s; + -moz-transition: width 0.2s ease 0s; + -ms-transition: width 0.2s ease 0s; + -o-transition: width 0.2s ease 0s; +} +.fr-popup .fr-image-progress-bar-layer > div.fr-loader.fr-indeterminate span { + width: 30% !important; + position: absolute; + top: 0; + -webkit-animation: loading 2s linear infinite; + -moz-animation: loading 2s linear infinite; + -o-animation: loading 2s linear infinite; + animation: loading 2s linear infinite; +} +.fr-popup .fr-image-progress-bar-layer.fr-error > div.fr-loader { + display: none; +} +.fr-popup .fr-image-progress-bar-layer.fr-error > div.fr-action-buttons { + display: block; +} +.fr-image-size-layer .fr-image-group .fr-input-line { + width: calc(50% - 5px); + display: inline-block; +} +.fr-image-size-layer .fr-image-group .fr-input-line + .fr-input-line { + margin-left: 10px; +} +.fr-uploading { + -webkit-opacity: 0.4; + -moz-opacity: 0.4; + opacity: 0.4; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; +} +@keyframes loading { + from { + left: -25%; + } + to { + left: 100%; + } +} +@-webkit-keyframes loading { + from { + left: -25%; + } + to { + left: 100%; + } +} +@-moz-keyframes loading { + from { + left: -25%; + } + to { + left: 100%; + } +} +@-o-keyframes loading { + from { + left: -25%; + } + to { + left: 100%; + } +} diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/image.min.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/image.min.css new file mode 100644 index 0000000..f6a8526 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/image.min.css @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.fr-element img{cursor:pointer}.fr-image-resizer{position:absolute;border:solid 1px #1e88e5;display:none;user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.fr-image-resizer.fr-active{display:block}.fr-image-resizer .fr-handler{display:block;position:absolute;background:#1e88e5;border:solid 1px #fff;z-index:4;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.fr-image-resizer .fr-handler.fr-hnw{cursor:nw-resize}.fr-image-resizer .fr-handler.fr-hne{cursor:ne-resize}.fr-image-resizer .fr-handler.fr-hsw{cursor:sw-resize}.fr-image-resizer .fr-handler.fr-hse{cursor:se-resize}.fr-image-resizer .fr-handler{width:12px;height:12px}.fr-image-resizer .fr-handler.fr-hnw{left:-6px;top:-6px}.fr-image-resizer .fr-handler.fr-hne{right:-6px;top:-6px}.fr-image-resizer .fr-handler.fr-hsw{left:-6px;bottom:-6px}.fr-image-resizer .fr-handler.fr-hse{right:-6px;bottom:-6px}@media (min-width:1200px){.fr-image-resizer .fr-handler{width:10px;height:10px}.fr-image-resizer .fr-handler.fr-hnw{left:-5px;top:-5px}.fr-image-resizer .fr-handler.fr-hne{right:-5px;top:-5px}.fr-image-resizer .fr-handler.fr-hsw{left:-5px;bottom:-5px}.fr-image-resizer .fr-handler.fr-hse{right:-5px;bottom:-5px}}.fr-image-overlay{position:fixed;top:0;left:0;bottom:0;right:0;z-index:2147483640;display:none}.fr-popup .fr-image-upload-layer{border:dashed 2px #bdbdbd;padding:25px 0;position:relative;font-size:14px;letter-spacing:1px;line-height:140%;text-align:center}.fr-popup .fr-image-upload-layer:hover{background:#ebebeb}.fr-popup .fr-image-upload-layer.fr-drop{background:#ebebeb;border-color:#1e88e5}.fr-popup .fr-image-upload-layer .fr-form{-webkit-opacity:0;-moz-opacity:0;opacity:0;-ms-filter:"alpha(Opacity=0)";position:absolute;top:0;bottom:0;left:0;right:0;z-index:2147483640;overflow:hidden;margin:0!important;padding:0!important;width:100%!important}.fr-popup .fr-image-upload-layer .fr-form input{cursor:pointer;position:absolute;right:0;top:0;bottom:0;width:500%;height:100%;margin:0;font-size:400px}.fr-popup .fr-image-progress-bar-layer>h3{font-size:16px;margin:10px 0;font-weight:400}.fr-popup .fr-image-progress-bar-layer>div.fr-action-buttons{display:none}.fr-popup .fr-image-progress-bar-layer>div.fr-loader{background:#bcdbf7;height:10px;width:100%;margin-top:20px;overflow:hidden;position:relative}.fr-popup .fr-image-progress-bar-layer>div.fr-loader span{display:block;height:100%;width:0;background:#1e88e5;-webkit-transition:width .2s ease 0s;-moz-transition:width .2s ease 0s;-ms-transition:width .2s ease 0s;-o-transition:width .2s ease 0s}.fr-popup .fr-image-progress-bar-layer>div.fr-loader.fr-indeterminate span{width:30%!important;position:absolute;top:0;-webkit-animation:loading 2s linear infinite;-moz-animation:loading 2s linear infinite;-o-animation:loading 2s linear infinite;animation:loading 2s linear infinite}.fr-popup .fr-image-progress-bar-layer.fr-error>div.fr-loader{display:none}.fr-popup .fr-image-progress-bar-layer.fr-error>div.fr-action-buttons{display:block}.fr-image-size-layer .fr-image-group .fr-input-line{width:calc(50% - 5px);display:inline-block}.fr-image-size-layer .fr-image-group .fr-input-line+.fr-input-line{margin-left:10px}.fr-uploading{-webkit-opacity:.4;-moz-opacity:.4;opacity:.4;-ms-filter:"alpha(Opacity=0)"}@keyframes loading{from{left:-25%}to{left:100%}}@-webkit-keyframes loading{from{left:-25%}to{left:100%}}@-moz-keyframes loading{from{left:-25%}to{left:100%}}@-o-keyframes loading{from{left:-25%}to{left:100%}} \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/image_manager.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/image_manager.css new file mode 100644 index 0000000..ea0facc --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/image_manager.css @@ -0,0 +1,266 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after { + clear: both; + display: block; + content: ""; + height: 0; +} +.hide-by-clipping { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; +} +.fr-modal-head .fr-modal-head-line::after { + clear: both; + display: block; + content: ""; + height: 0; +} +.fr-modal-head .fr-modal-head-line i.fr-modal-more { + float: left; + opacity: 1; + -webkit-transition: padding 0.2s ease 0s, width 0.2s ease 0s, opacity 0.2s ease 0s; + -moz-transition: padding 0.2s ease 0s, width 0.2s ease 0s, opacity 0.2s ease 0s; + -ms-transition: padding 0.2s ease 0s, width 0.2s ease 0s, opacity 0.2s ease 0s; + -o-transition: padding 0.2s ease 0s, width 0.2s ease 0s, opacity 0.2s ease 0s; + padding: 12px; +} +.fr-modal-head .fr-modal-head-line i.fr-modal-more.fr-not-available { + opacity: 0; + width: 0; + padding: 12px 0; +} +.fr-modal-head .fr-modal-tags { + display: none; + text-align: left; +} +.fr-modal-head .fr-modal-tags a { + display: inline-block; + opacity: 0; + padding: 6px 8px; + margin: 8px 0 8px 8px; + text-decoration: none; + border-radius: 2px; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; + color: #1e88e5; + -webkit-transition: opacity 0.2s ease 0s, background 0.2s ease 0s; + -moz-transition: opacity 0.2s ease 0s, background 0.2s ease 0s; + -ms-transition: opacity 0.2s ease 0s, background 0.2s ease 0s; + -o-transition: opacity 0.2s ease 0s, background 0.2s ease 0s; + cursor: pointer; +} +.fr-modal-head .fr-modal-tags a:focus { + outline: none; +} +.fr-modal-head .fr-modal-tags a.fr-selected-tag { + background: #d6d6d6; +} +div.fr-modal-body .fr-preloader { + display: block; + margin: 50px auto; +} +div.fr-modal-body div.fr-image-list { + text-align: center; + margin: 0 10px; + padding: 0; +} +div.fr-modal-body div.fr-image-list::after { + clear: both; + display: block; + content: ""; + height: 0; +} +div.fr-modal-body div.fr-image-list .fr-list-column { + float: left; + width: calc((100% - 10px) / 2); +} +@media (min-width: 768px) and (max-width: 1199px) { + div.fr-modal-body div.fr-image-list .fr-list-column { + width: calc((100% - 20px) / 3); + } +} +@media (min-width: 1200px) { + div.fr-modal-body div.fr-image-list .fr-list-column { + width: calc((100% - 30px) / 4); + } +} +div.fr-modal-body div.fr-image-list .fr-list-column + .fr-list-column { + margin-left: 10px; +} +div.fr-modal-body div.fr-image-list div.fr-image-container { + position: relative; + width: 100%; + display: block; + -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); + -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); + border-radius: 2px; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; + overflow: hidden; +} +div.fr-modal-body div.fr-image-list div.fr-image-container:first-child { + margin-top: 10px; +} +div.fr-modal-body div.fr-image-list div.fr-image-container + div { + margin-top: 10px; +} +div.fr-modal-body div.fr-image-list div.fr-image-container.fr-image-deleting::after { + position: absolute; + -webkit-opacity: 0.5; + -moz-opacity: 0.5; + opacity: 0.5; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; + -webkit-transition: opacity 0.2s ease 0s; + -moz-transition: opacity 0.2s ease 0s; + -ms-transition: opacity 0.2s ease 0s; + -o-transition: opacity 0.2s ease 0s; + background: #000000; + content: ""; + top: 0; + left: 0; + bottom: 0; + right: 0; + z-index: 2; +} +div.fr-modal-body div.fr-image-list div.fr-image-container.fr-image-deleting::before { + content: attr(data-deleting); + color: #ffffff; + top: 0; + left: 0; + bottom: 0; + right: 0; + margin: auto; + position: absolute; + z-index: 3; + font-size: 15px; + height: 20px; +} +div.fr-modal-body div.fr-image-list div.fr-image-container.fr-empty { + height: 95px; + background: #cccccc; + z-index: 1; +} +div.fr-modal-body div.fr-image-list div.fr-image-container.fr-empty::after { + position: absolute; + margin: auto; + top: 0; + bottom: 0; + left: 0; + right: 0; + content: attr(data-loading); + display: inline-block; + height: 20px; +} +div.fr-modal-body div.fr-image-list div.fr-image-container img { + width: 100%; + vertical-align: middle; + position: relative; + z-index: 2; + -webkit-opacity: 1; + -moz-opacity: 1; + opacity: 1; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; + -webkit-transition: opacity 0.2s ease 0s, filter 0.2s ease 0s; + -moz-transition: opacity 0.2s ease 0s, filter 0.2s ease 0s; + -ms-transition: opacity 0.2s ease 0s, filter 0.2s ease 0s; + -o-transition: opacity 0.2s ease 0s, filter 0.2s ease 0s; + -webkit-transform: translateZ(0); + -moz-transform: translateZ(0); + -ms-transform: translateZ(0); + -o-transform: translateZ(0); +} +div.fr-modal-body div.fr-image-list div.fr-image-container.fr-mobile-selected img { + -webkit-opacity: 0.75; + -moz-opacity: 0.75; + opacity: 0.75; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; +} +div.fr-modal-body div.fr-image-list div.fr-image-container.fr-mobile-selected .fr-delete-img, +div.fr-modal-body div.fr-image-list div.fr-image-container.fr-mobile-selected .fr-insert-img { + display: inline-block; +} +div.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img, +div.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img { + display: none; + top: 50%; + border-radius: 100%; + -moz-border-radius: 100%; + -webkit-border-radius: 100%; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; + -webkit-transition: background 0.2s ease 0s, color 0.2s ease 0s; + -moz-transition: background 0.2s ease 0s, color 0.2s ease 0s; + -ms-transition: background 0.2s ease 0s, color 0.2s ease 0s; + -o-transition: background 0.2s ease 0s, color 0.2s ease 0s; + -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); + -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); + position: absolute; + cursor: pointer; + margin: 0; + width: 36px; + height: 36px; + line-height: 36px; + text-decoration: none; + z-index: 3; +} +div.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img { + background: #b8312f; + color: #ffffff; + left: 50%; + -webkit-transform: translateY(-50%) translateX(25%); + -moz-transform: translateY(-50%) translateX(25%); + -ms-transform: translateY(-50%) translateX(25%); + -o-transform: translateY(-50%) translateX(25%); +} +div.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img { + background: #ffffff; + color: #1e88e5; + left: 50%; + -webkit-transform: translateY(-50%) translateX(-125%); + -moz-transform: translateY(-50%) translateX(-125%); + -ms-transform: translateY(-50%) translateX(-125%); + -o-transform: translateY(-50%) translateX(-125%); +} +.fr-desktop .fr-modal-wrapper .fr-modal-head .fr-modal-tags a:hover { + background: #ebebeb; +} +.fr-desktop .fr-modal-wrapper .fr-modal-head .fr-modal-tags a.fr-selected-tag { + background: #d6d6d6; +} +.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container:hover img { + -webkit-opacity: 0.75; + -moz-opacity: 0.75; + opacity: 0.75; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; +} +.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container:hover .fr-delete-img, +.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container:hover .fr-insert-img { + display: inline-block; +} +.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img:hover { + background: #bf4644; + color: #ffffff; +} +.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img:hover { + background: #ebebeb; +} diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/image_manager.min.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/image_manager.min.css new file mode 100644 index 0000000..b5498ae --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/image_manager.min.css @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.fr-modal-head .fr-modal-head-line::after{clear:both;display:block;content:"";height:0}.fr-modal-head .fr-modal-head-line i.fr-modal-more{float:left;opacity:1;-webkit-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s;-moz-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s;-ms-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s;-o-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s;padding:12px}.fr-modal-head .fr-modal-head-line i.fr-modal-more.fr-not-available{opacity:0;width:0;padding:12px 0}.fr-modal-head .fr-modal-tags{display:none;text-align:left}.fr-modal-head .fr-modal-tags a{display:inline-block;opacity:0;padding:6px 8px;margin:8px 0 8px 8px;text-decoration:none;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;color:#1e88e5;-webkit-transition:opacity .2s ease 0s,background .2s ease 0s;-moz-transition:opacity .2s ease 0s,background .2s ease 0s;-ms-transition:opacity .2s ease 0s,background .2s ease 0s;-o-transition:opacity .2s ease 0s,background .2s ease 0s;cursor:pointer}.fr-modal-head .fr-modal-tags a:focus{outline:0}.fr-modal-head .fr-modal-tags a.fr-selected-tag{background:#d6d6d6}div.fr-modal-body .fr-preloader{display:block;margin:50px auto}div.fr-modal-body div.fr-image-list{text-align:center;margin:0 10px;padding:0}div.fr-modal-body div.fr-image-list::after{clear:both;display:block;content:"";height:0}div.fr-modal-body div.fr-image-list .fr-list-column{float:left;width:calc((100% - 10px) / 2)}@media (min-width:768px) and (max-width:1199px){div.fr-modal-body div.fr-image-list .fr-list-column{width:calc((100% - 20px) / 3)}}@media (min-width:1200px){div.fr-modal-body div.fr-image-list .fr-list-column{width:calc((100% - 30px) / 4)}}div.fr-modal-body div.fr-image-list .fr-list-column+.fr-list-column{margin-left:10px}div.fr-modal-body div.fr-image-list div.fr-image-container{position:relative;width:100%;display:block;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;overflow:hidden}div.fr-modal-body div.fr-image-list div.fr-image-container:first-child{margin-top:10px}div.fr-modal-body div.fr-image-list div.fr-image-container+div{margin-top:10px}div.fr-modal-body div.fr-image-list div.fr-image-container.fr-image-deleting::after{position:absolute;-webkit-opacity:.5;-moz-opacity:.5;opacity:.5;-ms-filter:"alpha(Opacity=0)";-webkit-transition:opacity .2s ease 0s;-moz-transition:opacity .2s ease 0s;-ms-transition:opacity .2s ease 0s;-o-transition:opacity .2s ease 0s;background:#000;content:"";top:0;left:0;bottom:0;right:0;z-index:2}div.fr-modal-body div.fr-image-list div.fr-image-container.fr-image-deleting::before{content:attr(data-deleting);color:#fff;top:0;left:0;bottom:0;right:0;margin:auto;position:absolute;z-index:3;font-size:15px;height:20px}div.fr-modal-body div.fr-image-list div.fr-image-container.fr-empty{height:95px;background:#ccc;z-index:1}div.fr-modal-body div.fr-image-list div.fr-image-container.fr-empty::after{position:absolute;margin:auto;top:0;bottom:0;left:0;right:0;content:attr(data-loading);display:inline-block;height:20px}div.fr-modal-body div.fr-image-list div.fr-image-container img{width:100%;vertical-align:middle;position:relative;z-index:2;-webkit-opacity:1;-moz-opacity:1;opacity:1;-ms-filter:"alpha(Opacity=0)";-webkit-transition:opacity .2s ease 0s,filter .2s ease 0s;-moz-transition:opacity .2s ease 0s,filter .2s ease 0s;-ms-transition:opacity .2s ease 0s,filter .2s ease 0s;-o-transition:opacity .2s ease 0s,filter .2s ease 0s;-webkit-transform:translateZ(0);-moz-transform:translateZ(0);-ms-transform:translateZ(0);-o-transform:translateZ(0)}div.fr-modal-body div.fr-image-list div.fr-image-container.fr-mobile-selected img{-webkit-opacity:.75;-moz-opacity:.75;opacity:.75;-ms-filter:"alpha(Opacity=0)"}div.fr-modal-body div.fr-image-list div.fr-image-container.fr-mobile-selected .fr-delete-img,div.fr-modal-body div.fr-image-list div.fr-image-container.fr-mobile-selected .fr-insert-img{display:inline-block}div.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img,div.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img{display:none;top:50%;border-radius:100%;-moz-border-radius:100%;-webkit-border-radius:100%;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-transition:background .2s ease 0s,color .2s ease 0s;-moz-transition:background .2s ease 0s,color .2s ease 0s;-ms-transition:background .2s ease 0s,color .2s ease 0s;-o-transition:background .2s ease 0s,color .2s ease 0s;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);position:absolute;cursor:pointer;margin:0;width:36px;height:36px;line-height:36px;text-decoration:none;z-index:3}div.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img{background:#b8312f;color:#fff;left:50%;-webkit-transform:translateY(-50%) translateX(25%);-moz-transform:translateY(-50%) translateX(25%);-ms-transform:translateY(-50%) translateX(25%);-o-transform:translateY(-50%) translateX(25%)}div.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img{background:#fff;color:#1e88e5;left:50%;-webkit-transform:translateY(-50%) translateX(-125%);-moz-transform:translateY(-50%) translateX(-125%);-ms-transform:translateY(-50%) translateX(-125%);-o-transform:translateY(-50%) translateX(-125%)}.fr-desktop .fr-modal-wrapper .fr-modal-head .fr-modal-tags a:hover{background:#ebebeb}.fr-desktop .fr-modal-wrapper .fr-modal-head .fr-modal-tags a.fr-selected-tag{background:#d6d6d6}.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container:hover img{-webkit-opacity:.75;-moz-opacity:.75;opacity:.75;-ms-filter:"alpha(Opacity=0)"}.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container:hover .fr-delete-img,.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container:hover .fr-insert-img{display:inline-block}.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img:hover{background:#bf4644;color:#fff}.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img:hover{background:#ebebeb} \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/line_breaker.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/line_breaker.css new file mode 100644 index 0000000..6fd3945 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/line_breaker.css @@ -0,0 +1,37 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after { + clear: both; + display: block; + content: ""; + height: 0; +} +.hide-by-clipping { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; +} +.fr-line-breaker { + cursor: text; + border-top: 1px solid #1e88e5; + position: fixed; + z-index: 2; + display: none; +} +.fr-line-breaker.fr-visible { + display: block; +} +.fr-line-breaker a.fr-floating-btn { + position: absolute; + left: calc(50% - (32px / 2)); + top: -16px; +} diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/line_breaker.min.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/line_breaker.min.css new file mode 100644 index 0000000..6f65c87 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/line_breaker.min.css @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.fr-line-breaker{cursor:text;border-top:1px solid #1e88e5;position:fixed;z-index:2;display:none}.fr-line-breaker.fr-visible{display:block}.fr-line-breaker a.fr-floating-btn{position:absolute;left:calc(50% - (32px / 2));top:-16px} \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/quick_insert.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/quick_insert.css new file mode 100644 index 0000000..a2e7ed4 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/quick_insert.css @@ -0,0 +1,70 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after { + clear: both; + display: block; + content: ""; + height: 0; +} +.hide-by-clipping { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; +} +.fr-quick-insert { + position: absolute; + z-index: 2147483639; + white-space: nowrap; + padding-right: 5px; + margin-left: -5px; + -webkit-box-sizing: content-box; + -moz-box-sizing: content-box; + box-sizing: content-box; +} +.fr-quick-insert.fr-on a.fr-floating-btn svg { + -webkit-transform: rotate(135deg); + -moz-transform: rotate(135deg); + -ms-transform: rotate(135deg); + -o-transform: rotate(135deg); +} +.fr-quick-insert.fr-hidden { + display: none; +} +.fr-qi-helper { + position: absolute; + z-index: 3; + padding-left: 16px; + white-space: nowrap; +} +.fr-qi-helper a.fr-btn.fr-floating-btn { + text-align: center; + display: inline-block; + color: #222222; + -webkit-opacity: 0; + -moz-opacity: 0; + opacity: 0; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; + -webkit-transform: scale(0); + -moz-transform: scale(0); + -ms-transform: scale(0); + -o-transform: scale(0); +} +.fr-qi-helper a.fr-btn.fr-floating-btn.fr-size-1 { + -webkit-opacity: 1; + -moz-opacity: 1; + opacity: 1; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; + -webkit-transform: scale(1); + -moz-transform: scale(1); + -ms-transform: scale(1); + -o-transform: scale(1); +} diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/quick_insert.min.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/quick_insert.min.css new file mode 100644 index 0000000..8954fc3 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/quick_insert.min.css @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.fr-quick-insert{position:absolute;z-index:2147483639;white-space:nowrap;padding-right:5px;margin-left:-5px;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.fr-quick-insert.fr-on a.fr-floating-btn svg{-webkit-transform:rotate(135deg);-moz-transform:rotate(135deg);-ms-transform:rotate(135deg);-o-transform:rotate(135deg)}.fr-quick-insert.fr-hidden{display:none}.fr-qi-helper{position:absolute;z-index:3;padding-left:16px;white-space:nowrap}.fr-qi-helper a.fr-btn.fr-floating-btn{text-align:center;display:inline-block;color:#222;-webkit-opacity:0;-moz-opacity:0;opacity:0;-ms-filter:"alpha(Opacity=0)";-webkit-transform:scale(0);-moz-transform:scale(0);-ms-transform:scale(0);-o-transform:scale(0)}.fr-qi-helper a.fr-btn.fr-floating-btn.fr-size-1{-webkit-opacity:1;-moz-opacity:1;opacity:1;-ms-filter:"alpha(Opacity=0)";-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1)} \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/special_characters.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/special_characters.css new file mode 100644 index 0000000..9de0c96 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/special_characters.css @@ -0,0 +1,51 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after { + clear: both; + display: block; + content: ""; + height: 0; +} +.hide-by-clipping { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; +} +.fr-modal .fr-modal-wrapper .fr-modal-body .fr-special-characters-modal { + text-align: left; + padding: 20px 20px 10px; +} +.fr-modal .fr-modal-wrapper .fr-modal-body .fr-special-characters-modal .fr-special-characters-list { + margin-bottom: 20px; +} +.fr-modal .fr-modal-wrapper .fr-modal-body .fr-special-characters-modal .fr-special-characters-title { + font-weight: bold; + font-size: 14px; + padding: 6px 0 4px; + margin: 0 0 5px; +} +.fr-modal .fr-modal-wrapper .fr-modal-body .fr-special-characters-modal .fr-special-character { + display: inline-block; + font-size: 16px; + width: 20px; + height: 20px; + padding: 5px; + line-height: 20px; + cursor: default; + font-weight: normal; + -webkit-box-sizing: content-box; + -moz-box-sizing: content-box; + box-sizing: content-box; + text-align: center; + border: 1px solid #cccccc; + margin: -1px 0 0 -1px; +} diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/special_characters.min.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/special_characters.min.css new file mode 100644 index 0000000..bfcd36e --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/special_characters.min.css @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.fr-modal .fr-modal-wrapper .fr-modal-body .fr-special-characters-modal{text-align:left;padding:20px 20px 10px}.fr-modal .fr-modal-wrapper .fr-modal-body .fr-special-characters-modal .fr-special-characters-list{margin-bottom:20px}.fr-modal .fr-modal-wrapper .fr-modal-body .fr-special-characters-modal .fr-special-characters-title{font-weight:700;font-size:14px;padding:6px 0 4px;margin:0 0 5px}.fr-modal .fr-modal-wrapper .fr-modal-body .fr-special-characters-modal .fr-special-character{display:inline-block;font-size:16px;width:20px;height:20px;padding:5px;line-height:20px;cursor:default;font-weight:400;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;text-align:center;border:1px solid #ccc;margin:-1px 0 0 -1px} \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/table.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/table.css new file mode 100644 index 0000000..4ee5fae --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/table.css @@ -0,0 +1,181 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after { + clear: both; + display: block; + content: ""; + height: 0; +} +.hide-by-clipping { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; +} +.fr-element table td.fr-selected-cell, +.fr-element table th.fr-selected-cell { + border: 1px double #1e88e5; +} +.fr-element table tr { + user-select: none; + -o-user-select: none; + -moz-user-select: none; + -khtml-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; +} +.fr-element table td, +.fr-element table th { + user-select: text; + -o-user-select: text; + -moz-user-select: text; + -khtml-user-select: text; + -webkit-user-select: text; + -ms-user-select: text; +} +.fr-element .fr-no-selection table td, +.fr-element .fr-no-selection table th { + user-select: none; + -o-user-select: none; + -moz-user-select: none; + -khtml-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; +} +.fr-table-resizer { + cursor: col-resize; + position: absolute; + z-index: 3; + display: none; +} +.fr-table-resizer.fr-moving { + z-index: 2; +} +.fr-table-resizer div { + -webkit-opacity: 0; + -moz-opacity: 0; + opacity: 0; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; + border-right: 1px solid #1e88e5; +} +.fr-no-selection { + user-select: none; + -o-user-select: none; + -moz-user-select: none; + -khtml-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; +} +.fr-popup .fr-table-colors-hex-layer { + width: 100%; + margin: 0px; + padding: 10px; +} +.fr-popup .fr-table-colors-hex-layer .fr-input-line { + float: left; + width: calc(100% - 50px); + padding: 8px 0 0; +} +.fr-popup .fr-table-colors-hex-layer .fr-action-buttons { + float: right; + width: 50px; +} +.fr-popup .fr-table-colors-hex-layer .fr-action-buttons button { + background-color: #1e88e5; + color: #FFF; + border-radius: 2px; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; + font-size: 13px; + height: 32px; +} +.fr-popup .fr-table-colors-hex-layer .fr-action-buttons button:hover { + background-color: #166dba; + color: #FFF; +} +.fr-popup .fr-table-size .fr-table-size-info { + text-align: center; + font-size: 14px; + padding: 8px; +} +.fr-popup .fr-table-size .fr-select-table-size { + line-height: 0; + padding: 0 5px 5px; + white-space: nowrap; +} +.fr-popup .fr-table-size .fr-select-table-size > span { + display: inline-block; + padding: 0px 4px 4px 0; + background: transparent; +} +.fr-popup .fr-table-size .fr-select-table-size > span > span { + display: inline-block; + width: 18px; + height: 18px; + border: 1px solid #dddddd; +} +.fr-popup .fr-table-size .fr-select-table-size > span.hover { + background: transparent; +} +.fr-popup .fr-table-size .fr-select-table-size > span.hover > span { + background: rgba(30, 136, 229, 0.3); + border: solid 1px #1e88e5; +} +.fr-popup .fr-table-size .fr-select-table-size .new-line::after { + clear: both; + display: block; + content: ""; + height: 0; +} +.fr-popup.fr-above .fr-table-size .fr-select-table-size > span { + display: inline-block !important; +} +.fr-popup .fr-table-colors-buttons { + margin-bottom: 5px; +} +.fr-popup .fr-table-colors { + line-height: 0; + display: block; +} +.fr-popup .fr-table-colors > span { + display: inline-block; + width: 32px; + height: 32px; + position: relative; + z-index: 1; +} +.fr-popup .fr-table-colors > span > i { + text-align: center; + line-height: 32px; + height: 32px; + width: 32px; + font-size: 13px; + position: absolute; + bottom: 0; + cursor: default; + left: 0; +} +.fr-popup .fr-table-colors > span:focus { + outline: 1px solid #222222; + z-index: 2; +} +.fr-popup.fr-desktop .fr-table-size .fr-select-table-size > span > span { + width: 12px; + height: 12px; +} +.fr-insert-helper { + position: absolute; + z-index: 9999; + white-space: nowrap; +} diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/table.min.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/table.min.css new file mode 100644 index 0000000..88615dd --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/table.min.css @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.fr-element table td.fr-selected-cell,.fr-element table th.fr-selected-cell{border:1px double #1e88e5}.fr-element table tr{user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none}.fr-element table td,.fr-element table th{user-select:text;-o-user-select:text;-moz-user-select:text;-khtml-user-select:text;-webkit-user-select:text;-ms-user-select:text}.fr-element .fr-no-selection table td,.fr-element .fr-no-selection table th{user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none}.fr-table-resizer{cursor:col-resize;position:absolute;z-index:3;display:none}.fr-table-resizer.fr-moving{z-index:2}.fr-table-resizer div{-webkit-opacity:0;-moz-opacity:0;opacity:0;-ms-filter:"alpha(Opacity=0)";border-right:1px solid #1e88e5}.fr-no-selection{user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none}.fr-popup .fr-table-colors-hex-layer{width:100%;margin:0;padding:10px}.fr-popup .fr-table-colors-hex-layer .fr-input-line{float:left;width:calc(100% - 50px);padding:8px 0 0}.fr-popup .fr-table-colors-hex-layer .fr-action-buttons{float:right;width:50px}.fr-popup .fr-table-colors-hex-layer .fr-action-buttons button{background-color:#1e88e5;color:#FFF;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;font-size:13px;height:32px}.fr-popup .fr-table-colors-hex-layer .fr-action-buttons button:hover{background-color:#166dba;color:#FFF}.fr-popup .fr-table-size .fr-table-size-info{text-align:center;font-size:14px;padding:8px}.fr-popup .fr-table-size .fr-select-table-size{line-height:0;padding:0 5px 5px;white-space:nowrap}.fr-popup .fr-table-size .fr-select-table-size>span{display:inline-block;padding:0 4px 4px 0;background:0 0}.fr-popup .fr-table-size .fr-select-table-size>span>span{display:inline-block;width:18px;height:18px;border:1px solid #ddd}.fr-popup .fr-table-size .fr-select-table-size>span.hover{background:0 0}.fr-popup .fr-table-size .fr-select-table-size>span.hover>span{background:rgba(30,136,229,.3);border:solid 1px #1e88e5}.fr-popup .fr-table-size .fr-select-table-size .new-line::after{clear:both;display:block;content:"";height:0}.fr-popup.fr-above .fr-table-size .fr-select-table-size>span{display:inline-block!important}.fr-popup .fr-table-colors-buttons{margin-bottom:5px}.fr-popup .fr-table-colors{line-height:0;display:block}.fr-popup .fr-table-colors>span{display:inline-block;width:32px;height:32px;position:relative;z-index:1}.fr-popup .fr-table-colors>span>i{text-align:center;line-height:32px;height:32px;width:32px;font-size:13px;position:absolute;bottom:0;cursor:default;left:0}.fr-popup .fr-table-colors>span:focus{outline:1px solid #222;z-index:2}.fr-popup.fr-desktop .fr-table-size .fr-select-table-size>span>span{width:12px;height:12px}.fr-insert-helper{position:absolute;z-index:9999;white-space:nowrap} \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/video.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/video.css new file mode 100644 index 0000000..d24f25f --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/video.css @@ -0,0 +1,231 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after { + clear: both; + display: block; + content: ""; + height: 0; +} +.hide-by-clipping { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; +} +.fr-element .fr-video { + user-select: none; + -o-user-select: none; + -moz-user-select: none; + -khtml-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; +} +.fr-element .fr-video::after { + position: absolute; + content: ''; + z-index: 1; + top: 0; + left: 0; + right: 0; + bottom: 0; + cursor: pointer; + display: block; + background: rgba(0, 0, 0, 0); +} +.fr-element .fr-video.fr-active > * { + z-index: 2; + position: relative; +} +.fr-element .fr-video > * { + -webkit-box-sizing: content-box; + -moz-box-sizing: content-box; + box-sizing: content-box; + max-width: 100%; + border: none; +} +.fr-box .fr-video-resizer { + position: absolute; + border: solid 1px #1e88e5; + display: none; + user-select: none; + -o-user-select: none; + -moz-user-select: none; + -khtml-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; +} +.fr-box .fr-video-resizer.fr-active { + display: block; +} +.fr-box .fr-video-resizer .fr-handler { + display: block; + position: absolute; + background: #1e88e5; + border: solid 1px #ffffff; + z-index: 4; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +.fr-box .fr-video-resizer .fr-handler.fr-hnw { + cursor: nw-resize; +} +.fr-box .fr-video-resizer .fr-handler.fr-hne { + cursor: ne-resize; +} +.fr-box .fr-video-resizer .fr-handler.fr-hsw { + cursor: sw-resize; +} +.fr-box .fr-video-resizer .fr-handler.fr-hse { + cursor: se-resize; +} +.fr-box .fr-video-resizer .fr-handler { + width: 12px; + height: 12px; +} +.fr-box .fr-video-resizer .fr-handler.fr-hnw { + left: -6px; + top: -6px; +} +.fr-box .fr-video-resizer .fr-handler.fr-hne { + right: -6px; + top: -6px; +} +.fr-box .fr-video-resizer .fr-handler.fr-hsw { + left: -6px; + bottom: -6px; +} +.fr-box .fr-video-resizer .fr-handler.fr-hse { + right: -6px; + bottom: -6px; +} +@media (min-width: 1200px) { + .fr-box .fr-video-resizer .fr-handler { + width: 10px; + height: 10px; + } + .fr-box .fr-video-resizer .fr-handler.fr-hnw { + left: -5px; + top: -5px; + } + .fr-box .fr-video-resizer .fr-handler.fr-hne { + right: -5px; + top: -5px; + } + .fr-box .fr-video-resizer .fr-handler.fr-hsw { + left: -5px; + bottom: -5px; + } + .fr-box .fr-video-resizer .fr-handler.fr-hse { + right: -5px; + bottom: -5px; + } +} +.fr-popup .fr-video-size-layer .fr-video-group .fr-input-line { + width: calc(50% - 5px); + display: inline-block; +} +.fr-popup .fr-video-size-layer .fr-video-group .fr-input-line + .fr-input-line { + margin-left: 10px; +} +.fr-popup .fr-video-upload-layer { + border: dashed 2px #bdbdbd; + padding: 25px 0; + position: relative; + font-size: 14px; + letter-spacing: 1px; + line-height: 140%; + text-align: center; +} +.fr-popup .fr-video-upload-layer:hover { + background: #ebebeb; +} +.fr-popup .fr-video-upload-layer.fr-drop { + background: #ebebeb; + border-color: #1e88e5; +} +.fr-popup .fr-video-upload-layer .fr-form { + -webkit-opacity: 0; + -moz-opacity: 0; + opacity: 0; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + z-index: 2147483640; + overflow: hidden; + margin: 0 !important; + padding: 0 !important; + width: 100% !important; +} +.fr-popup .fr-video-upload-layer .fr-form input { + cursor: pointer; + position: absolute; + right: 0px; + top: 0px; + bottom: 0px; + width: 500%; + height: 100%; + margin: 0px; + font-size: 400px; +} +.fr-popup .fr-video-progress-bar-layer > h3 { + font-size: 16px; + margin: 10px 0; + font-weight: normal; +} +.fr-popup .fr-video-progress-bar-layer > div.fr-action-buttons { + display: none; +} +.fr-popup .fr-video-progress-bar-layer > div.fr-loader { + background: #bcdbf7; + height: 10px; + width: 100%; + margin-top: 20px; + overflow: hidden; + position: relative; +} +.fr-popup .fr-video-progress-bar-layer > div.fr-loader span { + display: block; + height: 100%; + width: 0%; + background: #1e88e5; + -webkit-transition: width 0.2s ease 0s; + -moz-transition: width 0.2s ease 0s; + -ms-transition: width 0.2s ease 0s; + -o-transition: width 0.2s ease 0s; +} +.fr-popup .fr-video-progress-bar-layer > div.fr-loader.fr-indeterminate span { + width: 30% !important; + position: absolute; + top: 0; + -webkit-animation: loading 2s linear infinite; + -moz-animation: loading 2s linear infinite; + -o-animation: loading 2s linear infinite; + animation: loading 2s linear infinite; +} +.fr-popup .fr-video-progress-bar-layer.fr-error > div.fr-loader { + display: none; +} +.fr-popup .fr-video-progress-bar-layer.fr-error > div.fr-action-buttons { + display: block; +} +.fr-video-overlay { + position: fixed; + top: 0; + left: 0; + bottom: 0; + right: 0; + z-index: 2147483640; + display: none; +} diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/video.min.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/video.min.css new file mode 100644 index 0000000..bf6ec5c --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/plugins/video.min.css @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.fr-element .fr-video{user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none}.fr-element .fr-video::after{position:absolute;content:'';z-index:1;top:0;left:0;right:0;bottom:0;cursor:pointer;display:block;background:rgba(0,0,0,0)}.fr-element .fr-video.fr-active>*{z-index:2;position:relative}.fr-element .fr-video>*{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;max-width:100%;border:0}.fr-box .fr-video-resizer{position:absolute;border:solid 1px #1e88e5;display:none;user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none}.fr-box .fr-video-resizer.fr-active{display:block}.fr-box .fr-video-resizer .fr-handler{display:block;position:absolute;background:#1e88e5;border:solid 1px #fff;z-index:4;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.fr-box .fr-video-resizer .fr-handler.fr-hnw{cursor:nw-resize}.fr-box .fr-video-resizer .fr-handler.fr-hne{cursor:ne-resize}.fr-box .fr-video-resizer .fr-handler.fr-hsw{cursor:sw-resize}.fr-box .fr-video-resizer .fr-handler.fr-hse{cursor:se-resize}.fr-box .fr-video-resizer .fr-handler{width:12px;height:12px}.fr-box .fr-video-resizer .fr-handler.fr-hnw{left:-6px;top:-6px}.fr-box .fr-video-resizer .fr-handler.fr-hne{right:-6px;top:-6px}.fr-box .fr-video-resizer .fr-handler.fr-hsw{left:-6px;bottom:-6px}.fr-box .fr-video-resizer .fr-handler.fr-hse{right:-6px;bottom:-6px}@media (min-width:1200px){.fr-box .fr-video-resizer .fr-handler{width:10px;height:10px}.fr-box .fr-video-resizer .fr-handler.fr-hnw{left:-5px;top:-5px}.fr-box .fr-video-resizer .fr-handler.fr-hne{right:-5px;top:-5px}.fr-box .fr-video-resizer .fr-handler.fr-hsw{left:-5px;bottom:-5px}.fr-box .fr-video-resizer .fr-handler.fr-hse{right:-5px;bottom:-5px}}.fr-popup .fr-video-size-layer .fr-video-group .fr-input-line{width:calc(50% - 5px);display:inline-block}.fr-popup .fr-video-size-layer .fr-video-group .fr-input-line+.fr-input-line{margin-left:10px}.fr-popup .fr-video-upload-layer{border:dashed 2px #bdbdbd;padding:25px 0;position:relative;font-size:14px;letter-spacing:1px;line-height:140%;text-align:center}.fr-popup .fr-video-upload-layer:hover{background:#ebebeb}.fr-popup .fr-video-upload-layer.fr-drop{background:#ebebeb;border-color:#1e88e5}.fr-popup .fr-video-upload-layer .fr-form{-webkit-opacity:0;-moz-opacity:0;opacity:0;-ms-filter:"alpha(Opacity=0)";position:absolute;top:0;bottom:0;left:0;right:0;z-index:2147483640;overflow:hidden;margin:0!important;padding:0!important;width:100%!important}.fr-popup .fr-video-upload-layer .fr-form input{cursor:pointer;position:absolute;right:0;top:0;bottom:0;width:500%;height:100%;margin:0;font-size:400px}.fr-popup .fr-video-progress-bar-layer>h3{font-size:16px;margin:10px 0;font-weight:400}.fr-popup .fr-video-progress-bar-layer>div.fr-action-buttons{display:none}.fr-popup .fr-video-progress-bar-layer>div.fr-loader{background:#bcdbf7;height:10px;width:100%;margin-top:20px;overflow:hidden;position:relative}.fr-popup .fr-video-progress-bar-layer>div.fr-loader span{display:block;height:100%;width:0;background:#1e88e5;-webkit-transition:width .2s ease 0s;-moz-transition:width .2s ease 0s;-ms-transition:width .2s ease 0s;-o-transition:width .2s ease 0s}.fr-popup .fr-video-progress-bar-layer>div.fr-loader.fr-indeterminate span{width:30%!important;position:absolute;top:0;-webkit-animation:loading 2s linear infinite;-moz-animation:loading 2s linear infinite;-o-animation:loading 2s linear infinite;animation:loading 2s linear infinite}.fr-popup .fr-video-progress-bar-layer.fr-error>div.fr-loader{display:none}.fr-popup .fr-video-progress-bar-layer.fr-error>div.fr-action-buttons{display:block}.fr-video-overlay{position:fixed;top:0;left:0;bottom:0;right:0;z-index:2147483640;display:none} \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/themes/dark.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/themes/dark.css similarity index 100% rename from Mobile.Search.Web/Scripts/froala-editor/css/themes/dark.css rename to Mobile.WYSIWYG/Scripts/froala-editor/css/themes/dark.css diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/themes/dark.min.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/themes/dark.min.css new file mode 100644 index 0000000..1ef9317 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/themes/dark.min.css @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.dark-theme.fr-box.fr-basic .fr-element{color:#000;padding:16px;overflow-x:auto;min-height:52px}.dark-theme .fr-element{-webkit-user-select:auto}.dark-theme.fr-box a.fr-floating-btn{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);height:32px;width:32px;background:#353535;color:#42a5f5;-webkit-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;-moz-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;-ms-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;-o-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;left:0;top:0;line-height:32px;border:0}.dark-theme.fr-box a.fr-floating-btn svg{-webkit-transition:transform .2s ease 0s;-moz-transition:transform .2s ease 0s;-ms-transition:transform .2s ease 0s;-o-transition:transform .2s ease 0s;fill:#42a5f5}.dark-theme.fr-box a.fr-floating-btn i,.dark-theme.fr-box a.fr-floating-btn svg{font-size:14px;line-height:32px}.dark-theme.fr-box a.fr-floating-btn:hover{background:#3d3d3d}.dark-theme.fr-box a.fr-floating-btn:hover svg{fill:#42a5f5}.dark-theme .fr-wrapper .fr-placeholder{font-size:12px;color:#aaa;top:0;left:0;right:0}.dark-theme .fr-wrapper ::-moz-selection{background:#b5d6fd;color:#000}.dark-theme .fr-wrapper ::selection{background:#b5d6fd;color:#000}.dark-theme.fr-box.fr-basic .fr-wrapper{background:#fff;border:0;border-top:0;top:0;left:0}.dark-theme.fr-box.fr-basic.fr-top .fr-wrapper{border-top:0;border-radius:0 0 2px 2px;-moz-border-radius:0 0 2px 2px;-webkit-border-radius:0 0 2px 2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.dark-theme.fr-box.fr-basic.fr-bottom .fr-wrapper{border-bottom:0;border-radius:2px 2px 0 0;-moz-border-radius:2px 2px 0 0;-webkit-border-radius:2px 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16)}.dark-theme .fr-sticky-on.fr-sticky-ios{left:0;right:0}.dark-theme.fr-box .fr-counter{color:#aaa;background:#fff;border-top:solid 1px #ebebeb;border-left:solid 1px #ebebeb;border-radius:2px 0 0;-moz-border-radius:2px 0 0;-webkit-border-radius:2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.dark-theme.fr-box.fr-rtl .fr-counter{right:auto;border-right:solid 1px #ebebeb;border-radius:0 2px 0 0;-moz-border-radius:0 2px 0 0;-webkit-border-radius:0 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.dark-theme textarea.fr-code{background:#fff;color:#000}.dark-theme.fr-box.fr-code-view.fr-inline{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.dark-theme.fr-box.fr-inline .fr-command.fr-btn.html-switch{top:0;right:0;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);background:#fff;color:#fff;-moz-outline:0;outline:0;border:0;padding:12px;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s}.dark-theme.fr-box.fr-inline .fr-command.fr-btn.html-switch i{font-size:14px;width:14px}.dark-theme.fr-box.fr-inline .fr-command.fr-btn.html-switch.fr-desktop:hover{background:#3d3d3d}.dark-theme.fr-popup .fr-colors-tabs{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.dark-theme.fr-popup .fr-colors-tabs .fr-colors-tab{color:#fff;padding:8px 0}.dark-theme.fr-popup .fr-colors-tabs .fr-colors-tab:hover,.dark-theme.fr-popup .fr-colors-tabs .fr-colors-tab:focus{color:#42a5f5}.dark-theme.fr-popup .fr-colors-tabs .fr-colors-tab[data-param1=background]::after{bottom:0;left:0;background:#42a5f5;-webkit-transition:transform .2s ease 0s;-moz-transition:transform .2s ease 0s;-ms-transition:transform .2s ease 0s;-o-transition:transform .2s ease 0s}.dark-theme.fr-popup .fr-colors-tabs .fr-colors-tab.fr-selected-tab{color:#42a5f5}.dark-theme.fr-popup .fr-color-hex-layer .fr-input-line{padding:8px 0 0}.dark-theme.fr-popup .fr-color-hex-layer .fr-action-buttons button{background-color:#42a5f5;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.dark-theme.fr-popup .fr-color-hex-layer .fr-action-buttons button:hover{background-color:#128ef2}.dark-theme.fr-popup .fr-color-set{line-height:0}.dark-theme.fr-popup .fr-color-set>span>i,.dark-theme.fr-popup .fr-color-set>span>svg{bottom:0;left:0}.dark-theme.fr-popup .fr-color-set>span .fr-selected-color{color:#fff;font-weight:400;top:0;bottom:0;right:0;left:0}.dark-theme.fr-popup .fr-color-set>span:hover,.dark-theme.fr-popup .fr-color-set>span:focus{outline:1px solid #fff}.dark-theme .fr-drag-helper{background:#42a5f5;z-index:2147483640}.dark-theme.fr-popup .fr-link:focus{outline:0;background:#3d3d3d}.dark-theme.fr-popup .fr-file-upload-layer{border:dashed 2px gray;padding:25px 0}.dark-theme.fr-popup .fr-file-upload-layer:hover{background:#3d3d3d}.dark-theme.fr-popup .fr-file-upload-layer.fr-drop{background:#3d3d3d;border-color:#42a5f5}.dark-theme.fr-popup .fr-file-upload-layer .fr-form{top:0;bottom:0;left:0;right:0;z-index:2147483640}.dark-theme.fr-popup .fr-file-progress-bar-layer>h3{margin:10px 0}.dark-theme.fr-popup .fr-file-progress-bar-layer>div.fr-loader{background:#c6e4fc}.dark-theme.fr-popup .fr-file-progress-bar-layer>div.fr-loader span{background:#42a5f5;-webkit-transition:width .2s ease 0s;-moz-transition:width .2s ease 0s;-ms-transition:width .2s ease 0s;-o-transition:width .2s ease 0s}.dark-theme.fr-popup .fr-file-progress-bar-layer>div.fr-loader.fr-indeterminate span{top:0}.dark-theme.fr-box.fr-fullscreen{top:0;left:0;bottom:0;right:0}.dark-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tr{border:0}.dark-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tbody tr{border-bottom:solid 1px #595959}.dark-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tbody td:first-child{color:#fff}.dark-theme .fr-image-resizer{border:solid 1px #42a5f5}.dark-theme .fr-image-resizer .fr-handler{background:#42a5f5;border:solid 1px #fff}.dark-theme .fr-image-resizer .fr-handler{width:12px;height:12px}.dark-theme .fr-image-resizer .fr-handler.fr-hnw{left:-6px;top:-6px}.dark-theme .fr-image-resizer .fr-handler.fr-hne{right:-6px;top:-6px}.dark-theme .fr-image-resizer .fr-handler.fr-hsw{left:-6px;bottom:-6px}.dark-theme .fr-image-resizer .fr-handler.fr-hse{right:-6px;bottom:-6px}@media (min-width:1200px){.dark-theme .fr-image-resizer .fr-handler{width:10px;height:10px}.dark-theme .fr-image-resizer .fr-handler.fr-hnw{left:-5px;top:-5px}.dark-theme .fr-image-resizer .fr-handler.fr-hne{right:-5px;top:-5px}.dark-theme .fr-image-resizer .fr-handler.fr-hsw{left:-5px;bottom:-5px}.dark-theme .fr-image-resizer .fr-handler.fr-hse{right:-5px;bottom:-5px}}.dark-theme.fr-image-overlay{top:0;left:0;bottom:0;right:0;z-index:2147483640}.dark-theme.fr-popup .fr-image-upload-layer{border:dashed 2px gray;padding:25px 0}.dark-theme.fr-popup .fr-image-upload-layer:hover{background:#3d3d3d}.dark-theme.fr-popup .fr-image-upload-layer.fr-drop{background:#3d3d3d;border-color:#42a5f5}.dark-theme.fr-popup .fr-image-upload-layer .fr-form{top:0;bottom:0;left:0;right:0;z-index:2147483640}.dark-theme.fr-popup .fr-image-progress-bar-layer>h3{margin:10px 0}.dark-theme.fr-popup .fr-image-progress-bar-layer>div.fr-loader{background:#c6e4fc}.dark-theme.fr-popup .fr-image-progress-bar-layer>div.fr-loader span{background:#42a5f5;-webkit-transition:width .2s ease 0s;-moz-transition:width .2s ease 0s;-ms-transition:width .2s ease 0s;-o-transition:width .2s ease 0s}.dark-theme.fr-popup .fr-image-progress-bar-layer>div.fr-loader.fr-indeterminate span{top:0}.dark-theme.fr-modal-head .fr-modal-head-line i.fr-modal-more{-webkit-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s;-moz-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s;-ms-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s;-o-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s}.dark-theme.fr-modal-head .fr-modal-head-line i.fr-modal-more.fr-not-available{opacity:0;width:0;padding:12px 0}.dark-theme.fr-modal-head .fr-modal-tags a{opacity:0;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;color:#42a5f5;-webkit-transition:opacity .2s ease 0s,background .2s ease 0s;-moz-transition:opacity .2s ease 0s,background .2s ease 0s;-ms-transition:opacity .2s ease 0s,background .2s ease 0s;-o-transition:opacity .2s ease 0s,background .2s ease 0s}.dark-theme.fr-modal-head .fr-modal-tags a.fr-selected-tag{background:#2e2e2e}.dark-themediv.fr-modal-body .fr-preloader{margin:50px auto}.dark-themediv.fr-modal-body div.fr-image-list{padding:0}.dark-themediv.fr-modal-body div.fr-image-list div.fr-image-container{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.dark-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-image-deleting::after{-webkit-transition:opacity .2s ease 0s;-moz-transition:opacity .2s ease 0s;-ms-transition:opacity .2s ease 0s;-o-transition:opacity .2s ease 0s;background:#000;top:0;left:0;bottom:0;right:0}.dark-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-image-deleting::before{color:#fff;top:0;left:0;bottom:0;right:0;margin:auto}.dark-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-empty{background:#aaa}.dark-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-empty::after{margin:auto;top:0;bottom:0;left:0;right:0}.dark-themediv.fr-modal-body div.fr-image-list div.fr-image-container img{-webkit-transition:opacity .2s ease 0s,filter .2s ease 0s;-moz-transition:opacity .2s ease 0s,filter .2s ease 0s;-ms-transition:opacity .2s ease 0s,filter .2s ease 0s;-o-transition:opacity .2s ease 0s,filter .2s ease 0s}.dark-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img,.dark-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img{-webkit-transition:background .2s ease 0s,color .2s ease 0s;-moz-transition:background .2s ease 0s,color .2s ease 0s;-ms-transition:background .2s ease 0s,color .2s ease 0s;-o-transition:background .2s ease 0s,color .2s ease 0s;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);margin:0}.dark-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img{background:#b8312f;color:#fff}.dark-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img{background:#353535;color:#42a5f5}.dark-theme.dark-theme.fr-desktop .fr-modal-wrapper .fr-modal-head .fr-modal-tags a:hover{background:#3d3d3d}.dark-theme.dark-theme.fr-desktop .fr-modal-wrapper .fr-modal-head .fr-modal-tags a.fr-selected-tag{background:#2e2e2e}.dark-theme.dark-theme.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img:hover{background:#bf4644;color:#fff}.dark-theme.dark-theme.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img:hover{background:#3d3d3d}.dark-theme .fr-line-breaker{border-top:1px solid #42a5f5}.dark-theme .fr-line-breaker a.fr-floating-btn{left:calc(50% - (32px / 2));top:-16px}.dark-theme .fr-qi-helper{padding-left:16px}.dark-theme .fr-qi-helper a.fr-btn.fr-floating-btn{color:#fff}.dark-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-special-characters-modal .fr-special-character{border:1px solid #aaa}.dark-theme .fr-element table td.fr-selected-cell,.dark-theme .fr-element table th.fr-selected-cell{border:1px double #42a5f5}.dark-theme .fr-table-resizer div{border-right:1px solid #42a5f5}.dark-theme.fr-popup .fr-table-colors-hex-layer .fr-input-line{padding:8px 0 0}.dark-theme.fr-popup .fr-table-colors-hex-layer .fr-action-buttons button{background-color:#42a5f5;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.dark-theme.fr-popup .fr-table-colors-hex-layer .fr-action-buttons button:hover{background-color:#128ef2}.dark-theme.fr-popup .fr-table-size .fr-select-table-size{line-height:0}.dark-theme.fr-popup .fr-table-size .fr-select-table-size>span{padding:0 4px 4px 0}.dark-theme.fr-popup .fr-table-size .fr-select-table-size>span>span{border:1px solid #ddd}.dark-theme.fr-popup .fr-table-size .fr-select-table-size>span.hover>span{background:rgba(66,165,245,.3);border:solid 1px #42a5f5}.dark-theme.fr-popup .fr-table-colors{line-height:0}.dark-theme.fr-popup .fr-table-colors>span>i{bottom:0;left:0}.dark-theme.fr-popup .fr-table-colors>span:focus{outline:1px solid #fff}.dark-theme .fr-element .fr-video::after{top:0;left:0;right:0;bottom:0}.dark-theme.fr-box .fr-video-resizer{border:solid 1px #42a5f5}.dark-theme.fr-box .fr-video-resizer .fr-handler{background:#42a5f5;border:solid 1px #fff}.dark-theme.fr-box .fr-video-resizer .fr-handler{width:12px;height:12px}.dark-theme.fr-box .fr-video-resizer .fr-handler.fr-hnw{left:-6px;top:-6px}.dark-theme.fr-box .fr-video-resizer .fr-handler.fr-hne{right:-6px;top:-6px}.dark-theme.fr-box .fr-video-resizer .fr-handler.fr-hsw{left:-6px;bottom:-6px}.dark-theme.fr-box .fr-video-resizer .fr-handler.fr-hse{right:-6px;bottom:-6px}@media (min-width:1200px){.dark-theme.fr-box .fr-video-resizer .fr-handler{width:10px;height:10px}.dark-theme.fr-box .fr-video-resizer .fr-handler.fr-hnw{left:-5px;top:-5px}.dark-theme.fr-box .fr-video-resizer .fr-handler.fr-hne{right:-5px;top:-5px}.dark-theme.fr-box .fr-video-resizer .fr-handler.fr-hsw{left:-5px;bottom:-5px}.dark-theme.fr-box .fr-video-resizer .fr-handler.fr-hse{right:-5px;bottom:-5px}}.dark-theme.fr-popup .fr-video-upload-layer{border:dashed 2px gray;padding:25px 0}.dark-theme.fr-popup .fr-video-upload-layer:hover{background:#3d3d3d}.dark-theme.fr-popup .fr-video-upload-layer.fr-drop{background:#3d3d3d;border-color:#42a5f5}.dark-theme.fr-popup .fr-video-upload-layer .fr-form{top:0;bottom:0;left:0;right:0;z-index:2147483640}.dark-theme.fr-popup .fr-video-progress-bar-layer>h3{margin:10px 0}.dark-theme.fr-popup .fr-video-progress-bar-layer>div.fr-loader{background:#c6e4fc}.dark-theme.fr-popup .fr-video-progress-bar-layer>div.fr-loader span{background:#42a5f5;-webkit-transition:width .2s ease 0s;-moz-transition:width .2s ease 0s;-ms-transition:width .2s ease 0s;-o-transition:width .2s ease 0s}.dark-theme.fr-popup .fr-video-progress-bar-layer>div.fr-loader.fr-indeterminate span{top:0}.dark-theme.fr-video-overlay{top:0;left:0;bottom:0;right:0;z-index:2147483640}.dark-theme .fr-view span[style~="color:"] a{color:inherit}.dark-theme .fr-view strong{font-weight:700}.dark-theme .fr-view table.fr-alternate-rows tbody tr:nth-child(2n){background:#d3d3d3}.dark-theme .fr-view table td,.dark-theme .fr-view table th{border:1px solid #ddd}.dark-theme .fr-view table th{background:#e6e6e6}.dark-theme .fr-view[dir=rtl] blockquote{border-right:solid 2px #5e35b1;margin-right:0}.dark-theme .fr-view[dir=rtl] blockquote blockquote{border-color:#00bcd4}.dark-theme .fr-view[dir=rtl] blockquote blockquote blockquote{border-color:#43a047}.dark-theme .fr-view blockquote{border-left:solid 2px #5e35b1;margin-left:0;color:#5e35b1}.dark-theme .fr-view blockquote blockquote{border-color:#00bcd4;color:#00bcd4}.dark-theme .fr-view blockquote blockquote blockquote{border-color:#43a047;color:#43a047}.dark-theme .fr-view span.fr-emoticon{line-height:0}.dark-theme .fr-view span.fr-emoticon.fr-emoticon-img{font-size:inherit}.dark-theme .fr-view .fr-text-bordered{padding:10px 0}.dark-theme .fr-view .fr-img-caption .fr-img-wrap{margin:auto}.dark-theme .fr-view .fr-img-caption .fr-img-wrap img{margin:auto}.dark-theme .fr-view .fr-img-caption .fr-img-wrap>span{margin:auto}.dark-theme .fr-element .fr-embedly::after{top:0;left:0;right:0;bottom:0}.dark-theme.fr-box .fr-embedly-resizer{border:solid 1px #42a5f5}.dark-theme .examples-variante>a{font-size:14px;font-family:Arial,Helvetica,sans-serif}.dark-theme .sc-cm-holder>.sc-cm{border-top:5px solid #222!important}.dark-theme .sc-cm__item_dropdown:hover>a,.dark-theme .sc-cm a:hover{background-color:#3d3d3d!important}.dark-theme .sc-cm__item_active>a,.dark-theme .sc-cm__item_active>a:hover,.dark-theme .sc-cm a:active,.dark-theme .sc-cm a:focus{background-color:#2e2e2e!important}.dark-theme .sc-cm-holder>.sc-cm:before{background-color:#3d3d3d!important}.dark-theme .fr-tooltip{top:0;left:0;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);-moz-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);background:#222;color:#fff;font-size:11px;line-height:22px;font-family:Arial,Helvetica,sans-serif;-webkit-transition:opacity .2s ease 0s;-moz-transition:opacity .2s ease 0s;-ms-transition:opacity .2s ease 0s;-o-transition:opacity .2s ease 0s}.dark-theme.fr-toolbar .fr-command.fr-btn,.dark-theme.fr-popup .fr-command.fr-btn{color:#fff;-moz-outline:0;outline:0;border:0;margin:0 2px;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s;padding:0;width:38px;height:38px}.dark-theme.fr-toolbar .fr-command.fr-btn::-moz-focus-inner,.dark-theme.fr-popup .fr-command.fr-btn::-moz-focus-inner{border:0}.dark-theme.fr-toolbar .fr-command.fr-btn.fr-btn-text,.dark-theme.fr-popup .fr-command.fr-btn.fr-btn-text{width:auto}.dark-theme.fr-toolbar .fr-command.fr-btn i,.dark-theme.fr-popup .fr-command.fr-btn i,.dark-theme.fr-toolbar .fr-command.fr-btn svg,.dark-theme.fr-popup .fr-command.fr-btn svg{font-size:14px;width:14px;margin:12px}.dark-theme.fr-toolbar .fr-command.fr-btn span,.dark-theme.fr-popup .fr-command.fr-btn span{font-size:14px;line-height:17px;min-width:34px;height:17px;padding:0 2px}.dark-theme.fr-toolbar .fr-command.fr-btn img,.dark-theme.fr-popup .fr-command.fr-btn img{margin:12px;width:14px}.dark-theme.fr-toolbar .fr-command.fr-btn.fr-active,.dark-theme.fr-popup .fr-command.fr-btn.fr-active{color:#42a5f5;background:0 0}.dark-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-selection,.dark-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-selection{width:auto}.dark-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown i,.dark-theme.fr-popup .fr-command.fr-btn.fr-dropdown i,.dark-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown span,.dark-theme.fr-popup .fr-command.fr-btn.fr-dropdown span,.dark-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown img,.dark-theme.fr-popup .fr-command.fr-btn.fr-dropdown img,.dark-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown svg,.dark-theme.fr-popup .fr-command.fr-btn.fr-dropdown svg{margin-left:8px;margin-right:16px}.dark-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active,.dark-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active{color:#fff;background:#2e2e2e}.dark-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:hover,.dark-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:hover,.dark-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:focus,.dark-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:focus{background:#2e2e2e!important;color:#fff!important}.dark-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:hover::after,.dark-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:hover::after,.dark-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:focus::after,.dark-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:focus::after{border-top-color:#fff!important}.dark-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown::after,.dark-theme.fr-popup .fr-command.fr-btn.fr-dropdown::after{width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid #fff;right:4px;top:17px}.dark-theme.fr-toolbar .fr-command.fr-btn.fr-disabled,.dark-theme.fr-popup .fr-command.fr-btn.fr-disabled{color:gray}.dark-theme.fr-toolbar .fr-command.fr-btn.fr-disabled::after,.dark-theme.fr-popup .fr-command.fr-btn.fr-disabled::after{border-top-color:gray!important}.dark-theme.fr-toolbar.fr-disabled .fr-btn,.dark-theme.fr-popup.fr-disabled .fr-btn,.dark-theme.fr-toolbar.fr-disabled .fr-btn.fr-active,.dark-theme.fr-popup.fr-disabled .fr-btn.fr-active{color:gray}.dark-theme.fr-toolbar.fr-disabled .fr-btn.fr-dropdown::after,.dark-theme.fr-popup.fr-disabled .fr-btn.fr-dropdown::after,.dark-theme.fr-toolbar.fr-disabled .fr-btn.fr-active.fr-dropdown::after,.dark-theme.fr-popup.fr-disabled .fr-btn.fr-active.fr-dropdown::after{border-top-color:gray}.dark-theme.fr-desktop .fr-command:hover,.dark-theme.fr-desktop .fr-command:focus{outline:0;color:#fff;background:#3d3d3d}.dark-theme.fr-desktop .fr-command:hover::after,.dark-theme.fr-desktop .fr-command:focus::after{border-top-color:#fff!important}.dark-theme.fr-desktop .fr-command.fr-selected{color:#fff;background:#2e2e2e}.dark-theme.fr-desktop .fr-command.fr-active:hover,.dark-theme.fr-desktop .fr-command.fr-active:focus{color:#42a5f5;background:#3d3d3d}.dark-theme.fr-desktop .fr-command.fr-active.fr-selected{color:#42a5f5;background:#2e2e2e}.dark-theme.fr-toolbar.fr-mobile .fr-command.fr-blink,.dark-theme.fr-popup.fr-mobile .fr-command.fr-blink{background:0 0}.dark-theme .fr-command.fr-btn+.fr-dropdown-menu{right:auto;bottom:auto;height:auto;border-radius:0 0 2px 2px;-moz-border-radius:0 0 2px 2px;-webkit-border-radius:0 0 2px 2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.dark-theme .fr-command.fr-btn+.fr-dropdown-menu.test-height .fr-dropdown-wrapper{height:auto;max-height:275px}.dark-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper{background:#353535;padding:0;margin:auto;-webkit-transition:max-height .2s ease 0s;-moz-transition:max-height .2s ease 0s;-ms-transition:max-height .2s ease 0s;-o-transition:max-height .2s ease 0s;margin-top:0;max-height:0;height:0}.dark-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content{overflow:auto;max-height:275px}.dark-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list{margin:0;padding:0}.dark-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li{padding:0;margin:0}.dark-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a{color:inherit}.dark-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-active{background:#2e2e2e}.dark-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-disabled{color:gray}.dark-theme .fr-command.fr-btn.fr-active+.fr-dropdown-menu{-webkit-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);-moz-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14)}.dark-theme .fr-command.fr-btn.fr-active+.fr-dropdown-menu .fr-dropdown-wrapper{height:auto;max-height:275px}.dark-theme .fr-bottom>.fr-command.fr-btn+.fr-dropdown-menu{border-radius:2px 2px 0 0;-moz-border-radius:2px 2px 0 0;-webkit-border-radius:2px 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.dark-theme.fr-modal{color:#fff;font-family:Arial,Helvetica,sans-serif;overflow-x:auto;top:0;left:0;bottom:0;right:0;z-index:2147483640}.dark-theme.fr-modal.fr-middle .fr-modal-wrapper{margin-top:0;margin-bottom:0;margin-left:auto;margin-right:auto}.dark-theme.fr-modal .fr-modal-wrapper{border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;margin:20px auto;background:#353535;-webkit-box-shadow:0 5px 8px rgba(0,0,0,.19),0 4px 3px 1px rgba(0,0,0,.14);-moz-box-shadow:0 5px 8px rgba(0,0,0,.19),0 4px 3px 1px rgba(0,0,0,.14);box-shadow:0 5px 8px rgba(0,0,0,.19),0 4px 3px 1px rgba(0,0,0,.14);border:0;border-top:5px solid #222}@media (min-width:768px) and (max-width:991px){.dark-theme.fr-modal .fr-modal-wrapper{margin:30px auto}}@media (min-width:992px){.dark-theme.fr-modal .fr-modal-wrapper{margin:50px auto}}.dark-theme.fr-modal .fr-modal-wrapper .fr-modal-head{background:#353535;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);-moz-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);border-bottom:0;-webkit-transition:height .2s ease 0s;-moz-transition:height .2s ease 0s;-ms-transition:height .2s ease 0s;-o-transition:height .2s ease 0s}.dark-theme.fr-modal .fr-modal-wrapper .fr-modal-head .fr-modal-close{color:#fff;top:0;right:0;-webkit-transition:color .2s ease 0s;-moz-transition:color .2s ease 0s;-ms-transition:color .2s ease 0s;-o-transition:color .2s ease 0s}.dark-theme.fr-modal .fr-modal-wrapper .fr-modal-head h4{margin:0;font-weight:400}.dark-theme.fr-modal .fr-modal-wrapper div.fr-modal-body:focus{outline:0}.dark-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command{color:#42a5f5;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.dark-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:hover,.dark-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:focus{background:#3d3d3d;color:#42a5f5}.dark-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:active{background:#2e2e2e;color:#42a5f5}.dark-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button::-moz-focus-inner{border:0}.dark-theme.dark-theme.fr-desktop .fr-modal-wrapper .fr-modal-head i:hover{background:#3d3d3d}.dark-theme.fr-overlay{top:0;bottom:0;left:0;right:0;background:#000}.dark-theme.fr-popup{color:#fff;background:#353535;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;font-family:Arial,Helvetica,sans-serif;border:0;border-top:5px solid #222}.dark-theme.fr-popup .fr-input-focus{background:#363636}.dark-theme.fr-popup.fr-above{border-top:0;border-bottom:5px solid #222;-webkit-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16)}.dark-theme.fr-popup .fr-input-line{padding:8px 0}.dark-theme.fr-popup .fr-input-line input[type=text],.dark-theme.fr-popup .fr-input-line textarea{margin:0 0 1px;border-bottom:solid 1px #bdbdbd;color:#fff}.dark-theme.fr-popup .fr-input-line input[type=text]:focus,.dark-theme.fr-popup .fr-input-line textarea:focus{border-bottom:solid 2px #42a5f5}.dark-theme.fr-popup .fr-input-line input+label,.dark-theme.fr-popup .fr-input-line textarea+label{top:0;left:0;-webkit-transition:color .2s ease 0s;-moz-transition:color .2s ease 0s;-ms-transition:color .2s ease 0s;-o-transition:color .2s ease 0s;background:#353535}.dark-theme.fr-popup .fr-input-line input.fr-not-empty:focus+label,.dark-theme.fr-popup .fr-input-line textarea.fr-not-empty:focus+label{color:#42a5f5}.dark-theme.fr-popup .fr-input-line input.fr-not-empty+label,.dark-theme.fr-popup .fr-input-line textarea.fr-not-empty+label{color:gray}.dark-theme.fr-popup .fr-buttons{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);padding:0 2px;line-height:0;border-bottom:0}.dark-theme.fr-popup .fr-layer{width:225px}@media (min-width:768px){.dark-theme.fr-popup .fr-layer{width:300px}}.dark-theme.fr-popup .fr-action-buttons button.fr-command{color:#42a5f5;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.dark-theme.fr-popup .fr-action-buttons button.fr-command:hover,.dark-theme.fr-popup .fr-action-buttons button.fr-command:focus{background:#3d3d3d;color:#42a5f5}.dark-theme.fr-popup .fr-action-buttons button.fr-command:active{background:#2e2e2e;color:#42a5f5}.dark-theme.fr-popup .fr-action-buttons button::-moz-focus-inner{border:0}.dark-theme.fr-popup .fr-checkbox span{border:solid 1px #fff;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-transition:background .2s ease 0s,border-color .2s ease 0s;-moz-transition:background .2s ease 0s,border-color .2s ease 0s;-ms-transition:background .2s ease 0s,border-color .2s ease 0s;-o-transition:background .2s ease 0s,border-color .2s ease 0s}.dark-theme.fr-popup .fr-checkbox input{margin:0;padding:0}.dark-theme.fr-popup .fr-checkbox input:checked+span{background:#42a5f5;border-color:#42a5f5}.dark-theme.fr-popup .fr-checkbox input:focus+span{border-color:#42a5f5}.dark-theme.fr-popup.fr-rtl .fr-input-line input+label,.dark-theme.fr-popup.fr-rtl .fr-input-line textarea+label{left:auto;right:0}.dark-theme.fr-popup .fr-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid #222;top:-9px;margin-left:-5px}.dark-theme.fr-popup.fr-above .fr-arrow{top:auto;bottom:-9px;border-bottom:0;border-top:5px solid #222}.dark-theme.fr-toolbar{color:#fff;background:#353535;font-family:Arial,Helvetica,sans-serif;padding:0 2px;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);border:0;border-top:5px solid #222}.dark-theme.fr-toolbar.fr-inline .fr-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid #222;top:-9px;margin-left:-5px}.dark-theme.fr-toolbar.fr-inline.fr-above{-webkit-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);border-bottom:5px solid #222;border-top:0}.dark-theme.fr-toolbar.fr-inline.fr-above .fr-arrow{top:auto;bottom:-9px;border-bottom:0;border-top-color:inherit;border-top-width:5px}.dark-theme.fr-toolbar.fr-top{top:0;border-radius:2px 2px 0 0;-moz-border-radius:2px 2px 0 0;-webkit-border-radius:2px 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.dark-theme.fr-toolbar.fr-bottom{bottom:0;border-radius:0 0 2px 2px;-moz-border-radius:0 0 2px 2px;-webkit-border-radius:0 0 2px 2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.dark-theme .fr-separator{background:#595959}.dark-theme .fr-separator.fr-vs{height:34px;width:1px;margin:2px}.dark-theme .fr-separator.fr-hs{height:1px;width:calc(100% - (2 * 2px));margin:0 2px} \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/themes/gray.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/themes/gray.css similarity index 100% rename from Mobile.Search.Web/Scripts/froala-editor/css/themes/gray.css rename to Mobile.WYSIWYG/Scripts/froala-editor/css/themes/gray.css diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/themes/gray.min.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/themes/gray.min.css new file mode 100644 index 0000000..5e90edb --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/themes/gray.min.css @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.gray-theme.fr-box.fr-basic .fr-element{color:#000;padding:16px;overflow-x:auto;min-height:52px}.gray-theme .fr-element{-webkit-user-select:auto}.gray-theme.fr-box a.fr-floating-btn{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);height:32px;width:32px;background:#fff;color:#0097a7;-webkit-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;-moz-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;-ms-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;-o-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;left:0;top:0;line-height:32px;border:0}.gray-theme.fr-box a.fr-floating-btn svg{-webkit-transition:transform .2s ease 0s;-moz-transition:transform .2s ease 0s;-ms-transition:transform .2s ease 0s;-o-transition:transform .2s ease 0s;fill:#0097a7}.gray-theme.fr-box a.fr-floating-btn i,.gray-theme.fr-box a.fr-floating-btn svg{font-size:14px;line-height:32px}.gray-theme.fr-box a.fr-floating-btn:hover{background:#e6e6e6}.gray-theme.fr-box a.fr-floating-btn:hover svg{fill:#0097a7}.gray-theme .fr-wrapper .fr-placeholder{font-size:12px;color:#aaa;top:0;left:0;right:0}.gray-theme .fr-wrapper ::-moz-selection{background:#b5d6fd;color:#000}.gray-theme .fr-wrapper ::selection{background:#b5d6fd;color:#000}.gray-theme.fr-box.fr-basic .fr-wrapper{background:#fff;border:0;border-top:0;top:0;left:0}.gray-theme.fr-box.fr-basic.fr-top .fr-wrapper{border-top:0;border-radius:0 0 2px 2px;-moz-border-radius:0 0 2px 2px;-webkit-border-radius:0 0 2px 2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.gray-theme.fr-box.fr-basic.fr-bottom .fr-wrapper{border-bottom:0;border-radius:2px 2px 0 0;-moz-border-radius:2px 2px 0 0;-webkit-border-radius:2px 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16)}.gray-theme .fr-sticky-on.fr-sticky-ios{left:0;right:0}.gray-theme.fr-box .fr-counter{color:#ccc;background:#fff;border-top:solid 1px #ebebeb;border-left:solid 1px #ebebeb;border-radius:2px 0 0;-moz-border-radius:2px 0 0;-webkit-border-radius:2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.gray-theme.fr-box.fr-rtl .fr-counter{right:auto;border-right:solid 1px #ebebeb;border-radius:0 2px 0 0;-moz-border-radius:0 2px 0 0;-webkit-border-radius:0 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.gray-theme textarea.fr-code{background:#fff;color:#000}.gray-theme.fr-box.fr-code-view.fr-inline{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.gray-theme.fr-box.fr-inline .fr-command.fr-btn.html-switch{top:0;right:0;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);background:#fff;color:#37474f;-moz-outline:0;outline:0;border:0;padding:12px;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s}.gray-theme.fr-box.fr-inline .fr-command.fr-btn.html-switch i{font-size:14px;width:14px}.gray-theme.fr-box.fr-inline .fr-command.fr-btn.html-switch.fr-desktop:hover{background:#e6e6e6}.gray-theme.fr-popup .fr-colors-tabs{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.gray-theme.fr-popup .fr-colors-tabs .fr-colors-tab{color:#37474f;padding:8px 0}.gray-theme.fr-popup .fr-colors-tabs .fr-colors-tab:hover,.gray-theme.fr-popup .fr-colors-tabs .fr-colors-tab:focus{color:#0097a7}.gray-theme.fr-popup .fr-colors-tabs .fr-colors-tab[data-param1=background]::after{bottom:0;left:0;background:#0097a7;-webkit-transition:transform .2s ease 0s;-moz-transition:transform .2s ease 0s;-ms-transition:transform .2s ease 0s;-o-transition:transform .2s ease 0s}.gray-theme.fr-popup .fr-colors-tabs .fr-colors-tab.fr-selected-tab{color:#0097a7}.gray-theme.fr-popup .fr-color-hex-layer .fr-input-line{padding:8px 0 0}.gray-theme.fr-popup .fr-color-hex-layer .fr-action-buttons button{background-color:#0097a7;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.gray-theme.fr-popup .fr-color-hex-layer .fr-action-buttons button:hover{background-color:#006974}.gray-theme.fr-popup .fr-color-set{line-height:0}.gray-theme.fr-popup .fr-color-set>span>i,.gray-theme.fr-popup .fr-color-set>span>svg{bottom:0;left:0}.gray-theme.fr-popup .fr-color-set>span .fr-selected-color{color:#fff;font-weight:400;top:0;bottom:0;right:0;left:0}.gray-theme.fr-popup .fr-color-set>span:hover,.gray-theme.fr-popup .fr-color-set>span:focus{outline:1px solid #37474f}.gray-theme .fr-drag-helper{background:#0097a7;z-index:2147483640}.gray-theme.fr-popup .fr-link:focus{outline:0;background:#e6e6e6}.gray-theme.fr-popup .fr-file-upload-layer{border:dashed 2px #b7bdc0;padding:25px 0}.gray-theme.fr-popup .fr-file-upload-layer:hover{background:#e6e6e6}.gray-theme.fr-popup .fr-file-upload-layer.fr-drop{background:#e6e6e6;border-color:#0097a7}.gray-theme.fr-popup .fr-file-upload-layer .fr-form{top:0;bottom:0;left:0;right:0;z-index:2147483640}.gray-theme.fr-popup .fr-file-progress-bar-layer>h3{margin:10px 0}.gray-theme.fr-popup .fr-file-progress-bar-layer>div.fr-loader{background:#b3e0e5}.gray-theme.fr-popup .fr-file-progress-bar-layer>div.fr-loader span{background:#0097a7;-webkit-transition:width .2s ease 0s;-moz-transition:width .2s ease 0s;-ms-transition:width .2s ease 0s;-o-transition:width .2s ease 0s}.gray-theme.fr-popup .fr-file-progress-bar-layer>div.fr-loader.fr-indeterminate span{top:0}.gray-theme.fr-box.fr-fullscreen{top:0;left:0;bottom:0;right:0}.gray-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tr{border:0}.gray-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tbody tr{border-bottom:solid 1px #ebebeb}.gray-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tbody td:first-child{color:#737e84}.gray-theme .fr-image-resizer{border:solid 1px #0097a7}.gray-theme .fr-image-resizer .fr-handler{background:#0097a7;border:solid 1px #fff}.gray-theme .fr-image-resizer .fr-handler{width:12px;height:12px}.gray-theme .fr-image-resizer .fr-handler.fr-hnw{left:-6px;top:-6px}.gray-theme .fr-image-resizer .fr-handler.fr-hne{right:-6px;top:-6px}.gray-theme .fr-image-resizer .fr-handler.fr-hsw{left:-6px;bottom:-6px}.gray-theme .fr-image-resizer .fr-handler.fr-hse{right:-6px;bottom:-6px}@media (min-width:1200px){.gray-theme .fr-image-resizer .fr-handler{width:10px;height:10px}.gray-theme .fr-image-resizer .fr-handler.fr-hnw{left:-5px;top:-5px}.gray-theme .fr-image-resizer .fr-handler.fr-hne{right:-5px;top:-5px}.gray-theme .fr-image-resizer .fr-handler.fr-hsw{left:-5px;bottom:-5px}.gray-theme .fr-image-resizer .fr-handler.fr-hse{right:-5px;bottom:-5px}}.gray-theme.fr-image-overlay{top:0;left:0;bottom:0;right:0;z-index:2147483640}.gray-theme.fr-popup .fr-image-upload-layer{border:dashed 2px #b7bdc0;padding:25px 0}.gray-theme.fr-popup .fr-image-upload-layer:hover{background:#e6e6e6}.gray-theme.fr-popup .fr-image-upload-layer.fr-drop{background:#e6e6e6;border-color:#0097a7}.gray-theme.fr-popup .fr-image-upload-layer .fr-form{top:0;bottom:0;left:0;right:0;z-index:2147483640}.gray-theme.fr-popup .fr-image-progress-bar-layer>h3{margin:10px 0}.gray-theme.fr-popup .fr-image-progress-bar-layer>div.fr-loader{background:#b3e0e5}.gray-theme.fr-popup .fr-image-progress-bar-layer>div.fr-loader span{background:#0097a7;-webkit-transition:width .2s ease 0s;-moz-transition:width .2s ease 0s;-ms-transition:width .2s ease 0s;-o-transition:width .2s ease 0s}.gray-theme.fr-popup .fr-image-progress-bar-layer>div.fr-loader.fr-indeterminate span{top:0}.gray-theme.fr-modal-head .fr-modal-head-line i.fr-modal-more{-webkit-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s;-moz-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s;-ms-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s;-o-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s}.gray-theme.fr-modal-head .fr-modal-head-line i.fr-modal-more.fr-not-available{opacity:0;width:0;padding:12px 0}.gray-theme.fr-modal-head .fr-modal-tags a{opacity:0;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;color:#0097a7;-webkit-transition:opacity .2s ease 0s,background .2s ease 0s;-moz-transition:opacity .2s ease 0s,background .2s ease 0s;-ms-transition:opacity .2s ease 0s,background .2s ease 0s;-o-transition:opacity .2s ease 0s,background .2s ease 0s}.gray-theme.fr-modal-head .fr-modal-tags a.fr-selected-tag{background:#d6d6d6}.gray-themediv.fr-modal-body .fr-preloader{margin:50px auto}.gray-themediv.fr-modal-body div.fr-image-list{padding:0}.gray-themediv.fr-modal-body div.fr-image-list div.fr-image-container{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.gray-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-image-deleting::after{-webkit-transition:opacity .2s ease 0s;-moz-transition:opacity .2s ease 0s;-ms-transition:opacity .2s ease 0s;-o-transition:opacity .2s ease 0s;background:#000;top:0;left:0;bottom:0;right:0}.gray-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-image-deleting::before{color:#fff;top:0;left:0;bottom:0;right:0;margin:auto}.gray-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-empty{background:#ccc}.gray-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-empty::after{margin:auto;top:0;bottom:0;left:0;right:0}.gray-themediv.fr-modal-body div.fr-image-list div.fr-image-container img{-webkit-transition:opacity .2s ease 0s,filter .2s ease 0s;-moz-transition:opacity .2s ease 0s,filter .2s ease 0s;-ms-transition:opacity .2s ease 0s,filter .2s ease 0s;-o-transition:opacity .2s ease 0s,filter .2s ease 0s}.gray-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img,.gray-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img{-webkit-transition:background .2s ease 0s,color .2s ease 0s;-moz-transition:background .2s ease 0s,color .2s ease 0s;-ms-transition:background .2s ease 0s,color .2s ease 0s;-o-transition:background .2s ease 0s,color .2s ease 0s;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);margin:0}.gray-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img{background:#b8312f;color:#fff}.gray-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img{background:#f5f5f5;color:#0097a7}.gray-theme.gray-theme.fr-desktop .fr-modal-wrapper .fr-modal-head .fr-modal-tags a:hover{background:#e6e6e6}.gray-theme.gray-theme.fr-desktop .fr-modal-wrapper .fr-modal-head .fr-modal-tags a.fr-selected-tag{background:#d6d6d6}.gray-theme.gray-theme.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img:hover{background:#bf4644;color:#fff}.gray-theme.gray-theme.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img:hover{background:#e6e6e6}.gray-theme .fr-line-breaker{border-top:1px solid #0097a7}.gray-theme .fr-line-breaker a.fr-floating-btn{left:calc(50% - (32px / 2));top:-16px}.gray-theme .fr-qi-helper{padding-left:16px}.gray-theme .fr-qi-helper a.fr-btn.fr-floating-btn{color:#37474f}.gray-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-special-characters-modal .fr-special-character{border:1px solid #ccc}.gray-theme .fr-element table td.fr-selected-cell,.gray-theme .fr-element table th.fr-selected-cell{border:1px double #0097a7}.gray-theme .fr-table-resizer div{border-right:1px solid #0097a7}.gray-theme.fr-popup .fr-table-colors-hex-layer .fr-input-line{padding:8px 0 0}.gray-theme.fr-popup .fr-table-colors-hex-layer .fr-action-buttons button{background-color:#0097a7;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.gray-theme.fr-popup .fr-table-colors-hex-layer .fr-action-buttons button:hover{background-color:#006974}.gray-theme.fr-popup .fr-table-size .fr-select-table-size{line-height:0}.gray-theme.fr-popup .fr-table-size .fr-select-table-size>span{padding:0 4px 4px 0}.gray-theme.fr-popup .fr-table-size .fr-select-table-size>span>span{border:1px solid #ddd}.gray-theme.fr-popup .fr-table-size .fr-select-table-size>span.hover>span{background:rgba(0,151,167,.3);border:solid 1px #0097a7}.gray-theme.fr-popup .fr-table-colors{line-height:0}.gray-theme.fr-popup .fr-table-colors>span>i{bottom:0;left:0}.gray-theme.fr-popup .fr-table-colors>span:focus{outline:1px solid #37474f}.gray-theme .fr-element .fr-video::after{top:0;left:0;right:0;bottom:0}.gray-theme.fr-box .fr-video-resizer{border:solid 1px #0097a7}.gray-theme.fr-box .fr-video-resizer .fr-handler{background:#0097a7;border:solid 1px #fff}.gray-theme.fr-box .fr-video-resizer .fr-handler{width:12px;height:12px}.gray-theme.fr-box .fr-video-resizer .fr-handler.fr-hnw{left:-6px;top:-6px}.gray-theme.fr-box .fr-video-resizer .fr-handler.fr-hne{right:-6px;top:-6px}.gray-theme.fr-box .fr-video-resizer .fr-handler.fr-hsw{left:-6px;bottom:-6px}.gray-theme.fr-box .fr-video-resizer .fr-handler.fr-hse{right:-6px;bottom:-6px}@media (min-width:1200px){.gray-theme.fr-box .fr-video-resizer .fr-handler{width:10px;height:10px}.gray-theme.fr-box .fr-video-resizer .fr-handler.fr-hnw{left:-5px;top:-5px}.gray-theme.fr-box .fr-video-resizer .fr-handler.fr-hne{right:-5px;top:-5px}.gray-theme.fr-box .fr-video-resizer .fr-handler.fr-hsw{left:-5px;bottom:-5px}.gray-theme.fr-box .fr-video-resizer .fr-handler.fr-hse{right:-5px;bottom:-5px}}.gray-theme.fr-popup .fr-video-upload-layer{border:dashed 2px #b7bdc0;padding:25px 0}.gray-theme.fr-popup .fr-video-upload-layer:hover{background:#e6e6e6}.gray-theme.fr-popup .fr-video-upload-layer.fr-drop{background:#e6e6e6;border-color:#0097a7}.gray-theme.fr-popup .fr-video-upload-layer .fr-form{top:0;bottom:0;left:0;right:0;z-index:2147483640}.gray-theme.fr-popup .fr-video-progress-bar-layer>h3{margin:10px 0}.gray-theme.fr-popup .fr-video-progress-bar-layer>div.fr-loader{background:#b3e0e5}.gray-theme.fr-popup .fr-video-progress-bar-layer>div.fr-loader span{background:#0097a7;-webkit-transition:width .2s ease 0s;-moz-transition:width .2s ease 0s;-ms-transition:width .2s ease 0s;-o-transition:width .2s ease 0s}.gray-theme.fr-popup .fr-video-progress-bar-layer>div.fr-loader.fr-indeterminate span{top:0}.gray-theme.fr-video-overlay{top:0;left:0;bottom:0;right:0;z-index:2147483640}.gray-theme .fr-view span[style~="color:"] a{color:inherit}.gray-theme .fr-view strong{font-weight:700}.gray-theme .fr-view table.fr-alternate-rows tbody tr:nth-child(2n){background:#f5f5f5}.gray-theme .fr-view table td,.gray-theme .fr-view table th{border:1px solid #ddd}.gray-theme .fr-view table th{background:#e6e6e6}.gray-theme .fr-view[dir=rtl] blockquote{border-right:solid 2px #5e35b1;margin-right:0}.gray-theme .fr-view[dir=rtl] blockquote blockquote{border-color:#00bcd4}.gray-theme .fr-view[dir=rtl] blockquote blockquote blockquote{border-color:#43a047}.gray-theme .fr-view blockquote{border-left:solid 2px #5e35b1;margin-left:0;color:#5e35b1}.gray-theme .fr-view blockquote blockquote{border-color:#00bcd4;color:#00bcd4}.gray-theme .fr-view blockquote blockquote blockquote{border-color:#43a047;color:#43a047}.gray-theme .fr-view span.fr-emoticon{line-height:0}.gray-theme .fr-view span.fr-emoticon.fr-emoticon-img{font-size:inherit}.gray-theme .fr-view .fr-text-bordered{padding:10px 0}.gray-theme .fr-view .fr-img-caption .fr-img-wrap{margin:auto}.gray-theme .fr-view .fr-img-caption .fr-img-wrap img{margin:auto}.gray-theme .fr-view .fr-img-caption .fr-img-wrap>span{margin:auto}.gray-theme .fr-element .fr-embedly::after{top:0;left:0;right:0;bottom:0}.gray-theme.fr-box .fr-embedly-resizer{border:solid 1px #0097a7}.gray-theme .examples-variante>a{font-size:14px;font-family:Arial,Helvetica,sans-serif}.gray-theme .sc-cm-holder>.sc-cm{border-top:5px solid #bdbdbd!important}.gray-theme .sc-cm__item_dropdown:hover>a,.gray-theme .sc-cm a:hover{background-color:#e6e6e6!important}.gray-theme .sc-cm__item_active>a,.gray-theme .sc-cm__item_active>a:hover,.gray-theme .sc-cm a:active,.gray-theme .sc-cm a:focus{background-color:#d6d6d6!important}.gray-theme .sc-cm-holder>.sc-cm:before{background-color:#e6e6e6!important}.gray-theme .fr-tooltip{top:0;left:0;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);-moz-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);background:#222;color:#fff;font-size:11px;line-height:22px;font-family:Arial,Helvetica,sans-serif;-webkit-transition:opacity .2s ease 0s;-moz-transition:opacity .2s ease 0s;-ms-transition:opacity .2s ease 0s;-o-transition:opacity .2s ease 0s}.gray-theme.fr-toolbar .fr-command.fr-btn,.gray-theme.fr-popup .fr-command.fr-btn{color:#37474f;-moz-outline:0;outline:0;border:0;margin:0 2px;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s;padding:0;width:38px;height:38px}.gray-theme.fr-toolbar .fr-command.fr-btn::-moz-focus-inner,.gray-theme.fr-popup .fr-command.fr-btn::-moz-focus-inner{border:0}.gray-theme.fr-toolbar .fr-command.fr-btn.fr-btn-text,.gray-theme.fr-popup .fr-command.fr-btn.fr-btn-text{width:auto}.gray-theme.fr-toolbar .fr-command.fr-btn i,.gray-theme.fr-popup .fr-command.fr-btn i,.gray-theme.fr-toolbar .fr-command.fr-btn svg,.gray-theme.fr-popup .fr-command.fr-btn svg{font-size:14px;width:14px;margin:12px}.gray-theme.fr-toolbar .fr-command.fr-btn span,.gray-theme.fr-popup .fr-command.fr-btn span{font-size:14px;line-height:17px;min-width:34px;height:17px;padding:0 2px}.gray-theme.fr-toolbar .fr-command.fr-btn img,.gray-theme.fr-popup .fr-command.fr-btn img{margin:12px;width:14px}.gray-theme.fr-toolbar .fr-command.fr-btn.fr-active,.gray-theme.fr-popup .fr-command.fr-btn.fr-active{color:#0097a7;background:0 0}.gray-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-selection,.gray-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-selection{width:auto}.gray-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown i,.gray-theme.fr-popup .fr-command.fr-btn.fr-dropdown i,.gray-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown span,.gray-theme.fr-popup .fr-command.fr-btn.fr-dropdown span,.gray-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown img,.gray-theme.fr-popup .fr-command.fr-btn.fr-dropdown img,.gray-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown svg,.gray-theme.fr-popup .fr-command.fr-btn.fr-dropdown svg{margin-left:8px;margin-right:16px}.gray-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active,.gray-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active{color:#37474f;background:#d6d6d6}.gray-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:hover,.gray-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:hover,.gray-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:focus,.gray-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:focus{background:#d6d6d6!important;color:#37474f!important}.gray-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:hover::after,.gray-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:hover::after,.gray-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:focus::after,.gray-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:focus::after{border-top-color:#37474f!important}.gray-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown::after,.gray-theme.fr-popup .fr-command.fr-btn.fr-dropdown::after{width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid #37474f;right:4px;top:17px}.gray-theme.fr-toolbar .fr-command.fr-btn.fr-disabled,.gray-theme.fr-popup .fr-command.fr-btn.fr-disabled{color:#b7bdc0}.gray-theme.fr-toolbar .fr-command.fr-btn.fr-disabled::after,.gray-theme.fr-popup .fr-command.fr-btn.fr-disabled::after{border-top-color:#b7bdc0!important}.gray-theme.fr-toolbar.fr-disabled .fr-btn,.gray-theme.fr-popup.fr-disabled .fr-btn,.gray-theme.fr-toolbar.fr-disabled .fr-btn.fr-active,.gray-theme.fr-popup.fr-disabled .fr-btn.fr-active{color:#b7bdc0}.gray-theme.fr-toolbar.fr-disabled .fr-btn.fr-dropdown::after,.gray-theme.fr-popup.fr-disabled .fr-btn.fr-dropdown::after,.gray-theme.fr-toolbar.fr-disabled .fr-btn.fr-active.fr-dropdown::after,.gray-theme.fr-popup.fr-disabled .fr-btn.fr-active.fr-dropdown::after{border-top-color:#b7bdc0}.gray-theme.fr-desktop .fr-command:hover,.gray-theme.fr-desktop .fr-command:focus{outline:0;color:#37474f;background:#e6e6e6}.gray-theme.fr-desktop .fr-command:hover::after,.gray-theme.fr-desktop .fr-command:focus::after{border-top-color:#37474f!important}.gray-theme.fr-desktop .fr-command.fr-selected{color:#37474f;background:#d6d6d6}.gray-theme.fr-desktop .fr-command.fr-active:hover,.gray-theme.fr-desktop .fr-command.fr-active:focus{color:#0097a7;background:#e6e6e6}.gray-theme.fr-desktop .fr-command.fr-active.fr-selected{color:#0097a7;background:#d6d6d6}.gray-theme.fr-toolbar.fr-mobile .fr-command.fr-blink,.gray-theme.fr-popup.fr-mobile .fr-command.fr-blink{background:0 0}.gray-theme .fr-command.fr-btn+.fr-dropdown-menu{right:auto;bottom:auto;height:auto;border-radius:0 0 2px 2px;-moz-border-radius:0 0 2px 2px;-webkit-border-radius:0 0 2px 2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.gray-theme .fr-command.fr-btn+.fr-dropdown-menu.test-height .fr-dropdown-wrapper{height:auto;max-height:275px}.gray-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper{background:#f5f5f5;padding:0;margin:auto;-webkit-transition:max-height .2s ease 0s;-moz-transition:max-height .2s ease 0s;-ms-transition:max-height .2s ease 0s;-o-transition:max-height .2s ease 0s;margin-top:0;max-height:0;height:0}.gray-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content{overflow:auto;max-height:275px}.gray-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list{margin:0;padding:0}.gray-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li{padding:0;margin:0}.gray-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a{color:inherit}.gray-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-active{background:#d6d6d6}.gray-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-disabled{color:#b7bdc0}.gray-theme .fr-command.fr-btn.fr-active+.fr-dropdown-menu{-webkit-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);-moz-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14)}.gray-theme .fr-command.fr-btn.fr-active+.fr-dropdown-menu .fr-dropdown-wrapper{height:auto;max-height:275px}.gray-theme .fr-bottom>.fr-command.fr-btn+.fr-dropdown-menu{border-radius:2px 2px 0 0;-moz-border-radius:2px 2px 0 0;-webkit-border-radius:2px 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.gray-theme.fr-modal{color:#37474f;font-family:Arial,Helvetica,sans-serif;overflow-x:auto;top:0;left:0;bottom:0;right:0;z-index:2147483640}.gray-theme.fr-modal.fr-middle .fr-modal-wrapper{margin-top:0;margin-bottom:0;margin-left:auto;margin-right:auto}.gray-theme.fr-modal .fr-modal-wrapper{border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;margin:20px auto;background:#fff;-webkit-box-shadow:0 5px 8px rgba(0,0,0,.19),0 4px 3px 1px rgba(0,0,0,.14);-moz-box-shadow:0 5px 8px rgba(0,0,0,.19),0 4px 3px 1px rgba(0,0,0,.14);box-shadow:0 5px 8px rgba(0,0,0,.19),0 4px 3px 1px rgba(0,0,0,.14);border:0;border-top:5px solid #bdbdbd}@media (min-width:768px) and (max-width:991px){.gray-theme.fr-modal .fr-modal-wrapper{margin:30px auto}}@media (min-width:992px){.gray-theme.fr-modal .fr-modal-wrapper{margin:50px auto}}.gray-theme.fr-modal .fr-modal-wrapper .fr-modal-head{background:#f5f5f5;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);-moz-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);border-bottom:0;-webkit-transition:height .2s ease 0s;-moz-transition:height .2s ease 0s;-ms-transition:height .2s ease 0s;-o-transition:height .2s ease 0s}.gray-theme.fr-modal .fr-modal-wrapper .fr-modal-head .fr-modal-close{color:#37474f;top:0;right:0;-webkit-transition:color .2s ease 0s;-moz-transition:color .2s ease 0s;-ms-transition:color .2s ease 0s;-o-transition:color .2s ease 0s}.gray-theme.fr-modal .fr-modal-wrapper .fr-modal-head h4{margin:0;font-weight:400}.gray-theme.fr-modal .fr-modal-wrapper div.fr-modal-body:focus{outline:0}.gray-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command{color:#0097a7;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.gray-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:hover,.gray-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:focus{background:#e6e6e6;color:#0097a7}.gray-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:active{background:#d6d6d6;color:#0097a7}.gray-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button::-moz-focus-inner{border:0}.gray-theme.gray-theme.fr-desktop .fr-modal-wrapper .fr-modal-head i:hover{background:#e6e6e6}.gray-theme.fr-overlay{top:0;bottom:0;left:0;right:0;background:#000}.gray-theme.fr-popup{color:#37474f;background:#f5f5f5;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;font-family:Arial,Helvetica,sans-serif;border:0;border-top:5px solid #bdbdbd}.gray-theme.fr-popup .fr-input-focus{background:#ebebeb}.gray-theme.fr-popup.fr-above{border-top:0;border-bottom:5px solid #bdbdbd;-webkit-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16)}.gray-theme.fr-popup .fr-input-line{padding:8px 0}.gray-theme.fr-popup .fr-input-line input[type=text],.gray-theme.fr-popup .fr-input-line textarea{margin:0 0 1px;border-bottom:solid 1px #bdbdbd;color:#37474f}.gray-theme.fr-popup .fr-input-line input[type=text]:focus,.gray-theme.fr-popup .fr-input-line textarea:focus{border-bottom:solid 2px #0097a7}.gray-theme.fr-popup .fr-input-line input+label,.gray-theme.fr-popup .fr-input-line textarea+label{top:0;left:0;-webkit-transition:color .2s ease 0s;-moz-transition:color .2s ease 0s;-ms-transition:color .2s ease 0s;-o-transition:color .2s ease 0s;background:#f5f5f5}.gray-theme.fr-popup .fr-input-line input.fr-not-empty:focus+label,.gray-theme.fr-popup .fr-input-line textarea.fr-not-empty:focus+label{color:#0097a7}.gray-theme.fr-popup .fr-input-line input.fr-not-empty+label,.gray-theme.fr-popup .fr-input-line textarea.fr-not-empty+label{color:gray}.gray-theme.fr-popup .fr-buttons{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);padding:0 2px;line-height:0;border-bottom:0}.gray-theme.fr-popup .fr-layer{width:225px}@media (min-width:768px){.gray-theme.fr-popup .fr-layer{width:300px}}.gray-theme.fr-popup .fr-action-buttons button.fr-command{color:#0097a7;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.gray-theme.fr-popup .fr-action-buttons button.fr-command:hover,.gray-theme.fr-popup .fr-action-buttons button.fr-command:focus{background:#e6e6e6;color:#0097a7}.gray-theme.fr-popup .fr-action-buttons button.fr-command:active{background:#d6d6d6;color:#0097a7}.gray-theme.fr-popup .fr-action-buttons button::-moz-focus-inner{border:0}.gray-theme.fr-popup .fr-checkbox span{border:solid 1px #37474f;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-transition:background .2s ease 0s,border-color .2s ease 0s;-moz-transition:background .2s ease 0s,border-color .2s ease 0s;-ms-transition:background .2s ease 0s,border-color .2s ease 0s;-o-transition:background .2s ease 0s,border-color .2s ease 0s}.gray-theme.fr-popup .fr-checkbox input{margin:0;padding:0}.gray-theme.fr-popup .fr-checkbox input:checked+span{background:#0097a7;border-color:#0097a7}.gray-theme.fr-popup .fr-checkbox input:focus+span{border-color:#0097a7}.gray-theme.fr-popup.fr-rtl .fr-input-line input+label,.gray-theme.fr-popup.fr-rtl .fr-input-line textarea+label{left:auto;right:0}.gray-theme.fr-popup .fr-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid #bdbdbd;top:-9px;margin-left:-5px}.gray-theme.fr-popup.fr-above .fr-arrow{top:auto;bottom:-9px;border-bottom:0;border-top:5px solid #bdbdbd}.gray-theme.fr-toolbar{color:#37474f;background:#f5f5f5;font-family:Arial,Helvetica,sans-serif;padding:0 2px;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);border:0;border-top:5px solid #bdbdbd}.gray-theme.fr-toolbar.fr-inline .fr-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid #bdbdbd;top:-9px;margin-left:-5px}.gray-theme.fr-toolbar.fr-inline.fr-above{-webkit-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);border-bottom:5px solid #bdbdbd;border-top:0}.gray-theme.fr-toolbar.fr-inline.fr-above .fr-arrow{top:auto;bottom:-9px;border-bottom:0;border-top-color:inherit;border-top-width:5px}.gray-theme.fr-toolbar.fr-top{top:0;border-radius:2px 2px 0 0;-moz-border-radius:2px 2px 0 0;-webkit-border-radius:2px 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.gray-theme.fr-toolbar.fr-bottom{bottom:0;border-radius:0 0 2px 2px;-moz-border-radius:0 0 2px 2px;-webkit-border-radius:0 0 2px 2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.gray-theme .fr-separator{background:#ebebeb}.gray-theme .fr-separator.fr-vs{height:34px;width:1px;margin:2px}.gray-theme .fr-separator.fr-hs{height:1px;width:calc(100% - (2 * 2px));margin:0 2px} \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/themes/red.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/themes/red.css new file mode 100644 index 0000000..e3b76c4 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/themes/red.css @@ -0,0 +1,1281 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after { + clear: both; + display: block; + content: ""; + height: 0; +} +.hide-by-clipping { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; +} +.red-theme.fr-box.fr-basic .fr-element { + color: #000000; + padding: 16px; + overflow-x: auto; + min-height: 52px; +} +.red-theme .fr-element { + -webkit-user-select: auto; +} +.red-theme.fr-box a.fr-floating-btn { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + height: 32px; + width: 32px; + background: #ffffff; + color: #ffca28; + -webkit-transition: background 0.2s ease 0s, color 0.2s ease 0s, transform 0.2s ease 0s; + -moz-transition: background 0.2s ease 0s, color 0.2s ease 0s, transform 0.2s ease 0s; + -ms-transition: background 0.2s ease 0s, color 0.2s ease 0s, transform 0.2s ease 0s; + -o-transition: background 0.2s ease 0s, color 0.2s ease 0s, transform 0.2s ease 0s; + left: 0; + top: 0; + line-height: 32px; + border: solid 1px #cccccc; +} +.red-theme.fr-box a.fr-floating-btn svg { + -webkit-transition: transform 0.2s ease 0s; + -moz-transition: transform 0.2s ease 0s; + -ms-transition: transform 0.2s ease 0s; + -o-transition: transform 0.2s ease 0s; + fill: #ffca28; +} +.red-theme.fr-box a.fr-floating-btn i, +.red-theme.fr-box a.fr-floating-btn svg { + font-size: 14px; + line-height: 32px; +} +.red-theme.fr-box a.fr-floating-btn:hover { + background: #ebebeb; +} +.red-theme.fr-box a.fr-floating-btn:hover svg { + fill: #ffca28; +} +.red-theme .fr-wrapper .fr-placeholder { + font-size: 12px; + color: #aaaaaa; + top: 0; + left: 0; + right: 0; +} +.red-theme .fr-wrapper ::-moz-selection { + background: #b5d6fd; + color: #000000; +} +.red-theme .fr-wrapper ::selection { + background: #b5d6fd; + color: #000000; +} +.red-theme.fr-box.fr-basic .fr-wrapper { + background: #ffffff; + border: solid 1px #671b1a; + border-top: 0; + top: 0; + left: 0; +} +.red-theme.fr-box.fr-basic.fr-top .fr-wrapper { + border-top: 0; + border-radius: 0 0 2px 2px; + -moz-border-radius: 0 0 2px 2px; + -webkit-border-radius: 0 0 2px 2px; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +.red-theme.fr-box.fr-basic.fr-bottom .fr-wrapper { + border-bottom: 0; + border-radius: 2px 2px 0 0; + -moz-border-radius: 2px 2px 0 0; + -webkit-border-radius: 2px 2px 0 0; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +.red-theme .fr-sticky-on.fr-sticky-ios { + left: 0; + right: 0; +} +.red-theme.fr-box .fr-counter { + color: #cccccc; + background: #ffffff; + border-top: solid 1px #ebebeb; + border-left: solid 1px #ebebeb; + border-radius: 2px 0 0 0; + -moz-border-radius: 2px 0 0 0; + -webkit-border-radius: 2px 0 0 0; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; +} +.red-theme.fr-box.fr-rtl .fr-counter { + right: auto; + border-right: solid 1px #ebebeb; + border-radius: 0 2px 0 0; + -moz-border-radius: 0 2px 0 0; + -webkit-border-radius: 0 2px 0 0; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; +} +.red-theme textarea.fr-code { + background: #ffffff; + color: #000000; +} +.red-theme.fr-box.fr-code-view.fr-inline { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +.red-theme.fr-box.fr-inline .fr-command.fr-btn.html-switch { + top: 0; + right: 0; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + background: #ffffff; + color: #ffffff; + -moz-outline: 0; + outline: 0; + border: 0; + padding: 12px 12px; + -webkit-transition: background 0.2s ease 0s; + -moz-transition: background 0.2s ease 0s; + -ms-transition: background 0.2s ease 0s; + -o-transition: background 0.2s ease 0s; +} +.red-theme.fr-box.fr-inline .fr-command.fr-btn.html-switch i { + font-size: 14px; + width: 14px; +} +.red-theme.fr-box.fr-inline .fr-command.fr-btn.html-switch.fr-desktop:hover { + background: #c65a59; +} +.red-theme.fr-popup .fr-colors-tabs { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +.red-theme.fr-popup .fr-colors-tabs .fr-colors-tab { + color: #ffffff; + padding: 8px 0; +} +.red-theme.fr-popup .fr-colors-tabs .fr-colors-tab:hover, +.red-theme.fr-popup .fr-colors-tabs .fr-colors-tab:focus { + color: #ffca28; +} +.red-theme.fr-popup .fr-colors-tabs .fr-colors-tab[data-param1="background"]::after { + bottom: 0; + left: 0; + background: #ffca28; + -webkit-transition: transform 0.2s ease 0s; + -moz-transition: transform 0.2s ease 0s; + -ms-transition: transform 0.2s ease 0s; + -o-transition: transform 0.2s ease 0s; +} +.red-theme.fr-popup .fr-colors-tabs .fr-colors-tab.fr-selected-tab { + color: #ffca28; +} +.red-theme.fr-popup .fr-color-hex-layer .fr-input-line { + padding: 8px 0 0; +} +.red-theme.fr-popup .fr-color-hex-layer .fr-action-buttons button { + background-color: #ffca28; + border-radius: 2px; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; +} +.red-theme.fr-popup .fr-color-hex-layer .fr-action-buttons button:hover { + background-color: #f4b800; +} +.red-theme.fr-popup .fr-color-set { + line-height: 0; +} +.red-theme.fr-popup .fr-color-set > span > i, +.red-theme.fr-popup .fr-color-set > span > svg { + bottom: 0; + left: 0; +} +.red-theme.fr-popup .fr-color-set > span .fr-selected-color { + color: #ffffff; + font-weight: 400; + top: 0; + bottom: 0; + right: 0; + left: 0; +} +.red-theme.fr-popup .fr-color-set > span:hover, +.red-theme.fr-popup .fr-color-set > span:focus { + outline: 1px solid #ffffff; +} +.red-theme .fr-drag-helper { + background: #ffca28; + z-index: 2147483640; +} +.red-theme.fr-popup .fr-link:focus { + outline: 0; + background: #c65a59; +} +.red-theme.fr-popup .fr-file-upload-layer { + border: dashed 2px #edc9c9; + padding: 25px 0; +} +.red-theme.fr-popup .fr-file-upload-layer:hover { + background: #c65a59; +} +.red-theme.fr-popup .fr-file-upload-layer.fr-drop { + background: #c65a59; + border-color: #ffca28; +} +.red-theme.fr-popup .fr-file-upload-layer .fr-form { + top: 0; + bottom: 0; + left: 0; + right: 0; + z-index: 2147483640; +} +.red-theme.fr-popup .fr-file-progress-bar-layer > h3 { + margin: 10px 0; +} +.red-theme.fr-popup .fr-file-progress-bar-layer > div.fr-loader { + background: #ffefbf; +} +.red-theme.fr-popup .fr-file-progress-bar-layer > div.fr-loader span { + background: #ffca28; + -webkit-transition: width 0.2s ease 0s; + -moz-transition: width 0.2s ease 0s; + -ms-transition: width 0.2s ease 0s; + -o-transition: width 0.2s ease 0s; +} +.red-theme.fr-popup .fr-file-progress-bar-layer > div.fr-loader.fr-indeterminate span { + top: 0; +} +.red-theme.fr-box.fr-fullscreen { + top: 0; + left: 0; + bottom: 0; + right: 0; +} +.red-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tr { + border: 0; +} +.red-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tbody tr { + border-bottom: solid 1px rgba(255, 255, 255, 0.3); +} +.red-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tbody td:first-child { + color: #ffffff; +} +.red-theme .fr-image-resizer { + border: solid 1px #ffca28; +} +.red-theme .fr-image-resizer .fr-handler { + background: #ffca28; + border: solid 1px #ffffff; +} +.red-theme .fr-image-resizer .fr-handler { + width: 12px; + height: 12px; +} +.red-theme .fr-image-resizer .fr-handler.fr-hnw { + left: -6px; + top: -6px; +} +.red-theme .fr-image-resizer .fr-handler.fr-hne { + right: -6px; + top: -6px; +} +.red-theme .fr-image-resizer .fr-handler.fr-hsw { + left: -6px; + bottom: -6px; +} +.red-theme .fr-image-resizer .fr-handler.fr-hse { + right: -6px; + bottom: -6px; +} +@media (min-width: 1200px) { + .red-theme .fr-image-resizer .fr-handler { + width: 10px; + height: 10px; + } + .red-theme .fr-image-resizer .fr-handler.fr-hnw { + left: -5px; + top: -5px; + } + .red-theme .fr-image-resizer .fr-handler.fr-hne { + right: -5px; + top: -5px; + } + .red-theme .fr-image-resizer .fr-handler.fr-hsw { + left: -5px; + bottom: -5px; + } + .red-theme .fr-image-resizer .fr-handler.fr-hse { + right: -5px; + bottom: -5px; + } +} +.red-theme.fr-image-overlay { + top: 0; + left: 0; + bottom: 0; + right: 0; + z-index: 2147483640; +} +.red-theme.fr-popup .fr-image-upload-layer { + border: dashed 2px #edc9c9; + padding: 25px 0; +} +.red-theme.fr-popup .fr-image-upload-layer:hover { + background: #c65a59; +} +.red-theme.fr-popup .fr-image-upload-layer.fr-drop { + background: #c65a59; + border-color: #ffca28; +} +.red-theme.fr-popup .fr-image-upload-layer .fr-form { + top: 0; + bottom: 0; + left: 0; + right: 0; + z-index: 2147483640; +} +.red-theme.fr-popup .fr-image-progress-bar-layer > h3 { + margin: 10px 0; +} +.red-theme.fr-popup .fr-image-progress-bar-layer > div.fr-loader { + background: #ffefbf; +} +.red-theme.fr-popup .fr-image-progress-bar-layer > div.fr-loader span { + background: #ffca28; + -webkit-transition: width 0.2s ease 0s; + -moz-transition: width 0.2s ease 0s; + -ms-transition: width 0.2s ease 0s; + -o-transition: width 0.2s ease 0s; +} +.red-theme.fr-popup .fr-image-progress-bar-layer > div.fr-loader.fr-indeterminate span { + top: 0; +} +.red-theme.fr-modal-head .fr-modal-head-line i.fr-modal-more { + -webkit-transition: padding 0.2s ease 0s, width 0.2s ease 0s, opacity 0.2s ease 0s; + -moz-transition: padding 0.2s ease 0s, width 0.2s ease 0s, opacity 0.2s ease 0s; + -ms-transition: padding 0.2s ease 0s, width 0.2s ease 0s, opacity 0.2s ease 0s; + -o-transition: padding 0.2s ease 0s, width 0.2s ease 0s, opacity 0.2s ease 0s; +} +.red-theme.fr-modal-head .fr-modal-head-line i.fr-modal-more.fr-not-available { + opacity: 0; + width: 0; + padding: 12px 0; +} +.red-theme.fr-modal-head .fr-modal-tags a { + opacity: 0; + border-radius: 2px; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; + color: #ffca28; + -webkit-transition: opacity 0.2s ease 0s, background 0.2s ease 0s; + -moz-transition: opacity 0.2s ease 0s, background 0.2s ease 0s; + -ms-transition: opacity 0.2s ease 0s, background 0.2s ease 0s; + -o-transition: opacity 0.2s ease 0s, background 0.2s ease 0s; +} +.red-theme.fr-modal-head .fr-modal-tags a.fr-selected-tag { + background: #d48382; +} +.red-themediv.fr-modal-body .fr-preloader { + margin: 50px auto; +} +.red-themediv.fr-modal-body div.fr-image-list { + padding: 0; +} +.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + border-radius: 2px; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; +} +.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-image-deleting::after { + -webkit-transition: opacity 0.2s ease 0s; + -moz-transition: opacity 0.2s ease 0s; + -ms-transition: opacity 0.2s ease 0s; + -o-transition: opacity 0.2s ease 0s; + background: #000000; + top: 0; + left: 0; + bottom: 0; + right: 0; +} +.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-image-deleting::before { + color: #ffffff; + top: 0; + left: 0; + bottom: 0; + right: 0; + margin: auto; +} +.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-empty { + background: #cccccc; +} +.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-empty::after { + margin: auto; + top: 0; + bottom: 0; + left: 0; + right: 0; +} +.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container img { + -webkit-transition: opacity 0.2s ease 0s, filter 0.2s ease 0s; + -moz-transition: opacity 0.2s ease 0s, filter 0.2s ease 0s; + -ms-transition: opacity 0.2s ease 0s, filter 0.2s ease 0s; + -o-transition: opacity 0.2s ease 0s, filter 0.2s ease 0s; +} +.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img, +.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img { + -webkit-transition: background 0.2s ease 0s, color 0.2s ease 0s; + -moz-transition: background 0.2s ease 0s, color 0.2s ease 0s; + -ms-transition: background 0.2s ease 0s, color 0.2s ease 0s; + -o-transition: background 0.2s ease 0s, color 0.2s ease 0s; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + margin: 0; +} +.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img { + background: #b8312f; + color: #ffffff; +} +.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img { + background: #b8312f; + color: #ffca28; +} +.red-theme.red-theme.fr-desktop .fr-modal-wrapper .fr-modal-head .fr-modal-tags a:hover { + background: #c65a59; +} +.red-theme.red-theme.fr-desktop .fr-modal-wrapper .fr-modal-head .fr-modal-tags a.fr-selected-tag { + background: #d48382; +} +.red-theme.red-theme.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img:hover { + background: #bf4644; + color: #ffffff; +} +.red-theme.red-theme.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img:hover { + background: #c65a59; +} +.red-theme .fr-line-breaker { + border-top: 1px solid #ffca28; +} +.red-theme .fr-line-breaker a.fr-floating-btn { + left: calc(50% - (32px / 2)); + top: -16px; +} +.red-theme .fr-qi-helper { + padding-left: 16px; +} +.red-theme .fr-qi-helper a.fr-btn.fr-floating-btn { + color: #ffffff; +} +.red-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-special-characters-modal .fr-special-character { + border: 1px solid #cccccc; +} +.red-theme .fr-element table td.fr-selected-cell, +.red-theme .fr-element table th.fr-selected-cell { + border: 1px double #ffca28; +} +.red-theme .fr-table-resizer div { + border-right: 1px solid #ffca28; +} +.red-theme.fr-popup .fr-table-colors-hex-layer .fr-input-line { + padding: 8px 0 0; +} +.red-theme.fr-popup .fr-table-colors-hex-layer .fr-action-buttons button { + background-color: #ffca28; + border-radius: 2px; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; +} +.red-theme.fr-popup .fr-table-colors-hex-layer .fr-action-buttons button:hover { + background-color: #f4b800; +} +.red-theme.fr-popup .fr-table-size .fr-select-table-size { + line-height: 0; +} +.red-theme.fr-popup .fr-table-size .fr-select-table-size > span { + padding: 0px 4px 4px 0; +} +.red-theme.fr-popup .fr-table-size .fr-select-table-size > span > span { + border: 1px solid #dddddd; +} +.red-theme.fr-popup .fr-table-size .fr-select-table-size > span.hover > span { + background: rgba(255, 202, 40, 0.3); + border: solid 1px #ffca28; +} +.red-theme.fr-popup .fr-table-colors { + line-height: 0; +} +.red-theme.fr-popup .fr-table-colors > span > i { + bottom: 0; + left: 0; +} +.red-theme.fr-popup .fr-table-colors > span:focus { + outline: 1px solid #ffffff; +} +.red-theme .fr-element .fr-video::after { + top: 0; + left: 0; + right: 0; + bottom: 0; +} +.red-theme.fr-box .fr-video-resizer { + border: solid 1px #ffca28; +} +.red-theme.fr-box .fr-video-resizer .fr-handler { + background: #ffca28; + border: solid 1px #ffffff; +} +.red-theme.fr-box .fr-video-resizer .fr-handler { + width: 12px; + height: 12px; +} +.red-theme.fr-box .fr-video-resizer .fr-handler.fr-hnw { + left: -6px; + top: -6px; +} +.red-theme.fr-box .fr-video-resizer .fr-handler.fr-hne { + right: -6px; + top: -6px; +} +.red-theme.fr-box .fr-video-resizer .fr-handler.fr-hsw { + left: -6px; + bottom: -6px; +} +.red-theme.fr-box .fr-video-resizer .fr-handler.fr-hse { + right: -6px; + bottom: -6px; +} +@media (min-width: 1200px) { + .red-theme.fr-box .fr-video-resizer .fr-handler { + width: 10px; + height: 10px; + } + .red-theme.fr-box .fr-video-resizer .fr-handler.fr-hnw { + left: -5px; + top: -5px; + } + .red-theme.fr-box .fr-video-resizer .fr-handler.fr-hne { + right: -5px; + top: -5px; + } + .red-theme.fr-box .fr-video-resizer .fr-handler.fr-hsw { + left: -5px; + bottom: -5px; + } + .red-theme.fr-box .fr-video-resizer .fr-handler.fr-hse { + right: -5px; + bottom: -5px; + } +} +.red-theme.fr-popup .fr-video-upload-layer { + border: dashed 2px #edc9c9; + padding: 25px 0; +} +.red-theme.fr-popup .fr-video-upload-layer:hover { + background: #c65a59; +} +.red-theme.fr-popup .fr-video-upload-layer.fr-drop { + background: #c65a59; + border-color: #ffca28; +} +.red-theme.fr-popup .fr-video-upload-layer .fr-form { + top: 0; + bottom: 0; + left: 0; + right: 0; + z-index: 2147483640; +} +.red-theme.fr-popup .fr-video-progress-bar-layer > h3 { + margin: 10px 0; +} +.red-theme.fr-popup .fr-video-progress-bar-layer > div.fr-loader { + background: #ffefbf; +} +.red-theme.fr-popup .fr-video-progress-bar-layer > div.fr-loader span { + background: #ffca28; + -webkit-transition: width 0.2s ease 0s; + -moz-transition: width 0.2s ease 0s; + -ms-transition: width 0.2s ease 0s; + -o-transition: width 0.2s ease 0s; +} +.red-theme.fr-popup .fr-video-progress-bar-layer > div.fr-loader.fr-indeterminate span { + top: 0; +} +.red-theme.fr-video-overlay { + top: 0; + left: 0; + bottom: 0; + right: 0; + z-index: 2147483640; +} +.red-theme .fr-view span[style~="color:"] a { + color: inherit; +} +.red-theme .fr-view strong { + font-weight: 700; +} +.red-theme .fr-view table.fr-alternate-rows tbody tr:nth-child(2n) { + background: #f5f5f5; +} +.red-theme .fr-view table td, +.red-theme .fr-view table th { + border: 1px solid #dddddd; +} +.red-theme .fr-view table th { + background: #e6e6e6; +} +.red-theme .fr-view[dir="rtl"] blockquote { + border-right: solid 2px #5e35b1; + margin-right: 0; +} +.red-theme .fr-view[dir="rtl"] blockquote blockquote { + border-color: #00bcd4; +} +.red-theme .fr-view[dir="rtl"] blockquote blockquote blockquote { + border-color: #43a047; +} +.red-theme .fr-view blockquote { + border-left: solid 2px #5e35b1; + margin-left: 0; + color: #5e35b1; +} +.red-theme .fr-view blockquote blockquote { + border-color: #00bcd4; + color: #00bcd4; +} +.red-theme .fr-view blockquote blockquote blockquote { + border-color: #43a047; + color: #43a047; +} +.red-theme .fr-view span.fr-emoticon { + line-height: 0; +} +.red-theme .fr-view span.fr-emoticon.fr-emoticon-img { + font-size: inherit; +} +.red-theme .fr-view .fr-text-bordered { + padding: 10px 0; +} +.red-theme .fr-view .fr-img-caption .fr-img-wrap { + margin: auto; +} +.red-theme .fr-view .fr-img-caption .fr-img-wrap img { + margin: auto; +} +.red-theme .fr-view .fr-img-caption .fr-img-wrap > span { + margin: auto; +} +.red-theme .fr-element .fr-embedly::after { + top: 0; + left: 0; + right: 0; + bottom: 0; +} +.red-theme.fr-box .fr-embedly-resizer { + border: solid 1px #ffca28; +} +.red-theme .examples-variante > a { + font-size: 14px; + font-family: Arial, Helvetica, sans-serif; +} +.red-theme .sc-cm-holder > .sc-cm { + border-top: 5px solid #671b1a !important; +} +.red-theme .sc-cm__item_dropdown:hover > a, +.red-theme .sc-cm a:hover { + background-color: #c65a59 !important; +} +.red-theme .sc-cm__item_active > a, +.red-theme .sc-cm__item_active > a:hover, +.red-theme .sc-cm a:active, +.red-theme .sc-cm a:focus { + background-color: #d48382 !important; +} +.red-theme .sc-cm-holder > .sc-cm:before { + background-color: #c65a59 !important; +} +.red-theme .fr-tooltip { + top: 0; + left: 0; + border-radius: 2px; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + background: #222222; + color: #ffffff; + font-size: 11px; + line-height: 22px; + font-family: Arial, Helvetica, sans-serif; + -webkit-transition: opacity 0.2s ease 0s; + -moz-transition: opacity 0.2s ease 0s; + -ms-transition: opacity 0.2s ease 0s; + -o-transition: opacity 0.2s ease 0s; +} +.red-theme.fr-toolbar .fr-command.fr-btn, +.red-theme.fr-popup .fr-command.fr-btn { + color: #ffffff; + -moz-outline: 0; + outline: 0; + border: 0; + margin: 0px 2px; + -webkit-transition: background 0.2s ease 0s; + -moz-transition: background 0.2s ease 0s; + -ms-transition: background 0.2s ease 0s; + -o-transition: background 0.2s ease 0s; + padding: 0; + width: 38px; + height: 38px; +} +.red-theme.fr-toolbar .fr-command.fr-btn::-moz-focus-inner, +.red-theme.fr-popup .fr-command.fr-btn::-moz-focus-inner { + border: 0; +} +.red-theme.fr-toolbar .fr-command.fr-btn.fr-btn-text, +.red-theme.fr-popup .fr-command.fr-btn.fr-btn-text { + width: auto; +} +.red-theme.fr-toolbar .fr-command.fr-btn i, +.red-theme.fr-popup .fr-command.fr-btn i, +.red-theme.fr-toolbar .fr-command.fr-btn svg, +.red-theme.fr-popup .fr-command.fr-btn svg { + font-size: 14px; + width: 14px; + margin: 12px 12px; +} +.red-theme.fr-toolbar .fr-command.fr-btn span, +.red-theme.fr-popup .fr-command.fr-btn span { + font-size: 14px; + line-height: 17px; + min-width: 34px; + height: 17px; + padding: 0 2px; +} +.red-theme.fr-toolbar .fr-command.fr-btn img, +.red-theme.fr-popup .fr-command.fr-btn img { + margin: 12px 12px; + width: 14px; +} +.red-theme.fr-toolbar .fr-command.fr-btn.fr-active, +.red-theme.fr-popup .fr-command.fr-btn.fr-active { + color: #ffca28; + background: transparent; +} +.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-selection, +.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-selection { + width: auto; +} +.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown i, +.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown i, +.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown span, +.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown span, +.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown img, +.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown img, +.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown svg, +.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown svg { + margin-left: 8px; + margin-right: 16px; +} +.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active, +.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active { + color: #ffffff; + background: #d48382; +} +.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:hover, +.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:hover, +.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:focus, +.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:focus { + background: #d48382 !important; + color: #ffffff !important; +} +.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:hover::after, +.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:hover::after, +.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:focus::after, +.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:focus::after { + border-top-color: #ffffff !important; +} +.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown::after, +.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown::after { + width: 0; + height: 0; + border-left: 4px solid transparent; + border-right: 4px solid transparent; + border-top: 4px solid #ffffff; + right: 4px; + top: 17px; +} +.red-theme.fr-toolbar .fr-command.fr-btn.fr-disabled, +.red-theme.fr-popup .fr-command.fr-btn.fr-disabled { + color: #edc9c9; +} +.red-theme.fr-toolbar .fr-command.fr-btn.fr-disabled::after, +.red-theme.fr-popup .fr-command.fr-btn.fr-disabled::after { + border-top-color: #edc9c9 !important; +} +.red-theme.fr-toolbar.fr-disabled .fr-btn, +.red-theme.fr-popup.fr-disabled .fr-btn, +.red-theme.fr-toolbar.fr-disabled .fr-btn.fr-active, +.red-theme.fr-popup.fr-disabled .fr-btn.fr-active { + color: #edc9c9; +} +.red-theme.fr-toolbar.fr-disabled .fr-btn.fr-dropdown::after, +.red-theme.fr-popup.fr-disabled .fr-btn.fr-dropdown::after, +.red-theme.fr-toolbar.fr-disabled .fr-btn.fr-active.fr-dropdown::after, +.red-theme.fr-popup.fr-disabled .fr-btn.fr-active.fr-dropdown::after { + border-top-color: #edc9c9; +} +.red-theme.fr-desktop .fr-command:hover, +.red-theme.fr-desktop .fr-command:focus { + outline: 0; + color: #ffffff; + background: #c65a59; +} +.red-theme.fr-desktop .fr-command:hover::after, +.red-theme.fr-desktop .fr-command:focus::after { + border-top-color: #ffffff !important; +} +.red-theme.fr-desktop .fr-command.fr-selected { + color: #ffffff; + background: #d48382; +} +.red-theme.fr-desktop .fr-command.fr-active:hover, +.red-theme.fr-desktop .fr-command.fr-active:focus { + color: #ffca28; + background: #c65a59; +} +.red-theme.fr-desktop .fr-command.fr-active.fr-selected { + color: #ffca28; + background: #d48382; +} +.red-theme.fr-toolbar.fr-mobile .fr-command.fr-blink, +.red-theme.fr-popup.fr-mobile .fr-command.fr-blink { + background: transparent; +} +.red-theme .fr-command.fr-btn + .fr-dropdown-menu { + right: auto; + bottom: auto; + height: auto; + border-radius: 0 0 2px 2px; + -moz-border-radius: 0 0 2px 2px; + -webkit-border-radius: 0 0 2px 2px; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; +} +.red-theme .fr-command.fr-btn + .fr-dropdown-menu.test-height .fr-dropdown-wrapper { + height: auto; + max-height: 275px; +} +.red-theme .fr-command.fr-btn + .fr-dropdown-menu .fr-dropdown-wrapper { + background: #b8312f; + padding: 0; + margin: auto; + -webkit-transition: max-height 0.2s ease 0s; + -moz-transition: max-height 0.2s ease 0s; + -ms-transition: max-height 0.2s ease 0s; + -o-transition: max-height 0.2s ease 0s; + margin-top: 0; + max-height: 0; + height: 0; +} +.red-theme .fr-command.fr-btn + .fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content { + overflow: auto; + max-height: 275px; +} +.red-theme .fr-command.fr-btn + .fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list { + margin: 0; + padding: 0; +} +.red-theme .fr-command.fr-btn + .fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li { + padding: 0; + margin: 0; +} +.red-theme .fr-command.fr-btn + .fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a { + color: inherit; +} +.red-theme .fr-command.fr-btn + .fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-active { + background: #d48382; +} +.red-theme .fr-command.fr-btn + .fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-disabled { + color: #edc9c9; +} +.red-theme .fr-command.fr-btn.fr-active + .fr-dropdown-menu { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +.red-theme .fr-command.fr-btn.fr-active + .fr-dropdown-menu .fr-dropdown-wrapper { + height: auto; + max-height: 275px; +} +.red-theme .fr-bottom > .fr-command.fr-btn + .fr-dropdown-menu { + border-radius: 2px 2px 0 0; + -moz-border-radius: 2px 2px 0 0; + -webkit-border-radius: 2px 2px 0 0; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; +} +.red-theme.fr-modal { + color: #ffffff; + font-family: Arial, Helvetica, sans-serif; + overflow-x: auto; + top: 0; + left: 0; + bottom: 0; + right: 0; + z-index: 2147483640; +} +.red-theme.fr-modal.fr-middle .fr-modal-wrapper { + margin-top: 0; + margin-bottom: 0; + margin-left: auto; + margin-right: auto; +} +.red-theme.fr-modal .fr-modal-wrapper { + border-radius: 2px; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; + margin: 20px auto; + background: #b8312f; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + border: solid 1px #671b1a; + border-top: 5px solid #671b1a; +} +@media (min-width: 768px) and (max-width: 991px) { + .red-theme.fr-modal .fr-modal-wrapper { + margin: 30px auto; + } +} +@media (min-width: 992px) { + .red-theme.fr-modal .fr-modal-wrapper { + margin: 50px auto; + } +} +.red-theme.fr-modal .fr-modal-wrapper .fr-modal-head { + background: #b8312f; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + border-bottom: solid 1px #671b1a; + -webkit-transition: height 0.2s ease 0s; + -moz-transition: height 0.2s ease 0s; + -ms-transition: height 0.2s ease 0s; + -o-transition: height 0.2s ease 0s; +} +.red-theme.fr-modal .fr-modal-wrapper .fr-modal-head .fr-modal-close { + color: #ffffff; + top: 0; + right: 0; + -webkit-transition: color 0.2s ease 0s; + -moz-transition: color 0.2s ease 0s; + -ms-transition: color 0.2s ease 0s; + -o-transition: color 0.2s ease 0s; +} +.red-theme.fr-modal .fr-modal-wrapper .fr-modal-head h4 { + margin: 0; + font-weight: 400; +} +.red-theme.fr-modal .fr-modal-wrapper div.fr-modal-body:focus { + outline: 0; +} +.red-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command { + color: #ffca28; + -webkit-transition: background 0.2s ease 0s; + -moz-transition: background 0.2s ease 0s; + -ms-transition: background 0.2s ease 0s; + -o-transition: background 0.2s ease 0s; + border-radius: 2px; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; +} +.red-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:hover, +.red-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:focus { + background: #c65a59; + color: #ffca28; +} +.red-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:active { + background: #d48382; + color: #ffca28; +} +.red-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button::-moz-focus-inner { + border: 0; +} +.red-theme.red-theme.fr-desktop .fr-modal-wrapper .fr-modal-head i:hover { + background: #c65a59; +} +.red-theme.fr-overlay { + top: 0; + bottom: 0; + left: 0; + right: 0; + background: #000000; +} +.red-theme.fr-popup { + color: #ffffff; + background: #b8312f; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + border-radius: 2px; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; + font-family: Arial, Helvetica, sans-serif; + border: solid 1px #671b1a; + border-top: 5px solid #671b1a; +} +.red-theme.fr-popup .fr-input-focus { + background: #bf4644; +} +.red-theme.fr-popup.fr-above { + border-top: 0; + border-bottom: 5px solid #671b1a; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +.red-theme.fr-popup .fr-input-line { + padding: 8px 0; +} +.red-theme.fr-popup .fr-input-line input[type="text"], +.red-theme.fr-popup .fr-input-line textarea { + margin: 0px 0 1px 0; + border-bottom: solid 1px #bdbdbd; + color: #ffffff; +} +.red-theme.fr-popup .fr-input-line input[type="text"]:focus, +.red-theme.fr-popup .fr-input-line textarea:focus { + border-bottom: solid 2px #ffca28; +} +.red-theme.fr-popup .fr-input-line input + label, +.red-theme.fr-popup .fr-input-line textarea + label { + top: 0; + left: 0; + -webkit-transition: color 0.2s ease 0s; + -moz-transition: color 0.2s ease 0s; + -ms-transition: color 0.2s ease 0s; + -o-transition: color 0.2s ease 0s; + background: #b8312f; +} +.red-theme.fr-popup .fr-input-line input.fr-not-empty:focus + label, +.red-theme.fr-popup .fr-input-line textarea.fr-not-empty:focus + label { + color: #ffca28; +} +.red-theme.fr-popup .fr-input-line input.fr-not-empty + label, +.red-theme.fr-popup .fr-input-line textarea.fr-not-empty + label { + color: #808080; +} +.red-theme.fr-popup .fr-buttons { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + padding: 0 2px; + line-height: 0; + border-bottom: solid 1px #671b1a; +} +.red-theme.fr-popup .fr-layer { + width: 225px; +} +@media (min-width: 768px) { + .red-theme.fr-popup .fr-layer { + width: 300px; + } +} +.red-theme.fr-popup .fr-action-buttons button.fr-command { + color: #ffca28; + -webkit-transition: background 0.2s ease 0s; + -moz-transition: background 0.2s ease 0s; + -ms-transition: background 0.2s ease 0s; + -o-transition: background 0.2s ease 0s; + border-radius: 2px; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; +} +.red-theme.fr-popup .fr-action-buttons button.fr-command:hover, +.red-theme.fr-popup .fr-action-buttons button.fr-command:focus { + background: #c65a59; + color: #ffca28; +} +.red-theme.fr-popup .fr-action-buttons button.fr-command:active { + background: #d48382; + color: #ffca28; +} +.red-theme.fr-popup .fr-action-buttons button::-moz-focus-inner { + border: 0; +} +.red-theme.fr-popup .fr-checkbox span { + border: solid 1px #ffffff; + border-radius: 2px; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; + -webkit-transition: background 0.2s ease 0s, border-color 0.2s ease 0s; + -moz-transition: background 0.2s ease 0s, border-color 0.2s ease 0s; + -ms-transition: background 0.2s ease 0s, border-color 0.2s ease 0s; + -o-transition: background 0.2s ease 0s, border-color 0.2s ease 0s; +} +.red-theme.fr-popup .fr-checkbox input { + margin: 0; + padding: 0; +} +.red-theme.fr-popup .fr-checkbox input:checked + span { + background: #ffca28; + border-color: #ffca28; +} +.red-theme.fr-popup .fr-checkbox input:focus + span { + border-color: #ffca28; +} +.red-theme.fr-popup.fr-rtl .fr-input-line input + label, +.red-theme.fr-popup.fr-rtl .fr-input-line textarea + label { + left: auto; + right: 0; +} +.red-theme.fr-popup .fr-arrow { + width: 0; + height: 0; + border-left: 5px solid transparent; + border-right: 5px solid transparent; + border-bottom: 5px solid #671b1a; + top: -9px; + margin-left: -5px; +} +.red-theme.fr-popup.fr-above .fr-arrow { + top: auto; + bottom: -9px; + border-bottom: 0; + border-top: 5px solid #671b1a; +} +.red-theme.fr-toolbar { + color: #ffffff; + background: #b8312f; + font-family: Arial, Helvetica, sans-serif; + padding: 0 2px; + border-radius: 2px; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + border: solid 1px #671b1a; + border-top: 5px solid #671b1a; +} +.red-theme.fr-toolbar.fr-inline .fr-arrow { + width: 0; + height: 0; + border-left: 5px solid transparent; + border-right: 5px solid transparent; + border-bottom: 5px solid #671b1a; + top: -9px; + margin-left: -5px; +} +.red-theme.fr-toolbar.fr-inline.fr-above { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + border-bottom: 5px solid #671b1a; + border-top: 0; +} +.red-theme.fr-toolbar.fr-inline.fr-above .fr-arrow { + top: auto; + bottom: -9px; + border-bottom: 0; + border-top-color: inherit; + border-top-width: 5px; +} +.red-theme.fr-toolbar.fr-top { + top: 0; + border-radius: 2px 2px 0 0; + -moz-border-radius: 2px 2px 0 0; + -webkit-border-radius: 2px 2px 0 0; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +.red-theme.fr-toolbar.fr-bottom { + bottom: 0; + border-radius: 0 0 2px 2px; + -moz-border-radius: 0 0 2px 2px; + -webkit-border-radius: 0 0 2px 2px; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +.red-theme .fr-separator { + background: rgba(255, 255, 255, 0.3); +} +.red-theme .fr-separator.fr-vs { + height: 34px; + width: 1px; + margin: 2px; +} +.red-theme .fr-separator.fr-hs { + height: 1px; + width: calc(100% - (2 * 2px)); + margin: 0 2px; +} diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/themes/red.min.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/themes/red.min.css new file mode 100644 index 0000000..2ca37f6 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/themes/red.min.css @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.red-theme.fr-box.fr-basic .fr-element{color:#000;padding:16px;overflow-x:auto;min-height:52px}.red-theme .fr-element{-webkit-user-select:auto}.red-theme.fr-box a.fr-floating-btn{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;height:32px;width:32px;background:#fff;color:#ffca28;-webkit-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;-moz-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;-ms-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;-o-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;left:0;top:0;line-height:32px;border:solid 1px #ccc}.red-theme.fr-box a.fr-floating-btn svg{-webkit-transition:transform .2s ease 0s;-moz-transition:transform .2s ease 0s;-ms-transition:transform .2s ease 0s;-o-transition:transform .2s ease 0s;fill:#ffca28}.red-theme.fr-box a.fr-floating-btn i,.red-theme.fr-box a.fr-floating-btn svg{font-size:14px;line-height:32px}.red-theme.fr-box a.fr-floating-btn:hover{background:#ebebeb}.red-theme.fr-box a.fr-floating-btn:hover svg{fill:#ffca28}.red-theme .fr-wrapper .fr-placeholder{font-size:12px;color:#aaa;top:0;left:0;right:0}.red-theme .fr-wrapper ::-moz-selection{background:#b5d6fd;color:#000}.red-theme .fr-wrapper ::selection{background:#b5d6fd;color:#000}.red-theme.fr-box.fr-basic .fr-wrapper{background:#fff;border:solid 1px #671b1a;border-top:0;top:0;left:0}.red-theme.fr-box.fr-basic.fr-top .fr-wrapper{border-top:0;border-radius:0 0 2px 2px;-moz-border-radius:0 0 2px 2px;-webkit-border-radius:0 0 2px 2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.red-theme.fr-box.fr-basic.fr-bottom .fr-wrapper{border-bottom:0;border-radius:2px 2px 0 0;-moz-border-radius:2px 2px 0 0;-webkit-border-radius:2px 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.red-theme .fr-sticky-on.fr-sticky-ios{left:0;right:0}.red-theme.fr-box .fr-counter{color:#ccc;background:#fff;border-top:solid 1px #ebebeb;border-left:solid 1px #ebebeb;border-radius:2px 0 0;-moz-border-radius:2px 0 0;-webkit-border-radius:2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.red-theme.fr-box.fr-rtl .fr-counter{right:auto;border-right:solid 1px #ebebeb;border-radius:0 2px 0 0;-moz-border-radius:0 2px 0 0;-webkit-border-radius:0 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.red-theme textarea.fr-code{background:#fff;color:#000}.red-theme.fr-box.fr-code-view.fr-inline{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.red-theme.fr-box.fr-inline .fr-command.fr-btn.html-switch{top:0;right:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background:#fff;color:#fff;-moz-outline:0;outline:0;border:0;padding:12px;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s}.red-theme.fr-box.fr-inline .fr-command.fr-btn.html-switch i{font-size:14px;width:14px}.red-theme.fr-box.fr-inline .fr-command.fr-btn.html-switch.fr-desktop:hover{background:#c65a59}.red-theme.fr-popup .fr-colors-tabs{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.red-theme.fr-popup .fr-colors-tabs .fr-colors-tab{color:#fff;padding:8px 0}.red-theme.fr-popup .fr-colors-tabs .fr-colors-tab:hover,.red-theme.fr-popup .fr-colors-tabs .fr-colors-tab:focus{color:#ffca28}.red-theme.fr-popup .fr-colors-tabs .fr-colors-tab[data-param1=background]::after{bottom:0;left:0;background:#ffca28;-webkit-transition:transform .2s ease 0s;-moz-transition:transform .2s ease 0s;-ms-transition:transform .2s ease 0s;-o-transition:transform .2s ease 0s}.red-theme.fr-popup .fr-colors-tabs .fr-colors-tab.fr-selected-tab{color:#ffca28}.red-theme.fr-popup .fr-color-hex-layer .fr-input-line{padding:8px 0 0}.red-theme.fr-popup .fr-color-hex-layer .fr-action-buttons button{background-color:#ffca28;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.red-theme.fr-popup .fr-color-hex-layer .fr-action-buttons button:hover{background-color:#f4b800}.red-theme.fr-popup .fr-color-set{line-height:0}.red-theme.fr-popup .fr-color-set>span>i,.red-theme.fr-popup .fr-color-set>span>svg{bottom:0;left:0}.red-theme.fr-popup .fr-color-set>span .fr-selected-color{color:#fff;font-weight:400;top:0;bottom:0;right:0;left:0}.red-theme.fr-popup .fr-color-set>span:hover,.red-theme.fr-popup .fr-color-set>span:focus{outline:1px solid #fff}.red-theme .fr-drag-helper{background:#ffca28;z-index:2147483640}.red-theme.fr-popup .fr-link:focus{outline:0;background:#c65a59}.red-theme.fr-popup .fr-file-upload-layer{border:dashed 2px #edc9c9;padding:25px 0}.red-theme.fr-popup .fr-file-upload-layer:hover{background:#c65a59}.red-theme.fr-popup .fr-file-upload-layer.fr-drop{background:#c65a59;border-color:#ffca28}.red-theme.fr-popup .fr-file-upload-layer .fr-form{top:0;bottom:0;left:0;right:0;z-index:2147483640}.red-theme.fr-popup .fr-file-progress-bar-layer>h3{margin:10px 0}.red-theme.fr-popup .fr-file-progress-bar-layer>div.fr-loader{background:#ffefbf}.red-theme.fr-popup .fr-file-progress-bar-layer>div.fr-loader span{background:#ffca28;-webkit-transition:width .2s ease 0s;-moz-transition:width .2s ease 0s;-ms-transition:width .2s ease 0s;-o-transition:width .2s ease 0s}.red-theme.fr-popup .fr-file-progress-bar-layer>div.fr-loader.fr-indeterminate span{top:0}.red-theme.fr-box.fr-fullscreen{top:0;left:0;bottom:0;right:0}.red-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tr{border:0}.red-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tbody tr{border-bottom:solid 1px rgba(255,255,255,.3)}.red-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tbody td:first-child{color:#fff}.red-theme .fr-image-resizer{border:solid 1px #ffca28}.red-theme .fr-image-resizer .fr-handler{background:#ffca28;border:solid 1px #fff}.red-theme .fr-image-resizer .fr-handler{width:12px;height:12px}.red-theme .fr-image-resizer .fr-handler.fr-hnw{left:-6px;top:-6px}.red-theme .fr-image-resizer .fr-handler.fr-hne{right:-6px;top:-6px}.red-theme .fr-image-resizer .fr-handler.fr-hsw{left:-6px;bottom:-6px}.red-theme .fr-image-resizer .fr-handler.fr-hse{right:-6px;bottom:-6px}@media (min-width:1200px){.red-theme .fr-image-resizer .fr-handler{width:10px;height:10px}.red-theme .fr-image-resizer .fr-handler.fr-hnw{left:-5px;top:-5px}.red-theme .fr-image-resizer .fr-handler.fr-hne{right:-5px;top:-5px}.red-theme .fr-image-resizer .fr-handler.fr-hsw{left:-5px;bottom:-5px}.red-theme .fr-image-resizer .fr-handler.fr-hse{right:-5px;bottom:-5px}}.red-theme.fr-image-overlay{top:0;left:0;bottom:0;right:0;z-index:2147483640}.red-theme.fr-popup .fr-image-upload-layer{border:dashed 2px #edc9c9;padding:25px 0}.red-theme.fr-popup .fr-image-upload-layer:hover{background:#c65a59}.red-theme.fr-popup .fr-image-upload-layer.fr-drop{background:#c65a59;border-color:#ffca28}.red-theme.fr-popup .fr-image-upload-layer .fr-form{top:0;bottom:0;left:0;right:0;z-index:2147483640}.red-theme.fr-popup .fr-image-progress-bar-layer>h3{margin:10px 0}.red-theme.fr-popup .fr-image-progress-bar-layer>div.fr-loader{background:#ffefbf}.red-theme.fr-popup .fr-image-progress-bar-layer>div.fr-loader span{background:#ffca28;-webkit-transition:width .2s ease 0s;-moz-transition:width .2s ease 0s;-ms-transition:width .2s ease 0s;-o-transition:width .2s ease 0s}.red-theme.fr-popup .fr-image-progress-bar-layer>div.fr-loader.fr-indeterminate span{top:0}.red-theme.fr-modal-head .fr-modal-head-line i.fr-modal-more{-webkit-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s;-moz-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s;-ms-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s;-o-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s}.red-theme.fr-modal-head .fr-modal-head-line i.fr-modal-more.fr-not-available{opacity:0;width:0;padding:12px 0}.red-theme.fr-modal-head .fr-modal-tags a{opacity:0;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;color:#ffca28;-webkit-transition:opacity .2s ease 0s,background .2s ease 0s;-moz-transition:opacity .2s ease 0s,background .2s ease 0s;-ms-transition:opacity .2s ease 0s,background .2s ease 0s;-o-transition:opacity .2s ease 0s,background .2s ease 0s}.red-theme.fr-modal-head .fr-modal-tags a.fr-selected-tag{background:#d48382}.red-themediv.fr-modal-body .fr-preloader{margin:50px auto}.red-themediv.fr-modal-body div.fr-image-list{padding:0}.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-image-deleting::after{-webkit-transition:opacity .2s ease 0s;-moz-transition:opacity .2s ease 0s;-ms-transition:opacity .2s ease 0s;-o-transition:opacity .2s ease 0s;background:#000;top:0;left:0;bottom:0;right:0}.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-image-deleting::before{color:#fff;top:0;left:0;bottom:0;right:0;margin:auto}.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-empty{background:#ccc}.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-empty::after{margin:auto;top:0;bottom:0;left:0;right:0}.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container img{-webkit-transition:opacity .2s ease 0s,filter .2s ease 0s;-moz-transition:opacity .2s ease 0s,filter .2s ease 0s;-ms-transition:opacity .2s ease 0s,filter .2s ease 0s;-o-transition:opacity .2s ease 0s,filter .2s ease 0s}.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img,.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img{-webkit-transition:background .2s ease 0s,color .2s ease 0s;-moz-transition:background .2s ease 0s,color .2s ease 0s;-ms-transition:background .2s ease 0s,color .2s ease 0s;-o-transition:background .2s ease 0s,color .2s ease 0s;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;margin:0}.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img{background:#b8312f;color:#fff}.red-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img{background:#b8312f;color:#ffca28}.red-theme.red-theme.fr-desktop .fr-modal-wrapper .fr-modal-head .fr-modal-tags a:hover{background:#c65a59}.red-theme.red-theme.fr-desktop .fr-modal-wrapper .fr-modal-head .fr-modal-tags a.fr-selected-tag{background:#d48382}.red-theme.red-theme.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img:hover{background:#bf4644;color:#fff}.red-theme.red-theme.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img:hover{background:#c65a59}.red-theme .fr-line-breaker{border-top:1px solid #ffca28}.red-theme .fr-line-breaker a.fr-floating-btn{left:calc(50% - (32px / 2));top:-16px}.red-theme .fr-qi-helper{padding-left:16px}.red-theme .fr-qi-helper a.fr-btn.fr-floating-btn{color:#fff}.red-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-special-characters-modal .fr-special-character{border:1px solid #ccc}.red-theme .fr-element table td.fr-selected-cell,.red-theme .fr-element table th.fr-selected-cell{border:1px double #ffca28}.red-theme .fr-table-resizer div{border-right:1px solid #ffca28}.red-theme.fr-popup .fr-table-colors-hex-layer .fr-input-line{padding:8px 0 0}.red-theme.fr-popup .fr-table-colors-hex-layer .fr-action-buttons button{background-color:#ffca28;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.red-theme.fr-popup .fr-table-colors-hex-layer .fr-action-buttons button:hover{background-color:#f4b800}.red-theme.fr-popup .fr-table-size .fr-select-table-size{line-height:0}.red-theme.fr-popup .fr-table-size .fr-select-table-size>span{padding:0 4px 4px 0}.red-theme.fr-popup .fr-table-size .fr-select-table-size>span>span{border:1px solid #ddd}.red-theme.fr-popup .fr-table-size .fr-select-table-size>span.hover>span{background:rgba(255,202,40,.3);border:solid 1px #ffca28}.red-theme.fr-popup .fr-table-colors{line-height:0}.red-theme.fr-popup .fr-table-colors>span>i{bottom:0;left:0}.red-theme.fr-popup .fr-table-colors>span:focus{outline:1px solid #fff}.red-theme .fr-element .fr-video::after{top:0;left:0;right:0;bottom:0}.red-theme.fr-box .fr-video-resizer{border:solid 1px #ffca28}.red-theme.fr-box .fr-video-resizer .fr-handler{background:#ffca28;border:solid 1px #fff}.red-theme.fr-box .fr-video-resizer .fr-handler{width:12px;height:12px}.red-theme.fr-box .fr-video-resizer .fr-handler.fr-hnw{left:-6px;top:-6px}.red-theme.fr-box .fr-video-resizer .fr-handler.fr-hne{right:-6px;top:-6px}.red-theme.fr-box .fr-video-resizer .fr-handler.fr-hsw{left:-6px;bottom:-6px}.red-theme.fr-box .fr-video-resizer .fr-handler.fr-hse{right:-6px;bottom:-6px}@media (min-width:1200px){.red-theme.fr-box .fr-video-resizer .fr-handler{width:10px;height:10px}.red-theme.fr-box .fr-video-resizer .fr-handler.fr-hnw{left:-5px;top:-5px}.red-theme.fr-box .fr-video-resizer .fr-handler.fr-hne{right:-5px;top:-5px}.red-theme.fr-box .fr-video-resizer .fr-handler.fr-hsw{left:-5px;bottom:-5px}.red-theme.fr-box .fr-video-resizer .fr-handler.fr-hse{right:-5px;bottom:-5px}}.red-theme.fr-popup .fr-video-upload-layer{border:dashed 2px #edc9c9;padding:25px 0}.red-theme.fr-popup .fr-video-upload-layer:hover{background:#c65a59}.red-theme.fr-popup .fr-video-upload-layer.fr-drop{background:#c65a59;border-color:#ffca28}.red-theme.fr-popup .fr-video-upload-layer .fr-form{top:0;bottom:0;left:0;right:0;z-index:2147483640}.red-theme.fr-popup .fr-video-progress-bar-layer>h3{margin:10px 0}.red-theme.fr-popup .fr-video-progress-bar-layer>div.fr-loader{background:#ffefbf}.red-theme.fr-popup .fr-video-progress-bar-layer>div.fr-loader span{background:#ffca28;-webkit-transition:width .2s ease 0s;-moz-transition:width .2s ease 0s;-ms-transition:width .2s ease 0s;-o-transition:width .2s ease 0s}.red-theme.fr-popup .fr-video-progress-bar-layer>div.fr-loader.fr-indeterminate span{top:0}.red-theme.fr-video-overlay{top:0;left:0;bottom:0;right:0;z-index:2147483640}.red-theme .fr-view span[style~="color:"] a{color:inherit}.red-theme .fr-view strong{font-weight:700}.red-theme .fr-view table.fr-alternate-rows tbody tr:nth-child(2n){background:#f5f5f5}.red-theme .fr-view table td,.red-theme .fr-view table th{border:1px solid #ddd}.red-theme .fr-view table th{background:#e6e6e6}.red-theme .fr-view[dir=rtl] blockquote{border-right:solid 2px #5e35b1;margin-right:0}.red-theme .fr-view[dir=rtl] blockquote blockquote{border-color:#00bcd4}.red-theme .fr-view[dir=rtl] blockquote blockquote blockquote{border-color:#43a047}.red-theme .fr-view blockquote{border-left:solid 2px #5e35b1;margin-left:0;color:#5e35b1}.red-theme .fr-view blockquote blockquote{border-color:#00bcd4;color:#00bcd4}.red-theme .fr-view blockquote blockquote blockquote{border-color:#43a047;color:#43a047}.red-theme .fr-view span.fr-emoticon{line-height:0}.red-theme .fr-view span.fr-emoticon.fr-emoticon-img{font-size:inherit}.red-theme .fr-view .fr-text-bordered{padding:10px 0}.red-theme .fr-view .fr-img-caption .fr-img-wrap{margin:auto}.red-theme .fr-view .fr-img-caption .fr-img-wrap img{margin:auto}.red-theme .fr-view .fr-img-caption .fr-img-wrap>span{margin:auto}.red-theme .fr-element .fr-embedly::after{top:0;left:0;right:0;bottom:0}.red-theme.fr-box .fr-embedly-resizer{border:solid 1px #ffca28}.red-theme .examples-variante>a{font-size:14px;font-family:Arial,Helvetica,sans-serif}.red-theme .sc-cm-holder>.sc-cm{border-top:5px solid #671b1a!important}.red-theme .sc-cm__item_dropdown:hover>a,.red-theme .sc-cm a:hover{background-color:#c65a59!important}.red-theme .sc-cm__item_active>a,.red-theme .sc-cm__item_active>a:hover,.red-theme .sc-cm a:active,.red-theme .sc-cm a:focus{background-color:#d48382!important}.red-theme .sc-cm-holder>.sc-cm:before{background-color:#c65a59!important}.red-theme .fr-tooltip{top:0;left:0;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background:#222;color:#fff;font-size:11px;line-height:22px;font-family:Arial,Helvetica,sans-serif;-webkit-transition:opacity .2s ease 0s;-moz-transition:opacity .2s ease 0s;-ms-transition:opacity .2s ease 0s;-o-transition:opacity .2s ease 0s}.red-theme.fr-toolbar .fr-command.fr-btn,.red-theme.fr-popup .fr-command.fr-btn{color:#fff;-moz-outline:0;outline:0;border:0;margin:0 2px;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s;padding:0;width:38px;height:38px}.red-theme.fr-toolbar .fr-command.fr-btn::-moz-focus-inner,.red-theme.fr-popup .fr-command.fr-btn::-moz-focus-inner{border:0}.red-theme.fr-toolbar .fr-command.fr-btn.fr-btn-text,.red-theme.fr-popup .fr-command.fr-btn.fr-btn-text{width:auto}.red-theme.fr-toolbar .fr-command.fr-btn i,.red-theme.fr-popup .fr-command.fr-btn i,.red-theme.fr-toolbar .fr-command.fr-btn svg,.red-theme.fr-popup .fr-command.fr-btn svg{font-size:14px;width:14px;margin:12px}.red-theme.fr-toolbar .fr-command.fr-btn span,.red-theme.fr-popup .fr-command.fr-btn span{font-size:14px;line-height:17px;min-width:34px;height:17px;padding:0 2px}.red-theme.fr-toolbar .fr-command.fr-btn img,.red-theme.fr-popup .fr-command.fr-btn img{margin:12px;width:14px}.red-theme.fr-toolbar .fr-command.fr-btn.fr-active,.red-theme.fr-popup .fr-command.fr-btn.fr-active{color:#ffca28;background:0 0}.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-selection,.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-selection{width:auto}.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown i,.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown i,.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown span,.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown span,.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown img,.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown img,.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown svg,.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown svg{margin-left:8px;margin-right:16px}.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active,.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active{color:#fff;background:#d48382}.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:hover,.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:hover,.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:focus,.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:focus{background:#d48382!important;color:#fff!important}.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:hover::after,.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:hover::after,.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:focus::after,.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:focus::after{border-top-color:#fff!important}.red-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown::after,.red-theme.fr-popup .fr-command.fr-btn.fr-dropdown::after{width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid #fff;right:4px;top:17px}.red-theme.fr-toolbar .fr-command.fr-btn.fr-disabled,.red-theme.fr-popup .fr-command.fr-btn.fr-disabled{color:#edc9c9}.red-theme.fr-toolbar .fr-command.fr-btn.fr-disabled::after,.red-theme.fr-popup .fr-command.fr-btn.fr-disabled::after{border-top-color:#edc9c9!important}.red-theme.fr-toolbar.fr-disabled .fr-btn,.red-theme.fr-popup.fr-disabled .fr-btn,.red-theme.fr-toolbar.fr-disabled .fr-btn.fr-active,.red-theme.fr-popup.fr-disabled .fr-btn.fr-active{color:#edc9c9}.red-theme.fr-toolbar.fr-disabled .fr-btn.fr-dropdown::after,.red-theme.fr-popup.fr-disabled .fr-btn.fr-dropdown::after,.red-theme.fr-toolbar.fr-disabled .fr-btn.fr-active.fr-dropdown::after,.red-theme.fr-popup.fr-disabled .fr-btn.fr-active.fr-dropdown::after{border-top-color:#edc9c9}.red-theme.fr-desktop .fr-command:hover,.red-theme.fr-desktop .fr-command:focus{outline:0;color:#fff;background:#c65a59}.red-theme.fr-desktop .fr-command:hover::after,.red-theme.fr-desktop .fr-command:focus::after{border-top-color:#fff!important}.red-theme.fr-desktop .fr-command.fr-selected{color:#fff;background:#d48382}.red-theme.fr-desktop .fr-command.fr-active:hover,.red-theme.fr-desktop .fr-command.fr-active:focus{color:#ffca28;background:#c65a59}.red-theme.fr-desktop .fr-command.fr-active.fr-selected{color:#ffca28;background:#d48382}.red-theme.fr-toolbar.fr-mobile .fr-command.fr-blink,.red-theme.fr-popup.fr-mobile .fr-command.fr-blink{background:0 0}.red-theme .fr-command.fr-btn+.fr-dropdown-menu{right:auto;bottom:auto;height:auto;border-radius:0 0 2px 2px;-moz-border-radius:0 0 2px 2px;-webkit-border-radius:0 0 2px 2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.red-theme .fr-command.fr-btn+.fr-dropdown-menu.test-height .fr-dropdown-wrapper{height:auto;max-height:275px}.red-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper{background:#b8312f;padding:0;margin:auto;-webkit-transition:max-height .2s ease 0s;-moz-transition:max-height .2s ease 0s;-ms-transition:max-height .2s ease 0s;-o-transition:max-height .2s ease 0s;margin-top:0;max-height:0;height:0}.red-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content{overflow:auto;max-height:275px}.red-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list{margin:0;padding:0}.red-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li{padding:0;margin:0}.red-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a{color:inherit}.red-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-active{background:#d48382}.red-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-disabled{color:#edc9c9}.red-theme .fr-command.fr-btn.fr-active+.fr-dropdown-menu{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.red-theme .fr-command.fr-btn.fr-active+.fr-dropdown-menu .fr-dropdown-wrapper{height:auto;max-height:275px}.red-theme .fr-bottom>.fr-command.fr-btn+.fr-dropdown-menu{border-radius:2px 2px 0 0;-moz-border-radius:2px 2px 0 0;-webkit-border-radius:2px 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.red-theme.fr-modal{color:#fff;font-family:Arial,Helvetica,sans-serif;overflow-x:auto;top:0;left:0;bottom:0;right:0;z-index:2147483640}.red-theme.fr-modal.fr-middle .fr-modal-wrapper{margin-top:0;margin-bottom:0;margin-left:auto;margin-right:auto}.red-theme.fr-modal .fr-modal-wrapper{border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;margin:20px auto;background:#b8312f;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;border:solid 1px #671b1a;border-top:5px solid #671b1a}@media (min-width:768px) and (max-width:991px){.red-theme.fr-modal .fr-modal-wrapper{margin:30px auto}}@media (min-width:992px){.red-theme.fr-modal .fr-modal-wrapper{margin:50px auto}}.red-theme.fr-modal .fr-modal-wrapper .fr-modal-head{background:#b8312f;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;border-bottom:solid 1px #671b1a;-webkit-transition:height .2s ease 0s;-moz-transition:height .2s ease 0s;-ms-transition:height .2s ease 0s;-o-transition:height .2s ease 0s}.red-theme.fr-modal .fr-modal-wrapper .fr-modal-head .fr-modal-close{color:#fff;top:0;right:0;-webkit-transition:color .2s ease 0s;-moz-transition:color .2s ease 0s;-ms-transition:color .2s ease 0s;-o-transition:color .2s ease 0s}.red-theme.fr-modal .fr-modal-wrapper .fr-modal-head h4{margin:0;font-weight:400}.red-theme.fr-modal .fr-modal-wrapper div.fr-modal-body:focus{outline:0}.red-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command{color:#ffca28;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.red-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:hover,.red-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:focus{background:#c65a59;color:#ffca28}.red-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:active{background:#d48382;color:#ffca28}.red-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button::-moz-focus-inner{border:0}.red-theme.red-theme.fr-desktop .fr-modal-wrapper .fr-modal-head i:hover{background:#c65a59}.red-theme.fr-overlay{top:0;bottom:0;left:0;right:0;background:#000}.red-theme.fr-popup{color:#fff;background:#b8312f;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;font-family:Arial,Helvetica,sans-serif;border:solid 1px #671b1a;border-top:5px solid #671b1a}.red-theme.fr-popup .fr-input-focus{background:#bf4644}.red-theme.fr-popup.fr-above{border-top:0;border-bottom:5px solid #671b1a;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.red-theme.fr-popup .fr-input-line{padding:8px 0}.red-theme.fr-popup .fr-input-line input[type=text],.red-theme.fr-popup .fr-input-line textarea{margin:0 0 1px;border-bottom:solid 1px #bdbdbd;color:#fff}.red-theme.fr-popup .fr-input-line input[type=text]:focus,.red-theme.fr-popup .fr-input-line textarea:focus{border-bottom:solid 2px #ffca28}.red-theme.fr-popup .fr-input-line input+label,.red-theme.fr-popup .fr-input-line textarea+label{top:0;left:0;-webkit-transition:color .2s ease 0s;-moz-transition:color .2s ease 0s;-ms-transition:color .2s ease 0s;-o-transition:color .2s ease 0s;background:#b8312f}.red-theme.fr-popup .fr-input-line input.fr-not-empty:focus+label,.red-theme.fr-popup .fr-input-line textarea.fr-not-empty:focus+label{color:#ffca28}.red-theme.fr-popup .fr-input-line input.fr-not-empty+label,.red-theme.fr-popup .fr-input-line textarea.fr-not-empty+label{color:gray}.red-theme.fr-popup .fr-buttons{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;padding:0 2px;line-height:0;border-bottom:solid 1px #671b1a}.red-theme.fr-popup .fr-layer{width:225px}@media (min-width:768px){.red-theme.fr-popup .fr-layer{width:300px}}.red-theme.fr-popup .fr-action-buttons button.fr-command{color:#ffca28;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.red-theme.fr-popup .fr-action-buttons button.fr-command:hover,.red-theme.fr-popup .fr-action-buttons button.fr-command:focus{background:#c65a59;color:#ffca28}.red-theme.fr-popup .fr-action-buttons button.fr-command:active{background:#d48382;color:#ffca28}.red-theme.fr-popup .fr-action-buttons button::-moz-focus-inner{border:0}.red-theme.fr-popup .fr-checkbox span{border:solid 1px #fff;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-transition:background .2s ease 0s,border-color .2s ease 0s;-moz-transition:background .2s ease 0s,border-color .2s ease 0s;-ms-transition:background .2s ease 0s,border-color .2s ease 0s;-o-transition:background .2s ease 0s,border-color .2s ease 0s}.red-theme.fr-popup .fr-checkbox input{margin:0;padding:0}.red-theme.fr-popup .fr-checkbox input:checked+span{background:#ffca28;border-color:#ffca28}.red-theme.fr-popup .fr-checkbox input:focus+span{border-color:#ffca28}.red-theme.fr-popup.fr-rtl .fr-input-line input+label,.red-theme.fr-popup.fr-rtl .fr-input-line textarea+label{left:auto;right:0}.red-theme.fr-popup .fr-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid #671b1a;top:-9px;margin-left:-5px}.red-theme.fr-popup.fr-above .fr-arrow{top:auto;bottom:-9px;border-bottom:0;border-top:5px solid #671b1a}.red-theme.fr-toolbar{color:#fff;background:#b8312f;font-family:Arial,Helvetica,sans-serif;padding:0 2px;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;border:solid 1px #671b1a;border-top:5px solid #671b1a}.red-theme.fr-toolbar.fr-inline .fr-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid #671b1a;top:-9px;margin-left:-5px}.red-theme.fr-toolbar.fr-inline.fr-above{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;border-bottom:5px solid #671b1a;border-top:0}.red-theme.fr-toolbar.fr-inline.fr-above .fr-arrow{top:auto;bottom:-9px;border-bottom:0;border-top-color:inherit;border-top-width:5px}.red-theme.fr-toolbar.fr-top{top:0;border-radius:2px 2px 0 0;-moz-border-radius:2px 2px 0 0;-webkit-border-radius:2px 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.red-theme.fr-toolbar.fr-bottom{bottom:0;border-radius:0 0 2px 2px;-moz-border-radius:0 0 2px 2px;-webkit-border-radius:0 0 2px 2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.red-theme .fr-separator{background:rgba(255,255,255,.3)}.red-theme .fr-separator.fr-vs{height:34px;width:1px;margin:2px}.red-theme .fr-separator.fr-hs{height:1px;width:calc(100% - (2 * 2px));margin:0 2px} \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/css/themes/royal.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/themes/royal.css similarity index 100% rename from Mobile.Search.Web/Scripts/froala-editor/css/themes/royal.css rename to Mobile.WYSIWYG/Scripts/froala-editor/css/themes/royal.css diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/themes/royal.min.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/themes/royal.min.css new file mode 100644 index 0000000..037c009 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/themes/royal.min.css @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.royal-theme.fr-box.fr-basic .fr-element{color:#000;padding:16px;overflow-x:auto;min-height:52px}.royal-theme .fr-element{-webkit-user-select:auto}.royal-theme.fr-box a.fr-floating-btn{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);height:32px;width:32px;background:#fff;color:#553982;-webkit-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;-moz-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;-ms-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;-o-transition:background .2s ease 0s,color .2s ease 0s,transform .2s ease 0s;left:0;top:0;line-height:32px;border:0}.royal-theme.fr-box a.fr-floating-btn svg{-webkit-transition:transform .2s ease 0s;-moz-transition:transform .2s ease 0s;-ms-transition:transform .2s ease 0s;-o-transition:transform .2s ease 0s;fill:#553982}.royal-theme.fr-box a.fr-floating-btn i,.royal-theme.fr-box a.fr-floating-btn svg{font-size:14px;line-height:32px}.royal-theme.fr-box a.fr-floating-btn:hover{background:#9365b8}.royal-theme.fr-box a.fr-floating-btn:hover svg{fill:#fff}.royal-theme .fr-wrapper .fr-placeholder{font-size:12px;color:#aaa;top:0;left:0;right:0}.royal-theme .fr-wrapper ::-moz-selection{background:#b5d6fd;color:#000}.royal-theme .fr-wrapper ::selection{background:#b5d6fd;color:#000}.royal-theme.fr-box.fr-basic .fr-wrapper{background:#fff;border:0;border-top:0;top:0;left:0}.royal-theme.fr-box.fr-basic.fr-top .fr-wrapper{border-top:0;border-radius:0 0 2px 2px;-moz-border-radius:0 0 2px 2px;-webkit-border-radius:0 0 2px 2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.royal-theme.fr-box.fr-basic.fr-bottom .fr-wrapper{border-bottom:0;border-radius:2px 2px 0 0;-moz-border-radius:2px 2px 0 0;-webkit-border-radius:2px 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16)}.royal-theme .fr-sticky-on.fr-sticky-ios{left:0;right:0}.royal-theme.fr-box .fr-counter{color:#ccc;background:#fff;border-top:solid 1px #ebebeb;border-left:solid 1px #ebebeb;border-radius:2px 0 0;-moz-border-radius:2px 0 0;-webkit-border-radius:2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.royal-theme.fr-box.fr-rtl .fr-counter{right:auto;border-right:solid 1px #ebebeb;border-radius:0 2px 0 0;-moz-border-radius:0 2px 0 0;-webkit-border-radius:0 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.royal-theme textarea.fr-code{background:#fff;color:#000}.royal-theme.fr-box.fr-code-view.fr-inline{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.royal-theme.fr-box.fr-inline .fr-command.fr-btn.html-switch{top:0;right:0;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);background:#fff;color:#553982;-moz-outline:0;outline:0;border:0;padding:12px;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s}.royal-theme.fr-box.fr-inline .fr-command.fr-btn.html-switch i{font-size:14px;width:14px}.royal-theme.fr-box.fr-inline .fr-command.fr-btn.html-switch.fr-desktop:hover{background:#ebebeb}.royal-theme.fr-popup .fr-colors-tabs{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.royal-theme.fr-popup .fr-colors-tabs .fr-colors-tab{color:#553982;padding:8px 0}.royal-theme.fr-popup .fr-colors-tabs .fr-colors-tab:hover,.royal-theme.fr-popup .fr-colors-tabs .fr-colors-tab:focus{color:#553982}.royal-theme.fr-popup .fr-colors-tabs .fr-colors-tab[data-param1=background]::after{bottom:0;left:0;background:#553982;-webkit-transition:transform .2s ease 0s;-moz-transition:transform .2s ease 0s;-ms-transition:transform .2s ease 0s;-o-transition:transform .2s ease 0s}.royal-theme.fr-popup .fr-colors-tabs .fr-colors-tab.fr-selected-tab{color:#553982}.royal-theme.fr-popup .fr-color-hex-layer .fr-input-line{padding:8px 0 0}.royal-theme.fr-popup .fr-color-hex-layer .fr-action-buttons button{background-color:#553982;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.royal-theme.fr-popup .fr-color-hex-layer .fr-action-buttons button:hover{background-color:#3e295f}.royal-theme.fr-popup .fr-color-set{line-height:0}.royal-theme.fr-popup .fr-color-set>span>i,.royal-theme.fr-popup .fr-color-set>span>svg{bottom:0;left:0}.royal-theme.fr-popup .fr-color-set>span .fr-selected-color{color:#fff;font-weight:400;top:0;bottom:0;right:0;left:0}.royal-theme.fr-popup .fr-color-set>span:hover,.royal-theme.fr-popup .fr-color-set>span:focus{outline:1px solid #553982}.royal-theme .fr-drag-helper{background:#553982;z-index:2147483640}.royal-theme.fr-popup .fr-link:focus{outline:0;background:#ebebeb}.royal-theme.fr-popup .fr-file-upload-layer{border:dashed 2px #b7bdc0;padding:25px 0}.royal-theme.fr-popup .fr-file-upload-layer:hover{background:#ebebeb}.royal-theme.fr-popup .fr-file-upload-layer.fr-drop{background:#ebebeb;border-color:#553982}.royal-theme.fr-popup .fr-file-upload-layer .fr-form{top:0;bottom:0;left:0;right:0;z-index:2147483640}.royal-theme.fr-popup .fr-file-progress-bar-layer>h3{margin:10px 0}.royal-theme.fr-popup .fr-file-progress-bar-layer>div.fr-loader{background:#ccc4da}.royal-theme.fr-popup .fr-file-progress-bar-layer>div.fr-loader span{background:#553982;-webkit-transition:width .2s ease 0s;-moz-transition:width .2s ease 0s;-ms-transition:width .2s ease 0s;-o-transition:width .2s ease 0s}.royal-theme.fr-popup .fr-file-progress-bar-layer>div.fr-loader.fr-indeterminate span{top:0}.royal-theme.fr-box.fr-fullscreen{top:0;left:0;bottom:0;right:0}.royal-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tr{border:0}.royal-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tbody tr{border-bottom:solid 1px #ebebeb}.royal-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-help-modal table tbody td:first-child{color:#8874a8}.royal-theme .fr-image-resizer{border:solid 1px #553982}.royal-theme .fr-image-resizer .fr-handler{background:#553982;border:solid 1px #fff}.royal-theme .fr-image-resizer .fr-handler{width:12px;height:12px}.royal-theme .fr-image-resizer .fr-handler.fr-hnw{left:-6px;top:-6px}.royal-theme .fr-image-resizer .fr-handler.fr-hne{right:-6px;top:-6px}.royal-theme .fr-image-resizer .fr-handler.fr-hsw{left:-6px;bottom:-6px}.royal-theme .fr-image-resizer .fr-handler.fr-hse{right:-6px;bottom:-6px}@media (min-width:1200px){.royal-theme .fr-image-resizer .fr-handler{width:10px;height:10px}.royal-theme .fr-image-resizer .fr-handler.fr-hnw{left:-5px;top:-5px}.royal-theme .fr-image-resizer .fr-handler.fr-hne{right:-5px;top:-5px}.royal-theme .fr-image-resizer .fr-handler.fr-hsw{left:-5px;bottom:-5px}.royal-theme .fr-image-resizer .fr-handler.fr-hse{right:-5px;bottom:-5px}}.royal-theme.fr-image-overlay{top:0;left:0;bottom:0;right:0;z-index:2147483640}.royal-theme.fr-popup .fr-image-upload-layer{border:dashed 2px #b7bdc0;padding:25px 0}.royal-theme.fr-popup .fr-image-upload-layer:hover{background:#ebebeb}.royal-theme.fr-popup .fr-image-upload-layer.fr-drop{background:#ebebeb;border-color:#553982}.royal-theme.fr-popup .fr-image-upload-layer .fr-form{top:0;bottom:0;left:0;right:0;z-index:2147483640}.royal-theme.fr-popup .fr-image-progress-bar-layer>h3{margin:10px 0}.royal-theme.fr-popup .fr-image-progress-bar-layer>div.fr-loader{background:#ccc4da}.royal-theme.fr-popup .fr-image-progress-bar-layer>div.fr-loader span{background:#553982;-webkit-transition:width .2s ease 0s;-moz-transition:width .2s ease 0s;-ms-transition:width .2s ease 0s;-o-transition:width .2s ease 0s}.royal-theme.fr-popup .fr-image-progress-bar-layer>div.fr-loader.fr-indeterminate span{top:0}.royal-theme.fr-modal-head .fr-modal-head-line i.fr-modal-more{-webkit-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s;-moz-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s;-ms-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s;-o-transition:padding .2s ease 0s,width .2s ease 0s,opacity .2s ease 0s}.royal-theme.fr-modal-head .fr-modal-head-line i.fr-modal-more.fr-not-available{opacity:0;width:0;padding:12px 0}.royal-theme.fr-modal-head .fr-modal-tags a{opacity:0;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;color:#553982;-webkit-transition:opacity .2s ease 0s,background .2s ease 0s;-moz-transition:opacity .2s ease 0s,background .2s ease 0s;-ms-transition:opacity .2s ease 0s,background .2s ease 0s;-o-transition:opacity .2s ease 0s,background .2s ease 0s}.royal-theme.fr-modal-head .fr-modal-tags a.fr-selected-tag{background:#d6d6d6}.royal-themediv.fr-modal-body .fr-preloader{margin:50px auto}.royal-themediv.fr-modal-body div.fr-image-list{padding:0}.royal-themediv.fr-modal-body div.fr-image-list div.fr-image-container{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.royal-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-image-deleting::after{-webkit-transition:opacity .2s ease 0s;-moz-transition:opacity .2s ease 0s;-ms-transition:opacity .2s ease 0s;-o-transition:opacity .2s ease 0s;background:#000;top:0;left:0;bottom:0;right:0}.royal-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-image-deleting::before{color:#fff;top:0;left:0;bottom:0;right:0;margin:auto}.royal-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-empty{background:#ccc}.royal-themediv.fr-modal-body div.fr-image-list div.fr-image-container.fr-empty::after{margin:auto;top:0;bottom:0;left:0;right:0}.royal-themediv.fr-modal-body div.fr-image-list div.fr-image-container img{-webkit-transition:opacity .2s ease 0s,filter .2s ease 0s;-moz-transition:opacity .2s ease 0s,filter .2s ease 0s;-ms-transition:opacity .2s ease 0s,filter .2s ease 0s;-o-transition:opacity .2s ease 0s,filter .2s ease 0s}.royal-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img,.royal-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img{-webkit-transition:background .2s ease 0s,color .2s ease 0s;-moz-transition:background .2s ease 0s,color .2s ease 0s;-ms-transition:background .2s ease 0s,color .2s ease 0s;-o-transition:background .2s ease 0s,color .2s ease 0s;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);margin:0}.royal-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img{background:#b8312f;color:#fff}.royal-themediv.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img{background:#fff;color:#553982}.royal-theme.royal-theme.fr-desktop .fr-modal-wrapper .fr-modal-head .fr-modal-tags a:hover{background:#ebebeb}.royal-theme.royal-theme.fr-desktop .fr-modal-wrapper .fr-modal-head .fr-modal-tags a.fr-selected-tag{background:#d6d6d6}.royal-theme.royal-theme.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img:hover{background:#bf4644;color:#fff}.royal-theme.royal-theme.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img:hover{background:#ebebeb}.royal-theme .fr-line-breaker{border-top:1px solid #553982}.royal-theme .fr-line-breaker a.fr-floating-btn{left:calc(50% - (32px / 2));top:-16px}.royal-theme .fr-qi-helper{padding-left:16px}.royal-theme .fr-qi-helper a.fr-btn.fr-floating-btn{color:#553982}.royal-theme.fr-modal .fr-modal-wrapper .fr-modal-body .fr-special-characters-modal .fr-special-character{border:1px solid #ccc}.royal-theme .fr-element table td.fr-selected-cell,.royal-theme .fr-element table th.fr-selected-cell{border:1px double #553982}.royal-theme .fr-table-resizer div{border-right:1px solid #553982}.royal-theme.fr-popup .fr-table-colors-hex-layer .fr-input-line{padding:8px 0 0}.royal-theme.fr-popup .fr-table-colors-hex-layer .fr-action-buttons button{background-color:#553982;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.royal-theme.fr-popup .fr-table-colors-hex-layer .fr-action-buttons button:hover{background-color:#3e295f}.royal-theme.fr-popup .fr-table-size .fr-select-table-size{line-height:0}.royal-theme.fr-popup .fr-table-size .fr-select-table-size>span{padding:0 4px 4px 0}.royal-theme.fr-popup .fr-table-size .fr-select-table-size>span>span{border:1px solid #ddd}.royal-theme.fr-popup .fr-table-size .fr-select-table-size>span.hover>span{background:rgba(85,57,130,.3);border:solid 1px #553982}.royal-theme.fr-popup .fr-table-colors{line-height:0}.royal-theme.fr-popup .fr-table-colors>span>i{bottom:0;left:0}.royal-theme.fr-popup .fr-table-colors>span:focus{outline:1px solid #553982}.royal-theme .fr-element .fr-video::after{top:0;left:0;right:0;bottom:0}.royal-theme.fr-box .fr-video-resizer{border:solid 1px #553982}.royal-theme.fr-box .fr-video-resizer .fr-handler{background:#553982;border:solid 1px #fff}.royal-theme.fr-box .fr-video-resizer .fr-handler{width:12px;height:12px}.royal-theme.fr-box .fr-video-resizer .fr-handler.fr-hnw{left:-6px;top:-6px}.royal-theme.fr-box .fr-video-resizer .fr-handler.fr-hne{right:-6px;top:-6px}.royal-theme.fr-box .fr-video-resizer .fr-handler.fr-hsw{left:-6px;bottom:-6px}.royal-theme.fr-box .fr-video-resizer .fr-handler.fr-hse{right:-6px;bottom:-6px}@media (min-width:1200px){.royal-theme.fr-box .fr-video-resizer .fr-handler{width:10px;height:10px}.royal-theme.fr-box .fr-video-resizer .fr-handler.fr-hnw{left:-5px;top:-5px}.royal-theme.fr-box .fr-video-resizer .fr-handler.fr-hne{right:-5px;top:-5px}.royal-theme.fr-box .fr-video-resizer .fr-handler.fr-hsw{left:-5px;bottom:-5px}.royal-theme.fr-box .fr-video-resizer .fr-handler.fr-hse{right:-5px;bottom:-5px}}.royal-theme.fr-popup .fr-video-upload-layer{border:dashed 2px #b7bdc0;padding:25px 0}.royal-theme.fr-popup .fr-video-upload-layer:hover{background:#ebebeb}.royal-theme.fr-popup .fr-video-upload-layer.fr-drop{background:#ebebeb;border-color:#553982}.royal-theme.fr-popup .fr-video-upload-layer .fr-form{top:0;bottom:0;left:0;right:0;z-index:2147483640}.royal-theme.fr-popup .fr-video-progress-bar-layer>h3{margin:10px 0}.royal-theme.fr-popup .fr-video-progress-bar-layer>div.fr-loader{background:#ccc4da}.royal-theme.fr-popup .fr-video-progress-bar-layer>div.fr-loader span{background:#553982;-webkit-transition:width .2s ease 0s;-moz-transition:width .2s ease 0s;-ms-transition:width .2s ease 0s;-o-transition:width .2s ease 0s}.royal-theme.fr-popup .fr-video-progress-bar-layer>div.fr-loader.fr-indeterminate span{top:0}.royal-theme.fr-video-overlay{top:0;left:0;bottom:0;right:0;z-index:2147483640}.royal-theme .fr-view span[style~="color:"] a{color:inherit}.royal-theme .fr-view strong{font-weight:700}.royal-theme .fr-view table.fr-alternate-rows tbody tr:nth-child(2n){background:#f5f5f5}.royal-theme .fr-view table td,.royal-theme .fr-view table th{border:1px solid #ddd}.royal-theme .fr-view table th{background:#e6e6e6}.royal-theme .fr-view[dir=rtl] blockquote{border-right:solid 2px #5e35b1;margin-right:0}.royal-theme .fr-view[dir=rtl] blockquote blockquote{border-color:#00bcd4}.royal-theme .fr-view[dir=rtl] blockquote blockquote blockquote{border-color:#43a047}.royal-theme .fr-view blockquote{border-left:solid 2px #5e35b1;margin-left:0;color:#5e35b1}.royal-theme .fr-view blockquote blockquote{border-color:#00bcd4;color:#00bcd4}.royal-theme .fr-view blockquote blockquote blockquote{border-color:#43a047;color:#43a047}.royal-theme .fr-view span.fr-emoticon{line-height:0}.royal-theme .fr-view span.fr-emoticon.fr-emoticon-img{font-size:inherit}.royal-theme .fr-view .fr-text-bordered{padding:10px 0}.royal-theme .fr-view .fr-img-caption .fr-img-wrap{margin:auto}.royal-theme .fr-view .fr-img-caption .fr-img-wrap img{margin:auto}.royal-theme .fr-view .fr-img-caption .fr-img-wrap>span{margin:auto}.royal-theme .fr-element .fr-embedly::after{top:0;left:0;right:0;bottom:0}.royal-theme.fr-box .fr-embedly-resizer{border:solid 1px #553982}.royal-theme .examples-variante>a{font-size:14px;font-family:Arial,Helvetica,sans-serif}.royal-theme .sc-cm-holder>.sc-cm{border-top:5px solid #553982!important}.royal-theme .sc-cm__item_dropdown:hover>a,.royal-theme .sc-cm a:hover{background-color:#ebebeb!important}.royal-theme .sc-cm__item_active>a,.royal-theme .sc-cm__item_active>a:hover,.royal-theme .sc-cm a:active,.royal-theme .sc-cm a:focus{background-color:#d6d6d6!important}.royal-theme .sc-cm-holder>.sc-cm:before{background-color:#ebebeb!important}.royal-theme .fr-tooltip{top:0;left:0;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);-moz-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);background:#222;color:#fff;font-size:11px;line-height:22px;font-family:Arial,Helvetica,sans-serif;-webkit-transition:opacity .2s ease 0s;-moz-transition:opacity .2s ease 0s;-ms-transition:opacity .2s ease 0s;-o-transition:opacity .2s ease 0s}.royal-theme.fr-toolbar .fr-command.fr-btn,.royal-theme.fr-popup .fr-command.fr-btn{color:#553982;-moz-outline:0;outline:0;border:0;margin:0 2px;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s;padding:0;width:38px;height:38px}.royal-theme.fr-toolbar .fr-command.fr-btn::-moz-focus-inner,.royal-theme.fr-popup .fr-command.fr-btn::-moz-focus-inner{border:0}.royal-theme.fr-toolbar .fr-command.fr-btn.fr-btn-text,.royal-theme.fr-popup .fr-command.fr-btn.fr-btn-text{width:auto}.royal-theme.fr-toolbar .fr-command.fr-btn i,.royal-theme.fr-popup .fr-command.fr-btn i,.royal-theme.fr-toolbar .fr-command.fr-btn svg,.royal-theme.fr-popup .fr-command.fr-btn svg{font-size:14px;width:14px;margin:12px}.royal-theme.fr-toolbar .fr-command.fr-btn span,.royal-theme.fr-popup .fr-command.fr-btn span{font-size:14px;line-height:17px;min-width:34px;height:17px;padding:0 2px}.royal-theme.fr-toolbar .fr-command.fr-btn img,.royal-theme.fr-popup .fr-command.fr-btn img{margin:12px;width:14px}.royal-theme.fr-toolbar .fr-command.fr-btn.fr-active,.royal-theme.fr-popup .fr-command.fr-btn.fr-active{color:#fff;background:#9365b8}.royal-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-selection,.royal-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-selection{width:auto}.royal-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown i,.royal-theme.fr-popup .fr-command.fr-btn.fr-dropdown i,.royal-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown span,.royal-theme.fr-popup .fr-command.fr-btn.fr-dropdown span,.royal-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown img,.royal-theme.fr-popup .fr-command.fr-btn.fr-dropdown img,.royal-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown svg,.royal-theme.fr-popup .fr-command.fr-btn.fr-dropdown svg{margin-left:8px;margin-right:16px}.royal-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active,.royal-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active{color:#553982;background:#d6d6d6}.royal-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:hover,.royal-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:hover,.royal-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:focus,.royal-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:focus{background:#d6d6d6!important;color:#553982!important}.royal-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:hover::after,.royal-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:hover::after,.royal-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-active:focus::after,.royal-theme.fr-popup .fr-command.fr-btn.fr-dropdown.fr-active:focus::after{border-top-color:#553982!important}.royal-theme.fr-toolbar .fr-command.fr-btn.fr-dropdown::after,.royal-theme.fr-popup .fr-command.fr-btn.fr-dropdown::after{width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid #553982;right:4px;top:17px}.royal-theme.fr-toolbar .fr-command.fr-btn.fr-disabled,.royal-theme.fr-popup .fr-command.fr-btn.fr-disabled{color:#b7bdc0}.royal-theme.fr-toolbar .fr-command.fr-btn.fr-disabled::after,.royal-theme.fr-popup .fr-command.fr-btn.fr-disabled::after{border-top-color:#b7bdc0!important}.royal-theme.fr-toolbar.fr-disabled .fr-btn,.royal-theme.fr-popup.fr-disabled .fr-btn,.royal-theme.fr-toolbar.fr-disabled .fr-btn.fr-active,.royal-theme.fr-popup.fr-disabled .fr-btn.fr-active{color:#b7bdc0}.royal-theme.fr-toolbar.fr-disabled .fr-btn.fr-dropdown::after,.royal-theme.fr-popup.fr-disabled .fr-btn.fr-dropdown::after,.royal-theme.fr-toolbar.fr-disabled .fr-btn.fr-active.fr-dropdown::after,.royal-theme.fr-popup.fr-disabled .fr-btn.fr-active.fr-dropdown::after{border-top-color:#b7bdc0}.royal-theme.fr-desktop .fr-command:hover,.royal-theme.fr-desktop .fr-command:focus{outline:0;color:#553982;background:#ebebeb}.royal-theme.fr-desktop .fr-command:hover::after,.royal-theme.fr-desktop .fr-command:focus::after{border-top-color:#553982!important}.royal-theme.fr-desktop .fr-command.fr-selected{color:#553982;background:#d6d6d6}.royal-theme.fr-desktop .fr-command.fr-active:hover,.royal-theme.fr-desktop .fr-command.fr-active:focus{color:#553982;background:#ebebeb}.royal-theme.fr-desktop .fr-command.fr-active.fr-selected{color:#553982;background:#d6d6d6}.royal-theme.fr-toolbar.fr-mobile .fr-command.fr-blink,.royal-theme.fr-popup.fr-mobile .fr-command.fr-blink{background:#9365b8}.royal-theme .fr-command.fr-btn+.fr-dropdown-menu{right:auto;bottom:auto;height:auto;border-radius:0 0 2px 2px;-moz-border-radius:0 0 2px 2px;-webkit-border-radius:0 0 2px 2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.royal-theme .fr-command.fr-btn+.fr-dropdown-menu.test-height .fr-dropdown-wrapper{height:auto;max-height:275px}.royal-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper{background:#fff;padding:0;margin:auto;-webkit-transition:max-height .2s ease 0s;-moz-transition:max-height .2s ease 0s;-ms-transition:max-height .2s ease 0s;-o-transition:max-height .2s ease 0s;margin-top:0;max-height:0;height:0}.royal-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content{overflow:auto;max-height:275px}.royal-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list{margin:0;padding:0}.royal-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li{padding:0;margin:0}.royal-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a{color:inherit}.royal-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-active{background:#d6d6d6}.royal-theme .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-disabled{color:#b7bdc0}.royal-theme .fr-command.fr-btn.fr-active+.fr-dropdown-menu{-webkit-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);-moz-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14)}.royal-theme .fr-command.fr-btn.fr-active+.fr-dropdown-menu .fr-dropdown-wrapper{height:auto;max-height:275px}.royal-theme .fr-bottom>.fr-command.fr-btn+.fr-dropdown-menu{border-radius:2px 2px 0 0;-moz-border-radius:2px 2px 0 0;-webkit-border-radius:2px 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.royal-theme.fr-modal{color:#553982;font-family:Arial,Helvetica,sans-serif;overflow-x:auto;top:0;left:0;bottom:0;right:0;z-index:2147483640}.royal-theme.fr-modal.fr-middle .fr-modal-wrapper{margin-top:0;margin-bottom:0;margin-left:auto;margin-right:auto}.royal-theme.fr-modal .fr-modal-wrapper{border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;margin:20px auto;background:#fff;-webkit-box-shadow:0 5px 8px rgba(0,0,0,.19),0 4px 3px 1px rgba(0,0,0,.14);-moz-box-shadow:0 5px 8px rgba(0,0,0,.19),0 4px 3px 1px rgba(0,0,0,.14);box-shadow:0 5px 8px rgba(0,0,0,.19),0 4px 3px 1px rgba(0,0,0,.14);border:0;border-top:5px solid #553982}@media (min-width:768px) and (max-width:991px){.royal-theme.fr-modal .fr-modal-wrapper{margin:30px auto}}@media (min-width:992px){.royal-theme.fr-modal .fr-modal-wrapper{margin:50px auto}}.royal-theme.fr-modal .fr-modal-wrapper .fr-modal-head{background:#fff;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);-moz-box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);box-shadow:0 3px 6px rgba(0,0,0,.16),0 2px 2px 1px rgba(0,0,0,.14);border-bottom:0;-webkit-transition:height .2s ease 0s;-moz-transition:height .2s ease 0s;-ms-transition:height .2s ease 0s;-o-transition:height .2s ease 0s}.royal-theme.fr-modal .fr-modal-wrapper .fr-modal-head .fr-modal-close{color:#553982;top:0;right:0;-webkit-transition:color .2s ease 0s;-moz-transition:color .2s ease 0s;-ms-transition:color .2s ease 0s;-o-transition:color .2s ease 0s}.royal-theme.fr-modal .fr-modal-wrapper .fr-modal-head h4{margin:0;font-weight:400}.royal-theme.fr-modal .fr-modal-wrapper div.fr-modal-body:focus{outline:0}.royal-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command{color:#553982;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.royal-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:hover,.royal-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:focus{background:#ebebeb;color:#553982}.royal-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:active{background:#d6d6d6;color:#553982}.royal-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button::-moz-focus-inner{border:0}.royal-theme.royal-theme.fr-desktop .fr-modal-wrapper .fr-modal-head i:hover{background:#ebebeb}.royal-theme.fr-overlay{top:0;bottom:0;left:0;right:0;background:#000}.royal-theme.fr-popup{color:#553982;background:#fff;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;font-family:Arial,Helvetica,sans-serif;border:0;border-top:5px solid #553982}.royal-theme.fr-popup .fr-input-focus{background:#f5f5f5}.royal-theme.fr-popup.fr-above{border-top:0;border-bottom:5px solid #553982;-webkit-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16)}.royal-theme.fr-popup .fr-input-line{padding:8px 0}.royal-theme.fr-popup .fr-input-line input[type=text],.royal-theme.fr-popup .fr-input-line textarea{margin:0 0 1px;border-bottom:solid 1px #bdbdbd;color:#553982}.royal-theme.fr-popup .fr-input-line input[type=text]:focus,.royal-theme.fr-popup .fr-input-line textarea:focus{border-bottom:solid 2px #553982}.royal-theme.fr-popup .fr-input-line input+label,.royal-theme.fr-popup .fr-input-line textarea+label{top:0;left:0;-webkit-transition:color .2s ease 0s;-moz-transition:color .2s ease 0s;-ms-transition:color .2s ease 0s;-o-transition:color .2s ease 0s;background:#fff}.royal-theme.fr-popup .fr-input-line input.fr-not-empty:focus+label,.royal-theme.fr-popup .fr-input-line textarea.fr-not-empty:focus+label{color:#553982}.royal-theme.fr-popup .fr-input-line input.fr-not-empty+label,.royal-theme.fr-popup .fr-input-line textarea.fr-not-empty+label{color:gray}.royal-theme.fr-popup .fr-buttons{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);padding:0 2px;line-height:0;border-bottom:0}.royal-theme.fr-popup .fr-layer{width:225px}@media (min-width:768px){.royal-theme.fr-popup .fr-layer{width:300px}}.royal-theme.fr-popup .fr-action-buttons button.fr-command{color:#553982;-webkit-transition:background .2s ease 0s;-moz-transition:background .2s ease 0s;-ms-transition:background .2s ease 0s;-o-transition:background .2s ease 0s;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.royal-theme.fr-popup .fr-action-buttons button.fr-command:hover,.royal-theme.fr-popup .fr-action-buttons button.fr-command:focus{background:#ebebeb;color:#553982}.royal-theme.fr-popup .fr-action-buttons button.fr-command:active{background:#d6d6d6;color:#553982}.royal-theme.fr-popup .fr-action-buttons button::-moz-focus-inner{border:0}.royal-theme.fr-popup .fr-checkbox span{border:solid 1px #553982;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-transition:background .2s ease 0s,border-color .2s ease 0s;-moz-transition:background .2s ease 0s,border-color .2s ease 0s;-ms-transition:background .2s ease 0s,border-color .2s ease 0s;-o-transition:background .2s ease 0s,border-color .2s ease 0s}.royal-theme.fr-popup .fr-checkbox input{margin:0;padding:0}.royal-theme.fr-popup .fr-checkbox input:checked+span{background:#553982;border-color:#553982}.royal-theme.fr-popup .fr-checkbox input:focus+span{border-color:#553982}.royal-theme.fr-popup.fr-rtl .fr-input-line input+label,.royal-theme.fr-popup.fr-rtl .fr-input-line textarea+label{left:auto;right:0}.royal-theme.fr-popup .fr-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid #553982;top:-9px;margin-left:-5px}.royal-theme.fr-popup.fr-above .fr-arrow{top:auto;bottom:-9px;border-bottom:0;border-top:5px solid #553982}.royal-theme.fr-toolbar{color:#553982;background:#fff;font-family:Arial,Helvetica,sans-serif;padding:0 2px;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);border:0;border-top:5px solid #553982}.royal-theme.fr-toolbar.fr-inline .fr-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid #553982;top:-9px;margin-left:-5px}.royal-theme.fr-toolbar.fr-inline.fr-above{-webkit-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);box-shadow:0 -1px 3px rgba(0,0,0,.12),0 -1px 1px 1px rgba(0,0,0,.16);border-bottom:5px solid #553982;border-top:0}.royal-theme.fr-toolbar.fr-inline.fr-above .fr-arrow{top:auto;bottom:-9px;border-bottom:0;border-top-color:inherit;border-top-width:5px}.royal-theme.fr-toolbar.fr-top{top:0;border-radius:2px 2px 0 0;-moz-border-radius:2px 2px 0 0;-webkit-border-radius:2px 2px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.royal-theme.fr-toolbar.fr-bottom{bottom:0;border-radius:0 0 2px 2px;-moz-border-radius:0 0 2px 2px;-webkit-border-radius:0 0 2px 2px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.royal-theme .fr-separator{background:#ebebeb}.royal-theme .fr-separator.fr-vs{height:34px;width:1px;margin:2px}.royal-theme .fr-separator.fr-hs{height:1px;width:calc(100% - (2 * 2px));margin:0 2px} \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/third_party/embedly.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/third_party/embedly.css new file mode 100644 index 0000000..5c496f6 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/third_party/embedly.css @@ -0,0 +1,64 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after { + clear: both; + display: block; + content: ""; + height: 0; +} +.hide-by-clipping { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; +} +.fr-element .fr-embedly { + user-select: none; + -o-user-select: none; + -moz-user-select: none; + -khtml-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + position: relative; +} +.fr-element .fr-embedly::after { + position: absolute; + content: ''; + z-index: 1; + top: 0; + left: 0; + right: 0; + bottom: 0; + cursor: pointer; + display: block; + background: rgba(0, 0, 0, 0); +} +.fr-element .fr-embedly > * { + -webkit-box-sizing: content-box; + -moz-box-sizing: content-box; + box-sizing: content-box; + max-width: 100%; + border: none; +} +.fr-box .fr-embedly-resizer { + position: absolute; + border: solid 1px #1e88e5; + display: none; + user-select: none; + -o-user-select: none; + -moz-user-select: none; + -khtml-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; +} +.fr-box .fr-embedly-resizer.fr-active { + display: block; +} diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/third_party/embedly.min.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/third_party/embedly.min.css new file mode 100644 index 0000000..63d9b14 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/third_party/embedly.min.css @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.fr-element .fr-embedly{user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;position:relative}.fr-element .fr-embedly::after{position:absolute;content:'';z-index:1;top:0;left:0;right:0;bottom:0;cursor:pointer;display:block;background:rgba(0,0,0,0)}.fr-element .fr-embedly>*{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;max-width:100%;border:0}.fr-box .fr-embedly-resizer{position:absolute;border:solid 1px #1e88e5;display:none;user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none}.fr-box .fr-embedly-resizer.fr-active{display:block} \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/third_party/spell_checker.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/third_party/spell_checker.css new file mode 100644 index 0000000..85e60f3 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/third_party/spell_checker.css @@ -0,0 +1,72 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after { + clear: both; + display: block; + content: ""; + height: 0; +} +.hide-by-clipping { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; +} +.examples-variante > a { + font-size: 14px; + font-family: Arial, Helvetica, sans-serif; +} +.sc-cm-holder > .sc-cm { + border-top: 5px solid #222222 !important; + padding: 0px !important; + line-height: 200% !important; + -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); + -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16); +} +.sc-cm .sc-cm__item.examples-variante.sc-cm__item_active > a > i { + display: none !important; +} +.sc-cm .sc-cm__item.examples-variante > a > i { + display: none !important; +} +.sc-cm__item_dropdown .i-icon { + display: none !important; +} +.sc-cm__item_dropdown .i-icon::before { + display: none !important; +} +.sc-cm::before { + display: none !important; +} +div.sc-cm-holder.sc-cm_show > ul > li.sc-cm__item.sc-cm__item_dropdown.sc-cm__item_arrow > div > ul { + border-style: none !important; + padding: 0px !important; +} +.sc-cm__item_dropdown:hover > a, +.sc-cm a:hover { + background-color: #ebebeb !important; +} +.sc-cm__item_active > a, +.sc-cm__item_active > a:hover, +.sc-cm a:active, +.sc-cm a:focus { + background-color: #d6d6d6 !important; +} +.sc-cm__item > a { + line-height: 200% !important; +} +.sc-cm-holder > .sc-cm:before { + background-color: #ebebeb !important; +} +.sc-cm-holder { + display: none; +} diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/css/third_party/spell_checker.min.css b/Mobile.WYSIWYG/Scripts/froala-editor/css/third_party/spell_checker.min.css new file mode 100644 index 0000000..bfaacde --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/css/third_party/spell_checker.min.css @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +.clearfix::after{clear:both;display:block;content:"";height:0}.hide-by-clipping{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.examples-variante>a{font-size:14px;font-family:Arial,Helvetica,sans-serif}.sc-cm-holder>.sc-cm{border-top:5px solid #222!important;padding:0!important;line-height:200%!important;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);-moz-box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16);box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 1px 1px rgba(0,0,0,.16)}.sc-cm .sc-cm__item.examples-variante.sc-cm__item_active>a>i{display:none!important}.sc-cm .sc-cm__item.examples-variante>a>i{display:none!important}.sc-cm__item_dropdown .i-icon{display:none!important}.sc-cm__item_dropdown .i-icon::before{display:none!important}.sc-cm::before{display:none!important}div.sc-cm-holder.sc-cm_show>ul>li.sc-cm__item.sc-cm__item_dropdown.sc-cm__item_arrow>div>ul{border-style:none!important;padding:0!important}.sc-cm__item_dropdown:hover>a,.sc-cm a:hover{background-color:#ebebeb!important}.sc-cm__item_active>a,.sc-cm__item_active>a:hover,.sc-cm a:active,.sc-cm a:focus{background-color:#d6d6d6!important}.sc-cm__item>a{line-height:200%!important}.sc-cm-holder>.sc-cm:before{background-color:#ebebeb!important}.sc-cm-holder{display:none} \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/froala-editor/editor.jpg b/Mobile.WYSIWYG/Scripts/froala-editor/editor.jpg similarity index 100% rename from Mobile.Search.Web/Scripts/froala-editor/editor.jpg rename to Mobile.WYSIWYG/Scripts/froala-editor/editor.jpg diff --git a/Mobile.Search.Web/Scripts/froala-editor/img/photo1.jpg b/Mobile.WYSIWYG/Scripts/froala-editor/img/photo1.jpg similarity index 100% rename from Mobile.Search.Web/Scripts/froala-editor/img/photo1.jpg rename to Mobile.WYSIWYG/Scripts/froala-editor/img/photo1.jpg diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/index.html b/Mobile.WYSIWYG/Scripts/froala-editor/index.html new file mode 100644 index 0000000..0dd9332 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/index.html @@ -0,0 +1,313 @@ +<!DOCTYPE html> +<html> + +<head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0" /> + <title>Froala Editor Examples</title> + + <style> + body { + line-height: 1.5; + font-family: sans-serif; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + } + + section { + width: 90%; + margin: auto; + padding-top: 30px; + } + + #data-list { + -webkit-column-gap: 30px; + /* Chrome, Safari, Opera */ + -moz-column-gap: 30px; + /* Firefox */ + column-gap: 30px; + -webkit-column-count: 4; + /* Chrome, Safari, Opera */ + -moz-column-count: 4; + /* Firefox */ + column-count: 4; + } + + #data-list>div { + page-break-inside: avoid; + } + + #data-list>div:after { + content: ""; + display: block; + height: 20px; + } + + h1 { + font-size: 36px; + font-weight: 300; + text-align: center; + } + + h2 { + margin: 0; + color: #252525; + border-left: 3px solid #0098f7; + padding-left: 10px; + font-weight: 400; + } + + ul { + padding-left: 5px; + } + + ul li { + list-style: none; + font-size: 16px; + } + + ul li a { + text-decoration: none; + color: #515151; + } + + </style> +</head> + +<body> + <section> + <h1>Froala Editor Examples</h1> + + <br/> + + <div id="data-list"> + <div> + <h2>Popular</h2> + <ul> + <li><a href="./html/popular/full.html" title="Full Featured">Full Featured</a></li> + <li><a href="./html/popular/toolbar_inline.html" title="Inline Editor">Inline Editor</a></li> + <li><a href="./html/popular/two_instances.html" title="Multiple Editor Instances">Multiple Editor Instances</a></li> + <li><a href="./html/popular/textarea.html" title="Textarea Editor">Textarea Editor</a></li> + <li><a href="./html/popular/full_page.html" title="Full Page">Full Page</a></li> + <li><a href="./html/popular/iframe.html" title="Iframe">Iframe</a></li> + <li><a href="./html/popular/disable_edit.html" title="Non-editable Zones">Non-editable Zones</a></li> + <li><a href="./html/popular/z_index.html" title="Z-index">Z-index</a></li> + <li><a href="./html/popular/init_on_click.html" title="Init on Click">Init on Click</a></li> + <li><a href="./html/popular/toolbar_buttons.html" title="Change Toolbar Buttons">Change Toolbar Buttons</a></li> + <li><a href="./html/popular/disable_paragraphs.html" title="Disable Paragraphs">Disable Paragraphs</a></li> + </ul> + </div> + + <div> + <h2>3rd Party Integration</h2> + <ul> + <li><a href="./html/3rd-party/aviary/index.html" title="Bootstrap Grid">Aviary Integration</a></li> + <li><a href="./html/3rd-party/bootstrap/grid.html" title="Bootstrap Grid">Bootstrap Grid</a></li> + <li><a href="./html/3rd-party/bootstrap/lists.html" title="Bootstrap List Group">Bootstrap List Group</a></li> + <li><a href="./html/3rd-party/bootstrap/modal.html" title="Bootstrap Modal">Bootstrap Modal</a></li> + <li><a href="./html/3rd-party/jquery/mobile.html" title="jQuery Mobile">jQuery Mobile</a></li> + <li><a href="./html/3rd-party/jquery/ui_modal.html" title="jQuery UI Modal">jQuery UI Modal</a></li> + <li><a href="./html/3rd-party/at.js.html" title="At.JS">At.JS</a></li> + <li><a href="./html/3rd-party/code-mirror.html" title="Code Mirror">Code Mirror</a></li> + <li><a href="./html/3rd-party/require_js/index.html" title="Require JS">Require JS</a></li> + <li><a href="./html/3rd-party/spell-checker/spell-checker.html" title="Spell Checker">Spell Checker</a></li> + </ul> + </div> + + <div> + <h2>API</h2> + <ul> + <li><a href="./html/api/init_destroy.html" title="Init / Destroy Editor">Init / Destroy Editor</a></li> + <li><a href="./html/api/get_html.html" title="Get HTML">Get Edited HTML</a></li> + <li><a href="./html/api/insert_html.html" title="Insert HTML">Insert HTML</a></li> + <li><a href="./html/api/selection.html" title="Save / Restore Selection">Save / Restore Selection</a></li> + <li><a href="./html/api/live_content_preview.html" title="Live Content Preview">Live Content Preview</a></li> + <li><a href="./html/api/live_code_preview.html" title="Live Code Preview">Live Code Preview</a></li> + </ul> + </div> + + <div> + <h2>International</h2> + <ul> + <li><a href="./html/international/direction_rtl.html" title="Editor Direction RTL">Editor Direction RTL</a></li> + <li><a href="./html/international/language.html" title="Change Language">Change Language</a></li> + <li><a href="./html/international/rtl_ltr_buttons.html" title="RTL / LTR Buttons">RTL / LTR Buttons</a></li> + </ul> + </div> + + <div> + <h2>Buttons</h2> + <ul> + <li><a href="./html/buttons/custom_buttons.html" title="Custom Buttons">Custom Buttons</a></li> + <li><a href="./html/buttons/custom_dropdown.html" title="Custom Dropdown">Custom Dropdown</a></li> + <li><a href="./html/buttons/external_button.html" title="External Button">External Button</a></li> + <li><a href="./html/buttons/subscript_superscript.html" title="Subscript and Superscript">Subscript and Superscript</a></li> + </ul> + </div> + + <div> + <h2>Events</h2> + <ul> + <li><a href="./html/events/blur_focus.html" title="Blur / Focus">Blur / Focus</a></li> + <li><a href="./html/events/content_changed.html" title="Content Changed">Content Changed</a></li> + <li><a href="./html/events/drop.html" title="Drop">Drop</a></li> + <li><a href="./html/events/image_removed.html" title="Image Removed">Image Removed</a></li> + <li><a href="./html/events/initialized_destroy.html" title="Initialized / Destroy">Initialized / Destroy</a></li> + </ul> + </div> + + <div> + <h2>Images</h2> + <ul> + <li><a href="./html/image/custom_button.html" title="Custom Image Button">Custom Image Button</a></li> + <li><a href="./html/image/image_styles.html" title="Image Styles">Image Styles</a></li> + <li><a href="./html/image/default_width.html" title="Default Width">Default Width</a></li> + <li><a href="./html/image/insert_base64.html" title="Insert as Base64">Insert as Base64</a></li> + </ul> + </div> + + <div> + <h2>Init inside iframe</h2> + <ul> + <li><a href="./html/init_inside_iframe/basic.html" title="Basic Editor inside iframe">Basic Editor</a></li> + <li><a href="./html/init_inside_iframe/inline.html" title="Inline Editor inside iframe">Inline Editor</a></li> + </ul> + </div> + + <div> + <h2>Init on click</h2> + <ul> + <li><a href="./html/init_on_click/basic.html" title="Basic Editor">Basic Editor</a></li> + <li><a href="./html/init_on_click/inline.html" title="Inline Editor">Inline Editor</a></li> + <li><a href="./html/init_on_click/two_editors.html" title="2 Editors">2 Editors</a></li> + </ul> + </div> + + <div> + <h2>Initialization</h2> + <ul> + <li><a href="./html/initialization/init_on_click.html" title="Init on click">Init on Click</a></li> + <li><a href="./html/initialization/init_on_button.html" title="Init on Button">Init on Button</a></li> + <li><a href="./html/initialization/init_on_link.html" title="Init on Link">Init on Link</a></li> + <li><a href="./html/initialization/init_on_image.html" title="Init on Image">Init on Image</a></li> + <li><a href="./html/initialization/init_on_h1.html" title="Init on H1">Init on H1</a></li> + <li><a href="./html/initialization/initialized_event.html" title="Initialized Event">Initialized Event</a></li> + <li><a href="./html/initialization/edit_in_popup.html" title="Edit in Popup">Edit in Popup</a></li> + </ul> + </div> + + <div> + <h2>Links</h2> + <ul> + <li><a href="./html/link/link_styles.html" title="Link Styles">Link Styles</a></li> + <li><a href="./html/link/predefined_links.html" title="Predefined Links">Predefined Links</a></li> + <li><a href="./html/link/custom_validation.html" title="Custom Link Validation">Custom Link Validation</a></li> + </ul> + </div> + + <div> + <h2>Plugins</h2> + <ul> + <li><a href="./html/plugins/line_breaker.html" title="Line Breaker">Line Breaker</a></li> + <li><a href="./html/plugins/quick_insert.html" title="Quick Insert">Quick Insert</a></li> + <li><a href="./html/plugins/char_counter.html" title="Char Counter">Char Counter</a></li> + <li><a href="./html/plugins/full_screen.html" title="Full Screen">Full Screen</a></li> + </ul> + </div> + + <div> + <h2>Popups</h2> + <ul> + <li><a href="./html/popups/colors.html" title="Custom Color Picker">Custom Color Picker</a></li> + <li><a href="./html/popups/emoticons.html" title="Custom Emoticons">Custom Emoticons</a></li> + <li><a href="./html/popups/custom.html" title="Custom Popup">Custom Popup</a></li> + </ul> + </div> + + <div> + <h2>Styling</h2> + <ul> + <li><a href="./html/styling/font_family.html" title="Font Family">Font Family</a></li> + <li><a href="./html/styling/inline.html" title="Inline Styling">Inline Styling</a></li> + <li><a href="./html/styling/paragraph.html" title="Paragraph Styling">Paragraph Styling</a></li> + <li><a href="./html/styling/placeholder.html" title="Placeholder">Placeholder</a></li> + <li><a href="./html/styling/height.html" title="Predefined Height">Predefined Height</a></li> + <li><a href="./html/styling/adjustable_height.html" title="Auto-Adjustable Height">Auto-Adjustable Height</a></li> + <li><a href="./html/styling/width.html" title="Predefined Width">Predefined Width</a></li> + </ul> + </div> + + <div> + <h2>Themes</h2> + <ul> + <li><a href="./html/themes/dark.html" title="Dark Theme">Dark Theme</a></li> + <li><a href="./html/themes/gray.html" title="Gray Theme">Gray Theme</a></li> + <li><a href="./html/themes/red.html" title="Red Theme">Red Theme</a></li> + <li><a href="./html/themes/royal.html" title="Royal Theme">Royal Theme</a></li> + </ul> + </div> + + <div> + <h2>Table</h2> + <ul> + <li><a href="./html/table/nested.html" title="Nested Tables">Nested Tables</a></li> + <li><a href="./html/table/resize.html" title="Resize Table">Resize Table</a></li> + <li><a href="./html/table/insert_helper.html" title="Table Insert Helper">Table Insert Helper</a></li> + <li><a href="./html/table/style.html" title="Table Style">Table Style</a></li> + <li><a href="./html/table/cell_style.html" title="Table Cell Style">Table Cell Style</a></li> + </ul> + </div> + + <div> + <h2>Toolbar</h2> + <ul> + <li><a href="./html/toolbar/inline.html" title="Inline Toolbar">Inline Toolbar</a></li> + <li><a href="./html/toolbar/sticky.html" title="Sticky Toolbar">Sticky Toolbar</a></li> + <li><a href="./html/toolbar/buttons.html" title="Change Toolbar Buttons">Change Toolbar Buttons</a></li> + <li><a href="./html/toolbar/external.html" title="External Shared Toolbar">External Shared Toolbar</a></li> + <li><a href="./html/toolbar/external_inline.html" title="External Shared Inline Toolbar">External Shared Inline Toolbar</a></li> + <li><a href="./html/toolbar/bottom.html" title="Toolbar Bottom">Toolbar Bottom</a></li> + <li><a href="./html/toolbar/offset.html" title="Toolbar with Offset">Toolbar with Offset</a></li> + <li><a href="./html/toolbar/bottom_offset.html" title="Toolbar Bottom">Toolbar Bottom with Offset</a></li> + <li><a href="./html/toolbar/show_selection.html" title="Show Selection Details">Show Selection Details</a></li> + <li><a href="./html/toolbar/inline_selection.html" title="Inline Toolbar without Selection">Inline Toolbar without Selection</a></li> + </ul> + </div> + + <div> + <h2>Paragraph Modes</h2> + <ul> + <li><a href="./html/paragraph_modes/enter_br.html" title="Enter BR">Enter BR</a></li> + <li><a href="./html/paragraph_modes/enter_div.html" title="Enter DIV">Enter DIV</a></li> + <li><a href="./html/paragraph_modes/enter_p.html" title="Enter P">Enter P</a></li> + </ul> + </div> + + <div> + <h2>Misc</h2> + <ul> + <li><a href="./html/misc/scrollable_container.html" title="Scrollable Container">Scrollable Container</a></li> + <li><a href="./html/misc/scrollable_container_inline.html" title="Scrollable Container Inline Editor">Scrollable Container Inline</a></li> + </ul> + </div> + + <div> + <h2>Typing</h2> + <ul> + <li><a href="./html/typing/tab.html" title="TAB Key">TAB Key</a></li> + <li><a href="./html/typing/shortcuts.html" title="Shortcuts">Shortcuts</a></li> + <li><a href="./html/typing/keep_format.html" title="Keep Format on Delete">Keep Format on Delete</a></li> + </ul> + </div> + + <div> + <h2>Paste</h2> + <ul> + <li><a href="./html/paste/plain.html" title="Plain Paste">Plain Paste</a></li> + <li><a href="./html/paste/attrs.html" title="Allowed / Denied Attributes">Allowed / Denied Attributes</a></li> + <li><a href="./html/paste/tags.html" title="Allowed / Denied Tags">Allowed / Denied Tags</a></li> + </ul> + </div> + </div> + </section> +</body> diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/froala_editor.min.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/froala_editor.min.js similarity index 100% rename from Mobile.Search.Web/Scripts/froala-editor/js/froala_editor.min.js rename to Mobile.WYSIWYG/Scripts/froala-editor/js/froala_editor.min.js diff --git a/Mobile.Search.Web/Scripts/froala-editor/js/froala_editor.pkgd.min.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/froala_editor.pkgd.min.js similarity index 100% rename from Mobile.Search.Web/Scripts/froala-editor/js/froala_editor.pkgd.min.js rename to Mobile.WYSIWYG/Scripts/froala-editor/js/froala_editor.pkgd.min.js diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/ar.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/ar.js new file mode 100644 index 0000000..5f96125 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/ar.js @@ -0,0 +1,318 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + // require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + return factory(jQuery); + }; + } else { + // Browser globals + factory(window.jQuery); + } +}(function ($) { +/** + * Arabic + */ + +$.FE.LANGUAGE['ar'] = { + translation: { + // Place holder + "Type something": "\u0627\u0643\u062a\u0628 \u0634\u064a\u0626\u0627", + + // Basic formatting + "Bold": "\u063a\u0627\u0645\u0642", + "Italic": "\u0645\u0627\u0626\u0644", + "Underline": "\u062a\u0633\u0637\u064a\u0631", + "Strikethrough": "\u064a\u062a\u0648\u0633\u0637 \u062e\u0637", + + // Main buttons + "Insert": "\u0625\u062f\u0631\u0627\u062c", + "Delete": "\u062d\u0630\u0641", + "Cancel": "\u0625\u0644\u063a\u0627\u0621", + "OK": "\u0645\u0648\u0627\u0641\u0642", + "Back": "\u0638\u0647\u0631", + "Remove": "\u0625\u0632\u0627\u0644\u0629", + "More": "\u0623\u0643\u062b\u0631", + "Update": "\u0627\u0644\u062a\u062d\u062f\u064a\u062b", + "Style": "\u0623\u0633\u0644\u0648\u0628", + + // Font + "Font Family": "\u0639\u0627\u0626\u0644\u0629 \u0627\u0644\u062e\u0637", + "Font Size": "\u062d\u062c\u0645 \u0627\u0644\u062e\u0637", + + // Colors + "Colors": "\u0627\u0644\u0623\u0644\u0648\u0627\u0646", + "Background": "\u0627\u0644\u062e\u0644\u0641\u064a\u0629", + "Text": "\u0627\u0644\u0646\u0635", + "HEX Color": "عرافة اللون", + + // Paragraphs + "Paragraph Format": "\u062a\u0646\u0633\u064a\u0642 \u0627\u0644\u0641\u0642\u0631\u0629", + "Normal": "\u0637\u0628\u064a\u0639\u064a", + "Code": "\u0643\u0648\u062f", + "Heading 1": "\u0627\u0644\u0639\u0646\u0627\u0648\u064a\u0646 1", + "Heading 2": "\u0627\u0644\u0639\u0646\u0627\u0648\u064a\u0646 2", + "Heading 3": "\u0627\u0644\u0639\u0646\u0627\u0648\u064a\u0646 3", + "Heading 4": "\u0627\u0644\u0639\u0646\u0627\u0648\u064a\u0646 4", + + // Style + "Paragraph Style": "\u0646\u0645\u0637 \u0627\u0644\u0641\u0642\u0631\u0629", + "Inline Style": "\u0627\u0644\u0646\u0645\u0637 \u0627\u0644\u0645\u0636\u0645\u0646", + + // Alignment + "Align": "\u0645\u062d\u0627\u0630\u0627\u0629", + "Align Left": "\u0645\u062d\u0627\u0630\u0627\u0629 \u0627\u0644\u0646\u0635 \u0644\u0644\u064a\u0633\u0627\u0631", + "Align Center": "\u062a\u0648\u0633\u064a\u0637", + "Align Right": "\u0645\u062d\u0627\u0630\u0627\u0629 \u0627\u0644\u0646\u0635 \u0644\u0644\u064a\u0645\u064a\u0646", + "Align Justify": "\u0636\u0628\u0637", + "None": "\u0644\u0627 \u0634\u064a\u0621", + + // Lists + "Ordered List": "\u0642\u0627\u0626\u0645\u0629 \u0645\u0631\u062a\u0628\u0629", + "Unordered List": "\u0642\u0627\u0626\u0645\u0629 \u063a\u064a\u0631 \u0645\u0631\u062a\u0628\u0629", + + // Indent + "Decrease Indent": "\u0627\u0646\u062e\u0641\u0627\u0636 \u0627\u0644\u0645\u0633\u0627\u0641\u0629 \u0627\u0644\u0628\u0627\u062f\u0626\u0629", + "Increase Indent": "\u0632\u064a\u0627\u062f\u0629 \u0627\u0644\u0645\u0633\u0627\u0641\u0629 \u0627\u0644\u0628\u0627\u062f\u0626\u0629", + + // Links + "Insert Link": "\u0625\u062f\u0631\u0627\u062c \u0631\u0627\u0628\u0637", + "Open in new tab": "\u0641\u062a\u062d \u0641\u064a \u0639\u0644\u0627\u0645\u0629 \u062a\u0628\u0648\u064a\u0628 \u062c\u062f\u064a\u062f\u0629", + "Open Link": "\u0627\u0641\u062a\u062d \u0627\u0644\u0631\u0627\u0628\u0637", + "Edit Link": "\u0627\u0631\u062a\u0628\u0627\u0637 \u062a\u062d\u0631\u064a\u0631", + "Unlink": "\u062d\u0630\u0641 \u0627\u0644\u0631\u0627\u0628\u0637", + "Choose Link": "\u0627\u062e\u062a\u064a\u0627\u0631 \u0635\u0644\u0629", + + // Images + "Insert Image": "\u0625\u062f\u0631\u0627\u062c \u0635\u0648\u0631\u0629", + "Upload Image": "\u062a\u062d\u0645\u064a\u0644 \u0635\u0648\u0631\u0629", + "By URL": "\u0628\u0648\u0627\u0633\u0637\u0629 URL", + "Browse": "\u062a\u0635\u0641\u062d", + "Drop image": "\u0625\u0633\u0642\u0627\u0637 \u0635\u0648\u0631\u0629", + "or click": "\u0623\u0648 \u0627\u0646\u0642\u0631 \u0641\u0648\u0642", + "Manage Images": "\u0625\u062f\u0627\u0631\u0629 \u0627\u0644\u0635\u0648\u0631", + "Loading": "\u062a\u062d\u0645\u064a\u0644", + "Deleting": "\u062d\u0630\u0641", + "Tags": "\u0627\u0644\u0643\u0644\u0645\u0627\u062a", + "Are you sure? Image will be deleted.": "\u0647\u0644 \u0623\u0646\u062a \u0645\u062a\u0623\u0643\u062f\u061f \u0633\u064a\u062a\u0645 \u062d\u0630\u0641 \u0627\u0644\u0635\u0648\u0631\u0629\u002e", + "Replace": "\u0627\u0633\u062a\u0628\u062f\u0627\u0644", + "Uploading": "\u062a\u062d\u0645\u064a\u0644", + "Loading image": "\u0635\u0648\u0631\u0629 \u062a\u062d\u0645\u064a\u0644", + "Display": "\u0639\u0631\u0636", + "Inline": "\u0641\u064a \u062e\u0637", + "Break Text": "\u0646\u0635 \u0627\u0633\u062a\u0631\u0627\u062d\u0629", + "Alternate Text": "\u0646\u0635 \u0628\u062f\u064a\u0644", + "Change Size": "\u062a\u063a\u064a\u064a\u0631 \u062d\u062c\u0645", + "Width": "\u0639\u0631\u0636", + "Height": "\u0627\u0631\u062a\u0641\u0627\u0639", + "Something went wrong. Please try again.": ".\u062d\u062f\u062b \u062e\u0637\u0623 \u0645\u0627. \u062d\u0627\u0648\u0644 \u0645\u0631\u0629 \u0627\u062e\u0631\u0649", + "Image Caption": "تعليق على الصورة", + "Advanced Edit": "تعديل متقدم", + + // Video + "Insert Video": "\u0625\u062f\u0631\u0627\u062c \u0641\u064a\u062f\u064a\u0648", + "Embedded Code": "\u0627\u0644\u062a\u0639\u0644\u064a\u0645\u0627\u062a \u0627\u0644\u0628\u0631\u0645\u062c\u064a\u0629 \u0627\u0644\u0645\u0636\u0645\u0646\u0629", + "Paste in a video URL": "لصق في عنوان ورل للفيديو", + "Drop video": "انخفاض الفيديو", + "Your browser does not support HTML5 video.": "متصفحك لا يدعم فيديو HTML5.", + "Upload Video": "رفع فيديو", + + // Tables + "Insert Table": "\u0625\u062f\u0631\u0627\u062c \u062c\u062f\u0648\u0644", + "Table Header": "\u0631\u0623\u0633 \u0627\u0644\u062c\u062f\u0648\u0644", + "Remove Table": "\u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u062c\u062f\u0648\u0644", + "Table Style": "\u0646\u0645\u0637 \u0627\u0644\u062c\u062f\u0648\u0644", + "Horizontal Align": "\u0645\u062d\u0627\u0630\u0627\u0629 \u0623\u0641\u0642\u064a\u0629", + "Row": "\u0635\u0641", + "Insert row above": "\u0625\u062f\u0631\u0627\u062c \u0635\u0641 \u0644\u0644\u0623\u0639\u0644\u0649", + "Insert row below": "\u0625\u062f\u0631\u0627\u062c \u0635\u0641 \u0644\u0644\u0623\u0633\u0641\u0644", + "Delete row": "\u062d\u0630\u0641 \u0635\u0641", + "Column": "\u0639\u0645\u0648\u062f", + "Insert column before": "\u0625\u062f\u0631\u0627\u062c \u0639\u0645\u0648\u062f \u0644\u0644\u064a\u0633\u0627\u0631", + "Insert column after": "\u0625\u062f\u0631\u0627\u062c \u0639\u0645\u0648\u062f \u0644\u0644\u064a\u0645\u064a\u0646", + "Delete column": "\u062d\u0630\u0641 \u0639\u0645\u0648\u062f", + "Cell": "\u062e\u0644\u064a\u0629", + "Merge cells": "\u062f\u0645\u062c \u062e\u0644\u0627\u064a\u0627", + "Horizontal split": "\u0627\u0646\u0642\u0633\u0627\u0645 \u0623\u0641\u0642\u064a", + "Vertical split": "\u0627\u0644\u0627\u0646\u0642\u0633\u0627\u0645 \u0627\u0644\u0639\u0645\u0648\u062f\u064a", + "Cell Background": "\u062e\u0644\u0641\u064a\u0629 \u0627\u0644\u062e\u0644\u064a\u0629", + "Vertical Align": "\u0645\u062d\u0627\u0630\u0627\u0629 \u0639\u0645\u0648\u062f\u064a\u0629", + "Top": "\u0623\u0639\u0644\u0649", + "Middle": "\u0648\u0633\u0637", + "Bottom": "\u0623\u0633\u0641\u0644", + "Align Top": "\u0645\u062d\u0627\u0630\u0627\u0629 \u0623\u0639\u0644\u0649", + "Align Middle": "\u0645\u062d\u0627\u0630\u0627\u0629 \u0648\u0633\u0637", + "Align Bottom": "\u0645\u062d\u0627\u0630\u0627\u0629 \u0627\u0644\u0623\u0633\u0641\u0644", + "Cell Style": "\u0646\u0645\u0637 \u0627\u0644\u062e\u0644\u064a\u0629", + + // Files + "Upload File": "\u062a\u062d\u0645\u064a\u0644 \u0627\u0644\u0645\u0644\u0641", + "Drop file": "\u0627\u0646\u062e\u0641\u0627\u0636 \u0627\u0644\u0645\u0644\u0641", + + // Emoticons + "Emoticons": "\u0627\u0644\u0645\u0634\u0627\u0639\u0631", + "Grinning face": "\u064a\u0643\u0634\u0631 \u0648\u062c\u0647\u0647", + "Grinning face with smiling eyes": "\u0645\u0628\u062a\u0633\u0645\u0627 \u0648\u062c\u0647 \u0645\u0639 \u064a\u0628\u062a\u0633\u0645 \u0627\u0644\u0639\u064a\u0646", + "Face with tears of joy": "\u0648\u062c\u0647 \u0645\u0639 \u062f\u0645\u0648\u0639 \u0627\u0644\u0641\u0631\u062d", + "Smiling face with open mouth": "\u0627\u0644\u0648\u062c\u0647 \u0627\u0644\u0645\u0628\u062a\u0633\u0645 \u0645\u0639 \u0641\u062a\u062d \u0627\u0644\u0641\u0645", + "Smiling face with open mouth and smiling eyes": "\u0627\u0644\u0648\u062c\u0647 \u0627\u0644\u0645\u0628\u062a\u0633\u0645 \u0645\u0639 \u0641\u062a\u062d \u0627\u0644\u0641\u0645 \u0648\u0627\u0644\u0639\u064a\u0646\u064a\u0646 \u064a\u0628\u062a\u0633\u0645", + "Smiling face with open mouth and cold sweat": "\u0627\u0644\u0648\u062c\u0647 \u0627\u0644\u0645\u0628\u062a\u0633\u0645 \u0645\u0639 \u0641\u062a\u062d \u0627\u0644\u0641\u0645 \u0648\u0627\u0644\u0639\u0631\u0642 \u0627\u0644\u0628\u0627\u0631\u062f", + "Smiling face with open mouth and tightly-closed eyes": "\u0627\u0644\u0648\u062c\u0647 \u0627\u0644\u0645\u0628\u062a\u0633\u0645 \u0645\u0639 \u0641\u062a\u062d \u0627\u0644\u0641\u0645 \u0648\u0627\u0644\u0639\u064a\u0646\u064a\u0646 \u0645\u063a\u0644\u0642\u0629 \u0628\u0625\u062d\u0643\u0627\u0645", + "Smiling face with halo": "\u0627\u0644\u0648\u062c\u0647 \u0627\u0644\u0645\u0628\u062a\u0633\u0645 \u0645\u0639 \u0647\u0627\u0644\u0629", + "Smiling face with horns": "\u0627\u0644\u0648\u062c\u0647 \u0627\u0644\u0645\u0628\u062a\u0633\u0645 \u0628\u0642\u0631\u0648\u0646", + "Winking face": "\u0627\u0644\u063a\u0645\u0632 \u0648\u062c\u0647", + "Smiling face with smiling eyes": "\u064a\u0628\u062a\u0633\u0645 \u0648\u062c\u0647 \u0645\u0639 \u0639\u064a\u0648\u0646 \u062a\u0628\u062a\u0633\u0645", + "Face savoring delicious food": "\u064a\u0648\u0627\u062c\u0647 \u0644\u0630\u064a\u0630 \u0627\u0644\u0645\u0630\u0627\u0642 \u0644\u0630\u064a\u0630 \u0627\u0644\u0637\u0639\u0627\u0645", + "Relieved face": "\u0648\u062c\u0647 \u0628\u0627\u0644\u0627\u0631\u062a\u064a\u0627\u062d", + "Smiling face with heart-shaped eyes": "\u0627\u0644\u0648\u062c\u0647 \u0627\u0644\u0645\u0628\u062a\u0633\u0645 \u0628\u0639\u064a\u0646\u064a\u0646 \u0639\u0644\u0649 \u0634\u0643\u0644 \u0642\u0644\u0628", + "Smiling face with sunglasses": "\u0627\u0644\u0648\u062c\u0647 \u0627\u0644\u0645\u0628\u062a\u0633\u0645 \u0645\u0639 \u0627\u0644\u0646\u0638\u0627\u0631\u0627\u062a \u0627\u0644\u0634\u0645\u0633\u064a\u0629", + "Smirking face": "\u0633\u0645\u064a\u0631\u0643\u064a\u0646\u062c \u0627\u0644\u0648\u062c\u0647", + "Neutral face": "\u0645\u062d\u0627\u064a\u062f \u0627\u0644\u0648\u062c\u0647", + "Expressionless face": "\u0648\u062c\u0647 \u0627\u0644\u062a\u0639\u0627\u0628\u064a\u0631", + "Unamused face": "\u0644\u0627 \u0645\u0633\u0644\u064a\u0627 \u0627\u0644\u0648\u062c\u0647", + "Face with cold sweat": "\u0648\u062c\u0647 \u0645\u0639 \u0639\u0631\u0642 \u0628\u0627\u0631\u062f", + "Pensive face": "\u0648\u062c\u0647 \u0645\u062a\u0623\u0645\u0644", + "Confused face": "\u0648\u062c\u0647 \u0627\u0644\u062e\u0644\u0637", + "Confounded face": "\u0648\u062c\u0647 \u0645\u0631\u062a\u0628\u0643", + "Kissing face": "\u062a\u0642\u0628\u064a\u0644 \u0627\u0644\u0648\u062c\u0647", + "Face throwing a kiss": "\u0645\u0648\u0627\u062c\u0647\u0629 \u0631\u0645\u064a \u0642\u0628\u0644\u0629", + "Kissing face with smiling eyes": "\u062a\u0642\u0628\u064a\u0644 \u0648\u062c\u0647 \u0645\u0639 \u0639\u064a\u0648\u0646 \u062a\u0628\u062a\u0633\u0645", + "Kissing face with closed eyes": "\u062a\u0642\u0628\u064a\u0644 \u0648\u062c\u0647 \u0645\u0639 \u0639\u064a\u0648\u0646 \u0645\u063a\u0644\u0642\u0629", + "Face with stuck out tongue": "\u0627\u0644\u0648\u062c\u0647 \u0645\u0639 \u062a\u0645\u0633\u0643 \u0628\u0647\u0627 \u0627\u0644\u0644\u0633\u0627\u0646", + "Face with stuck out tongue and winking eye": "\u0627\u0644\u0648\u062c\u0647 \u0645\u0639 \u062a\u0645\u0633\u0643 \u0628\u0647\u0627 \u0627\u0644\u0644\u0633\u0627\u0646 \u0648\u0627\u0644\u0639\u064a\u0646 \u0627\u0644\u062a\u063a\u0627\u0636\u064a", + "Face with stuck out tongue and tightly-closed eyes": "\u0627\u0644\u0648\u062c\u0647 \u0645\u0639 \u062a\u0645\u0633\u0643 \u0628\u0647\u0627 \u0627\u0644\u0644\u0633\u0627\u0646 \u0648\u0627\u0644\u0639\u064a\u0648\u0646 \u0645\u063a\u0644\u0642\u0629 \u0628\u0623\u062d\u0643\u0627\u0645\u002d", + "Disappointed face": "\u0648\u062c\u0647\u0627 \u062e\u064a\u0628\u0629 \u0623\u0645\u0644", + "Worried face": "\u0648\u062c\u0647\u0627 \u0627\u0644\u0642\u0644\u0642\u0648\u0646", + "Angry face": "\u0648\u062c\u0647 \u063a\u0627\u0636\u0628", + "Pouting face": "\u0627\u0644\u0639\u0628\u0648\u0633 \u0648\u062c\u0647", + "Crying face": "\u0627\u0644\u0628\u0643\u0627\u0621 \u0627\u0644\u0648\u062c\u0647", + "Persevering face": "\u0627\u0644\u0645\u062b\u0627\u0628\u0631\u0629 \u0648\u062c\u0647\u0647", + "Face with look of triumph": "\u0648\u0627\u062c\u0647 \u0645\u0639 \u0646\u0638\u0631\u0629 \u0627\u0646\u062a\u0635\u0627\u0631", + "Disappointed but relieved face": "\u0628\u062e\u064a\u0628\u0629 \u0623\u0645\u0644 \u0648\u0644\u0643\u0646 \u064a\u0639\u0641\u0649 \u0648\u062c\u0647", + "Frowning face with open mouth": "\u0645\u0642\u0637\u0628 \u0627\u0644\u0648\u062c\u0647 \u0645\u0639 \u0641\u062a\u062d \u0627\u0644\u0641\u0645", + "Anguished face": "\u0627\u0644\u0648\u062c\u0647 \u0627\u0644\u0645\u0624\u0644\u0645", + "Fearful face": "\u0627\u0644\u0648\u062c\u0647 \u0627\u0644\u0645\u062e\u064a\u0641", + "Weary face": "\u0648\u062c\u0647\u0627 \u0628\u0627\u0644\u0636\u062c\u0631", + "Sleepy face": "\u0648\u062c\u0647 \u0646\u0639\u0633\u0627\u0646", + "Tired face": "\u0648\u062c\u0647 \u0645\u062a\u0639\u0628", + "Grimacing face": "\u0648\u062e\u0631\u062c \u0633\u064a\u0633 \u0627\u0644\u0648\u062c\u0647", + "Loudly crying face": "\u0627\u0644\u0628\u0643\u0627\u0621 \u0628\u0635\u0648\u062a \u0639\u0627\u0644 \u0648\u062c\u0647\u0647", + "Face with open mouth": "\u0648\u0627\u062c\u0647 \u0645\u0639 \u0641\u062a\u062d \u0627\u0644\u0641\u0645", + "Hushed face": "\u0648\u062c\u0647\u0627 \u0627\u0644\u062a\u0643\u062a\u0645", + "Face with open mouth and cold sweat": "\u0648\u0627\u062c\u0647 \u0645\u0639 \u0641\u062a\u062d \u0627\u0644\u0641\u0645 \u0648\u0627\u0644\u0639\u0631\u0642 \u0627\u0644\u0628\u0627\u0631\u062f", + "Face screaming in fear": "\u0648\u0627\u062c\u0647 \u064a\u0635\u0631\u062e \u0641\u064a \u062e\u0648\u0641", + "Astonished face": "\u0648\u062c\u0647\u0627 \u062f\u0647\u0634", + "Flushed face": "\u0627\u062d\u0645\u0631\u0627\u0631 \u0627\u0644\u0648\u062c\u0647", + "Sleeping face": "\u0627\u0644\u0646\u0648\u0645 \u0627\u0644\u0648\u062c\u0647", + "Dizzy face": "\u0648\u062c\u0647\u0627 \u0628\u0627\u0644\u062f\u0648\u0627\u0631", + "Face without mouth": "\u0648\u0627\u062c\u0647 \u062f\u0648\u0646 \u0627\u0644\u0641\u0645", + "Face with medical mask": "\u0648\u0627\u062c\u0647 \u0645\u0639 \u0642\u0646\u0627\u0639 \u0627\u0644\u0637\u0628\u064a\u0629", + + // Line breaker + "Break": "\u0627\u0644\u0627\u0646\u0642\u0633\u0627\u0645", + + // Math + "Subscript": "\u0645\u0646\u062e\u0641\u0636", + "Superscript": "\u062d\u0631\u0641 \u0641\u0648\u0642\u064a", + + // Full screen + "Fullscreen": "\u0643\u0627\u0645\u0644 \u0627\u0644\u0634\u0627\u0634\u0629", + + // Horizontal line + "Insert Horizontal Line": "\u0625\u062f\u0631\u0627\u062c \u062e\u0637 \u0623\u0641\u0642\u064a", + + // Clear formatting + "Clear Formatting": "\u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u062a\u0646\u0633\u064a\u0642", + + // Undo, redo + "Undo": "\u062a\u0631\u0627\u062c\u0639", + "Redo": "\u0625\u0639\u0627\u062f\u0629", + + // Select all + "Select All": "\u062a\u062d\u062f\u064a\u062f \u0627\u0644\u0643\u0644", + + // Code view + "Code View": "\u0639\u0631\u0636 \u0627\u0644\u062a\u0639\u0644\u064a\u0645\u0627\u062a \u0627\u0644\u0628\u0631\u0645\u062c\u064a\u0629", + + // Quote + "Quote": "\u0627\u0642\u062a\u0628\u0633", + "Increase": "\u0632\u064a\u0627\u062f\u0629", + "Decrease": "\u0627\u0646\u062e\u0641\u0627\u0636", + + // Quick Insert + "Quick Insert": "\u0625\u062f\u0631\u0627\u062c \u0633\u0631\u064a\u0639", + + // Spcial Characters + "Special Characters": "أحرف خاصة", + "Latin": "لاتينية", + "Greek": "الإغريقي", + "Cyrillic": "السيريلية", + "Punctuation": "علامات ترقيم", + "Currency": "دقة", + "Arrows": "السهام", + "Math": "الرياضيات", + "Misc": "متفرقات", + + // Print. + "Print": "طباعة", + + // Spell Checker. + "Spell Checker": "مدقق املائي", + + // Help + "Help": "مساعدة", + "Shortcuts": "اختصارات", + "Inline Editor": "محرر مضمنة", + "Show the editor": "عرض المحرر", + "Common actions": "الإجراءات المشتركة", + "Copy": "نسخ", + "Cut": "يقطع", + "Paste": "معجون", + "Basic Formatting": "التنسيق الأساسي", + "Increase quote level": "زيادة مستوى الاقتباس", + "Decrease quote level": "انخفاض مستوى الاقتباس", + "Image / Video": "صورة / فيديو", + "Resize larger": "تغيير حجم أكبر", + "Resize smaller": "تغيير حجم أصغر", + "Table": "الطاولة", + "Select table cell": "حدد خلية الجدول", + "Extend selection one cell": "توسيع اختيار خلية واحدة", + "Extend selection one row": "تمديد اختيار صف واحد", + "Navigation": "التنقل", + "Focus popup / toolbar": "التركيز المنبثقة / شريط الأدوات", + "Return focus to previous position": "عودة التركيز إلى الموقف السابق", + + // Embed.ly + "Embed URL": "تضمين عنوان ورل", + "Paste in a URL to embed": "الصق في عنوان ورل لتضمينه", + + // Word Paste. + "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "المحتوى الذي تم لصقه قادم من وثيقة كلمة ميكروسوفت. هل تريد الاحتفاظ بالتنسيق أو تنظيفه؟", + "Keep": "احتفظ", + "Clean": "نظيف", + "Word Paste Detected": "تم اكتشاف معجون الكلمات" + }, + direction: "rtl" +}; + +})); diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/bs.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/bs.js new file mode 100644 index 0000000..07ad5c4 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/bs.js @@ -0,0 +1,318 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + // require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + return factory(jQuery); + }; + } else { + // Browser globals + factory(window.jQuery); + } +}(function ($) { +/** + * Bosnian + */ + +$.FE.LANGUAGE['bs'] = { + translation: { + // Place holder + "Type something": "Ukucajte ne\u0161tp", + + // Basic formatting + "Bold": "Bold", + "Italic": "Italic", + "Underline": "Podvu\u010deno", + "Strikethrough": "Precrtano", + + // Main buttons + "Insert": "Umetni", + "Delete": "Obri\u0161i", + "Cancel": "Otka\u017ei", + "OK": "U redu", + "Back": "Natrag", + "Remove": "Ukloni", + "More": "Vi\u0161e", + "Update": "A\u017euriranje", + "Style": "Stil", + + // Font + "Font Family": "Odaberi font", + "Font Size": "Veli\u010dina fonta", + + // Colors + "Colors": "Boje", + "Background": "Pozadine", + "Text": "Teksta", + "HEX Color": "Hex boje", + + // Paragraphs + "Paragraph Format": "Paragraf formatu", + "Normal": "Normalno", + "Code": "Izvorni kod", + "Heading 1": "Naslov 1", + "Heading 2": "Naslov 2", + "Heading 3": "Naslov 3", + "Heading 4": "Naslov 4", + + // Style + "Paragraph Style": "Paragraf stil", + "Inline Style": "Inline stil", + + // Alignment + "Alignment": "Poravnanje", + "Align Left": "Poravnaj lijevo", + "Align Center": "Poravnaj po sredini", + "Align Right": "Poravnaj desno", + "Align Justify": "Obostrano poravnanje", + "None": "Nijedan", + + // Lists + "Ordered List": "Ure\u0111ena lista", + "Unordered List": "Nesre\u0111ene lista", + + // Indent + "Decrease Indent": "Smanjenje alineja", + "Increase Indent": "Pove\u0107anje alineja", + + // Links + "Insert Link": "Umetni link", + "Open in new tab": "Otvori u novom prozoru", + "Open Link": "Otvori link", + "Edit Link": "Uredi link", + "Unlink": "Ukloni link", + "Choose Link": "Izabrati link", + + // Images + "Insert Image": "Umetni sliku", + "Upload Image": "Upload sliku", + "By URL": "Preko URL", + "Browse": "Pregledaj", + "Drop image": "Izbaci sliku", + "or click": "ili odaberi", + "Manage Images": "Upravljanje ilustracijama", + "Loading": "Koji tovari", + "Deleting": "Brisanje", + "Tags": "Oznake", + "Are you sure? Image will be deleted.": "Da li ste sigurni da \u017eelite da obri\u0161ete ovu ilustraciju?", + "Replace": "Zamijenite", + "Uploading": "Uploading", + "Loading image": "Koji tovari sliku", + "Display": "Prikaz", + "Inline": "Inline", + "Break Text": "Break tekst", + "Alternate Text": "Alternativna tekst", + "Change Size": "Promijeni veli\u010dinu", + "Width": "\u0161irina", + "Height": "Visina", + "Something went wrong. Please try again.": "Ne\u0161to je po\u0161lo po zlu. Molimo vas da poku\u0161ate ponovo.", + "Image Caption": "Caption slika", + "Advanced Edit": "Napredna izmjena", + + // Video + "Insert Video": "Umetni video", + "Embedded Code": "Embedded kod", + "Paste in a video URL": "Nalepite u video url", + "Drop video": "Drop video", + "Your browser does not support HTML5 video.": "Vaš pretraživač ne podržava html5 video.", + "Upload Video": "Otpremite video", + + // Tables + "Insert Table": "Umetni tabelu", + "Table Header": "Tabelu zaglavlja", + "Remove Table": "Uklonite tabelu", + "Table Style": "Tabela stil", + "Horizontal Align": "Horizontalno poravnaj", + "Row": "Red", + "Insert row above": "Umetni red iznad", + "Insert row below": "Umetni red ispod", + "Delete row": "Obri\u0161i red", + "Column": "Kolona", + "Insert column before": "Umetni kolonu prije", + "Insert column after": "Umetni kolonu poslije", + "Delete column": "Obri\u0161i kolonu", + "Cell": "\u0106elija", + "Merge cells": "Spoji \u0107elija", + "Horizontal split": "Horizontalno razdvajanje polja", + "Vertical split": "Vertikalno razdvajanje polja", + "Cell Background": "\u0106elija pozadini", + "Vertical Align": "Vertikalni poravnaj", + "Top": "Vrh", + "Middle": "Srednji", + "Bottom": "Dno", + "Align Top": "Poravnaj vrh", + "Align Middle": "Poravnaj srednji", + "Align Bottom": "Poravnaj dno", + "Cell Style": "\u0106elija stil", + + // Files + "Upload File": "Upload datoteke", + "Drop file": "Drop datoteke", + + // Emoticons + "Emoticons": "Emotikona", + "Grinning face": "Cere\u0107i lice", + "Grinning face with smiling eyes": "Cere\u0107i lice nasmijana o\u010dima", + "Face with tears of joy": "Lice sa suze radosnice", + "Smiling face with open mouth": "Nasmijana lica s otvorenih usta", + "Smiling face with open mouth and smiling eyes": "Nasmijana lica s otvorenih usta i nasmijana o\u010di", + "Smiling face with open mouth and cold sweat": "Nasmijana lica s otvorenih usta i hladan znoj", + "Smiling face with open mouth and tightly-closed eyes": "Nasmijana lica s otvorenih usta i \u010dvrsto-zatvorenih o\u010diju", + "Smiling face with halo": "Nasmijana lica sa halo", + "Smiling face with horns": "Nasmijana lica s rogovima", + "Winking face": "Namigivanje lice", + "Smiling face with smiling eyes": "Nasmijana lica sa nasmijana o\u010dima", + "Face savoring delicious food": "Suo\u010davaju u\u017eivaju\u0107i ukusna hrana", + "Relieved face": "Laknulo lice", + "Smiling face with heart-shaped eyes": "Nasmijana lica sa obliku srca o\u010di", + "Smiling face with sunglasses": "Nasmijana lica sa sun\u010dane nao\u010dare", + "Smirking face": "Namr\u0161tena lica", + "Neutral face": "Neutral lice", + "Expressionless face": "Bezizra\u017eajno lice", + "Unamused face": "Nije zabavno lice", + "Face with cold sweat": "Lice s hladnim znojem", + "Pensive face": "Zami\u0161ljen lice", + "Confused face": "Zbunjen lice", + "Confounded face": "Uzbu\u0111en lice", + "Kissing face": "Ljubakanje lice", + "Face throwing a kiss": "Suo\u010davaju bacanje poljubac", + "Kissing face with smiling eyes": "Ljubljenje lice nasmijana o\u010dima", + "Kissing face with closed eyes": "Ljubljenje lice sa zatvorenim o\u010dima", + "Face with stuck out tongue": "Lice sa ispru\u017eio jezik", + "Face with stuck out tongue and winking eye": "Lice sa ispru\u017eio jezik i trep\u0107u\u0107e \u0107e oko", + "Face with stuck out tongue and tightly-closed eyes": "Lice sa ispru\u017eio jezik i \u010dvrsto zatvorene o\u010di", + "Disappointed face": "Razo\u010daran lice", + "Worried face": "Zabrinuti lice", + "Angry face": "Ljut lice", + "Pouting face": "Napu\u0107enim lice", + "Crying face": "Plakanje lice", + "Persevering face": "Istrajan lice", + "Face with look of triumph": "Lice s pogledom trijumfa", + "Disappointed but relieved face": "Razo\u010daran, ali olak\u0161anje lice", + "Frowning face with open mouth": "Namr\u0161tiv\u0161i lice s otvorenih usta", + "Anguished face": "Bolnom lice", + "Fearful face": "Pla\u0161ljiv lice", + "Weary face": "Umoran lice", + "Sleepy face": "Pospan lice", + "Tired face": "Umorno lice", + "Grimacing face": "Grimase lice", + "Loudly crying face": "Glasno pla\u010de lice", + "Face with open mouth": "Lice s otvorenih usta", + "Hushed face": "Smiren lice", + "Face with open mouth and cold sweat": "Lice s otvorenih usta i hladan znoj", + "Face screaming in fear": "Suo\u010davaju vri\u0161ti u strahu", + "Astonished face": "Zapanjen lice", + "Flushed face": "Rumeno lice", + "Sleeping face": "Usnulo lice", + "Dizzy face": "O\u0161amu\u0107en lice", + "Face without mouth": "Lice bez usta", + "Face with medical mask": "Lice sa medicinskom maskom", + + // Line breaker + "Break": "Slomiti", + + // Math + "Subscript": "Potpisan", + "Superscript": "Natpis", + + // Full screen + "Fullscreen": "Preko cijelog zaslona", + + // Horizontal line + "Insert Horizontal Line": "Umetni vodoravna liniju", + + // Clear formatting + "Clear Formatting": "Izbrisati formatiranje", + + // Undo, redo + "Undo": "Korak nazad", + "Redo": "Korak naprijed", + + // Select all + "Select All": "Ozna\u010di sve", + + // Code view + "Code View": "Kod pogled", + + // Quote + "Quote": "Citat", + "Increase": "Pove\u0107ati", + "Decrease": "Smanjenje", + + // Quick Insert + "Quick Insert": "Brzo umetak", + + // Spcial Characters + "Special Characters": "Posebni znakovi", + "Latin": "Latin", + "Greek": "Greek", + "Cyrillic": "Ćirilično", + "Punctuation": "Interpunkcija", + "Currency": "Valuta", + "Arrows": "Strelice", + "Math": "Matematika", + "Misc": "Misc", + + // Print. + "Print": "Print", + + // Spell Checker. + "Spell Checker": "Proveru pravopisa", + + // Help + "Help": "Pomoć", + "Shortcuts": "Prečice", + "Inline Editor": "Inline editor", + "Show the editor": "Pokaži urednika", + "Common actions": "Zajedničke akcije", + "Copy": "Kopiraj", + "Cut": "Cut", + "Paste": "Paste", + "Basic Formatting": "Osnovno oblikovanje", + "Increase quote level": "Povećati cijeni", + "Decrease quote level": "Smanjiti nivo ponude", + "Image / Video": "Slika / video", + "Resize larger": "Veće veličine", + "Resize smaller": "Manja promjena veličine", + "Table": "Stol", + "Select table cell": "Izaberite ćeliju tablice", + "Extend selection one cell": "Produžiti izbor jedne ćelije", + "Extend selection one row": "Produžiti izbor jedan red", + "Navigation": "Navigacija", + "Focus popup / toolbar": "Focus popup / toolbar", + "Return focus to previous position": "Vratite fokus na prethodnu poziciju", + + // Embed.ly + "Embed URL": "Ugraditi url", + "Paste in a URL to embed": "Paste u URL adresu za ugradnju", + + // Word Paste. + "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Nalepeni sadržaj dolazi iz Microsoft Word dokumenta. da li želite da zadržite format ili da ga očistite?", + "Keep": "Zadržati", + "Clean": "Čist", + "Word Paste Detected": "Otkrivena je slovna reč" + }, + direction: "ltr" +}; + +})); diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/cs.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/cs.js new file mode 100644 index 0000000..69b0986 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/cs.js @@ -0,0 +1,318 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + // require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + return factory(jQuery); + }; + } else { + // Browser globals + factory(window.jQuery); + } +}(function ($) { +/** + * Czech + */ + +$.FE.LANGUAGE['cs'] = { + translation: { + // Place holder + "Type something": "Napi\u0161te n\u011bco", + + // Basic formatting + "Bold": "Tu\u010dn\u00e9", + "Italic": "Kurz\u00edva", + "Underline": "Podtr\u017een\u00e9", + "Strikethrough": "P\u0159e\u0161krtnut\u00e9", + + // Main buttons + "Insert": "Vlo\u017eit", + "Delete": "Vymazat", + "Cancel": "Zru\u0161it", + "OK": "OK", + "Back": "Zp\u011bt", + "Remove": "Odstranit", + "More": "V\u00edce", + "Update": "Aktualizovat", + "Style": "Styl", + + // Font + "Font Family": "Typ p\u00edsma", + "Font Size": "Velikost p\u00edsma", + + // Colors + "Colors": "Barvy", + "Background": "Pozad\u00ed", + "Text": "P\u00edsmo", + "HEX Color": "Hex Barvy", + + // Paragraphs + "Paragraph Format": "Form\u00e1t odstavec", + "Normal": "Norm\u00e1ln\u00ed", + "Code": "K\u00f3d", + "Heading 1": "Nadpis 1", + "Heading 2": "Nadpis 2", + "Heading 3": "Nadpis 3", + "Heading 4": "Nadpis 4", + + // Style + "Paragraph Style": "Odstavec styl", + "Inline Style": "Inline styl", + + // Alignment + "Align": "Zarovn\u00e1n\u00ed", + "Align Left": "Zarovnat vlevo", + "Align Center": "Zarovnat na st\u0159ed", + "Align Right": "Zarovnat vpravo", + "Align Justify": "Zarovnat do bloku", + "None": "Nikdo", + + // Lists + "Ordered List": "\u010c\u00edslovan\u00fd seznam", + "Unordered List": "Ne\u010d\u00edslovan\u00fd seznam", + + // Indent + "Decrease Indent": "Zmen\u0161it odsazen\u00ed", + "Increase Indent": "Zv\u011bt\u0161it odsazen\u00ed", + + // Links + "Insert Link": "Vlo\u017eit odkaz", + "Open in new tab": "Otev\u0159\u00edt v nov\u00e9 z\u00e1lo\u017ece", + "Open Link": "Otev\u0159\u00edt odkaz", + "Edit Link": "Upravit odkaz", + "Unlink": "Odstranit odkaz", + "Choose Link": "Zvolte odkaz", + + // Images + "Insert Image": "Vlo\u017eit obr\u00e1zek", + "Upload Image": "Nahr\u00e1t obr\u00e1zek", + "By URL": "Podle URL", + "Browse": "Proch\u00e1zet", + "Drop image": "P\u0159et\u00e1hn\u011bte sem obr\u00e1zek", + "or click": "nebo zde klepn\u011bte", + "Manage Images": "Spr\u00e1va obr\u00e1zk\u016f", + "Loading": "Nakl\u00e1d\u00e1n\u00ed", + "Deleting": "Odstran\u011bn\u00ed", + "Tags": "Zna\u010dky", + "Are you sure? Image will be deleted.": "Ur\u010dit\u011b? Obr\u00e1zek bude smaz\u00e1n.", + "Replace": "Nahradit", + "Uploading": "Nahr\u00e1v\u00e1n\u00ed", + "Loading image": "Obr\u00e1zek se na\u010d\u00edt\u00e1", + "Display": "Zobrazit", + "Inline": "Inline", + "Break Text": "P\u0159est\u00e1vka textu", + "Alternate Text": "Alternativn\u00ed textu", + "Change Size": "Zm\u011bnit velikost", + "Width": "\u0160\u00ed\u0159ka", + "Height": "V\u00fd\u0161ka", + "Something went wrong. Please try again.": "N\u011bco se pokazilo. Pros\u00edm zkuste to znovu.", + "Image Caption": "Obrázek titulku", + "Advanced Edit": "Pokročilá úprava", + + // Video + "Insert Video": "Vlo\u017eit video", + "Embedded Code": "Vlo\u017een\u00fd k\u00f3d", + "Paste in a video URL": "Vložit adresu URL videa", + "Drop video": "Drop video", + "Your browser does not support HTML5 video.": "Váš prohlížeč nepodporuje video html5.", + "Upload Video": "Nahrát video", + + // Tables + "Insert Table": "Vlo\u017eit tabulku", + "Table Header": "Hlavi\u010dka tabulky", + "Remove Table": "Odstranit tabulku", + "Table Style": "Styl tabulky", + "Horizontal Align": "Horizont\u00e1ln\u00ed zarovn\u00e1n\u00ed", + "Row": "\u0158\u00e1dek", + "Insert row above": "Vlo\u017eit \u0159\u00e1dek nad", + "Insert row below": "Vlo\u017eit \u0159\u00e1dek pod", + "Delete row": "Smazat \u0159\u00e1dek", + "Column": "Sloupec", + "Insert column before": "Vlo\u017eit sloupec vlevo", + "Insert column after": "Vlo\u017eit sloupec vpravo", + "Delete column": "Smazat sloupec", + "Cell": "Bu\u0148ka", + "Merge cells": "Slou\u010dit bu\u0148ky", + "Horizontal split": "Horizont\u00e1ln\u00ed rozd\u011blen\u00ed", + "Vertical split": "Vertik\u00e1ln\u00ed rozd\u011blen\u00ed", + "Cell Background": "Bu\u0148ka pozad\u00ed", + "Vertical Align": "Vertik\u00e1ln\u00ed zarovn\u00e1n\u00ed", + "Top": "Vrchol", + "Middle": "St\u0159ed", + "Bottom": "Spodn\u00ed", + "Align Top": "Zarovnat vrchol", + "Align Middle": "Zarovnat st\u0159ed", + "Align Bottom": "Zarovnat spodn\u00ed", + "Cell Style": "Styl bu\u0148ky", + + // Files + "Upload File": "Nahr\u00e1t soubor", + "Drop file": "P\u0159et\u00e1hn\u011bte sem soubor", + + // Emoticons + "Emoticons": "Emotikony", + "Grinning face": "S \u00fasm\u011bvem tv\u00e1\u0159", + "Grinning face with smiling eyes": "S \u00fasm\u011bvem obli\u010dej s o\u010dima s \u00fasm\u011bvem", + "Face with tears of joy": "tv\u00e1\u0159 se slzami radosti", + "Smiling face with open mouth": "Usm\u00edvaj\u00edc\u00ed se obli\u010dej s otev\u0159en\u00fdmi \u00fasty", + "Smiling face with open mouth and smiling eyes": "Usm\u00edvaj\u00edc\u00ed se obli\u010dej s otev\u0159en\u00fdmi \u00fasty a o\u010dima s \u00fasm\u011bvem", + "Smiling face with open mouth and cold sweat": "Usm\u00edvaj\u00edc\u00ed se tv\u00e1\u0159 s otev\u0159en\u00fdmi \u00fasty a studen\u00fd pot", + "Smiling face with open mouth and tightly-closed eyes": "Usm\u00edvaj\u00edc\u00ed se tv\u00e1\u0159 s otev\u0159en\u00fdmi \u00fasty a t\u011bsn\u011b zav\u0159en\u00e9 o\u010di", + "Smiling face with halo": "Usm\u00edvaj\u00edc\u00ed se obli\u010dej s halo", + "Smiling face with horns": "Usm\u00edvaj\u00edc\u00ed se obli\u010dej s rohy", + "Winking face": "Mrk\u00e1n\u00ed tv\u00e1\u0159", + "Smiling face with smiling eyes": "Usm\u00edvaj\u00edc\u00ed se obli\u010dej s o\u010dima s \u00fasm\u011bvem", + "Face savoring delicious food": "Tv\u00e1\u0159 vychutn\u00e1val chutn\u00e9 j\u00eddlo", + "Relieved face": "Ulevilo tv\u00e1\u0159", + "Smiling face with heart-shaped eyes": "Usm\u00edvaj\u00edc\u00ed se tv\u00e1\u0159 ve tvaru srdce o\u010dima", + "Smiling face with sunglasses": "Usm\u00edvaj\u00edc\u00ed se tv\u00e1\u0159 se slune\u010dn\u00edmi br\u00fdlemi", + "Smirking face": "Uculoval tv\u00e1\u0159", + "Neutral face": "Neutr\u00e1ln\u00ed tv\u00e1\u0159", + "Expressionless face": "Bezv\u00fdrazn\u00fd obli\u010dej", + "Unamused face": "Ne pobaven\u00fd tv\u00e1\u0159", + "Face with cold sweat": "Tv\u00e1\u0159 se studen\u00fdm potem", + "Pensive face": "Zamy\u0161len\u00fd obli\u010dej", + "Confused face": "Zmaten\u00fd tv\u00e1\u0159", + "Confounded face": "Na\u0161tvan\u00fd tv\u00e1\u0159", + "Kissing face": "L\u00edb\u00e1n\u00ed tv\u00e1\u0159", + "Face throwing a kiss": "Tv\u00e1\u0159 h\u00e1zet polibek", + "Kissing face with smiling eyes": "L\u00edb\u00e1n\u00ed obli\u010dej s o\u010dima s \u00fasm\u011bvem", + "Kissing face with closed eyes": "L\u00edb\u00e1n\u00ed tv\u00e1\u0159 se zav\u0159en\u00fdma o\u010dima", + "Face with stuck out tongue": "Tv\u00e1\u0159 s tr\u010dely jazyk", + "Face with stuck out tongue and winking eye": "Tv\u00e1\u0159 s tr\u010dely jazykem a mrkat o\u010dima", + "Face with stuck out tongue and tightly-closed eyes": "Suo\u010diti s tr\u010dely jazykem t\u011bsn\u011b zav\u0159en\u00e9 vidikovce", + "Disappointed face": "Zklaman\u00fd tv\u00e1\u0159", + "Worried face": "Boj\u00ed\u0161 se tv\u00e1\u0159", + "Angry face": "Rozzloben\u00fd tv\u00e1\u0159", + "Pouting face": "Na\u0161pulen\u00e9 tv\u00e1\u0159", + "Crying face": "Pl\u00e1\u010d tv\u00e1\u0159", + "Persevering face": "Vytrval\u00fdm tv\u00e1\u0159", + "Face with look of triumph": "Tv\u00e1\u0159 s v\u00fdrazem triumfu", + "Disappointed but relieved face": "Zklaman\u00fd ale ulevilo tv\u00e1\u0159", + "Frowning face with open mouth": "Zamra\u010dil se obli\u010dej s otev\u0159en\u00fdmi \u00fasty", + "Anguished face": "\u00fazkostn\u00e9 tv\u00e1\u0159", + "Fearful face": "Stra\u0161n\u00fd tv\u00e1\u0159", + "Weary face": "Unaven\u00fd tv\u00e1\u0159", + "Sleepy face": "Ospal\u00fd tv\u00e1\u0159", + "Tired face": "Unaven\u00fd tv\u00e1\u0159", + "Grimacing face": "\u0161klebil tv\u00e1\u0159", + "Loudly crying face": "Hlasit\u011b pl\u00e1\u010de tv\u00e1\u0159", + "Face with open mouth": "Obli\u010dej s otev\u0159en\u00fdmi \u00fasty", + "Hushed face": "Tlumen\u00fd tv\u00e1\u0159", + "Face with open mouth and cold sweat": "Obli\u010dej s otev\u0159en\u00fdmi \u00fasty a studen\u00fd pot", + "Face screaming in fear": "Tv\u00e1\u0159 k\u0159i\u010d\u00ed ve strachu", + "Astonished face": "V \u00fa\u017easu tv\u00e1\u0159", + "Flushed face": "Zarudnut\u00ed v obli\u010deji", + "Sleeping face": "Sp\u00edc\u00ed tv\u00e1\u0159", + "Dizzy face": "Z\u00e1vrat\u011b tv\u00e1\u0159", + "Face without mouth": "Tv\u00e1\u0159 bez \u00fast", + "Face with medical mask": "Tv\u00e1\u0159 s l\u00e9ka\u0159sk\u00fdm maskou", + + // Line breaker + "Break": "P\u0159eru\u0161en\u00ed", + + // Math + "Subscript": "Doln\u00ed index", + "Superscript": "Horn\u00ed index", + + // Full screen + "Fullscreen": "Cel\u00e1 obrazovka", + + // Horizontal line + "Insert Horizontal Line": "Vlo\u017eit vodorovnou \u010d\u00e1ru", + + // Clear formatting + "Clear Formatting": "Vymazat form\u00e1tov\u00e1n\u00ed", + + // Undo, redo + "Undo": "Zp\u011bt", + "Redo": "Znovu", + + // Select all + "Select All": "Vybrat v\u0161e", + + // Code view + "Code View": "Zobrazen\u00ed k\u00f3d", + + // Quote + "Quote": "Cit\u00e1t", + "Increase": "Nav\u00fd\u0161it", + "Decrease": "Sn\u00ed\u017een\u00ed", + + // Quick Insert + "Quick Insert": "Rychl\u00e1 vlo\u017eka", + + // Spcial Characters + "Special Characters": "Speciální znaky", + "Latin": "Latinský", + "Greek": "Řecký", + "Cyrillic": "Cyrilice", + "Punctuation": "Interpunkce", + "Currency": "Měna", + "Arrows": "Šipky", + "Math": "Matematika", + "Misc": "Misc", + + // Print. + "Print": "Tisk", + + // Spell Checker. + "Spell Checker": "Kontrola pravopisu", + + // Help + "Help": "Pomoc", + "Shortcuts": "Zkratky", + "Inline Editor": "Inline editor", + "Show the editor": "Zobrazit editor", + "Common actions": "Společné akce", + "Copy": "Kopírovat", + "Cut": "Střih", + "Paste": "Vložit", + "Basic Formatting": "Základní formátování", + "Increase quote level": "Zvýšení cenové hladiny", + "Decrease quote level": "Snížit úroveň cenové nabídky", + "Image / Video": "Obraz / video", + "Resize larger": "Změna velikosti větší", + "Resize smaller": "Změnit velikost menší", + "Table": "Stůl", + "Select table cell": "Vyberte buňku tabulky", + "Extend selection one cell": "Rozšířit výběr o jednu buňku", + "Extend selection one row": "Rozšířit výběr o jeden řádek", + "Navigation": "Navigace", + "Focus popup / toolbar": "Popup / panel nástrojů zaostření", + "Return focus to previous position": "Návrat na předchozí pozici", + + // Embed.ly + "Embed URL": "Vložte url", + "Paste in a URL to embed": "Vložit adresu URL, kterou chcete vložit", + + // Word Paste. + "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Vložený obsah pochází z dokumentu Microsoft Word. chcete formát uchovat nebo jej vyčistit?", + "Keep": "Držet", + "Clean": "Čistý", + "Word Paste Detected": "Slovní vložka zjištěna" + }, + direction: "ltr" +}; + +})); diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/da.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/da.js new file mode 100644 index 0000000..b6a8655 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/da.js @@ -0,0 +1,318 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + // require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + return factory(jQuery); + }; + } else { + // Browser globals + factory(window.jQuery); + } +}(function ($) { +/** + * Danish + */ + +$.FE.LANGUAGE['da'] = { + translation: { + // Place holder + "Type something": "Skriv noget", + + // Basic formatting + "Bold": "Fed", + "Italic": "Kursiv", + "Underline": "Understreg", + "Strikethrough": "Gennemstreg", + + // Main buttons + "Insert": "Inds\u00e6t", + "Delete": "Slet", + "Cancel": "Fortryd", + "OK": "Ok", + "Back": "Tilbage", + "Remove": "Fjern", + "More": "Mere", + "Update": "Opdatering", + "Style": "Stil", + + // Font + "Font Family": "Skrifttype", + "Font Size": "Skriftst\u00f8rrelse", + + // Colors + "Colors": "Farver", + "Background": "Baggrunds", + "Text": "Tekst", + "HEX Color": "Hex farve", + + // Paragraphs + "Paragraph Format": "S\u00e6tning format", + "Normal": "Normal", + "Code": "Code", + "Heading 1": "Overskrift 1", + "Heading 2": "Overskrift 2", + "Heading 3": "Overskrift 3", + "Heading 4": "Overskrift 4", + + // Style + "Paragraph Style": "S\u00e6tning stil", + "Inline Style": "Inline stil", + + // Alignment + "Align": "Tilpasning", + "Align Left": "Venstrejusteret", + "Align Center": "Centreret", + "Align Right": "H\u00f8jrejusteret", + "Align Justify": "Justering", + "None": "Intet", + + // Lists + "Ordered List": "Ordnet liste", + "Unordered List": "Uordnet liste", + + // Indent + "Decrease Indent": "Mindske indrykning", + "Increase Indent": "For\u00f8ge indrykning", + + // Links + "Insert Link": "Inds\u00e6t link", + "Open in new tab": "\u00c5bn i ny fane", + "Open Link": "\u00c5bn link", + "Edit Link": "Rediger link", + "Unlink": "Fjern link", + "Choose Link": "V\u00e6lg link", + + // Images + "Insert Image": "Inds\u00e6t billede", + "Upload Image": "Upload billede", + "By URL": "Af URL", + "Browse": "Gennemse", + "Drop image": "Tr\u00e6k billedet herind", + "or click": "eller klik", + "Manage Images": "Administrer billeder", + "Loading": "Lastning", + "Deleting": "Sletning", + "Tags": "Tags", + "Are you sure? Image will be deleted.": "Er du sikker? Billede vil blive slettet.", + "Replace": "Udskift", + "Uploading": "Upload", + "Loading image": "Lastning billede", + "Display": "Udstilling", + "Inline": "Inline", + "Break Text": "Afbrydelse tekst", + "Alternate Text": "Suppleant tekst", + "Change Size": "Skift st\u00f8rrelse", + "Width": "Bredde", + "Height": "H\u00f8jde", + "Something went wrong. Please try again.": "Noget gik galt. Pr\u00f8v igen.", + "Image Caption": "Billedtekst", + "Advanced Edit": "Avanceret redigering", + + // Video + "Insert Video": "Inds\u00e6t video", + "Embedded Code": "Embedded kode", + "Paste in a video URL": "Indsæt i en video url", + "Drop video": "Slip video", + "Your browser does not support HTML5 video.": "Din browser understøtter ikke html5 video.", + "Upload Video": "Upload video", + + // Tables + "Insert Table": "Inds\u00e6t tabel", + "Table Header": "Tabel header", + "Remove Table": "Fjern tabel", + "Table Style": "Tabel stil", + "Horizontal Align": "Vandret tilpasning", + "Row": "R\u00e6kke", + "Insert row above": "Inds\u00e6t r\u00e6kke over", + "Insert row below": "Inds\u00e6t r\u00e6kke under", + "Delete row": "Slet r\u00e6kke", + "Column": "Kolonne", + "Insert column before": "Inds\u00e6t kolonne f\u00f8r", + "Insert column after": "Inds\u00e6t kolonne efter", + "Delete column": "Slet kolonne", + "Cell": "Celle", + "Merge cells": "Flet celler", + "Horizontal split": "Vandret split", + "Vertical split": "Lodret split", + "Cell Background": "Celle baggrund", + "Vertical Align": "Lodret tilpasning", + "Top": "Top", + "Middle": "Midten", + "Bottom": "Bund", + "Align Top": "Tilpasse top", + "Align Middle": "Tilpasse midten", + "Align Bottom": "Tilpasse bund", + "Cell Style": "Celle stil", + + // Files + "Upload File": "Upload fil", + "Drop file": "Drop fil", + + // Emoticons + "Emoticons": "Hum\u00f8rikoner", + "Grinning face": "Grinende ansigt", + "Grinning face with smiling eyes": "Grinende ansigt med smilende \u00f8jne", + "Face with tears of joy": "Ansigt med gl\u00e6dest\u00e5rer", + "Smiling face with open mouth": "Smilende ansigt med \u00e5ben mund", + "Smiling face with open mouth and smiling eyes": "Smilende ansigt med \u00e5ben mund og smilende \u00f8jne", + "Smiling face with open mouth and cold sweat": "Smilende ansigt med \u00e5ben mund og koldsved", + "Smiling face with open mouth and tightly-closed eyes": "Smilende ansigt med \u00e5ben mund og stramt-lukkede \u00f8jne", + "Smiling face with halo": "Smilende ansigt med halo", + "Smiling face with horns": "Smilende ansigt med horn", + "Winking face": "Blinkede ansigt", + "Smiling face with smiling eyes": "Smilende ansigt med smilende \u00f8jne", + "Face savoring delicious food": "Ansigt savoring l\u00e6kker mad", + "Relieved face": "Lettet ansigt", + "Smiling face with heart-shaped eyes": "Smilende ansigt med hjerteformede \u00f8jne", + "Smiling face with sunglasses": "Smilende ansigt med solbriller", + "Smirking face": "Smilende ansigt", + "Neutral face": "Neutral ansigt", + "Expressionless face": "Udtryksl\u00f8se ansigt", + "Unamused face": "Ikke morede ansigt", + "Face with cold sweat": "Ansigt med koldsved", + "Pensive face": "Eftert\u00e6nksom ansigt", + "Confused face": "Forvirret ansigt", + "Confounded face": "Forvirrede ansigt", + "Kissing face": "Kysse ansigt", + "Face throwing a kiss": "Ansigt smide et kys", + "Kissing face with smiling eyes": "Kysse ansigt med smilende \u00f8jne", + "Kissing face with closed eyes": "Kysse ansigt med lukkede \u00f8jne", + "Face with stuck out tongue": "Ansigt med stak ud tungen", + "Face with stuck out tongue and winking eye": "Ansigt med stak ud tungen og blinkede \u00f8je", + "Face with stuck out tongue and tightly-closed eyes": "Ansigt med stak ud tungen og stramt lukkede \u00f8jne", + "Disappointed face": "Skuffet ansigt", + "Worried face": "Bekymret ansigt", + "Angry face": "Vred ansigt", + "Pouting face": "Sk\u00e6gtorsk ansigt", + "Crying face": "Gr\u00e6der ansigt", + "Persevering face": "Udholdende ansigt", + "Face with look of triumph": "Ansigt med udseendet af triumf", + "Disappointed but relieved face": "Skuffet, men lettet ansigt", + "Frowning face with open mouth": "Rynkede panden ansigt med \u00e5ben mund", + "Anguished face": "Forpinte ansigt", + "Fearful face": "Frygt ansigt", + "Weary face": "Tr\u00e6tte ansigt", + "Sleepy face": "S\u00f8vnig ansigt", + "Tired face": "Tr\u00e6t ansigt", + "Grimacing face": "Grimasser ansigt", + "Loudly crying face": "H\u00f8jlydt grædende ansigt", + "Face with open mouth": "Ansigt med \u00e5ben mund", + "Hushed face": "Tyst ansigt", + "Face with open mouth and cold sweat": "Ansigt med \u00e5ben mund og koldsved", + "Face screaming in fear": "Ansigt skrigende i fryg", + "Astonished face": "Forundret ansigt", + "Flushed face": "Blussende ansigt", + "Sleeping face": "Sovende ansigt", + "Dizzy face": "Svimmel ansigt", + "Face without mouth": "Ansigt uden mund", + "Face with medical mask": "Ansigt med medicinsk maske", + + // Line breaker + "Break": "Afbrydelse", + + // Math + "Subscript": "S\u00e6nket skrift", + "Superscript": "H\u00e6vet skrift", + + // Full screen + "Fullscreen": "Fuld sk\u00e6rm", + + // Horizontal line + "Insert Horizontal Line": "Inds\u00e6t vandret linie", + + // Clear formatting + "Clear Formatting": "Fjern formatering", + + // Undo, redo + "Undo": "Fortryd", + "Redo": "Genopret", + + // Select all + "Select All": "V\u00e6lg alle", + + // Code view + "Code View": "Kode visning", + + // Quote + "Quote": "Citat", + "Increase": "For\u00f8ge", + "Decrease": "Mindsk", + + // Quick Insert + "Quick Insert": "Hurtig indsats", + + // Spcial Characters + "Special Characters": "Specialtegn", + "Latin": "Latin", + "Greek": "Græsk", + "Cyrillic": "Kyrillisk", + "Punctuation": "Tegnsætning", + "Currency": "Betalingsmiddel", + "Arrows": "Pile", + "Math": "Matematik", + "Misc": "Misc", + + // Print. + "Print": "Print", + + // Spell Checker. + "Spell Checker": "Stavekontrol", + + // Help + "Help": "Hjælp", + "Shortcuts": "Genveje", + "Inline Editor": "Inline editor", + "Show the editor": "Vis redaktøren", + "Common actions": "Fælles handlinger", + "Copy": "Kopi", + "Cut": "Skære", + "Paste": "Sæt ind", + "Basic Formatting": "Grundlæggende formatering", + "Increase quote level": "Øge tilbudsniveau", + "Decrease quote level": "Sænk citeringsniveauet", + "Image / Video": "Billede / video", + "Resize larger": "Ændre størrelse større", + "Resize smaller": "Ændre størrelsen mindre", + "Table": "Tabel", + "Select table cell": "Vælg tabel celle", + "Extend selection one cell": "Udvide valget en celle", + "Extend selection one row": "Udvide markeringen en række", + "Navigation": "Navigation", + "Focus popup / toolbar": "Fokus popup / værktøjslinje", + "Return focus to previous position": "Returnere fokus til tidligere position", + + // Embed.ly + "Embed URL": "Integrere url", + "Paste in a URL to embed": "Indsæt i en URL for at indlejre", + + // Word Paste. + "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Det indsatte indhold kommer fra et Microsoft Word-dokument. Vil du beholde formateringen eller fjerne det?", + "Keep": "Beholde", + "Clean": "Fjerne", + "Word Paste Detected": "Indsættelse fra Word er detekteret" + }, + direction: "ltr" +}; + +})); diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/de.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/de.js new file mode 100644 index 0000000..19c52dd --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/de.js @@ -0,0 +1,318 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + // require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + return factory(jQuery); + }; + } else { + // Browser globals + factory(window.jQuery); + } +}(function ($) { +/** + * German + */ + +$.FE.LANGUAGE['de'] = { + translation: { + // Place holder + "Type something": "Hier tippen", + + // Basic formatting + "Bold": "Fett", + "Italic": "Kursiv", + "Underline": "Unterstrichen", + "Strikethrough": "Durchgestrichen", + + // Main buttons + "Insert": "Einfügen", + "Delete": "Löschen", + "Cancel": "Abbrechen", + "OK": "OK", + "Back": "Zurück", + "Remove": "Entfernen", + "More": "Mehr", + "Update": "Aktualisieren", + "Style": "Stil", + + // Font + "Font Family": "Schriftart", + "Font Size": "Schriftgröße", + + // Colors + "Colors": "Farben", + "Background": "Hintergrund", + "Text": "Text", + "HEX Color": "Hexadezimaler Farbwert", + + // Paragraphs + "Paragraph Format": "Formatierung", + "Normal": "Normal", + "Code": "Quelltext", + "Heading 1": "Überschrift 1", + "Heading 2": "Überschrift 2", + "Heading 3": "Überschrift 3", + "Heading 4": "Überschrift 4", + + // Style + "Paragraph Style": "Absatzformatierung", + "Inline Style": "Inlineformatierung", + + // Alignment + "Align": "Ausrichtung", + "Align Left": "Linksbündig ausrichten", + "Align Center": "Zentriert ausrichten", + "Align Right": "Rechtsbündig ausrichten", + "Align Justify": "Blocksatz", + "None": "Keine", + + // Lists + "Ordered List": "Nummerierte Liste", + "Unordered List": "Unnummerierte Liste", + + // Indent + "Decrease Indent": "Einzug verkleinern", + "Increase Indent": "Einzug vergrößern", + + // Links + "Insert Link": "Link einfügen", + "Open in new tab": "In neuem Tab öffnen", + "Open Link": "Link öffnen", + "Edit Link": "Link bearbeiten", + "Unlink": "Link entfernen", + "Choose Link": "Einen Link auswählen", + + // Images + "Insert Image": "Bild einfügen", + "Upload Image": "Bild hochladen", + "By URL": "Von URL", + "Browse": "Durchsuchen", + "Drop image": "Bild hineinziehen", + "or click": "oder hier klicken", + "Manage Images": "Bilder verwalten", + "Loading": "Laden", + "Deleting": "Löschen", + "Tags": "Tags", + "Are you sure? Image will be deleted.": "Wollen Sie das Bild wirklich löschen?", + "Replace": "Ersetzen", + "Uploading": "Hochladen", + "Loading image": "Das Bild wird geladen", + "Display": "Textausrichtung", + "Inline": "Mit Text in einer Zeile", + "Break Text": "Text umbrechen", + "Alternate Text": "Alternativtext", + "Change Size": "Größe ändern", + "Width": "Breite", + "Height": "Höhe", + "Something went wrong. Please try again.": "Etwas ist schief gelaufen. Bitte versuchen Sie es erneut.", + "Image Caption": "Bildbeschreibung", + "Advanced Edit": "Erweiterte Bearbeitung", + + // Video + "Insert Video": "Video einfügen", + "Embedded Code": "Eingebetteter Code", + "Paste in a video URL": "Fügen Sie die Video-URL ein", + "Drop video": "Video hineinziehen", + "Your browser does not support HTML5 video.": "Ihr Browser unterstützt keine HTML5-Videos.", + "Upload Video": "Video hochladen", + + // Tables + "Insert Table": "Tabelle einfügen", + "Table Header": "Tabellenkopf", + "Remove Table": "Tabelle entfernen", + "Table Style": "Tabellenformatierung", + "Horizontal Align": "Horizontale Ausrichtung", + "Row": "Zeile", + "Insert row above": "Neue Zeile davor einfügen", + "Insert row below": "Neue Zeile danach einfügen", + "Delete row": "Zeile löschen", + "Column": "Spalte", + "Insert column before": "Neue Spalte davor einfügen", + "Insert column after": "Neue Spalte danach einfügen", + "Delete column": "Spalte löschen", + "Cell": "Zelle", + "Merge cells": "Zellen verbinden", + "Horizontal split": "Horizontal teilen", + "Vertical split": "Vertikal teilen", + "Cell Background": "Zellenfarbe", + "Vertical Align": "Vertikale Ausrichtung", + "Top": "Oben", + "Middle": "Zentriert", + "Bottom": "Unten", + "Align Top": "Oben ausrichten", + "Align Middle": "Zentriert ausrichten", + "Align Bottom": "Unten ausrichten", + "Cell Style": "Zellen-Stil", + + // Files + "Upload File": "Datei hochladen", + "Drop file": "Datei hineinziehen", + + // Emoticons + "Emoticons": "Emoticons", + "Grinning face": "Grinsendes Gesicht", + "Grinning face with smiling eyes": "Grinsend Gesicht mit lächelnden Augen", + "Face with tears of joy": "Gesicht mit Tränen der Freude", + "Smiling face with open mouth": "Lächelndes Gesicht mit offenem Mund", + "Smiling face with open mouth and smiling eyes": "Lächelndes Gesicht mit offenem Mund und lächelnden Augen", + "Smiling face with open mouth and cold sweat": "Lächelndes Gesicht mit offenem Mund und kaltem Schweiß", + "Smiling face with open mouth and tightly-closed eyes": "Lächelndes Gesicht mit offenem Mund und fest geschlossenen Augen", + "Smiling face with halo": "Lächeln Gesicht mit Heiligenschein", + "Smiling face with horns": "Lächeln Gesicht mit Hörnern", + "Winking face": "Zwinkerndes Gesicht", + "Smiling face with smiling eyes": "Lächelndes Gesicht mit lächelnden Augen", + "Face savoring delicious food": "Gesicht leckeres Essen genießend", + "Relieved face": "Erleichtertes Gesicht", + "Smiling face with heart-shaped eyes": "Lächelndes Gesicht mit herzförmigen Augen", + "Smiling face with sunglasses": "Lächelndes Gesicht mit Sonnenbrille", + "Smirking face": "Grinsendes Gesicht", + "Neutral face": "Neutrales Gesicht", + "Expressionless face": "Ausdrucksloses Gesicht", + "Unamused face": "Genervtes Gesicht", + "Face with cold sweat": "Gesicht mit kaltem Schweiß", + "Pensive face": "Nachdenkliches Gesicht", + "Confused face": "Verwirrtes Gesicht", + "Confounded face": "Elendes Gesicht", + "Kissing face": "Küssendes Gesicht", + "Face throwing a kiss": "Gesicht wirft einen Kuss", + "Kissing face with smiling eyes": "Küssendes Gesicht mit lächelnden Augen", + "Kissing face with closed eyes": "Küssendes Gesicht mit geschlossenen Augen", + "Face with stuck out tongue": "Gesicht mit herausgestreckter Zunge", + "Face with stuck out tongue and winking eye": "Gesicht mit herausgestreckter Zunge und zwinkerndem Auge", + "Face with stuck out tongue and tightly-closed eyes": "Gesicht mit herausgestreckter Zunge und fest geschlossenen Augen", + "Disappointed face": "Enttäuschtes Gesicht", + "Worried face": "Besorgtes Gesicht", + "Angry face": "Verärgertes Gesicht", + "Pouting face": "Schmollendes Gesicht", + "Crying face": "Weinendes Gesicht", + "Persevering face": "Ausharrendes Gesicht", + "Face with look of triumph": "Gesicht mit triumphierenden Blick", + "Disappointed but relieved face": "Enttäuschtes, aber erleichtertes Gesicht", + "Frowning face with open mouth": "Entsetztes Gesicht mit offenem Mund", + "Anguished face": "Gequältes Gesicht", + "Fearful face": "Angstvolles Gesicht", + "Weary face": "Müdes Gesicht", + "Sleepy face": "Schläfriges Gesicht", + "Tired face": "Gähnendes Gesicht", + "Grimacing face": "Grimassenschneidendes Gesicht", + "Loudly crying face": "Laut weinendes Gesicht", + "Face with open mouth": "Gesicht mit offenem Mund", + "Hushed face": "Besorgtes Gesicht mit offenem Mund", + "Face with open mouth and cold sweat": "Gesicht mit offenem Mund und kaltem Schweiß", + "Face screaming in fear": "Vor Angst schreiendes Gesicht", + "Astonished face": "Erstauntes Gesicht", + "Flushed face": "Gerötetes Gesicht", + "Sleeping face": "Schlafendes Gesicht", + "Dizzy face": "Schwindliges Gesicht", + "Face without mouth": "Gesicht ohne Mund", + "Face with medical mask": "Gesicht mit Mundschutz", + + // Line breaker + "Break": "Zeilenumbruch", + + // Math + "Subscript": "Tiefgestellt", + "Superscript": "Hochgestellt", + + // Full screen + "Fullscreen": "Vollbild", + + // Horizontal line + "Insert Horizontal Line": "Horizontale Linie einfügen", + + // Clear formatting + "Clear Formatting": "Formatierung löschen", + + // Undo, redo + "Undo": "Rückgängig", + "Redo": "Wiederholen", + + // Select all + "Select All": "Alles auswählen", + + // Code view + "Code View": "Code-Ansicht", + + // Quote + "Quote": "Zitieren", + "Increase": "Vergrößern", + "Decrease": "Verkleinern", + + // Quick Insert + "Quick Insert": "Schnell einfügen", + + // Spcial Characters + "Special Characters": "Sonderzeichen", + "Latin": "Lateinisch", + "Greek": "Griechisch", + "Cyrillic": "Kyrillisch", + "Punctuation": "Satzzeichen", + "Currency": "Währung", + "Arrows": "Pfeile", + "Math": "Mathematik", + "Misc": "Sonstige", + + // Print. + "Print": "Drucken", + + // Spell Checker. + "Spell Checker": "Rechtschreibprüfung", + + // Help + "Help": "Hilfe", + "Shortcuts": "Verknüpfungen", + "Inline Editor": "Inline-Editor", + "Show the editor": "Editor anzeigen", + "Common actions": "Häufig verwendete Befehle", + "Copy": "Kopieren", + "Cut": "Ausschneiden", + "Paste": "Einfügen", + "Basic Formatting": "Grundformatierung", + "Increase quote level": "Zitatniveau erhöhen", + "Decrease quote level": "Zitatniveau verringern", + "Image / Video": "Bild / Video", + "Resize larger": "Vergrößern", + "Resize smaller": "Verkleinern", + "Table": "Tabelle", + "Select table cell": "Tabellenzelle auswählen", + "Extend selection one cell": "Erweitere Auswahl um eine Zelle", + "Extend selection one row": "Erweitere Auswahl um eine Zeile", + "Navigation": "Navigation", + "Focus popup / toolbar": "Fokus-Popup / Symbolleiste", + "Return focus to previous position": "Fokus auf vorherige Position", + + // Embed.ly + "Embed URL": "URL einbetten", + "Paste in a URL to embed": "URL einfügen um sie einzubetten", + + // Word Paste. + "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Der eingefügte Inhalt kommt aus einem Microsoft Word-Dokument. Möchten Sie die Formatierungen behalten oder verwerfen?", + "Keep": "Behalten", + "Clean": "Bereinigen", + "Word Paste Detected": "Aus Word einfügen" + }, + direction: "ltr" +}; + +})); diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/en_ca.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/en_ca.js new file mode 100644 index 0000000..8044fd8 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/en_ca.js @@ -0,0 +1,262 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + // require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + return factory(jQuery); + }; + } else { + // Browser globals + factory(window.jQuery); + } +}(function ($) { +/** + * English spoken in Canada + */ + +$.FE.LANGUAGE['en_ca'] = { + translation: { + // Place holder + "Type something": "Type something", + + // Basic formatting + "Bold": "Bold", + "Italic": "Italic", + "Underline": "Underline", + "Strikethrough": "Strikethrough", + + // Main buttons + "Insert": "Insert", + "Delete": "Delete", + "Cancel": "Cancel", + "OK": "OK", + "Back": "Back", + "Remove": "Remove", + "More": "More", + "Update": "Update", + "Style": "Style", + + // Font + "Font Family": "Font Family", + "Font Size": "Font Size", + + // Colors + "Colors": "Colours", + "Background": "Background", + "Text": "Text", + "HEX Color": "HEX Colour", + + // Paragraphs + "Paragraph Format": "Paragraph Format", + "Normal": "Normal", + "Code": "Code", + "Heading 1": "Heading 1", + "Heading 2": "Heading 2", + "Heading 3": "Heading 3", + "Heading 4": "Heading 4", + + // Style + "Paragraph Style": "Paragraph Style", + "Inline Style": "Inline Style", + + // Alignment + "Align": "Align", + "Align Left": "Align Left", + "Align Center": "Align Centre", + "Align Right": "Alight Right", + "Align Justify": "Align Justify", + "None": "None", + + // Lists + "Ordered List": "Ordered List", + "Unordered List": "Unordered List", + + // Indent + "Decrease Indent": "Decrease Indent", + "Increase Indent": "Increase Indent", + + // Links + "Insert Link": "Insert Link", + "Open in new tab": "Open in new tab", + "Open Link": "Open Link", + "Edit Link": "Edit Link", + "Unlink": "Unlink", + "Choose Link": "Choose Link", + + // Images + "Insert Image": "Insert Image", + "Upload Image": "Upload Image", + "By URL": "By URL", + "Browse": "Browse", + "Drop image": "Drop image", + "or click": "or click", + "Manage Images": "Manage Images", + "Loading": "Loading", + "Deleting": "Deleting", + "Tags": "Tags", + "Are you sure? Image will be deleted.": "Are you sure? Image will be deleted.", + "Replace": "Replace", + "Uploading": "Uploading", + "Loading image": "Loading image", + "Display": "Display", + "Inline": "Inline", + "Break Text": "Break Text", + "Alternate Text": "Alternate Text", + "Change Size": "Change Size", + "Width": "Width", + "Height": "Height", + "Something went wrong. Please try again.": "Something went wrong. Please try again.", + "Image Caption": "Image Caption", + "Advanced Edit": "Advanced Edit", + + // Video + "Insert Video": "Insert Video", + "Embedded Code": "Embedded Code", + "Paste in a video URL": "Paste in a video URL", + "Drop video": "Drop video", + "Your browser does not support HTML5 video.": "Your browser does not support HTML5 video.", + "Upload Video": "Upload Video", + + // Tables + "Insert Table": "Insert Table", + "Table Header": "Table Header", + "Remove Table": "Remove Table", + "Table Style": "Table Style", + "Horizontal Align": "Horizontal Align", + "Row": "Row", + "Insert row above": "Insert row above", + "Insert row below": "Insert row below", + "Delete row": "Delete row", + "Column": "Column", + "Insert column before": "Insert column before", + "Insert column after": "Insert column after", + "Delete column": "Delete column", + "Cell": "Cell", + "Merge cells": "Merge cells", + "Horizontal split": "Horizontal split", + "Vertical split": "Vertical split", + "Cell Background": "Cell Background", + "Vertical Align": "Vertical Align", + "Top": "Top", + "Middle": "Middle", + "Bottom": "Bottom", + "Align Top": "Align Top", + "Align Middle": "Align Middle", + "Align Bottom": "Align Bottom", + "Cell Style": "Cell Style", + + // Files + "Upload File": "Upload File", + "Drop file": "Drop file", + + // Emoticons + "Emoticons": "Emoticons", + + // Line breaker + "Break": "Break", + + // Math + "Subscript": "Subscript", + "Superscript": "Superscript", + + // Full screen + "Fullscreen": "Fullscreen", + + // Horizontal line + "Insert Horizontal Line": "Insert Horizontal Line", + + // Clear formatting + "Clear Formatting": "Cell Formatting", + + // Undo, redo + "Undo": "Undo", + "Redo": "Redo", + + // Select all + "Select All": "Select All", + + // Code view + "Code View": "Code View", + + // Quote + "Quote": "Quote", + "Increase": "Increase", + "Decrease": "Decrease", + + // Quick Insert + "Quick Insert": "Quick Insert", + + // Spcial Characters + "Special Characters": "Special Characters", + "Latin": "Latin", + "Greek": "Greek", + "Cyrillic": "Cyrillic", + "Punctuation": "Punctuation", + "Currency": "Currency", + "Arrows": "Arrows", + "Math": "Math", + "Misc": "Misc", + + // Print. + "Print": "Print", + + // Spell Checker. + "Spell Checker": "Spell Checker", + + // Help + "Help": "Help", + "Shortcuts": "Shortcuts", + "Inline Editor": "Inline Editor", + "Show the editor": "Show the editor", + "Common actions": "Common actions", + "Copy": "Copy", + "Cut": "Cut", + "Paste": "Paste", + "Basic Formatting": "Basic Formatting", + "Increase quote level": "Increase quote level", + "Decrease quote level": "Decrease quote level", + "Image / Video": "Image / Video", + "Resize larger": "Resize larger", + "Resize smaller": "Resize smaller", + "Table": "Table", + "Select table cell": "Select table cell", + "Extend selection one cell": "Extend selection one cell", + "Extend selection one row": "Extend selection one row", + "Navigation": "Navigation", + "Focus popup / toolbar": "Focus popup / toolbar", + "Return focus to previous position": "Return focus to previous position", + + // Embed.ly + "Embed URL": "Embed URL", + "Paste in a URL to embed": "Paste in a URL to embed", + + // Word Paste. + "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?", + "Keep": "Keep", + "Clean": "Clean", + "Word Paste Detected": "Word Paste Detected" + }, + direction: "ltr" +}; + +})); diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/en_gb.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/en_gb.js new file mode 100644 index 0000000..9722aaf --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/en_gb.js @@ -0,0 +1,262 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + // require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + return factory(jQuery); + }; + } else { + // Browser globals + factory(window.jQuery); + } +}(function ($) { +/** + * English spoken in Great Britain + */ + +$.FE.LANGUAGE['en_gb'] = { + translation: { + // Place holder + "Type something": "Type something", + + // Basic formatting + "Bold": "Bold", + "Italic": "Italic", + "Underline": "Underline", + "Strikethrough": "Strikethrough", + + // Main buttons + "Insert": "Insert", + "Delete": "Delete", + "Cancel": "Cancel", + "OK": "OK", + "Back": "Back", + "Remove": "Remove", + "More": "More", + "Update": "Update", + "Style": "Style", + + // Font + "Font Family": "Font Family", + "Font Size": "Font Size", + + // Colors + "Colors": "Colours", + "Background": "Background", + "Text": "Text", + "HEX Color": "HEX Colour", + + // Paragraphs + "Paragraph Format": "Paragraph Format", + "Normal": "Normal", + "Code": "Code", + "Heading 1": "Heading 1", + "Heading 2": "Heading 2", + "Heading 3": "Heading 3", + "Heading 4": "Heading 4", + + // Style + "Paragraph Style": "Paragraph Style", + "Inline Style": "Inline Style", + + // Alignment + "Align": "Align", + "Align Left": "Align Left", + "Align Center": "Align Centre", + "Align Right": "Alight Right", + "Align Justify": "Align Justify", + "None": "None", + + // Lists + "Ordered List": "Ordered List", + "Unordered List": "Unordered List", + + // Indent + "Decrease Indent": "Decrease Indent", + "Increase Indent": "Increase Indent", + + // Links + "Insert Link": "Insert Link", + "Open in new tab": "Open in new tab", + "Open Link": "Open Link", + "Edit Link": "Edit Link", + "Unlink": "Unlink", + "Choose Link": "Choose Link", + + // Images + "Insert Image": "Insert Image", + "Upload Image": "Upload Image", + "By URL": "By URL", + "Browse": "Browse", + "Drop image": "Drop image", + "or click": "or click", + "Manage Images": "Manage Images", + "Loading": "Loading", + "Deleting": "Deleting", + "Tags": "Tags", + "Are you sure? Image will be deleted.": "Are you sure? Image will be deleted.", + "Replace": "Replace", + "Uploading": "Uploading", + "Loading image": "Loading image", + "Display": "Display", + "Inline": "Inline", + "Break Text": "Break Text", + "Alternate Text": "Alternate Text", + "Change Size": "Change Size", + "Width": "Width", + "Height": "Height", + "Something went wrong. Please try again.": "Something went wrong. Please try again.", + "Image Caption": "Image Caption", + "Advanced Edit": "Advanced Edit", + + // Video + "Insert Video": "Insert Video", + "Embedded Code": "Embedded Code", + "Paste in a video URL": "Paste in a video URL", + "Drop video": "Drop video", + "Your browser does not support HTML5 video.": "Your browser does not support HTML5 video.", + "Upload Video": "Upload Video", + + // Tables + "Insert Table": "Insert Table", + "Table Header": "Table Header", + "Remove Table": "Remove Table", + "Table Style": "Table Style", + "Horizontal Align": "Horizontal Align", + "Row": "Row", + "Insert row above": "Insert row above", + "Insert row below": "Insert row below", + "Delete row": "Delete row", + "Column": "Column", + "Insert column before": "Insert column before", + "Insert column after": "Insert column after", + "Delete column": "Delete column", + "Cell": "Cell", + "Merge cells": "Merge cells", + "Horizontal split": "Horizontal split", + "Vertical split": "Vertical split", + "Cell Background": "Cell Background", + "Vertical Align": "Vertical Align", + "Top": "Top", + "Middle": "Middle", + "Bottom": "Bottom", + "Align Top": "Align Top", + "Align Middle": "Align Middle", + "Align Bottom": "Align Bottom", + "Cell Style": "Cell Style", + + // Files + "Upload File": "Upload File", + "Drop file": "Drop file", + + // Emoticons + "Emoticons": "Emoticons", + + // Line breaker + "Break": "Break", + + // Math + "Subscript": "Subscript", + "Superscript": "Superscript", + + // Full screen + "Fullscreen": "Fullscreen", + + // Horizontal line + "Insert Horizontal Line": "Insert Horizontal Line", + + // Clear formatting + "Clear Formatting": "Cell Formatting", + + // Undo, redo + "Undo": "Undo", + "Redo": "Redo", + + // Select all + "Select All": "Select All", + + // Code view + "Code View": "Code View", + + // Quote + "Quote": "Quote", + "Increase": "Increase", + "Decrease": "Decrease", + + // Quick Insert + "Quick Insert": "Quick Insert", + + // Spcial Characters + "Special Characters": "Special Characters", + "Latin": "Latin", + "Greek": "Greek", + "Cyrillic": "Cyrillic", + "Punctuation": "Punctuation", + "Currency": "Currency", + "Arrows": "Arrows", + "Math": "Math", + "Misc": "Misc", + + // Print. + "Print": "Print", + + // Spell Checker. + "Spell Checker": "Spell Checker", + + // Help + "Help": "Help", + "Shortcuts": "Shortcuts", + "Inline Editor": "Inline Editor", + "Show the editor": "Show the editor", + "Common actions": "Common actions", + "Copy": "Copy", + "Cut": "Cut", + "Paste": "Paste", + "Basic Formatting": "Basic Formatting", + "Increase quote level": "Increase quote level", + "Decrease quote level": "Decrease quote level", + "Image / Video": "Image / Video", + "Resize larger": "Resize larger", + "Resize smaller": "Resize smaller", + "Table": "Table", + "Select table cell": "Select table cell", + "Extend selection one cell": "Extend selection one cell", + "Extend selection one row": "Extend selection one row", + "Navigation": "Navigation", + "Focus popup / toolbar": "Focus popup / toolbar", + "Return focus to previous position": "Return focus to previous position", + + // Embed.ly + "Embed URL": "Embed URL", + "Paste in a URL to embed": "Paste in a URL to embed", + + // Word Paste. + "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?", + "Keep": "Keep", + "Clean": "Clean", + "Word Paste Detected": "Word Paste Detected" + }, + direction: "ltr" +}; + +})); diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/es.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/es.js new file mode 100644 index 0000000..9046cad --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/es.js @@ -0,0 +1,318 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + // require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + return factory(jQuery); + }; + } else { + // Browser globals + factory(window.jQuery); + } +}(function ($) { +/** + * Spanish + */ + +$.FE.LANGUAGE['es'] = { + translation: { + // Place holder + "Type something": "Escriba algo", + + // Basic formatting + "Bold": "Negrita", + "Italic": "It\u00e1lica", + "Underline": "Subrayado", + "Strikethrough": "Tachado", + + // Main buttons + "Insert": "Insertar", + "Delete": "Borrar", + "Cancel": "Cancelar", + "OK": "Ok", + "Back": "Atr\u00e1s", + "Remove": "Quitar", + "More": "M\u00e1s", + "Update": "Actualizaci\u00f3n", + "Style": "Estilo", + + // Font + "Font Family": "Familia de fuentes", + "Font Size": "Tama\u00f1o de fuente", + + // Colors + "Colors": "Colores", + "Background": "Fondo", + "Text": "Texto", + "HEX Color": "Color hexadecimal", + + // Paragraphs + "Paragraph Format": "Formato de p\u00e1rrafo", + "Normal": "Normal", + "Code": "C\u00f3digo", + "Heading 1": "Encabezado 1", + "Heading 2": "Encabezado 2", + "Heading 3": "Encabezado 3", + "Heading 4": "Encabezado 4", + + // Style + "Paragraph Style": "Estilo de p\u00e1rrafo", + "Inline Style": "Estilo en l\u00ednea", + + // Alignment + "Align": "Alinear", + "Align Left": "Alinear a la izquierda", + "Align Center": "Alinear al centro", + "Align Right": "Alinear a la derecha", + "Align Justify": "Justificar", + "None": "Ninguno", + + // Lists + "Ordered List": "Lista ordenada", + "Unordered List": "Lista desordenada", + + // Indent + "Decrease Indent": "Reducir sangr\u00eda", + "Increase Indent": "Aumentar sangr\u00eda", + + // Links + "Insert Link": "Insertar enlace", + "Open in new tab": "Abrir en una nueva pesta\u00F1a", + "Open Link": "Abrir enlace", + "Edit Link": "Editar enlace", + "Unlink": "Quitar enlace", + "Choose Link": "Elegir enlace", + + // Images + "Insert Image": "Insertar imagen", + "Upload Image": "Cargar imagen", + "By URL": "Por URL", + "Browse": "Examinar", + "Drop image": "Soltar la imagen", + "or click": "o haga clic en", + "Manage Images": "Administrar im\u00e1genes", + "Loading": "Cargando", + "Deleting": "Borrado", + "Tags": "Etiquetas", + "Are you sure? Image will be deleted.": "\u00bfEst\u00e1 seguro? Imagen ser\u00e1 borrada.", + "Replace": "Reemplazar", + "Uploading": "Carga", + "Loading image": "Cargando imagen", + "Display": "Mostrar", + "Inline": "En l\u00ednea", + "Break Text": "Romper texto", + "Alternate Text": "Texto alternativo", + "Change Size": "Cambiar tama\u00f1o", + "Width": "Ancho", + "Height": "Altura", + "Something went wrong. Please try again.": "Algo sali\u00f3 mal. Por favor, vuelva a intentarlo.", + "Image Caption": "Captura de imagen", + "Advanced Edit": "Edición avanzada", + + // Video + "Insert Video": "Insertar video", + "Embedded Code": "C\u00f3digo incrustado", + "Paste in a video URL": "Pegar en una URL de video", + "Drop video": "Soltar video", + "Your browser does not support HTML5 video.": "Su navegador no es compatible con video html5.", + "Upload Video": "Subir video", + + // Tables + "Insert Table": "Insertar tabla", + "Table Header": "Encabezado de la tabla", + "Remove Table": "Retire la tabla", + "Table Style": "Estilo de tabla", + "Horizontal Align": "Alinear horizontal", + "Row": "Fila", + "Insert row above": "Insertar fila antes", + "Insert row below": "Insertar fila despu\u00e9s", + "Delete row": "Eliminar fila", + "Column": "Columna", + "Insert column before": "Insertar columna antes", + "Insert column after": "Insertar columna despu\u00e9s", + "Delete column": "Eliminar columna", + "Cell": "Celda", + "Merge cells": "Combinar celdas", + "Horizontal split": "Divisi\u00f3n horizontal", + "Vertical split": "Divisi\u00f3n vertical", + "Cell Background": "Fondo de la celda", + "Vertical Align": "Alinear vertical", + "Top": "Cima", + "Middle": "Medio", + "Bottom": "Del fondo", + "Align Top": "Alinear a la parte superior", + "Align Middle": "Alinear media", + "Align Bottom": "Alinear abajo", + "Cell Style": "Estilo de celda", + + // Files + "Upload File": "Subir archivo", + "Drop file": "Soltar archivo", + + // Emoticons + "Emoticons": "Emoticones", + "Grinning face": "Sonriendo cara", + "Grinning face with smiling eyes": "Sonriendo cara con ojos sonrientes", + "Face with tears of joy": "Cara con l\u00e1grimas de alegr\u00eda", + "Smiling face with open mouth": "Cara sonriente con la boca abierta", + "Smiling face with open mouth and smiling eyes": "Cara sonriente con la boca abierta y los ojos sonrientes", + "Smiling face with open mouth and cold sweat": "Cara sonriente con la boca abierta y el sudor fr\u00edo", + "Smiling face with open mouth and tightly-closed eyes": "Cara sonriente con la boca abierta y los ojos fuertemente cerrados", + "Smiling face with halo": "Cara sonriente con halo", + "Smiling face with horns": "Cara sonriente con cuernos", + "Winking face": "Gui\u00f1o de la cara", + "Smiling face with smiling eyes": "Cara sonriente con ojos sonrientes", + "Face savoring delicious food": "Care saborear una deliciosa comida", + "Relieved face": "Cara Aliviado", + "Smiling face with heart-shaped eyes": "Cara sonriente con los ojos en forma de coraz\u00f3n", + "Smiling face with sunglasses": "Cara sonriente con gafas de sol", + "Smirking face": "Sonriendo cara", + "Neutral face": "Cara neutral", + "Expressionless face": "Rostro inexpresivo", + "Unamused face": "Cara no divertido", + "Face with cold sweat": "Cara con sudor fr\u00edo", + "Pensive face": "Rostro pensativo", + "Confused face": "Cara confusa", + "Confounded face": "Cara Averg\u00fc\u00e9ncense", + "Kissing face": "Besar la cara", + "Face throwing a kiss": "Cara lanzando un beso", + "Kissing face with smiling eyes": "Besar a cara con ojos sonrientes", + "Kissing face with closed eyes": "Besar a cara con los ojos cerrados", + "Face with stuck out tongue": "Cara con la lengua pegada", + "Face with stuck out tongue and winking eye": "Cara con pegado a la lengua y los ojos gui\u00f1o", + "Face with stuck out tongue and tightly-closed eyes": "Cara con la lengua pegada a y los ojos fuertemente cerrados", + "Disappointed face": "Cara decepcionado", + "Worried face": "Cara de preocupaci\u00f3n", + "Angry face": "Cara enojada", + "Pouting face": "Que pone mala cara", + "Crying face": "Cara llorando", + "Persevering face": "Perseverar cara", + "Face with look of triumph": "Cara con expresi\u00f3n de triunfo", + "Disappointed but relieved face": "Decepcionado pero el rostro aliviado", + "Frowning face with open mouth": "Con el ce\u00f1o fruncido la cara con la boca abierta", + "Anguished face": "Rostro angustiado", + "Fearful face": "Cara Temeroso", + "Weary face": "Rostro cansado", + "Sleepy face": "Rostro so\u00f1oliento", + "Tired face": "Rostro cansado", + "Grimacing face": "Haciendo una mueca cara", + "Loudly crying face": "Llorando en voz alta la cara", + "Face with open mouth": "Cara con la boca abierta", + "Hushed face": "Cara callada", + "Face with open mouth and cold sweat": "Cara con la boca abierta y el sudor frío", + "Face screaming in fear": "Cara gritando de miedo", + "Astonished face": "Cara asombrosa", + "Flushed face": "Cara enrojecida", + "Sleeping face": "Rostro dormido", + "Dizzy face": "Cara Mareado", + "Face without mouth": "Cara sin boca", + "Face with medical mask": "Cara con la m\u00e1scara m\u00e9dica", + + // Line breaker + "Break": "Romper", + + // Math + "Subscript": "Sub\u00edndice", + "Superscript": "Super\u00edndice", + + // Full screen + "Fullscreen": "Pantalla completa", + + // Horizontal line + "Insert Horizontal Line": "Insertar l\u00ednea horizontal", + + // Clear formatting + "Clear Formatting": "Quitar el formato", + + // Undo, redo + "Undo": "Deshacer", + "Redo": "Rehacer", + + // Select all + "Select All": "Seleccionar todo", + + // Code view + "Code View": "Vista de c\u00f3digo", + + // Quote + "Quote": "Cita", + "Increase": "Aumentar", + "Decrease": "Disminuci\u00f3n", + + // Quick Insert + "Quick Insert": "Inserci\u00f3n r\u00e1pida", + + // Spcial Characters + "Special Characters": "Caracteres especiales", + "Latin": "Latín", + "Greek": "Griego", + "Cyrillic": "Cirílico", + "Punctuation": "Puntuación", + "Currency": "Moneda", + "Arrows": "Flechas", + "Math": "Mates", + "Misc": "Misc", + + // Print. + "Print": "Impresión", + + // Spell Checker. + "Spell Checker": "Corrector ortográfico", + + // Help + "Help": "Ayuda", + "Shortcuts": "Atajos", + "Inline Editor": "Editor en línea", + "Show the editor": "Mostrar al editor", + "Common actions": "Acciones comunes", + "Copy": "Dupdo", + "Cut": "Cortar", + "Paste": "Pegar", + "Basic Formatting": "Formato básico", + "Increase quote level": "Aumentar el nivel de cotización", + "Decrease quote level": "Disminuir el nivel de cotización", + "Image / Video": "Imagen / video", + "Resize larger": "Redimensionar más grande", + "Resize smaller": "Redimensionar más pequeño", + "Table": "Mesa", + "Select table cell": "Celda de tabla select", + "Extend selection one cell": "Ampliar la selección una celda", + "Extend selection one row": "Ampliar la selección una fila", + "Navigation": "Navegación", + "Focus popup / toolbar": "Focus popup / toolbar", + "Return focus to previous position": "Volver al foco a la posición anterior", + + // Embed.ly + "Embed URL": "URL de inserción", + "Paste in a URL to embed": "Pegar en una url para incrustar", + + // Word Paste. + "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "El contenido pegado viene de un documento de Microsoft Word. ¿Quieres mantener el formato o limpiarlo?", + "Keep": "Guardar", + "Clean": "Limpiar", + "Word Paste Detected": "Palabra detectada" + }, + direction: "ltr" +}; + +})); diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/et.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/et.js new file mode 100644 index 0000000..5bd15cb --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/et.js @@ -0,0 +1,318 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + // require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + return factory(jQuery); + }; + } else { + // Browser globals + factory(window.jQuery); + } +}(function ($) { +/** + * Estonian + */ + +$.FE.LANGUAGE['et'] = { + translation: { + // Place holder + "Type something": "Kirjuta midagi", + + // Basic formatting + "Bold": "Rasvane", + "Italic": "Kursiiv", + "Underline": "Allajoonitud", + "Strikethrough": "L\u00e4bikriipsutatud", + + // Main buttons + "Insert": "Lisa", + "Delete": "Kustuta", + "Cancel": "T\u00fchista", + "OK": "OK", + "Back": "Tagasi", + "Remove": "Eemaldama", + "More": "Rohkem", + "Update": "Ajakohastama", + "Style": "Stiil", + + // Font + "Font Family": "Fondi perekond", + "Font Size": "Fondi suurus", + + // Colors + "Colors": "V\u00e4rvid", + "Background": "Taust", + "Text": "Tekst", + "HEX Color": "Hex värvi", + + // Paragraphs + "Paragraph Format": "Paragrahv formaat", + "Normal": "Normaalne", + "Code": "Kood", + "Heading 1": "P\u00e4is 1", + "Heading 2": "P\u00e4is 2", + "Heading 3": "P\u00e4is 3", + "Heading 4": "P\u00e4is 4", + + // Style + "Paragraph Style": "Paragrahv stiil", + "Inline Style": "J\u00e4rjekorras stiil", + + // Alignment + "Align": "Joonda", + "Align Left": "Joonda vasakule", + "Align Center": "Joonda keskele", + "Align Right": "Joonda paremale", + "Align Justify": "R\u00f6\u00f6pjoondus", + "None": "Mitte \u00fckski", + + // Lists + "Ordered List": "Tellitud nimekirja", + "Unordered List": "Tavalise nimekirja", + + // Indent + "Decrease Indent": "V\u00e4henemine taane", + "Increase Indent": "Suurenda taanet", + + // Links + "Insert Link": "Lisa link", + "Open in new tab": "Ava uues sakis", + "Open Link": "Avatud link", + "Edit Link": "Muuda link", + "Unlink": "Eemalda link", + "Choose Link": "Vali link", + + // Images + "Insert Image": "Lisa pilt", + "Upload Image": "Laadige pilt", + "By URL": "Poolt URL", + "Browse": "sirvida", + "Drop image": "Aseta pilt", + "or click": "v\u00f5i kliki", + "Manage Images": "Halda pilte", + "Loading": "Laadimine", + "Deleting": "Kustutamine", + "Tags": "Sildid", + "Are you sure? Image will be deleted.": "Oled sa kindel? Pilt kustutatakse.", + "Replace": "Asendama", + "Uploading": "Laadimise pilti", + "Loading image": "Laadimise pilti", + "Display": "Kuvama", + "Inline": "J\u00e4rjekorras", + "Break Text": "Murdma teksti", + "Alternate Text": "Asendusliikme teksti", + "Change Size": "Muuda suurust", + "Width": "Laius", + "Height": "K\u00f5rgus", + "Something went wrong. Please try again.": "Midagi l\u00e4ks valesti. Palun proovi uuesti.", + "Image Caption": "Pildi pealkiri", + "Advanced Edit": "Täiustatud redigeerimine", + + // Video + "Insert Video": "Lisa video", + "Embedded Code": "Varjatud koodi", + "Paste in a video URL": "Kleebi video URL-i", + "Drop video": "Tilk videot", + "Your browser does not support HTML5 video.": "Teie brauser ei toeta html5-videot.", + "Upload Video": "Video üleslaadimine", + + // Tables + "Insert Table": "Sisesta tabel", + "Table Header": "Tabel p\u00e4ise kaudu", + "Remove Table": "Eemalda tabel", + "Table Style": "Tabel stiili", + "Horizontal Align": "Horisontaalne joonda", + "Row": "Rida", + "Insert row above": "Sisesta rida \u00fcles", + "Insert row below": "Sisesta rida alla", + "Delete row": "Kustuta rida", + "Column": "Veerg", + "Insert column before": "Sisesta veerg ette", + "Insert column after": "Sisesta veerg j\u00e4rele", + "Delete column": "Kustuta veerg", + "Cell": "Lahter", + "Merge cells": "\u00fchenda lahtrid", + "Horizontal split": "Poolita horisontaalselt", + "Vertical split": "Poolita vertikaalselt", + "Cell Background": "Lahter tausta", + "Vertical Align": "Vertikaalne joonda", + "Top": "\u00fclemine", + "Middle": "Keskmine", + "Bottom": "P\u00f5hi", + "Align Top": "Joonda \u00fclemine", + "Align Middle": "Joonda keskmine", + "Align Bottom": "Joonda P\u00f5hi", + "Cell Style": "Lahter stiili", + + // Files + "Upload File": "Lae fail \u00fcles", + "Drop file": "Aseta fail", + + // Emoticons + "Emoticons": "Emotikonid", + "Grinning face": "Irvitas n\u00e4kku", + "Grinning face with smiling eyes": "Irvitas n\u00e4kku naeratavad silmad", + "Face with tears of joy": "N\u00e4gu r\u00f5\u00f5mupisaratega", + "Smiling face with open mouth": "Naeratav n\u00e4gu avatud suuga", + "Smiling face with open mouth and smiling eyes": "Naeratav n\u00e4gu avatud suu ja naeratavad silmad", + "Smiling face with open mouth and cold sweat": "Naeratav n\u00e4gu avatud suu ja k\u00fclm higi", + "Smiling face with open mouth and tightly-closed eyes": "Naeratav n\u00e4gu avatud suu ja tihedalt suletud silmad", + "Smiling face with halo": "Naeratav n\u00e4gu halo", + "Smiling face with horns": "Naeratav n\u00e4gu sarved", + "Winking face": "Pilgutab n\u00e4gu", + "Smiling face with smiling eyes": "Naeratav n\u00e4gu naeratab silmad", + "Face savoring delicious food": "N\u00e4gu nautides maitsvat toitu", + "Relieved face": "P\u00e4\u00e4stetud n\u00e4gu", + "Smiling face with heart-shaped eyes": "Naeratav n\u00e4gu s\u00fcdajas silmad", + "Smiling face with sunglasses": "Naeratav n\u00e4gu p\u00e4ikeseprillid", + "Smirking face": "Muigama n\u00e4gu ", + "Neutral face": "Neutraalne n\u00e4gu", + "Expressionless face": "Ilmetu n\u00e4gu", + "Unamused face": "Morn n\u00e4gu", + "Face with cold sweat": "N\u00e4gu k\u00fclma higiga", + "Pensive face": "M\u00f5tlik n\u00e4gu", + "Confused face": "Segaduses n\u00e4gu", + "Confounded face": "Segas n\u00e4gu", + "Kissing face": "Suudlevad n\u00e4gu", + "Face throwing a kiss": "N\u00e4gu viskamine suudlus", + "Kissing face with smiling eyes": "Suudlevad n\u00e4gu naeratab silmad", + "Kissing face with closed eyes": "Suudlevad n\u00e4gu, silmad kinni", + "Face with stuck out tongue": "N\u00e4gu ummikus v\u00e4lja keele", + "Face with stuck out tongue and winking eye": "N\u00e4gu ummikus v\u00e4lja keele ja silma pilgutav silma", + "Face with stuck out tongue and tightly-closed eyes": "N\u00e4gu ummikus v\u00e4lja keele ja silmad tihedalt suletuna", + "Disappointed face": "Pettunud n\u00e4gu", + "Worried face": "Mures n\u00e4gu", + "Angry face": "Vihane n\u00e4gu", + "Pouting face": "Tursik n\u00e4gu", + "Crying face": "Nutt n\u00e4gu", + "Persevering face": "Püsiv n\u00e4gu", + "Face with look of triumph": "N\u00e4gu ilme triumf", + "Disappointed but relieved face": "Pettunud kuid vabastati n\u00e4gu", + "Frowning face with open mouth": "Kulmukortsutav n\u00e4gu avatud suuga", + "Anguished face": "Ahastavad n\u00e4gu", + "Fearful face": "Hirmunult n\u00e4gu", + "Weary face": "Grimasse", + "Sleepy face": "Unine n\u00e4gu", + "Tired face": "V\u00e4sinud n\u00e4gu", + "Grimacing face": "Grimassitavaks n\u00e4gu", + "Loudly crying face": "Valjusti nutma n\u00e4gu", + "Face with open mouth": "N\u00e4gu avatud suuga", + "Hushed face": "Raskel n\u00e4gu", + "Face with open mouth and cold sweat": "N\u00e4gu avatud suu ja k\u00fclm higi", + "Face screaming in fear": "N\u00e4gu karjuvad hirm", + "Astonished face": "Lummatud n\u00e4gu", + "Flushed face": "Punetav n\u00e4gu", + "Sleeping face": "Uinuv n\u00e4gu", + "Dizzy face": "Uimane n\u00fcgu", + "Face without mouth": "N\u00e4gu ilma suu", + "Face with medical mask": "N\u00e4gu meditsiinilise mask", + + // Line breaker + "Break": "Murdma", + + // Math + "Subscript": "Allindeks", + "Superscript": "\u00dclaindeks", + + // Full screen + "Fullscreen": "T\u00e4isekraanil", + + // Horizontal line + "Insert Horizontal Line": "Sisesta horisontaalne joon", + + // Clear formatting + "Clear Formatting": "Eemalda formaatimine", + + // Undo, redo + "Undo": "V\u00f5ta tagasi", + "Redo": "Tee uuesti", + + // Select all + "Select All": "Vali k\u00f5ik", + + // Code view + "Code View": "Koodi vaadata", + + // Quote + "Quote": "Tsitaat", + "Increase": "Suurendama", + "Decrease": "V\u00e4henda", + + // Quick Insert + "Quick Insert": "Kiire sisestada", + + // Spcial Characters + "Special Characters": "Erimärgid", + "Latin": "Latin", + "Greek": "Kreeka keel", + "Cyrillic": "Kirillitsa", + "Punctuation": "Kirjavahemärgid", + "Currency": "Valuuta", + "Arrows": "Nooled", + "Math": "Matemaatika", + "Misc": "Misc", + + // Print. + "Print": "Printige", + + // Spell Checker. + "Spell Checker": "Õigekirja kontrollija", + + // Help + "Help": "Abi", + "Shortcuts": "Otseteed", + "Inline Editor": "Sisemine redaktor", + "Show the editor": "Näita redaktorit", + "Common actions": "Ühised meetmed", + "Copy": "Koopia", + "Cut": "Lõigake", + "Paste": "Kleepige", + "Basic Formatting": "Põhiline vormindamine", + "Increase quote level": "Suurendada tsiteerimise taset", + "Decrease quote level": "Langetada tsiteerimise tase", + "Image / Video": "Pilt / video", + "Resize larger": "Suuruse muutmine suurem", + "Resize smaller": "Väiksema suuruse muutmine", + "Table": "Laud", + "Select table cell": "Vali tabeli lahtrisse", + "Extend selection one cell": "Laiendage valikut üks lahtrisse", + "Extend selection one row": "Laiendage valikut ühe reana", + "Navigation": "Navigeerimine", + "Focus popup / toolbar": "Fookuse hüpikakna / tööriistariba", + "Return focus to previous position": "Tagasi pöörata tähelepanu eelmisele positsioonile", + + // Embed.ly + "Embed URL": "Embed url", + "Paste in a URL to embed": "Kleepige URL-i sisestamiseks", + + // Word Paste. + "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Kleepitud sisu pärineb Microsoft Wordi dokumendist. kas soovite vormi säilitada või puhastada?", + "Keep": "Pidage seda", + "Clean": "Puhas", + "Word Paste Detected": "Avastatud sõna pasta" + }, + direction: "ltr" +}; + +})); diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/fa.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/fa.js new file mode 100644 index 0000000..d415e44 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/fa.js @@ -0,0 +1,318 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + // require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + return factory(jQuery); + }; + } else { + // Browser globals + factory(window.jQuery); + } +}(function ($) { +/** + * Persian + */ + +$.FE.LANGUAGE['fa'] = { + translation: { + // Place holder + "Type something": "\u0686\u06cc\u0632\u06cc \u0628\u0646\u0648\u06cc\u0633\u06cc\u062f", + + // Basic formatting + "Bold": "\u0636\u062e\u06cc\u0645", + "Italic": "\u062e\u0637 \u06a9\u062c", + "Underline": "\u062e\u0637 \u0632\u06cc\u0631", + "Strikethrough": "\u062e\u0637 \u062e\u0648\u0631\u062f\u0647", + + // Main buttons + "Insert": "\u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646", + "Delete": "\u062d\u0630\u0641 \u06a9\u0631\u062f\u0646", + "Cancel": "\u0644\u063a\u0648", + "OK": "\u0628\u0627\u0634\u0647", + "Back": "\u0628\u0647 \u0639\u0642\u0628", + "Remove": "\u0628\u0631\u062f\u0627\u0634\u062a\u0646", + "More": "\u0628\u06cc\u0634\u062a\u0631", + "Update": "\u0628\u0647 \u0631\u0648\u0632 \u0631\u0633\u0627\u0646\u06cc", + "Style": "\u0633\u0628\u06a9", + + // Font + "Font Family": "\u0642\u0644\u0645", + "Font Size": "\u0627\u0646\u062f\u0627\u0632\u0647 \u0642\u0644\u0645", + + // Colors + "Colors": "\u0631\u0646\u06af", + "Background": "\u0632\u0645\u06cc\u0646\u0647 \u0645\u062a\u0646", + "Text": "\u0645\u062a\u0646", + "HEX Color": "شصت رنگ", + + // Paragraphs + "Paragraph Format": "\u0642\u0627\u0644\u0628", + "Normal": "\u0637\u0628\u06cc\u0639\u06cc - Normal", + "Code": "\u062f\u0633\u062a\u0648\u0631\u0627\u0644\u0639\u0645\u0644\u0647\u0627 - Code", + "Heading 1": "\u0633\u0631\u200c\u0635\u0641\u062d\u0647 1", + "Heading 2": "\u0633\u0631\u200c\u0635\u0641\u062d\u0647 2", + "Heading 3": "\u0633\u0631\u200c\u0635\u0641\u062d\u0647 3", + "Heading 4": "\u0633\u0631\u200c\u0635\u0641\u062d\u0647 4", + + // Style + "Paragraph Style": "\u067e\u0627\u0631\u0627\u06af\u0631\u0627\u0641 \u0633\u0628\u06a9", + "Inline Style": "\u062e\u0637\u06cc \u0633\u0628\u06a9", + + // Alignment + "Align": "\u0631\u062f\u06cc\u0641 \u0628\u0646\u062f\u06cc \u0646\u0648\u0634\u062a\u0647", + "Align Left": "\u0686\u067e \u0686\u06cc\u0646", + "Align Center": "\u0648\u0633\u0637 \u0686\u06cc\u0646", + "Align Right": "\u0631\u0627\u0633\u062a \u0686\u06cc\u0646", + "Align Justify": "\u0645\u0633\u0627\u0648\u06cc \u0627\u0632 \u0637\u0631\u0641\u06cc\u0646", + "None": "\u0647\u06cc\u0686", + + // Lists + "Ordered List": "\u0644\u06cc\u0633\u062a \u0634\u0645\u0627\u0631\u0647 \u0627\u06cc", + "Unordered List": "\u0644\u06cc\u0633\u062a \u062f\u0627\u06cc\u0631\u0647 \u0627\u06cc", + + // Indent + "Decrease Indent": "\u06a9\u0627\u0647\u0634 \u062a\u0648 \u0631\u0641\u062a\u06af\u06cc", + "Increase Indent": "\u0627\u0641\u0632\u0627\u06cc\u0634 \u062a\u0648 \u0631\u0641\u062a\u06af\u06cc", + + // Links + "Insert Link": "\u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 \u0644\u06cc\u0646\u06a9", + "Open in new tab": "\u0628\u0627\u0632 \u06a9\u0631\u062f\u0646 \u062f\u0631 \u0628\u0631\u06af\u0647 \u062c\u062f\u06cc\u062f", + "Open Link": "\u0644\u06cc\u0646\u06a9 \u0647\u0627\u06cc \u0628\u0627\u0632", + "Edit Link": "\u0644\u06cc\u0646\u06a9 \u0648\u06cc\u0631\u0627\u06cc\u0634", + "Unlink": "\u062d\u0630\u0641 \u0644\u06cc\u0646\u06a9", + "Choose Link": "\u0644\u06cc\u0646\u06a9 \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f", + + // Images + "Insert Image": "\u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 \u062a\u0635\u0648\u06cc\u0631", + "Upload Image": "\u0622\u067e\u0644\u0648\u062f \u062a\u0635\u0648\u06cc\u0631", + "By URL": "URL \u062a\u0648\u0633\u0637", + "Browse": "\u0641\u0647\u0631\u0633\u062a", + "Drop image": "\u062a\u0635\u0648\u06cc\u0631 \u0631\u0627 \u0627\u06cc\u0646\u062c\u0627 \u0628\u06cc\u0646\u062f\u0627\u0632\u06cc\u062f", + "or click": "\u06cc\u0627 \u06a9\u0644\u06cc\u06a9 \u06a9\u0646\u06cc\u062f", + "Manage Images": "\u0645\u062f\u06cc\u0631\u06cc\u062a \u062a\u0635\u0627\u0648\u06cc\u0631", + "Loading": "\u0628\u0627\u0631\u06af\u06cc\u0631\u06cc", + "Deleting": "\u062d\u0630\u0641", + "Tags": "\u0628\u0631\u0686\u0633\u0628 \u0647\u0627", + "Are you sure? Image will be deleted.": ".\u0622\u06cc\u0627 \u0645\u0637\u0645\u0626\u0646 \u0647\u0633\u062a\u06cc\u062f\u061f \u062a\u0635\u0648\u06cc\u0631 \u062d\u0630\u0641 \u062e\u0648\u0627\u0647\u062f \u0634\u062f", + "Replace": "\u062c\u0627\u06cc\u06af\u0632\u06cc\u0646 \u06a9\u0631\u062f\u0646", + "Uploading": "\u0622\u067e\u0644\u0648\u062f", + "Loading image": "\u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc \u062a\u0635\u0648\u06cc\u0631", + "Display": "\u0646\u0634\u0627\u0646 \u062f\u0627\u062f\u0646", + "Inline": "\u062e\u0637\u06cc", + "Break Text": "\u0634\u06a9\u0633\u062a\u0646 \u0627\u0633\u062a\u0631\u0627\u062d\u062a", + "Alternate Text": "\u0645\u062a\u0646 \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646", + "Change Size": "\u062a\u063a\u06cc\u06cc\u0631 \u0627\u0646\u062f\u0627\u0632\u0647", + "Width": "\u0639\u0631\u0636", + "Height": "\u0627\u0631\u062a\u0641\u0627\u0639", + "Something went wrong. Please try again.": "\u0686\u06cc\u0632\u06cc \u0631\u0627 \u0627\u0634\u062a\u0628\u0627\u0647 \u0631\u0641\u062a\u002e \u0644\u0637\u0641\u0627 \u062f\u0648\u0628\u0627\u0631\u0647 \u062a\u0644\u0627\u0634 \u06a9\u0646\u06cc\u062f\u002e", + "Image Caption": "عنوان تصویر", + "Advanced Edit": "ویرایش پیشرفته", + + // Video + "Insert Video": "\u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 \u0641\u0627\u06cc\u0644 \u062a\u0635\u0648\u06cc\u0631\u06cc", + "Embedded Code": "\u06a9\u062f \u062c\u0627\u0633\u0627\u0632\u06cc \u0634\u062f\u0647", + "Paste in a video URL": "در URL ویدیو وارد کنید", + "Drop video": "رها کردن ویدیو", + "Your browser does not support HTML5 video.": "مرورگر شما ویدیو HTML5 را پشتیبانی نمی کند.", + "Upload Video": "آپلود ویدیو", + + // Tables + "Insert Table": "\u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 \u062c\u062f\u0648\u0644", + "Table Header": "\u0647\u062f\u0631 \u062c\u062f\u0648\u0644", + "Remove Table": "\u062d\u0630\u0641 \u062c\u062f\u0648\u0644", + "Table Style": "\u0633\u0628\u06a9 \u062c\u062f\u0648\u0644", + "Horizontal Align": "\u062a\u0646\u0638\u06cc\u0645 \u0627\u0641\u0642\u06cc", + "Row": "\u0633\u0637\u0631", + "Insert row above": "\u062f\u0631\u062c \u0631\u062f\u06cc\u0641 \u062f\u0631 \u0628\u0627\u0644\u0627", + "Insert row below": "\u0633\u0637\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f", + "Delete row": "\u062d\u0630\u0641 \u0633\u0637\u0631", + "Column": "\u0633\u062a\u0648\u0646", + "Insert column before": "\u062f\u0631\u062c \u0633\u062a\u0648\u0646 \u0642\u0628\u0644", + "Insert column after": "\u062f\u0631\u062c \u0633\u062a\u0648\u0646 \u0628\u0639\u062f", + "Delete column": "\u062d\u0630\u0641 \u0633\u062a\u0648\u0646", + "Cell": "\u0633\u0644\u0648\u0644", + "Merge cells": "\u0627\u062f\u063a\u0627\u0645 \u0633\u0644\u0648\u0644\u200c\u0647\u0627", + "Horizontal split": "\u062a\u0642\u0633\u06cc\u0645 \u0627\u0641\u0642\u06cc", + "Vertical split": "\u062a\u0642\u0633\u06cc\u0645 \u0639\u0645\u0648\u062f\u06cc", + "Cell Background": "\u067e\u0633 \u0632\u0645\u06cc\u0646\u0647 \u0647\u0645\u0631\u0627\u0647", + "Vertical Align": "\u0631\u062f\u06cc\u0641 \u0639\u0645\u0648\u062f\u06cc", + "Top": "\u0628\u0627\u0644\u0627", + "Middle": "\u0645\u062a\u0648\u0633\u0637", + "Bottom": "\u067e\u0627\u06cc\u06cc\u0646", + "Align Top": "\u062a\u0631\u0627\u0632 \u0628\u0627\u0644\u0627\u06cc", + "Align Middle": "\u062a\u0631\u0627\u0632 \u0648\u0633\u0637", + "Align Bottom": "\u062a\u0631\u0627\u0632 \u067e\u0627\u06cc\u06cc\u0646", + "Cell Style": "\u0633\u0628\u06a9 \u0647\u0627\u06cc \u0647\u0645\u0631\u0627\u0647", + + // Files + "Upload File": "\u0622\u067e\u0644\u0648\u062f \u0641\u0627\u06cc\u0644", + "Drop file": "\u0627\u0641\u062a \u0641\u0627\u06cc\u0644", + + // Emoticons + "Emoticons": "\u0634\u06a9\u0644\u06a9 \u0647\u0627", + "Grinning face": "\u0686\u0647\u0631\u0647 \u067e\u0648\u0632\u062e\u0646\u062f", + "Grinning face with smiling eyes": "\u0686\u0647\u0631\u0647 \u067e\u0648\u0632\u062e\u0646\u062f \u0628\u0627 \u0686\u0634\u0645\u0627\u0646 \u062e\u0646\u062f\u0627\u0646", + "Face with tears of joy": "\u0686\u0647\u0631\u0647 \u0628\u0627 \u0627\u0634\u06a9 \u0634\u0627\u062f\u06cc", + "Smiling face with open mouth": "\u0686\u0647\u0631\u0647 \u062e\u0646\u062f\u0627\u0646 \u0628\u0627 \u062f\u0647\u0627\u0646 \u0628\u0627\u0632", + "Smiling face with open mouth and smiling eyes": "\u0686\u0647\u0631\u0647 \u062e\u0646\u062f\u0627\u0646 \u0628\u0627 \u062f\u0647\u0627\u0646 \u0628\u0627\u0632 \u0648 \u062e\u0646\u062f\u0627\u0646 \u0686\u0634\u0645", + "Smiling face with open mouth and cold sweat": "\u0686\u0647\u0631\u0647 \u062e\u0646\u062f\u0627\u0646 \u0628\u0627 \u062f\u0647\u0627\u0646 \u0628\u0627\u0632 \u0648 \u0639\u0631\u0642 \u0633\u0631\u062f", + "Smiling face with open mouth and tightly-closed eyes": "\u0686\u0647\u0631\u0647 \u062e\u0646\u062f\u0627\u0646 \u0628\u0627 \u062f\u0647\u0627\u0646 \u0628\u0627\u0632 \u0648 \u0686\u0634\u0645 \u062f\u0631\u0628\u062f\u0627\u0631", + "Smiling face with halo": "\u0686\u0647\u0631\u0647 \u062e\u0646\u062f\u0627\u0646 \u0628\u0627 \u0647\u0627\u0644\u0647", + "Smiling face with horns": "\u0686\u0647\u0631\u0647 \u062e\u0646\u062f\u0627\u0646 \u0628\u0627 \u0634\u0627\u062e", + "Winking face": "\u062d\u0631\u06a9\u062a \u067e\u0630\u06cc\u0631\u06cc", + "Smiling face with smiling eyes": "\u0686\u0647\u0631\u0647 \u062e\u0646\u062f\u0627\u0646 \u0628\u0627 \u0686\u0634\u0645 \u0644\u0628\u062e\u0646\u062f", + "Face savoring delicious food": "\u0686\u0647\u0631\u0647 \u0644\u0630\u06cc\u0630 \u063a\u0630\u0627\u06cc \u062e\u0648\u0634\u0645\u0632\u0647", + "Relieved face": "\u0686\u0647\u0631\u0647 \u0631\u0647\u0627", + "Smiling face with heart-shaped eyes": "\u0686\u0647\u0631\u0647 \u062e\u0646\u062f\u0627\u0646 \u0628\u0627 \u0686\u0634\u0645 \u0628\u0647 \u0634\u06a9\u0644 \u0642\u0644\u0628", + "Smiling face with sunglasses": "\u0686\u0647\u0631\u0647 \u062e\u0646\u062f\u0627\u0646 \u0628\u0627 \u0639\u06cc\u0646\u06a9 \u0622\u0641\u062a\u0627\u0628\u06cc", + "Smirking face": "\u067e\u0648\u0632\u062e\u0646\u062f \u0686\u0647\u0631\u0647", + "Neutral face": "\u0686\u0647\u0631\u0647 \u0647\u0627\u06cc \u062e\u0646\u062b\u06cc", + "Expressionless face": "\u0686\u0647\u0631\u0647 \u0646\u0627\u06af\u0648\u06cc\u0627", + "Unamused face": "\u0686\u0647\u0631\u0647 \u062e\u0648\u0634\u062d\u0627\u0644 \u0646\u06cc\u0633\u062a", + "Face with cold sweat": "\u0686\u0647\u0631\u0647 \u0628\u0627 \u0639\u0631\u0642 \u0633\u0631\u062f", + "Pensive face": "\u0686\u0647\u0631\u0647 \u0627\u0641\u0633\u0631\u062f\u0647", + "Confused face": "\u0686\u0647\u0631\u0647 \u0627\u0634\u062a\u0628\u0627\u0647", + "Confounded face": "\u0686\u0647\u0631\u0647 \u0633\u0631 \u062f\u0631 \u06af\u0645", + "Kissing face": "\u0628\u0648\u0633\u06cc\u062f\u0646 \u0635\u0648\u0631\u062a", + "Face throwing a kiss": "\u0686\u0647\u0631\u0647 \u067e\u0631\u062a\u0627\u0628 \u06cc\u06a9 \u0628\u0648\u0633\u0647", + "Kissing face with smiling eyes": "\u0628\u0648\u0633\u06cc\u062f\u0646 \u0686\u0647\u0631\u0647 \u0628\u0627 \u0686\u0634\u0645 \u0644\u0628\u062e\u0646\u062f", + "Kissing face with closed eyes": "\u0628\u0648\u0633\u06cc\u062f\u0646 \u0635\u0648\u0631\u062a \u0628\u0627 \u0686\u0634\u0645\u0627\u0646 \u0628\u0633\u062a\u0647", + "Face with stuck out tongue": "\u0686\u0647\u0631\u0647 \u0628\u0627 \u06af\u06cc\u0631 \u06a9\u0631\u062f\u0646 \u0632\u0628\u0627\u0646", + "Face with stuck out tongue and winking eye": "\u0686\u0647\u0631\u0647 \u0628\u0627 \u0632\u0628\u0627\u0646 \u06af\u06cc\u0631 \u06a9\u0631\u062f\u0646 \u0648 \u062d\u0631\u06a9\u062a \u0686\u0634\u0645", + "Face with stuck out tongue and tightly-closed eyes": "\u0635\u0648\u0631\u062a \u0628\u0627 \u0632\u0628\u0627\u0646 \u06af\u06cc\u0631 \u06a9\u0631\u062f\u0646 \u0648 \u0686\u0634\u0645 \u0631\u0627 \u0645\u062d\u06a9\u0645 \u0628\u0633\u062a\u0647", + "Disappointed face": "\u0686\u0647\u0631\u0647 \u0646\u0627 \u0627\u0645\u06cc\u062f", + "Worried face": "\u0686\u0647\u0631\u0647 \u0646\u06af\u0631\u0627\u0646", + "Angry face": "\u0686\u0647\u0631\u0647 \u0639\u0635\u0628\u0627\u0646\u06cc", + "Pouting face": "\u0628\u063a \u0686\u0647\u0631\u0647", + "Crying face": "\u06af\u0631\u06cc\u0647 \u0686\u0647\u0631\u0647", + "Persevering face": "\u067e\u0627\u06cc\u062f\u0627\u0631\u06cc \u0686\u0647\u0631\u0647", + "Face with look of triumph": "\u0686\u0647\u0631\u0647 \u0628\u0627 \u0646\u06af\u0627\u0647\u06cc \u0627\u0632 \u067e\u06cc\u0631\u0648\u0632\u06cc", + "Disappointed but relieved face": "\u0646\u0627 \u0627\u0645\u06cc\u062f \u0627\u0645\u0627 \u0622\u0633\u0648\u062f\u0647 \u0686\u0647\u0631\u0647", + "Frowning face with open mouth": "\u0627\u062e\u0645 \u0635\u0648\u0631\u062a \u0628\u0627 \u062f\u0647\u0627\u0646 \u0628\u0627\u0632", + "Anguished face": "\u0686\u0647\u0631\u0647 \u0646\u06af\u0631\u0627\u0646", + "Fearful face": "\u0686\u0647\u0631\u0647 \u062a\u0631\u0633", + "Weary face": "\u0686\u0647\u0631\u0647 \u062e\u0633\u062a\u0647", + "Sleepy face": "\u0686\u0647\u0631\u0647 \u062e\u0648\u0627\u0628 \u0622\u0644\u0648\u062f", + "Tired face": "\u0686\u0647\u0631\u0647 \u062e\u0633\u062a\u0647", + "Grimacing face": "\u0627\u0634 \u0686\u0647\u0631\u0647", + "Loudly crying face": "\u0646\u062f\u0627\u06cc\u06cc \u0631\u0633\u0627 \u06af\u0631\u06cc\u0647 \u0686\u0647\u0631\u0647", + "Face with open mouth": "\u0686\u0647\u0631\u0647 \u0628\u0627 \u062f\u0647\u0627\u0646 \u0628\u0627\u0632", + "Hushed face": "\u0686\u0647\u0631\u0647 \u0633\u06a9\u0648\u062a", + "Face with open mouth and cold sweat": "\u0686\u0647\u0631\u0647 \u0628\u0627 \u062f\u0647\u0627\u0646 \u0628\u0627\u0632 \u0648 \u0639\u0631\u0642 \u0633\u0631\u062f", + "Face screaming in fear": "\u0686\u0647\u0631\u0647 \u062c\u06cc\u063a \u062f\u0631 \u062a\u0631\u0633", + "Astonished face": "\u0686\u0647\u0631\u0647 \u0634\u06af\u0641\u062a \u0632\u062f\u0647", + "Flushed face": "\u0686\u0647\u0631\u0647 \u0628\u0631\u0627\u0641\u0631\u0648\u062e\u062a\u0647", + "Sleeping face": "\u062e\u0648\u0627\u0628 \u0686\u0647\u0631\u0647", + "Dizzy face": "\u0686\u0647\u0631\u0647 \u062f\u06cc\u0632\u06cc", + "Face without mouth": "\u0686\u0647\u0631\u0647 \u0628\u062f\u0648\u0646 \u062f\u0647\u0627\u0646", + "Face with medical mask": "\u0686\u0647\u0631\u0647 \u0628\u0627 \u0645\u0627\u0633\u06a9 \u0647\u0627\u06cc \u067e\u0632\u0634\u06a9\u06cc", + + // Line breaker + "Break": "\u0634\u06a9\u0633\u062a\u0646", + + // Math + "Subscript": "\u067e\u0627\u064a\u064a\u0646 \u0646\u0648\u064a\u0633", + "Superscript": "\u0628\u0627\u0644\u0627 \u0646\u06af\u0627\u0634\u062a", + + // Full screen + "Fullscreen": "\u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647", + + // Horizontal line + "Insert Horizontal Line": "\u0642\u0631\u0627\u0631 \u062f\u0627\u062f\u0646 \u0627\u0641\u0642\u06cc \u062e\u0637", + + // Clear formatting + "Clear Formatting": "\u062d\u0630\u0641 \u0642\u0627\u0644\u0628 \u0628\u0646\u062f\u06cc", + + // Undo, redo + "Undo": "\u0628\u0627\u0637\u0644 \u06a9\u0631\u062f\u0646", + "Redo": "\u0627\u0646\u062c\u0627\u0645 \u062f\u0648\u0628\u0627\u0631\u0647", + + // Select all + "Select All": "\u0627\u0646\u062a\u062e\u0627\u0628 \u0647\u0645\u0647", + + // Code view + "Code View": "\u0645\u0634\u0627\u0647\u062f\u0647 \u06a9\u062f", + + // Quote + "Quote": "\u0646\u0642\u0644 \u0642\u0648\u0644", + "Increase": "\u0627\u0641\u0632\u0627\u06cc\u0634 \u062f\u0627\u062f\u0646", + "Decrease": "\u0646\u0632\u0648\u0644 \u06a9\u0631\u062f\u0646", + + // Quick Insert + "Quick Insert": "\u062f\u0631\u062c \u0633\u0631\u06cc\u0639", + + // Spcial Characters + "Special Characters": "کاراکترهای خاص", + "Latin": "لاتین", + "Greek": "یونانی", + "Cyrillic": "سیریلیک", + "Punctuation": "نقطه گذاری", + "Currency": "واحد پول", + "Arrows": "فلش ها", + "Math": "ریاضی", + "Misc": "متاسفم", + + // Print. + "Print": "چاپ", + + // Spell Checker. + "Spell Checker": "بررسی کننده غلط املایی", + + // Help + "Help": "کمک", + "Shortcuts": "کلید های میانبر", + "Inline Editor": "ویرایشگر خطی", + "Show the editor": "ویرایشگر را نشان بده", + "Common actions": "اقدامات مشترک", + "Copy": "کپی کنید", + "Cut": "برش", + "Paste": "چسباندن", + "Basic Formatting": "قالب بندی اولیه", + "Increase quote level": "افزایش سطح نقل قول", + "Decrease quote level": "کاهش میزان نقل قول", + "Image / Video": "تصویر / ویدئو", + "Resize larger": "تغییر اندازه بزرگتر", + "Resize smaller": "تغییر اندازه کوچکتر", + "Table": "جدول", + "Select table cell": "سلول جدول را انتخاب کنید", + "Extend selection one cell": "انتخاب یک سلول را گسترش دهید", + "Extend selection one row": "یک ردیف را انتخاب کنید", + "Navigation": "جهت یابی", + "Focus popup / toolbar": "تمرکز پنجره / نوار ابزار", + "Return focus to previous position": "تمرکز بازگشت به موقعیت قبلی", + + // Embed.ly + "Embed URL": "آدرس جاسازی", + "Paste in a URL to embed": "یک URL برای جاسازی کپی کنید", + + // Word Paste. + "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "محتوای جا به جا از یک سند Word Microsoft می آید. آیا می خواهید فرمت را نگه دارید یا پاک کنید؟", + "Keep": "نگاه داشتن", + "Clean": "پاک کن", + "Word Paste Detected": "کلمه رب تشخیص داده شده است" + }, + direction: "rtl" +}; + +})); diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/fi.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/fi.js new file mode 100644 index 0000000..c42dddc --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/fi.js @@ -0,0 +1,318 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + // require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + return factory(jQuery); + }; + } else { + // Browser globals + factory(window.jQuery); + } +}(function ($) { +/** + * Finnish + */ + +$.FE.LANGUAGE['fi'] = { + translation: { + // Place holder + "Type something": "Kirjoita jotain", + + // Basic formatting + "Bold": "Lihavointi", + "Italic": "Kursivointi", + "Underline": "Alleviivaus", + "Strikethrough": "Yliviivaus", + + // Main buttons + "Insert": "Lis\u00e4\u00e4", + "Delete": "Poista", + "Cancel": "Peruuta", + "OK": "Ok", + "Back": "Takaisin", + "Remove": "Poista", + "More": "Lis\u00e4\u00e4", + "Update": "P\u00e4ivitys", + "Style": "Tyyli", + + // Font + "Font Family": "Fontti", + "Font Size": "Fonttikoko", + + // Colors + "Colors": "V\u00e4rit", + "Background": "Taustan", + "Text": "Tekstin", + "HEX Color": "Heksadesimaali", + + // Paragraphs + "Paragraph Format": "Muotoilut", + "Normal": "Normaali", + "Code": "Koodi", + "Heading 1": "Otsikko 1", + "Heading 2": "Otsikko 2", + "Heading 3": "Otsikko 3", + "Heading 4": "Otsikko 4", + + // Style + "Paragraph Style": "Kappaleen tyyli", + "Inline Style": "Linjassa tyyli", + + // Alignment + "Align": "Tasaa", + "Align Left": "Tasaa vasemmalle", + "Align Center": "Keskit\u00e4", + "Align Right": "Tasaa oikealle", + "Align Justify": "Tasaa", + "None": "Ei mit\u00e4\u00e4n", + + // Lists + "Ordered List": "J\u00e4rjestetty lista", + "Unordered List": "J\u00e4rjest\u00e4m\u00e4t\u00f6n lista", + + // Indent + "Decrease Indent": "Sisenn\u00e4", + "Increase Indent": "Loitonna", + + // Links + "Insert Link": "Lis\u00e4\u00e4 linkki", + "Open in new tab": "Avaa uudessa v\u00e4lilehdess\u00e4", + "Open Link": "Avaa linkki", + "Edit Link": "Muokkaa linkki", + "Unlink": "Poista linkki", + "Choose Link": "Valitse linkki", + + // Images + "Insert Image": "Lis\u00e4\u00e4 kuva", + "Upload Image": "Lataa kuva", + "By URL": "Mukaan URL", + "Browse": "Selailla", + "Drop image": "Pudota kuva", + "or click": "tai napsauta", + "Manage Images": "Hallitse kuvia", + "Loading": "Lastaus", + "Deleting": "Poistaminen", + "Tags": "Tagit", + "Are you sure? Image will be deleted.": "Oletko varma? Kuva poistetaan.", + "Replace": "Vaihda", + "Uploading": "Lataaminen", + "Loading image": "Lastaus kuva", + "Display": "N\u00e4ytt\u00e4", + "Inline": "Linjassa", + "Break Text": "Rikkoa teksti", + "Alternate Text": "Vaihtoehtoinen teksti", + "Change Size": "Muuta kokoa", + "Width": "Leveys", + "Height": "Korkeus", + "Something went wrong. Please try again.": "Jotain meni pieleen. Yrit\u00e4 uudelleen.", + "Image Caption": "Kuva-otsikko", + "Advanced Edit": "Edistynyt muokkaus", + + // Video + "Insert Video": "Lis\u00e4\u00e4 video", + "Embedded Code": "Upotettu koodi", + "Paste in a video URL": "Liitä video url", + "Drop video": "Pudota video", + "Your browser does not support HTML5 video.": "Selaimesi ei tue html5-videota.", + "Upload Video": "Lataa video", + + // Tables + "Insert Table": "Lis\u00e4\u00e4 taulukko", + "Table Header": "Taulukko yl\u00e4tunniste", + "Remove Table": "Poista taulukko", + "Table Style": "Taulukko tyyli", + "Horizontal Align": "Vaakasuora tasaa", + "Row": "Rivi", + "Insert row above": "Lis\u00e4\u00e4 rivi ennen", + "Insert row below": "Lis\u00e4\u00e4 rivi j\u00e4lkeen", + "Delete row": "Poista rivi", + "Column": "Sarake", + "Insert column before": "Lis\u00e4\u00e4 sarake ennen", + "Insert column after": "Lis\u00e4\u00e4 sarake j\u00e4lkeen", + "Delete column": "Poista sarake", + "Cell": "Solu", + "Merge cells": "Yhdist\u00e4 solut", + "Horizontal split": "Jaa vaakasuora", + "Vertical split": "Jaa pystysuora", + "Cell Background": "Solun tausta", + "Vertical Align": "Pystysuora tasaa", + "Top": "Alku", + "Middle": "Keskimm\u00e4inen", + "Bottom": "Pohja", + "Align Top": "Tasaa alkuun", + "Align Middle": "Tasaa keskimm\u00e4inen", + "Align Bottom": "Tasaa pohja", + "Cell Style": "Solun tyyli", + + // Files + "Upload File": "Lataa tiedosto", + "Drop file": "Pudota tiedosto", + + // Emoticons + "Emoticons": "Hymi\u00f6it\u00e4", + "Grinning face": "Virnisteli kasvot", + "Grinning face with smiling eyes": "Virnisteli kasvot hymyilev\u00e4t silm\u00e4t", + "Face with tears of joy": "Kasvot ilon kyyneleit\u00e4", + "Smiling face with open mouth": "Hymyilev\u00e4 kasvot suu auki", + "Smiling face with open mouth and smiling eyes": "Hymyilev\u00e4 kasvot suu auki ja hymyilee silm\u00e4t", + "Smiling face with open mouth and cold sweat": "Hymyilev\u00e4 kasvot suu auki ja kylm\u00e4 hiki", + "Smiling face with open mouth and tightly-closed eyes": "Hymyilev\u00e4 kasvot suu auki ja tiiviisti suljettu silm\u00e4t", + "Smiling face with halo": "Hymyilev\u00e4 kasvot Halo", + "Smiling face with horns": "Hymyilev\u00e4 kasvot sarvet", + "Winking face": "Silm\u00e4niskut kasvot", + "Smiling face with smiling eyes": "Hymyilev\u00e4 kasvot hymyilev\u00e4t silm\u00e4t", + "Face savoring delicious food": "Kasvot maistella herkullista ruokaa", + "Relieved face": "Vapautettu kasvot", + "Smiling face with heart-shaped eyes": "Hymyilev\u00e4t kasvot syd\u00e4men muotoinen silm\u00e4t", + "Smiling face with sunglasses": "Hymyilev\u00e4 kasvot aurinkolasit", + "Smirking face": "Hym\u00e4t\u00e4\u00e4 kasvot", + "Neutral face": "Neutraali kasvot", + "Expressionless face": "Ilmeet\u00f6n kasvot", + "Unamused face": "Ei huvittanut kasvo", + "Face with cold sweat": "Kasvot kylm\u00e4 hiki", + "Pensive face": "Mietteli\u00e4s kasvot", + "Confused face": "Sekava kasvot", + "Confounded face": "Sekoitti kasvot", + "Kissing face": "Suudella kasvot", + "Face throwing a kiss": "Kasvo heitt\u00e4\u00e4 suudelma", + "Kissing face with smiling eyes": "Suudella kasvot hymyilev\u00e4t silm\u00e4t", + "Kissing face with closed eyes": "Suudella kasvot silm\u00e4t ummessa", + "Face with stuck out tongue": "Kasvot ojensi kieli", + "Face with stuck out tongue and winking eye": "Kasvot on juuttunut pois kielen ja silm\u00e4niskuja silm\u00e4", + "Face with stuck out tongue and tightly-closed eyes": "Kasvot on juuttunut pois kielen ja tiiviisti suljettuna silm\u00e4t", + "Disappointed face": "Pettynyt kasvot", + "Worried face": "Huolissaan kasvot", + "Angry face": "Vihainen kasvot", + "Pouting face": "Pouting kasvot", + "Crying face": "Itku kasvot", + "Persevering face": "Pitk\u00e4j\u00e4nteinen kasvot", + "Face with look of triumph": "Kasvot ilme Triumph", + "Disappointed but relieved face": "Pettynyt mutta helpottunut kasvot", + "Frowning face with open mouth": "Frowning kasvot suu auki", + "Anguished face": "Tuskainen kasvot", + "Fearful face": "Pelokkuus kasvot", + "Weary face": "V\u00e4synyt kasvot", + "Sleepy face": "Unelias kasvot", + "Tired face": "V\u00e4synyt kasvot", + "Grimacing face": "Irvist\u00e4en kasvot", + "Loudly crying face": "\u00e4\u00e4nekk\u00e4\u00e4sti itku kasvot", + "Face with open mouth": "Kasvot suu auki", + "Hushed face": "Hiljentynyt kasvot", + "Face with open mouth and cold sweat": "Kasvot suu auki ja kylm\u00e4 hiki", + "Face screaming in fear": "Kasvot huutaa pelosta", + "Astonished face": "H\u00e4mm\u00e4stynyt kasvot", + "Flushed face": "Kasvojen punoitus", + "Sleeping face": "Nukkuva kasvot", + "Dizzy face": "Huimausta kasvot", + "Face without mouth": "Kasvot ilman suuhun", + "Face with medical mask": "Kasvot l\u00e4\u00e4ketieteen naamio", + + // Line breaker + "Break": "Rikkoa", + + // Math + "Subscript": "Alaindeksi", + "Superscript": "Yl\u00e4indeksi", + + // Full screen + "Fullscreen": "Koko n\u00e4ytt\u00f6", + + // Horizontal line + "Insert Horizontal Line": "Lis\u00e4\u00e4 vaakasuora viiva", + + // Clear formatting + "Clear Formatting": "Poista muotoilu", + + // Undo, redo + "Undo": "Peru", + "Redo": "Tee uudelleen", + + // Select all + "Select All": "Valitse kaikki", + + // Code view + "Code View": "Koodi n\u00e4kym\u00e4", + + // Quote + "Quote": "Lainaus", + "Increase": "Lis\u00e4t\u00e4", + "Decrease": "Pienenn\u00e4", + + // Quick Insert + "Quick Insert": "Nopea insertti", + + // Spcial Characters + "Special Characters": "Erikoismerkkejä", + "Latin": "Latina", + "Greek": "Kreikkalainen", + "Cyrillic": "Kyrillinen", + "Punctuation": "Välimerkit", + "Currency": "Valuutta", + "Arrows": "Nuolet", + "Math": "Matematiikka", + "Misc": "Sekalaista", + + // Print. + "Print": "Tulosta", + + // Spell Checker. + "Spell Checker": "Oikeinkirjoittaja", + + // Help + "Help": "Auta", + "Shortcuts": "Pikakuvakkeet", + "Inline Editor": "Inline-editori", + "Show the editor": "Näytä editori", + "Common actions": "Yhteisiä toimia", + "Copy": "Kopio", + "Cut": "Leikata", + "Paste": "Tahna", + "Basic Formatting": "Perusmuotoilu", + "Increase quote level": "Lisää lainaustasoa", + "Decrease quote level": "Laskea lainaustasoa", + "Image / Video": "Kuva / video", + "Resize larger": "Kokoa suurempi", + "Resize smaller": "Pienempi koko", + "Table": "Pöytä", + "Select table cell": "Valitse taulukon solu", + "Extend selection one cell": "Laajentaa valinta yhden solun", + "Extend selection one row": "Laajenna valinta yksi rivi", + "Navigation": "Suunnistus", + "Focus popup / toolbar": "Painopistevalo / työkalurivi", + "Return focus to previous position": "Palauta tarkennus edelliseen asentoon", + + // Embed.ly + "Embed URL": "Upottaa URL-osoite", + "Paste in a URL to embed": "Liitä upotettu URL-osoite", + + // Word Paste. + "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Liitetty sisältö tulee Microsoft Word -asiakirjasta. Haluatko säilyttää muodon tai puhdistaa sen?", + "Keep": "Pitää", + "Clean": "Puhdas", + "Word Paste Detected": "Sana-tahna havaittu" + }, + direction: "ltr" +}; + +})); diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/fr.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/fr.js new file mode 100644 index 0000000..11bc818 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/fr.js @@ -0,0 +1,318 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + // require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + return factory(jQuery); + }; + } else { + // Browser globals + factory(window.jQuery); + } +}(function ($) { +/** + * French + */ + +$.FE.LANGUAGE['fr'] = { + translation: { + // Place holder + "Type something": "Tapez quelque chose", + + // Basic formatting + "Bold": "Gras", + "Italic": "Italique", + "Underline": "Soulign\u00e9", + "Strikethrough": "Barr\u00e9", + + // Main buttons + "Insert": "Ins\u00e9rer", + "Delete": "Supprimer", + "Cancel": "Annuler", + "OK": "Ok", + "Back": "Retour", + "Remove": "Supprimer", + "More": "Plus", + "Update": "Actualiser", + "Style": "Style", + + // Font + "Font Family": "Polices de caract\u00e8res", + "Font Size": "Taille de police", + + // Colors + "Colors": "Couleurs", + "Background": "Arri\u00e8re-plan", + "Text": "Texte", + "HEX Color": "Couleur hexad\u00e9cimale", + + // Paragraphs + "Paragraph Format": "Format de paragraphe", + "Normal": "Normal", + "Code": "Code", + "Heading 1": "Titre 1", + "Heading 2": "Titre 2", + "Heading 3": "Titre 3", + "Heading 4": "Titre 4", + + // Style + "Paragraph Style": "Style de paragraphe", + "Inline Style": "Style en ligne", + + // Alignment + "Align": "Aligner", + "Align Left": "Aligner \u00e0 gauche", + "Align Center": "Aligner au centre", + "Align Right": "Aligner \u00e0 droite", + "Align Justify": "Justifier", + "None": "Aucun", + + // Lists + "Ordered List": "Liste ordonn\u00e9e", + "Unordered List": "Liste non ordonn\u00e9e", + + // Indent + "Decrease Indent": "Diminuer le retrait", + "Increase Indent": "Augmenter le retrait", + + // Links + "Insert Link": "Ins\u00e9rer un lien", + "Open in new tab": "Ouvrir dans un nouvel onglet", + "Open Link": "Ouvrir le lien", + "Edit Link": "Modifier le lien", + "Unlink": "Enlever le lien", + "Choose Link": "Choisir le lien", + + // Images + "Insert Image": "Ins\u00e9rer une image", + "Upload Image": "T\u00e9l\u00e9verser une image", + "By URL": "Par URL", + "Browse": "Parcourir", + "Drop image": "D\u00e9poser une image", + "or click": "ou cliquer", + "Manage Images": "G\u00e9rer les images", + "Loading": "Chargement", + "Deleting": "Suppression", + "Tags": "\u00c9tiquettes", + "Are you sure? Image will be deleted.": "Etes-vous certain? L'image sera supprim\u00e9e.", + "Replace": "Remplacer", + "Uploading": "En t\u00e9l\u00e9versement d'images", + "Loading image": "En chargement d'images", + "Display": "Afficher", + "Inline": "En ligne", + "Break Text": "Rompre le texte", + "Alternate Text": "Texte alternatif", + "Change Size": "Changer la dimension", + "Width": "Largeur", + "Height": "Hauteur", + "Something went wrong. Please try again.": "Quelque chose a mal tourn\u00e9. Veuillez r\u00e9essayer.", + "Image Caption": "L\u00e9gende de l'image", + "Advanced Edit": "\u00c9dition avanc\u00e9e", + + // Video + "Insert Video": "Ins\u00e9rer une vid\u00e9o", + "Embedded Code": "Code int\u00e9gr\u00e9", + "Paste in a video URL": "Coller l'URL d'une vid\u00e9o", + "Drop video": "D\u00e9poser une vid\u00e9o", + "Your browser does not support HTML5 video.": "Votre navigateur ne supporte pas les vid\u00e9os en format HTML5.", + "Upload Video": "T\u00e9l\u00e9verser une vid\u00e9o", + + // Tables + "Insert Table": "Ins\u00e9rer un tableau", + "Table Header": "Ent\u00eate de tableau", + "Remove Table": "Supprimer le tableau", + "Table Style": "Style de tableau", + "Horizontal Align": "Alignement horizontal", + "Row": "Ligne", + "Insert row above": "Ins\u00e9rer une ligne au-dessus", + "Insert row below": "Ins\u00e9rer une ligne en-dessous", + "Delete row": "Supprimer la ligne", + "Column": "Colonne", + "Insert column before": "Ins\u00e9rer une colonne avant", + "Insert column after": "Ins\u00e9rer une colonne apr\u00e8s", + "Delete column": "Supprimer la colonne", + "Cell": "Cellule", + "Merge cells": "Fusionner les cellules", + "Horizontal split": "Diviser horizontalement", + "Vertical split": "Diviser verticalement", + "Cell Background": "Arri\u00e8re-plan de la cellule", + "Vertical Align": "Alignement vertical", + "Top": "En haut", + "Middle": "Au centre", + "Bottom": "En bas", + "Align Top": "Aligner en haut", + "Align Middle": "Aligner au centre", + "Align Bottom": "Aligner en bas", + "Cell Style": "Style de cellule", + + // Files + "Upload File": "T\u00e9l\u00e9verser un fichier", + "Drop file": "D\u00e9poser un fichier", + + // Emoticons + "Emoticons": "\u00c9motic\u00f4nes", + "Grinning face": "Souriant visage", + "Grinning face with smiling eyes": "Souriant visage aux yeux souriants", + "Face with tears of joy": "Visage \u00e0 des larmes de joie", + "Smiling face with open mouth": "Visage souriant avec la bouche ouverte", + "Smiling face with open mouth and smiling eyes": "Visage souriant avec la bouche ouverte et les yeux en souriant", + "Smiling face with open mouth and cold sweat": "Visage souriant avec la bouche ouverte et la sueur froide", + "Smiling face with open mouth and tightly-closed eyes": "Visage souriant avec la bouche ouverte et les yeux herm\u00e9tiquement clos", + "Smiling face with halo": "Sourire visage avec halo", + "Smiling face with horns": "Visage souriant avec des cornes", + "Winking face": "Clin d'oeil visage", + "Smiling face with smiling eyes": "Sourire visage aux yeux souriants", + "Face savoring delicious food": "Visage savourant de d\u00e9licieux plats", + "Relieved face": "Soulag\u00e9 visage", + "Smiling face with heart-shaped eyes": "Visage souriant avec des yeux en forme de coeur", + "Smiling face with sunglasses": "Sourire visage avec des lunettes de soleil", + "Smirking face": "Souriant visage", + "Neutral face": "Visage neutre", + "Expressionless face": "Visage sans expression", + "Unamused face": "Visage pas amus\u00e9", + "Face with cold sweat": "Face \u00e0 la sueur froide", + "Pensive face": "pensif visage", + "Confused face": "Visage confus", + "Confounded face": "visage maudit", + "Kissing face": "Embrasser le visage", + "Face throwing a kiss": "Visage jetant un baiser", + "Kissing face with smiling eyes": "Embrasser le visage avec les yeux souriants", + "Kissing face with closed eyes": "Embrasser le visage avec les yeux ferm\u00e9s", + "Face with stuck out tongue": "Visage avec sortait de la langue", + "Face with stuck out tongue and winking eye": "Visage avec sortait de la langue et des yeux clignotante", + "Face with stuck out tongue and tightly-closed eyes": "Visage avec sortait de la langue et les yeux ferm\u00e9s herm\u00e9tiquement", + "Disappointed face": "Visage d\u00e9\u00e7u", + "Worried face": "Visage inquiet", + "Angry face": "Visage en col\u00e9re", + "Pouting face": "Faire la moue face", + "Crying face": "Pleurer visage", + "Persevering face": "Pers\u00e9v\u00e9rer face", + "Face with look of triumph": "Visage avec le regard de triomphe", + "Disappointed but relieved face": "D\u00e9\u00e7u, mais le visage soulag\u00e9", + "Frowning face with open mouth": "Les sourcils fronc\u00e9s visage avec la bouche ouverte", + "Anguished face": "Visage angoiss\u00e9", + "Fearful face": "Craignant visage", + "Weary face": "Visage las", + "Sleepy face": "Visage endormi", + "Tired face": "Visage fatigu\u00e9", + "Grimacing face": "Visage grima\u00e7ante", + "Loudly crying face": "Pleurer bruyamment visage", + "Face with open mouth": "Visage \u00e0 la bouche ouverte", + "Hushed face": "Visage feutr\u00e9e", + "Face with open mouth and cold sweat": "Visage \u00e0 la bouche ouverte et la sueur froide", + "Face screaming in fear": "Visage hurlant de peur", + "Astonished face": "Visage \u00e9tonn\u00e9", + "Flushed face": "Visage congestionn\u00e9", + "Sleeping face": "Visage au bois dormant", + "Dizzy face": "Visage vertige", + "Face without mouth": "Visage sans bouche", + "Face with medical mask": "Visage avec un masque m\u00e9dical", + + // Line breaker + "Break": "Rompre", + + // Math + "Subscript": "Indice", + "Superscript": "Exposant", + + // Full screen + "Fullscreen": "Plein \u00e9cran", + + // Horizontal line + "Insert Horizontal Line": "Ins\u00e9rer une ligne horizontale", + + // Clear formatting + "Clear Formatting": "Effacer le formatage", + + // Undo, redo + "Undo": "Annuler", + "Redo": "R\u00e9tablir", + + // Select all + "Select All": "Tout s\u00e9lectionner", + + // Code view + "Code View": "Mode HTML", + + // Quote + "Quote": "Citation", + "Increase": "Augmenter", + "Decrease": "Diminuer", + + // Quick Insert + "Quick Insert": "Insertion rapide", + + // Spcial Characters + "Special Characters": "Caract\u00e8res sp\u00e9ciaux", + "Latin": "Latin", + "Greek": "Grec", + "Cyrillic": "Cyrillique", + "Punctuation": "Ponctuation", + "Currency": "Devise", + "Arrows": "Fl\u00e8ches", + "Math": "Math", + "Misc": "Divers", + + // Print. + "Print": "Imprimer", + + // Spell Checker. + "Spell Checker": "Correcteur orthographique", + + // Help + "Help": "Aide", + "Shortcuts": "Raccourcis", + "Inline Editor": "\u00c9diteur en ligne", + "Show the editor": "Montrer l'\u00e9diteur", + "Common actions": "Actions communes", + "Copy": "Copier", + "Cut": "Couper", + "Paste": "Coller", + "Basic Formatting": "Formatage de base", + "Increase quote level": "Augmenter le niveau de citation", + "Decrease quote level": "Diminuer le niveau de citation", + "Image / Video": "Image / vid\u00e9o", + "Resize larger": "Redimensionner plus grand", + "Resize smaller": "Redimensionner plus petit", + "Table": "Table", + "Select table cell": "S\u00e9lectionner la cellule du tableau", + "Extend selection one cell": "\u00c9tendre la s\u00e9lection d'une cellule", + "Extend selection one row": "\u00c9tendre la s\u00e9lection d'une ligne", + "Navigation": "Navigation", + "Focus popup / toolbar": "Focus popup / toolbar", + "Return focus to previous position": "Retourner l'accent sur le poste pr\u00e9c\u00e9dent", + + // Embed.ly + "Embed URL": "URL int\u00e9gr\u00e9e", + "Paste in a URL to embed": "Coller une URL int\u00e9gr\u00e9e", + + // Word Paste. + "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Le contenu coll\u00e9 provient d'un document Microsoft Word. Voulez-vous conserver le format ou le nettoyer?", + "Keep": "Conserver", + "Clean": "Nettoyer", + "Word Paste Detected": "Copiage de mots d\u00e9tect\u00e9" + }, + direction: "ltr" +}; + +})); diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/he.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/he.js new file mode 100644 index 0000000..cb5a34e --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/he.js @@ -0,0 +1,318 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + // require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + return factory(jQuery); + }; + } else { + // Browser globals + factory(window.jQuery); + } +}(function ($) { +/** + * Hebrew + */ + +$.FE.LANGUAGE['he'] = { + translation: { + // Place holder + "Type something": "\u05d4\u05e7\u05dc\u05d3 \u05db\u05d0\u05df", + + // Basic formatting + "Bold": "\u05de\u05d5\u05d3\u05d2\u05e9", + "Italic": "\u05de\u05d5\u05d8\u05d4", + "Underline": "\u05e7\u05d5 \u05ea\u05d7\u05ea\u05d9", + "Strikethrough": "\u05e7\u05d5 \u05d0\u05de\u05e6\u05e2\u05d9", + + // Main buttons + "Insert": "\u05d4\u05d5\u05e1\u05e4\u05ea", + "Delete": "\u05de\u05d7\u05d9\u05e7\u05d4", + "Cancel": "\u05d1\u05d9\u05d8\u05d5\u05dc", + "OK": "\u05d1\u05e6\u05e2", + "Back": "\u05d1\u05d7\u05d6\u05e8\u05d4", + "Remove": "\u05d4\u05e1\u05e8", + "More": "\u05d9\u05d5\u05ea\u05e8", + "Update": "\u05e2\u05d3\u05db\u05d5\u05df", + "Style": "\u05e1\u05d2\u05e0\u05d5\u05df", + + // Font + "Font Family": "\u05d2\u05d5\u05e4\u05df", + "Font Size": "\u05d2\u05d5\u05d3\u05dc \u05d4\u05d2\u05d5\u05e4\u05df", + + // Colors + "Colors": "\u05e6\u05d1\u05e2\u05d9\u05dd", + "Background": "\u05e8\u05e7\u05e2", + "Text": "\u05d4\u05d8\u05e1\u05d8", + "HEX Color": "צבע הקס", + + // Paragraphs + "Paragraph Format": "\u05e4\u05d5\u05e8\u05de\u05d8", + "Normal": "\u05e8\u05d2\u05d9\u05dc", + "Code": "\u05e7\u05d5\u05d3", + "Heading 1": "1 \u05db\u05d5\u05ea\u05e8\u05ea", + "Heading 2": "2 \u05db\u05d5\u05ea\u05e8\u05ea", + "Heading 3": "3 \u05db\u05d5\u05ea\u05e8\u05ea", + "Heading 4": "4 \u05db\u05d5\u05ea\u05e8\u05ea", + + // Style + "Paragraph Style": "\u05e1\u05d2\u05e0\u05d5\u05df \u05e4\u05e1\u05e7\u05d4", + "Inline Style": "\u05e1\u05d2\u05e0\u05d5\u05df \u05de\u05d5\u05d1\u05e0\u05d4", + + // Alignment + "Align": "\u05d9\u05d9\u05e9\u05d5\u05e8", + "Align Left": "\u05d9\u05d9\u05e9\u05d5\u05e8 \u05dc\u05e9\u05de\u05d0\u05dc", + "Align Center": "\u05d9\u05d9\u05e9\u05d5\u05e8 \u05dc\u05de\u05e8\u05db\u05d6", + "Align Right": "\u05d9\u05d9\u05e9\u05d5\u05e8 \u05dc\u05d9\u05de\u05d9\u05df", + "Align Justify": "\u05d9\u05d9\u05e9\u05d5\u05e8 \u05de\u05dc\u05d0", + "None": "\u05d0\u05e3 \u05d0\u05d7\u05d3", + + // Lists + "Ordered List": "\u05d4\u05d5\u05e1\u05e4\u05ea \u05e8\u05e9\u05d9\u05de\u05d4 \u05de\u05de\u05d5\u05e1\u05e4\u05e8\u05ea", + "Unordered List": "\u05d4\u05d5\u05e1\u05e4\u05ea \u05e8\u05e9\u05d9\u05de\u05d4", + + // Indent + "Decrease Indent": "\u05d4\u05e7\u05d8\u05e0\u05ea \u05db\u05e0\u05d9\u05e1\u05d4", + "Increase Indent": "\u05d4\u05d2\u05d3\u05dc\u05ea \u05db\u05e0\u05d9\u05e1\u05d4", + + // Links + "Insert Link": "\u05d4\u05d5\u05e1\u05e4\u05ea \u05e7\u05d9\u05e9\u05d5\u05e8", + "Open in new tab": "\u05dc\u05e4\u05ea\u05d5\u05d7 \u05d1\u05d8\u05d0\u05d1 \u05d7\u05d3\u05e9", + "Open Link": "\u05e7\u05d9\u05e9\u05d5\u05e8 \u05e4\u05ea\u05d5\u05d7", + "Edit Link": "\u05e7\u05d9\u05e9\u05d5\u05e8 \u05e2\u05e8\u05d9\u05db\u05d4", + "Unlink": "\u05d4\u05e1\u05e8\u05ea \u05d4\u05e7\u05d9\u05e9\u05d5\u05e8", + "Choose Link": "\u05dc\u05d1\u05d7\u05d5\u05e8 \u05e7\u05d9\u05e9\u05d5\u05e8", + + // Images + "Insert Image": "\u05d4\u05d5\u05e1\u05e4\u05ea \u05ea\u05de\u05d5\u05e0\u05d4", + "Upload Image": "\u05ea\u05de\u05d5\u05e0\u05ea \u05d4\u05e2\u05dc\u05d0\u05d4", + "By URL": "URL \u05e2\u05dc \u05d9\u05d3\u05d9", + "Browse": "\u05dc\u05d2\u05dc\u05d5\u05e9", + "Drop image": "\u05e9\u05d7\u05e8\u05e8 \u05d0\u05ea \u05d4\u05ea\u05de\u05d5\u05e0\u05d4 \u05db\u05d0\u05df", + "or click": "\u05d0\u05d5 \u05dc\u05d7\u05e5", + "Manage Images": "\u05e0\u05d9\u05d4\u05d5\u05dc \u05d4\u05ea\u05de\u05d5\u05e0\u05d5\u05ea", + "Loading": "\u05d8\u05e2\u05d9\u05e0\u05d4", + "Deleting": "\u05de\u05d7\u05d9\u05e7\u05d4", + "Tags": "\u05ea\u05d2\u05d9\u05dd", + "Are you sure? Image will be deleted.": "\u05d4\u05d0\u05dd \u05d0\u05ea\u05d4 \u05d1\u05d8\u05d5\u05d7\u003f \u05d4\u05ea\u05de\u05d5\u05e0\u05d4 \u05ea\u05de\u05d7\u05e7\u002e", + "Replace": "\u05dc\u05d4\u05d7\u05dc\u05d9\u05e3", + "Uploading": "\u05d4\u05e2\u05dc\u05d0\u05d4", + "Loading image": "\u05ea\u05de\u05d5\u05e0\u05ea \u05d8\u05e2\u05d9\u05e0\u05d4", + "Display": "\u05ea\u05e6\u05d5\u05d2\u05d4", + "Inline": "\u05d1\u05e9\u05d5\u05e8\u05d4", + "Break Text": "\u05d8\u05e7\u05e1\u05d8 \u05d4\u05e4\u05e1\u05e7\u05d4", + "Alternate Text": "\u05d8\u05e7\u05e1\u05d8 \u05d7\u05dc\u05d5\u05e4\u05d9", + "Change Size": "\u05d2\u05d5\u05d3\u05dc \u05e9\u05d9\u05e0\u05d5\u05d9", + "Width": "\u05e8\u05d5\u05d7\u05d1", + "Height": "\u05d2\u05d5\u05d1\u05d4", + "Something went wrong. Please try again.": "\u05de\u05e9\u05d4\u05d5 \u05d4\u05e9\u05ea\u05d1\u05e9. \u05d1\u05d1\u05e7\u05e9\u05d4 \u05e0\u05e1\u05d4 \u05e9\u05d5\u05d1.", + "Image Caption": "כיתוב תמונה", + "Advanced Edit": "עריכה מתקדמת", + + // Video + "Insert Video": "\u05d4\u05d5\u05e1\u05e4\u05ea \u05d5\u05d9\u05d3\u05d9\u05d0\u05d5", + "Embedded Code": "\u05e7\u05d5\u05d3 \u05de\u05d5\u05d8\u05d1\u05e2", + "Paste in a video URL": "הדבק בכתובת אתר של סרטון", + "Drop video": "ירידה וידאו", + "Your browser does not support HTML5 video.": "הדפדפן שלך אינו תומך וידאו html5.", + "Upload Video": "להעלות וידאו", + + // Tables + "Insert Table": "\u05d4\u05db\u05e0\u05e1 \u05d8\u05d1\u05dc\u05d4", + "Table Header": "\u05db\u05d5\u05ea\u05e8\u05ea \u05d8\u05d1\u05dc\u05d4", + "Remove Table": "\u05d4\u05e1\u05e8 \u05e9\u05d5\u05dc\u05d7\u05df", + "Table Style": "\u05e1\u05d2\u05e0\u05d5\u05df \u05d8\u05d1\u05dc\u05d4", + "Horizontal Align": "\u05d0\u05d5\u05e4\u05e7\u05d9\u05ea \u05dc\u05d9\u05d9\u05e9\u05e8", + "Row": "\u05e9\u05d5\u05e8\u05d4", + "Insert row above": "\u05d4\u05d5\u05e1\u05e4\u05ea \u05e9\u05d5\u05e8\u05d4 \u05dc\u05e4\u05e0\u05d9", + "Insert row below": "\u05d4\u05d5\u05e1\u05e4\u05ea \u05e9\u05d5\u05e8\u05d4 \u05d0\u05d7\u05e8\u05d9", + "Delete row": "\u05de\u05d7\u05d9\u05e7\u05ea \u05e9\u05d5\u05e8\u05d4", + "Column": "\u05d8\u05d5\u05e8", + "Insert column before": "\u05d4\u05d5\u05e1\u05e4\u05ea \u05d8\u05d5\u05e8 \u05dc\u05e4\u05e0\u05d9", + "Insert column after": "\u05d4\u05d5\u05e1\u05e4\u05ea \u05d8\u05d5\u05e8 \u05d0\u05d7\u05e8\u05d9", + "Delete column": "\u05de\u05d7\u05d9\u05e7\u05ea \u05d8\u05d5\u05e8", + "Cell": "\u05ea\u05d0", + "Merge cells": "\u05de\u05d6\u05d2 \u05ea\u05d0\u05d9\u05dd", + "Horizontal split": "\u05e4\u05e6\u05dc \u05d0\u05d5\u05e4\u05e7\u05d9", + "Vertical split": "\u05e4\u05e6\u05dc \u05d0\u05e0\u05db\u05d9", + "Cell Background": "\u05e8\u05e7\u05e2 \u05ea\u05d0", + "Vertical Align": "\u05d9\u05d9\u05e9\u05d5\u05e8 \u05d0\u05e0\u05db\u05d9", + "Top": "\u05e2\u05b6\u05dc\u05b4\u05d9\u05d5\u05b9\u05df", + "Middle": "\u05ea\u05b4\u05d9\u05db\u05d5\u05b9\u05e0\u05b4\u05d9", + "Bottom": "\u05ea\u05d7\u05ea\u05d5\u05df", + "Align Top": "\u05dc\u05d9\u05d9\u05e9\u05e8 \u05e2\u05b6\u05dc\u05b4\u05d9\u05d5\u05b9\u05df", + "Align Middle": "\u05dc\u05d9\u05d9\u05e9\u05e8 \u05ea\u05b4\u05d9\u05db\u05d5\u05b9\u05e0\u05b4\u05d9", + "Align Bottom": "\u05dc\u05d9\u05d9\u05e9\u05e8 \u05ea\u05d7\u05ea\u05d5\u05df", + "Cell Style": "\u05e1\u05d2\u05e0\u05d5\u05df \u05ea\u05d0", + + // Files + "Upload File": "\u05d4\u05e2\u05dc\u05d0\u05ea \u05e7\u05d5\u05d1\u05e5", + "Drop file": "\u05d6\u05e8\u05d5\u05e7 \u05e7\u05d5\u05d1\u05e5 \u05db\u05d0\u05df", + + // Emoticons + "Emoticons": "\u05e1\u05de\u05d9\u05d9\u05dc\u05d9\u05dd", + "Grinning face": "\u05d7\u05d9\u05d9\u05da \u05e4\u05e0\u05d9\u05dd", + "Grinning face with smiling eyes": "\u05d7\u05d9\u05d9\u05da \u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05e2\u05d9\u05e0\u05d9\u05d9\u05dd \u05de\u05d7\u05d9\u05d9\u05db\u05d5\u05ea", + "Face with tears of joy": "\u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05d3\u05de\u05e2\u05d5\u05ea \u05e9\u05dc \u05e9\u05de\u05d7\u05d4", + "Smiling face with open mouth": "\u05d7\u05d9\u05d5\u05da \u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05e4\u05d4 \u05e4\u05ea\u05d5\u05d7", + "Smiling face with open mouth and smiling eyes": "\u05d7\u05d9\u05d5\u05da \u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05e4\u05d4 \u05e4\u05ea\u05d5\u05d7 \u05d5\u05de\u05d7\u05d9\u05d9\u05da \u05e2\u05d9\u05e0\u05d9\u05d9\u05dd", + "Smiling face with open mouth and cold sweat": "\u05d7\u05d9\u05d5\u05da \u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05e4\u05d4 \u05e4\u05ea\u05d5\u05d7 \u05d5\u05d6\u05d9\u05e2\u05d4 \u05e7\u05e8\u05d4", + "Smiling face with open mouth and tightly-closed eyes": "\u05d7\u05d9\u05d5\u05da \u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05e4\u05d4 \u05e4\u05ea\u05d5\u05d7 \u05d5\u05e2\u05d9\u05e0\u05d9\u05d9\u05dd \u05d1\u05d7\u05d5\u05d6\u05e7\u05d4\u002d\u05e1\u05d2\u05d5\u05e8\u05d5\u05ea", + "Smiling face with halo": "\u05d7\u05d9\u05d5\u05da \u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05d4\u05d9\u05dc\u05d4", + "Smiling face with horns": "\u05d7\u05d9\u05d5\u05da \u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05e7\u05e8\u05e0\u05d5\u05ea", + "Winking face": "\u05e7\u05e8\u05d9\u05e6\u05d4 \u05e4\u05e0\u05d9\u05dd", + "Smiling face with smiling eyes": "\u05d7\u05d9\u05d5\u05da \u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05e2\u05d9\u05e0\u05d9\u05d9\u05dd \u05de\u05d7\u05d9\u05d9\u05db\u05d5\u05ea", + "Face savoring delicious food": "\u05e4\u05e0\u05d9\u05dd \u05de\u05ea\u05e2\u05e0\u05d2 \u05d0\u05d5\u05db\u05dc \u05d8\u05e2\u05d9\u05dd", + "Relieved face": "\u05e4\u05e0\u05d9\u05dd \u05e9\u05dc \u05d4\u05e7\u05dc\u05d4", + "Smiling face with heart-shaped eyes": "\u05d7\u05d9\u05d5\u05da \u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05e2\u05d9\u05e0\u05d9\u05d9\u05dd \u05d1\u05e6\u05d5\u05e8\u05ea \u05dc\u05d1", + "Smiling face with sunglasses": "\u05d7\u05d9\u05d5\u05da \u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05de\u05e9\u05e7\u05e4\u05d9 \u05e9\u05de\u05e9", + "Smirking face": "\u05d4\u05d9\u05d0 \u05d7\u05d9\u05d9\u05db\u05d4 \u05d7\u05d9\u05d5\u05da \u05e0\u05d1\u05d6\u05d4 \u05e4\u05e0\u05d9\u05dd", + "Neutral face": "\u05e4\u05e0\u05d9\u05dd \u05e0\u05d9\u05d8\u05e8\u05dc\u05d9", + "Expressionless face": "\u05d1\u05e4\u05e0\u05d9\u05dd \u05d7\u05ea\u05d5\u05dd", + "Unamused face": "\u05e4\u05e0\u05d9\u05dd \u05dc\u05d0 \u05de\u05e9\u05d5\u05e2\u05e9\u05e2\u05d9\u05dd", + "Face with cold sweat": "\u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05d6\u05d9\u05e2\u05d4 \u05e7\u05e8\u05d4", + "Pensive face": "\u05d1\u05e4\u05e0\u05d9\u05dd \u05de\u05d4\u05d5\u05e8\u05d4\u05e8", + "Confused face": "\u05e4\u05e0\u05d9\u05dd \u05de\u05d1\u05d5\u05dc\u05d1\u05dc\u05d9\u05dd", + "Confounded face": "\u05e4\u05e0\u05d9\u05dd \u05de\u05d1\u05d5\u05dc\u05d1\u05dc", + "Kissing face": "\u05e0\u05e9\u05d9\u05e7\u05d5\u05ea \u05e4\u05e0\u05d9\u05dd", + "Face throwing a kiss": "\u05e4\u05e0\u05d9\u05dd \u05dc\u05d6\u05e8\u05d5\u05e7 \u05e0\u05e9\u05d9\u05e7\u05d4", + "Kissing face with smiling eyes": "\u05e0\u05e9\u05d9\u05e7\u05d5\u05ea \u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05e2\u05d9\u05e0\u05d9\u05d9\u05dd \u05de\u05d7\u05d9\u05d9\u05db\u05d5\u05ea", + "Kissing face with closed eyes": "\u05e0\u05e9\u05d9\u05e7\u05d5\u05ea \u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05e2\u05d9\u05e0\u05d9\u05d9\u05dd \u05e1\u05d2\u05d5\u05e8\u05d5\u05ea", + "Face with stuck out tongue": "\u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05dc\u05e9\u05d5\u05df \u05d1\u05dc\u05d8\u05d5", + "Face with stuck out tongue and winking eye": "\u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05dc\u05e9\u05d5\u05df \u05ea\u05e7\u05d5\u05e2\u05d4 \u05d4\u05d7\u05d5\u05e6\u05d4 \u05d5\u05e2\u05d9\u05df \u05e7\u05d5\u05e8\u05e6\u05ea", + "Face with stuck out tongue and tightly-closed eyes": "\u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05dc\u05e9\u05d5\u05df \u05ea\u05e7\u05d5\u05e2\u05d4 \u05d4\u05d7\u05d5\u05e6\u05d4 \u05d5\u05e2\u05d9\u05e0\u05d9\u05d9\u05dd \u05d1\u05d7\u05d5\u05d6\u05e7\u05d4\u002d\u05e1\u05d2\u05d5\u05e8\u05d5\u05ea", + "Disappointed face": "\u05e4\u05e0\u05d9\u05dd \u05de\u05d0\u05d5\u05db\u05d6\u05d1\u05d9\u05dd", + "Worried face": "\u05e4\u05e0\u05d9\u05dd \u05de\u05d5\u05d3\u05d0\u05d2\u05d9\u05dd", + "Angry face": "\u05e4\u05e0\u05d9\u05dd \u05db\u05d5\u05e2\u05e1\u05d9\u05dd", + "Pouting face": "\u05de\u05e9\u05d5\u05e8\u05d1\u05d1 \u05e4\u05e0\u05d9\u05dd", + "Crying face": "\u05d1\u05db\u05d9 \u05e4\u05e0\u05d9\u05dd", + "Persevering face": "\u05d4\u05ea\u05de\u05d3\u05ea \u05e4\u05e0\u05d9\u05dd", + "Face with look of triumph": "\u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05de\u05d1\u05d8 \u05e9\u05dc \u05e0\u05e6\u05d7\u05d5\u05df", + "Disappointed but relieved face": "\u05de\u05d0\u05d5\u05db\u05d6\u05d1 \u05d0\u05d1\u05dc \u05d4\u05d5\u05e7\u05dc \u05e4\u05e0\u05d9\u05dd", + "Frowning face with open mouth": "\u05e7\u05de\u05d8 \u05d0\u05ea \u05de\u05e6\u05d7 \u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05e4\u05d4 \u05e4\u05ea\u05d5\u05d7", + "Anguished face": "\u05e4\u05e0\u05d9\u05dd \u05de\u05d9\u05d5\u05e1\u05e8\u05d9\u05dd", + "Fearful face": "\u05e4\u05e0\u05d9\u05dd \u05e9\u05d7\u05e9\u05e9\u05d5", + "Weary face": "\u05e4\u05e0\u05d9\u05dd \u05d5\u05d9\u05e8\u05d9", + "Sleepy face": "\u05e4\u05e0\u05d9\u05dd \u05e9\u05dc \u05e1\u05dc\u05d9\u05e4\u05d9", + "Tired face": "\u05e4\u05e0\u05d9\u05dd \u05e2\u05d9\u05d9\u05e4\u05d9\u05dd", + "Grimacing face": "\u05d4\u05d5\u05d0 \u05d4\u05e2\u05d5\u05d5\u05d4 \u05d0\u05ea \u05e4\u05e0\u05d9 \u05e4\u05e0\u05d9\u05dd", + "Loudly crying face": "\u05d1\u05e7\u05d5\u05dc \u05e8\u05dd \u05d1\u05d5\u05db\u05d4 \u05e4\u05e0\u05d9\u05dd", + "Face with open mouth": "\u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05e4\u05d4 \u05e4\u05ea\u05d5\u05d7", + "Hushed face": "\u05e4\u05e0\u05d9\u05dd \u05e9\u05d5\u05e7\u05d8\u05d9\u05dd", + "Face with open mouth and cold sweat": "\u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05e4\u05d4 \u05e4\u05ea\u05d5\u05d7 \u05d5\u05d6\u05d9\u05e2\u05d4 \u05e7\u05e8\u05d4\u0022", + "Face screaming in fear": "\u05e4\u05e0\u05d9\u05dd \u05e6\u05d5\u05e8\u05d7\u05d9\u05dd \u05d1\u05e4\u05d7\u05d3", + "Astonished face": "\u05e4\u05e0\u05d9\u05d5 \u05e0\u05d3\u05d4\u05de\u05d5\u05ea", + "Flushed face": "\u05e4\u05e0\u05d9\u05d5 \u05e1\u05de\u05d5\u05e7\u05d5\u05ea", + "Sleeping face": "\u05e9\u05d9\u05e0\u05d4 \u05e4\u05e0\u05d9\u05dd", + "Dizzy face": "\u05e4\u05e0\u05d9\u05dd \u05e9\u05dc \u05d3\u05d9\u05d6\u05d9", + "Face without mouth": "\u05e4\u05e0\u05d9\u05dd \u05dc\u05dc\u05d0 \u05e4\u05d4", + "Face with medical mask": "\u05e4\u05e0\u05d9\u05dd \u05e2\u05dd \u05de\u05e1\u05db\u05d4 \u05e8\u05e4\u05d5\u05d0\u05d9\u05ea", + + // Line breaker + "Break": "\u05d4\u05e4\u05e1\u05e7\u05d4", + + // Math + "Subscript": "\u05db\u05ea\u05d1 \u05ea\u05d7\u05ea\u05d9", + "Superscript": "\u05e2\u05d9\u05dc\u05d9", + + // Full screen + "Fullscreen": "\u05de\u05e1\u05da \u05de\u05dc\u05d0", + + // Horizontal line + "Insert Horizontal Line": "\u05d4\u05d5\u05e1\u05e4\u05ea \u05e7\u05d5 \u05d0\u05d5\u05e4\u05e7\u05d9", + + // Clear formatting + "Clear Formatting": "\u05dc\u05d4\u05e1\u05d9\u05e8 \u05e2\u05d9\u05e6\u05d5\u05d1", + + // Undo, redo + "Undo": "\u05d1\u05d9\u05d8\u05d5\u05dc", + "Redo": "\u05d1\u05e6\u05e2 \u05e9\u05d5\u05d1", + + // Select all + "Select All": "\u05d1\u05d7\u05e8 \u05d4\u05db\u05dc", + + // Code view + "Code View": "\u05ea\u05e6\u05d5\u05d2\u05ea \u05e7\u05d5\u05d3", + + // Quote + "Quote": "\u05e6\u05d9\u05d8\u05d5\u05d8", + "Increase": "\u05dc\u05d4\u05d2\u05d1\u05d9\u05e8", + "Decrease": "\u05d9\u05e8\u05d9\u05d3\u05d4", + + // Quick Insert + "Quick Insert": "\u05db\u05e0\u05e1 \u05de\u05d4\u05d9\u05e8", + + // Spcial Characters + "Special Characters": "תווים מיוחדים", + "Latin": "לָטִינִית", + "Greek": "יווני", + "Cyrillic": "קירילית", + "Punctuation": "פיסוק", + "Currency": "מַטְבֵּעַ", + "Arrows": "חצים", + "Math": "מתמטיקה", + "Misc": "שונות", + + // Print. + "Print": "הדפס", + + // Spell Checker. + "Spell Checker": "בודק איות", + + // Help + "Help": "עֶזרָה", + "Shortcuts": "קיצורי דרך", + "Inline Editor": "עורך מוטבע", + "Show the editor": "להראות את העורך", + "Common actions": "פעולות נפוצות", + "Copy": "עותק", + "Cut": "גזירה", + "Paste": "לְהַדבִּיק", + "Basic Formatting": "עיצוב בסיסי", + "Increase quote level": "רמת ציטוט", + "Decrease quote level": "רמת ציטוט ירידה", + "Image / Video": "תמונה / וידאו", + "Resize larger": "גודל גדול יותר", + "Resize smaller": "גודל קטן יותר", + "Table": "שולחן", + "Select table cell": "בחר תא תא - -", + "Extend selection one cell": "להאריך את הבחירה תא אחד", + "Extend selection one row": "להאריך את הבחירה שורה אחת", + "Navigation": "ניווט", + "Focus popup / toolbar": "מוקד קופץ / סרגל הכלים", + "Return focus to previous position": "חזרה להתמקד קודם", + + // Embed.ly + "Embed URL": "כתובת אתר להטביע", + "Paste in a URL to embed": "הדבק כתובת אתר להטביע", + + // Word Paste. + "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "התוכן המודבק מגיע ממסמך Word של Microsoft. האם ברצונך לשמור את הפורמט או לנקות אותו?", + "Keep": "לִשְׁמוֹר", + "Clean": "לְנַקוֹת", + "Word Paste Detected": "הדבק מילה זוהתה" + }, + direction: "rtl" +}; + +})); diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/hr.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/hr.js new file mode 100644 index 0000000..2b3aeee --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/hr.js @@ -0,0 +1,318 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + // require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + return factory(jQuery); + }; + } else { + // Browser globals + factory(window.jQuery); + } +}(function ($) { +/** + * Croatian + */ + +$.FE.LANGUAGE['hr'] = { + translation: { + // Place holder + "Type something": "Napi\u0161i ne\u0161to", + + // Basic formatting + "Bold": "Podebljaj", + "Italic": "Kurziv", + "Underline": "Podcrtano", + "Strikethrough": "Precrtano", + + // Main buttons + "Insert": "Umetni", + "Delete": "Obri\u0161i", + "Cancel": "Otka\u017ei", + "OK": "U redu", + "Back": "Natrag", + "Remove": "Ukloni", + "More": "Vi\u0161e", + "Update": "A\u017euriraj", + "Style": "Stil", + + // Font + "Font Family": "Odaberi font", + "Font Size": "Veli\u010dina fonta", + + // Colors + "Colors": "Boje", + "Background": "Pozadina", + "Text": "Tekst", + "HEX Color": "Heksadecimalne boje", + + // Paragraphs + "Paragraph Format": "Format odlomka", + "Normal": "Normalno", + "Code": "Izvorni kod", + "Heading 1": "Naslov 1", + "Heading 2": "Naslov 2", + "Heading 3": "Naslov 3", + "Heading 4": "Naslov 4", + + // Style + "Paragraph Style": "Stil odlomka", + "Inline Style": "Stil u liniji", + + // Alignment + "Align": "Poravnaj", + "Align Left": "Poravnaj lijevo", + "Align Center": "Poravnaj po sredini", + "Align Right": "Poravnaj desno", + "Align Justify": "Obostrano poravnanje", + "None": "Nijedan", + + // Lists + "Ordered List": "Ure\u0111ena lista", + "Unordered List": "Neure\u0111ena lista", + + // Indent + "Decrease Indent": "Uvuci odlomak", + "Increase Indent": "Izvuci odlomak", + + // Links + "Insert Link": "Umetni link", + "Open in new tab": "Otvori u novom prozoru", + "Open Link": "Otvori link", + "Edit Link": "Uredi link", + "Unlink": "Ukloni link", + "Choose Link": "Odaberi link", + + // Images + "Insert Image": "Umetni sliku", + "Upload Image": "Prijenos slike", + "By URL": "Prema URL", + "Browse": "Odabir", + "Drop image": "Ispusti sliku", + "or click": "ili odaberi", + "Manage Images": "Upravljanje slikama", + "Loading": "U\u010ditavanje", + "Deleting": "Brisanje", + "Tags": "Oznake", + "Are you sure? Image will be deleted.": "Da li ste sigurni da \u017eelite obrisati ovu sliku?", + "Replace": "Zamijeni", + "Uploading": "Prijenos", + "Loading image": "Otvaram sliku", + "Display": "Prika\u017ei", + "Inline": "U liniji", + "Break Text": "Odvojeni tekst", + "Alternate Text": "Alternativni tekst", + "Change Size": "Promjena veli\u010dine", + "Width": "\u0160irina", + "Height": "Visina", + "Something went wrong. Please try again.": "Ne\u0161to je po\u0161lo po zlu. Molimo poku\u0161ajte ponovno.", + "Image Caption": "Opis slike", + "Advanced Edit": "Napredno uređivanje", + + // Video + "Insert Video": "Umetni video", + "Embedded Code": "Ugra\u0111eni kod", + "Paste in a video URL": "Zalijepite u URL videozapisa", + "Drop video": "Ispusti video", + "Your browser does not support HTML5 video.": "Vaš preglednik ne podržava HTML video.", + "Upload Video": "Prenesi videozapis", + + // Tables + "Insert Table": "Umetni tablicu", + "Table Header": "Zaglavlje tablice", + "Remove Table": "Izbri\u0161i tablicu", + "Table Style": "Tablica stil", + "Horizontal Align": "Horizontalna poravnanje", + "Row": "Red", + "Insert row above": "Umetni red iznad", + "Insert row below": "Umetni red ispod", + "Delete row": "Obri\u0161i red", + "Column": "Stupac", + "Insert column before": "Umetni stupac prije", + "Insert column after": "Umetni stupac poslije", + "Delete column": "Obri\u0161i stupac", + "Cell": "Polje", + "Merge cells": "Spoji polja", + "Horizontal split": "Horizontalno razdvajanje polja", + "Vertical split": "Vertikalno razdvajanje polja", + "Cell Background": "Polje pozadine", + "Vertical Align": "Vertikalno poravnanje", + "Top": "Vrh", + "Middle": "Sredina", + "Bottom": "Dno", + "Align Top": "Poravnaj na vrh", + "Align Middle": "Poravnaj po sredini", + "Align Bottom": "Poravnaj na dno", + "Cell Style": "Stil polja", + + // Files + "Upload File": "Prijenos datoteke", + "Drop file": "Ispusti datoteku", + + // Emoticons + "Emoticons": "Emotikoni", + "Grinning face": "Nacereno lice", + "Grinning face with smiling eyes": "Nacereno lice s nasmije\u0161enim o\u010dima", + "Face with tears of joy": "Lice sa suzama radosnicama", + "Smiling face with open mouth": "Nasmijano lice s otvorenim ustima", + "Smiling face with open mouth and smiling eyes": "Nasmijano lice s otvorenim ustima i nasmijanim o\u010dima", + "Smiling face with open mouth and cold sweat": "Nasmijano lice s otvorenim ustima i hladnim znojem", + "Smiling face with open mouth and tightly-closed eyes": "Nasmijano lice s otvorenim ustima i \u010dvrsto zatvorenih o\u010diju", + "Smiling face with halo": "Nasmijano lice sa aureolom", + "Smiling face with horns": "Nasmijano lice s rogovima", + "Winking face": "Lice koje namiguje", + "Smiling face with smiling eyes": "Nasmijano lice s nasmiješenim o\u010dima", + "Face savoring delicious food": "Lice koje u\u017eiva ukusnu hranu", + "Relieved face": "Lice s olak\u0161anjem", + "Smiling face with heart-shaped eyes": "Nasmijano lice sa o\u010dima u obliku srca", + "Smiling face with sunglasses": "Nasmijano lice sa sun\u010danim nao\u010dalama", + "Smirking face": "Zlokobno nasmije\u0161eno lice", + "Neutral face": "Neutralno lice", + "Expressionless face": "Bezizra\u017eajno lice", + "Unamused face": "Nezainteresirano lice", + "Face with cold sweat": "Lice s hladnim znojem", + "Pensive face": "Zami\u0161ljeno lice", + "Confused face": "Zbunjeno lice", + "Confounded face": "Zbunjeno lice", + "Kissing face": "Lice s poljupcem", + "Face throwing a kiss": "Lice koje baca poljubac", + "Kissing face with smiling eyes": "Lice s poljupcem s nasmije\u0161enim o\u010dima", + "Kissing face with closed eyes": "Lice s poljupcem zatvorenih o\u010diju", + "Face with stuck out tongue": "Lice s ispru\u017eenim jezikom", + "Face with stuck out tongue and winking eye": "Lice s ispru\u017eenim jezikom koje namiguje", + "Face with stuck out tongue and tightly-closed eyes": "Lice s ispru\u017eenim jezikom i \u010dvrsto zatvorenih o\u010diju", + "Disappointed face": "Razo\u010darano lice", + "Worried face": "Zabrinuto lice", + "Angry face": "Ljutito lice", + "Pouting face": "Nadureno lice", + "Crying face": "Uplakano lice", + "Persevering face": "Lice s negodovanjem", + "Face with look of triumph": "Trijumfalno lice", + "Disappointed but relieved face": "Razo\u010darano ali olakšano lice", + "Frowning face with open mouth": "Namrgo\u0111eno lice s otvorenim ustima", + "Anguished face": "Tjeskobno lice", + "Fearful face": "Prestra\u0161eno lice", + "Weary face": "Umorno lice", + "Sleepy face": "Pospano lice", + "Tired face": "Umorno lice", + "Grimacing face": "Lice sa grimasama", + "Loudly crying face": "Glasno pla\u010du\u0107e lice", + "Face with open mouth": "Lice s otvorenim ustima", + "Hushed face": "Tiho lice", + "Face with open mouth and cold sweat": "Lice s otvorenim ustima i hladnim znojem", + "Face screaming in fear": "Lice koje vri\u0161ti u strahu", + "Astonished face": "Zaprepa\u0161teno lice", + "Flushed face": "Zajapureno lice", + "Sleeping face": "Spava\u0107e lice", + "Dizzy face": "Lice sa vrtoglavicom", + "Face without mouth": "Lice bez usta", + "Face with medical mask": "Lice s medicinskom maskom", + + // Line breaker + "Break": "Odvojeno", + + // Math + "Subscript": "Indeks", + "Superscript": "Eksponent", + + // Full screen + "Fullscreen": "Puni zaslon", + + // Horizontal line + "Insert Horizontal Line": "Umetni liniju", + + // Clear formatting + "Clear Formatting": "Ukloni oblikovanje", + + // Undo, redo + "Undo": "Korak natrag", + "Redo": "Korak naprijed", + + // Select all + "Select All": "Odaberi sve", + + // Code view + "Code View": "Pregled koda", + + // Quote + "Quote": "Citat", + "Increase": "Pove\u0107aj", + "Decrease": "Smanji", + + // Quick Insert + "Quick Insert": "Brzo umetak", + + // Spcial Characters + "Special Characters": "Posebni znakovi", + "Latin": "Latinski", + "Greek": "Grčki", + "Cyrillic": "Ćirilica", + "Punctuation": "Interpunkcija", + "Currency": "Valuta", + "Arrows": "Strelice", + "Math": "Matematika", + "Misc": "Razno", + + // Print. + "Print": "Otisak", + + // Spell Checker. + "Spell Checker": "Provjeritelj pravopisa", + + // Help + "Help": "Pomoć", + "Shortcuts": "Prečaci", + "Inline Editor": "Inline editor", + "Show the editor": "Prikaži urednika", + "Common actions": "Zajedničke radnje", + "Copy": "Kopirati", + "Cut": "Rez", + "Paste": "Zalijepiti", + "Basic Formatting": "Osnovno oblikovanje", + "Increase quote level": "Povećati razinu citata", + "Decrease quote level": "Smanjite razinu citata", + "Image / Video": "Slika / video", + "Resize larger": "Promijenite veličinu većeg", + "Resize smaller": "Promijenite veličinu manju", + "Table": "Stol", + "Select table cell": "Odaberite stolnu ćeliju", + "Extend selection one cell": "Proširiti odabir jedne ćelije", + "Extend selection one row": "Proširite odabir jednog retka", + "Navigation": "Navigacija", + "Focus popup / toolbar": "Fokus popup / alatnoj traci", + "Return focus to previous position": "Vratiti fokus na prethodnu poziciju", + + // Embed.ly + "Embed URL": "Uredi url", + "Paste in a URL to embed": "Zalijepite URL da biste ga ugradili", + + // Word Paste. + "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Zalijepi sadržaj dolazi iz Microsoft Word dokumenta. Želite li zadržati format ili očistiti?", + "Keep": "Zadržati", + "Clean": "Čist", + "Word Paste Detected": "Otkrivena je zastavica riječi" + }, + direction: "ltr" +}; + +})); diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/hu.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/hu.js new file mode 100644 index 0000000..9240125 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/hu.js @@ -0,0 +1,318 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + // require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + return factory(jQuery); + }; + } else { + // Browser globals + factory(window.jQuery); + } +}(function ($) { +/** + * Hungarian + */ + +$.FE.LANGUAGE['hu'] = { + translation: { + // Place holder + "Type something": "Sz\u00f6veg...", + + // Basic formatting + "Bold": "F\u00e9lk\u00f6v\u00e9r", + "Italic": "D\u0151lt", + "Underline": "Al\u00e1h\u00fazott", + "Strikethrough": "\u00c1th\u00fazott", + + // Main buttons + "Insert": "Beilleszt\u00e9s", + "Delete": "T\u00f6rl\u00e9s", + "Cancel": "M\u00e9gse", + "OK": "Rendben", + "Back": "Vissza", + "Remove": "Elt\u00e1vol\u00edt\u00e1s", + "More": "T\u00f6bb", + "Update": "Friss\u00edt\u00e9s", + "Style": "St\u00edlus", + + // Font + "Font Family": "Bet\u0171t\u00edpus", + "Font Size": "Bet\u0171m\u00e9ret", + + // Colors + "Colors": "Sz\u00ednek", + "Background": "H\u00e1tt\u00e9r", + "Text": "Sz\u00f6veg", + "HEX Color": "Hex színű", + + // Paragraphs + "Paragraph Format": "Form\u00e1tumok", + "Normal": "Norm\u00e1l", + "Code": "K\u00f3d", + "Heading 1": "C\u00edmsor 1", + "Heading 2": "C\u00edmsor 2", + "Heading 3": "C\u00edmsor 3", + "Heading 4": "C\u00edmsor 4", + + // Style + "Paragraph Style": "Bekezd\u00e9s st\u00edlusa", + "Inline Style": " Helyi st\u00edlus", + + // Alignment + "Align": "Igaz\u00edt\u00e1s", + "Align Left": "Balra igaz\u00edt", + "Align Center": "K\u00f6z\u00e9pre z\u00e1r", + "Align Right": "Jobbra igaz\u00edt", + "Align Justify": "Sorkiz\u00e1r\u00e1s", + "None": "Egyik sem", + + // Lists + "Ordered List": "Sz\u00e1moz\u00e1s", + "Unordered List": "Felsorol\u00e1s", + + // Indent + "Decrease Indent": "Beh\u00faz\u00e1s cs\u00f6kkent\u00e9se", + "Increase Indent": "Beh\u00faz\u00e1s n\u00f6vel\u00e9se", + + // Links + "Insert Link": "Hivatkoz\u00e1s beilleszt\u00e9se", + "Open in new tab": "Megnyit\u00e1s \u00faj lapon", + "Open Link": "Hivatkoz\u00e1s megnyit\u00e1sa", + "Edit Link": "Hivatkoz\u00e1 s szerkeszt\u00e9se", + "Unlink": "Hivatkoz\u00e1s t\u00f6rl\u00e9se", + "Choose Link": "Keres\u00e9s a lapok k\u00f6z\u00f6tt", + + // Images + "Insert Image": "K\u00e9p beilleszt\u00e9se", + "Upload Image": "K\u00e9p felt\u00f6lt\u00e9se", + "By URL": "Webc\u00edm megad\u00e1sa", + "Browse": "B\u00f6ng\u00e9sz\u00e9s", + "Drop image": "H\u00fazza ide a k\u00e9pet", + "or click": "vagy kattintson ide", + "Manage Images": "K\u00e9pek kezel\u00e9se", + "Loading": "Bet\u00f6lt\u00e9s...", + "Deleting": "T\u00f6rl\u00e9s...", + "Tags": "C\u00edmk\u00e9k", + "Are you sure? Image will be deleted.": "Biztos benne? A k\u00e9p t\u00f6rl\u00e9sre ker\u00fcl.", + "Replace": "Csere", + "Uploading": "Felt\u00f6lt\u00e9s", + "Loading image": "K\u00e9p bet\u00f6lt\u00e9se", + "Display": "Kijelz\u0151", + "Inline": "Sorban", + "Break Text": "Sz\u00f6veg t\u00f6r\u00e9se", + "Alternate Text": "Alternat\u00edv sz\u00f6veg", + "Change Size": "M\u00e9ret m\u00f3dos\u00edt\u00e1sa", + "Width": "Sz\u00e9less\u00e9g", + "Height": "Magass\u00e1g", + "Something went wrong. Please try again.": "Valami elromlott. K\u00e9rlek pr\u00f3b\u00e1ld \u00fajra.", + "Image Caption": "Képaláírás", + "Advanced Edit": "Fejlett szerkesztés", + + // Video + "Insert Video": "Vide\u00f3 beilleszt\u00e9se", + "Embedded Code": "K\u00f3d bem\u00e1sol\u00e1sa", + "Paste in a video URL": "Illessze be a videó URL-címét", + "Drop video": "Csepp videót", + "Your browser does not support HTML5 video.": "A böngészője nem támogatja a html5 videót.", + "Upload Video": "Videó feltöltése", + + // Tables + "Insert Table": "T\u00e1bl\u00e1zat beilleszt\u00e9se", + "Table Header": "T\u00e1bl\u00e1zat fejl\u00e9ce", + "Remove Table": "T\u00e1bla elt\u00e1vol\u00edt\u00e1sa", + "Table Style": "T\u00e1bl\u00e1zat st\u00edlusa", + "Horizontal Align": "V\u00edzszintes igaz\u00edt\u00e1s", + "Row": "Sor", + "Insert row above": "Sor besz\u00far\u00e1sa el\u00e9", + "Insert row below": "Sor besz\u00far\u00e1sa m\u00f6g\u00e9", + "Delete row": "Sor t\u00f6rl\u00e9se", + "Column": "Oszlop", + "Insert column before": "Oszlop besz\u00far\u00e1sa el\u00e9", + "Insert column after": "Oszlop besz\u00far\u00e1sa m\u00f6g\u00e9", + "Delete column": "Oszlop t\u00f6rl\u00e9se", + "Cell": "Cella", + "Merge cells": "Cell\u00e1k egyes\u00edt\u00e9se", + "Horizontal split": "V\u00edzszintes osztott", + "Vertical split": "F\u00fcgg\u0151leges osztott", + "Cell Background": "Cella h\u00e1ttere", + "Vertical Align": "F\u00fcgg\u0151leges fej\u00e1ll\u00edt\u00e1s", + "Top": "Fels\u0151", + "Middle": "K\u00f6z\u00e9ps\u0151", + "Bottom": "Als\u00f3", + "Align Top": "Igaz\u00edtsa fel\u00fclre", + "Align Middle": "Igaz\u00edtsa k\u00f6z\u00e9pre", + "Align Bottom": "Igaz\u00edtsa al\u00falra", + "Cell Style": "Cella st\u00edlusa", + + // Files + "Upload File": "F\u00e1jl felt\u00f6lt\u00e9se", + "Drop file": "H\u00fazza ide a f\u00e1jlt", + + // Emoticons + "Emoticons": "Hangulatjelek", + "Grinning face": "Vigyorg\u00f3 arc", + "Grinning face with smiling eyes": "Vigyorg\u00f3 arc mosolyg\u00f3 szemekkel", + "Face with tears of joy": "Arc \u00e1t az \u00f6r\u00f6m k\u00f6nnyei", + "Smiling face with open mouth": "Mosolyg\u00f3 arc t\u00e1tott sz\u00e1jjal", + "Smiling face with open mouth and smiling eyes": "Mosolyg\u00f3 arc t\u00e1tott sz\u00e1jjal \u00e9s mosolyg\u00f3 szemek", + "Smiling face with open mouth and cold sweat": "Mosolyg\u00f3 arc t\u00e1tott sz\u00e1jjal \u00e9s hideg ver\u00edt\u00e9k", + "Smiling face with open mouth and tightly-closed eyes": "Mosolyg\u00f3 arc t\u00e1tott sz\u00e1jjal \u00e9s szorosan lehunyt szemmel", + "Smiling face with halo": "Mosolyg\u00f3 arc dicsf\u00e9nyben", + "Smiling face with horns": "Mosolyg\u00f3 arc szarvakkal", + "Winking face": "Kacsint\u00f3s arc", + "Smiling face with smiling eyes": "Mosolyg\u00f3 arc mosolyg\u00f3 szemekkel", + "Face savoring delicious food": "Arc \u00edzlelgette \u00edzletes \u00e9telek", + "Relieved face": "Megk\u00f6nnyebb\u00fclt arc", + "Smiling face with heart-shaped eyes": "Mosolyg\u00f3 arc sz\u00edv alak\u00fa szemekkel", + "Smilin g face with sunglasses": "Mosolyg\u00f3 arc napszem\u00fcvegben", + "Smirking face": "Vigyorg\u00f3 arca", + "Neutral face": "Semleges arc", + "Expressionless face": "Kifejez\u00e9stelen arc", + "Unamused face": "Unott arc", + "Face with cold sweat": "Arc\u00e1n hideg verejt\u00e9kkel", + "Pensive face": "T\u00f6preng\u0151 arc", + "Confused face": "Zavaros arc", + "Confounded face": "R\u00e1c\u00e1folt arc", + "Kissing face": "Cs\u00f3kos arc", + "Face throwing a kiss": "Arcra dobott egy cs\u00f3kot", + "Kissing face with smiling eyes": "Cs\u00f3kos arc\u00e1t mosolyg\u00f3 szemek", + "Kissing face with closed eyes": "Cs\u00f3kos arc\u00e1t csukott szemmel", + "Face with stuck out tongue": "Szembe kiny\u00faj totta a nyelv\u00e9t", + "Face with stuck out tongue and winking eye": "Szembe kiny\u00fajtotta a nyelv\u00e9t, \u00e9s kacsint\u00f3 szem", + "Face with stuck out tongue and tightly-closed eyes": "Arc kiny\u00fajtotta a nyelv\u00e9t, \u00e9s szorosan lehunyt szemmel", + "Disappointed face": "Csal\u00f3dott arc", + "Worried face": "Agg\u00f3d\u00f3 arc\u00e1t", + "Angry face": "D\u00fch\u00f6s arc", + "Pouting face": "Duzzog\u00f3 arc", + "Crying face": "S\u00edr\u00f3 arc", + "Persevering face": "Kitart\u00f3 arc", + "Face with look of triumph": "Arc\u00e1t diadalmas pillant\u00e1st", + "Disappointed but relieved face": "Csal\u00f3dott, de megk\u00f6nnyebb\u00fclt arc", + "Frowning face with open mouth": "Komor arcb\u00f3l t\u00e1tott sz\u00e1jjal", + "Anguished face": "Gy\u00f6tr\u0151d\u0151 arc", + "Fearful face": "F\u00e9lelmetes arc", + "Weary face": "F\u00e1radt arc", + "Sleepy face": "\u00e1lmos arc", + "Tired face": "F\u00e1radt arc", + "Grimacing face": "Elfintorodott arc", + "Loudly crying face": "Hangosan s\u00edr\u00f3 arc", + "Face with open mouth": "Arc nyitott sz\u00e1jjal", + "Hushed face": "Csit\u00edtott arc", + "Face with open mouth and cold sweat": "Arc t\u00e1tott sz\u00e1jjal \u00e9s hideg ver\u00edt\u00e9k", + "Face screaming in fear": "Sikoltoz\u00f3 arc a f\u00e9lelemt\u0151l", + "Astonished face": "Meglepett arc", + "Flushed face": "Kipirult arc", + "Sleeping face": "Alv\u00f3 arc", + "Dizzy face": " Sz\u00e1d\u00fcl\u0151 arc", + "Face without mouth": "Arc n\u00e9lküli sz\u00e1j", + "Face with medical mask": "Arc\u00e1n orvosi maszk", + + // Line breaker + "Break": "T\u00f6r\u00e9s", + + // Math + "Subscript": "Als\u00f3 index", + "Superscript": "Fels\u0151 index", + + // Full screen + "Fullscreen": "Teljes k\u00e9perny\u0151", + + // Horizontal line + "Insert Horizontal Line": "V\u00edzszintes vonal", + + // Clear formatting + "Clear Formatting": "Form\u00e1z\u00e1s elt\u00e1vol\u00edt\u00e1sa", + + // Undo, redo + "Undo": "Visszavon\u00e1s", + "Redo": "Ism\u00e9t", + + // Select all + "Select All": "Minden kijel\u00f6l\u00e9se", + + // Code view + "Code View": "Forr\u00e1sk\u00f3d", + + // Quote + "Quote": "Id\u00e9zet", + "Increase": "N\u00f6vel\u00e9s", + "Decrease": "Cs\u00f6kkent\u00e9s", + + // Quick Insert + "Quick Insert": "Beilleszt\u00e9s", + + // Spcial Characters + "Special Characters": "Speciális karakterek", + "Latin": "Latin", + "Greek": "Görög", + "Cyrillic": "Cirill", + "Punctuation": "Központozás", + "Currency": "Valuta", + "Arrows": "Nyilak", + "Math": "Matematikai", + "Misc": "Misc", + + // Print. + "Print": "Nyomtatás", + + // Spell Checker. + "Spell Checker": "Helyesírás-ellenőrző", + + // Help + "Help": "Segítség", + "Shortcuts": "Hivatkozások", + "Inline Editor": "Inline szerkesztő", + "Show the editor": "Mutassa meg a szerkesztőt", + "Common actions": "Közös cselekvések", + "Copy": "Másolat", + "Cut": "Vágott", + "Paste": "Paszta", + "Basic Formatting": "Alap formázás", + "Increase quote level": "Növeli az idézet szintjét", + "Decrease quote level": "Csökkenti az árazási szintet", + "Image / Video": "Kép / videó", + "Resize larger": "Nagyobb átméretezés", + "Resize smaller": "Kisebb méretűek", + "Table": "Asztal", + "Select table cell": "Válasszon táblázatcellát", + "Extend selection one cell": "Kiterjesztheti a kiválasztást egy cellára", + "Extend selection one row": "Szűkítse ki az egy sort", + "Navigation": "Navigáció", + "Focus popup / toolbar": "Fókusz felugró ablak / eszköztár", + "Return focus to previous position": "Visszaáll az előző pozícióra", + + // Embed.ly + "Embed URL": "Beágyazott url", + "Paste in a URL to embed": "Beilleszteni egy URL-t a beágyazáshoz", + + // Word Paste. + "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "A beillesztett tartalom egy microsoft szó dokumentumból származik. szeretné megtartani a formátumot vagy tisztítani?", + "Keep": "Tart", + "Clean": "Tiszta", + "Word Paste Detected": "Szópaszta észlelhető" + }, + direction: "ltr" +}; + +})); diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/id.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/id.js new file mode 100644 index 0000000..4f85816 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/id.js @@ -0,0 +1,319 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + // require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + return factory(jQuery); + }; + } else { + // Browser globals + factory(window.jQuery); + } +}(function ($) { +/** + * Indonesian + */ + +$.FE.LANGUAGE['id'] = { + translation: { + // Place holder + "Type something": "Ketik sesuatu", + + // Basic formatting + "Bold": "Tebal", + "Italic": "Miring", + "Underline": "Garis bawah", + "Strikethrough": "Coret", + + // Main buttons + "Insert": "Memasukkan", + "Delete": "Hapus", + "Cancel": "Batal", + "OK": "Ok", + "Back": "Kembali", + "Remove": "Hapus", + "More": "Lebih", + "Update": "Memperbarui", + "Style": "Gaya", + + // Font + "Font Family": "Jenis Huruf", + "Font Size": "Ukuran leter", + + // Colors + "Colors": "Warna", + "Background": "Latar belakang", + "Text": "Teks", + "HEX Color": "Warna hex", + + // Paragraphs + "Paragraph Format": "Format", + "Normal": "Normal", + "Code": "Kode", + "Heading 1": "Header 1", + "Heading 2": "Header 2", + "Heading 3": "Header 3", + "Heading 4": "Header 4", + + // Style + "Paragraph Style": "Paragraf gaya", + "Inline Style": "Di barisan gaya", + + // Alignment + "Align": "Rate", + "Align Left": "Rate kiri", + "Align Center": "Rate tengah", + "Align Right": "Rata kanan", + "Align Justify": "Justifi", + "None": "Tak satupun", + + // Lists + "Ordered List": "List nomor", + "Unordered List": "List simbol", + + // Indent + "Decrease Indent": "Turunkan inden", + "Increase Indent": "Tambah inden", + + // Links + "Insert Link": "Memasukkan link", + "Open in new tab": "Buka di tab baru", + "Open Link": "Buka tautan", + "Edit Link": "Mengedit link", + "Unlink": "Menghapus link", + "Choose Link": "Memilih link", + + // Images + "Insert Image": "Memasukkan gambar", + "Upload Image": "Meng-upload gambar", + "By URL": "Oleh URL", + "Browse": "Melihat-lihat", + "Drop image": "Jatuhkan gambar", + "or click": "atau klik", + "Manage Images": "Mengelola gambar", + "Loading": "Pemuatan", + "Deleting": "Menghapus", + "Tags": "Label", + "Are you sure? Image will be deleted.": "Apakah Anda yakin? Gambar akan dihapus.", + "Replace": "Mengganti", + "Uploading": "Gambar upload", + "Loading image": "Pemuatan gambar", + "Display": "Pameran", + "Inline": "Di barisan", + "Break Text": "Memecah teks", + "Alternate Text": "Teks alternatif", + "Change Size": "Ukuran perubahan", + "Width": "Lebar", + "Height": "Tinggi", + "Something went wrong. Please try again.": "Ada yang salah. Silakan coba lagi.", + "Image Caption": "Keterangan gambar", + "Advanced Edit": "Edit lanjutan", + + // Video + "Insert Video": "Memasukkan video", + "Embedded Code": "Kode tertanam", + "Paste in a video URL": "Paste di url video", + "Drop video": "Jatuhkan video", + "Your browser does not support HTML5 video.": "Browser Anda tidak mendukung video html5.", + "Upload Video": "Mengunggah video", + + // Tables + "Insert Table": "Sisipkan tabel", + "Table Header": "Header tabel", + "Remove Table": "Hapus tabel", + "Table Style": "Gaya tabel", + "Horizontal Align": "Menyelaraskan horisontal", + + "Row": "Baris", + "Insert row above": "Sisipkan baris di atas", + "Insert row below": "Sisipkan baris di bawah", + "Delete row": "Hapus baris", + "Column": "Kolom", + "Insert column before": "Sisipkan kolom sebelumSisipkan kolom sebelum", + "Insert column after": "Sisipkan kolom setelah", + "Delete column": "Hapus kolom", + "Cell": "Sel", + "Merge cells": "Menggabungkan sel", + "Horizontal split": "Perpecahan horisontal", + "Vertical split": "Perpecahan vertikal", + "Cell Background": "Latar belakang sel", + "Vertical Align": "Menyelaraskan vertikal", + "Top": "Teratas", + "Middle": "Tengah", + "Bottom": "Bagian bawah", + "Align Top": "Menyelaraskan atas", + "Align Middle": "Menyelaraskan tengah", + "Align Bottom": "Menyelaraskan bawah", + "Cell Style": "Gaya sel", + + // Files + "Upload File": "Meng-upload berkas", + "Drop file": "Jatuhkan berkas", + + // Emoticons + "Emoticons": "Emoticon", + "Grinning face": "Sambil tersenyum wajah", + "Grinning face with smiling eyes": "Sambil tersenyum wajah dengan mata tersenyum", + "Face with tears of joy": "Hadapi dengan air mata sukacita", + "Smiling face with open mouth": "Tersenyum wajah dengan mulut terbuka", + "Smiling face with open mouth and smiling eyes": "Tersenyum wajah dengan mulut terbuka dan tersenyum mata", + "Smiling face with open mouth and cold sweat": "Tersenyum wajah dengan mulut terbuka dan keringat dingin", + "Smiling face with open mouth and tightly-closed eyes": "Tersenyum wajah dengan mulut terbuka dan mata tertutup rapat", + "Smiling face with halo": "Tersenyum wajah dengan halo", + "Smiling face with horns": "Tersenyum wajah dengan tanduk", + "Winking face": "Mengedip wajah", + "Smiling face with smiling eyes": "Tersenyum wajah dengan mata tersenyum", + "Face savoring delicious food": "Wajah menikmati makanan lezat", + "Relieved face": "Wajah Lega", + "Smiling face with heart-shaped eyes": "Tersenyum wajah dengan mata berbentuk hati", + "Smiling face with sunglasses": "Tersenyum wajah dengan kacamata hitam", + "Smirking face": "Menyeringai wajah", + "Neutral face": "Wajah Netral", + "Expressionless face": "Wajah tanpa ekspresi", + "Unamused face": "Wajah tidak senang", + "Face with cold sweat": "Muka dengan keringat dingin", + "Pensive face": "Wajah termenung", + "Confused face": "Wajah Bingung", + "Confounded face": "Wajah kesal", + "Kissing face": "wajah mencium", + "Face throwing a kiss": "Wajah melempar ciuman", + "Kissing face with smiling eyes": "Berciuman wajah dengan mata tersenyum", + "Kissing face with closed eyes": "Berciuman wajah dengan mata tertutup", + "Face with stuck out tongue": "Muka dengan menjulurkan lidah", + "Face with stuck out tongue and winking eye": "Muka dengan menjulurkan lidah dan mengedip mata", + "Face with stuck out tongue and tightly-closed eyes": "Wajah dengan lidah terjebak dan mata erat-tertutup", + "Disappointed face": "Wajah kecewa", + "Worried face": "Wajah Khawatir", + "Angry face": "Wajah Marah", + "Pouting face": "Cemberut wajah", + "Crying face": "Menangis wajah", + "Persevering face": "Tekun wajah", + "Face with look of triumph": "Hadapi dengan tampilan kemenangan", + "Disappointed but relieved face": "Kecewa tapi lega wajah", + "Frowning face with open mouth": "Sambil mengerutkan kening wajah dengan mulut terbuka", + "Anguished face": "Wajah sedih", + "Fearful face": "Wajah Takut", + "Weary face": "Wajah lelah", + "Sleepy face": "wajah mengantuk", + "Tired face": "Wajah Lelah", + "Grimacing face": "Sambil meringis wajah", + "Loudly crying face": "Keras menangis wajah", + "Face with open mouth": "Hadapi dengan mulut terbuka", + "Hushed face": "Wajah dipetieskan", + "Face with open mouth and cold sweat": "Hadapi dengan mulut terbuka dan keringat dingin", + "Face screaming in fear": "Hadapi berteriak dalam ketakutan", + "Astonished face": "Wajah Kaget", + "Flushed face": "Wajah memerah", + "Sleeping face": "Tidur face", + "Dizzy face": "Wajah pusing", + "Face without mouth": "Wajah tanpa mulut", + "Face with medical mask": "Hadapi dengan masker medis", + + // Line breaker + "Break": "Memecah", + + // Math + "Subscript": "Subskrip", + "Superscript": "Superskrip", + + // Full screen + "Fullscreen": "Layar penuh", + + // Horizontal line + "Insert Horizontal Line": "Sisipkan Garis Horizontal", + + // Clear formatting + "Clear Formatting": "Menghapus format", + + // Undo, redo + "Undo": "Batal", + "Redo": "Ulang", + + // Select all + "Select All": "Pilih semua", + + // Code view + "Code View": "Melihat kode", + + // Quote + "Quote": "Kutipan", + "Increase": "Meningkat", + "Decrease": "Penurunan", + + // Quick Insert + "Quick Insert": "Memasukkan cepat", + + // Spcial Characters + "Special Characters": "Karakter spesial", + "Latin": "Latin", + "Greek": "Yunani", + "Cyrillic": "Kyrillic", + "Punctuation": "Tanda baca", + "Currency": "Mata uang", + "Arrows": "Panah", + "Math": "Matematika", + "Misc": "Misc", + + // Print. + "Print": "Mencetak", + + // Spell Checker. + "Spell Checker": "Pemeriksa ejaan", + + // Help + "Help": "Membantu", + "Shortcuts": "Jalan pintas", + "Inline Editor": "Editor inline", + "Show the editor": "Tunjukkan editornya", + "Common actions": "Tindakan umum", + "Copy": "Salinan", + "Cut": "Memotong", + "Paste": "Pasta", + "Basic Formatting": "Format dasar", + "Increase quote level": "Meningkatkan tingkat kutipan", + "Decrease quote level": "Menurunkan tingkat kutipan", + "Image / Video": "Gambar / video", + "Resize larger": "Mengubah ukuran lebih besar", + "Resize smaller": "Mengubah ukuran lebih kecil", + "Table": "Meja", + "Select table cell": "Pilih sel tabel", + "Extend selection one cell": "Memperpanjang seleksi satu sel", + "Extend selection one row": "Perpanjang pilihan satu baris", + "Navigation": "Navigasi", + "Focus popup / toolbar": "Fokus popup / toolbar", + "Return focus to previous position": "Kembali fokus ke posisi sebelumnya", + + // Embed.ly + "Embed URL": "Embed url", + "Paste in a URL to embed": "Paste di url untuk menanamkan", + + // Word Paste. + "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Konten yang disisipkan berasal dari dokumen kata microsoft. apakah Anda ingin menyimpan format atau membersihkannya?", + "Keep": "Menjaga", + "Clean": "Bersih", + "Word Paste Detected": "Kata paste terdeteksi" + }, + direction: "ltr" +}; + +})); diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/it.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/it.js new file mode 100644 index 0000000..d5e225d --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/it.js @@ -0,0 +1,318 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + // require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + return factory(jQuery); + }; + } else { + // Browser globals + factory(window.jQuery); + } +}(function ($) { +/** + * Italian + */ + +$.FE.LANGUAGE['it'] = { + translation: { + // Place holder + "Type something": "Digita qualcosa", + + // Basic formatting + "Bold": "Grassetto", + "Italic": "Corsivo", + "Underline": "Sottolineato", + "Strikethrough": "Barrato", + + // Main buttons + "Insert": "Inserisci", + "Delete": "Cancella", + "Cancel": "Cancella", + "OK": "OK", + "Back": "Indietro", + "Remove": "Rimuovi", + "More": "Di pi\u00f9", + "Update": "Aggiorna", + "Style": "Stile", + + // Font + "Font Family": "Carattere", + "Font Size": "Dimensione Carattere", + + // Colors + "Colors": "Colori", + "Background": "Sfondo", + "Text": "Testo", + "HEX Color": "Colore Esadecimale", + + // Paragraphs + "Paragraph Format": "Formattazione", + "Normal": "Normale", + "Code": "Codice", + "Heading 1": "Intestazione 1", + "Heading 2": "Intestazione 2", + "Heading 3": "Intestazione 3", + "Heading 4": "Intestazione 4", + + // Style + "Paragraph Style": "Stile Paragrafo", + "Inline Style": "Stile in Linea", + + // Alignment + "Align": "Allinea", + "Align Left": "Allinea a Sinistra", + "Align Center": "Allinea al Cento", + "Align Right": "Allinea a Destra", + "Align Justify": "Giustifica", + "None": "Nessuno", + + // Lists + "Ordered List": "Elenchi Numerati", + "Unordered List": "Elenchi Puntati", + + // Indent + "Decrease Indent": "Riduci Rientro", + "Increase Indent": "Aumenta Rientro", + + // Links + "Insert Link": "Inserisci Link", + "Open in new tab": "Apri in nuova scheda", + "Open Link": "Apri Link", + "Edit Link": "Modifica Link", + "Unlink": "Rimuovi Link", + "Choose Link": "Scegli Link", + + // Images + "Insert Image": "Inserisci Immagine", + "Upload Image": "Carica Immagine", + "By URL": "Inserisci URL", + "Browse": "Sfoglia", + "Drop image": "Rilascia immagine", + "or click": "oppure clicca qui", + "Manage Images": "Gestione Immagini", + "Loading": "Caricamento", + "Deleting": "Eliminazione", + "Tags": "Etichetta", + "Are you sure? Image will be deleted.": "Sei sicuro? L\'immagine verr\u00e0 cancellata.", + "Replace": "Sostituisci", + "Uploading": "Caricamento", + "Loading image": "Caricamento immagine", + "Display": "Visualizzazione", + "Inline": "In Linea", + "Break Text": "Separa dal Testo", + "Alternate Text": "Testo Alternativo", + "Change Size": "Cambia Dimensioni", + "Width": "Larghezza", + "Height": "Altezza", + "Something went wrong. Please try again.": "Qualcosa non ha funzionato. Riprova, per favore.", + "Image Caption": "Didascalia", + "Advanced Edit": "Avanzato", + + // Video + "Insert Video": "Inserisci Video", + "Embedded Code": "Codice Incorporato", + "Paste in a video URL": "Incolla l'URL del video", + "Drop video": "Rilascia video", + "Your browser does not support HTML5 video.": "Il tuo browser non supporta i video html5.", + "Upload Video": "Carica Video", + + // Tables + "Insert Table": "Inserisci Tabella", + "Table Header": "Intestazione Tabella", + "Remove Table": "Rimuovi Tabella", + "Table Style": "Stile Tabella", + "Horizontal Align": "Allineamento Orizzontale", + "Row": "Riga", + "Insert row above": "Inserisci una riga prima", + "Insert row below": "Inserisci una riga dopo", + "Delete row": "Cancella riga", + "Column": "Colonna", + "Insert column before": "Inserisci una colonna prima", + "Insert column after": "Inserisci una colonna dopo", + "Delete column": "Cancella colonna", + "Cell": "Cella", + "Merge cells": "Unisci celle", + "Horizontal split": "Dividi in orizzontale", + "Vertical split": "Dividi in verticale", + "Cell Background": "Sfondo Cella", + "Vertical Align": "Allineamento Verticale", + "Top": "Alto", + "Middle": "Centro", + "Bottom": "Basso", + "Align Top": "Allinea in Alto", + "Align Middle": "Allinea al Centro", + "Align Bottom": "Allinea in Basso", + "Cell Style": "Stile Cella", + + // Files + "Upload File": "Carica File", + "Drop file": "Rilascia file", + + // Emoticons + "Emoticons": "Emoticon", + "Grinning face": "Sorridente", + "Grinning face with smiling eyes": "Sorridente con gli occhi sorridenti", + "Face with tears of joy": "Con lacrime di gioia", + "Smiling face with open mouth": "Sorridente con la bocca aperta", + "Smiling face with open mouth and smiling eyes": "Sorridente con la bocca aperta e gli occhi sorridenti", + "Smiling face with open mouth and cold sweat": "Sorridente con la bocca aperta e sudore freddo", + "Smiling face with open mouth and tightly-closed eyes": "Sorridente con la bocca aperta e gli occhi stretti", + "Smiling face with halo": "Sorridente con aureola", + "Smiling face with horns": "Diavolo sorridente", + "Winking face": "Ammiccante", + "Smiling face with smiling eyes": "Sorridente imbarazzato", + "Face savoring delicious food": "Goloso", + "Relieved face": "Rassicurato", + "Smiling face with heart-shaped eyes": "Sorridente con gli occhi a forma di cuore", + "Smiling face with sunglasses": "Sorridente con gli occhiali da sole", + "Smirking face": "Compiaciuto", + "Neutral face": "Neutro", + "Expressionless face": "Inespressivo", + "Unamused face": "Annoiato", + "Face with cold sweat": "Sudare freddo", + "Pensive face": "Pensieroso", + "Confused face": "Perplesso", + "Confounded face": "Confuso", + "Kissing face": "Bacio", + "Face throwing a kiss": "Manda un bacio", + "Kissing face with smiling eyes": "Bacio con gli occhi sorridenti", + "Kissing face with closed eyes": "Bacio con gli occhi chiusi", + "Face with stuck out tongue": "Linguaccia", + "Face with stuck out tongue and winking eye": "Linguaccia ammiccante", + "Face with stuck out tongue and tightly-closed eyes": "Linguaccia con occhi stretti", + "Disappointed face": "Deluso", + "Worried face": "Preoccupato", + "Angry face": "Arrabbiato", + "Pouting face": "Imbronciato", + "Crying face": "Pianto", + "Persevering face": "Perseverante", + "Face with look of triumph": "Trionfante", + "Disappointed but relieved face": "Deluso ma rassicurato", + "Frowning face with open mouth": "Accigliato con la bocca aperta", + "Anguished face": "Angosciato", + "Fearful face": "Pauroso", + "Weary face": "Stanco", + "Sleepy face": "Assonnato", + "Tired face": "Snervato", + "Grimacing face": "Smorfia", + "Loudly crying face": "Pianto a gran voce", + "Face with open mouth": "Bocca aperta", + "Hushed face": "Silenzioso", + "Face with open mouth and cold sweat": "Bocca aperta e sudore freddo", + "Face screaming in fear": "Urlante dalla paura", + "Astonished face": "Stupito", + "Flushed face": "Arrossito", + "Sleeping face": "Addormentato", + "Dizzy face": "Stordito", + "Face without mouth": "Senza parole", + "Face with medical mask": "Malattia infettiva", + + // Line breaker + "Break": "Separatore", + + // Math + "Subscript": "Pedice", + "Superscript": "Apice", + + // Full screen + "Fullscreen": "Schermo intero", + + // Horizontal line + "Insert Horizontal Line": "Inserisci Divisore Orizzontale", + + // Clear formatting + "Clear Formatting": "Cancella Formattazione", + + // Undo, redo + "Undo": "Annulla", + "Redo": "Ripeti", + + // Select all + "Select All": "Seleziona Tutto", + + // Code view + "Code View": "Visualizza Codice", + + // Quote + "Quote": "Citazione", + "Increase": "Aumenta", + "Decrease": "Diminuisci", + + // Quick Insert + "Quick Insert": "Inserimento Rapido", + + // Spcial Characters + "Special Characters": "Caratteri Speciali", + "Latin": "Latino", + "Greek": "Greco", + "Cyrillic": "Cirillico", + "Punctuation": "Punteggiatura", + "Currency": "Valuta", + "Arrows": "Frecce", + "Math": "Matematica", + "Misc": "Misc", + + // Print. + "Print": "Stampa", + + // Spell Checker. + "Spell Checker": "Correttore Ortografico", + + // Help + "Help": "Aiuto", + "Shortcuts": "Scorciatoie", + "Inline Editor": "Editor in Linea", + "Show the editor": "Mostra Editor", + "Common actions": "Azioni comuni", + "Copy": "Copia", + "Cut": "Taglia", + "Paste": "Incolla", + "Basic Formatting": "Formattazione di base", + "Increase quote level": "Aumenta il livello di citazione", + "Decrease quote level": "Diminuisci il livello di citazione", + "Image / Video": "Immagine / Video", + "Resize larger": "Pi\u00f9 grande", + "Resize smaller": "Pi\u00f9 piccolo", + "Table": "Tabella", + "Select table cell": "Seleziona la cella della tabella", + "Extend selection one cell": "Estendi la selezione di una cella", + "Extend selection one row": "Estendi la selezione una riga", + "Navigation": "Navigazione", + "Focus popup / toolbar": "Metti a fuoco la barra degli strumenti", + "Return focus to previous position": "Rimetti il fuoco sulla posizione precedente", + + // Embed.ly + "Embed URL": "Incorpora URL", + "Paste in a URL to embed": "Incolla un URL da incorporare", + + // Word Paste. + "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Il contenuto incollato proviene da un documento di Microsoft Word. Vuoi mantenere la formattazione di Word o pulirlo?", + "Keep": "Mantieni", + "Clean": "Pulisci", + "Word Paste Detected": "\u00c8 stato rilevato un incolla da Word" + }, + direction: "ltr" +}; + +})); diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/ja.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/ja.js new file mode 100644 index 0000000..4cd26ca --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/ja.js @@ -0,0 +1,318 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + // require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + return factory(jQuery); + }; + } else { + // Browser globals + factory(window.jQuery); + } +}(function ($) { +/** + * Japanese + */ + +$.FE.LANGUAGE['ja'] = { + translation: { + // Place holder + "Type something": "\u3053\u3053\u306b\u5165\u529b\u3057\u307e\u3059", + + // Basic formatting + "Bold": "\u592a\u5b57", + "Italic": "\u659c\u4f53", + "Underline": "\u4e0b\u7dda", + "Strikethrough": "\u53d6\u308a\u6d88\u3057\u7dda", + + // Main buttons + "Insert": "\u633f\u5165", + "Delete": "\u524a\u9664", + "Cancel": "\u30ad\u30e3\u30f3\u30bb\u30eb", + "OK": "OK", + "Back": "\u623b\u308b", + "Remove": "\u524a\u9664", + "More": "\u3082\u3063\u3068", + "Update": "\u66f4\u65b0", + "Style": "\u30b9\u30bf\u30a4\u30eb", + + // Font + "Font Family": "\u30d5\u30a9\u30f3\u30c8", + "Font Size": "\u30d5\u30a9\u30f3\u30c8\u30b5\u30a4\u30ba", + + // Colors + "Colors": "\u8272", + "Background": "\u80cc\u666f", + "Text": "\u30c6\u30ad\u30b9\u30c8", + "HEX Color": "\u30d8\u30ad\u30b5\u306e\u8272", + + // Paragraphs + "Paragraph Format": "\u6bb5\u843d\u306e\u66f8\u5f0f", + "Normal": "\u6a19\u6e96", + "Code": "\u30b3\u30fc\u30c9", + "Heading 1": "\u30d8\u30c3\u30c0\u30fc 1", + "Heading 2": "\u30d8\u30c3\u30c0\u30fc 2", + "Heading 3": "\u30d8\u30c3\u30c0\u30fc 3", + "Heading 4": "\u30d8\u30c3\u30c0\u30fc 4", + + // Style + "Paragraph Style": "\u6bb5\u843d\u30b9\u30bf\u30a4\u30eb", + "Inline Style": "\u30a4\u30f3\u30e9\u30a4\u30f3\u30b9\u30bf\u30a4\u30eb", + + // Alignment + "Align": "\u914d\u7f6e", + "Align Left": "\u5de6\u63c3\u3048", + "Align Center": "\u4e2d\u592e\u63c3\u3048", + "Align Right": "\u53f3\u63c3\u3048", + "Align Justify": "\u4e21\u7aef\u63c3\u3048", + "None": "\u306a\u3057", + + // Lists + "Ordered List": "\u6bb5\u843d\u756a\u53f7", + "Unordered List": "\u7b87\u6761\u66f8\u304d", + + // Indent + "Decrease Indent": "\u30a4\u30f3\u30c7\u30f3\u30c8\u3092\u6e1b\u3089\u3059", + "Increase Indent": "\u30a4\u30f3\u30c7\u30f3\u30c8\u3092\u5897\u3084\u3059", + + // Links + "Insert Link": "\u30ea\u30f3\u30af\u306e\u633f\u5165", + "Open in new tab": "\u65b0\u3057\u3044\u30bf\u30d6\u3067\u958b\u304f", + "Open Link": "\u30ea\u30f3\u30af\u3092\u958b\u304f", + "Edit Link": "\u30ea\u30f3\u30af\u306e\u7de8\u96c6", + "Unlink": "\u30ea\u30f3\u30af\u306e\u524a\u9664", + "Choose Link": "\u30ea\u30f3\u30af\u3092\u9078\u629e", + + // Images + "Insert Image": "\u753b\u50cf\u306e\u633f\u5165", + "Upload Image": "\u753b\u50cf\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9", + "By URL": "\u753b\u50cf\u306eURL\u3092\u5165\u529b", + "Browse": "\u53c2\u7167", + "Drop image": "\u753b\u50cf\u3092\u30c9\u30e9\u30c3\u30b0&\u30c9\u30ed\u30c3\u30d7", + "or click": "\u307e\u305f\u306f\u30af\u30ea\u30c3\u30af", + "Manage Images": "\u753b\u50cf\u306e\u7ba1\u7406", + "Loading": "\u8aad\u307f\u8fbc\u307f\u4e2d", + "Deleting": "\u524a\u9664", + "Tags": "\u30bf\u30b0", + "Are you sure? Image will be deleted.": "\u672c\u5f53\u306b\u524a\u9664\u3057\u307e\u3059\u304b\uff1f", + "Replace": "\u7f6e\u63db", + "Uploading": "\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u4e2d", + "Loading image": "\u753b\u50cf\u8aad\u307f\u8fbc\u307f\u4e2d", + "Display": "\u8868\u793a", + "Inline": "\u30a4\u30f3\u30e9\u30a4\u30f3", + "Break Text": "\u30c6\u30ad\u30b9\u30c8\u306e\u6539\u884c", + "Alternate Text": "\u4ee3\u66ff\u30c6\u30ad\u30b9\u30c8", + "Change Size": "\u30b5\u30a4\u30ba\u5909\u66f4", + "Width": "\u5e45", + "Height": "\u9ad8\u3055", + "Something went wrong. Please try again.": "\u554f\u984c\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002\u3082\u3046\u4e00\u5ea6\u3084\u308a\u76f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002", + "Image Caption": "\u753b\u50cf\u30ad\u30e3\u30d7\u30b7\u30e7\u30f3", + "Advanced Edit": "\u9ad8\u5ea6\u306a\u7de8\u96c6", + + // Video + "Insert Video": "\u52d5\u753b\u306e\u633f\u5165", + "Embedded Code": "\u57cb\u3081\u8fbc\u307f\u30b3\u30fc\u30c9", + "Paste in a video URL": "\u52d5\u753bURL\u306b\u8cbc\u308a\u4ed8\u3051\u308b", + "Drop video": "\u52d5\u753b\u3092\u30c9\u30e9\u30c3\u30b0&\u30c9\u30ed\u30c3\u30d7", + "Your browser does not support HTML5 video.": "\u3042\u306a\u305f\u306e\u30d6\u30e9\u30a6\u30b6\u306fhtml5 video\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093\u3002", + "Upload Video": "\u52d5\u753b\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9", + + // Tables + "Insert Table": "\u8868\u306e\u633f\u5165", + "Table Header": "\u8868\u306e\u30d8\u30c3\u30c0\u30fc", + "Remove Table": "\u8868\u306e\u524a\u9664", + "Table Style": "\u8868\u306e\u30b9\u30bf\u30a4\u30eb", + "Horizontal Align": "\u6a2a\u4f4d\u7f6e", + "Row": "\u884c", + "Insert row above": "\u4e0a\u306b\u884c\u3092\u633f\u5165", + "Insert row below": "\u4e0b\u306b\u884c\u3092\u633f\u5165", + "Delete row": "\u884c\u306e\u524a\u9664", + "Column": "\u5217", + "Insert column before": "\u5de6\u306b\u5217\u3092\u633f\u5165", + "Insert column after": "\u53f3\u306b\u5217\u3092\u633f\u5165", + "Delete column": "\u5217\u306e\u524a\u9664", + "Cell": "\u30bb\u30eb", + "Merge cells": "\u30bb\u30eb\u306e\u7d50\u5408", + "Horizontal split": "\u6a2a\u5206\u5272", + "Vertical split": "\u7e26\u5206\u5272", + "Cell Background": "\u30bb\u30eb\u306e\u80cc\u666f", + "Vertical Align": "\u7e26\u4f4d\u7f6e", + "Top": "\u4e0a\u63c3\u3048", + "Middle": "\u4e2d\u592e\u63c3\u3048", + "Bottom": "\u4e0b\u63c3\u3048", + "Align Top": "\u4e0a\u306b\u63c3\u3048\u307e\u3059", + "Align Middle": "\u4e2d\u592e\u306b\u63c3\u3048\u307e\u3059", + "Align Bottom": "\u4e0b\u306b\u63c3\u3048\u307e\u3059", + "Cell Style": "\u30bb\u30eb\u30b9\u30bf\u30a4\u30eb", + + // Files + "Upload File": "\u30d5\u30a1\u30a4\u30eb\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9", + "Drop file": "\u30d5\u30a1\u30a4\u30eb\u3092\u30c9\u30e9\u30c3\u30b0&\u30c9\u30ed\u30c3\u30d7", + + // Emoticons + "Emoticons": "\u7d75\u6587\u5b57", + "Grinning face": "\u30cb\u30f3\u30de\u30ea\u9854", + "Grinning face with smiling eyes": "\u30cb\u30f3\u30de\u30ea\u9854(\u7b11\u3063\u3066\u3044\u308b\u76ee)", + "Face with tears of joy": "\u5b09\u3057\u6ce3\u304d\u3059\u308b\u9854", + "Smiling face with open mouth": "\u7b11\u9854(\u5e83\u3052\u305f\u53e3)", + "Smiling face with open mouth and smiling eyes": "\u7b11\u9854(\u5e83\u3052\u305f\u53e3\u3001\u7b11\u3063\u3066\u3044\u308b\u76ee)", + "Smiling face with open mouth and cold sweat": "\u7b11\u9854(\u5e83\u3052\u305f\u53e3\u3001\u51b7\u3084\u6c57)", + "Smiling face with open mouth and tightly-closed eyes": "\u7b11\u9854(\u5e83\u3052\u305f\u53e3\u3001\u3057\u3063\u304b\u308a\u9589\u3058\u305f\u76ee)", + "Smiling face with halo": "\u5929\u4f7f\u306e\u8f2a\u304c\u304b\u304b\u3063\u3066\u3044\u308b\u7b11\u9854", + "Smiling face with horns": "\u89d2\u306e\u3042\u308b\u7b11\u9854", + "Winking face": "\u30a6\u30a3\u30f3\u30af\u3057\u305f\u9854", + "Smiling face with smiling eyes": "\u7b11\u9854(\u7b11\u3063\u3066\u3044\u308b\u76ee)", + "Face savoring delicious food": "\u304a\u3044\u3057\u3044\u3082\u306e\u3092\u98df\u3079\u305f\u9854", + "Relieved face": "\u5b89\u5fc3\u3057\u305f\u9854", + "Smiling face with heart-shaped eyes": "\u76ee\u304c\u30cf\u30fc\u30c8\u306e\u7b11\u9854", + "Smiling face with sunglasses": "\u30b5\u30f3\u30b0\u30e9\u30b9\u3092\u304b\u3051\u305f\u7b11\u9854", + "Smirking face": "\u4f5c\u308a\u7b11\u3044", + "Neutral face": "\u7121\u8868\u60c5\u306e\u9854", + "Expressionless face": "\u7121\u8868\u60c5\u306a\u9854", + "Unamused face": "\u3064\u307e\u3089\u306a\u3044\u9854", + "Face with cold sweat": "\u51b7\u3084\u6c57\u3092\u304b\u3044\u305f\u9854", + "Pensive face": "\u8003\u3048\u4e2d\u306e\u9854", + "Confused face": "\u5c11\u3057\u3057\u3087\u3093\u307c\u308a\u3057\u305f\u9854", + "Confounded face": "\u56f0\u308a\u679c\u3066\u305f\u9854", + "Kissing face": "\u30ad\u30b9\u3059\u308b\u9854", + "Face throwing a kiss": "\u6295\u3052\u30ad\u30c3\u30b9\u3059\u308b\u9854", + "Kissing face with smiling eyes": "\u7b11\u3044\u306a\u304c\u3089\u30ad\u30b9\u3059\u308b\u9854", + "Kissing face with closed eyes": "\u76ee\u3092\u9589\u3058\u3066\u30ad\u30b9\u3059\u308b\u9854", + "Face with stuck out tongue": "\u304b\u3089\u304b\u3063\u305f\u9854(\u3042\u3063\u304b\u3093\u3079\u3048)", + "Face with stuck out tongue and winking eye": "\u30a6\u30a3\u30f3\u30af\u3057\u3066\u820c\u3092\u51fa\u3057\u305f\u9854", + "Face with stuck out tongue and tightly-closed eyes": "\u76ee\u3092\u9589\u3058\u3066\u820c\u3092\u51fa\u3057\u305f\u9854", + "Disappointed face": "\u843d\u3061\u8fbc\u3093\u3060\u9854", + "Worried face": "\u4e0d\u5b89\u306a\u9854", + "Angry face": "\u6012\u3063\u305f\u9854", + "Pouting face": "\u3075\u304f\u308c\u9854", + "Crying face": "\u6ce3\u3044\u3066\u3044\u308b\u9854", + "Persevering face": "\u5931\u6557\u9854", + "Face with look of triumph": "\u52dd\u3061\u307b\u3053\u3063\u305f\u9854", + "Disappointed but relieved face": "\u5b89\u5835\u3057\u305f\u9854", + "Frowning face with open mouth": "\u3044\u3084\u306a\u9854(\u958b\u3051\u305f\u53e3)", + "Anguished face": "\u3052\u3093\u306a\u308a\u3057\u305f\u9854", + "Fearful face": "\u9752\u3056\u3081\u305f\u9854", + "Weary face": "\u75b2\u308c\u305f\u9854", + "Sleepy face": "\u7720\u3044\u9854", + "Tired face": "\u3057\u3093\u3069\u3044\u9854", + "Grimacing face": "\u3061\u3087\u3063\u3068\u4e0d\u5feb\u306a\u9854", + "Loudly crying face": "\u5927\u6ce3\u304d\u3057\u3066\u3044\u308b\u9854", + "Face with open mouth": "\u53e3\u3092\u958b\u3051\u305f\u9854", + "Hushed face": "\u9ed9\u3063\u305f\u9854", + "Face with open mouth and cold sweat": "\u53e3\u3092\u958b\u3051\u305f\u9854(\u51b7\u3084\u6c57)", + "Face screaming in fear": "\u6050\u6016\u306e\u53eb\u3073\u9854", + "Astonished face": "\u9a5a\u3044\u305f\u9854", + "Flushed face": "\u71b1\u3063\u307d\u3044\u9854", + "Sleeping face": "\u5bdd\u9854", + "Dizzy face": "\u307e\u3044\u3063\u305f\u9854", + "Face without mouth": "\u53e3\u306e\u306a\u3044\u9854", + "Face with medical mask": "\u30de\u30b9\u30af\u3057\u305f\u9854", + + // Line breaker + "Break": "\u6539\u884c", + + // Math + "Subscript": "\u4e0b\u4ed8\u304d\u6587\u5b57", + "Superscript": "\u4e0a\u4ed8\u304d\u6587\u5b57", + + // Full screen + "Fullscreen": "\u5168\u753b\u9762\u8868\u793a", + + // Horizontal line + "Insert Horizontal Line": "\u6c34\u5e73\u7dda\u306e\u633f\u5165", + + // Clear formatting + "Clear Formatting": "\u66f8\u5f0f\u306e\u30af\u30ea\u30a2", + + // Undo, redo + "Undo": "\u5143\u306b\u623b\u3059", + "Redo": "\u3084\u308a\u76f4\u3059", + + // Select all + "Select All": "\u5168\u3066\u3092\u9078\u629e", + + // Code view + "Code View": "HTML\u30bf\u30b0\u8868\u793a", + + // Quote + "Quote": "\u5f15\u7528", + "Increase": "\u5897\u52a0", + "Decrease": "\u6e1b\u5c11", + + // Quick Insert + "Quick Insert": "\u30af\u30a4\u30c3\u30af\u633f\u5165", + + // Spcial Characters + "Special Characters": "\u7279\u6b8a\u6587\u5b57", + "Latin": "\u30e9\u30c6\u30f3\u8a9e", + "Greek": "\u30ae\u30ea\u30b7\u30e3\u8a9e", + "Cyrillic": "\u30ad\u30ea\u30eb\u6587\u5b57", + "Punctuation": "\u53e5\u8aad\u70b9", + "Currency": "\u901a\u8ca8", + "Arrows": "\u77e2\u5370", + "Math": "\u6570\u5b66", + "Misc": "\u305d\u306e\u4ed6", + + // Print. + "Print": "\u5370\u5237", + + // Spell Checker. + "Spell Checker": "\u30b9\u30da\u30eb\u30c1\u30a7\u30c3\u30af", + + // Help + "Help": "\u30d8\u30eb\u30d7", + "Shortcuts": "\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8", + "Inline Editor": "\u30a4\u30f3\u30e9\u30a4\u30f3\u30a8\u30c7\u30a3\u30bf", + "Show the editor": "\u30a8\u30c7\u30a3\u30bf\u3092\u8868\u793a", + "Common actions": "\u4e00\u822c\u52d5\u4f5c", + "Copy": "\u30b3\u30d4\u30fc", + "Cut": "\u30ab\u30c3\u30c8", + "Paste": "\u8cbc\u308a\u4ed8\u3051", + "Basic Formatting": "\u57fa\u672c\u66f8\u5f0f", + "Increase quote level": "\u5f15\u7528\u3092\u5897\u3084\u3059", + "Decrease quote level": "\u5f15\u7528\u3092\u6e1b\u3089\u3059", + "Image / Video": "\u753b\u50cf/\u52d5\u753b", + "Resize larger": "\u5927\u304d\u304f\u3059\u308b", + "Resize smaller": "\u5c0f\u3055\u304f\u3059\u308b", + "Table": "\u8868", + "Select table cell": "\u30bb\u30eb\u3092\u9078\u629e", + "Extend selection one cell": "\u30bb\u30eb\u306e\u9078\u629e\u7bc4\u56f2\u3092\u5e83\u3052\u308b", + "Extend selection one row": "\u5217\u306e\u9078\u629e\u7bc4\u56f2\u3092\u5e83\u3052\u308b", + "Navigation": "\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3", + "Focus popup / toolbar": "\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7/\u30c4\u30fc\u30eb\u30d0\u30fc\u3092\u30d5\u30a9\u30fc\u30ab\u30b9", + "Return focus to previous position": "\u524d\u306e\u4f4d\u7f6e\u306b\u30d5\u30a9\u30fc\u30ab\u30b9\u3092\u623b\u3059", + + //\u00a0Embed.ly + "Embed URL": "\u57cb\u3081\u8fbc\u307fURL", + "Paste in a URL to embed": "\u57cb\u3081\u8fbc\u307fURL\u306b\u8cbc\u308a\u4ed8\u3051\u308b", + + // Word Paste. + "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "\u8cbc\u308a\u4ed8\u3051\u305f\u6587\u66f8\u306fMicrosoft Word\u304b\u3089\u53d6\u5f97\u3055\u308c\u307e\u3059\u3002\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092\u4fdd\u6301\u3057\u3066\u8cbc\u308a\u4ed8\u3051\u307e\u3059\u304b\uff1f", + "Keep": "\u66f8\u5f0f\u3092\u4fdd\u6301\u3059\u308b", + "Clean": "\u66f8\u5f0f\u3092\u4fdd\u6301\u3057\u306a\u3044", + "Word Paste Detected": "Microsoft Word\u306e\u8cbc\u308a\u4ed8\u3051\u304c\u691c\u51fa\u3055\u308c\u307e\u3057\u305f" + }, + direction: "ltr" +}; + +})); diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/ko.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/ko.js new file mode 100644 index 0000000..68f43ae --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/ko.js @@ -0,0 +1,318 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + // require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + return factory(jQuery); + }; + } else { + // Browser globals + factory(window.jQuery); + } +}(function ($) { +/** + * Korean + */ + +$.FE.LANGUAGE['ko'] = { + translation: { + // Place holder + "Type something": "\ub0b4\uc6a9\uc744 \uc785\ub825\ud558\uc138\uc694", + + // Basic formatting + "Bold": "\uad75\uac8c", + "Italic": "\uae30\uc6b8\uc784\uaf34", + "Underline": "\ubc11\uc904", + "Strikethrough": "\ucde8\uc18c\uc120", + + // Main buttons + "Insert": "\uc0bd\uc785", + "Delete": "\uc0ad\uc81c", + "Cancel": "\ucde8\uc18c", + "OK": "\uc2b9\uc778", + "Back": "\ub4a4\ub85c", + "Remove": "\uc81c\uac70", + "More": "\ub354", + "Update": "\uc5c5\ub370\uc774\ud2b8", + "Style": "\uc2a4\ud0c0\uc77c", + + // Font + "Font Family": "\uae00\uaf34", + "Font Size": "\ud3f0\ud2b8 \ud06c\uae30", + + // Colors + "Colors": "\uc0c9\uc0c1", + "Background": "\ubc30\uacbd", + "Text": "\ud14d\uc2a4\ud2b8", + "HEX Color": "\ud5e5\uc2a4 \uc0c9\uc0c1", + + // Paragraphs + "Paragraph Format": "\ub2e8\ub77d", + "Normal": "\ud45c\uc900", + "Code": "\ucf54\ub4dc", + "Heading 1": "\uc81c\ubaa9 1", + "Heading 2": "\uc81c\ubaa9 2", + "Heading 3": "\uc81c\ubaa9 3", + "Heading 4": "\uc81c\ubaa9 4", + + // Style + "Paragraph Style": "\ub2e8\ub77d \uc2a4\ud0c0\uc77c", + "Inline Style": "\uc778\ub77c\uc778 \uc2a4\ud0c0\uc77c", + + // Alignment + "Align": "\uc815\ub82c", + "Align Left": "\uc67c\ucabd\uc815\ub82c", + "Align Center": "\uac00\uc6b4\ub370\uc815\ub82c", + "Align Right": "\uc624\ub978\ucabd\uc815\ub82c", + "Align Justify": "\uc591\ucabd\uc815\ub82c", + "None": "\uc5c6\uc74c", + + // Lists + "Ordered List": "\uc22b\uc790\ub9ac\uc2a4\ud2b8", + "Unordered List": "\uc810 \ub9ac\uc2a4\ud2b8", + + // Indent + "Decrease Indent": "\ub0b4\uc5b4\uc4f0\uae30", + "Increase Indent": "\ub4e4\uc5ec\uc4f0\uae30", + + // Links + "Insert Link": "\ub9c1\ud06c \uc0bd\uc785", + "Open in new tab": "\uc0c8 \ud0ed\uc5d0\uc11c \uc5f4\uae30", + "Open Link": "\ub9c1\ud06c \uc5f4\uae30", + "Edit Link": "\ud3b8\uc9d1 \ub9c1\ud06c", + "Unlink": "\ub9c1\ud06c\uc0ad\uc81c", + "Choose Link": "\ub9c1\ud06c\ub97c \uc120\ud0dd", + + // Images + "Insert Image": "\uc774\ubbf8\uc9c0 \uc0bd\uc785", + "Upload Image": "\uc774\ubbf8\uc9c0 \uc5c5\ub85c\ub4dc", + "By URL": "URL \ub85c", + "Browse": "\uac80\uc0c9", + "Drop image": "\uc774\ubbf8\uc9c0\ub97c \ub4dc\ub798\uadf8&\ub4dc\ub86d", + "or click": "\ub610\ub294 \ud074\ub9ad", + "Manage Images": "\uc774\ubbf8\uc9c0 \uad00\ub9ac", + "Loading": "\ub85c\ub4dc", + "Deleting": "\uc0ad\uc81c", + "Tags": "\ud0dc\uadf8", + "Are you sure? Image will be deleted.": "\ud655\uc2e4\ud55c\uac00\uc694? \uc774\ubbf8\uc9c0\uac00 \uc0ad\uc81c\ub429\ub2c8\ub2e4.", + "Replace": "\uad50\uccb4", + "Uploading": "\uc5c5\ub85c\ub4dc", + "Loading image": "\uc774\ubbf8\uc9c0 \ub85c\ub4dc \uc911", + "Display": "\ub514\uc2a4\ud50c\ub808\uc774", + "Inline": "\uc778\ub77c\uc778", + "Break Text": "\uad6c\ubd84 \ud14d\uc2a4\ud2b8", + "Alternate Text": "\ub300\uccb4 \ud14d\uc2a4\ud2b8", + "Change Size": "\ud06c\uae30 \ubcc0\uacbd", + "Width": "\ud3ed", + "Height": "\ub192\uc774", + "Something went wrong. Please try again.": "\ubb38\uc81c\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4. \ub2e4\uc2dc \uc2dc\ub3c4\ud558\uc2ed\uc2dc\uc624.", + "Image Caption": "\uc774\ubbf8\uc9c0 \ucea1\uc158", + "Advanced Edit": "\uace0\uae09 \ud3b8\uc9d1", + + // Video + "Insert Video": "\ub3d9\uc601\uc0c1 \uc0bd\uc785", + "Embedded Code": "\uc784\ubca0\ub514\ub4dc \ucf54\ub4dc", + "Paste in a video URL": "\ub3d9\uc601\uc0c1 URL\uc5d0 \ubd99\uc5ec \ub123\uae30", + "Drop video": "\ub3d9\uc601\uc0c1\uc744 \ub4dc\ub798\uadf8&\ub4dc\ub86d", + "Your browser does not support HTML5 video.": "\uadc0\ud558\uc758 \ube0c\ub77c\uc6b0\uc800\ub294 html5 video\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.", + "Upload Video": "\ub3d9\uc601\uc0c1 \uc5c5\ub85c\ub4dc", + + // Tables + "Insert Table": "\ud45c \uc0bd\uc785", + "Table Header": "\ud45c \ud5e4\ub354", + "Remove Table": "\ud45c \uc81c\uac70", + "Table Style": "\ud45c \uc2a4\ud0c0\uc77c", + "Horizontal Align": "\uc218\ud3c9 \uc815\ub82c", + "Row": "\ud589", + "Insert row above": "\uc55e\uc5d0 \ud589\uc744 \uc0bd\uc785", + "Insert row below": "\ub4a4\uc5d0 \ud589\uc744 \uc0bd\uc785", + "Delete row": "\ud589 \uc0ad\uc81c", + "Column": "\uc5f4", + "Insert column before": "\uc55e\uc5d0 \uc5f4\uc744 \uc0bd\uc785", + "Insert column after": "\ub4a4\uc5d0 \uc5f4\uc744 \uc0bd\uc785", + "Delete column": "\uc5f4 \uc0ad\uc81c", + "Cell": "\uc140", + "Merge cells": "\uc140 \ud569\uce58\uae30", + "Horizontal split": "\uc218\ud3c9 \ubd84\ud560", + "Vertical split": "\uc218\uc9c1 \ubd84\ud560", + "Cell Background": "\uc140 \ubc30\uacbd", + "Vertical Align": "\uc218\uc9c1 \uc815\ub82c", + "Top": "\uc704\ucabd \uc815\ub82c", + "Middle": "\uac00\uc6b4\ub370 \uc815\ub82c", + "Bottom": "\uc544\ub798\ucabd \uc815\ub82c", + "Align Top": "\uc704\ucabd\uc73c\ub85c \uc815\ub82c\ud569\ub2c8\ub2e4.", + "Align Middle": "\uac00\uc6b4\ub370\ub85c \uc815\ub82c\ud569\ub2c8\ub2e4.", + "Align Bottom": "\uc544\ub798\ucabd\uc73c\ub85c \uc815\ub82c\ud569\ub2c8\ub2e4.", + "Cell Style": "\uc140 \uc2a4\ud0c0\uc77c", + + // Files + "Upload File": "\ud30c\uc77c \ucca8\ubd80", + "Drop file": "\ud30c\uc77c\uc744 \ub4dc\ub798\uadf8&\ub4dc\ub86d", + + // Emoticons + "Emoticons": "\uc774\ubaa8\ud2f0\ucf58", + "Grinning face": "\uc5bc\uad74 \uc6c3\uae30\ub9cc", + "Grinning face with smiling eyes": "\ubbf8\uc18c\ub294 \ub208\uc744 \uac00\uc9c4 \uc5bc\uad74 \uc6c3\uae30\ub9cc", + "Face with tears of joy": "\uae30\uc068\uc758 \ub208\ubb3c\ub85c \uc5bc\uad74", + "Smiling face with open mouth": "\uc624\ud508 \uc785\uc73c\ub85c \uc6c3\ub294 \uc5bc\uad74", + "Smiling face with open mouth and smiling eyes": "\uc624\ud508 \uc785\uc73c\ub85c \uc6c3\ub294 \uc5bc\uad74\uacfc \ub208\uc744 \ubbf8\uc18c", + "Smiling face with open mouth and cold sweat": "\uc785\uc744 \uc5f4\uace0 \uc2dd\uc740 \ub540\uacfc \ud568\uaed8 \uc6c3\ub294 \uc5bc\uad74", + "Smiling face with open mouth and tightly-closed eyes": "\uc624\ud508 \uc785\uacfc \ubc00\uc811\ud558\uac8c \ub2eb\ud78c \ub41c \ub208\uc744 \uac00\uc9c4 \uc6c3\ub294 \uc5bc\uad74", + "Smiling face with halo": "\ud6c4\uad11 \uc6c3\ub294 \uc5bc\uad74", + "Smiling face with horns": "\ubfd4 \uc6c3\ub294 \uc5bc\uad74", + "Winking face": "\uc5bc\uad74 \uc719\ud06c", + "Smiling face with smiling eyes": "\uc6c3\ub294 \ub208\uc73c\ub85c \uc6c3\ub294 \uc5bc\uad74", + "Face savoring delicious food": "\ub9db\uc788\ub294 \uc74c\uc2dd\uc744 \uc74c\ubbf8 \uc5bc\uad74", + "Relieved face": "\uc548\ub3c4 \uc5bc\uad74", + "Smiling face with heart-shaped eyes": "\ud558\ud2b8 \ubaa8\uc591\uc758 \ub208\uc73c\ub85c \uc6c3\ub294 \uc5bc\uad74", + "Smiling face with sunglasses": "\uc120\uae00\ub77c\uc2a4 \uc6c3\ub294 \uc5bc\uad74", + "Smirking face": "\ub3c8\uc744 \uc9c0\ubd88 \uc5bc\uad74", + "Neutral face": "\uc911\ub9bd \uc5bc\uad74", + "Expressionless face": "\ubb34\ud45c\uc815 \uc5bc\uad74", + "Unamused face": "\uc990\uac81\uac8c\ud558\uc9c0 \uc5bc\uad74", + "Face with cold sweat": "\uc2dd\uc740 \ub540\uacfc \uc5bc\uad74", + "Pensive face": "\uc7a0\uaca8\uc788\ub294 \uc5bc\uad74", + "Confused face": "\ud63c\ub780 \uc5bc\uad74", + "Confounded face": "\ub9dd\ud560 \uac83 \uc5bc\uad74", + "Kissing face": "\uc5bc\uad74\uc744 \ud0a4\uc2a4", + "Face throwing a kiss": "\ud0a4\uc2a4\ub97c \ub358\uc9c0\uace0 \uc5bc\uad74", + "Kissing face with smiling eyes": "\ubbf8\uc18c\ub294 \ub208\uc744 \uac00\uc9c4 \uc5bc\uad74\uc744 \ud0a4\uc2a4", + "Kissing face with closed eyes": "\ub2eb\ud78c \ub41c \ub208\uc744 \uac00\uc9c4 \uc5bc\uad74\uc744 \ud0a4\uc2a4", + "Face with stuck out tongue": "\ub0b4\ubc00 \ud600 \uc5bc\uad74", + "Face with stuck out tongue and winking eye": "\ub0b4\ubc00 \ud600\uc640 \uc719\ud06c \ub208\uacfc \uc5bc\uad74", + "Face with stuck out tongue and tightly-closed eyes": "\ubc16\uc73c\ub85c \ubd99\uc5b4 \ud600\uc640 \ubc00\uc811\ud558\uac8c \ub2eb\ud78c \ub41c \ub208\uc744 \uac00\uc9c4 \uc5bc\uad74", + "Disappointed face": "\uc2e4\ub9dd \uc5bc\uad74", + "Worried face": "\uac71\uc815 \uc5bc\uad74", + "Angry face": "\uc131\ub09c \uc5bc\uad74", + "Pouting face": "\uc5bc\uad74\uc744 \uc090", + "Crying face": "\uc5bc\uad74 \uc6b0\ub294", + "Persevering face": "\uc5bc\uad74\uc744 \uc778\ub0b4", + "Face with look of triumph": "\uc2b9\ub9ac\uc758 \ud45c\uc815\uc73c\ub85c \uc5bc\uad74", + "Disappointed but relieved face": "\uc2e4\ub9dd\ud558\uc9c0\ub9cc \uc5bc\uad74\uc744 \uc548\uc2ec", + "Frowning face with open mouth": "\uc624\ud508 \uc785\uc73c\ub85c \uc5bc\uad74\uc744 \ucc21\uadf8\ub9bc", + "Anguished face": "\uace0\ub1cc\uc758 \uc5bc\uad74", + "Fearful face": "\ubb34\uc11c\uc6b4 \uc5bc\uad74", + "Weary face": "\uc9c0\uce5c \uc5bc\uad74", + "Sleepy face": "\uc2ac\ub9ac\ud53c \uc5bc\uad74", + "Tired face": "\ud53c\uace4 \uc5bc\uad74", + "Grimacing face": "\uc5bc\uad74\uc744 \ucc21\uadf8\ub9b0", + "Loudly crying face": "\ud070 \uc18c\ub9ac\ub85c \uc5bc\uad74\uc744 \uc6b8\uace0", + "Face with open mouth": "\uc624\ud508 \uc785\uc73c\ub85c \uc5bc\uad74", + "Hushed face": "\uc870\uc6a9\ud55c \uc5bc\uad74", + "Face with open mouth and cold sweat": "\uc785\uc744 \uc5f4\uace0 \uc2dd\uc740 \ub540\uc73c\ub85c \uc5bc\uad74", + "Face screaming in fear": "\uacf5\ud3ec\uc5d0 \ube44\uba85 \uc5bc\uad74", + "Astonished face": "\ub180\ub77c \uc5bc\uad74", + "Flushed face": "\ud50c\ub7ec\uc2dc \uc5bc\uad74", + "Sleeping face": "\uc5bc\uad74 \uc7a0\uc790\ub294", + "Dizzy face": "\ub514\uc9c0 \uc5bc\uad74", + "Face without mouth": "\uc785\uc5c6\uc774 \uc5bc\uad74", + "Face with medical mask": "\uc758\ub8cc \ub9c8\uc2a4\ud06c\ub85c \uc5bc\uad74", + + // Line breaker + "Break": "\ub2e8\uc808", + + // Math + "Subscript": "\uc544\ub798 \ucca8\uc790", + "Superscript": "\uc704 \ucca8\uc790", + + // Full screen + "Fullscreen": "\uc804\uccb4 \ud654\uba74", + + // Horizontal line + "Insert Horizontal Line": "\uc218\ud3c9\uc120\uc744 \uc0bd\uc785", + + // Clear formatting + "Clear Formatting": "\uc11c\uc2dd \uc81c\uac70", + + // Undo, redo + "Undo": "\uc2e4\ud589 \ucde8\uc18c", + "Redo": "\ub418\ub3cc\ub9ac\uae30", + + // Select all + "Select All": "\uc804\uccb4\uc120\ud0dd", + + // Code view + "Code View": "\ucf54\ub4dc\ubcf4\uae30", + + // Quote + "Quote": "\uc778\uc6a9", + "Increase": "\uc99d\uac00", + "Decrease": "\uac10\uc18c", + + // Quick Insert + "Quick Insert": "\ube60\ub978 \uc0bd\uc785", + + // Spcial Characters + "Special Characters": "\ud2b9\uc218 \ubb38\uc790", + "Latin": "\ub77c\ud2f4\uc5b4", + "Greek": "\uadf8\ub9ac\uc2a4\uc5b4", + "Cyrillic": "\ud0a4\ub9b4 \ubb38\uc790", + "Punctuation": "\ubb38\uc7a5\ubd80\ud638", + "Currency": "\ud1b5\ud654", + "Arrows": "\ud654\uc0b4\ud45c", + "Math": "\uc218\ud559", + "Misc": "\uadf8 \uc678", + + // Print. + "Print": "\uc778\uc1c4", + + // Spell Checker. + "Spell Checker": "\ub9de\ucda4\ubc95 \uac80\uc0ac\uae30", + + // Help + "Help": "\ub3c4\uc6c0\ub9d0", + "Shortcuts": "\ub2e8\ucd95\ud0a4", + "Inline Editor": "\uc778\ub77c\uc778 \uc5d0\ub514\ud130", + "Show the editor": "\uc5d0\ub514\ud130 \ubcf4\uae30", + "Common actions": "\uc77c\ubc18 \ub3d9\uc791", + "Copy": "\ubcf5\uc0ac\ud558\uae30", + "Cut": "\uc798\ub77c\ub0b4\uae30", + "Paste": "\ubd99\uc5ec\ub123\uae30", + "Basic Formatting": "\uae30\ubcf8 \uc11c\uc2dd", + "Increase quote level": "\uc778\uc6a9 \uc99d\uac00", + "Decrease quote level": "\uc778\uc6a9 \uac10\uc18c", + "Image / Video": "\uc774\ubbf8\uc9c0 / \ub3d9\uc601\uc0c1", + "Resize larger": "\ud06c\uae30\ub97c \ub354 \ud06c\uac8c \uc870\uc815", + "Resize smaller": "\ud06c\uae30\ub97c \ub354 \uc791\uac8c \uc870\uc815", + "Table": "\ud45c", + "Select table cell": "\ud45c \uc140 \uc120\ud0dd", + "Extend selection one cell": "\uc140\uc758 \uc120\ud0dd \ubc94\uc704\ub97c \ud655\uc7a5", + "Extend selection one row": "\ud589\uc758 \uc120\ud0dd \ubc94\uc704\ub97c \ud655\uc7a5", + "Navigation": "\ub124\ube44\uac8c\uc774\uc158", + "Focus popup / toolbar": "\ud31d\uc5c5 / \ud234\ubc14\ub97c \ud3ec\ucee4\uc2a4", + "Return focus to previous position": "\uc774\uc804 \uc704\uce58\ub85c \ud3ec\ucee4\uc2a4 \ub418\ub3cc\ub9ac\uae30", + + // Embed.ly + "Embed URL": "\uc784\ubca0\ub4dc URL", + "Paste in a URL to embed": "\uc784\ubca0\ub4dc URL\uc5d0 \ubd99\uc5ec \ub123\uae30", + + // Word Paste. + "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "\ubd99\uc5ec\ub123\uc740 \ubb38\uc11c\ub294 \ub9c8\uc774\ud06c\ub85c\uc18c\ud504\ud2b8 \uc6cc\ub4dc\uc5d0\uc11c \uac00\uc838\uc654\uc2b5\ub2c8\ub2e4. \ud3ec\ub9f7\uc744 \uc720\uc9c0\ud558\uac70\ub098 \uc815\ub9ac \ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?", + "Keep": "\uc720\uc9c0", + "Clean": "\uc815\ub9ac", + "Word Paste Detected": "\uc6cc\ub4dc \ubd99\uc5ec \ub123\uae30\uac00 \uac80\ucd9c \ub418\uc5c8\uc2b5\ub2c8\ub2e4." + }, + direction: "ltr" +}; + +})); diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/me.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/me.js new file mode 100644 index 0000000..b64c288 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/me.js @@ -0,0 +1,318 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + // require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + return factory(jQuery); + }; + } else { + // Browser globals + factory(window.jQuery); + } +}(function ($) { +/** + * Montenegrin + */ + +$.FE.LANGUAGE['me'] = { + translation: { + // Place holder + "Type something": "Ukucajte ne\u0161tp", + + // Basic formatting + "Bold": "Bold", + "Italic": "Italic", + "Underline": "Podvu\u010deno", + "Strikethrough": "Prekri\u017eano", + + // Main buttons + "Insert": "Umetni", + "Delete": "Obri\u0161i", + "Cancel": "Otka\u017ei", + "OK": "U redu", + "Back": "Natrag", + "Remove": "Ukloni", + "More": "Vi\u0161e", + "Update": "A\u017euriranje", + "Style": "Stil", + + // Font + "Font Family": "Odaberi font", + "Font Size": "Veli\u010dina fonta", + + // Colors + "Colors": "Boje", + "Background": "Pozadine", + "Text": "Teksta", + "HEX Color": "HEX boje", + + // Paragraphs + "Paragraph Format": "Paragraf formatu", + "Normal": "Normalno", + "Code": "Izvorni kod", + "Heading 1": "Naslov 1", + "Heading 2": "Naslov 2", + "Heading 3": "Naslov 3", + "Heading 4": "Naslov 4", + + // Style + "Paragraph Style": "Paragraf stil", + "Inline Style": "Inline stil", + + // Alignment + "Align": "Poravnaj", + "Align Left": "Poravnaj lijevo", + "Align Center": "Poravnaj po sredini", + "Align Right": "Poravnaj desno", + "Align Justify": "Cjelokupno poravnanje", + "None": "Nijedan", + + // Lists + "Ordered List": "Ure\u0111ena lista", + "Unordered List": "Nesre\u0111ene lista", + + // Indent + "Decrease Indent": "Smanjenje alineja", + "Increase Indent": "Pove\u0107anje alineja", + + // Links + "Insert Link": "Umetni link", + "Open in new tab": "Otvori u novom prozoru", + "Open Link": "Otvori link", + "Edit Link": "Uredi link", + "Unlink": "Ukloni link", + "Choose Link": "Izabrati link", + + // Images + "Insert Image": "Umetni sliku", + "Upload Image": "Upload sliku", + "By URL": "Preko URL", + "Browse": "Pregledaj", + "Drop image": "Izbaci sliku", + "or click": "ili odaberi", + "Manage Images": "Upravljanje ilustracijama", + "Loading": "Koji tovari", + "Deleting": "Brisanje", + "Tags": "Oznake", + "Are you sure? Image will be deleted.": "Da li ste sigurni da \u017eelite da obri\u0161ete ovu ilustraciju?", + "Replace": "Zamijenite", + "Uploading": "Uploading", + "Loading image": "Koji tovari sliku", + "Display": "Prikaz", + "Inline": "Inline", + "Break Text": "Break tekst", + "Alternate Text": "Alternativna tekst", + "Change Size": "Promijeni veli\u010dinu", + "Width": "\u0161irina", + "Height": "Visina", + "Something went wrong. Please try again.": "Ne\u0161to je po\u0161lo po zlu. Molimo vas da poku\u0161ate ponovo.", + "Image Caption": "Slika natpisa", + "Advanced Edit": "Napredno uređivanje", + + // Video + "Insert Video": "Umetni video", + "Embedded Code": "Embedded kod", + "Paste in a video URL": "Prilepite v URL video posnetka", + "Drop video": "Izbaci video", + "Your browser does not support HTML5 video.": "Váš prehliadač nepodporuje video HTML5.", + "Upload Video": "Upload video", + + // Tables + "Insert Table": "Umetni tabelu", + "Table Header": "Zaglavlje tabelu", + "Remove Table": "Izbri\u0161i tabelu", + "Table Style": "Tabelu stil", + "Horizontal Align": "Horizontalna poravnanje", + "Row": "Red", + "Insert row above": "Umetni red iznad", + "Insert row below": "Umetni red ispod", + "Delete row": "Obri\u0161i red", + "Column": "Kolona", + "Insert column before": "Umetni kolonu prije", + "Insert column after": "Umetni kolonu poslije", + "Delete column": "Obri\u0161i kolonu", + "Cell": "\u0106elija", + "Merge cells": "Spoji \u0107elija", + "Horizontal split": "Horizontalno razdvajanje polja", + "Vertical split": "Vertikalno razdvajanje polja", + "Cell Background": "\u0106elija pozadini", + "Vertical Align": "Vertikalni poravnaj", + "Top": "Vrh", + "Middle": "Srednji", + "Bottom": "Dno", + "Align Top": "Poravnaj vrh", + "Align Middle": "Poravnaj srednji", + "Align Bottom": "Poravnaj dno", + "Cell Style": "\u0106elija stil", + + // Files + "Upload File": "Upload datoteke", + "Drop file": "Drop datoteke", + + // Emoticons + "Emoticons": "Emotikona", + "Grinning face": "Cere\u0107i lice", + "Grinning face with smiling eyes": "Cere\u0107i lice nasmijana o\u010dima", + "Face with tears of joy": "Lice sa suze radosnice", + "Smiling face with open mouth": "Nasmijana lica s otvorenih usta", + "Smiling face with open mouth and smiling eyes": "Nasmijana lica s otvorenih usta i nasmijana o\u010di", + "Smiling face with open mouth and cold sweat": "Nasmijana lica s otvorenih usta i hladan znoj", + "Smiling face with open mouth and tightly-closed eyes": "Nasmijana lica s otvorenih usta i \u010dvrsto-zatvorenih o\u010diju", + "Smiling face with halo": "Nasmijana lica sa halo", + "Smiling face with horns": "Nasmijana lica s rogovima", + "Winking face": "Namigivanje lice", + "Smiling face with smiling eyes": "Nasmijana lica sa nasmijana o\u010dima", + "Face savoring delicious food": "Suo\u010davaju uživaju\u0107i ukusna hrana", + "Relieved face": "Laknulo lice", + "Smiling face with heart-shaped eyes": "Nasmijana lica sa obliku srca o\u010di", + "Smiling face with sunglasses": "Nasmijana lica sa sun\u010dane nao\u010dare", + "Smirking face": "Namr\u0161tena lica", + "Neutral face": "Neutral lice", + "Expressionless face": "Bezizra\u017eajno lice", + "Unamused face": "Nije zabavno lice", + "Face with cold sweat": "Lice s hladnim znojem", + "Pensive face": "Zami\u0161ljen lice", + "Confused face": "Zbunjen lice", + "Confounded face": "Uzbu\u0111en lice", + "Kissing face": "Ljubakanje lice", + "Face throwing a kiss": "Suo\u010davaju bacanje poljubac", + "Kissing face with smiling eyes": "Ljubljenje lice nasmijana o\u010dima", + "Kissing face with closed eyes": "Ljubljenje lice sa zatvorenim o\u010dima", + "Face with stuck out tongue": "Lice sa ispru\u017eio jezik", + "Face with stuck out tongue and winking eye": "Lice sa ispru\u017eio jezik i trep\u0107u\u0107e \u0107e oko", + "Face with stuck out tongue and tightly-closed eyes": "Lice sa ispru\u017eio jezik i \u010dvrsto zatvorene o\u010di", + "Disappointed face": "Razo\u010daran lice", + "Worried face": "Zabrinuti lice", + "Angry face": "Ljut lice", + "Pouting face": "Napu\u0107enim lice", + "Crying face": "Plakanje lice", + "Persevering face": "Istrajan lice", + "Face with look of triumph": "Lice s pogledom trijumfa", + "Disappointed but relieved face": "Razo\u010daran, ali olak\u0161anje lice", + "Frowning face with open mouth": "Namr\u0161tiv\u0161i lice s otvorenih usta", + "Anguished face": "Bolnom lice", + "Fearful face": "Pla\u0161ljiv lice", + "Weary face": "Umoran lice", + "Sleepy face": "Pospan lice", + "Tired face": "Umorno lice", + "Grimacing face": "Grimase lice", + "Loudly crying face": "Glasno pla\u010de lice", + "Face with open mouth": "Lice s otvorenih usta", + "Hushed face": "Smiren lice", + "Face with open mouth and cold sweat": "Lice s otvorenih usta i hladan znoj", + "Face screaming in fear": "Suo\u010davaju vri\u0161ti u strahu", + "Astonished face": "Zapanjen lice", + "Flushed face": "Rumeno lice", + "Sleeping face": "Usnulo lice", + "Dizzy face": "O\u0161amu\u0107en lice", + "Face without mouth": "Lice bez usta", + "Face with medical mask": "Lice sa medicinskom maskom", + + // Line breaker + "Break": "Slomiti", + + // Math + "Subscript": "Potpisan", + "Superscript": "Natpis", + + // Full screen + "Fullscreen": "Preko cijelog zaslona", + + // Horizontal line + "Insert Horizontal Line": "Umetni vodoravna liniju", + + // Clear formatting + "Clear Formatting": "Izbrisati formatiranje", + + // Undo, redo + "Undo": "Korak nazad", + "Redo": "Korak naprijed", + + // Select all + "Select All": "Ozna\u010di sve", + + // Code view + "Code View": "Kod pogled", + + // Quote + "Quote": "Citat", + "Increase": "Pove\u0107ati", + "Decrease": "Smanjenje", + + // Quick Insert + "Quick Insert": "Brzo umetni", + + // Spcial Characters + "Special Characters": "Specijalni znakovi", + "Latin": "Latino", + "Greek": "Grk", + "Cyrillic": "Ćirilica", + "Punctuation": "Interpunkcije", + "Currency": "Valuta", + "Arrows": "Strelice", + "Math": "Matematika", + "Misc": "Misc", + + // Print. + "Print": "Odštampaj", + + // Spell Checker. + "Spell Checker": "Kontrolor pravopisa", + + // Help + "Help": "Pomoć", + "Shortcuts": "Prečice", + "Inline Editor": "Pri upisivanju Editor", + "Show the editor": "Prikaži urednik", + "Common actions": "Zajedničke akcije", + "Copy": "Kopija", + "Cut": "Rez", + "Paste": "Nalepi", + "Basic Formatting": "Osnovno oblikovanje", + "Increase quote level": "Povećati ponudu za nivo", + "Decrease quote level": "Smanjenje ponude nivo", + "Image / Video": "Slika / Video", + "Resize larger": "Veće veličine", + "Resize smaller": "Promena veličine manji", + "Table": "Sto", + "Select table cell": "Select ćelije", + "Extend selection one cell": "Proširite selekciju jednu ćeliju", + "Extend selection one row": "Proširite selekciju jedan red", + "Navigation": "Navigacija", + "Focus popup / toolbar": "Fokus Iskačući meni / traka sa alatkama", + "Return focus to previous position": "Vratiti fokus na prethodnu poziciju", + + // Embed.ly + "Embed URL": "Ugradite URL", + "Paste in a URL to embed": "Nalepite URL adresu da biste ugradili", + + // Word Paste. + "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Nalepljeni sadržaj dolazi iz Microsoft Word dokument. Da li želite zadržati u formatu ili počistiti?", + "Keep": "Nastavi", + "Clean": "Oиisti", + "Word Paste Detected": "Word Nalepi otkriven" + }, + direction: "ltr" +}; + +})); diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/nb.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/nb.js new file mode 100644 index 0000000..a6252a9 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/nb.js @@ -0,0 +1,318 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + // require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + return factory(jQuery); + }; + } else { + // Browser globals + factory(window.jQuery); + } +}(function ($) { +/** + * Norwegian + */ + +$.FE.LANGUAGE['nb'] = { + translation: { + // Place holder + "Type something": "Skriv noe", + + // Basic formatting + "Bold": "Fet", + "Italic": "Kursiv", + "Underline": "Understreket", + "Strikethrough": "Gjennomstreket", + + // Main buttons + "Insert": "Sett", + "Delete": "Slett", + "Cancel": "Avbryt", + "OK": "OK", + "Back": "Tilbake", + "Remove": "Fjern", + "More": "Mer", + "Update": "Oppdatering", + "Style": "Stil", + + // Font + "Font Family": "Skriftsnitt", + "Font Size": "St\u00f8rrelse", + + // Colors + "Colors": "Farger", + "Background": "Bakgrunn", + "Text": "Tekst", + "HEX Color": "Heksefarge", + + // Paragraphs + "Paragraph Format": "Stiler", + "Normal": "Normal", + "Code": "Kode", + "Heading 1": "Overskrift 1", + "Heading 2": "Overskrift 2", + "Heading 3": "Overskrift 3", + "Heading 4": "Overskrift 4", + + // Style + "Paragraph Style": "Avsnittsstil", + "Inline Style": "P\u00e5 linje stil", + + // Alignment + "Align": "Justering", + "Align Left": "Venstrejustert", + "Align Center": "Midtstilt", + "Align Right": "H\u00f8yrejustert", + "Align Justify": "Juster alle linjer", + "None": "None", + + // Lists + "Ordered List": "Ordnet liste", + "Unordered List": "Uordnet liste", + + // Indent + "Decrease Indent": "Reduser innrykk", + "Increase Indent": "\u00d8k innrykk", + + // Links + "Insert Link": "Sett inn lenke", + "Open in new tab": "\u00c5pne i ny fane", + "Open Link": "\u00c5pne lenke", + "Edit Link": "Rediger lenke", + "Unlink": "Fjern lenke", + "Choose Link": "Velge lenke", + + // Images + "Insert Image": "Sett inn bilde", + "Upload Image": "Last opp bilde", + "By URL": "Ved URL", + "Browse": "Bla", + "Drop image": "Slippe bilde", + "or click": "eller klikk", + "Manage Images": "Bildebehandling", + "Loading": "Lasting", + "Deleting": "Slette", + "Tags": "Tags", + "Are you sure? Image will be deleted.": "Er du sikker? Bildet vil bli slettet.", + "Replace": "Erstatte", + "Uploading": "Opplasting", + "Loading image": "Lasting bilde", + "Display": "Utstilling", + "Inline": "P\u00e5 linje", + "Break Text": "Brudd tekst", + "Alternate Text": "Alternativ tekst", + "Change Size": "Endre st\u00f8rrelse", + "Width": "Bredde", + "Height": "H\u00f8yde", + "Something went wrong. Please try again.": "Noe gikk galt. V\u00e6r s\u00e5 snill, pr\u00f8v p\u00e5 nytt.", + "Image Caption": "Bilde bildetekst", + "Advanced Edit": "Avansert redigering", + + // Video + "Insert Video": "Sett inn video", + "Embedded Code": "Embedded kode", + "Paste in a video URL": "Lim inn i en video-url", + "Drop video": "Slipp video", + "Your browser does not support HTML5 video.": "Nettleseren din støtter ikke html5 video.", + "Upload Video": "Last opp video", + + // Tables + "Insert Table": "Sett inn tabell", + "Table Header": "Tabell header", + "Remove Table": "Fjern tabell", + "Table Style": "Tabell stil", + "Horizontal Align": "Horisontal justering", + "Row": "Rad", + "Insert row above": "Sett inn rad f\u00f8r", + "Insert row below": "Sett in rad etter", + "Delete row": "Slett rad", + "Column": "Kolonne", + "Insert column before": "Sett inn kolonne f\u00f8r", + "Insert column after": "Sett inn kolonne etter", + "Delete column": "Slett kolonne", + "Cell": "Celle", + "Merge cells": "Sl\u00e5 sammen celler", + "Horizontal split": "Horisontalt delt", + "Vertical split": "Vertikal split", + "Cell Background": "Celle bakgrunn", + "Vertical Align": "Vertikal justering", + "Top": "Topp", + "Middle": "Midten", + "Bottom": "Bunn", + "Align Top": "Justere toppen", + "Align Middle": "Justere midten", + "Align Bottom": "Justere bunnen", + "Cell Style": "Celle stil", + + // Files + "Upload File": "Opplastingsfil", + "Drop file": "Slippe fil", + + // Emoticons + "Emoticons": "Emoticons", + "Grinning face": "Flirer ansikt", + "Grinning face with smiling eyes": "Flirer ansikt med smilende \u00f8yne", + "Face with tears of joy": "Ansikt med t\u00e5rer av glede", + "Smiling face with open mouth": "Smilende ansikt med \u00e5pen munn", + "Smiling face with open mouth and smiling eyes": "Smilende ansikt med \u00e5pen munn og smilende \u00f8yne", + "Smiling face with open mouth and cold sweat": "Smilende ansikt med \u00e5pen munn og kald svette", + "Smiling face with open mouth and tightly-closed eyes": "Smilende ansikt med \u00e5pen munn og tett lukkede \u00f8yne", + "Smiling face with halo": "Smilende ansikt med glorie", + "Smiling face with horns": "Smilende ansikt med horn", + "Winking face": "Blunk ansikt", + "Smiling face with smiling eyes": "Smilende ansikt med smilende \u00f8yne", + "Face savoring delicious food": "M\u00f8te nyter deilig mat", + "Relieved face": "Lettet ansikt", + "Smiling face with heart-shaped eyes": "Smilende ansikt med hjerteformede \u00f8yne", + "Smiling face with sunglasses": "Smilende ansikt med solbriller", + "Smirking face": "Tilfreds ansikt", + "Neutral face": "N\u00f8ytral ansikt", + "Expressionless face": "Uttrykksl\u00f8st ansikt", + "Unamused face": "Ikke moret ansikt", + "Face with cold sweat": "Ansikt med kald svette", + "Pensive face": "Tankefull ansikt", + "Confused face": "Forvirret ansikt", + "Confounded face": "Skamme ansikt", + "Kissing face": "Kyssing ansikt", + "Face throwing a kiss": "Ansikt kaste et kyss", + "Kissing face with smiling eyes": "Kyssing ansikt med smilende \u00f8yne", + "Kissing face with closed eyes": "Kyssing ansiktet med lukkede \u00f8yne", + "Face with stuck out tongue": "Ansikt med stakk ut tungen", + "Face with stuck out tongue and winking eye": "Ansikt med stakk ut tungen og blunke \u00f8ye", + "Face with stuck out tongue and tightly-closed eyes": "Ansikt med fast ut tungen og tett lukket \u00f8yne", + "Disappointed face": "Skuffet ansikt", + "Worried face": "Bekymret ansikt", + "Angry face": "Sint ansikt", + "Pouting face": "Trutmunn ansikt", + "Crying face": "Gr\u00e5ter ansikt", + "Persevering face": "Utholdende ansikt", + "Face with look of triumph": "Ansikt med utseendet til triumf", + "Disappointed but relieved face": "Skuffet men lettet ansikt", + "Frowning face with open mouth": "Rynke ansikt med \u00e5pen munn", + "Anguished face": "Forpint ansikt", + "Fearful face": "Engstelig ansikt", + "Weary face": "Slitne ansiktet", + "Sleepy face": "S\u00f8vnig ansikt", + "Tired face": "Tr\u00f8tt ansikt", + "Grimacing face": "Griner ansikt", + "Loudly crying face": "H\u00f8ylytt gr\u00e5tende ansikt", + "Face with open mouth": "Ansikt med \u00e5pen munn", + "Hushed face": "Lavm\u00e6lt ansikt", + "Face with open mouth and cold sweat": "Ansikt med \u00e5pen munn og kald svette", + "Face screaming in fear": "Ansikt skriker i frykt", + "Astonished face": "Forbauset ansikt", + "Flushed face": "Flushed ansikt", + "Sleeping face": "Sovende ansikt", + "Dizzy face": "Svimmel ansikt", + "Face without mouth": "Ansikt uten munn", + "Face with medical mask": "Ansikt med medisinsk maske", + + // Line breaker + "Break": "Brudd", + + // Math + "Subscript": "Senket skrift", + "Superscript": "Hevet skrift", + + // Full screen + "Fullscreen": "Full skjerm", + + // Horizontal line + "Insert Horizontal Line": "Sett inn horisontal linje", + + // Clear formatting + "Clear Formatting": "Fjerne formatering", + + // Undo, redo + "Undo": "Angre", + "Redo": "Utf\u00f8r likevel", + + // Select all + "Select All": "Marker alt", + + // Code view + "Code View": "Kodevisning", + + // Quote + "Quote": "Sitat", + "Increase": "\u00d8ke", + "Decrease": "Nedgang", + + // Quick Insert + "Quick Insert": "Hurtiginnsats", + + // Spcial Characters + "Special Characters": "Spesielle karakterer", + "Latin": "Latin", + "Greek": "Gresk", + "Cyrillic": "Kyrilliske", + "Punctuation": "Tegnsetting", + "Currency": "Valuta", + "Arrows": "Piler", + "Math": "Matte", + "Misc": "Misc", + + // Print. + "Print": "Skrive ut", + + // Spell Checker. + "Spell Checker": "Stavekontroll", + + // Help + "Help": "Hjelp", + "Shortcuts": "Snarveier", + "Inline Editor": "Inline editor", + "Show the editor": "Vis redaktøren", + "Common actions": "Felles handlinger", + "Copy": "Kopiere", + "Cut": "Kutte opp", + "Paste": "Lim inn", + "Basic Formatting": "Grunnleggende formatering", + "Increase quote level": "Øke tilbudsnivået", + "Decrease quote level": "Redusere tilbudsnivå", + "Image / Video": "Bilde / video", + "Resize larger": "Endre størrelsen større", + "Resize smaller": "Endre størrelsen mindre", + "Table": "Bord", + "Select table cell": "Velg tabellcelle", + "Extend selection one cell": "Utvide valg en celle", + "Extend selection one row": "Utvide valg en rad", + "Navigation": "Navigasjon", + "Focus popup / toolbar": "Fokus popup / verktøylinje", + "Return focus to previous position": "Returnere fokus til tidligere posisjon", + + // Embed.ly + "Embed URL": "Legge inn nettadressen", + "Paste in a URL to embed": "Lim inn i en URL for å legge inn", + + // Word Paste. + "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Det limte innholdet kommer fra et Microsoft Word-dokument. vil du beholde formatet eller rydde det opp?", + "Keep": "Beholde", + "Clean": "Ren", + "Word Paste Detected": "Ordpasta oppdages" + }, + direction: "ltr" +}; + +})); diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/nl.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/nl.js new file mode 100644 index 0000000..106a206 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/nl.js @@ -0,0 +1,318 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + // require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + return factory(jQuery); + }; + } else { + // Browser globals + factory(window.jQuery); + } +}(function ($) { +/** + * Dutch + */ + +$.FE.LANGUAGE['nl'] = { + translation: { + // Place holder + "Type something": "Typ iets", + + // Basic formatting + "Bold": "Vet", + "Italic": "Cursief", + "Underline": "Onderstreept", + "Strikethrough": "Doorhalen", + + // Main buttons + "Insert": "Invoegen", + "Delete": "Verwijder", + "Cancel": "Annuleren", + "OK": "Ok\u00e9", + "Back": "Terug", + "Remove": "Verwijderen", + "More": "Meer", + "Update": "Bijwerken", + "Style": "Stijl", + + // Font + "Font Family": "Lettertype", + "Font Size": "Lettergrootte", + + // Colors + "Colors": "Kleuren", + "Background": "Achtergrond", + "Text": "Tekst", + "HEX Color": "HEX kleur", + + // Paragraphs + "Paragraph Format": "Opmaak", + "Normal": "Normaal", + "Code": "Code", + "Heading 1": "Kop 1", + "Heading 2": "Kop 2", + "Heading 3": "Kop 3", + "Heading 4": "Kop 4", + + // Style + "Paragraph Style": "Paragraaf stijl", + "Inline Style": "Inline stijl", + + // Alignment + "Align": "Uitlijnen", + "Align Left": "Links uitlijnen", + "Align Center": "Centreren", + "Align Right": "Rechts uitlijnen", + "Align Justify": "Uitvullen", + "None": "Geen", + + // Lists + "Ordered List": "Geordende lijst", + "Unordered List": "Ongeordende lijst", + + // Indent + "Decrease Indent": "Inspringen verkleinen", + "Increase Indent": "Inspringen vergroten", + + // Links + "Insert Link": "Link invoegen", + "Open in new tab": "Openen in nieuwe tab", + "Open Link": "Open link", + "Edit Link": "Link bewerken", + "Unlink": "Link verwijderen", + "Choose Link": "Link kiezen", + + // Images + "Insert Image": "Afbeelding invoegen", + "Upload Image": "Afbeelding uploaden", + "By URL": "Via URL", + "Browse": "Bladeren", + "Drop image": "Sleep afbeelding", + "or click": "of klik op", + "Manage Images": "Afbeeldingen beheren", + "Loading": "Bezig met laden", + "Deleting": "Verwijderen", + "Tags": "Labels", + "Are you sure? Image will be deleted.": "Weet je het zeker? Afbeelding wordt verwijderd.", + "Replace": "Vervangen", + "Uploading": "Uploaden", + "Loading image": "Afbeelding laden", + "Display": "Tonen", + "Inline": "Inline", + "Break Text": "Tekst afbreken", + "Alternate Text": "Alternatieve tekst", + "Change Size": "Grootte wijzigen", + "Width": "Breedte", + "Height": "Hoogte", + "Something went wrong. Please try again.": "Er is iets fout gegaan. Probeer opnieuw.", + "Image Caption": "Afbeelding caption", + "Advanced Edit": "Geavanceerd bewerken", + + // Video + "Insert Video": "Video invoegen", + "Embedded Code": "Ingebedde code", + "Paste in a video URL": "Voeg een video-URL toe", + "Drop video": "Sleep video", + "Your browser does not support HTML5 video.": "Je browser ondersteunt geen html5-video.", + "Upload Video": "Video uploaden", + + // Tables + "Insert Table": "Tabel invoegen", + "Table Header": "Tabel hoofd", + "Remove Table": "Verwijder tabel", + "Table Style": "Tabelstijl", + "Horizontal Align": "Horizontale uitlijning", + "Row": "Rij", + "Insert row above": "Voeg rij boven toe", + "Insert row below": "Voeg rij onder toe", + "Delete row": "Verwijder rij", + "Column": "Kolom", + "Insert column before": "Voeg kolom in voor", + "Insert column after": "Voeg kolom in na", + "Delete column": "Verwijder kolom", + "Cell": "Cel", + "Merge cells": "Cellen samenvoegen", + "Horizontal split": "Horizontaal splitsen", + "Vertical split": "Verticaal splitsen", + "Cell Background": "Cel achtergrond", + "Vertical Align": "Verticale uitlijning", + "Top": "Top", + "Middle": "Midden", + "Bottom": "Onder", + "Align Top": "Uitlijnen top", + "Align Middle": "Uitlijnen midden", + "Align Bottom": "Onder uitlijnen", + "Cell Style": "Celstijl", + + // Files + "Upload File": "Bestand uploaden", + "Drop file": "Sleep bestand", + + // Emoticons + "Emoticons": "Emoticons", + "Grinning face": "Grijnzend gezicht", + "Grinning face with smiling eyes": "Grijnzend gezicht met lachende ogen", + "Face with tears of joy": "Gezicht met tranen van vreugde", + "Smiling face with open mouth": "Lachend gezicht met open mond", + "Smiling face with open mouth and smiling eyes": "Lachend gezicht met open mond en lachende ogen", + "Smiling face with open mouth and cold sweat": "Lachend gezicht met open mond en koud zweet", + "Smiling face with open mouth and tightly-closed eyes": "Lachend gezicht met open mond en strak gesloten ogen", + "Smiling face with halo": "Lachend gezicht met halo", + "Smiling face with horns": "Lachend gezicht met hoorns", + "Winking face": "Knipogend gezicht", + "Smiling face with smiling eyes": "Lachend gezicht met lachende ogen", + "Face savoring delicious food": "Gezicht genietend van heerlijk eten", + "Relieved face": "Opgelucht gezicht", + "Smiling face with heart-shaped eyes": "Glimlachend gezicht met hart-vormige ogen", + "Smiling face with sunglasses": "Lachend gezicht met zonnebril", + "Smirking face": "Grijnzende gezicht", + "Neutral face": "Neutraal gezicht", + "Expressionless face": "Uitdrukkingsloos gezicht", + "Unamused face": "Niet geamuseerd gezicht", + "Face with cold sweat": "Gezicht met koud zweet", + "Pensive face": "Peinzend gezicht", + "Confused face": "Verward gezicht", + "Confounded face": "Beschaamd gezicht", + "Kissing face": "Zoenend gezicht", + "Face throwing a kiss": "Gezicht gooien van een kus", + "Kissing face with smiling eyes": "Zoenend gezicht met lachende ogen", + "Kissing face with closed eyes": "Zoenend gezicht met gesloten ogen", + "Face with stuck out tongue": "Gezicht met uitstekende tong", + "Face with stuck out tongue and winking eye": "Gezicht met uitstekende tong en knipoog", + "Face with stuck out tongue and tightly-closed eyes": "Gezicht met uitstekende tong en strak-gesloten ogen", + "Disappointed face": "Teleurgesteld gezicht", + "Worried face": "Bezorgd gezicht", + "Angry face": "Boos gezicht", + "Pouting face": "Pruilend gezicht", + "Crying face": "Huilend gezicht", + "Persevering face": "Volhardend gezicht", + "Face with look of triumph": "Gezicht met blik van triomf", + "Disappointed but relieved face": "Teleurgesteld, maar opgelucht gezicht", + "Frowning face with open mouth": "Fronsend gezicht met open mond", + "Anguished face": "Gekweld gezicht", + "Fearful face": "Angstig gezicht", + "Weary face": "Vermoeid gezicht", + "Sleepy face": "Slaperig gezicht", + "Tired face": "Moe gezicht", + "Grimacing face": "Grimassen trekkend gezicht", + "Loudly crying face": "Luid schreeuwend gezicht", + "Face with open mouth": "Gezicht met open mond", + "Hushed face": "Tot zwijgen gebracht gezicht", + "Face with open mouth and cold sweat": "Gezicht met open mond en koud zweet", + "Face screaming in fear": "Gezicht schreeuwend van angst", + "Astonished face": "Verbaasd gezicht", + "Flushed face": "Blozend gezicht", + "Sleeping face": "Slapend gezicht", + "Dizzy face": "Duizelig gezicht", + "Face without mouth": "Gezicht zonder mond", + "Face with medical mask": "Gezicht met medisch masker", + + // Line breaker + "Break": "Afbreken", + + // Math + "Subscript": "Subscript", + "Superscript": "Superscript", + + // Full screen + "Fullscreen": "Volledig scherm", + + // Horizontal line + "Insert Horizontal Line": "Horizontale lijn invoegen", + + // Clear formatting + "Clear Formatting": "Verwijder opmaak", + + // Undo, redo + "Undo": "Ongedaan maken", + "Redo": "Opnieuw", + + // Select all + "Select All": "Alles selecteren", + + // Code view + "Code View": "Codeweergave", + + // Quote + "Quote": "Citaat", + "Increase": "Toenemen", + "Decrease": "Afnemen", + + // Quick Insert + "Quick Insert": "Snel invoegen", + + // Spcial Characters + "Special Characters": "Speciale tekens", + "Latin": "Latijns", + "Greek": "Grieks", + "Cyrillic": "Cyrillisch", + "Punctuation": "Interpunctie", + "Currency": "Valuta", + "Arrows": "Pijlen", + "Math": "Wiskunde", + "Misc": "Misc", + + // Print. + "Print": "Afdrukken", + + // Spell Checker. + "Spell Checker": "Spellingscontrole", + + // Help + "Help": "Hulp", + "Shortcuts": "Snelkoppelingen", + "Inline Editor": "Inline editor", + "Show the editor": "Laat de editor zien", + "Common actions": "Algemene acties", + "Copy": "Kopiëren", + "Cut": "Knippen", + "Paste": "Plakken", + "Basic Formatting": "Basisformattering", + "Increase quote level": "Citaat niveau verhogen", + "Decrease quote level": "Citaatniveau verminderen", + "Image / Video": "Beeld / video", + "Resize larger": "Groter maken", + "Resize smaller": "Kleiner maken", + "Table": "Tabel", + "Select table cell": "Selecteer tabelcel", + "Extend selection one cell": "Selecteer een cel uit", + "Extend selection one row": "Selecteer een rij uit", + "Navigation": "Navigatie", + "Focus popup / toolbar": "Focus pop-up / werkbalk", + "Return focus to previous position": "Focus terug naar vorige positie", + + // Embed.ly + "Embed URL": "Embed url", + "Paste in a URL to embed": "Voer een URL in om toe te voegen", + + // Word Paste. + "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "De geplakte inhoud komt uit een Microsoft Word-document. wil je het formaat behouden of schoonmaken?", + "Keep": "Opmaak behouden", + "Clean": "Tekst schoonmaken", + "Word Paste Detected": "Word inhoud gedetecteerd" + }, + direction: "ltr" +}; + +})); diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/pl.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/pl.js new file mode 100644 index 0000000..9ab78cb --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/pl.js @@ -0,0 +1,318 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + // require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + return factory(jQuery); + }; + } else { + // Browser globals + factory(window.jQuery); + } +}(function ($) { +/** + * Polish + */ + +$.FE.LANGUAGE['pl'] = { + translation: { + // Place holder + "Type something": "Wpisz co\u015b", + + // Basic formatting + "Bold": "Pogrubienie", + "Italic": "Kursywa", + "Underline": "Podkre\u015blenie", + "Strikethrough": "Przekre\u015blenie", + + // Main buttons + "Insert": "Wstaw", + "Delete": "Usun\u0105\u0107", + "Cancel": "Anuluj", + "OK": "Ok", + "Back": "Plecy", + "Remove": "Usun\u0105\u0107", + "More": "Jeszcze", + "Update": "Aktualizacja", + "Style": "Styl", + + // Font + "Font Family": "Kr\u00f3j czcionki", + "Font Size": "Rozmiar czcionki", + + // Colors + "Colors": "Kolory", + "Background": "T\u0142o", + "Text": "Tekstu", + "HEX Color": "Sześciokąt", + + // Paragraphs + "Paragraph Format": "Formaty", + "Normal": "Normalny", + "Code": "Kod \u017ar\u00f3d\u0142owy", + "Heading 1": "Nag\u0142\u00f3wek 1", + "Heading 2": "Nag\u0142\u00f3wek 2", + "Heading 3": "Nag\u0142\u00f3wek 3", + "Heading 4": "Nag\u0142\u00f3wek 4", + + // Style + "Paragraph Style": "Styl akapitu", + "Inline Style": "Stylu zgodna", + + // Alignment + "Align": "Wyr\u00f3wnaj", + "Align Left": "Wyr\u00f3wnaj do lewej", + "Align Center": "Wyr\u00f3wnaj do \u015brodka", + "Align Right": "Wyr\u00f3wnaj do prawej", + "Align Justify": "Do lewej i prawej", + "None": "\u017baden", + + // Lists + "Ordered List": "Uporz\u0105dkowana lista", + "Unordered List": "Lista nieuporz\u0105dkowana", + + // Indent + "Decrease Indent": "Zmniejsz wci\u0119cie", + "Increase Indent": "Zwi\u0119ksz wci\u0119cie", + + // Links + "Insert Link": "Wstaw link", + "Open in new tab": "Otw\u00f3rz w nowej karcie", + "Open Link": "Otw\u00f3rz link", + "Edit Link": "Link edytuj", + "Unlink": "Usu\u0144 link", + "Choose Link": "Wybierz link", + + // Images + "Insert Image": "Wstaw obrazek", + "Upload Image": "Za\u0142aduj obrazek", + "By URL": "Przez URL", + "Browse": "Przegl\u0105danie", + "Drop image": "Upu\u015bci\u0107 obraz", + "or click": "lub kliknij", + "Manage Images": "Zarz\u0105dzanie zdj\u0119ciami", + "Loading": "\u0141adowanie", + "Deleting": "Usuwanie", + "Tags": "Tagi", + "Are you sure? Image will be deleted.": "Czy na pewno? Obraz zostanie skasowany.", + "Replace": "Zast\u0105pi\u0107", + "Uploading": "Zamieszczanie", + "Loading image": "\u0141adowanie obrazek", + "Display": "Wystawa", + "Inline": "Zgodna", + "Break Text": "Z\u0142ama\u0107 tekst", + "Alternate Text": "Tekst alternatywny", + "Change Size": "Zmie\u0144 rozmiar", + "Width": "Szeroko\u015b\u0107", + "Height": "Wysoko\u015b\u0107", + "Something went wrong. Please try again.": "Co\u015b posz\u0142o nie tak. Prosz\u0119 spr\u00f3buj ponownie.", + "Image Caption": "Podpis obrazu", + "Advanced Edit": "Zaawansowana edycja", + + // Video + "Insert Video": "Wstaw wideo", + "Embedded Code": "Kod osadzone", + "Paste in a video URL": "Wklej adres URL filmu", + "Drop video": "Upuść wideo", + "Your browser does not support HTML5 video.": "Twoja przeglądarka nie obsługuje wideo html5.", + "Upload Video": "Prześlij wideo", + + // Tables + "Insert Table": "Wstaw tabel\u0119", + "Table Header": "Nag\u0142\u00f3wek tabeli", + "Remove Table": "Usu\u0144 tabel\u0119", + "Table Style": "Styl tabeli", + "Horizontal Align": "Wyr\u00f3wnaj poziomy", + "Row": "Wiersz", + "Insert row above": "Wstaw wiersz przed", + "Insert row below": "Wstaw wiersz po", + "Delete row": "Usu\u0144 wiersz", + "Column": "Kolumna", + "Insert column before": "Wstaw kolumn\u0119 przed", + "Insert column after": "Wstaw kolumn\u0119 po", + "Delete column": "Usu\u0144 kolumn\u0119", + "Cell": "Kom\u00f3rka", + "Merge cells": "\u0141\u0105cz kom\u00f3rki", + "Horizontal split": "Podzia\u0142 poziomy", + "Vertical split": "Podzia\u0142 pionowy", + "Cell Background": "T\u0142a kom\u00f3rek", + "Vertical Align": "Pionowe wyr\u00f3wnanie", + "Top": "Top", + "Middle": "\u015arodkowy", + "Bottom": "Dno", + "Align Top": "Wyr\u00f3wnaj do g\u00f3ry", + "Align Middle": "Wyr\u00f3wnaj \u015brodku", + "Align Bottom": "Wyr\u00f3wnaj do do\u0142u", + "Cell Style": "Styl kom\u00f3rki", + + // Files + "Upload File": "Prze\u015blij plik", + "Drop file": "Upu\u015bci\u0107 plik", + + // Emoticons + "Emoticons": "Emotikony", + "Grinning face": "Z u\u015bmiechem twarz", + "Grinning face with smiling eyes": "Z u\u015bmiechem twarz z u\u015bmiechni\u0119tymi oczami", + "Face with tears of joy": "Twarz ze \u0142zami rado\u015bci", + "Smiling face with open mouth": "U\u015bmiechni\u0119ta twarz z otwartymi ustami", + "Smiling face with open mouth and smiling eyes": "U\u015bmiechni\u0119ta twarz z otwartymi ustami i u\u015bmiechni\u0119te oczy", + "Smiling face with open mouth and cold sweat": "U\u015bmiechni\u0119ta twarz z otwartymi ustami i zimny pot", + "Smiling face with open mouth and tightly-closed eyes": "U\u015bmiechni\u0119ta twarz z otwartymi ustami i szczelnie zamkni\u0119tych oczu", + "Smiling face with halo": "U\u015bmiechni\u0119ta twarz z halo", + "Smiling face with horns": "U\u015bmiechni\u0119ta twarz z rogami", + "Winking face": "Mrugaj\u0105ca twarz", + "Smiling face with smiling eyes": "U\u015bmiechni\u0119ta twarz z u\u015bmiechni\u0119tymi oczami", + "Face savoring delicious food": "Twarz smakuj\u0105 c pyszne jedzenie", + "Relieved face": "Z ulg\u0105 twarz", + "Smiling face with heart-shaped eyes": "U\u015bmiechni\u0119ta twarz z oczami w kszta\u0142cie serca", + "Smiling face with sunglasses": "U\u015bmiechni\u0119ta twarz z okulary", + "Smirking face": "Zadowolony z siebie twarz", + "Neutral face": "Neutralny twarzy", + "Expressionless face": "Bezwyrazowy twarzy", + "Unamused face": "Nie rozbawiony twarzy", + "Face with cold sweat": "Zimny pot z twarzy", + "Pensive face": "Zamy\u015blona twarz", + "Confused face": "Myli\u0107 twarzy", + "Confounded face": "Ha\u0144ba twarz", + "Kissing face": "Ca\u0142owanie twarz", + "Face throwing a kiss": "Twarz rzucaj\u0105c poca\u0142unek", + "Kissing face with smiling eyes": "Ca\u0142owanie twarz z u\u015bmiechni\u0119tymi oczami", + "Kissing face with closed eyes": "Ca\u0142owanie twarz z zamkni\u0119tymi oczami", + "Face with stuck out tongue": "Twarz z j\u0119zyka stercza\u0142y", + "Face with stuck out tongue and winking eye": "Twarz z stercza\u0142y j\u0119zyka i mrugaj\u0105c okiem", + "Face with stuck out tongue and tightly-closed eyes": "Twarz z stercza\u0142y j\u0119zyka i szczelnie zamkni\u0119tych oczu", + "Disappointed face": "Rozczarowany twarzy", + "Worried face": "Martwi twarzy", + "Angry face": "Gniewnych twarzy", + "Pouting face": "D\u0105sy twarzy", + "Crying face": "P\u0142acz\u0105cy", + "Persevering face": "Wytrwa\u0142a twarz", + "Face with look of triumph": "Twarz z wyrazem triumfu", + "Disappointed but relieved face": "Rozczarowany ale ulg\u0119 twarz", + "Frowning face with open mouth": "Krzywi\u0105c twarz z otwartymi ustami", + "Anguished face": "Bolesna twarz", + "Fearful face": "W obawie twarzy", + "Weary face": "Zm\u0119czona twarz", + "Sleepy face": "Je\u017adziec bez twarzy", + "Tired face": "Zm\u0119czonej twarzy", + "Grimacing face": "Skrzywi\u0142 twarz", + "Loudly crying face": "G\u0142o\u015bno p\u0142aka\u0107 twarz", + "Face with open mouth": "twarz z otwartymi ustami", + "Hushed face": "Uciszy\u0142 twarzy", + "Face with open mouth and cold sweat": "Twarz z otwartymi ustami i zimny pot", + "Face screaming in fear": "Twarz z krzykiem w strachu", + "Astonished face": "Zdziwienie twarzy", + "Flushed face": "Zaczerwienienie twarzy", + "Sleeping face": "\u015api\u0105ca twarz", + "Dizzy face": "Zawroty g\u0142owy twarzy", + "Face without mouth": "Twarz bez usta", + "Face with medical mask": "Twarz\u0105 w medycznych maski", + + // Line breaker + "Break": "Z\u0142ama\u0107", + + // Math + "Subscript": "Indeks dolny", + "Superscript": "Indeks g\u00f3rny", + + // Full screen + "Fullscreen": "Pe\u0142ny ekran", + + // Horizontal line + "Insert Horizontal Line": "Wstaw lini\u0119 poziom\u0105", + + // Clear formatting + "Clear Formatting": "Usu\u0144 formatowanie", + + // Undo, redo + "Undo": "Cofnij", + "Redo": "Pon\u00f3w", + + // Select all + "Select All": "Zaznacz wszystko", + + // Code view + "Code View": "Widok kod", + + // Quote + "Quote": "Cytat", + "Increase": "Wzrost", + "Decrease": "Zmniejszenie", + + // Quick Insert + "Quick Insert": "Szybkie wstaw", + + // Spcial Characters + "Special Characters": "Znaki specjalne", + "Latin": "Łacina", + "Greek": "Grecki", + "Cyrillic": "Cyrylica", + "Punctuation": "Interpunkcja", + "Currency": "Waluta", + "Arrows": "Strzałki", + "Math": "Matematyka", + "Misc": "Misc", + + // Print. + "Print": "Wydrukować", + + // Spell Checker. + "Spell Checker": "Sprawdzanie pisowni", + + // Help + "Help": "Wsparcie", + "Shortcuts": "Skróty", + "Inline Editor": "Edytor w wierszu", + "Show the editor": "Pokazać edytor", + "Common actions": "Wspólne działania", + "Copy": "Kopiuj", + "Cut": "Ciąć", + "Paste": "Pasta", + "Basic Formatting": "Podstawowe formatowanie", + "Increase quote level": "Zwiększyć poziom notowań", + "Decrease quote level": "Zmniejszyć poziom notowań", + "Image / Video": "Obraz / wideo", + "Resize larger": "Zmienić rozmiar większy", + "Resize smaller": "Zmienić rozmiar mniejszy", + "Table": "Stół", + "Select table cell": "Wybierz komórkę tabeli", + "Extend selection one cell": "Przedłużyć wybór jednej komórki", + "Extend selection one row": "Przedłużyć wybór jednego rzędu", + "Navigation": "Nawigacja", + "Focus popup / toolbar": "Focus popup / toolbar", + "Return focus to previous position": "Powrót do poprzedniej pozycji", + + // Embed.ly + "Embed URL": "Osadzaj url", + "Paste in a URL to embed": "Wklej w adresie URL do osadzenia", + + // Word Paste. + "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Wklejana treść pochodzi z programu Microsoft Word. Czy chcesz zachować formatowanie czy wkleić jako zwykły tekst?", + "Keep": "Zachowaj formatowanie", + "Clean": "Wklej jako tekst", + "Word Paste Detected": "Wykryto sformatowany tekst" + }, + direction: "ltr" +}; + +})); diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/pt_br.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/pt_br.js new file mode 100644 index 0000000..7afbd19 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/pt_br.js @@ -0,0 +1,318 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + // require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + return factory(jQuery); + }; + } else { + // Browser globals + factory(window.jQuery); + } +}(function ($) { +/** + * Portuguese spoken in Brazil + */ + +$.FE.LANGUAGE['pt_br'] = { + translation: { + // Place holder + "Type something": "Digite algo", + + // Basic formatting + "Bold": "Negrito", + "Italic": "It\u00e1lico", + "Underline": "Sublinhar", + "Strikethrough": "Riscar", + + // Main buttons + "Insert": "Inserir", + "Delete": "Apagar", + "Cancel": "Cancelar", + "OK": "Ok", + "Back": "Voltar", + "Remove": "Remover", + "More": "Mais", + "Update": "Atualizar", + "Style": "Estilo", + + // Font + "Font Family": "Fonte", + "Font Size": "Tamanho", + + // Colors + "Colors": "Cores", + "Background": "Fundo", + "Text": "Texto", + "HEX Color": "Cor hexadecimal", + + // Paragraphs + "Paragraph Format": "Formatos", + "Normal": "Normal", + "Code": "C\u00f3digo", + "Heading 1": "Cabe\u00e7alho 1", + "Heading 2": "Cabe\u00e7alho 2", + "Heading 3": "Cabe\u00e7alho 3", + "Heading 4": "Cabe\u00e7alho 4", + + // Style + "Paragraph Style": "Estilo de par\u00e1grafo", + "Inline Style": "Estilo embutido", + + // Alignment + "Align": "Alinhar", + "Align Left": "Alinhar \u00e0 esquerda", + "Align Center": "Centralizar", + "Align Right": "Alinhar \u00e0 direita", + "Align Justify": "Justificar", + "None": "Nenhum", + + // Lists + "Ordered List": "Lista ordenada", + "Unordered List": "Lista n\u00e3o ordenada", + + // Indent + "Decrease Indent": "Diminuir recuo", + "Increase Indent": "Aumentar recuo", + + // Links + "Insert Link": "Inserir link", + "Open in new tab": "Abrir em uma nova aba", + "Open Link": "Abrir link", + "Edit Link": "Editar link", + "Unlink": "Remover link", + "Choose Link": "Escolha o link", + + // Images + "Insert Image": "Inserir imagem", + "Upload Image": "Carregar imagem", + "By URL": "Por URL", + "Browse": "Procurar", + "Drop image": "Arraste sua imagem aqui", + "or click": "ou clique aqui", + "Manage Images": "Gerenciar imagens", + "Loading": "Carregando", + "Deleting": "Excluindo", + "Tags": "Etiquetas", + "Are you sure? Image will be deleted.": "Voc\u00ea tem certeza? Imagem ser\u00e1 apagada.", + "Replace": "Substituir", + "Uploading": "Carregando imagem", + "Loading image": "Carregando imagem", + "Display": "Exibir", + "Inline": "Em linha", + "Break Text": "Texto de quebra", + "Alternate Text": "Texto alternativo", + "Change Size": "Alterar tamanho", + "Width": "Largura", + "Height": "Altura", + "Something went wrong. Please try again.": "Algo deu errado. Por favor, tente novamente.", + "Image Caption": "Legenda da imagem", + "Advanced Edit": "Edição avançada", + + // Video + "Insert Video": "Inserir v\u00eddeo", + "Embedded Code": "C\u00f3digo embutido", + "Paste in a video URL": "Colar em um URL de vídeo", + "Drop video": "Solte o video", + "Your browser does not support HTML5 video.": "Seu navegador não suporta o vídeo html5.", + "Upload Video": "Envio vídeo", + + // Tables + "Insert Table": "Inserir tabela", + "Table Header": "Cabe\u00e7alho da tabela", + "Remove Table": "Remover tabela", + "Table Style": "estilo de tabela", + "Horizontal Align": "Alinhamento horizontal", + "Row": "Linha", + "Insert row above": "Inserir linha antes", + "Insert row below": "Inserir linha depois", + "Delete row": "Excluir linha", + "Column": "Coluna", + "Insert column before": "Inserir coluna antes", + "Insert column after": "Inserir coluna depois", + "Delete column": "Excluir coluna", + "Cell": "C\u00e9lula", + "Merge cells": "Agrupar c\u00e9lulas", + "Horizontal split": "Divis\u00e3o horizontal", + "Vertical split": "Divis\u00e3o vertical", + "Cell Background": "Fundo da c\u00e9lula", + "Vertical Align": "Alinhamento vertical", + "Top": "Topo", + "Middle": "Meio", + "Bottom": "Fundo", + "Align Top": "Alinhar topo", + "Align Middle": "Alinhar meio", + "Align Bottom": "Alinhar fundo", + "Cell Style": "Estilo de c\u00e9lula", + + // Files + "Upload File": "Upload de arquivo", + "Drop file": "Arraste seu arquivo aqui", + + // Emoticons + "Emoticons": "Emoticons", + "Grinning face": "Sorrindo a cara", + "Grinning face with smiling eyes": "Sorrindo rosto com olhos sorridentes", + "Face with tears of joy": "Rosto com l\u00e1grimas de alegria", + "Smiling face with open mouth": "Rosto de sorriso com a boca aberta", + "Smiling face with open mouth and smiling eyes": "Rosto de sorriso com a boca aberta e olhos sorridentes", + "Smiling face with open mouth and cold sweat": "Rosto de sorriso com a boca aberta e suor frio", + "Smiling face with open mouth and tightly-closed eyes": "Rosto de sorriso com a boca aberta e os olhos bem fechados", + "Smiling face with halo": "Rosto de sorriso com halo", + "Smiling face with horns": "Rosto de sorriso com chifres", + "Winking face": "Pisc a rosto", + "Smiling face with smiling eyes": "Rosto de sorriso com olhos sorridentes", + "Face savoring delicious food": "Rosto saboreando uma deliciosa comida", + "Relieved face": "Rosto aliviado", + "Smiling face with heart-shaped eyes": "Rosto de sorriso com os olhos em forma de cora\u00e7\u00e3o", + "Smiling face with sunglasses": "Rosto de sorriso com \u00f3culos de sol", + "Smirking face": "Rosto sorridente", + "Neutral face": "Rosto neutra", + "Expressionless face": "Rosto inexpressivo", + "Unamused face": "O rosto n\u00e3o divertido", + "Face with cold sweat": "Rosto com suor frio", + "Pensive face": "O rosto pensativo", + "Confused face": "Cara confusa", + "Confounded face": "Rosto at\u00f4nito", + "Kissing face": "Beijar Rosto", + "Face throwing a kiss": "Rosto jogando um beijo", + "Kissing face with smiling eyes": "Beijar rosto com olhos sorridentes", + "Kissing face with closed eyes": "Beijando a cara com os olhos fechados", + "Face with stuck out tongue": "Preso de cara com a l\u00edngua para fora", + "Face with stuck out tongue and winking eye": "Rosto com estendeu a l\u00edngua e olho piscando", + "Face with stuck out tongue and tightly-closed eyes": "Rosto com estendeu a língua e os olhos bem fechados", + "Disappointed face": "Rosto decepcionado", + "Worried face": "O rosto preocupado", + "Angry face": "Rosto irritado", + "Pouting face": "Beicinho Rosto", + "Crying face": "Cara de choro", + "Persevering face": "Perseverar Rosto", + "Face with look of triumph": "Rosto com olhar de triunfo", + "Disappointed but relieved face": "Fiquei Desapontado mas aliviado Rosto", + "Frowning face with open mouth": "Sobrancelhas franzidas rosto com a boca aberta", + "Anguished face": "O rosto angustiado", + "Fearful face": "Cara com medo", + "Weary face": "Rosto cansado", + "Sleepy face": "Cara de sono", + "Tired face": "Rosto cansado", + "Grimacing face": "Fazendo caretas face", + "Loudly crying face": "Alto chorando rosto", + "Face with open mouth": "Enfrentar com a boca aberta", + "Hushed face": "Flagrantes de rosto", + "Face with open mouth and cold sweat": "Enfrentar com a boca aberta e suor frio", + "Face screaming in fear": "Cara gritando de medo", + "Astonished face": "Cara de surpresa", + "Flushed face": "Rosto vermelho", + "Sleeping face": "O rosto de sono", + "Dizzy face": "Cara tonto", + "Face without mouth": "Rosto sem boca", + "Face with medical mask": "Rosto com m\u00e1scara m\u00e9dica", + + // Line breaker + "Break": "Quebrar", + + // Math + "Subscript": "Subscrito", + "Superscript": "Sobrescrito", + + // Full screen + "Fullscreen": "Tela cheia", + + // Horizontal line + "Insert Horizontal Line": "Inserir linha horizontal", + + // Clear formatting + "Clear Formatting": "Remover formata\u00e7\u00e3o", + + // Undo, redo + "Undo": "Desfazer", + "Redo": "Refazer", + + // Select all + "Select All": "Selecionar tudo", + + // Code view + "Code View": "Exibi\u00e7\u00e3o de c\u00f3digo", + + // Quote + "Quote": "Cita\u00e7\u00e3o", + "Increase": "Aumentar", + "Decrease": "Diminuir", + + // Quick Insert + "Quick Insert": "Inser\u00e7\u00e3o r\u00e1pida", + + // Spcial Characters + "Special Characters": "Caracteres especiais", + "Latin": "Latino", + "Greek": "Grego", + "Cyrillic": "Cirílico", + "Punctuation": "Pontuação", + "Currency": "Moeda", + "Arrows": "Setas; flechas", + "Math": "Matemática", + "Misc": "Misc", + + // Print. + "Print": "Impressão", + + // Spell Checker. + "Spell Checker": "Verificador ortográfico", + + // Help + "Help": "Socorro", + "Shortcuts": "Atalhos", + "Inline Editor": "Editor em linha", + "Show the editor": "Mostre o editor", + "Common actions": "Ações comuns", + "Copy": "Cópia de", + "Cut": "Cortar", + "Paste": "Colar", + "Basic Formatting": "Formatação básica", + "Increase quote level": "Aumentar o nível de cotação", + "Decrease quote level": "Diminuir o nível de cotação", + "Image / Video": "Imagem / video", + "Resize larger": "Redimensionar maior", + "Resize smaller": "Redimensionar menor", + "Table": "Tabela", + "Select table cell": "Selecione a célula da tabela", + "Extend selection one cell": "Ampliar a seleção de uma célula", + "Extend selection one row": "Ampliar a seleção uma linha", + "Navigation": "Navegação", + "Focus popup / toolbar": "Foco popup / barra de ferramentas", + "Return focus to previous position": "Retornar o foco para a posição anterior", + + // Embed.ly + "Embed URL": "URL de inserção", + "Paste in a URL to embed": "Colar em url para incorporar", + + // Word Paste. + "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "O conteúdo colado vem de um documento Microsoft Word. Você quer manter o formato ou limpá-lo?", + "Keep": "Guarda", + "Clean": "Limpar \ limpo", + "Word Paste Detected": "Pasta de palavras detectada" + }, + direction: "ltr" +}; + +})); diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/pt_pt.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/pt_pt.js new file mode 100644 index 0000000..0cbc3d6 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/pt_pt.js @@ -0,0 +1,318 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + // require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + return factory(jQuery); + }; + } else { + // Browser globals + factory(window.jQuery); + } +}(function ($) { +/** + * Portuguese spoken in Portugal + */ + +$.FE.LANGUAGE['pt_pt'] = { + translation: { + // Place holder + "Type something": "Digite algo", + + // Basic formatting + "Bold": "Negrito", + "Italic": "It\u00e1lico", + "Underline": "Sublinhado", + "Strikethrough": "Rasurado", + + // Main buttons + "Insert": "Inserir", + "Delete": "Apagar", + "Cancel": "Cancelar", + "OK": "Ok", + "Back": "Voltar", + "Remove": "Remover", + "More": "Mais", + "Update": "Atualizar", + "Style": "Estilo", + + // Font + "Font Family": "Fonte", + "Font Size": "Tamanho da fonte", + + // Colors + "Colors": "Cores", + "Background": "Fundo", + "Text": "Texto", + "HEX Color": "Cor hexadecimal", + + // Paragraphs + "Paragraph Format": "Formatos", + "Normal": "Normal", + "Code": "C\u00f3digo", + "Heading 1": "Cabe\u00e7alho 1", + "Heading 2": "Cabe\u00e7alho 2", + "Heading 3": "Cabe\u00e7alho 3", + "Heading 4": "Cabe\u00e7alho 4", + + // Style + "Paragraph Style": "Estilo de par\u00e1grafo", + "Inline Style": "Estilo embutido", + + // Alignment + "Align": "Alinhar", + "Align Left": "Alinhar \u00e0 esquerda", + "Align Center": "Alinhar ao centro", + "Align Right": "Alinhar \u00e0 direita", + "Align Justify": "Justificado", + "None": "Nenhum", + + // Lists + "Ordered List": "Lista ordenada", + "Unordered List": "Lista n\u00e3o ordenada", + + // Indent + "Decrease Indent": "Diminuir avan\u00e7o", + "Increase Indent": "Aumentar avan\u00e7o", + + // Links + "Insert Link": "Inserir link", + "Open in new tab": "Abrir em uma nova aba", + "Open Link": "Abrir link", + "Edit Link": "Editar link", + "Unlink": "Remover link", + "Choose Link": "Escolha o link", + + // Images + "Insert Image": "Inserir imagem", + "Upload Image": "Carregar imagem", + "By URL": "Por URL", + "Browse": "Procurar", + "Drop image": "Largue imagem", + "or click": "ou clique em", + "Manage Images": "Gerenciar as imagens", + "Loading": "Carregando", + "Deleting": "Excluindo", + "Tags": "Etiquetas", + "Are you sure? Image will be deleted.": "Voc\u00ea tem certeza? Imagem ser\u00e1 apagada.", + "Replace": "Substituir", + "Uploading": "Carregando imagem", + "Loading image": "Carregando imagem", + "Display": "Exibir", + "Inline": "Em linha", + "Break Text": "Texto de quebra", + "Alternate Text": "Texto alternativo", + "Change Size": "Alterar tamanho", + "Width": "Largura", + "Height": "Altura", + "Something went wrong. Please try again.": "Algo deu errado. Por favor, tente novamente.", + "Image Caption": "Legenda da imagem", + "Advanced Edit": "Edição avançada", + + // Video + "Insert Video": "Inserir v\u00eddeo", + "Embedded Code": "C\u00f3digo embutido", + "Paste in a video URL": "Colar em um URL de vídeo", + "Drop video": "Solte o video", + "Your browser does not support HTML5 video.": "Seu navegador não suporta o vídeo html5.", + "Upload Video": "Envio vídeo", + + // Tables + "Insert Table": "Inserir tabela", + "Table Header": "Cabe\u00e7alho da tabela", + "Remove Table": "Remover tabela", + "Table Style": "estilo de tabela", + "Horizontal Align": "Alinhamento horizontal", + "Row": "Linha", + "Insert row above": "Inserir linha antes", + "Insert row below": "Inserir linha depois", + "Delete row": "Eliminar linha", + "Column": "Coluna", + "Insert column before": "Inserir coluna antes", + "Insert column after": "Inserir coluna depois", + "Delete column": "Eliminar coluna", + "Cell": "C\u00e9lula", + "Merge cells": "Unir c\u00e9lulas", + "Horizontal split": "Divis\u00e3o horizontal", + "Vertical split": "Divis\u00e3o vertical", + "Cell Background": "Fundo da c\u00e9lula", + "Vertical Align": "Alinhar vertical", + "Top": "Topo", + "Middle": "Meio", + "Bottom": "Fundo", + "Align Top": "Alinhar topo", + "Align Middle": "Alinhar meio", + "Align Bottom": "Alinhar fundo", + "Cell Style": "Estilo de c\u00e9lula", + + // Files + "Upload File": "Upload de arquivo", + "Drop file": "Largar arquivo", + + // Emoticons + "Emoticons": "Emoticons", + "Grinning face": "Sorrindo a cara", + "Grinning face with smiling eyes": "Sorrindo rosto com olhos sorridentes", + "Face with tears of joy": "Rosto com l\u00e1grimas de alegria", + "Smiling face with open mouth": "Rosto de sorriso com a boca aberta", + "Smiling face with open mouth and smiling eyes": "Rosto de sorriso com a boca aberta e olhos sorridentes", + "Smiling face with open mouth and cold sweat": "Rosto de sorriso com a boca aberta e suor frio", + "Smiling face with open mouth and tightly-closed eyes": "Rosto de sorriso com a boca aberta e os olhos bem fechados", + "Smiling face with halo": "Rosto de sorriso com halo", + "Smiling face with horns": "Rosto de sorriso com chifres", + "Winking face": "Pisc a rosto", + "Smiling face with smiling eyes": "Rosto de sorriso com olhos sorridentes", + "Face savoring delicious food": "Rosto saboreando uma deliciosa comida", + "Relieved face": "Rosto aliviado", + "Smiling face with heart-shaped eyes": "Rosto de sorriso com os olhos em forma de cora\u00e7\u00e3o", + "Smiling face with sunglasses": "Rosto de sorriso com \u00f3culos de sol", + "Smirking face": "Rosto sorridente", + "Neutral face": "Rosto neutra", + "Expressionless face": "Rosto inexpressivo", + "Unamused face": "O rosto n\u00e3o divertido", + "Face with cold sweat": "Rosto com suor frio", + "Pensive face": "O rosto pensativo", + "Confused face": "Cara confusa", + "Confounded face": "Rosto at\u00f4nito", + "Kissing face": "Beijar Rosto", + "Face throwing a kiss": "Rosto jogando um beijo", + "Kissing face with smiling eyes": "Beijar rosto com olhos sorridentes", + "Kissing face with closed eyes": "Beijando a cara com os olhos fechados", + "Face with stuck out tongue": "Preso de cara com a l\u00edngua para fora", + "Face with stuck out tongue and winking eye": "Rosto com estendeu a l\u00edngua e olho piscando", + "Face with stuck out tongue and tightly-closed eyes": "Rosto com estendeu a língua e os olhos bem fechados", + "Disappointed face": "Rosto decepcionado", + "Worried face": "O rosto preocupado", + "Angry face": "Rosto irritado", + "Pouting face": "Beicinho Rosto", + "Crying face": "Cara de choro", + "Persevering face": "Perseverar Rosto", + "Face with look of triumph": "Rosto com olhar de triunfo", + "Disappointed but relieved face": "Fiquei Desapontado mas aliviado Rosto", + "Frowning face with open mouth": "Sobrancelhas franzidas rosto com a boca aberta", + "Anguished face": "O rosto angustiado", + "Fearful face": "Cara com medo", + "Weary face": "Rosto cansado", + "Sleepy face": "Cara de sono", + "Tired face": "Rosto cansado", + "Grimacing face": "Fazendo caretas face", + "Loudly crying face": "Alto chorando rosto", + "Face with open mouth": "Enfrentar com a boca aberta", + "Hushed face": "Flagrantes de rosto", + "Face with open mouth and cold sweat": "Enfrentar com a boca aberta e suor frio", + "Face screaming in fear": "Cara gritando de medo", + "Astonished face": "Cara de surpresa", + "Flushed face": "Rosto vermelho", + "Sleeping face": "O rosto de sono", + "Dizzy face": "Cara tonto", + "Face without mouth": "Rosto sem boca", + "Face with medical mask": "Rosto com m\u00e1scara m\u00e9dica", + + // Line breaker + "Break": "Partir", + + // Math + "Subscript": "Subscrito", + "Superscript": "Sobrescrito", + + // Full screen + "Fullscreen": "Tela cheia", + + // Horizontal line + "Insert Horizontal Line": "Inserir linha horizontal", + + // Clear formatting + "Clear Formatting": "Remover formata\u00e7\u00e3o", + + // Undo, redo + "Undo": "Anular", + "Redo": "Restaurar", + + // Select all + "Select All": "Seleccionar tudo", + + // Code view + "Code View": "Exibi\u00e7\u00e3o de c\u00f3digo", + + // Quote + "Quote": "Cita\u00e7\u00e3o", + "Increase": "Aumentar", + "Decrease": "Diminuir", + + // Quick Insert + "Quick Insert": "Inser\u00e7\u00e3o r\u00e1pida", + + // Spcial Characters + "Special Characters": "Caracteres especiais", + "Latin": "Latino", + "Greek": "Grego", + "Cyrillic": "Cirílico", + "Punctuation": "Pontuação", + "Currency": "Moeda", + "Arrows": "Setas; flechas", + "Math": "Matemática", + "Misc": "Misc", + + // Print. + "Print": "Impressão", + + // Spell Checker. + "Spell Checker": "Verificador ortográfico", + + // Help + "Help": "Socorro", + "Shortcuts": "Atalhos", + "Inline Editor": "Editor em linha", + "Show the editor": "Mostre o editor", + "Common actions": "Ações comuns", + "Copy": "Cópia de", + "Cut": "Cortar", + "Paste": "Colar", + "Basic Formatting": "Formatação básica", + "Increase quote level": "Aumentar o nível de cotação", + "Decrease quote level": "Diminuir o nível de cotação", + "Image / Video": "Imagem / video", + "Resize larger": "Redimensionar maior", + "Resize smaller": "Redimensionar menor", + "Table": "Tabela", + "Select table cell": "Selecione a célula da tabela", + "Extend selection one cell": "Ampliar a seleção de uma célula", + "Extend selection one row": "Ampliar a seleção uma linha", + "Navigation": "Navegação", + "Focus popup / toolbar": "Foco popup / barra de ferramentas", + "Return focus to previous position": "Retornar o foco para a posição anterior", + + // Embed.ly + "Embed URL": "URL de inserção", + "Paste in a URL to embed": "Colar em url para incorporar", + + // Word Paste. + "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "O conteúdo colado vem de um documento Microsoft Word. Você quer manter o formato ou limpá-lo?", + "Keep": "Guarda", + "Clean": "Limpar \ limpo", + "Word Paste Detected": "Pasta de palavras detectada" + }, + direction: "ltr" +}; + +})); diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/ro.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/ro.js new file mode 100644 index 0000000..ca926ab --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/ro.js @@ -0,0 +1,319 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + // require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + return factory(jQuery); + }; + } else { + // Browser globals + factory(window.jQuery); + } +}(function ($) { +/** + * Romanian + */ + +$.FE.LANGUAGE['ro'] = { + translation: { + // Place holder + "Type something": "Tasteaz\u0103 ceva", + + // Basic formatting + "Bold": "\u00cengro\u015fat", + "Italic": "Cursiv", + "Underline": "Subliniat", + "Strikethrough": "T\u0103iat", + + // Main buttons + "Insert": "Insereaz\u0103", + "Delete": "\u015eterge", + "Cancel": "Anuleaz\u0103", + "OK": "Ok", + "Back": "\u00cenapoi", + "Remove": "\u0218terge", + "More": "Mai mult", + "Update": "Actualizeaz\u0103", + "Style": "Stil", + + // Font + "Font Family": "Font", + "Font Size": "Dimensiune font", + + // Colors + "Colors": "Culoare", + "Background": "Fundal", + "Text": "Text", + "HEX Color": "Culoare Hexa", + + // Paragraphs + "Paragraph Format": "Format paragraf", + "Normal": "Normal", + "Code": "Cod", + "Heading 1": "Antet 1", + "Heading 2": "Antet 2", + "Heading 3": "Antet 3", + "Heading 4": "Antet 4", + + // Style + "Paragraph Style": "Stil paragraf", + "Inline Style": "Stil \u00een linie", + + // Alignment + "Align": "Aliniere", + "Align Left": "Aliniere la st\u00e2nga", + "Align Center": "Aliniere la centru", + "Align Right": "Aliniere la dreapta", + "Align Justify": "Aliniere pe toat\u0103 l\u0103\u021bimea", + "None": "Niciunul", + + // Lists + "Ordered List": "List\u0103 ordonat\u0103", + "Unordered List": "List\u0103 neordonat\u0103", + + // Indent + "Decrease Indent": "De-indenteaz\u0103", + "Increase Indent": "Indenteaz\u0103", + + // Links + "Insert Link": "Inserare link", + "Open in new tab": "Deschide \u00EEn tab nou", + "Open Link": "Deschide link", + "Edit Link": "Editare link", + "Unlink": "\u0218terge link-ul", + "Choose Link": "Alege link", + + // Images + "Insert Image": "Inserare imagine", + "Upload Image": "\u00cencarc\u0103 imagine", + "By URL": "Dup\u0103 URL", + "Browse": "R\u0103sfoie\u0219te", + "Drop image": "Trage imagine", + "or click": "sau f\u0103 click", + "Manage Images": "Gestionare imagini", + "Loading": "Se \u00eencarc\u0103", + "Deleting": "", + "Deleting": "Se \u0219terge", + "Tags": "Etichete", + "Are you sure? Image will be deleted.": "Sunte\u021bi sigur? Imaginea va fi \u015ftears\u0103.", + "Replace": "\u00cenlocuire", + "Uploading": "Imaginea se \u00eencarc\u0103", + "Loading image": "Imaginea se \u00eencarc\u0103", + "Display": "Afi\u0219are", + "Inline": "\u00cen linie", + "Break Text": "Sparge text", + "Alternate Text": "Text alternativ", + "Change Size": "Modificare dimensiuni", + "Width": "L\u0103\u021bime", + "Height": "\u00cen\u0103l\u021bime", + "Something went wrong. Please try again.": "Ceva n-a mers bine. V\u0103 rug\u0103m s\u0103 \u00eencerca\u021bi din nou.", + "Image Caption": "Captura imaginii", + "Advanced Edit": "Editare avansată", + + // Video + "Insert Video": "Inserare video", + "Embedded Code": "Cod embedded", + "Paste in a video URL": "Lipiți o adresă URL pentru video", + "Drop video": "Trage video", + "Your browser does not support HTML5 video.": "Browserul dvs. nu acceptă videoclipul html5.", + "Upload Video": "Încărcați videoclipul", + + // Tables + "Insert Table": "Inserare tabel", + "Table Header": "Antet tabel", + "Remove Table": "\u0218terge tabel", + "Table Style": "Stil tabel", + "Horizontal Align": "Aliniere orizontal\u0103", + "Row": "Linie", + "Insert row above": "Insereaz\u0103 linie \u00eenainte", + "Insert row below": "Insereaz\u0103 linie dup\u0103", + "Delete row": "\u015eterge linia", + "Column": "Coloan\u0103", + "Insert column before": "Insereaz\u0103 coloan\u0103 \u00eenainte", + "Insert column after": "Insereaz\u0103 coloan\u0103 dup\u0103", + "Delete column": "\u015eterge coloana", + "Cell": "Celula", + "Merge cells": "Une\u015fte celulele", + "Horizontal split": "\u00cemparte orizontal", + "Vertical split": "\u00cemparte vertical", + "Cell Background": "Fundal celul\u0103", + "Vertical Align": "Aliniere vertical\u0103", + "Top": "Sus", + "Middle": "Mijloc", + "Bottom": "Jos", + "Align Top": "Aliniere sus", + "Align Middle": "Aliniere la mijloc", + "Align Bottom": "Aliniere jos", + "Cell Style": "Stil celul\u0103", + + // Files + "Upload File": "\u00cenc\u0103rca\u021bi fi\u0219ier", + "Drop file": "Trage fi\u0219ier", + + // Emoticons + "Emoticons": "Emoticoane", + "Grinning face": "Fa\u021b\u0103 r\u00e2njind", + "Grinning face with smiling eyes": "Fa\u021b\u0103 r\u00e2njind cu ochi z\u00e2mbitori", + "Face with tears of joy": "Fa\u021b\u0103 cu lacrimi de bucurie", + "Smiling face with open mouth": "Fa\u021b\u0103 z\u00e2mbitoare cu gura deschis\u0103", + "Smiling face with open mouth and smiling eyes": "Fa\u021b\u0103 z\u00e2mbitoare cu gura deschis\u0103 \u0219i ochi z\u00e2mbitori", + "Smiling face with open mouth and cold sweat": "Fa\u021b\u0103 z\u00e2mbitoare cu gura deschis\u0103 şi sudoare rece", + "Smiling face with open mouth and tightly-closed eyes": "Fa\u021b\u0103 z\u00e2mbitoare cu gura deschis\u0103 şi ochii ferm \u00eenchi\u0219i", + "Smiling face with halo": "Fa\u021b\u0103 z\u00e2mbitoare cu aur\u0103", + "Smiling face with horns": "Fa\u021b\u0103 z\u00e2mbitoare cu coarne", + "Winking face": "Fa\u021b\u0103 clipind", + "Smiling face with smiling eyes": "Fa\u021b\u0103 z\u00e2mbitoare cu ochi z\u00e2mbitori", + "Face savoring delicious food": "Fa\u021b\u0103 savur\u00e2nd preparate delicioase", + "Relieved face": "Fa\u021b\u0103 u\u0219urat\u0103", + "Smiling face with heart-shaped eyes": "Fa\u021b\u0103 z\u00e2mbitoare cu ochi in forma de inim\u0103", + "Smiling face with sunglasses": "Fa\u021b\u0103 z\u00e2mbitoare cu ochelari de soare", + "Smirking face": "Fa\u021b\u0103 cu sur\u00e2s afectat", + "Neutral face": "Fa\u021b\u0103 neutr\u0103", + "Expressionless face": "Fa\u021b\u0103 f\u0103r\u0103 expresie", + "Unamused face": "Fa\u021b\u0103 neamuzat\u0103", + "Face with cold sweat": "Fa\u021b\u0103 cu sudoare rece", + "Pensive face": "Fa\u021b\u0103 medit\u00e2nd", + "Confused face": "Fa\u021b\u0103 confuz\u0103", + "Confounded face": "Fa\u021b\u0103 z\u0103p\u0103cit\u0103", + "Kissing face": "Fa\u021b\u0103 s\u0103rut\u00e2nd", + "Face throwing a kiss": "Fa\u021b\u0103 arunc\u00e2nd un s\u0103rut", + "Kissing face with smiling eyes": "Fa\u021b\u0103 s\u0103rut\u00e2nd cu ochi z\u00e2mbitori", + "Kissing face with closed eyes": "Fa\u021b\u0103 s\u0103rut\u00e2nd cu ochii \u00eenchi\u0219i", + "Face with stuck out tongue": "Fa\u021b\u0103 cu limba afar\u0103", + "Face with stuck out tongue and winking eye": "Fa\u021b\u0103 cu limba scoas\u0103 clipind", + "Face with stuck out tongue and tightly-closed eyes": "Fa\u021b\u0103 cu limba scoas\u0103 \u0219i ochii ferm \u00eenchi\u0219i", + "Disappointed face": "Fa\u021b\u0103 dezam\u0103git\u0103", + "Worried face": "Fa\u021b\u0103 \u00eengrijorat\u0103", + "Angry face": "Fa\u021b\u0103 nervoas\u0103", + "Pouting face": "Fa\u021b\u0103 fierb\u00e2nd", + "Crying face": "Fa\u021b\u0103 pl\u00e2ng\u00e2nd", + "Persevering face": "Fa\u021b\u0103 perseverent\u0103", + "Face with look of triumph": "Fa\u021b\u0103 triumf\u0103toare", + "Disappointed but relieved face": "Fa\u021b\u0103 dezam\u0103git\u0103 dar u\u0219urat\u0103", + "Frowning face with open mouth": "Fa\u021b\u0103 \u00eencruntat\u0103 cu gura deschis\u0103", + "Anguished face": "Fa\u021b\u0103 \u00eendurerat\u0103", + "Fearful face": "Fa\u021b\u0103 tem\u0103toare", + "Weary face": "Fa\u021b\u0103 \u00eengrijorat\u0103", + "Sleepy face": "Fa\u021b\u0103 adormit\u0103", + "Tired face": "Fa\u021b\u0103 obosit\u0103", + "Grimacing face": "Fa\u021b\u0103 cu grimas\u0103", + "Loudly crying face": "Fa\u021b\u0103 pl\u00e2ng\u00e2nd zgomotos", + "Face with open mouth": "Fa\u021b\u0103 cu gura deschis\u0103", + "Hushed face": "Fa\u021b\u0103 discret\u0103", + "Face with open mouth and cold sweat": "Fa\u021b\u0103 cu gura deschis\u0103 si sudoare rece", + "Face screaming in fear": "Fa\u021b\u0103 \u021bip\u00e2nd de fric\u0103", + "Astonished face": "Fa\u021b\u0103 uimit\u0103", + "Flushed face": "Fa\u021b\u0103 sp\u0103lat\u0103", + "Sleeping face": "Fa\u021b\u0103 adormit\u0103", + "Dizzy face": "Fa\u021b\u0103 ame\u021bit\u0103", + "Face without mouth": "Fa\u021b\u0103 f\u0103r\u0103 gur\u0103", + "Face with medical mask": "Fa\u021b\u0103 cu masc\u0103 medical\u0103", + + // Line breaker + "Break": "Desparte", + + // Horizontal line + "Insert Horizontal Line": "Inserare linie orizontal\u0103", + + // Math + "Subscript": "Indice", + "Superscript": "Exponent", + + // Full screen + "Fullscreen": "Ecran complet", + + // Clear formatting + "Clear Formatting": "Elimina\u021bi formatarea", + + // Undo, redo + "Undo": "Reexecut\u0103", + "Redo": "Dezexecut\u0103", + + // Select all + "Select All": "Selecteaz\u0103 tot", + + // Code view + "Code View": "Vizualizare cod", + + // Quote + "Quote": "Citat", + "Increase": "Indenteaz\u0103", + "Decrease": "De-indenteaz\u0103", + + // Quick Insert + "Quick Insert": "Inserare rapid\u0103", + + // Spcial Characters + "Special Characters": "Caracterele speciale", + "Latin": "Latină", + "Greek": "Greacă", + "Cyrillic": "Chirilic", + "Punctuation": "Punctuaţie", + "Currency": "Valută", + "Arrows": "Săgeți", + "Math": "Matematică", + "Misc": "Diverse", + + // Print. + "Print": "Imprimare", + + // Spell Checker. + "Spell Checker": "Ortografie", + + // Help + "Help": "Ajutor", + "Shortcuts": "Comenzi rapide", + "Inline Editor": "Editor inline", + "Show the editor": "Arătați editorul", + "Common actions": "Acțiuni comune", + "Copy": "Copie", + "Cut": "A taia", + "Paste": "Lipire", + "Basic Formatting": "Formatul de bază", + "Increase quote level": "Creșteți nivelul cotației", + "Decrease quote level": "Micșorați nivelul cotației", + "Image / Video": "Imagine / video", + "Resize larger": "Redimensionați mai mare", + "Resize smaller": "Redimensionați mai puțin", + "Table": "Tabel", + "Select table cell": "Selectați celula tabelă", + "Extend selection one cell": "Extindeți selecția la o celulă", + "Extend selection one row": "Extindeți selecția cu un rând", + "Navigation": "Navigare", + "Focus popup / toolbar": "Focus popup / bara de instrumente", + "Return focus to previous position": "Reveniți la poziția anterioară", + + // Embed.ly + "Embed URL": "Încorporați url", + "Paste in a URL to embed": "Lipiți un URL pentru a-l încorpora", + + // Word Paste. + "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Conținutul lipit vine dintr-un document word Microsoft. Doriți să păstrați formatul sau să îl curățați?", + "Keep": "A pastra", + "Clean": "Curat", + "Word Paste Detected": "A fost detectată lipire din Word" + }, + direction: "ltr" +}; + +})); diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/ru.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/ru.js new file mode 100644 index 0000000..44694c7 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/ru.js @@ -0,0 +1,318 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + // require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + return factory(jQuery); + }; + } else { + // Browser globals + factory(window.jQuery); + } +}(function ($) { +/** + * Russian + */ + +$.FE.LANGUAGE['ru'] = { + translation: { + // Place holder + "Type something": "\u041d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u0447\u0442\u043e\u002d\u043d\u0438\u0431\u0443\u0434\u044c", + + // Basic formatting + "Bold": "\u0416\u0438\u0440\u043d\u044b\u0439", + "Italic": "\u041a\u0443\u0440\u0441\u0438\u0432", + "Underline": "\u041f\u043e\u0434\u0447\u0435\u0440\u043a\u043d\u0443\u0442\u044b\u0439", + "Strikethrough": "\u0417\u0430\u0447\u0435\u0440\u043a\u043d\u0443\u0442\u044b\u0439", + + // Main buttons + "Insert": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c", + "Delete": "\u0423\u0434\u0430\u043b\u0438\u0442\u044c", + "Cancel": "\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c", + "OK": "\u041e\u043a", + "Back": "\u043d\u0430\u0437\u0430\u0434", + "Remove": "\u0423\u0434\u0430\u043b\u0438\u0442\u044c", + "More": "\u0411\u043e\u043b\u044c\u0448\u0435", + "Update": "\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c", + "Style": "\u0421\u0442\u0438\u043b\u044c", + + // Font + "Font Family": "\u0428\u0440\u0438\u0444\u0442", + "Font Size": "\u0420\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430", + + // Colors + "Colors": "\u0426\u0432\u0435\u0442\u0430", + "Background": "\u0424\u043e\u043d", + "Text": "\u0422\u0435\u043a\u0441\u0442", + "HEX Color": "Шестигранный цвет", + + // Paragraphs + "Paragraph Format": "\u0424\u043e\u0440\u043c\u0430\u0442 \u0430\u0431\u0437\u0430\u0446\u0430", + "Normal": "\u041d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439", + "Code": "\u041a\u043e\u0434", + "Heading 1": "\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 1", + "Heading 2": "\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 2", + "Heading 3": "\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 3", + "Heading 4": "\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 4", + + // Style + "Paragraph Style": "\u0421\u0442\u0438\u043b\u044c \u0430\u0431\u0437\u0430\u0446\u0430", + "Inline Style": "\u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0441\u0442\u0438\u043b\u044c", + + // Alignment + "Align": "\u0412\u044b\u0440\u043e\u0432\u043d\u044f\u0442\u044c \u043f\u043e", + "Align Left": "\u041f\u043e \u043b\u0435\u0432\u043e\u043c\u0443 \u043a\u0440\u0430\u044e", + "Align Center": "\u041f\u043e \u0446\u0435\u043d\u0442\u0440\u0443", + "Align Right": "\u041f\u043e \u043f\u0440\u0430\u0432\u043e\u043c\u0443 \u043a\u0440\u0430\u044e", + "Align Justify": "\u041f\u043e \u0448\u0438\u0440\u0438\u043d\u0435", + "None": "\u041d\u0438\u043a\u0430\u043a", + + // Lists + "Ordered List": "\u041d\u0443\u043c\u0435\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a", + "Unordered List": "\u041c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a", + + // Indent + "Decrease Indent": "\u0423\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c \u043e\u0442\u0441\u0442\u0443\u043f", + "Increase Indent": "\u0423\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c \u043e\u0442\u0441\u0442\u0443\u043f", + + // Links + "Insert Link": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443", + "Open in new tab": "\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0432 \u043d\u043e\u0432\u043e\u0439 \u0432\u043a\u043b\u0430\u0434\u043a\u0435", + "Open Link": "\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435", + "Edit Link": "\u041e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443", + "Unlink": "\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443", + "Choose Link": "\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0441\u0441\u044b\u043b\u043a\u0443", + + // Images + "Insert Image": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435", + "Upload Image": "\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435", + "By URL": "\u041f\u043e \u0441\u0441\u044b\u043b\u043a\u0435", + "Browse": "\u0417\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f", + "Drop image": "\u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u0435 \u0441\u044e\u0434\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435", + "or click": "\u0438\u043b\u0438 \u043d\u0430\u0436\u043c\u0438\u0442\u0435", + "Manage Images": "\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u043c\u0438", + "Loading": "\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430", + "Deleting": "\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435", + "Tags": "\u041a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0441\u043b\u043e\u0432\u0430", + "Are you sure? Image will be deleted.": "\u0412\u044b \u0443\u0432\u0435\u0440\u0435\u043d\u044b? \u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0443\u0434\u0430\u043b\u0435\u043d\u043e.", + "Replace": "\u0417\u0430\u043c\u0435\u043d\u0438\u0442\u044c", + "Uploading": "\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430", + "Loading image": "\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f", + "Display": "\u041f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435", + "Inline": "\u041e\u0431\u0442\u0435\u043a\u0430\u043d\u0438\u0435 \u0442\u0435\u043a\u0441\u0442\u043e\u043c", + "Break Text": "\u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0435 \u0432 \u0442\u0435\u043a\u0441\u0442", + "Alternate Text": "\u0410\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442", + "Change Size": "\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440", + "Width": "\u0428\u0438\u0440\u0438\u043d\u0430", + "Height": "\u0412\u044b\u0441\u043e\u0442\u0430", + "Something went wrong. Please try again.": "\u0427\u0442\u043e\u002d\u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a\u002e \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430\u002c \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0435\u0449\u0435 \u0440\u0430\u0437\u002e", + "Image Caption": "Подпись изображения", + "Advanced Edit": "Расширенное редактирование", + + // Video + "Insert Video": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432\u0438\u0434\u0435\u043e", + "Embedded Code": "\u0048\u0054\u004d\u004c\u002d\u043a\u043e\u0434 \u0434\u043b\u044f \u0432\u0441\u0442\u0430\u0432\u043a\u0438", + "Paste in a video URL": "Вставить URL-адрес видео", + "Drop video": "Перетащите видефайл", + "Your browser does not support HTML5 video.": "Ваш браузер не поддерживает видео html5.", + "Upload Video": "Загрузить видео", + + // Tables + "Insert Table": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0443", + "Table Header": "\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0442\u0430\u0431\u043b\u0438\u0446\u044b", + "Remove Table": "\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0443", + "Table Style": "\u0421\u0442\u0438\u043b\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u044b", + "Horizontal Align": "\u0413\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435", + "Row": "\u0421\u0442\u0440\u043e\u043a\u0430", + "Insert row above": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443 \u0441\u0432\u0435\u0440\u0445\u0443", + "Insert row below": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443 \u0441\u043d\u0438\u0437\u0443", + "Delete row": "\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443", + "Column": "\u0421\u0442\u043e\u043b\u0431\u0435\u0446", + "Insert column before": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0435\u0446 \u0441\u043b\u0435\u0432\u0430", + "Insert column after": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0435\u0446 \u0441\u043f\u0440\u0430\u0432\u0430", + "Delete column": "\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0435\u0446", + "Cell": "\u042f\u0447\u0435\u0439\u043a\u0430", + "Merge cells": "\u041e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u044f\u0447\u0435\u0439\u043a\u0438", + "Horizontal split": "\u0420\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e", + "Vertical split": "\u0420\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e", + "Cell Background": "\u0424\u043e\u043d \u044f\u0447\u0435\u0439\u043a\u0438", + "Vertical Align": "\u0412\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0435 \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435", + "Top": "\u041f\u043e \u0432\u0435\u0440\u0445\u043d\u0435\u043c\u0443 \u043a\u0440\u0430\u044e", + "Middle": "\u041f\u043e\u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0435", + "Bottom": "\u041f\u043e \u043d\u0438\u0436\u043d\u0435\u043c\u0443 \u043a\u0440\u0430\u044e", + "Align Top": "\u0412\u044b\u0440\u043e\u0432\u043d\u044f\u0442\u044c \u043f\u043e \u0432\u0435\u0440\u0445\u043d\u0435\u043c\u0443 \u043a\u0440\u0430\u044e", + "Align Middle": "\u0412\u044b\u0440\u043e\u0432\u043d\u044f\u0442\u044c \u043f\u043e \u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0435", + "Align Bottom": "\u0412\u044b\u0440\u043e\u0432\u043d\u044f\u0442\u044c \u043f\u043e \u043d\u0438\u0436\u043d\u0435\u043c\u0443 \u043a\u0440\u0430\u044e", + "Cell Style": "\u0421\u0442\u0438\u043b\u044c \u044f\u0447\u0435\u0439\u043a\u0438", + + // Files + "Upload File": "\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0444\u0430\u0439\u043b", + "Drop file": "\u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u0435 \u0441\u044e\u0434\u0430 \u0444\u0430\u0439\u043b", + + // Emoticons + "Emoticons": "\u0421\u043c\u0430\u0439\u043b\u0438\u043a\u0438", + "Grinning face": "\u0423\u0445\u043c\u044b\u043b\u043a\u0430 \u043d\u0430 \u043b\u0438\u0446\u0435", + "Grinning face with smiling eyes": "\u0423\u0441\u043c\u0435\u0445\u043d\u0443\u0432\u0448\u0435\u0435\u0441\u044f \u043b\u0438\u0446\u043e \u0441 \u0443\u043b\u044b\u0431\u0430\u044e\u0449\u0438\u043c\u0438\u0441\u044f \u0433\u043b\u0430\u0437\u0430\u043c\u0438", + "Face with tears of joy": "\u041b\u0438\u0446\u043e \u0441\u043e \u0441\u043b\u0435\u0437\u0430\u043c\u0438 \u0440\u0430\u0434\u043e\u0441\u0442\u0438", + "Smiling face with open mouth": "\u0423\u043b\u044b\u0431\u0430\u044e\u0449\u0435\u0435\u0441\u044f \u043b\u0438\u0446\u043e \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0440\u0442\u043e\u043c", + "Smiling face with open mouth and smiling eyes": "\u0423\u043b\u044b\u0431\u0430\u044f\u0441\u044c \u043b\u0438\u0446\u043e \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0440\u0442\u043e\u043c \u0438 \u0443\u043b\u044b\u0431\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u0433\u043b\u0430\u0437\u0430", + "Smiling face with open mouth and cold sweat": "\u0423\u043b\u044b\u0431\u0430\u044f\u0441\u044c \u043b\u0438\u0446\u043e \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0440\u0442\u043e\u043c \u0438 \u0445\u043e\u043b\u043e\u0434\u043d\u044b\u0439 \u043f\u043e\u0442", + "Smiling face with open mouth and tightly-closed eyes": "\u0423\u043b\u044b\u0431\u0430\u044f\u0441\u044c \u043b\u0438\u0446\u043e \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0440\u0442\u043e\u043c \u0438 \u043f\u043b\u043e\u0442\u043d\u043e \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u043c\u0438 \u0433\u043b\u0430\u0437\u0430\u043c\u0438", + "Smiling face with halo": "\u0423\u043b\u044b\u0431\u0430\u044f\u0441\u044c \u043b\u0438\u0446\u043e \u0433\u0430\u043b\u043e", + "Smiling face with horns": "\u0423\u043b\u044b\u0431\u0430\u044f\u0441\u044c \u043b\u0438\u0446\u043e \u0441 \u0440\u043e\u0433\u0430\u043c\u0438", + "Winking face": "\u043f\u043e\u0434\u043c\u0438\u0433\u0438\u0432\u0430\u044f \u043b\u0438\u0446\u043e", + "Smiling face with smiling eyes": "\u0423\u043b\u044b\u0431\u0430\u044f\u0441\u044c \u043b\u0438\u0446\u043e \u0441 \u0443\u043b\u044b\u0431\u0430\u044e\u0449\u0438\u043c\u0438\u0441\u044f \u0433\u043b\u0430\u0437\u0430\u043c\u0438", + "Face savoring delicious food": "\u041b\u0438\u0446\u043e \u0441\u043c\u0430\u043a\u0443\u044e\u0449\u0435\u0435 \u0432\u043a\u0443\u0441\u043d\u0443\u044e \u0435\u0434\u0443", + "Relieved face": "\u041e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0435\u043d\u044b \u043b\u0438\u0446\u043e", + "Smiling face with heart-shaped eyes": "\u0423\u043b\u044b\u0431\u0430\u044f\u0441\u044c \u043b\u0438\u0446\u043e \u0432 \u0444\u043e\u0440\u043c\u0435 \u0441\u0435\u0440\u0434\u0446\u0430 \u0433\u043b\u0430\u0437\u0430\u043c\u0438", + "Smiling face with sunglasses": "\u0423\u043b\u044b\u0431\u0430\u044f\u0441\u044c \u043b\u0438\u0446\u043e \u0441 \u043e\u0447\u043a\u0430\u043c\u0438", + "Smirking face": "\u0423\u0441\u043c\u0435\u0445\u043d\u0443\u0432\u0448\u0438\u0441\u044c \u043b\u0438\u0446\u043e", + "Neutral face": "\u041e\u0431\u044b\u0447\u043d\u044b\u0439 \u043b\u0438\u0446\u043e", + "Expressionless face": "\u041d\u0435\u0432\u044b\u0440\u0430\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043b\u0438\u0446\u043e", + "Unamused face": "\u041d\u0435 \u0441\u043c\u0435\u0448\u043d\u043e \u043b\u0438\u0446\u043e", + "Face with cold sweat": "\u041b\u0438\u0446\u043e \u0432 \u0445\u043e\u043b\u043e\u0434\u043d\u043e\u043c \u043f\u043e\u0442\u0443", + "Pensive face": "\u0417\u0430\u0434\u0443\u043c\u0447\u0438\u0432\u044b\u0439 \u043b\u0438\u0446\u043e", + "Confused face": "\u0421\u043c\u0443\u0449\u0435\u043d\u043d\u043e\u0435 \u043b\u0438\u0446\u043e", + "Confounded face": "\u041f\u043e\u0441\u0442\u044b\u0434\u043d\u043e\u0435 \u043b\u0438\u0446\u043e", + "Kissing face": "\u041f\u043e\u0446\u0435\u043b\u0443\u0438 \u043b\u0438\u0446\u043e", + "Face throwing a kiss": "\u041b\u0438\u0446\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u0435 \u043f\u043e\u0446\u0435\u043b\u0443\u0439", + "Kissing face with smiling eyes": "\u041f\u043e\u0446\u0435\u043b\u0443\u0438 \u043b\u0438\u0446\u043e \u0441 \u0443\u043b\u044b\u0431\u0430\u044e\u0449\u0438\u043c\u0438\u0441\u044f \u0433\u043b\u0430\u0437\u0430\u043c\u0438", + "Kissing face with closed eyes": "\u041f\u043e\u0446\u0435\u043b\u0443\u0438 \u043b\u0438\u0446\u043e \u0441 \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u043c\u0438 \u0433\u043b\u0430\u0437\u0430\u043c\u0438", + "Face with stuck out tongue": "\u041b\u0438\u0446\u043e \u0441 \u0442\u043e\u0440\u0447\u0430\u0449\u0438\u043c \u044f\u0437\u044b\u043a\u043e\u043c", + "Face with stuck out tongue and winking eye": "\u041b\u0438\u0446\u043e \u0441 \u0442\u043e\u0440\u0447\u0430\u0449\u0438\u043c \u044f\u0437\u044b\u043a\u043e\u043c \u0438 \u043f\u043e\u0434\u043c\u0438\u0433\u0438\u0432\u0430\u044e\u0449\u0438\u043c \u0433\u043b\u0430\u0437\u043e\u043c", + "Face with stuck out tongue and tightly-closed eyes": "\u041b\u0438\u0446\u043e \u0441 \u0442\u043e\u0440\u0447\u0430\u0449\u0438\u043c \u044f\u0437\u044b\u043a\u043e\u043c \u0438 \u043f\u043b\u043e\u0442\u043d\u043e \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u043c\u0438 \u0433\u043b\u0430\u0437\u0430\u043c\u0438", + "Disappointed face": "\u0420\u0430\u0437\u043e\u0447\u0430\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u043b\u0438\u0446\u043e", + "Worried face": "\u041e\u0431\u0435\u0441\u043f\u043e\u043a\u043e\u0435\u043d\u043d\u044b\u0439 \u043b\u0438\u0446\u043e", + "Angry face": "\u0417\u043b\u043e\u0439 \u043b\u0438\u0446\u043e", + "Pouting face": "\u041f\u0443\u0445\u043b\u044b\u0435 \u043b\u0438\u0446\u043e", + "Crying face": "\u041f\u043b\u0430\u0447\u0443\u0449\u0435\u0435 \u043b\u0438\u0446\u043e", + "Persevering face": "\u041d\u0430\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u0430\u044f \u043b\u0438\u0446\u043e", + "Face with look of triumph": "\u041b\u0438\u0446\u043e \u0441 \u0432\u0438\u0434\u043e\u043c \u0442\u0440\u0438\u0443\u043c\u0444\u0430", + "Disappointed but relieved face": "\u0420\u0430\u0437\u043e\u0447\u0430\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435\u002c \u043d\u043e \u0441\u043f\u043e\u043a\u043e\u0439\u043d\u043e\u0435 \u043b\u0438\u0446\u043e", + "Frowning face with open mouth": "\u041d\u0430\u0445\u043c\u0443\u0440\u0435\u043d\u043d\u043e\u0435 \u043b\u0438\u0446\u043e \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0440\u0442\u043e\u043c", + "Anguished face": "\u043c\u0443\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043b\u0438\u0446\u043e", + "Fearful face": "\u041d\u0430\u043f\u0443\u0433\u0430\u043d\u043d\u043e\u0435 \u043b\u0438\u0446\u043e", + "Weary face": "\u0423\u0441\u0442\u0430\u043b\u044b\u0439 \u043b\u0438\u0446\u043e", + "Sleepy face": "\u0441\u043e\u043d\u043d\u043e\u0435 \u043b\u0438\u0446\u043e", + "Tired face": "\u0423\u0441\u0442\u0430\u043b\u0438 \u043b\u0438\u0446\u043e", + "Grimacing face": "\u0413\u0440\u0438\u043c\u0430\u0441\u0430 \u043d\u0430 \u043b\u0438\u0446\u0435", + "Loudly crying face": "\u0413\u0440\u043e\u043c\u043a\u043e \u043f\u043b\u0430\u0447\u0430 \u043b\u0438\u0446\u043e", + "Face with open mouth": "\u041b\u0438\u0446\u043e \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0440\u0442\u043e\u043c", + "Hushed face": "\u0417\u0430\u0442\u0438\u0445\u0448\u0438\u0439 \u043b\u0438\u0446\u043e", + "Face with open mouth and cold sweat": "\u041b\u0438\u0446\u043e \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0440\u0442\u043e\u043c \u0432 \u0445\u043e\u043b\u043e\u0434\u043d\u043e\u043c \u043f\u043e\u0442\u0443", + "Face screaming in fear": "\u041b\u0438\u0446\u043e \u043a\u0440\u0438\u0447\u0430\u0449\u0435\u0435 \u043e\u0442 \u0441\u0442\u0440\u0430\u0445\u0430", + "Astonished face": "\u0423\u0434\u0438\u0432\u043b\u0435\u043d\u043d\u043e\u0435 \u043b\u0438\u0446\u043e", + "Flushed face": "\u041f\u043e\u043a\u0440\u0430\u0441\u043d\u0435\u0432\u0448\u0435\u0435 \u043b\u0438\u0446\u043e", + "Sleeping face": "\u0421\u043f\u044f\u0449\u0430\u044f \u043b\u0438\u0446\u043e", + "Dizzy face": "\u0414\u0438\u0437\u0437\u0438 \u043b\u0438\u0446\u043e", + "Face without mouth": "\u041b\u0438\u0446\u043e \u0431\u0435\u0437 \u0440\u0442\u0430", + "Face with medical mask": "\u041b\u0438\u0446\u043e \u0441 \u043c\u0435\u0434\u0438\u0446\u0438\u043d\u0441\u043a\u043e\u0439 \u043c\u0430\u0441\u043a\u043e\u0439", + + // Line breaker + "Break": "\u041d\u043e\u0432\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430", + + // Math + "Subscript": "\u041d\u0438\u0436\u043d\u0438\u0439 \u0438\u043d\u0434\u0435\u043a\u0441", + "Superscript": "\u0412\u0435\u0440\u0445\u043d\u0438\u0439 \u0438\u043d\u0434\u0435\u043a\u0441", + + // Full screen + "Fullscreen": "\u041d\u0430 \u0432\u0435\u0441\u044c \u044d\u043a\u0440\u0430\u043d", + + // Horizontal line + "Insert Horizontal Line": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u0443\u044e \u043b\u0438\u043d\u0438\u044e", + + // Clear formatting + "Clear Formatting": "\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435", + + // Undo, redo + "Undo": "\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c", + "Redo": "\u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c", + + // Select all + "Select All": "\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0432\u0441\u0451", + + // Code view + "Code View": "\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u0048\u0054\u004d\u004c\u002d\u043a\u043e\u0434\u0430", + + // Quote + "Quote": "\u0426\u0438\u0442\u0430\u0442\u0430", + "Increase": "\u0423\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435", + "Decrease": "\u0421\u043d\u0438\u0436\u0435\u043d\u0438\u0435", + + // Quick Insert + "Quick Insert": "\u0411\u044b\u0441\u0442\u0440\u0430\u044f \u0432\u0441\u0442\u0430\u0432\u043a\u0430", + + // Spcial Characters + "Special Characters": "Специальные символы", + "Latin": "Латинский", + "Greek": "Греческий", + "Cyrillic": "Кириллица", + "Punctuation": "Пунктуация", + "Currency": "Валюта", + "Arrows": "Стрелки", + "Math": "Математический", + "Misc": "Разное", + + // Print. + "Print": "Распечатать", + + // Spell Checker. + "Spell Checker": "Программа проверки орфографии", + + // Help + "Help": "Помогите", + "Shortcuts": "Сочетания", + "Inline Editor": "Встроенный редактор", + "Show the editor": "Показать редактора", + "Common actions": "Общие действия", + "Copy": "Копия", + "Cut": "Порез", + "Paste": "Вставить", + "Basic Formatting": "Базовое форматирование", + "Increase quote level": "Увеличить уровень котировки", + "Decrease quote level": "Уменьшить уровень кавычек", + "Image / Video": "Изображение / видео", + "Resize larger": "Изменить размер", + "Resize smaller": "Уменьшить размер", + "Table": "Таблица", + "Select table cell": "Выбрать ячейку таблицы", + "Extend selection one cell": "Продлить выделение одной ячейки", + "Extend selection one row": "Расширить выделение на одну строку", + "Navigation": "Навигация", + "Focus popup / toolbar": "Фокусное всплывающее окно / панель инструментов", + "Return focus to previous position": "Вернуть фокус на предыдущую позицию", + + // Embed.ly + "Embed URL": "Вставить URL-адрес", + "Paste in a URL to embed": "Вставить URL-адрес для встраивания", + + // Word Paste. + "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Вложенный контент поступает из документа Microsoft Word. вы хотите сохранить формат или очистить его?", + "Keep": "Держать", + "Clean": "Чистый", + "Word Paste Detected": "Обнаружена паста слов" + }, + direction: "ltr" +}; + +})); diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/sk.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/sk.js new file mode 100644 index 0000000..aa40776 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/sk.js @@ -0,0 +1,318 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + // require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + return factory(jQuery); + }; + } else { + // Browser globals + factory(window.jQuery); + } +}(function ($) { +/** + * Slovak + */ + +$.FE.LANGUAGE['sk'] = { + translation: { + + // Place holder + "Type something": "Nap\u00ed\u0161te hoci\u010do", + + // Basic formatting + "Bold": "Tu\u010dn\u00e9", + "Italic": "Kurz\u00edva", + "Underline": "Pod\u010diarknut\u00e9", + "Strikethrough": "Pre\u0161krtnut\u00e9", + + // Main buttons + "Insert": "Vlo\u017ei\u0165", + "Delete": "Vymaza\u0165", + "Cancel": "Zru\u0161i\u0165", + "OK": "OK", + "Back": "Sp\u00e4\u0165", + "Remove": "Odstr\u00e1ni\u0165", + "More": "Viac", + "Update": "Aktualizova\u0165", + "Style": "\u0165t\u00fdl", + + // Font + "Font Family": "Typ p\u00edsma", + "Font Size": "Ve\u013ekos\u0165 p\u00edsma", + + // Colors + "Colors": "Farby", + "Background": "Pozadie", + "Text": "Text", + "HEX Color": "Hex Farby", + + // Paragraphs + "Paragraph Format": "Form\u00e1t odstavca", + "Normal": "Norm\u00e1lne", + "Code": "K\u00f3d", + "Heading 1": "Nadpis 1", + "Heading 2": "Nadpis 2", + "Heading 3": "Nadpis 3", + "Heading 4": "Nadpis 4", + + // Style + "Paragraph Style": "\u0165t\u00fdl odstavca", + "Inline Style": "Inline \u0161t\u00fdl", + + // Alignment + "Align": "Zarovnanie", + "Align Left": "Zarovna\u0165 v\u013eavo", + "Align Center": "Zarovna\u0165 na stred", + "Align Right": "Zarovna\u0165 vpravo", + "Align Justify": "Zarovna\u0165 do bloku", + "None": "\u017diadne", + + // Lists + "Ordered List": "\u010c\u00edslovan\u00fd zoznam", + "Unordered List": "Ne\u010d\u00edslovan\u00fd zoznam", + + // Indent + "Decrease Indent": "Zmen\u0161i\u0165 odsadenie", + "Increase Indent": "Zv\u00e4\u010d\u0161i\u0165 odsadenie", + + // Links + "Insert Link": "Vlo\u017ei\u0165 odkaz", + "Open in new tab": "Otvori\u0165 v novom okne", + "Open Link": "Otvori\u0165 odkaz", + "Edit Link": "Upravi\u0165 odkaz", + "Unlink": "Odstr\u00e1ni\u0165 odkaz", + "Choose Link": "Vyberte odkaz", + + // Images + "Insert Image": "Vlo\u017ei\u0165 obr\u00e1zok", + "Upload Image": "Nahra\u0165 obr\u00e1zok", + "By URL": "Z URL adresy", + "Browse": "Vybra\u0165", + "Drop image": "Pretiahnite obr\u00e1zok do tohto miesta", + "or click": "alebo kliknite a vlo\u017ete", + "Manage Images": "Spr\u00e1va obr\u00e1zkov", + "Loading": "Nahr\u00e1vam", + "Deleting": "Odstra\u0148ujem", + "Tags": "Zna\u010dky", + "Are you sure? Image will be deleted.": "Ste si ist\u00fd? Obr\u00e1zok bude odstranen\u00fd.", + "Replace": "Vymeni\u0165", + "Uploading": "Nahr\u00e1vam", + "Loading image": "Obr\u00e1zok se na\u010d\u00edtav\u00e1", + "Display": "Zobrazi\u0165", + "Inline": "Inline", + "Break Text": "Zalomenie textu", + "Alternate Text": "Alternat\u00edvny text", + "Change Size": "Zmeni\u0165 ve\u013ekos\u0165", + "Width": "\u0165\u00edrka", + "Height": "V\u00fd\u0161ka", + "Something went wrong. Please try again.": "Nie\u010do sa pokazilo. Pros\u00edm, sk\u00faste to znova.", + "Image Caption": "Titulok obrázka", + "Advanced Edit": "Pokročilá úprava", + + // Video + "Insert Video": "Vlo\u017ei\u0165 video", + "Embedded Code": "Vlo\u017een\u00fd k\u00f3d", + "Paste in a video URL": "Vložte do adresy URL videa", + "Drop video": "Drop video", + "Your browser does not support HTML5 video.": "Váš prehliadač nepodporuje video html5.", + "Upload Video": "Nahrať video", + + // Tables + "Insert Table": "Vlo\u017ei\u0165 tabu\u013eku", + "Table Header": "Hlavi\u010dka tabu\u013eky", + "Remove Table": "Odstrani\u0165 tabu\u013eku", + "Table Style": "\u0165t\u00fdl tabu\u013eky", + "Horizontal Align": "Horizont\u00e1lne zarovnanie", + "Row": "Riadok", + "Insert row above": "Vlo\u017ei\u0165 riadok nad", + "Insert row below": "Vlo\u017ei\u0165 riadok pod", + "Delete row": "Odstrani\u0165 riadok", + "Column": "St\u013apec", + "Insert column before": "Vlo\u017ei\u0165 st\u013apec v\u013eavo", + "Insert column after": "Vlo\u017ei\u0165 st\u013apec vpravo", + "Delete column": "Odstrani\u0165 st\u013apec", + "Cell": "Bunka", + "Merge cells": "Zl\u00fa\u010di\u0165 bunky", + "Horizontal split": "Horizont\u00e1lne rozdelenie", + "Vertical split": "Vertik\u00e1lne rozdelenie", + "Cell Background": "Bunka pozadia", + "Vertical Align": "Vertik\u00e1lne zarovn\u00e1n\u00ed", + "Top": "Vrch", + "Middle": "Stred", + "Bottom": "Spodok", + "Align Top": "Zarovnat na vrch", + "Align Middle": "Zarovnat na stred", + "Align Bottom": "Zarovnat na spodok", + "Cell Style": "\u0165t\u00fdl bunky", + + // Files + "Upload File": "Nahra\u0165 s\u00fabor", + "Drop file": "Vlo\u017ete s\u00fabor sem", + + // Emoticons + "Emoticons": "Emotikony", + "Grinning face": "Tv\u00e1r s \u00fasmevom", + "Grinning face with smiling eyes": "Tv\u00e1r s \u00fasmevom a o\u010dami", + "Face with tears of joy": "Tv\u00e1r so slzamy radosti", + "Smiling face with open mouth": "Usmievaj\u00faci sa tv\u00e1r s otvoren\u00fdmi \u00fastami", + "Smiling face with open mouth and smiling eyes": "Usmievaj\u00faci sa tv\u00e1r s otvoren\u00fdmi \u00fastami a o\u010dami", + "Smiling face with open mouth and cold sweat": "Usmievaj\u00faci sa tv\u00e1r s otvoren\u00fdmi \u00fastami a studen\u00fd pot", + "Smiling face with open mouth and tightly-closed eyes": "Usmievaj\u00faci sa tv\u00e1r s otvoren\u00fdmi \u00fastami a zavret\u00fdmi o\u010dami", + "Smiling face with halo": "Usmievaj\u00faci sa tv\u00e1r s halo", + "Smiling face with horns": "Usmievaj\u00faci sa tv\u00e1r s rohmi", + "Winking face": "Mrkaj\u00faca tv\u00e1r", + "Smiling face with smiling eyes": "Usmievaj\u00faci sa tv\u00e1r a o\u010dami", + "Face savoring delicious food": "Tv\u00e1r vychutn\u00e1vaj\u00faca si chutn\u00e9 jedlo", + "Relieved face": "Spokojn\u00e1 tv\u00e1r", + "Smiling face with heart-shaped eyes": "Usmievaj\u00faci sa tv\u00e1r s o\u010dami v tvare srdca", + "Smiling face with sunglasses": "Usmievaj\u00faci sa tv\u00e1r so slne\u010dn\u00fdmi okuliarmi", + "Smirking face": "U\u0161k\u0155\u0148aj\u00faca sa tv\u00e1r", + "Neutral face": "Neutr\u00e1lna tva\u0155", + "Expressionless face": "Bezv\u00fdrazn\u00e1 tv\u00e1r", + "Unamused face": "Nepobaven\u00e1 tv\u00e1r", + "Face with cold sweat": "Tv\u00e1r so studen\u00fdm potom", + "Pensive face": "Zamyslen\u00e1 tv\u00e1r", + "Confused face": "Zmeten\u00e1 tv\u00e1r", + "Confounded face": "Nahnevan\u00e1 tv\u00e1r", + "Kissing face": "Bozkavaj\u00faca tv\u00e1r", + "Face throwing a kiss": "Tv\u00e1r hadzaj\u00faca pusu", + "Kissing face with smiling eyes": "Bozk\u00e1vaj\u00faca tv\u00e1r s o\u010dami a \u00fasmevom", + "Kissing face with closed eyes": "Bozk\u00e1vaj\u00faca tv\u00e1r so zavret\u00fdmi o\u010dami", + "Face with stuck out tongue": "Tv\u00e1r s vyplazen\u00fdm jazykom", + "Face with stuck out tongue and winking eye": "Mrkaj\u00faca tv\u00e1r s vyplazen\u00fdm jazykom", + "Face with stuck out tongue and tightly-closed eyes": "Tv\u00e1r s vyplazen\u00fdm jazykom a privret\u00fdmi o\u010dami", + "Disappointed face": "Sklaman\u00e1 tv\u00e1r", + "Worried face": "Obavaj\u00faca se tv\u00e1r", + "Angry face": "Nahnevan\u00e1 tv\u00e1r", + "Pouting face": "Na\u0161pulen\u00e1 tv\u00e1r", + "Crying face": "Pla\u010d\u00faca tv\u00e1r", + "Persevering face": "H\u00fa\u017eevnat\u00e1 tv\u00e1r", + "Face with look of triumph": "Tv\u00e1r s v\u00fdrazom v\u00ed\u0165aza", + "Disappointed but relieved face": "Sklaman\u00e1 ale spokojn\u00e1 tv\u00e1r", + "Frowning face with open mouth": "Zamra\u010den\u00e1 tvar s otvoren\u00fdmi \u00fastami", + "Anguished face": "\u00dazkostn\u00e1 tv\u00e1r", + "Fearful face": "Strachuj\u00faca sa tv\u00e1r", + "Weary face": "Unaven\u00e1 tv\u00e1r", + "Sleepy face": "Ospal\u00e1 tv\u00e1r", + "Tired face": "Unaven\u00e1 tv\u00e1r", + "Grimacing face": "Sv\u00e1r s grimasou", + "Loudly crying face": "Nahlas pl\u00e1\u010d\u00faca tv\u00e1r", + "Face with open mouth": "Tv\u00e1r s otvoren\u00fdm \u00fastami", + "Hushed face": "Ml\u010diaca tv\u00e1r", + "Face with open mouth and cold sweat": "Tv\u00e1r s otvoren\u00fdmi \u00fastami a studen\u00fdm potom", + "Face screaming in fear": "Tv\u00e1r kri\u010diaca strachom", + "Astonished face": "Tv\u00e1r v \u00fa\u017ease", + "Flushed face": "S\u010dervenanie v tv\u00e1ri", + "Sleeping face": "Spiaca tv\u00e1r", + "Dizzy face": "Tv\u00e1r vyjadruj\u00faca z\u00e1vrat", + "Face without mouth": "Tv\u00e1r bez \u00fast", + "Face with medical mask": "Tv\u00e1r s lek\u00e1rskou maskou", + + // Line breaker + "Break": "Zalomenie", + + // Math + "Subscript": "Doln\u00fd index", + "Superscript": "Horn\u00fd index", + + // Full screen + "Fullscreen": "Cel\u00e1 obrazovka", + + // Horizontal line + "Insert Horizontal Line": "Vlo\u017ei\u0165 vodorovn\u00fa \u010diaru", + + // Clear formatting + "Clear Formatting": "Vymaza\u0165 formatovanie", + + // Undo, redo + "Undo": "Sp\u00e4\u0165", + "Redo": "Znova", + + // Select all + "Select All": "Vybra\u0165 v\u0161etko", + + // Code view + "Code View": "Zobrazi\u0165 html k\u00f3d", + + // Quote + "Quote": "Cit\u00e1t", + "Increase": "Nav\u00fd\u0161i\u0165", + "Decrease": "Zn\u00ed\u017ei\u0165", + + // Quick Insert + "Quick Insert": "Vlo\u017ei\u0165 zr\u00fdchlene", + + // Spcial Characters + "Special Characters": "Špeciálne znaky", + "Latin": "Latinčina", + "Greek": "Grécky", + "Cyrillic": "Cyriliky", + "Punctuation": "Interpunkcia", + "Currency": "Mena", + "Arrows": "Šípky", + "Math": "Matematika", + "Misc": "Misc", + + // Print. + "Print": "Vytlačiť", + + // Spell Checker. + "Spell Checker": "Kontrola pravopisu", + + // Help + "Help": "Pomoc", + "Shortcuts": "Skratky", + "Inline Editor": "Inline editor", + "Show the editor": "Zobraziť editor", + "Common actions": "Spoločné akcie", + "Copy": "Kópie", + "Cut": "Rez", + "Paste": "Pasta", + "Basic Formatting": "Základné formátovanie", + "Increase quote level": "Zvýšiť úroveň cenovej ponuky", + "Decrease quote level": "Znížiť úroveň cenovej ponuky", + "Image / Video": "Obrázok / video", + "Resize larger": "Zmena veľkosti", + "Resize smaller": "Meniť veľkosť", + "Table": "Stôl", + "Select table cell": "Vyberte bunku tabuľky", + "Extend selection one cell": "Rozšíriť výber jednej bunky", + "Extend selection one row": "Rozšíriť výber o jeden riadok", + "Navigation": "Navigácia", + "Focus popup / toolbar": "Zameranie / panel s nástrojmi", + "Return focus to previous position": "Vrátiť zaostrenie na predchádzajúcu pozíciu", + + // Embed.ly + "Embed URL": "Vložiť adresu URL", + "Paste in a URL to embed": "Vložte do adresy URL, ktorú chcete vložiť", + + // Word Paste. + "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Vložený obsah vychádza z dokumentu Microsoft Word. chcete formát uchovať alebo ho vyčistiť?", + "Keep": "Zachovať", + "Clean": "Čistý", + "Word Paste Detected": "Slovná vložka bola zistená" + }, + direction: "ltr" +}; +})); diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/sr.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/sr.js new file mode 100644 index 0000000..e72e27b --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/sr.js @@ -0,0 +1,318 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + // require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + return factory(jQuery); + }; + } else { + // Browser globals + factory(window.jQuery); + } +}(function ($) { +/** + * Serbian (Latin) + */ + +$.FE.LANGUAGE['sr'] = { + translation: { + // Place holder + "Type something": "Ukucajte ne\u0161tp", + + // Basic formatting + "Bold": "Podebljan", + "Italic": "Isko\u0161en", + "Underline": "Podvu\u010deno", + "Strikethrough": "Precrtan", + + // Main buttons + "Insert": "Umetanje", + "Delete": "Izbri\u0161i", + "Cancel": "Otkazivanje", + "OK": "Ok", + "Back": "Nazad", + "Remove": "Uklonite", + "More": "Vi\u0161e", + "Update": "A\u017euriranje", + "Style": "Stil", + + // Font + "Font Family": "Odaberi font", + "Font Size": "Veli\u010dina fontova", + + // Colors + "Colors": "Boje", + "Background": "Pozadina", + "Text": "Tekst", + "HEX Color": "HEX boje", + + // Paragraphs + "Paragraph Format": "Format pasusa", + "Normal": "Normalno", + "Code": "\u0160ifra", + "Heading 1": "Naslov 1", + "Heading 2": "Naslov 2", + "Heading 3": "Naslov 3", + "Heading 4": "Naslov 4", + + // Style + "Paragraph Style": "Stil pasusa", + "Inline Style": "Umetnutih stilova", + + // Alignment + "Align": "Poravnavanje", + "Align Left": "Poravnaj levo", + "Align Center": "Poravnaj u centru", + "Align Right": "Poravnaj desno", + "Align Justify": "Obostrano poravnavanje", + "None": "Niko nije", + + // Lists + "Ordered List": "Ure\u0111enih lista", + "Unordered List": "Neure\u0111enu lista", + + // Indent + "Decrease Indent": "Smanjivanje uvla\u010denja", + "Increase Indent": "Pove\u0107avanje uvla\u010denja", + + // Links + "Insert Link": "Umetni vezu", + "Open in new tab": "Otvori na novoj kartici", + "Open Link": "Otvori vezu", + "Edit Link": "Ure\u0111ivanje veze", + "Unlink": "Ukloni vezu", + "Choose Link": "Odaberite vezu", + + // Images + "Insert Image": "Umetanje slike", + "Upload Image": "Otpremanje slika", + "By URL": "Po URL adresi", + "Browse": "Potra\u017ei", + "Drop image": "Baci sliku", + "or click": "ili kliknite na dugme", + "Manage Images": "Upravljanje slike", + "Loading": "U\u010ditavanje", + "Deleting": "Brisanje", + "Tags": "Oznake", + "Are you sure? Image will be deleted.": "Jesi siguran? Slika \u0107e biti izbrisana.", + "Replace": "Zameni", + "Uploading": "Otpremanje", + "Loading image": "U\u010ditavanje slika", + "Display": "Prikaz", + "Inline": "Pri upisivanju", + "Break Text": "Prelom teksta", + "Alternate Text": "Alternativni tekst", + "Change Size": "Promena veli\u010dine", + "Width": "\u0160irina", + "Height": "Visina", + "Something went wrong. Please try again.": "Ne\u0161to krenulo naopako. Poku\u0161ajte ponovo.", + "Image Caption": "Slika natpisa", + "Advanced Edit": "Napredno uređivanje", + + // Video + "Insert Video": "Umetanje video", + "Embedded Code": "Ugra\u0111eni k\u00f4d", + "Paste in a video URL": "Lepljenje u video URL", + "Drop video": "Baci snimak", + "Your browser does not support HTML5 video.": "Vaš pregledač ne podržava HTML5 video.", + "Upload Video": "Otpremanje video", + + // Tables + "Insert Table": "Umetni tabelu", + "Table Header": "Zaglavlje tabele", + "Remove Table": "Uklanjanje tabele", + "Table Style": "Stil tabele", + "Horizontal Align": "Horizontalno poravnavanje", + "Row": "Red", + "Insert row above": "Umetni red iznad", + "Insert row below": "Umetni red ispod", + "Delete row": "Izbri\u0161i red", + "Column": "Kolone", + "Insert column before": "Umetnite kolonu pre", + "Insert column after": "Umetnite kolonu nakon", + "Delete column": "Izbri\u0161i kolone", + "Cell": "Mobilni", + "Merge cells": "Objedinjavanje \u0107elija", + "Horizontal split": "Horizontalna split", + "Vertical split": "Vertikalno razdelite", + "Cell Background": "Mobilni pozadina", + "Vertical Align": "Vertikalno poravnavanje", + "Top": "Top", + "Middle": "Srednji", + "Bottom": "Dno", + "Align Top": "Poravnaj gore", + "Align Middle": "Poravnaj po sredini", + "Align Bottom": "Poravnaj dole", + "Cell Style": "Mobilni stil", + + // Files + "Upload File": "Otpremanje datoteke", + "Drop file": "Baci datoteku", + + // Emoticons + "Emoticons": "Emotikona", + "Grinning face": "Nasmejanoj lice", + "Grinning face with smiling eyes": "Nasmejanoj lice sa osmehom o\u010di", + "Face with tears of joy": "Suo\u010davaju sa suzama radosnicama", + "Smiling face with open mouth": "Nasmejano lice sa otvorenim ustima", + "Smiling face with open mouth and smiling eyes": "Lica sa otvorenim ustima i nasmejani o\u010di", + "Smiling face with open mouth and cold sweat": "Nasmejano lice sa otvorenih usta i hladan znoj", + "Smiling face with open mouth and tightly-closed eyes": "Nasmejano lice otvorenih usta i \u010dvrsto zatvorenih o\u010diju", + "Smiling face with halo": "Nasmejano lice sa oreolom", + "Smiling face with horns": "Nasmejano lice sa rogovima", + "Winking face": "Namigivanje lice", + "Smiling face with smiling eyes": "Lica sa osmehom o\u010di", + "Face savoring delicious food": "Lice u\u045bivaju\u0436i u ukusnu hranu", + "Relieved face": "Laknulo lice", + "Smiling face with heart-shaped eyes": "Nasmejano lice sa o\u010dima u obliku srca", + "Smiling face with sunglasses": "Nasmejano lice sa nao\u010dare", + "Smirking face": "Rugaju\u0436i lice", + "Neutral face": "Neutralno lice", + "Expressionless face": "Bez izraza lica.", + "Unamused face": "Nije zapaljen lice", + "Face with cold sweat": "Suo\u010davaju sa hladnim znojem", + "Pensive face": "Nevesela lica", + "Confused face": "Zbunjeno lice", + "Confounded face": "Dosadnih lice", + "Kissing face": "Ljubim lice", + "Face throwing a kiss": "Lice baca poljubac", + "Kissing face with smiling eyes": "Ljubi lice sa osmehom o\u010di", + "Kissing face with closed eyes": "Ljubi lice sa zatvorenim o\u010dima", + "Face with stuck out tongue": "Lice sa zaglavio jezik", + "Face with stuck out tongue and winking eye": "Lice sa zaglavljen jezik i namigivanje", + "Face with stuck out tongue and tightly-closed eyes": "Lice sa zaglavljen jezik i cvrsto zatvorene o\u010di", + "Disappointed face": "Razo\u010darani lice", + "Worried face": "Zabrinuto lice", + "Angry face": "Ljut lice", + "Pouting face": "Zlovoljan lice", + "Crying face": "Plakanje lice", + "Persevering face": "Istrajnog lice", + "Face with look of triumph": "Suo\u010davaju sa izgledom trijumfa", + "Disappointed but relieved face": "Razo\u010daran ali laknulo lice", + "Frowning face with open mouth": "Namršten lice sa otvorenim ustima", + "Anguished face": "Enih lica", + "Fearful face": "Strahu lice", + "Weary face": "Umorna lica", + "Sleepy face": "Spava mi se lice", + "Tired face": "Umorna lica", + "Grimacing face": "Klupi lice", + "Loudly crying face": "Glasno plakanje lice", + "Face with open mouth": "Suo\u010davaju sa otvorenim ustima", + "Hushed face": "Tihim lice", + "Face with open mouth and cold sweat": "Suo\u010davaju sa otvorenih usta i hladan znoj", + "Face screaming in fear": "Lice vrisak u strahu", + "Astonished face": "Zadivljeni lice", + "Flushed face": "Uplakanu lice", + "Sleeping face": "Pospanog lica", + "Dizzy face": "Lice mi se vrti", + "Face without mouth": "Lice bez jezika", + "Face with medical mask": "Suo\u010davaju sa medicinskim masku", + + // Line breaker + "Break": "Prelom", + + // Math + "Subscript": "Indeksni tekst", + "Superscript": "Eksponentni tekst", + + // Full screen + "Fullscreen": "Puni ekran", + + // Horizontal line + "Insert Horizontal Line": "Umetni horizontalnu liniju", + + // Clear formatting + "Clear Formatting": "Brisanje oblikovanja", + + // Undo, redo + "Undo": "Opozovi radnju", + "Redo": "Ponavljanje", + + // Select all + "Select All": "Izaberi sve", + + // Code view + "Code View": "Prikaz koda", + + // Quote + "Quote": "Ponude", + "Increase": "Pove\u0107anje", + "Decrease": "Smanjivanje", + + // Quick Insert + "Quick Insert": "Brzo umetanje", + + // Spcial Characters + "Special Characters": "Specijalni znakovi", + "Latin": "Latino", + "Greek": "Grk", + "Cyrillic": "Ćirilica", + "Punctuation": "Interpunkcije", + "Currency": "Valuta", + "Arrows": "Strelice", + "Math": "Matematika", + "Misc": "Misc", + + // Print. + "Print": "Odštampaj", + + // Spell Checker. + "Spell Checker": "Kontrolor pravopisa", + + // Help + "Help": "Pomoć", + "Shortcuts": "Prečice", + "Inline Editor": "Pri upisivanju Editor", + "Show the editor": "Prikaži urednik", + "Common actions": "Zajedničke akcije", + "Copy": "Kopija", + "Cut": "Rez", + "Paste": "Nalepi", + "Basic Formatting": "Osnovno oblikovanje", + "Increase quote level": "Povećati ponudu za nivo", + "Decrease quote level": "Smanjenje ponude nivo", + "Image / Video": "Slika / Video", + "Resize larger": "Veće veličine", + "Resize smaller": "Promena veličine manji", + "Table": "Sto", + "Select table cell": "Select ćelije", + "Extend selection one cell": "Proširite selekciju jednu ćeliju", + "Extend selection one row": "Proširite selekciju jedan red", + "Navigation": "Navigacija", + "Focus popup / toolbar": "Fokus Iskačući meni / traka sa alatkama", + "Return focus to previous position": "Vratiti fokus na prethodnu poziciju", + + // Embed.ly + "Embed URL": "Ugradite URL", + "Paste in a URL to embed": "Nalepite URL adresu da biste ugradili", + + // Word Paste. + "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Nalepljeni sadržaj dolazi iz Microsoft Word dokument. Da li želite zadržati u formatu ili počistiti?", + "Keep": "Nastavi", + "Clean": "Oиisti", + "Word Paste Detected": "Word Nalepi otkriven" + }, + direction: "ltr" +}; + +})); diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/sv.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/sv.js new file mode 100644 index 0000000..79e38c8 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/sv.js @@ -0,0 +1,318 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + // require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + return factory(jQuery); + }; + } else { + // Browser globals + factory(window.jQuery); + } +}(function ($) { +/** + * Swedish + */ + +$.FE.LANGUAGE['sv'] = { + translation: { + // Place holder + "Type something": "Ange n\u00e5got", + + // Basic formatting + "Bold": "Fetstil", + "Italic": "Kursiv stil", + "Underline": "Understruken", + "Strikethrough": "Genomstruken", + + // Main buttons + "Insert": "Infoga", + "Delete": "Radera", + "Cancel": "Avbryt", + "OK": "Ok", + "Back": "Tillbaka", + "Remove": "Ta bort", + "More": "Mer", + "Update": "Uppdatera", + "Style": "Stil", + + // Font + "Font Family": "Teckensnitt", + "Font Size": "Teckenstorlek", + + // Colors + "Colors": "F\u00e4rger", + "Background": "Bakgrund", + "Text": "Text", + "HEX Color": "Hex färg", + + // Paragraphs + "Paragraph Format": "Format", + "Normal": "Normal", + "Code": "Kod", + "Heading 1": "Rubrik 1", + "Heading 2": "Rubrik 2", + "Heading 3": "Rubrik 3", + "Heading 4": "Rubrik 4", + + // Style + "Paragraph Style": "Styckesformat", + "Inline Style": "Infogad stil", + + // Alignment + "Align": "Justera", + "Align Left": "Vänsterjustera", + "Align Center": "Centrera", + "Align Right": "Högerjustera", + "Align Justify": "Justera", + "None": "Inget", + + // Lists + "Ordered List": "Ordnad lista", + "Unordered List": "Oordnad lista", + + // Indent + "Decrease Indent": "Minska indrag", + "Increase Indent": "\u00d6ka indrag", + + // Links + "Insert Link": "Infoga l\u00e4nk", + "Open in new tab": "\u00d6ppna i ny flik", + "Open Link": "\u00d6ppna l\u00e4nk", + "Edit Link": "Redigera l\u00e4nk", + "Unlink": "Ta bort l\u00e4nk", + "Choose Link": "V\u00e4lj l\u00e4nk", + + // Images + "Insert Image": "Infoga bild", + "Upload Image": "Ladda upp en bild", + "By URL": "Genom URL", + "Browse": "Bl\u00e4ddra", + "Drop image": "Sl\u00e4pp bild", + "or click": "eller klicka", + "Manage Images": "Hantera bilder", + "Loading": "Laddar", + "Deleting": "Raderar", + "Tags": "Etiketter", + "Are you sure? Image will be deleted.": "\u00c4r du s\u00e4ker? Bild kommer att raderas.", + "Replace": "Ers\u00e4tt", + "Uploading": "Laddar up", + "Loading image": "Laddar bild", + "Display": "Visa", + "Inline": "I linje", + "Break Text": "Bryt text", + "Alternate Text": "Alternativ text", + "Change Size": "\u00c4ndra storlek", + "Width": "Bredd", + "Height": "H\u00f6jd", + "Something went wrong. Please try again.": "N\u00e5got gick fel. Var god f\u00f6rs\u00f6k igen.", + "Image Caption": "Bildtext", + "Advanced Edit": "Avancerad redigering", + + // Video + "Insert Video": "Infoga video", + "Embedded Code": "Inb\u00e4ddad kod", + "Paste in a video URL": "Klistra in i en video url", + "Drop video": "Släpp video", + "Your browser does not support HTML5 video.": "Din webbläsare stöder inte html5-video.", + "Upload Video": "Ladda upp video", + + // Tables + "Insert Table": "Infoga tabell", + "Table Header": "Tabell huvud", + "Remove Table": "Ta bort tabellen", + "Table Style": "Tabellformat", + "Horizontal Align": "Horisontell justering", + "Row": "Rad", + "Insert row above": "Infoga rad f\u00f6re", + "Insert row below": "Infoga rad efter", + "Delete row": "Ta bort rad", + "Column": "Kolumn", + "Insert column before": "Infoga kollumn f\u00f6re", + "Insert column after": "Infoga kolumn efter", + "Delete column": "Ta bort kolumn", + "Cell": "Cell", + "Merge cells": "Sammanfoga celler", + "Horizontal split": "Dela horisontellt", + "Vertical split": "Dela vertikalt", + "Cell Background": "Cellbakgrund", + "Vertical Align": "Vertikal justering", + "Top": "Överst", + "Middle": "Mitten", + "Bottom": "Nederst", + "Align Top": "Justera överst", + "Align Middle": "Justera mitten", + "Align Bottom": "Justera nederst", + "Cell Style": "Cellformat", + + // Files + "Upload File": "Ladda upp fil", + "Drop file": "Sl\u00e4pp fil", + + // Emoticons + "Emoticons": "Uttryckssymboler", + "Grinning face": "Grina ansikte", + "Grinning face with smiling eyes": "Grina ansikte med leende \u00f6gon", + "Face with tears of joy": "Face med gl\u00e4djet\u00e5rar", + "Smiling face with open mouth": "Leende ansikte med \u00f6ppen mun", + "Smiling face with open mouth and smiling eyes": "Leende ansikte med \u00f6ppen mun och leende \u00f6gon", + "Smiling face with open mouth and cold sweat": "Leende ansikte med \u00f6ppen mun och kallsvett", + "Smiling face with open mouth and tightly-closed eyes": "Leende ansikte med \u00f6ppen mun och t\u00e4tt slutna \u00f6gon", + "Smiling face with halo": "Leende ansikte med halo", + "Smiling face with horns": "Leende ansikte med horn", + "Winking face": "Blinka ansikte", + "Smiling face with smiling eyes": "Leende ansikte med leende \u00f6gon", + "Face savoring delicious food": "Ansikte smaka uts\u00f6kt mat", + "Relieved face": "L\u00e4ttad ansikte", + "Smiling face with heart-shaped eyes": "Leende ansikte med hj\u00e4rtformade \u00f6gon", + "Smiling face with sunglasses": "Leende ansikte med solglas\u00f6gon", + "Smirking face": "Flinande ansikte", + "Neutral face": "Neutral ansikte", + "Expressionless face": "Uttryckslöst ansikte", + "Unamused face": "Inte roade ansikte", + "Face with cold sweat": "Ansikte med kallsvett", + "Pensive face": "Eftert\u00e4nksamt ansikte", + "Confused face": "F\u00f6rvirrad ansikte", + "Confounded face": "F\u00f6rbryllade ansikte", + "Kissing face": "Kyssande ansikte", + "Face throwing a kiss": "Ansikte kasta en kyss", + "Kissing face with smiling eyes": "Kyssa ansikte med leende \u00f6gon", + "Kissing face with closed eyes": "Kyssa ansikte med slutna \u00f6gon", + "Face with stuck out tongue": "Ansikte med stack ut tungan", + "Face with stuck out tongue and winking eye": "Ansikte med stack ut tungan och blinkande \u00f6ga", + "Face with stuck out tongue and tightly-closed eyes": "Ansikte med stack ut tungan och t\u00e4tt slutna \u00f6gon", + "Disappointed face": "Besviken ansikte", + "Worried face": "Orolig ansikte", + "Angry face": "Argt ansikte", + "Pouting face": "Sk\u00e4ggtorsk ansikte", + "Crying face": "Gr\u00e5tande ansikte", + "Persevering face": "Uth\u00e5llig ansikte", + "Face with look of triumph": "Ansikte med utseendet p\u00e5 triumf", + "Disappointed but relieved face": "Besviken men l\u00e4ttad ansikte", + "Frowning face with open mouth": "Rynkar pannan ansikte med \u00f6ppen mun", + "Anguished face": "\u00c5ngest ansikte", + "Fearful face": "R\u00e4dda ansikte", + "Weary face": "Tr\u00f6tta ansikte", + "Sleepy face": "S\u00f6mnig ansikte", + "Tired face": "Tr\u00f6tt ansikte", + "Grimacing face": "Grimaserande ansikte", + "Loudly crying face": "H\u00f6gt gr\u00e5tande ansikte", + "Face with open mouth": "Ansikte med \u00f6ppen mun", + "Hushed face": "D\u00e4mpade ansikte", + "Face with open mouth and cold sweat": "Ansikte med \u00f6ppen mun och kallsvett", + "Face screaming in fear": "Face skriker i skr\u00e4ck", + "Astonished face": "F\u00f6rv\u00e5nad ansikte", + "Flushed face": "Ansiktsrodnad", + "Sleeping face": "Sovande anskite", + "Dizzy face": "Yr ansikte", + "Face without mouth": "Ansikte utan mun", + "Face with medical mask": "Ansikte med medicinsk maskera", + + // Line breaker + "Break": "Ny rad", + + // Math + "Subscript": "Neds\u00e4nkt", + "Superscript": "Upph\u00f6jd", + + // Full screen + "Fullscreen": "Helsk\u00e4rm", + + // Horizontal line + "Insert Horizontal Line": "Infoga horisontell linje", + + // Clear formatting + "Clear Formatting": "Ta bort formatering", + + // Undo, redo + "Undo": "\u00c5ngra", + "Redo": "G\u00f6r om", + + // Select all + "Select All": "Markera allt", + + // Code view + "Code View": "Kodvy", + + // Quote + "Quote": "Citat", + "Increase": "\u00d6ka", + "Decrease": "Minska", + + // Quick Insert + "Quick Insert": "Snabbinfoga", + + // Spcial Characters + "Special Characters": "Specialtecken", + "Latin": "Latin", + "Greek": "Grekisk", + "Cyrillic": "Cyrillic", + "Punctuation": "Skiljetecken", + "Currency": "Valuta", + "Arrows": "Pilar", + "Math": "Matematik", + "Misc": "Övrigt", + + // Print. + "Print": "Skriva ut", + + // Spell Checker. + "Spell Checker": "Stavningskontroll", + + // Help + "Help": "Hjälp", + "Shortcuts": "Genvägar", + "Inline Editor": "Inline editor", + "Show the editor": "Visa redigeraren", + "Common actions": "Vanliga kommandon", + "Copy": "Kopiera", + "Cut": "Klipp ut", + "Paste": "Klistra in", + "Basic Formatting": "Grundläggande formatering", + "Increase quote level": "Öka citatnivå", + "Decrease quote level": "Minska citatnivå", + "Image / Video": "Bild / video", + "Resize larger": "Öka storlek", + "Resize smaller": "Minska storlek", + "Table": "Tabell", + "Select table cell": "Markera tabellcell", + "Extend selection one cell": "Utöka markering en cell", + "Extend selection one row": "Utöka markering en rad", + "Navigation": "Navigering", + "Focus popup / toolbar": "Fokusera popup / verktygsfältet", + "Return focus to previous position": "Byt fokus till föregående plats", + + // Embed.ly + "Embed URL": "Bädda in url", + "Paste in a URL to embed": "Klistra in i en url för att bädda in", + + // Word Paste. + "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Den inklippta texten kommer från ett Microsoft Word-dokument. Vill du behålla formateringen eller städa upp det?", + "Keep": "Behåll", + "Clean": "Städa upp", + "Word Paste Detected": "Urklipp från Word upptäckt" + }, + direction: "ltr" +}; + +})); diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/th.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/th.js new file mode 100644 index 0000000..c83f00b --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/th.js @@ -0,0 +1,318 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + // require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + return factory(jQuery); + }; + } else { + // Browser globals + factory(window.jQuery); + } +}(function ($) { +/** + * Thai + */ + +$.FE.LANGUAGE['th'] = { + translation: { + // Place holder + "Type something": "\u0e1e\u0e34\u0e21\u0e1e\u0e4c\u0e1a\u0e32\u0e07\u0e2a\u0e34\u0e48\u0e07\u0e1a\u0e32\u0e07\u0e2d\u0e22\u0e48\u0e32\u0e07", + + // Basic formatting + "Bold": "\u0e15\u0e31\u0e27\u0e2b\u0e19\u0e32", + "Italic": "\u0e15\u0e31\u0e27\u0e40\u0e2d\u0e35\u0e22\u0e07", + "Underline": "\u0e02\u0e35\u0e14\u0e40\u0e2a\u0e49\u0e19\u0e43\u0e15\u0e49", + "Strikethrough": "\u0e02\u0e35\u0e14\u0e17\u0e31\u0e1a", + + // Main buttons + "Insert": "\u0e41\u0e17\u0e23\u0e01", + "Delete": "\u0e25\u0e1a", + "Cancel": "\u0e22\u0e01\u0e40\u0e25\u0e34\u0e01", + "OK": "\u0e15\u0e01\u0e25\u0e07", + "Back": "\u0e01\u0e25\u0e31\u0e1a", + "Remove": "\u0e40\u0e2d\u0e32\u0e2d\u0e2d\u0e01", + "More": "\u0e21\u0e32\u0e01\u0e01\u0e27\u0e48\u0e32", + "Update": "\u0e2d\u0e31\u0e1e\u0e40\u0e14\u0e17", + "Style": "\u0e2a\u0e44\u0e15\u0e25\u0e4c", + + // Font + "Font Family": "\u0e15\u0e23\u0e30\u0e01\u0e39\u0e25\u0e41\u0e1a\u0e1a\u0e2d\u0e31\u0e01\u0e29\u0e23", + "Font Size": "\u0e02\u0e19\u0e32\u0e14\u0e41\u0e1a\u0e1a\u0e2d\u0e31\u0e01\u0e29\u0e23", + + // Colors + "Colors": "\u0e2a\u0e35", + "Background": "\u0e1e\u0e37\u0e49\u0e19\u0e2b\u0e25\u0e31\u0e07", + "Text": "\u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21", + "HEX Color": "สีฐานสิบหก", + + // Paragraphs + "Paragraph Format": "\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a", + "Normal": "\u0e1b\u0e01\u0e15\u0e34", + "Code": "\u0e42\u0e04\u0e49\u0e14", + "Heading 1": "\u0e2a\u0e48\u0e27\u0e19\u0e2b\u0e31\u0e27 1", + "Heading 2": "\u0e2a\u0e48\u0e27\u0e19\u0e2b\u0e31\u0e27 2", + "Heading 3": "\u0e2a\u0e48\u0e27\u0e19\u0e2b\u0e31\u0e27 3", + "Heading 4": "\u0e2a\u0e48\u0e27\u0e19\u0e2b\u0e31\u0e27 4", + + // Style + "Paragraph Style": "\u0e25\u0e31\u0e01\u0e29\u0e13\u0e30\u0e22\u0e48\u0e2d\u0e2b\u0e19\u0e49\u0e32", + "Inline Style": "\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e2d\u0e34\u0e19\u0e44\u0e25\u0e19\u0e4c", + + // Alignment + "Align": "\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e41\u0e19\u0e27", + "Align Left": "\u0e08\u0e31\u0e14\u0e0a\u0e34\u0e14\u0e0b\u0e49\u0e32\u0e22", + "Align Center": "\u0e08\u0e31\u0e14\u0e01\u0e36\u0e48\u0e07\u0e01\u0e25\u0e32\u0e07", + "Align Right": "\u0e08\u0e31\u0e14\u0e0a\u0e34\u0e14\u0e02\u0e27\u0e32", + "Align Justify": "\u0e40\u0e15\u0e47\u0e21\u0e41\u0e19\u0e27", + "None": "\u0e44\u0e21\u0e48", + + // Lists + "Ordered List": "\u0e23\u0e32\u0e22\u0e01\u0e32\u0e23\u0e25\u0e33\u0e14\u0e31\u0e1a\u0e40\u0e25\u0e02", + "Unordered List": "\u0e23\u0e32\u0e22\u0e01\u0e32\u0e23\u0e2a\u0e31\u0e0d\u0e25\u0e31\u0e01\u0e29\u0e13\u0e4c\u0e2b\u0e31\u0e27\u0e02\u0e49\u0e2d\u0e22\u0e48\u0e2d\u0e22", + + // Indent + "Decrease Indent": "\u0e25\u0e14\u0e01\u0e32\u0e23\u0e40\u0e22\u0e37\u0e49\u0e2d\u0e07", + "Increase Indent": "\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e01\u0e32\u0e23\u0e40\u0e22\u0e37\u0e49\u0e2d\u0e07", + + // Links + "Insert Link": "\u0e41\u0e17\u0e23\u0e01\u0e25\u0e34\u0e07\u0e01\u0e4c", + "Open in new tab": "\u0e40\u0e1b\u0e34\u0e14\u0e43\u0e19\u0e41\u0e17\u0e47\u0e1a\u0e43\u0e2b\u0e21\u0e48", + "Open Link": "\u0e40\u0e1b\u0e34\u0e14\u0e25\u0e34\u0e49\u0e07\u0e04\u0e4c", + "Edit Link": "\u0e25\u0e34\u0e07\u0e04\u0e4c\u0e41\u0e01\u0e49\u0e44\u0e02", + "Unlink": "\u0e40\u0e2d\u0e32\u0e25\u0e34\u0e07\u0e01\u0e4c\u0e2d\u0e2d\u0e01", + "Choose Link": "\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e42\u0e22\u0e07", + + // Images + "Insert Image": "\u0e41\u0e17\u0e23\u0e01\u0e23\u0e39\u0e1b\u0e20\u0e32\u0e1e", + "Upload Image": "\u0e01\u0e32\u0e23\u0e2d\u0e31\u0e1b\u0e42\u0e2b\u0e25\u0e14\u0e20\u0e32\u0e1e", + "By URL": "\u0e15\u0e32\u0e21 URL", + "Browse": "\u0e40\u0e23\u0e35\u0e22\u0e01\u0e14\u0e39", + "Drop image": "\u0e27\u0e32\u0e07\u0e20\u0e32\u0e1e", + "or click": "\u0e2b\u0e23\u0e37\u0e2d\u0e04\u0e25\u0e34\u0e01\u0e17\u0e35\u0e48", + "Manage Images": "\u0e08\u0e31\u0e14\u0e01\u0e32\u0e23\u0e20\u0e32\u0e1e", + "Loading": "\u0e42\u0e2b\u0e25\u0e14", + "Deleting": "\u0e25\u0e1a", + "Tags": "\u0e41\u0e17\u0e47\u0e01", + "Are you sure? Image will be deleted.": "\u0e04\u0e38\u0e13\u0e41\u0e19\u0e48\u0e43\u0e08\u0e2b\u0e23\u0e37\u0e2d\u0e44\u0e21\u0e48 \u0e20\u0e32\u0e1e\u0e08\u0e30\u0e16\u0e39\u0e01\u0e25\u0e1a", + "Replace": "\u0e41\u0e17\u0e19\u0e17\u0e35\u0e48", + "Uploading": "\u0e2d\u0e31\u0e1e\u0e42\u0e2b\u0e25\u0e14", + "Loading image": "\u0e42\u0e2b\u0e25\u0e14\u0e20\u0e32\u0e1e", + "Display": "\u0e41\u0e2a\u0e14\u0e07", + "Inline": "\u0e41\u0e1a\u0e1a\u0e2d\u0e34\u0e19\u0e44\u0e25\u0e19\u0e4c", + "Break Text": "\u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e2b\u0e22\u0e38\u0e14", + "Alternate Text": "\u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e2d\u0e37\u0e48\u0e19", + "Change Size": "\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e02\u0e19\u0e32\u0e14", + "Width": "\u0e04\u0e27\u0e32\u0e21\u0e01\u0e27\u0e49\u0e32\u0e07", + "Height": "\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e39\u0e07", + "Something went wrong. Please try again.": "\u0e1a\u0e32\u0e07\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e1c\u0e34\u0e14\u0e1b\u0e01\u0e15\u0e34. \u0e01\u0e23\u0e38\u0e13\u0e32\u0e25\u0e2d\u0e07\u0e2d\u0e35\u0e01\u0e04\u0e23\u0e31\u0e49\u0e07.", + "Image Caption": "คำบรรยายภาพ", + "Advanced Edit": "แก้ไขขั้นสูง", + + // Video + "Insert Video": "\u0e41\u0e17\u0e23\u0e01\u0e27\u0e34\u0e14\u0e35\u0e42\u0e2d", + "Embedded Code": "\u0e23\u0e2b\u0e31\u0e2a\u0e2a\u0e21\u0e2d\u0e07\u0e01\u0e25\u0e1d\u0e31\u0e07\u0e15\u0e31\u0e27", + "Paste in a video URL": "วางใน URL วิดีโอ", + "Drop video": "วางวิดีโอ", + "Your browser does not support HTML5 video.": "เบราเซอร์ของคุณไม่สนับสนุนวิดีโอ HTML5", + "Upload Video": "อัปโหลดวิดีโอ", + + // Tables + "Insert Table": "\u0e41\u0e17\u0e23\u0e01\u0e15\u0e32\u0e23\u0e32\u0e07", + "Table Header": "\u0e2a\u0e48\u0e27\u0e19\u0e2b\u0e31\u0e27\u0e02\u0e2d\u0e07\u0e15\u0e32\u0e23\u0e32\u0e07", + "Remove Table": "\u0e40\u0e2d\u0e32\u0e15\u0e32\u0e23\u0e32\u0e07\u0e2d\u0e2d\u0e01", + "Table Style": "\u0e25\u0e31\u0e01\u0e29\u0e13\u0e30\u0e15\u0e32\u0e23\u0e32\u0e07", + "Horizontal Align": "\u0e43\u0e19\u0e41\u0e19\u0e27\u0e19\u0e2d\u0e19", + "Row": "\u0e41\u0e16\u0e27", + "Insert row above": "\u0e41\u0e17\u0e23\u0e01\u0e41\u0e16\u0e27\u0e14\u0e49\u0e32\u0e19\u0e1a\u0e19", + "Insert row below": "\u0e41\u0e17\u0e23\u0e01\u0e41\u0e16\u0e27\u0e14\u0e49\u0e32\u0e19\u0e25\u0e48\u0e32\u0e07", + "Delete row": "\u0e25\u0e1a\u0e41\u0e16\u0e27", + "Column": "\u0e04\u0e2d\u0e25\u0e31\u0e21\u0e19\u0e4c", + "Insert column before": "\u0e41\u0e17\u0e23\u0e01\u0e04\u0e2d\u0e25\u0e31\u0e21\u0e19\u0e4c\u0e02\u0e49\u0e32\u0e07\u0e2b\u0e19\u0e49\u0e32", + "Insert column after": "\u0e41\u0e17\u0e23\u0e01\u0e04\u0e2d\u0e25\u0e31\u0e21\u0e19\u0e4c\u0e02\u0e49\u0e32\u0e07\u0e2b\u0e25\u0e31\u0e07", + "Delete column": "\u0e25\u0e1a\u0e04\u0e2d\u0e25\u0e31\u0e21\u0e19\u0e4c", + "Cell": "\u0e40\u0e0b\u0e25\u0e25\u0e4c", + "Merge cells": "\u0e1c\u0e2a\u0e32\u0e19\u0e40\u0e0b\u0e25\u0e25\u0e4c", + "Horizontal split": "\u0e41\u0e22\u0e01\u0e41\u0e19\u0e27\u0e19\u0e2d\u0e19", + "Vertical split": "\u0e41\u0e22\u0e01\u0e43\u0e19\u0e41\u0e19\u0e27\u0e15\u0e31\u0e49\u0e07", + "Cell Background": "\u0e1e\u0e37\u0e49\u0e19\u0e2b\u0e25\u0e31\u0e07\u0e02\u0e2d\u0e07\u0e40\u0e0b\u0e25\u0e25\u0e4c", + "Vertical Align": "\u0e08\u0e31\u0e14\u0e41\u0e19\u0e27\u0e15\u0e31\u0e49\u0e07", + "Top": "\u0e14\u0e49\u0e32\u0e19\u0e1a\u0e19", + "Middle": "\u0e01\u0e25\u0e32\u0e07", + "Bottom": "\u0e01\u0e49\u0e19", + "Align Top": "\u0e08\u0e31\u0e14\u0e14\u0e49\u0e32\u0e19\u0e1a\u0e19", + "Align Middle": "\u0e15\u0e4d\u0e32\u0e41\u0e2b\u0e19\u0e48\u0e07\u0e01\u0e25\u0e32\u0e07", + "Align Bottom": "\u0e15\u0e4d\u0e32\u0e41\u0e2b\u0e19\u0e48\u0e07\u0e14\u0e49\u0e32\u0e19\u0e25\u0e48\u0e32\u0e07", + "Cell Style": "\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e02\u0e2d\u0e07\u0e40\u0e0b\u0e25\u0e25\u0e4c", + + // Files + "Upload File": "\u0e2d\u0e31\u0e1b\u0e42\u0e2b\u0e25\u0e14\u0e44\u0e1f\u0e25\u0e4c", + "Drop file": "\u0e27\u0e32\u0e07\u0e44\u0e1f\u0e25\u0e4c", + + // Emoticons + "Emoticons": "\u0e2d\u0e35\u0e42\u0e21\u0e15\u0e34\u0e04\u0e2d\u0e19", + "Grinning face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e22\u0e34\u0e49\u0e21", + "Grinning face with smiling eyes": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e22\u0e34\u0e49\u0e21\u0e14\u0e49\u0e27\u0e22\u0e15\u0e32\u0e22\u0e34\u0e49\u0e21", + "Face with tears of joy": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e14\u0e49\u0e27\u0e22\u0e19\u0e49\u0e33\u0e15\u0e32\u0e41\u0e2b\u0e48\u0e07\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e38\u0e02", + "Smiling face with open mouth": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e40\u0e1b\u0e37\u0e49\u0e2d\u0e19\u0e23\u0e2d\u0e22\u0e22\u0e34\u0e49\u0e21\u0e17\u0e35\u0e48\u0e21\u0e35\u0e1b\u0e32\u0e01\u0e40\u0e1b\u0e34\u0e14", + "Smiling face with open mouth and smiling eyes": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e22\u0e34\u0e49\u0e21\u0e01\u0e31\u0e1a\u0e40\u0e1b\u0e34\u0e14\u0e1b\u0e32\u0e01\u0e41\u0e25\u0e30\u0e15\u0e32\u0e22\u0e34\u0e49\u0e21", + "Smiling face with open mouth and cold sweat": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e22\u0e34\u0e49\u0e21\u0e14\u0e49\u0e27\u0e22\u0e1b\u0e32\u0e01\u0e40\u0e1b\u0e34\u0e14\u0e41\u0e25\u0e30\u0e40\u0e2b\u0e07\u0e37\u0e48\u0e2d\u0e40\u0e22\u0e47\u0e19", + "Smiling face with open mouth and tightly-closed eyes": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e22\u0e34\u0e49\u0e21\u0e01\u0e31\u0e1a\u0e40\u0e1b\u0e34\u0e14\u0e1b\u0e32\u0e01\u0e41\u0e25\u0e30\u0e15\u0e32\u0e41\u0e19\u0e48\u0e19\u0e1b\u0e34\u0e14", + "Smiling face with halo": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e22\u0e34\u0e49\u0e21\u0e17\u0e35\u0e48\u0e21\u0e35\u0e23\u0e31\u0e28\u0e21\u0e35", + "Smiling face with horns": "\u0e22\u0e34\u0e49\u0e21\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e21\u0e35\u0e40\u0e02\u0e32", + "Winking face": "\u0e01\u0e32\u0e23\u0e01\u0e23\u0e30\u0e1e\u0e23\u0e34\u0e1a\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32", + "Smiling face with smiling eyes": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e22\u0e34\u0e49\u0e21\u0e14\u0e49\u0e27\u0e22\u0e15\u0e32\u0e22\u0e34\u0e49\u0e21", + "Face savoring delicious food": "\u0e40\u0e1c\u0e0a\u0e34\u0e0d \u0073\u0061\u0076\u006f\u0072\u0069\u006e\u0067 \u0e2d\u0e32\u0e2b\u0e32\u0e23\u0e2d\u0e23\u0e48\u0e2d\u0e22", + "Relieved face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e42\u0e25\u0e48\u0e07\u0e43\u0e08", + "Smiling face with heart-shaped eyes": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e22\u0e34\u0e49\u0e21\u0e14\u0e49\u0e27\u0e22\u0e15\u0e32\u0e23\u0e39\u0e1b\u0e2b\u0e31\u0e27\u0e43\u0e08", + "Smiling face with sunglasses": "\u0e22\u0e34\u0e49\u0e21\u0e2b\u0e19\u0e49\u0e32\u0e14\u0e49\u0e27\u0e22\u0e41\u0e27\u0e48\u0e19\u0e15\u0e32\u0e01\u0e31\u0e19\u0e41\u0e14\u0e14", + "Smirking face": "\u0e2b\u0e19\u0e49\u0e32\u0e41\u0e2a\u0e22\u0e30\u0e22\u0e34\u0e49\u0e21\u0e17\u0e35\u0e48\u0e21\u0e38\u0e21", + "Neutral face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e25\u0e32\u0e07", + "Expressionless face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e2d\u0e32\u0e23\u0e21\u0e13\u0e4c", + "Unamused face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32 \u0055\u006e\u0061\u006d\u0075\u0073\u0065\u0064", + "Face with cold sweat": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e17\u0e35\u0e48\u0e21\u0e35\u0e40\u0e2b\u0e07\u0e37\u0e48\u0e2d\u0e40\u0e22\u0e47\u0e19", + "Pensive face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e2b\u0e21\u0e48\u0e19", + "Confused face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e2a\u0e31\u0e1a\u0e2a\u0e19", + "Confounded face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e2a\u0e31\u0e1a\u0e2a\u0e19", + "Kissing face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e08\u0e39\u0e1a", + "Face throwing a kiss": "\u0e15\u0e49\u0e2d\u0e07\u0e40\u0e1c\u0e0a\u0e34\u0e0d\u0e01\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e02\u0e27\u0e49\u0e32\u0e07\u0e1b\u0e32\u0e08\u0e39\u0e1a", + "Kissing face with smiling eyes": "\u0e08\u0e39\u0e1a\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e14\u0e49\u0e27\u0e22\u0e15\u0e32\u0e22\u0e34\u0e49\u0e21", + "Kissing face with closed eyes": "\u0e08\u0e39\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e14\u0e49\u0e27\u0e22\u0e14\u0e27\u0e07\u0e15\u0e32\u0e17\u0e35\u0e48\u0e1b\u0e34\u0e14\u0e2a\u0e19\u0e34\u0e17", + "Face with stuck out tongue": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e21\u0e35\u0e41\u0e1e\u0e25\u0e21\u0e2d\u0e2d\u0e01\u0e21\u0e32\u0e25\u0e34\u0e49\u0e19", + "Face with stuck out tongue and winking eye": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e21\u0e35\u0e15\u0e34\u0e14\u0e25\u0e34\u0e49\u0e19\u0e41\u0e25\u0e30\u0e15\u0e32\u0e02\u0e22\u0e34\u0e1a\u0e15\u0e32", + "Face with stuck out tongue and tightly-closed eyes": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e21\u0e35\u0e15\u0e34\u0e14\u0e25\u0e34\u0e49\u0e19\u0e41\u0e25\u0e30\u0e14\u0e27\u0e07\u0e15\u0e32\u0e17\u0e35\u0e48\u0e1b\u0e34\u0e14\u0e41\u0e19\u0e48\u0e19", + "Disappointed face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e1c\u0e34\u0e14\u0e2b\u0e27\u0e31\u0e07", + "Worried face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e01\u0e31\u0e07\u0e27\u0e25", + "Angry face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e42\u0e01\u0e23\u0e18", + "Pouting face": "\u0e2b\u0e19\u0e49\u0e32\u0e21\u0e38\u0e48\u0e22", + "Crying face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e23\u0e49\u0e2d\u0e07\u0e44\u0e2b\u0e49", + "Persevering face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e40\u0e2d\u0e32\u0e16\u0e48\u0e32\u0e19", + "Face with look of triumph": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e01\u0e31\u0e1a\u0e23\u0e39\u0e1b\u0e25\u0e31\u0e01\u0e29\u0e13\u0e4c\u0e02\u0e2d\u0e07\u0e0a\u0e31\u0e22\u0e0a\u0e19\u0e30", + "Disappointed but relieved face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e1c\u0e34\u0e14\u0e2b\u0e27\u0e31\u0e07 \u0e41\u0e15\u0e48\u0e42\u0e25\u0e48\u0e07\u0e43\u0e08", + "Frowning face with open mouth": "\u0e2b\u0e19\u0e49\u0e32\u0e21\u0e38\u0e48\u0e22\u0e17\u0e35\u0e48\u0e21\u0e35\u0e1b\u0e32\u0e01\u0e40\u0e1b\u0e34\u0e14", + "Anguished face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e01\u0e14\u0e02\u0e35\u0e48", + "Fearful face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e17\u0e35\u0e48\u0e19\u0e48\u0e32\u0e01\u0e25\u0e31\u0e27", + "Weary face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e17\u0e35\u0e48\u0e40\u0e2b\u0e19\u0e37\u0e48\u0e2d\u0e22\u0e25\u0e49\u0e32", + "Sleepy face": "\u0e2b\u0e19\u0e49\u0e32\u0e07\u0e48\u0e27\u0e07\u0e19\u0e2d\u0e19", + "Tired face": "\u0e2b\u0e19\u0e49\u0e32\u0e40\u0e1a\u0e37\u0e48\u0e2d", + "Grimacing face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32 \u0067\u0072\u0069\u006d\u0061\u0063\u0069\u006e\u0067", + "Loudly crying face": "\u0e23\u0e49\u0e2d\u0e07\u0e44\u0e2b\u0e49\u0e40\u0e2a\u0e35\u0e22\u0e07\u0e14\u0e31\u0e07\u0e2b\u0e19\u0e49\u0e32", + "Face with open mouth": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e17\u0e35\u0e48\u0e21\u0e35\u0e1b\u0e32\u0e01\u0e40\u0e1b\u0e34\u0e14", + "Hushed face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e40\u0e07\u0e35\u0e22\u0e1a", + "Face with open mouth and cold sweat": "หน้ากับปากเปิดและเหงื่อเย็น", + "Face screaming in fear": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e17\u0e35\u0e48\u0e21\u0e35\u0e1b\u0e32\u0e01\u0e40\u0e1b\u0e34\u0e14\u0e41\u0e25\u0e30\u0e40\u0e2b\u0e07\u0e37\u0e48\u0e2d\u0e40\u0e22\u0e47\u0e19", + "Astonished face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e1b\u0e23\u0e30\u0e2b\u0e25\u0e32\u0e14\u0e43\u0e08", + "Flushed face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e41\u0e14\u0e07", + "Sleeping face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e19\u0e2d\u0e19", + "Dizzy face": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e15\u0e32\u0e25\u0e32\u0e22", + "Face without mouth": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e42\u0e14\u0e22\u0e44\u0e21\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e1b\u0e32\u0e01", + "Face with medical mask": "\u0e43\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e14\u0e49\u0e27\u0e22\u0e2b\u0e19\u0e49\u0e32\u0e01\u0e32\u0e01\u0e17\u0e32\u0e07\u0e01\u0e32\u0e23\u0e41\u0e1e\u0e17\u0e22\u0e4c", + + // Line breaker + "Break": "\u0e2b\u0e22\u0e38\u0e14", + + // Math + "Subscript": "\u0e15\u0e31\u0e27\u0e2b\u0e49\u0e2d\u0e22", + "Superscript": "\u0e15\u0e31\u0e27\u0e22\u0e01", + + // Full screen + "Fullscreen": "\u0e40\u0e15\u0e47\u0e21\u0e2b\u0e19\u0e49\u0e32\u0e08\u0e2d", + + // Horizontal line + "Insert Horizontal Line": "\u0e41\u0e17\u0e23\u0e01\u0e40\u0e2a\u0e49\u0e19\u0e41\u0e19\u0e27\u0e19\u0e2d\u0e19", + + // Clear formatting + "Clear Formatting": "\u0e19\u0e33\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a", + + // Undo, redo + "Undo": "\u0e40\u0e25\u0e34\u0e01\u0e17\u0e33", + "Redo": "\u0e17\u0e4d\u0e32\u0e0b\u0e49\u0e33", + + // Select all + "Select All": "\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14", + + // Code view + "Code View": "\u0e21\u0e38\u0e21\u0e21\u0e2d\u0e07\u0e23\u0e2b\u0e31\u0e2a", + + // Quote + "Quote": "\u0e2d\u0e49\u0e32\u0e07", + "Increase": "\u0e40\u0e1e\u0e34\u0e48\u0e21", + "Decrease": "\u0e25\u0e14\u0e25\u0e07", + + // Quick Insert + "Quick Insert": "\u0e41\u0e17\u0e23\u0e01\u0e14\u0e48\u0e27\u0e19", + + // Spcial Characters + "Special Characters": "อักขระพิเศษ", + "Latin": "ละติน", + "Greek": "กรีก", + "Cyrillic": "ริลลิก", + "Punctuation": "วรรคตอน", + "Currency": "เงินตรา", + "Arrows": "ลูกศร", + "Math": "คณิตศาสตร์", + "Misc": "อื่น ๆ", + + // Print. + "Print": "พิมพ์", + + // Spell Checker. + "Spell Checker": "ตัวตรวจสอบการสะกด", + + // Help + "Help": "ช่วยด้วย", + "Shortcuts": "ทางลัด", + "Inline Editor": "ตัวแก้ไขแบบอินไลน์", + "Show the editor": "แสดงตัวแก้ไข", + "Common actions": "การกระทำร่วมกัน", + "Copy": "สำเนา", + "Cut": "ตัด", + "Paste": "แปะ", + "Basic Formatting": "การจัดรูปแบบพื้นฐาน", + "Increase quote level": "ระดับราคาเพิ่มขึ้น", + "Decrease quote level": "ระดับราคาลดลง", + "Image / Video": "ภาพ / วิดีโอ", + "Resize larger": "ปรับขนาดใหญ่ขึ้น", + "Resize smaller": "ปรับขนาดเล็กลง", + "Table": "ตาราง", + "Select table cell": "เลือกเซลล์ตาราง", + "Extend selection one cell": "ขยายการเลือกหนึ่งเซลล์", + "Extend selection one row": "ขยายการเลือกหนึ่งแถว", + "Navigation": "การเดินเรือ", + "Focus popup / toolbar": "โฟกัสป๊อปอัพ / แถบเครื่องมือ", + "Return focus to previous position": "กลับไปยังตำแหน่งก่อนหน้า", + + // Embed.ly + "Embed URL": "ฝัง URL", + "Paste in a URL to embed": "วางใน url เพื่อฝัง", + + // Word Paste. + "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "เนื้อหาที่วางจะมาจากเอกสารคำในแบบ microsoft คุณต้องการเก็บรูปแบบหรือทำความสะอาดหรือไม่?", + "Keep": "เก็บ", + "Clean": "สะอาด", + "Word Paste Detected": "ตรวจพบการวางคำ" + }, + direction: "ltr" +}; + +})); diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/tr.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/tr.js new file mode 100644 index 0000000..070b84f --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/tr.js @@ -0,0 +1,318 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + // require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + return factory(jQuery); + }; + } else { + // Browser globals + factory(window.jQuery); + } +}(function ($) { +/** + * Turkish + */ + +$.FE.LANGUAGE['tr'] = { + translation: { + // Place holder + "Type something": "Bir \u015fey yaz\u0131n", + + // Basic formatting + "Bold": "Kal\u0131n", + "Italic": "\u0130talik", + "Underline": "Alt\u0131 \u00e7izili", + "Strikethrough": "\u00dcst\u00fc \u00e7izili", + + // Main buttons + "Insert": "Ekle", + "Delete": "Silmek", + "Cancel": "\u0130ptal", + "OK": "Tamam", + "Back": "Geri", + "Remove": "Kald\u0131r", + "More": "Daha", + "Update": "G\u00fcncelle\u015ftirme", + "Style": "Stil", + + // Font + "Font Family": "Yaz\u0131tipi Ailesi", + "Font Size": "Yaz\u0131tipi B\u00fcy\u00fckl\u00fc\u011f\u00fc", + + // Colors + "Colors": "Renkler", + "Background": "Arkaplan", + "Text": "Metin", + "HEX Color": "Altı renkli", + + // Paragraphs + "Paragraph Format": "Bi\u00e7imler", + "Normal": "Normal", + "Code": "Kod", + "Heading 1": "Ba\u015fl\u0131k 1", + "Heading 2": "Ba\u015fl\u0131k 2", + "Heading 3": "Ba\u015fl\u0131k 3", + "Heading 4": "Ba\u015fl\u0131k 4", + + // Style + "Paragraph Style": "Paragraf stili", + "Inline Style": "\u00c7izgide stili", + + // Alignment + "Align": "Hizalama", + "Align Left": "Sola hizala", + "Align Center": "Ortala", + "Align Right": "Sa\u011fa hizala", + "Align Justify": "\u0130ki yana yasla", + "None": "Hi\u00e7biri", + + // Lists + "Ordered List": "S\u0131ral\u0131 liste", + "Unordered List": "S\u0131ras\u0131z liste", + + // Indent + "Decrease Indent": "Girintiyi azalt", + "Increase Indent": "Girintiyi art\u0131r", + + // Links + "Insert Link": "Ba\u011flant\u0131 ekle", + "Open in new tab": "Yeni sekmede a\u00e7", + "Open Link": "Linki a\u00e7", + "Edit Link": "D\u00fczenleme ba\u011flant\u0131s\u0131", + "Unlink": "Ba\u011flant\u0131y\u0131 kald\u0131r", + "Choose Link": "Ba\u011flant\u0131y\u0131 se\u00e7in", + + // Images + "Insert Image": "Resim ekle", + "Upload Image": "Y\u00fckleme g\u00f6r\u00fcnt\u00fcs\u00fc", + "By URL": "URL'ye g\u00f6re", + "Browse": "G\u00f6zat", + "Drop image": "B\u0131rak resim", + "or click": "ya da t\u0131klay\u0131n", + "Manage Images": "G\u00f6r\u00fcnt\u00fcleri y\u00f6netin", + "Loading": "Y\u00fckleniyor", + "Deleting": "Silme", + "Tags": "Etiketler", + "Are you sure? Image will be deleted.": "Emin misin? Resim silinecektir.", + "Replace": "De\u011fi\u015ftirmek", + "Uploading": "Y\u00fckleme", + "Loading image": "Y\u00fckleme g\u00f6r\u00fcnt\u00fcs\u00fc", + "Display": "G\u00f6stermek", + "Inline": "\u00c7izgide", + "Break Text": "K\u0131r\u0131lma metni", + "Alternate Text": "Alternatif metin", + "Change Size": "De\u011fi\u015fim boyutu", + "Width": "Geni\u015flik", + "Height": "Y\u00fckseklik", + "Something went wrong. Please try again.": "Bir \u015feyler yanl\u0131\u015f gitti. L\u00fctfen tekrar deneyin.", + "Image Caption": "Resim yazısı", + "Advanced Edit": "Ileri düzey düzenleme", + + // Video + "Insert Video": "Video ekle", + "Embedded Code": "G\u00f6m\u00fcl\u00fc kod", + "Paste in a video URL": "Bir video URL'sine yapıştırın", + "Drop video": "Video bırak", + "Your browser does not support HTML5 video.": "Tarayıcınız html5 videoyu desteklemez.", + "Upload Video": "Video yükle", + + // Tables + "Insert Table": "Tablo ekle", + "Table Header": "Tablo \u00fcstbilgisi", + "Remove Table": "Tablo kald\u0131rma", + "Table Style": "Tablo stili", + "Horizontal Align": "Yatay hizalama", + "Row": "Sat\u0131r", + "Insert row above": "\u00d6ncesine yeni sat\u0131r ekle", + "Insert row below": "Sonras\u0131na yeni sat\u0131r ekle", + "Delete row": "Sat\u0131r\u0131 sil", + "Column": "S\u00fctun", + "Insert column before": "\u00d6ncesine yeni s\u00fctun ekle", + "Insert column after": "Sonras\u0131na yeni s\u00fctun ekle", + "Delete column": "S\u00fctunu sil", + "Cell": "H\u00fccre", + "Merge cells": "H\u00fccreleri birle\u015ftir", + "Horizontal split": "Yatay b\u00f6l\u00fcnm\u00fc\u015f", + "Vertical split": "Dikey b\u00f6l\u00fcnm\u00fc\u015f", + "Cell Background": "H\u00fccre arka plan\u0131", + "Vertical Align": "Dikey hizalama", + "Top": "\u00dcst", + "Middle": "Orta", + "Bottom": "Alt", + "Align Top": "\u00dcst hizalama", + "Align Middle": "Orta hizalama", + "Align Bottom": "Dibe hizalama", + "Cell Style": "H\u00fccre stili", + + // Files + "Upload File": "Dosya Y\u00fckle", + "Drop file": "B\u0131rak dosya", + + // Emoticons + "Emoticons": "\u0130fadeler", + "Grinning face": "S\u0131r\u0131tan y\u00fcz", + "Grinning face with smiling eyes": "G\u00fclen g\u00f6zlerle y\u00fcz s\u0131r\u0131tarak", + "Face with tears of joy": "Sevin\u00e7 g\u00f6zya\u015flar\u0131yla Y\u00fcz", + "Smiling face with open mouth": "A\u00e7\u0131k a\u011fz\u0131 ile g\u00fcl\u00fcmseyen y\u00fcz\u00fc", + "Smiling face with open mouth and smiling eyes": "A\u00e7\u0131k a\u011fzı ve g\u00fcl\u00fcmseyen g\u00f6zlerle g\u00fcler y\u00fcz", + "Smiling face with open mouth and cold sweat": "A\u00e7\u0131k a\u011fz\u0131 ve so\u011fuk ter ile g\u00fclen y\u00fcz\u00fc", + "Smiling face with open mouth and tightly-closed eyes": "A\u00e7\u0131k a\u011fz\u0131 s\u0131k\u0131ca kapal\u0131 g\u00f6zlerle g\u00fclen y\u00fcz\u00fc", + "Smiling face with halo": "Halo ile y\u00fcz g\u00fclen", + "Smiling face with horns": "Boynuzlar\u0131 ile g\u00fcler y\u00fcz", + "Winking face": "G\u00f6z a\u00e7\u0131p kapay\u0131ncaya y\u00fcz\u00fc", + "Smiling face with smiling eyes": "G\u00fclen g\u00f6zlerle g\u00fcler Y\u00fcz", + "Face savoring delicious food": "Lezzetli yemekler tad\u0131n\u0131 Y\u00fcz", + "Relieved face": "Rahatlad\u0131m y\u00fcz\u00fc", + "Smiling face with heart-shaped eyes": "Kalp \u015feklinde g\u00f6zlerle g\u00fcler y\u00fcz", + "Smiling face with sunglasses": "Kalp \u015feklinde g\u00f6zlerle g\u00fcler y\u00fcz", + "Smirking face": "S\u0131r\u0131tan y\u00fcz", + "Neutral face": "N\u00f6tr y\u00fcz", + "Expressionless face": "Ifadesiz y\u00fcz\u00fc", + "Unamused face": "Kay\u0131ts\u0131z y\u00fcz\u00fc", + "Face with cold sweat": "So\u011fuk terler Y\u00fcz", + "Pensive face": "dalg\u0131n bir y\u00fcz", + "Confused face": "\u015fa\u015fk\u0131n bir y\u00fcz", + "Confounded face": "Ele\u015ftirilmi\u015ftir y\u00fcz\u00fc", + "Kissing face": "\u00f6p\u00fc\u015fme y\u00fcz\u00fc", + "Face throwing a kiss": "Bir \u00f6p\u00fcc\u00fck atma Y\u00fcz", + "Kissing face with smiling eyes": "G\u00fclen g\u00f6zlerle y\u00fcz \u00f6p\u00fc\u015fme", + "Kissing face with closed eyes": "Kapal\u0131 g\u00f6zlerle \u00f6p\u00f6\u015fme y\u00fcz", + "Face with stuck out tongue": "Dilini y\u00fcz ile s\u0131k\u0131\u015fm\u0131\u015f", + "Face with stuck out tongue and winking eye": "\u015ea\u015f\u0131r\u0131p kalm\u0131\u015f d\u0131\u015far\u0131 dil ve g\u00f6z k\u0131rpan y\u00fcz", + "Face with stuck out tongue and tightly-closed eyes": "Y\u00fcz ile dil ve s\u0131k\u0131ca kapal\u0131 g\u00f6zleri s\u0131k\u0131\u015fm\u0131\u015f", + "Disappointed face": "Hayal k\u0131r\u0131kl\u0131\u011f\u0131na y\u00fcz\u00fc", + "Worried face": "Endi\u015feli bir y\u00fcz", + "Angry face": "K\u0131zg\u0131n y\u00fcz", + "Pouting face": "Somurtarak y\u00fcz\u00fc", + "Crying face": "A\u011flayan y\u00fcz", + "Persevering face": "Azmeden y\u00fcz\u00fc", + "Face with look of triumph": "Zafer bak\u0131\u015fla Y\u00fcz", + "Disappointed but relieved face": "Hayal k\u0131r\u0131kl\u0131\u011f\u0131 ama rahatlad\u0131m y\u00fcz", + "Frowning face with open mouth": "A\u00e7\u0131k a\u011fz\u0131 ile \u00e7at\u0131k y\u00fcz\u00fc", + "Anguished face": "Kederli y\u00fcz", + "Fearful face": "Korkulu y\u00fcz\u00fc", + "Weary face": "Yorgun y\u00fcz\u00fc", + "Sleepy face": "Uykulu y\u00fcz\u00fc", + "Tired face": "Yorgun y\u00fcz\u00fc", + "Grimacing face": "Y\u00fcz\u00fcn\u00fc buru\u015fturarak y\u00fcz\u00fc", + "Loudly crying face": "Y\u00fcksek sesle y\u00fcz\u00fc a\u011fl\u0131yor", + "Face with open mouth": "A\u00e7\u0131k a\u011fz\u0131 ile Y\u00fcz", + "Hushed face": "Dingin y\u00fcz\u00fc", + "Face with open mouth and cold sweat": "A\u00e7\u0131k a\u011fz\u0131 ve so\u011fuk ter ile Y\u00fcz", + "Face screaming in fear": "Korku i\u00e7inde \u00e7ı\u011fl\u0131k Y\u00fcz", + "Astonished face": "\u015fa\u015fk\u0131n bir y\u00fcz", + "Flushed face": "K\u0131zarm\u0131\u015f y\u00fcz\u00fc", + "Sleeping face": "Uyuyan y\u00fcz\u00fc", + "Dizzy face": "Ba\u015f\u0131m d\u00f6nd\u00fc y\u00fcz", + "Face without mouth": "A\u011f\u0131z olmadan Y\u00fcz", + "Face with medical mask": "T\u0131bbi maske ile y\u00fcz", + + // Line breaker + "Break": "K\u0131r\u0131lma", + + // Math + "Subscript": "Alt simge", + "Superscript": "\u00dcst simge", + + // Full screen + "Fullscreen": "Tam ekran", + + // Horizontal line + "Insert Horizontal Line": "Yatay \u00e7izgi ekleme", + + // Clear formatting + "Clear Formatting": "Bi\u00e7imlendirme kald\u0131r", + + // Undo, redo + "Undo": "Geri Al", + "Redo": "Yinele", + + // Select all + "Select All": "T\u00fcm\u00fcn\u00fc se\u00e7", + + // Code view + "Code View": "Kod g\u00f6r\u00fcn\u00fcm\u00fc", + + // Quote + "Quote": "Al\u0131nt\u0131", + "Increase": "Art\u0131rmak", + "Decrease": "Azal\u0131\u015f", + + // Quick Insert + "Quick Insert": "H\u0131zl\u0131 insert", + + // Spcial Characters + "Special Characters": "Özel karakterler", + "Latin": "Latince", + "Greek": "Yunan", + "Cyrillic": "Kiril", + "Punctuation": "Noktalama", + "Currency": "Para birimi", + "Arrows": "Oklar", + "Math": "Matematik", + "Misc": "Misc", + + // Print. + "Print": "Baskı", + + // Spell Checker. + "Spell Checker": "Yazım denetleyicisi", + + // Help + "Help": "Yardım et", + "Shortcuts": "Kısayollar", + "Inline Editor": "Satır içi düzenleyici", + "Show the editor": "Editörü gösterin", + "Common actions": "Ortak eylemler", + "Copy": "Kopya", + "Cut": "Kesim", + "Paste": "Yapıştırmak", + "Basic Formatting": "Temel biçimlendirme", + "Increase quote level": "Teklif seviyesini yükselt", + "Decrease quote level": "Teklif seviyesini azalt", + "Image / Video": "Resim / video", + "Resize larger": "Daha büyük yeniden boyutlandır", + "Resize smaller": "Daha küçük boyuta getir", + "Table": "Tablo", + "Select table cell": "Tablo hücresi seç", + "Extend selection one cell": "Seçimi bir hücre genişlet", + "Extend selection one row": "Seçimi bir sıra genişlet", + "Navigation": "Navigasyon", + "Focus popup / toolbar": "Odaklanma açılır penceresi / araç çubuğu", + "Return focus to previous position": "Odaklamaya önceki konumuna geri dönün", + + // Embed.ly + "Embed URL": "URL göm", + "Paste in a URL to embed": "Yerleştirmek için bir URL'ye yapıştırın", + + // Word Paste. + "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Yapıştırılan içerik bir Microsoft Word belgesinden geliyor. Biçimi saklamaya mı yoksa temizlemeyi mi istiyor musun?", + "Keep": "Tutmak", + "Clean": "Temiz", + "Word Paste Detected": "Kelime yapıştırması algılandı" + }, + direction: "ltr" +}; + +})); diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/uk.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/uk.js new file mode 100644 index 0000000..d1a6b19 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/uk.js @@ -0,0 +1,318 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + // require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + return factory(jQuery); + }; + } else { + // Browser globals + factory(window.jQuery); + } +}(function ($) { +/** + * Ukrainian + */ + +$.FE.LANGUAGE['uk'] = { + translation: { + // Place holder + "Type something": "\u041d\u0430\u043f\u0438\u0448\u0456\u0442\u044c \u0431\u0443\u0434\u044c-\u0449\u043e", + + // Basic formatting + "Bold": "\u0416\u0438\u0440\u043d\u0438\u0439", + "Italic": "\u041a\u0443\u0440\u0441\u0438\u0432", + "Underline": "\u041f\u0456\u0434\u043a\u0440\u0435\u0441\u043b\u0435\u043d\u0438\u0439", + "Strikethrough": "\u0417\u0430\u043a\u0440\u0435\u0441\u043b\u0435\u043d\u0438\u0439", + + // Main buttons + "Insert": "\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u0438", + "Delete": "\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438", + "Cancel": "\u0421\u043a\u0430\u0441\u0443\u0432\u0430\u0442\u0438", + "OK": "OK", + "Back": "\u043d\u0430\u0437\u0430\u0434", + "Remove": "\u0432\u0438\u0434\u0430\u043b\u0438\u0442\u0438", + "More": "\u0431\u0456\u043b\u044c\u0448\u0435", + "Update": "\u043e\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f", + "Style": "\u0441\u0442\u0438\u043b\u044c", + + // Font + "Font Family": "\u0428\u0440\u0438\u0444\u0442", + "Font Size": "\u0420\u043e\u0437\u043c\u0456\u0440 \u0448\u0440\u0438\u0444\u0442\u0443", + + // Colors + "Colors": "\u043a\u043e\u043b\u044c\u043e\u0440\u0438", + "Background": "\u0424\u043e\u043d", + "Text": "\u0422\u0435\u043a\u0441\u0442", + "HEX Color": "Шістнадцятковий колір", + + // Paragraphs + "Paragraph Format": "\u0424\u043e\u0440\u043c\u0430\u0442", + "Normal": "\u041d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0438\u0439", + "Code": "\u041a\u043e\u0434", + "Heading 1": "\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 1", + "Heading 2": "\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 2", + "Heading 3": "\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 3", + "Heading 4": "\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 4", + + // Style + "Paragraph Style": "\u043f\u0443\u043d\u043a\u0442 \u0441\u0442\u0438\u043b\u044c", + "Inline Style": "\u0432\u0431\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0439 \u0441\u0442\u0438\u043b\u044c", + + // Alignment + "Align": "\u0412\u0438\u0440\u0456\u0432\u043d\u044e\u0432\u0430\u043d\u043d\u044f", + "Align Left": "\u041f\u043e \u043b\u0456\u0432\u043e\u043c\u0443 \u043a\u0440\u0430\u044e", + "Align Center": "\u041f\u043e \u0446\u0435\u043d\u0442\u0440\u0443", + "Align Right": "\u041f\u043e \u043f\u0440\u0430\u0432\u043e\u043c\u0443 \u043a\u0440\u0430\u044e", + "Align Justify": "\u041f\u043e \u0448\u0438\u0440\u0438\u043d\u0456", + "None": "\u043d\u0456", + + // Lists + "Ordered List": "\u041d\u0443\u043c\u0435\u0440\u043e\u0432\u0430\u043d\u0438\u0439 \u0441\u043f\u0438\u0441\u043e\u043a", + "Unordered List": "\u041c\u0430\u0440\u043a\u043e\u0432\u0430\u043d\u0438\u0439 \u0441\u043f\u0438\u0441\u043e\u043a", + + // Indent + "Decrease Indent": "\u0417\u043c\u0435\u043d\u0448\u0438\u0442\u0438 \u0432\u0456\u0434\u0441\u0442\u0443\u043f", + "Increase Indent": "\u0417\u0431\u0456\u043b\u044c\u0448\u0438\u0442\u0438 \u0432\u0456\u0434\u0441\u0442\u0443\u043f", + + // Links + "Insert Link": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u043f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f", + "Open in new tab": "\u0412\u0456\u0434\u043a\u0440\u0438\u0442\u0438 \u0432 \u043d\u043e\u0432\u0456\u0439 \u0432\u043a\u043b\u0430\u0434\u0446\u0456", + "Open Link": "\u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0438 \u043f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f", + "Edit Link": "\u0440\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438 \u043f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f", + "Unlink": "\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u043f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f", + "Choose Link": "\u0412\u0438\u0431\u0435\u0440\u0456\u0442\u044c \u043f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f", + + // Images + "Insert Image": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f", + "Upload Image": "\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u0438 \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f", + "By URL": "\u0437\u0430 URL", + "Browse": "\u043f\u0435\u0440\u0435\u0433\u043b\u044f\u0434\u0430\u0442\u0438", + "Drop image": "\u041f\u0435\u0440\u0435\u043c\u0456\u0441\u0442\u0456\u0442\u044c \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f \u0441\u044e\u0434\u0438", + "or click": "\u0430\u0431\u043e \u043d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c", + "Manage Images": "\u041a\u0435\u0440\u0443\u0432\u0430\u043d\u043d\u044f \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f\u043c\u0438", + "Loading": "\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0435\u043d\u043d\u044f", + "Deleting": "\u0432\u0438\u0434\u0430\u043b\u0435\u043d\u043d\u044f", + "Tags": "\u043a\u043b\u044e\u0447\u043e\u0432\u0456 \u0441\u043b\u043e\u0432\u0430", + "Are you sure? Image will be deleted.": "\u0412\u0438 \u0432\u043f\u0435\u0432\u043d\u0435\u043d\u0456? \u0417\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f \u0431\u0443\u0434\u0435 \u0432\u0438\u0434\u0430\u043b\u0435\u043d\u043e.", + "Replace": "\u0437\u0430\u043c\u0456\u043d\u044e\u0432\u0430\u0442\u0438", + "Uploading": "\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0435\u043d\u043d\u044f", + "Loading image": "\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0435\u043d\u043d\u044f \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u044c", + "Display": "\u0434\u0438\u0441\u043f\u043b\u0435\u0439", + "Inline": "\u0412 \u043b\u0456\u043d\u0456\u044e", + "Break Text": "\u043f\u0435\u0440\u0435\u0440\u0432\u0430 \u0442\u0435\u043a\u0441\u0442", + "Alternate Text": "\u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u0438\u0439 \u0442\u0435\u043a\u0441\u0442", + "Change Size": "\u0437\u043c\u0456\u043d\u0438\u0442\u0438 \u0440\u043e\u0437\u043c\u0456\u0440", + "Width": "\u0428\u0438\u0440\u0438\u043d\u0430", + "Height": "\u0412\u0438\u0441\u043e\u0442\u0430", + "Something went wrong. Please try again.": "\u0429\u043e\u0441\u044c \u043f\u0456\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a. \u0411\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430 \u0441\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0449\u0435 \u0440\u0430\u0437.", + "Image Caption": "Заголовок зображення", + "Advanced Edit": "Розширений редагування", + + // Video + "Insert Video": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0432\u0456\u0434\u0435\u043e", + "Embedded Code": "\u0432\u0431\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0439 \u043a\u043e\u0434", + "Paste in a video URL": "Вставте в відео-URL", + "Drop video": "Перетягніть відео", + "Your browser does not support HTML5 video.": "Ваш браузер не підтримує відео html5.", + "Upload Video": "Завантажити відео", + + // Tables + "Insert Table": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044e", + "Table Header": "\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0442\u0430\u0431\u043b\u0438\u0446\u0456", + "Remove Table": "\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u0456", + "Table Style": "\u0421\u0442\u0438\u043b\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0456", + "Horizontal Align": "\u0413\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u0435 \u0432\u0438\u0440\u0456\u0432\u043d\u044e\u0432\u0430\u043d\u043d\u044f", + "Row": "\u0420\u044f\u0434\u043e\u043a", + "Insert row above": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u043f\u043e\u0440\u043e\u0436\u043d\u0456\u0439 \u0440\u044f\u0434\u043e\u043a \u0437\u0432\u0435\u0440\u0445\u0443", + "Insert row below": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u043f\u043e\u0440\u043e\u0436\u043d\u0456\u0439 \u0440\u044f\u0434\u043e\u043a \u0437\u043d\u0438\u0437\u0443", + "Delete row": "\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u0440\u044f\u0434\u043e\u043a", + "Column": "\u0421\u0442\u043e\u0432\u043f\u0435\u0446\u044c", + "Insert column before": "\u0414\u043e\u0434\u0430\u0442\u0438 \u0441\u0442\u043e\u0432\u043f\u0435\u0446\u044c \u043b\u0456\u0432\u043e\u0440\u0443\u0447", + "Insert column after": "\u0414\u043e\u0434\u0430\u0442\u0438 \u0441\u0442\u043e\u0432\u043f\u0435\u0446\u044c \u043f\u0440\u0430\u0432\u043e\u0440\u0443\u0447", + "Delete column": "\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u0441\u0442\u043e\u0432\u043f\u0435\u0446\u044c", + "Cell": "\u041a\u043e\u043c\u0456\u0440\u043a\u0430", + "Merge cells": "\u041e\u0431'\u0454\u0434\u043d\u0430\u0442\u0438 \u043a\u043e\u043c\u0456\u0440\u043a\u0438", + "Horizontal split": "\u0420\u043e\u0437\u0434\u0456\u043b\u0438\u0442\u0438 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e", + "Vertical split": "\u0420\u043e\u0437\u0434\u0456\u043b\u0438\u0442\u0438 \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e", + "Cell Background": "\u0441\u0442\u0456\u043b\u044c\u043d\u0438\u043a\u043e\u0432\u0438\u0439 \u0444\u043e\u043d", + "Vertical Align": "\u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u0430 \u0432\u0438\u0440\u0456\u0432\u043d\u044e\u0432\u0430\u043d\u043d\u044f", + "Top": "\u0422\u043e\u043f", + "Middle": "\u0441\u0435\u0440\u0435\u0434\u043d\u0456\u0439", + "Bottom": "\u0434\u043d\u043e", + "Align Top": "\u0417\u0456\u0441\u0442\u0430\u0432\u0442\u0435 \u0432\u0435\u0440\u0445\u043d\u044e", + "Align Middle": "\u0432\u0438\u0440\u0456\u0432\u043d\u044f\u0442\u0438 \u043f\u043e \u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0456", + "Align Bottom": "\u0417\u0456\u0441\u0442\u0430\u0432\u0442\u0435 \u043d\u0438\u0436\u043d\u044e", + "Cell Style": "\u0441\u0442\u0438\u043b\u044c \u043a\u043e\u043c\u0456\u0440\u043a\u0438", + + // Files + "Upload File": "\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u0438 \u0444\u0430\u0439\u043b", + "Drop file": "\u041f\u0435\u0440\u0435\u043c\u0456\u0441\u0442\u0456\u0442\u044c \u0444\u0430\u0439\u043b \u0441\u044e\u0434\u0438", + + // Emoticons + "Emoticons": "\u0441\u043c\u0430\u0439\u043b\u0438", + "Grinning face": "\u043f\u043e\u0441\u043c\u0456\u0445\u043d\u0443\u0432\u0448\u0438\u0441\u044c \u043e\u0441\u043e\u0431\u0430", + "Grinning face with smiling eyes": "\u041f\u043e\u0441\u043c\u0456\u0445\u043d\u0443\u0432\u0448\u0438\u0441\u044c \u043e\u0441\u043e\u0431\u0430 \u0437 \u0443\u0441\u043c\u0456\u0445\u043d\u0435\u043d\u0438\u043c\u0438 \u043e\u0447\u0438\u043c\u0430", + "Face with tears of joy": "\u041e\u0431\u043b\u0438\u0447\u0447\u044f \u0437\u0456 \u0441\u043b\u044c\u043e\u0437\u0430\u043c\u0438 \u0440\u0430\u0434\u043e\u0441\u0442\u0456", + "Smiling face with open mouth": "\u0423\u0441\u043c\u0456\u0445\u043d\u0435\u043d\u0435 \u043e\u0431\u043b\u0438\u0447\u0447\u044f \u0437 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0438\u043c \u0440\u043e\u0442\u043e\u043c", + "Smiling face with open mouth and smiling eyes": "\u041f\u043e\u0441\u043c\u0456\u0445\u0430\u044e\u0447\u0438\u0441\u044c \u043e\u0441\u043e\u0431\u0430 \u0437 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0438\u043c \u0440\u043e\u0442\u043e\u043c \u0456 ", + "Smiling face with open mouth and cold sweat": "\u041f\u043e\u0441\u043c\u0456\u0445\u0430\u044e\u0447\u0438\u0441\u044c \u043e\u0441\u043e\u0431\u0430 \u0437 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0438\u043c \u0440\u043e\u0442\u043e\u043c \u0456 ", + "Smiling face with open mouth and tightly-closed eyes": "\u041f\u043e\u0441\u043c\u0456\u0445\u0430\u044e\u0447\u0438\u0441\u044c \u043e\u0441\u043e\u0431\u0430 \u0437 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0438\u043c \u0440\u043e\u0442\u043e\u043c \u0456 \u0449\u0456\u043b\u044c\u043d\u043e \u0437\u0430\u043a\u0440\u0438\u0442\u0438\u043c\u0438 \u043e\u0447\u0438\u043c\u0430", + "Smiling face with halo": "\u041f\u043e\u0441\u043c\u0456\u0445\u0430\u044e\u0447\u0438\u0441\u044c \u043e\u0441\u043e\u0431\u0430 \u0433\u0430\u043b\u043e", + "Smiling face with horns": "\u041f\u043e\u0441\u043c\u0456\u0445\u0430\u044e\u0447\u0438\u0441\u044c \u043e\u0441\u043e\u0431\u0430 \u0437 \u0440\u043e\u0433\u0430\u043c\u0438", + "Winking face": "\u043f\u0456\u0434\u043c\u043e\u0440\u0433\u0443\u044e\u0447\u0438 \u043e\u0441\u043e\u0431\u0430", + "Smiling face with smiling eyes": "\u041f\u043e\u0441\u043c\u0456\u0445\u0430\u044e\u0447\u0438\u0441\u044c \u043e\u0441\u043e\u0431\u0430 \u0437 \u0443\u0441\u043c\u0456\u0445\u043d\u0435\u043d\u0438\u043c\u0438 \u043e\u0447\u0438\u043c\u0430", + "Face savoring delicious food": "\u041e\u0441\u043e\u0431\u0430 \u0441\u043c\u0430\u043a\u0443\u044e\u0447\u0438 \u0441\u043c\u0430\u0447\u043d\u0443 \u0457\u0436\u0443", + "Relieved face": "\u0437\u0432\u0456\u043b\u044c\u043d\u0435\u043d\u043e \u043e\u0441\u043e\u0431\u0430", + "Smiling face with heart-shaped eyes": "\u041f\u043e\u0441\u043c\u0456\u0445\u0430\u044e\u0447\u0438\u0441\u044c \u043e\u0441\u043e\u0431\u0430 \u0443 \u0444\u043e\u0440\u043c\u0456 \u0441\u0435\u0440\u0446\u044f \u043e\u0447\u0438\u043c\u0430", + "Smiling face with sunglasses": "\u0053\u006d\u0069\u006c\u0069\u006e\u0067 \u0066\u0061\u0063\u0065 \u0077\u0069\u0074\u0068 \u0073\u0075\u006e\u0067\u006c\u0061\u0073\u0073\u0065\u0073", + "Smirking face": "\u043f\u043e\u0441\u043c\u0456\u0445\u043d\u0443\u0432\u0448\u0438\u0441\u044c \u043e\u0441\u043e\u0431\u0430", + "Neutral face": "\u0437\u0432\u0438\u0447\u0430\u0439\u043d\u0438\u0439 \u043e\u0441\u043e\u0431\u0430", + "Expressionless face": "\u043d\u0435\u0432\u0438\u0440\u0430\u0437\u043d\u0456 \u043e\u0431\u043b\u0438\u0447\u0447\u044f", + "Unamused face": "\u0055\u006e\u0061\u006d\u0075\u0073\u0065\u0064 \u043e\u0441\u043e\u0431\u0430", + "Face with cold sweat": "\u041e\u0441\u043e\u0431\u0430 \u0437 \u0445\u043e\u043b\u043e\u0434\u043d\u043e\u0433\u043e \u043f\u043e\u0442\u0443", + "Pensive face": "\u0437\u0430\u043c\u0438\u0441\u043b\u0435\u043d\u0438\u0439 \u043e\u0441\u043e\u0431\u0430", + "Confused face": "\u043f\u043b\u0443\u0442\u0430\u0442\u0438 \u043e\u0441\u043e\u0431\u0430", + "Confounded face": "\u043d\u0435\u0445\u0430\u0439 \u043f\u043e\u0441\u043e\u0440\u043e\u043c\u043b\u044f\u0442\u044c\u0441\u044f \u043e\u0441\u043e\u0431\u0430", + "Kissing face": "\u043f\u043e\u0446\u0456\u043b\u0443\u043d\u043a\u0438 \u043e\u0441\u043e\u0431\u0430", + "Face throwing a kiss": "\u041e\u0441\u043e\u0431\u0430 \u043a\u0438\u0434\u0430\u043b\u0438 \u043f\u043e\u0446\u0456\u043b\u0443\u043d\u043e\u043a", + "Kissing face with smiling eyes": "\u041f\u043e\u0446\u0456\u043b\u0443\u043d\u043a\u0438 \u043e\u0441\u043e\u0431\u0430 \u0437 \u0443\u0441\u043c\u0456\u0445\u043d\u0435\u043d\u0438\u043c\u0438 \u043e\u0447\u0438\u043c\u0430", + "Kissing face with closed eyes": "\u041f\u043e\u0446\u0456\u043b\u0443\u043d\u043a\u0438 \u043e\u0431\u043b\u0438\u0447\u0447\u044f \u0437 \u0437\u0430\u043f\u043b\u044e\u0449\u0435\u043d\u0438\u043c\u0438 \u043e\u0447\u0438\u043c\u0430", + "Face with stuck out tongue": "\u041e\u0431\u043b\u0438\u0447\u0447\u044f \u0437 \u0441\u0442\u0438\u0440\u0447\u0430\u043b\u0438 \u044f\u0437\u0438\u043a", + "Face with stuck out tongue and winking eye": "\u041e\u0431\u043b\u0438\u0447\u0447\u044f \u0437 \u0441\u0442\u0438\u0440\u0447\u0430\u043b\u0438 \u044f\u0437\u0438\u043a\u0430 \u0456 \u0410\u043d\u0456\u043c\u043e\u0432\u0430\u043d\u0435 \u043e\u0447\u0435\u0439", + "Face with stuck out tongue and tightly-closed eyes": "\u041e\u0431\u043b\u0438\u0447\u0447\u044f \u0437 \u0441\u0442\u0438\u0440\u0447\u0430\u043b\u0438 \u044f\u0437\u0438\u043a\u0430 \u0456 \u0449\u0456\u043b\u044c\u043d\u043e \u0437\u0430\u043a\u0440\u0438\u0442\u0456 \u043e\u0447\u0456", + "Disappointed face": "\u0440\u043e\u0437\u0447\u0430\u0440\u043e\u0432\u0430\u043d\u0438\u0439 \u043e\u0441\u043e\u0431\u0430", + "Worried face": "\u0441\u0442\u0443\u0440\u0431\u043e\u0432\u0430\u043d\u0438\u0439 \u043e\u0441\u043e\u0431\u0430", + "Angry face": "\u0437\u043b\u0438\u0439 \u043e\u0441\u043e\u0431\u0430", + "Pouting face": "\u043f\u0443\u0445\u043a\u0456 \u043e\u0441\u043e\u0431\u0430", + "Crying face": "\u043f\u043b\u0430\u0447 \u043e\u0441\u043e\u0431\u0430", + "Persevering face": "\u043d\u0430\u043f\u043e\u043b\u0435\u0433\u043b\u0438\u0432\u0430 \u043e\u0441\u043e\u0431\u0430", + "Face with look of triumph": "\u041e\u0441\u043e\u0431\u0430 \u0437 \u0432\u0438\u0434\u043e\u043c \u0442\u0440\u0456\u0443\u043c\u0444\u0443", + "Disappointed but relieved face": "\u0420\u043e\u0437\u0447\u0430\u0440\u043e\u0432\u0430\u043d\u0438\u0439\u002c \u0430\u043b\u0435 \u0437\u0432\u0456\u043b\u044c\u043d\u0435\u043d\u0438\u0439 \u043e\u0441\u043e\u0431\u0430", + "Frowning face with open mouth": "\u041d\u0430\u0441\u0443\u043f\u0438\u0432\u0448\u0438\u0441\u044c \u043e\u0441\u043e\u0431\u0430 \u0437 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0438\u043c \u0440\u043e\u0442\u043e\u043c", + "Anguished face": "\u0431\u043e\u043b\u0456\u0441\u043d\u0438\u0439 \u043e\u0441\u043e\u0431\u0430", + "Fearful face": "\u043f\u043e\u0431\u043e\u044e\u044e\u0447\u0438\u0441\u044c \u043e\u0441\u043e\u0431\u0430", + "Weary face": "\u0432\u0442\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u043e\u0441\u043e\u0431\u0430", + "Sleepy face": "сонне обличчя", + "Tired face": "\u0432\u0442\u043e\u043c\u0438\u043b\u0438\u0441\u044f \u043e\u0441\u043e\u0431\u0430", + "Grimacing face": "\u0433\u0440\u0438\u043c\u0430\u0441\u0443\u044e\u0447\u0438 \u043e\u0441\u043e\u0431\u0430", + "Loudly crying face": "\u004c\u006f\u0075\u0064\u006c\u0079 \u0063\u0072\u0079\u0069\u006e\u0067 \u0066\u0061\u0063\u0065", + "Face with open mouth": "\u041e\u0441\u043e\u0431\u0430 \u0437 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0438\u043c \u0440\u043e\u0442\u043e\u043c", + "Hushed face": "\u0437\u0430\u0442\u0438\u0445 \u043e\u0441\u043e\u0431\u0430", + "Face with open mouth and cold sweat": "\u041e\u0441\u043e\u0431\u0430 \u0437 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0438\u043c \u0440\u043e\u0442\u043e\u043c \u0456 \u0445\u043e\u043b\u043e\u0434\u043d\u0438\u0439 \u043f\u0456\u0442", + "Face screaming in fear": "\u041e\u0441\u043e\u0431\u0430 \u043a\u0440\u0438\u0447\u0430\u0442\u0438 \u0432 \u0441\u0442\u0440\u0430\u0445\u0443", + "Astonished face": "\u0437\u0434\u0438\u0432\u043e\u0432\u0430\u043d\u0438\u0439 \u043e\u0441\u043e\u0431\u0430", + "Flushed face": "\u043f\u0440\u0438\u043f\u043b\u0438\u0432 \u043a\u0440\u043e\u0432\u0456 \u0434\u043e \u043e\u0431\u043b\u0438\u0447\u0447\u044f", + "Sleeping face": "\u0421\u043f\u043b\u044f\u0447\u0430 \u043e\u0441\u043e\u0431\u0430", + "Dizzy face": "\u0414\u0456\u0437\u0437\u0456 \u043e\u0441\u043e\u0431\u0430", + "Face without mouth": "\u041e\u0441\u043e\u0431\u0430 \u0431\u0435\u0437 \u0440\u043e\u0442\u0430", + "Face with medical mask": "\u041e\u0441\u043e\u0431\u0430 \u0437 \u043c\u0435\u0434\u0438\u0447\u043d\u043e\u044e \u043c\u0430\u0441\u043a\u043e\u044e", + + // Line breaker + "Break": "\u0437\u043b\u043e\u043c\u0438\u0442\u0438", + + // Math + "Subscript": "\u043f\u0456\u0434\u0440\u044f\u0434\u043a\u043e\u0432\u0438\u0439", + "Superscript": "\u043d\u0430\u0434\u0440\u044f\u0434\u043a\u043e\u0432\u0438\u0439 \u0441\u0438\u043c\u0432\u043e\u043b", + + // Full screen + "Fullscreen": "\u043f\u043e\u0432\u043d\u043e\u0435\u043a\u0440\u0430\u043d\u043d\u0438\u0439 \u0440\u0435\u0436\u0438\u043c", + + // Horizontal line + "Insert Horizontal Line": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u0443 \u043b\u0456\u043d\u0456\u044e", + + // Clear formatting + "Clear Formatting": "\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u0438 \u0444\u043e\u0440\u043c\u0430\u0442\u0443\u0432\u0430\u043d\u043d\u044f", + + // Undo, redo + "Undo": "\u0421\u043a\u0430\u0441\u0443\u0432\u0430\u0442\u0438", + "Redo": "\u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0438", + + // Select all + "Select All": "\u0412\u0438\u0431\u0440\u0430\u0442\u0438 \u0432\u0441\u0435", + + // Code view + "Code View": "\u041f\u0435\u0440\u0435\u0433\u043b\u044f\u0434 \u043a\u043e\u0434\u0443", + + // Quote + "Quote": "\u0426\u0438\u0442\u0430\u0442\u0430", + "Increase": "\u0417\u0431\u0456\u043b\u044c\u0448\u0438\u0442\u0438", + "Decrease": "\u0437\u043d\u0438\u0436\u0435\u043d\u043d\u044f", + + // Quick Insert + "Quick Insert": "\u0428\u0432\u0438\u0434\u043a\u0438\u0439 \u0432\u0441\u0442\u0430\u0432\u043a\u0430", + + // Spcial Characters + "Special Characters": "Спеціальні символи", + "Latin": "Латинський", + "Greek": "Грецький", + "Cyrillic": "Кирилиця", + "Punctuation": "Пунктуація", + "Currency": "Валюта", + "Arrows": "Стріли", + "Math": "Математика", + "Misc": "Різне", + + // Print. + "Print": "Друкувати", + + // Spell Checker. + "Spell Checker": "Перевірка орфографії", + + // Help + "Help": "Допомогти", + "Shortcuts": "Ярлики", + "Inline Editor": "Вбудований редактор", + "Show the editor": "Показати редактору", + "Common actions": "Спільні дії", + "Copy": "Скопіювати", + "Cut": "Вирізати", + "Paste": "Вставити", + "Basic Formatting": "Основне форматування", + "Increase quote level": "Збільшити рівень цитування", + "Decrease quote level": "Знизити рівень цитування", + "Image / Video": "Зображення / відео", + "Resize larger": "Змінити розмір більше", + "Resize smaller": "Змінити розмір менше", + "Table": "Стіл", + "Select table cell": "Виберіть комірку таблиці", + "Extend selection one cell": "Продовжити виділення однієї комірки", + "Extend selection one row": "Продовжити виділення одного рядка", + "Navigation": "Навігація", + "Focus popup / toolbar": "Фокус спливаюче / панель інструментів", + "Return focus to previous position": "Поверніть фокус на попередню позицію", + + // Embed.ly + "Embed URL": "Вставити URL-адресу", + "Paste in a URL to embed": "Вставте в url, щоб вставити", + + // Word Paste. + "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Вставлений вміст надходить з документу Microsoft Word. ви хочете зберегти формат чи очистити його?", + "Keep": "Тримати", + "Clean": "Чистий", + "Word Paste Detected": "Слово паста виявлено" + }, + direction: "ltr" +}; + +})); diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/vi.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/vi.js new file mode 100644 index 0000000..4e6a39c --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/vi.js @@ -0,0 +1,258 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + // require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + return factory(jQuery); + }; + } else { + // Browser globals + factory(window.jQuery); + } +}(function ($) { +$.FE.LANGUAGE['vi'] = { + translation: { + // Place holder + "Type something": "Vi\u1EBFt \u0111i\u1EC1u g\u00EC \u0111\u00F3...", + + // Basic formatting + "Bold": "\u0110\u1EADm", + "Italic": "Nghi\u00EAng", + "Underline": "G\u1EA1ch ch\u00E2n", + "Strikethrough": "G\u1EA1ch ngang ch\u1EEF", + + // Main buttons + "Insert": "Ch\u00E8n", + "Delete": "X\u00F3a", + "Cancel": "H\u1EE7y", + "OK": "OK", + "Back": "Tr\u1EDF v\u1EC1", + "Remove": "X\u00F3a", + "More": "Th\u00EAm", + "Update": "C\u1EADp nh\u1EADt", + "Style": "Ki\u1EC3u", + + // Font + "Font Family": "Ph\u00F4ng ch\u1EEF", + "Font Size": "C\u1EE1 ch\u1EEF", + + // Colors + "Colors": "M\u00E0u s\u1EAFc", + "Background": "N\u1EC1n", + "Text": "Ch\u1EEF", + "HEX Color": "Màu hex", + + // Paragraphs + "Paragraph Format": "\u0110\u1ECBnh d\u1EA1ng \u0111o\u1EA1n v\u0103n b\u1EA3n", + "Normal": "Normal", + "Code": "Code", + "Heading 1": "Heading 1", + "Heading 2": "Heading 2", + "Heading 3": "Heading 3", + "Heading 4": "Heading 4", + + // Style + "Paragraph Style": "Ki\u1EC3u \u0111o\u1EA1n v\u0103n b\u1EA3n", + "Inline Style": "Ki\u1EC3u d\u00F2ng", + + // Alignment + "Align": "C\u0103n ch\u1EC9nh", + "Align Left": "C\u0103n tr\u00E1i", + "Align Center": "C\u0103n gi\u1EEFa", + "Align Right": "C\u0103n ph\u1EA3i", + "Align Justify": "C\u0103n \u0111\u1EC1u", + "None": "Kh\u00F4ng", + + // Lists + "Ordered List": "Danh s\u00E1ch theo th\u1EE9 t\u1EF1", + "Unordered List": "Danh s\u00E1ch li\u1EC7t k\u00EA", + + // Indent + "Decrease Indent": "Gi\u1EA3m c\u0103n l\u1EC1", + "Increase Indent": "T\u0103ng c\u0103n l\u1EC1", + + // Links + "Insert Link": "Ch\u00E8n link", + "Open in new tab": "M\u1EDF trong tab m\u1EDBi", + "Open Link": "M\u1EDF link", + "Edit Link": "S\u1EEDa link", + "Unlink": "B\u1ECF link", + "Choose Link": "Ch\u1ECDn link", + + // Images + "Insert Image": "Ch\u00E8n h\u00ECnh", + "Upload Image": "T\u1EA3i h\u00ECnh l\u00EAn", + "By URL": "B\u1EB1ng URL", + "Browse": "Duy\u1EC7t file", + "Drop image": "K\u00E9o th\u1EA3 h\u00ECnh", + "or click": "ho\u1EB7c ch\u1ECDn", + "Manage Images": "Qu\u1EA3n l\u00FD h\u00ECnh \u1EA3nh", + "Loading": "\u0110ang t\u1EA3i", + "Deleting": "\u0110ang x\u00F3a", + "Tags": "Tags", + "Are you sure? Image will be deleted.": "B\u1EA1n c\u00F3 ch\u1EAFc ch\u1EAFn? H\u00ECnh \u1EA3nh s\u1EBD b\u1ECB x\u00F3a.", + "Replace": "Thay th\u1EBF", + "Uploading": "\u0110ang t\u1EA3i l\u00EAn", + "Loading image": "\u0110ang t\u1EA3i h\u00ECnh \u1EA3nh", + "Display": "Hi\u1EC3n th\u1ECB", + "Inline": "C\u00F9ng d\u00F2ng v\u1EDBi ch\u1EEF", + "Break Text": "Kh\u00F4ng c\u00F9ng d\u00F2ng v\u1EDBi ch\u1EEF", + "Alternate Text": "Thay th\u1EBF ch\u1EEF", + "Change Size": "Thay \u0111\u1ED5i k\u00EDch c\u1EE1", + "Width": "Chi\u1EC1u r\u1ED9ng", + "Height": "Chi\u1EC1u cao", + "Something went wrong. Please try again.": "C\u00F3 l\u1ED7i x\u1EA3y ra. Vui l\u00F2ng th\u1EED l\u1EA1i sau.", + "Image Caption": "Chú thích hình ảnh", + "Advanced Edit": "Chỉnh sửa tiên tiến", + + // Video + "Insert Video": "Ch\u00E8n video", + "Embedded Code": "M\u00E3 nh\u00FAng", + "Paste in a video URL": "Dán vào một url video", + "Drop video": "Thả video", + "Your browser does not support HTML5 video.": "Trình duyệt của bạn không hỗ trợ video html5.", + "Upload Video": "Tải video lên", + + // Tables + "Insert Table": "Ch\u00E8n b\u1EA3ng", + "Table Header": "D\u00F2ng \u0111\u1EA7u b\u1EA3ng", + "Remove Table": "X\u00F3a b\u1EA3ng", + "Table Style": "Ki\u1EC3u b\u1EA3ng", + "Horizontal Align": "C\u0103n ch\u1EC9nh chi\u1EC1u ngang", + "Row": "D\u00F2ng", + "Insert row above": "Ch\u00E8n d\u00F2ng ph\u00EDa tr\u00EAn", + "Insert row below": "Ch\u00E8n d\u00F2ng ph\u00EDa d\u01B0\u1EDBi", + "Delete row": "X\u00F3a d\u00F2ng", + "Column": "C\u1ED9t", + "Insert column before": "Ch\u00E8n c\u1ED9t b\u00EAn tr\u00E1i", + "Insert column after": "Ch\u00E8n c\u1ED9t b\u00EAn ph\u1EA3i", + "Delete column": "X\u00F3a c\u1ED9t", + "Cell": "\u00D4 b\u1EA3ng", + "Merge cells": "G\u1ED9p \u00F4", + "Horizontal split": "Chia d\u00F2ng", + "Vertical split": "Chia c\u1ED9t", + "Cell Background": "M\u00E0u n\u1EC1n", + "Vertical Align": "C\u0103n ch\u1EC9nh chi\u1EC1u d\u1ECDc", + "Top": "Tr\u00EAn c\u00F9ng", + "Middle": "Gi\u1EEFa", + "Bottom": "D\u01B0\u1EDBi \u0111\u00E1y", + "Align Top": "C\u0103n tr\u00EAn", + "Align Middle": "C\u0103n gi\u1EEFa", + "Align Bottom": "C\u0103n d\u01B0\u1EDBi", + "Cell Style": "Ki\u1EC3u \u00F4", + + // Files + "Upload File": "T\u1EA3i file l\u00EAn", + "Drop file": "K\u00E9o th\u1EA3 file", + + // Emoticons + "Emoticons": "Bi\u1EC3u t\u01B0\u1EE3ng c\u1EA3m x\u00FAc", + + // Line breaker + "Break": "Ng\u1EAFt d\u00F2ng", + + // Math + "Subscript": "Subscript", + "Superscript": "Superscript", + + // Full screen + "Fullscreen": "To\u00E0n m\u00E0n h\u00ECnh", + + // Horizontal line + "Insert Horizontal Line": "Ch\u00E8n \u0111\u01B0\u1EDDng k\u1EBB ngang v\u0103n b\u1EA3n", + + // Clear formatting + "Clear Formatting": "X\u00F3a \u0111\u1ECBnh d\u1EA1ng", + + // Undo, redo + "Undo": "Undo", + "Redo": "Redo", + + // Select all + "Select All": "Ch\u1ECDn t\u1EA5t c\u1EA3", + + // Code view + "Code View": "Xem d\u1EA1ng code", + + // Quote + "Quote": "Tr\u00EDch d\u1EABn", + "Increase": "T\u0103ng", + "Decrease": "Gi\u1EA3m", + + // Quick Insert + "Quick Insert": "Ch\u00E8n nhanh", + + // Spcial Characters + "Special Characters": "Nhân vật đặc biệt", + "Latin": "Latin", + "Greek": "Người Hy Lạp", + "Cyrillic": "Chữ viết tay", + "Punctuation": "Chấm câu", + "Currency": "Tiền tệ", + "Arrows": "Mũi tên", + "Math": "Môn Toán", + "Misc": "Misc", + + // Print. + "Print": "In", + + // Spell Checker. + "Spell Checker": "Công cụ kiểm tra chính tả", + + // Help + "Help": "Cứu giúp", + "Shortcuts": "Phím tắt", + "Inline Editor": "Trình biên tập nội tuyến", + "Show the editor": "Hiển thị trình soạn thảo", + "Common actions": "Hành động thông thường", + "Copy": "Sao chép", + "Cut": "Cắt tỉa", + "Paste": "Dán", + "Basic Formatting": "Định dạng cơ bản", + "Increase quote level": "Tăng mức báo giá", + "Decrease quote level": "Giảm mức giá", + "Image / Video": "Hình ảnh / video", + "Resize larger": "Thay đổi kích thước lớn hơn", + "Resize smaller": "Thay đổi kích thước nhỏ hơn", + "Table": "Bàn", + "Select table cell": "Chọn ô trong bảng", + "Extend selection one cell": "Mở rộng lựa chọn một ô", + "Extend selection one row": "Mở rộng lựa chọn một hàng", + "Navigation": "Dẫn đường", + "Focus popup / toolbar": "Tập trung popup / thanh công cụ", + "Return focus to previous position": "Quay trở lại vị trí trước", + + // Embed.ly + "Embed URL": "Url nhúng", + "Paste in a URL to embed": "Dán vào một url để nhúng", + + // Word Paste. + "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "Nội dung dán là đến từ một tài liệu từ microsoft. bạn có muốn giữ định dạng hoặc làm sạch nó?", + "Keep": "Giữ", + "Clean": "Dọn dẹp", + "Word Paste Detected": "Dán từ được phát hiện" + }, + direction: "ltr" +}; + +})); diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/zh_cn.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/zh_cn.js new file mode 100644 index 0000000..f5e4587 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/zh_cn.js @@ -0,0 +1,318 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + // require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + return factory(jQuery); + }; + } else { + // Browser globals + factory(window.jQuery); + } +}(function ($) { +/** + * Simplified Chinese spoken in China. + */ + +$.FE.LANGUAGE['zh_cn'] = { + translation: { + // Place holder + "Type something": "\u8f93\u5165\u4e00\u4e9b\u5185\u5bb9", + + // Basic formatting + "Bold": "\u7c97\u4f53", + "Italic": "\u659c\u4f53", + "Underline": "\u4e0b\u5212\u7ebf", + "Strikethrough": "\u5220\u9664\u7ebf", + + // Main buttons + "Insert": "\u63d2\u5165", + "Delete": "\u5220\u9664", + "Cancel": "\u53d6\u6d88", + "OK": "\u786e\u5b9a", + "Back": "\u80cc\u90e8", + "Remove": "\u53bb\u6389", + "More": "\u66f4\u591a", + "Update": "\u66f4\u65b0", + "Style": "\u98ce\u683c", + + // Font + "Font Family": "\u5b57\u4f53", + "Font Size": "\u5b57\u53f7", + + // Colors + "Colors": "\u989c\u8272", + "Background": "\u80cc\u666f", + "Text": "\u6587\u5b57", + "HEX Color": "十六进制颜色", + + // Paragraphs + "Paragraph Format": "\u683c\u5f0f", + "Normal": "\u6b63\u5e38", + "Code": "\u4ee3\u7801", + "Heading 1": "\u6807\u98981", + "Heading 2": "\u6807\u98982", + "Heading 3": "\u6807\u98983", + "Heading 4": "\u6807\u98984", + + // Style + "Paragraph Style": "\u6bb5\u843d\u6837\u5f0f", + "Inline Style": "\u5185\u8054\u6837\u5f0f", + + // Alignment + "Align": "\u5bf9\u9f50\u65b9\u5f0f", + "Align Left": "\u5de6\u5bf9\u9f50", + "Align Center": "\u5c45\u4e2d", + "Align Right": "\u53f3\u5bf9\u9f50", + "Align Justify": "\u4e24\u7aef\u5bf9\u9f50", + "None": "\u65e0", + + // Lists + "Ordered List": "\u7f16\u53f7\u5217\u8868", + "Unordered List": "\u9879\u76ee\u7b26\u53f7", + + // Indent + "Decrease Indent": "\u51cf\u5c11\u7f29\u8fdb", + "Increase Indent": "\u589e\u52a0\u7f29\u8fdb", + + // Links + "Insert Link": "\u63d2\u5165\u94fe\u63a5", + "Open in new tab": "\u5f00\u542f\u5728\u65b0\u6807\u7b7e\u9875", + "Open Link": "\u6253\u5f00\u94fe\u63a5", + "Edit Link": "\u7f16\u8f91\u94fe\u63a5", + "Unlink": "\u5220\u9664\u94fe\u63a5", + "Choose Link": "\u9009\u62e9\u94fe\u63a5", + + // Images + "Insert Image": "\u63d2\u5165\u56fe\u7247", + "Upload Image": "\u4e0a\u4f20\u56fe\u7247", + "By URL": "\u901a\u8fc7\u7f51\u5740", + "Browse": "\u6d4f\u89c8", + "Drop image": "\u56fe\u50cf\u62d6\u653e", + "or click": "\u6216\u70b9\u51fb", + "Manage Images": "\u7ba1\u7406\u56fe\u50cf", + "Loading": "\u8f7d\u5165\u4e2d", + "Deleting": "\u5220\u9664", + "Tags": "\u6807\u7b7e", + "Are you sure? Image will be deleted.": "\u4f60\u786e\u5b9a\u5417\uff1f\u56fe\u50cf\u5c06\u88ab\u5220\u9664\u3002", + "Replace": "\u66f4\u6362", + "Uploading": "\u4e0a\u4f20", + "Loading image": "\u5bfc\u5165\u56fe\u50cf", + "Display": "\u663e\u793a", + "Inline": "\u6392\u961f", + "Break Text": "\u65ad\u5f00\u6587\u672c", + "Alternate Text": "\u5907\u7528\u6587\u672c", + "Change Size": "\u5c3a\u5bf8\u53d8\u5316", + "Width": "\u5bbd\u5ea6", + "Height": "\u9ad8\u5ea6", + "Something went wrong. Please try again.": "\u51fa\u4e86\u4e9b\u95ee\u9898\u3002 \u8bf7\u518d\u8bd5\u4e00\u6b21\u3002", + "Image Caption": "图片说明", + "Advanced Edit": "高级编辑", + + // Video + "Insert Video": "\u63d2\u5165\u89c6\u9891", + "Embedded Code": "\u5d4c\u5165\u5f0f\u4ee3\u7801", + "Paste in a video URL": "粘贴在视频网址", + "Drop video": "放下视频", + "Your browser does not support HTML5 video.": "您的浏览器不支持html5视频。", + "Upload Video": "上传视频", + + // Tables + "Insert Table": "\u63d2\u5165\u8868\u683c", + "Table Header": "\u8868\u5934", + "Remove Table": "\u5220\u9664\u8868", + "Table Style": "\u8868\u683c\u6837\u5f0f", + "Horizontal Align": "\u6c34\u5e73\u5bf9\u9f50\u65b9\u5f0f", + "Row": "\u884c", + "Insert row above": "\u5728\u4e0a\u65b9\u63d2\u5165", + "Insert row below": "\u5728\u4e0b\u65b9\u63d2\u5165", + "Delete row": "\u5220\u9664\u884c", + "Column": "\u5217", + "Insert column before": "\u5728\u5de6\u4fa7\u63d2\u5165", + "Insert column after": "\u5728\u53f3\u4fa7\u63d2\u5165", + "Delete column": "\u5220\u9664\u5217", + "Cell": "\u5355\u5143\u683c", + "Merge cells": "\u5408\u5e76\u5355\u5143\u683c", + "Horizontal split": "\u6c34\u5e73\u5206\u5272", + "Vertical split": "\u5782\u76f4\u5206\u5272", + "Cell Background": "\u5355\u5143\u683c\u80cc\u666f", + "Vertical Align": "\u5782\u76f4\u5bf9\u9f50\u65b9\u5f0f", + "Top": "\u6700\u4f73", + "Middle": "\u4e2d\u95f4", + "Bottom": "\u5e95\u90e8", + "Align Top": "\u9876\u90e8\u5bf9\u9f50", + "Align Middle": "\u4e2d\u95f4\u5bf9\u9f50", + "Align Bottom": "\u5e95\u90e8\u5bf9\u9f50", + "Cell Style": "\u5355\u5143\u683c\u6837\u5f0f", + + // Files + "Upload File": "\u4e0a\u4f20\u6587\u4ef6", + "Drop file": "\u6587\u4ef6\u62d6\u653e", + + // Emoticons + "Emoticons": "\u8868\u60c5", + "Grinning face": "\u8138\u4e0a\u7b11\u563b\u563b", + "Grinning face with smiling eyes": "咧着嘴笑的脸微笑的眼睛", + "Face with tears of joy": "\u7b11\u563b\u563b\u7684\u8138\uff0c\u542b\u7b11\u7684\u773c\u775b", + "Smiling face with open mouth": "\u7b11\u8138\u5f20\u5f00\u5634", + "Smiling face with open mouth and smiling eyes": "\u7b11\u8138\u5f20\u5f00\u5634\u5fae\u7b11\u7684\u773c\u775b", + "Smiling face with open mouth and cold sweat": "\u7b11\u8138\u5f20\u5f00\u5634\uff0c\u4e00\u8eab\u51b7\u6c57", + "Smiling face with open mouth and tightly-closed eyes": "\u7b11\u8138\u5f20\u5f00\u5634\uff0c\u7d27\u7d27\u95ed\u7740\u773c\u775b", + "Smiling face with halo": "\u7b11\u8138\u6655", + "Smiling face with horns": "\u5fae\u7b11\u7684\u8138\u89d2", + "Winking face": "\u7728\u773c\u8868\u60c5", + "Smiling face with smiling eyes": "\u9762\u5e26\u5fae\u7b11\u7684\u773c\u775b", + "Face savoring delicious food": "\u9762\u5bf9\u54c1\u5c1d\u7f8e\u5473\u7684\u98df\u7269", + "Relieved face": "\u9762\u5bf9\u5982\u91ca\u91cd\u8d1f", + "Smiling face with heart-shaped eyes": "\u5fae\u7b11\u7684\u8138\uff0c\u5fc3\u810f\u5f62\u7684\u773c\u775b", + "Smiling face with sunglasses": "\u7b11\u8138\u592a\u9633\u955c", + "Smirking face": "\u9762\u5bf9\u9762\u5e26\u7b11\u5bb9", + "Neutral face": "\u4e2d\u6027\u9762", + "Expressionless face": "\u9762\u65e0\u8868\u60c5", + "Unamused face": "\u4e00\u8138\u4e0d\u5feb\u7684\u8138", + "Face with cold sweat": "\u9762\u5bf9\u51b7\u6c57", + "Pensive face": "\u6c89\u601d\u7684\u8138", + "Confused face": "\u9762\u5bf9\u56f0\u60d1", + "Confounded face": "\u8be5\u6b7b\u7684\u8138", + "Kissing face": "\u9762\u5bf9\u63a5\u543b", + "Face throwing a kiss": "\u9762\u5bf9\u6295\u63b7\u4e00\u4e2a\u543b", + "Kissing face with smiling eyes": "\u63a5\u543b\u8138\uff0c\u542b\u7b11\u7684\u773c\u775b", + "Kissing face with closed eyes": "\u63a5\u543b\u7684\u8138\u95ed\u7740\u773c\u775b", + "Face with stuck out tongue": "\u9762\u5bf9\u4f38\u51fa\u820c\u5934", + "Face with stuck out tongue and winking eye": "\u9762\u5bf9\u4f38\u51fa\u820c\u5934\u548c\u7728\u52a8\u7684\u773c\u775b", + "Face with stuck out tongue and tightly-closed eyes": "\u9762\u5bf9\u4f38\u51fa\u820c\u5934\u548c\u7d27\u95ed\u7684\u773c\u775b", + "Disappointed face": "\u9762\u5bf9\u5931\u671b", + "Worried face": "\u9762\u5bf9\u62c5\u5fc3", + "Angry face": "\u6124\u6012\u7684\u8138", + "Pouting face": "\u9762\u5bf9\u5658\u5634", + "Crying face": "\u54ed\u6ce3\u7684\u8138", + "Persevering face": "\u600e\u5948\u8138", + "Face with look of triumph": "\u9762\u5e26\u770b\u7684\u80dc\u5229", + "Disappointed but relieved face": "\u5931\u671b\uff0c\u4f46\u8138\u4e0a\u91ca\u7136", + "Frowning face with open mouth": "\u9762\u5bf9\u76b1\u7740\u7709\u5934\u5f20\u53e3", + "Anguished face": "\u9762\u5bf9\u75db\u82e6", + "Fearful face": "\u53ef\u6015\u7684\u8138", + "Weary face": "\u9762\u5bf9\u538c\u5026", + "Sleepy face": "\u9762\u5bf9\u56f0", + "Tired face": "\u75b2\u60eb\u7684\u8138", + "Grimacing face": "\u72f0\u72de\u7684\u8138", + "Loudly crying face": "\u5927\u58f0\u54ed\u8138", + "Face with open mouth": "\u9762\u5bf9\u5f20\u5f00\u5634", + "Hushed face": "\u5b89\u9759\u7684\u8138", + "Face with open mouth and cold sweat": "脸上露出嘴巴和冷汗", + "Face screaming in fear": "\u9762\u5bf9\u5f20\u5f00\u5634\uff0c\u4e00\u8eab\u51b7\u6c57", + "Astonished face": "\u9762\u5bf9\u60ca\u8bb6", + "Flushed face": "\u7ea2\u6251\u6251\u7684\u8138\u86cb", + "Sleeping face": "\u719f\u7761\u7684\u8138", + "Dizzy face": "\u9762\u5bf9\u7729", + "Face without mouth": "\u8138\u4e0a\u6ca1\u6709\u5634", + "Face with medical mask": "\u9762\u5bf9\u533b\u7597\u53e3\u7f69", + + // Line breaker + "Break": "\u7834", + + // Math + "Subscript": "\u4e0b\u6807", + "Superscript": "\u4e0a\u6807", + + // Full screen + "Fullscreen": "\u5168\u5c4f", + + // Horizontal line + "Insert Horizontal Line": "\u63d2\u5165\u6c34\u5e73\u7ebf", + + // Clear formatting + "Clear Formatting": "\u683c\u5f0f\u5316\u5220\u9664", + + // Undo, redo + "Undo": "\u64a4\u6d88", + "Redo": "\u91cd\u590d", + + // Select all + "Select All": "\u5168\u9009", + + // Code view + "Code View": "\u4ee3\u7801\u89c6\u56fe", + + // Quote + "Quote": "\u5f15\u7528", + "Increase": "\u589e\u52a0\u5f15\u7528", + "Decrease": "\u5220\u9664\u5f15\u7528", + + // Quick Insert + "Quick Insert": "\u5feb\u63d2", + + // Spcial Characters + "Special Characters": "特殊字符", + "Latin": "拉丁", + "Greek": "希腊语", + "Cyrillic": "西里尔", + "Punctuation": "标点", + "Currency": "货币", + "Arrows": "箭头", + "Math": "数学", + "Misc": "杂项", + + // Print. + "Print": "打印", + + // Spell Checker. + "Spell Checker": "拼写检查器", + + // Help + "Help": "帮帮我", + "Shortcuts": "快捷键", + "Inline Editor": "内联编辑器", + "Show the editor": "显示编辑", + "Common actions": "共同行动", + "Copy": "复制", + "Cut": "切", + "Paste": "糊", + "Basic Formatting": "基本格式", + "Increase quote level": "提高报价水平", + "Decrease quote level": "降低报价水平", + "Image / Video": "图像/视频", + "Resize larger": "调整大小更大", + "Resize smaller": "调整大小更小", + "Table": "表", + "Select table cell": "选择表单元格", + "Extend selection one cell": "扩展选择一个单元格", + "Extend selection one row": "扩展选择一行", + "Navigation": "导航", + "Focus popup / toolbar": "焦点弹出/工具栏", + "Return focus to previous position": "将焦点返回到上一个位置", + + // Embed.ly + "Embed URL": "嵌入网址", + "Paste in a URL to embed": "粘贴在一个网址中嵌入", + + // Word Paste. + "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "粘贴的内容来自微软Word文档。你想保留格式还是清理它?", + "Keep": "保持", + "Clean": "清洁", + "Word Paste Detected": "检测到字贴" + }, + direction: "ltr" +}; + +})); diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/zh_tw.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/zh_tw.js new file mode 100644 index 0000000..fe8b564 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/languages/zh_tw.js @@ -0,0 +1,318 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + // Node/CommonJS + module.exports = function( root, jQuery ) { + if ( jQuery === undefined ) { + // require('jQuery') returns a factory that requires window to + // build a jQuery instance, we normalize how we use modules + // that require this pattern but the window provided is a noop + // if it's defined (how jquery works) + if ( typeof window !== 'undefined' ) { + jQuery = require('jquery'); + } + else { + jQuery = require('jquery')(root); + } + } + return factory(jQuery); + }; + } else { + // Browser globals + factory(window.jQuery); + } +}(function ($) { +/** + * Traditional Chinese spoken in Taiwan. + */ + +$.FE.LANGUAGE['zh_tw'] = { + translation: { + // Place holder + "Type something": "\u8f38\u5165\u4e00\u4e9b\u5167\u5bb9", + + // Basic formatting + "Bold": "\u7c97\u9ad4", + "Italic": "\u659c\u9ad4", + "Underline": "\u5e95\u7dda", + "Strikethrough": "\u522a\u9664\u7dda", + + // Main buttons + "Insert": "\u63d2\u5165", + "Delete": "\u522a\u9664", + "Cancel": "\u53d6\u6d88", + "OK": "\u78ba\u5b9a", + "Back": "\u5f8c", + "Remove": "\u79fb\u9664", + "More": "\u66f4\u591a", + "Update": "\u66f4\u65b0", + "Style": "\u6a23\u5f0f", + + // Font + "Font Family": "\u5b57\u9ad4", + "Font Size": "\u5b57\u578b\u5927\u5c0f", + + // Colors + "Colors": "\u984f\u8272", + "Background": "\u80cc\u666f", + "Text": "\u6587\u5b57", + "HEX Color": "十六進制顏色", + + // Paragraphs + "Paragraph Format": "\u683c\u5f0f", + "Normal": "\u6b63\u5e38", + "Code": "\u7a0b\u5f0f\u78bc", + "Heading 1": "\u6a19\u984c 1", + "Heading 2": "\u6a19\u984c 2", + "Heading 3": "\u6a19\u984c 3", + "Heading 4": "\u6a19\u984c 4", + + // Style + "Paragraph Style": "\u6bb5\u843d\u6a23\u5f0f", + "Inline Style": "\u5167\u806f\u6a23\u5f0f", + + // Alignment + "Align": "\u5c0d\u9f4a", + "Align Left": "\u7f6e\u5de6\u5c0d\u9f4a", + "Align Center": "\u7f6e\u4e2d\u5c0d\u9f4a", + "Align Right": "\u7f6e\u53f3\u5c0d\u9f4a", + "Align Justify": "\u5de6\u53f3\u5c0d\u9f4a", + "None": "\u7121", + + // Lists + "Ordered List": "\u6578\u5b57\u6e05\u55ae", + "Unordered List": "\u9805\u76ee\u6e05\u55ae", + + // Indent + "Decrease Indent": "\u6e1b\u5c11\u7e2e\u6392", + "Increase Indent": "\u589e\u52a0\u7e2e\u6392", + + // Links + "Insert Link": "\u63d2\u5165\u9023\u7d50", + "Open in new tab": "\u5728\u65b0\u5206\u9801\u958b\u555f", + "Open Link": "\u958b\u555f\u9023\u7d50", + "Edit Link": "\u7de8\u8f2f\u9023\u7d50", + "Unlink": "\u79fb\u9664\u9023\u7d50", + "Choose Link": "\u9078\u64c7\u9023\u7d50", + + // Images + "Insert Image": "\u63d2\u5165\u5716\u7247", + "Upload Image": "\u4e0a\u50b3\u5716\u7247", + "By URL": "\u7db2\u5740\u4e0a\u50b3", + "Browse": "\u700f\u89bd", + "Drop image": "\u5716\u7247\u62d6\u66f3", + "or click": "\u6216\u9ede\u64ca", + "Manage Images": "\u7ba1\u7406\u5716\u7247", + "Loading": "\u8f09\u5165\u4e2d", + "Deleting": "\u522a\u9664", + "Tags": "\u6a19\u7c64", + "Are you sure? Image will be deleted.": "\u78ba\u5b9a\u522a\u9664\u5716\u7247\uff1f", + "Replace": "\u66f4\u63db", + "Uploading": "\u4e0a\u50b3", + "Loading image": "\u4e0a\u50b3\u4e2d", + "Display": "\u986f\u793a", + "Inline": "\u5d4c\u5165", + "Break Text": "\u8207\u6587\u5b57\u5206\u96e2", + "Alternate Text": "\u6587\u5b57\u74b0\u7e5e", + "Change Size": "\u8abf\u6574\u5927\u5c0f", + "Width": "\u5bec\u5ea6", + "Height": "\u9ad8\u5ea6", + "Something went wrong. Please try again.": "\u932f\u8aa4\uff0c\u8acb\u518d\u8a66\u4e00\u6b21\u3002", + "Image Caption": "圖片說明", + "Advanced Edit": "高級編輯", + + // Video + "Insert Video": "\u63d2\u5165\u5f71\u7247", + "Embedded Code": "\u5d4c\u5165\u7a0b\u5f0f\u78bc", + "Paste in a video URL": "粘貼在視頻網址", + "Drop video": "放下視頻", + "Your browser does not support HTML5 video.": "您的瀏覽器不支持html5視頻。", + "Upload Video": "上傳視頻", + + // Tables + "Insert Table": "\u63d2\u5165\u8868\u683c", + "Table Header": "\u8868\u982d", + "Remove Table": "\u522a\u9664\u8868", + "Table Style": "\u8868\u6a23\u5f0f", + "Horizontal Align": "\u6c34\u6e96\u5c0d\u9f4a\u65b9\u5f0f", + "Row": "\u884c", + "Insert row above": "\u5411\u4e0a\u63d2\u5165\u4e00\u884c", + "Insert row below": "\u5411\u4e0b\u63d2\u5165\u4e00\u884c", + "Delete row": "\u522a\u9664\u884c", + "Column": "\u5217", + "Insert column before": "\u5411\u5de6\u63d2\u5165\u4e00\u5217", + "Insert column after": "\u5411\u53f3\u63d2\u5165\u4e00\u5217", + "Delete column": "\u522a\u9664\u884c", + "Cell": "\u5132\u5b58\u683c", + "Merge cells": "\u5408\u4f75\u5132\u5b58\u683c", + "Horizontal split": "\u6c34\u5e73\u5206\u5272", + "Vertical split": "\u5782\u76f4\u5206\u5272", + "Cell Background": "\u5132\u5b58\u683c\u80cc\u666f", + "Vertical Align": "\u5782\u76f4\u5c0d\u9f4a\u65b9\u5f0f", + "Top": "\u4e0a", + "Middle": "\u4e2d", + "Bottom": "\u4e0b", + "Align Top": "\u5411\u4e0a\u5c0d\u9f4a", + "Align Middle": "\u4e2d\u9593\u5c0d\u9f4a", + "Align Bottom": "\u5e95\u90e8\u5c0d\u9f4a", + "Cell Style": "\u5132\u5b58\u683c\u6a23\u5f0f", + + // Files + "Upload File": "\u4e0a\u50b3\u6587\u4ef6", + "Drop file": "\u6587\u4ef6\u62d6\u66f3", + + // Emoticons + "Emoticons": "\u8868\u60c5", + "Grinning face": "\u81c9\u4e0a\u7b11\u563b\u563b", + "Grinning face with smiling eyes": "\u7b11\u563b\u563b\u7684\u81c9\uff0c\u542b\u7b11\u7684\u773c\u775b", + "Face with tears of joy": "\u81c9\u4e0a\u5e36\u8457\u559c\u6085\u7684\u6dda\u6c34", + "Smiling face with open mouth": "\u7b11\u81c9\u5f35\u958b\u5634", + "Smiling face with open mouth and smiling eyes": "\u7b11\u81c9\u5f35\u958b\u5634\u5fae\u7b11\u7684\u773c\u775b", + "Smiling face with open mouth and cold sweat": "\u7b11\u81c9\u5f35\u958b\u5634\uff0c\u4e00\u8eab\u51b7\u6c57", + "Smiling face with open mouth and tightly-closed eyes": "\u7b11\u81c9\u5f35\u958b\u5634\uff0c\u7dca\u7dca\u9589\u8457\u773c\u775b", + "Smiling face with halo": "\u7b11\u81c9\u6688", + "Smiling face with horns": "\u5fae\u7b11\u7684\u81c9\u89d2", + "Winking face": "\u7728\u773c\u8868\u60c5", + "Smiling face with smiling eyes": "\u9762\u5e36\u5fae\u7b11\u7684\u773c\u775b", + "Face savoring delicious food": "\u9762\u5c0d\u54c1\u5690\u7f8e\u5473\u7684\u98df\u7269", + "Relieved face": "\u9762\u5c0d\u5982\u91cb\u91cd\u8ca0", + "Smiling face with heart-shaped eyes": "\u5fae\u7b11\u7684\u81c9\uff0c\u5fc3\u81df\u5f62\u7684\u773c\u775b", + "Smiling face with sunglasses": "\u7b11\u81c9\u592a\u967d\u93e1", + "Smirking face": "\u9762\u5c0d\u9762\u5e36\u7b11\u5bb9", + "Neutral face": "\u4e2d\u6027\u9762", + "Expressionless face": "\u9762\u7121\u8868\u60c5", + "Unamused face": "\u4e00\u81c9\u4e0d\u5feb\u7684\u81c9", + "Face with cold sweat": "\u9762\u5c0d\u51b7\u6c57", + "Pensive face": "\u6c89\u601d\u7684\u81c9", + "Confused face": "\u9762\u5c0d\u56f0\u60d1", + "Confounded face": "\u8a72\u6b7b\u7684\u81c9", + "Kissing face": "\u9762\u5c0d\u63a5\u543b", + "Face throwing a kiss": "\u9762\u5c0d\u6295\u64f2\u4e00\u500b\u543b", + "Kissing face with smiling eyes": "\u63a5\u543b\u81c9\uff0c\u542b\u7b11\u7684\u773c\u775b", + "Kissing face with closed eyes": "\u63a5\u543b\u7684\u81c9\u9589\u8457\u773c\u775b", + "Face with stuck out tongue": "\u9762\u5c0d\u4f38\u51fa\u820c\u982d", + "Face with stuck out tongue and winking eye": "\u9762\u5c0d\u4f38\u51fa\u820c\u982d\u548c\u7728\u52d5\u7684\u773c\u775b", + "Face with stuck out tongue and tightly-closed eyes": "\u9762\u5c0d\u4f38\u51fa\u820c\u982d\u548c\u7dca\u9589\u7684\u773c\u775b", + "Disappointed face": "\u9762\u5c0d\u5931\u671b", + "Worried face": "\u9762\u5c0d\u64d4\u5fc3", + "Angry face": "\u61a4\u6012\u7684\u81c9", + "Pouting face": "\u9762\u5c0d\u5658\u5634", + "Crying face": "\u54ed\u6ce3\u7684\u81c9", + "Persevering face": "\u600e\u5948\u81c9", + "Face with look of triumph": "\u9762\u5e36\u770b\u7684\u52dd\u5229", + "Disappointed but relieved face": "\u5931\u671b\uff0c\u4f46\u81c9\u4e0a\u91cb\u7136", + "Frowning face with open mouth": "\u9762\u5c0d\u76ba\u8457\u7709\u982d\u5f35\u53e3", + "Anguished face": "\u9762\u5c0d\u75db\u82e6", + "Fearful face": "\u53ef\u6015\u7684\u81c9", + "Weary face": "\u9762\u5c0d\u53ad\u5026", + "Sleepy face": "\u9762\u5c0d\u56f0", + "Tired face": "\u75b2\u618a\u7684\u81c9", + "Grimacing face": "\u7319\u7370\u7684\u81c9", + "Loudly crying face": "\u5927\u8072\u54ed\u81c9", + "Face with open mouth": "\u9762\u5c0d\u5f35\u958b\u5634", + "Hushed face": "\u5b89\u975c\u7684\u81c9", + "Face with open mouth and cold sweat": "\u9762\u5c0d\u5f35\u958b\u5634\uff0c\u4e00\u8eab\u51b7\u6c57", + "Face screaming in fear": "\u9762\u5c0d\u5c16\u53eb\u5728\u6050\u61fc\u4e2d", + "Astonished face": "\u9762\u5c0d\u9a5a\u8a1d", + "Flushed face": "\u7d05\u64b2\u64b2\u7684\u81c9\u86cb", + "Sleeping face": "\u719f\u7761\u7684\u81c9", + "Dizzy face": "\u9762\u5c0d\u7729", + "Face without mouth": "\u81c9\u4e0a\u6c92\u6709\u5634", + "Face with medical mask": "\u9762\u5c0d\u91ab\u7642\u53e3\u7f69", + + // Line breaker + "Break": "\u63db\u884c", + + // Math + "Subscript": "\u4e0b\u6a19", + "Superscript": "\u4e0a\u6a19", + + // Full screen + "Fullscreen": "\u5168\u87a2\u5e55", + + // Horizontal line + "Insert Horizontal Line": "\u63d2\u5165\u6c34\u5e73\u7dda", + + // Clear formatting + "Clear Formatting": "\u6e05\u9664\u683c\u5f0f", + + // Undo, redo + "Undo": "\u5fa9\u539f", + "Redo": "\u53d6\u6d88\u5fa9\u539f", + + // Select all + "Select All": "\u5168\u9078", + + // Code view + "Code View": "\u539f\u59cb\u78bc", + + // Quote + "Quote": "\u5f15\u6587", + "Increase": "\u7e2e\u6392", + "Decrease": "\u53bb\u9664\u7e2e\u6392", + + // Quick Insert + "Quick Insert": "\u5feb\u63d2", + + // Spcial Characters + "Special Characters": "特殊字符", + "Latin": "拉丁", + "Greek": "希臘語", + "Cyrillic": "西里爾", + "Punctuation": "標點", + "Currency": "貨幣", + "Arrows": "箭頭", + "Math": "數學", + "Misc": "雜項", + + // Print. + "Print": "打印", + + // Spell Checker. + "Spell Checker": "拼寫檢查器", + + // Help + "Help": "幫幫我", + "Shortcuts": "快捷鍵", + "Inline Editor": "內聯編輯器", + "Show the editor": "顯示編輯", + "Common actions": "共同行動", + "Copy": "複製", + "Cut": "切", + "Paste": "糊", + "Basic Formatting": "基本格式", + "Increase quote level": "提高報價水平", + "Decrease quote level": "降低報價水平", + "Image / Video": "圖像/視頻", + "Resize larger": "調整大小更大", + "Resize smaller": "調整大小更小", + "Table": "表", + "Select table cell": "選擇表單元格", + "Extend selection one cell": "擴展選擇一個單元格", + "Extend selection one row": "擴展選擇一行", + "Navigation": "導航", + "Focus popup / toolbar": "焦點彈出/工具欄", + "Return focus to previous position": "將焦點返回到上一個位置", + + // Embed.ly + "Embed URL": "嵌入網址", + "Paste in a URL to embed": "粘貼在一個網址中嵌入", + + // Word Paste. + "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "粘貼的內容來自微軟Word文檔。你想保留格式還是清理它?", + "Keep": "保持", + "Clean": "清潔", + "Word Paste Detected": "檢測到字貼" + }, + direction: "ltr" +}; + +})); diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/align.min.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/align.min.js new file mode 100644 index 0000000..8651d5c --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/align.min.js @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.FE.PLUGINS.align=function(b){function c(c){var d=b.selection.element();if(a(d).parents(".fr-img-caption").length)a(d).css("text-align",c);else{b.selection.save(),b.html.wrap(!0,!0,!0,!0),b.selection.restore();for(var e=b.selection.blocks(),f=0;f<e.length;f++)b.helpers.getAlignment(a(e[f].parentNode))==c?a(e[f]).css("text-align","").removeClass("fr-temp-div"):a(e[f]).css("text-align",c).removeClass("fr-temp-div"),""===a(e[f]).attr("class")&&a(e[f]).removeAttr("class"),""===a(e[f]).attr("style")&&a(e[f]).removeAttr("style");b.selection.save(),b.html.unwrap(),b.selection.restore()}}function d(c){var d=b.selection.blocks();if(d.length){var e=b.helpers.getAlignment(a(d[0]));c.find("> *:first").replaceWith(b.icon.create("align-"+e))}}function e(c,d){var e=b.selection.blocks();if(e.length){var f=b.helpers.getAlignment(a(e[0]));d.find('a.fr-command[data-param1="'+f+'"]').addClass("fr-active").attr("aria-selected",!0)}}return{apply:c,refresh:d,refreshOnShow:e}},a.FE.DefineIcon("align",{NAME:"align-left"}),a.FE.DefineIcon("align-left",{NAME:"align-left"}),a.FE.DefineIcon("align-right",{NAME:"align-right"}),a.FE.DefineIcon("align-center",{NAME:"align-center"}),a.FE.DefineIcon("align-justify",{NAME:"align-justify"}),a.FE.RegisterCommand("align",{type:"dropdown",title:"Align",options:{left:"Align Left",center:"Align Center",right:"Align Right",justify:"Align Justify"},html:function(){var b='<ul class="fr-dropdown-list" role="presentation">',c=a.FE.COMMANDS.align.options;for(var d in c)c.hasOwnProperty(d)&&(b+='<li role="presentation"><a class="fr-command fr-title" tabIndex="-1" role="option" data-cmd="align" data-param1="'+d+'" title="'+this.language.translate(c[d])+'">'+this.icon.create("align-"+d)+'<span class="fr-sr-only">'+this.language.translate(c[d])+"</span></a></li>");return b+="</ul>"},callback:function(a,b){this.align.apply(b)},refresh:function(a){this.align.refresh(a)},refreshOnShow:function(a,b){this.align.refreshOnShow(a,b)},plugin:"align"})}); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/char_counter.min.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/char_counter.min.js new file mode 100644 index 0000000..9bda73d --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/char_counter.min.js @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.DEFAULTS,{charCounterMax:-1,charCounterCount:!0}),a.FE.PLUGINS.charCounter=function(b){function c(){return(b.el.textContent||"").replace(/\u200B/g,"").length}function d(d){if(b.opts.charCounterMax<0)return!0;if(c()<b.opts.charCounterMax)return!0;var e=d.which;return!b.keys.ctrlKey(d)&&b.keys.isCharacter(e)||e===a.FE.KEYCODE.IME?(d.preventDefault(),d.stopPropagation(),b.events.trigger("charCounter.exceeded"),!1):!0}function e(d){if(b.opts.charCounterMax<0)return d;var e=a("<div>").html(d).text().length;return e+c()<=b.opts.charCounterMax?d:(b.events.trigger("charCounter.exceeded"),"")}function f(){if(b.opts.charCounterCount){var a=c()+(b.opts.charCounterMax>0?"/"+b.opts.charCounterMax:"");h.text(a),b.opts.toolbarBottom&&h.css("margin-bottom",b.$tb.outerHeight(!0));var d=b.$wp.get(0).offsetWidth-b.$wp.get(0).clientWidth;d>=0&&("rtl"==b.opts.direction?h.css("margin-left",d):h.css("margin-right",d))}}function g(){return b.$wp&&b.opts.charCounterCount?(h=a('<span class="fr-counter"></span>'),h.css("bottom",b.$wp.css("border-bottom-width")),b.$box.append(h),b.events.on("keydown",d,!0),b.events.on("paste.afterCleanup",e),b.events.on("keyup contentChanged input",function(){b.events.trigger("charCounter.update")}),b.events.on("charCounter.update",f),b.events.trigger("charCounter.update"),void b.events.on("destroy",function(){a(b.o_win).off("resize.char"+b.id),h.removeData().remove(),h=null})):!1}var h;return{_init:g,count:c}}}); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/code_beautifier.min.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/code_beautifier.min.js new file mode 100644 index 0000000..ce8403d --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/code_beautifier.min.js @@ -0,0 +1,8 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.FE.PLUGINS.codeBeautifier=function(){function a(a,c){function d(a){return a.replace(/^\s+/g,"")}function e(a){return a.replace(/\s+$/g,"")}function g(){return this.pos=0,this.token="",this.current_mode="CONTENT",this.tags={parent:"parent1",parentcount:1,parent1:""},this.tag_type="",this.token_text=this.last_token=this.last_text=this.token_type="",this.newlines=0,this.indent_content=i,this.Utils={whitespace:"\n\r ".split(""),single_token:"br,input,link,meta,source,!doctype,basefont,base,area,hr,wbr,param,img,isindex,embed".split(","),extra_liners:u,in_array:function(a,b){for(var c=0;c<b.length;c++)if(a==b[c])return!0;return!1}},this.is_whitespace=function(a){for(var b=0;b<a.length;a++)if(!this.Utils.in_array(a.charAt(b),this.Utils.whitespace))return!1;return!0},this.traverse_whitespace=function(){var a="";if(a=this.input.charAt(this.pos),this.Utils.in_array(a,this.Utils.whitespace)){for(this.newlines=0;this.Utils.in_array(a,this.Utils.whitespace);)o&&"\n"==a&&this.newlines<=p&&(this.newlines+=1),this.pos++,a=this.input.charAt(this.pos);return!0}return!1},this.space_or_wrap=function(a){this.line_char_count>=this.wrap_line_length?(this.print_newline(!1,a),this.print_indentation(a)):(this.line_char_count++,a.push(" "))},this.get_content=function(){for(var a="",b=[];"<"!=this.input.charAt(this.pos);){if(this.pos>=this.input.length)return b.length?b.join(""):["","TK_EOF"];if(this.traverse_whitespace())this.space_or_wrap(b);else{if(q){var c=this.input.substr(this.pos,3);if("{{#"==c||"{{/"==c)break;if("{{!"==c)return[this.get_tag(),"TK_TAG_HANDLEBARS_COMMENT"];if("{{"==this.input.substr(this.pos,2)&&"{{else}}"==this.get_tag(!0))break}a=this.input.charAt(this.pos),this.pos++,this.line_char_count++,b.push(a)}}return b.length?b.join(""):""},this.get_contents_to=function(a){if(this.pos==this.input.length)return["","TK_EOF"];var b="",c=new RegExp("</"+a+"\\s*>","igm");c.lastIndex=this.pos;var d=c.exec(this.input),e=d?d.index:this.input.length;return this.pos<e&&(b=this.input.substring(this.pos,e),this.pos=e),b},this.record_tag=function(a){this.tags[a+"count"]?(this.tags[a+"count"]++,this.tags[a+this.tags[a+"count"]]=this.indent_level):(this.tags[a+"count"]=1,this.tags[a+this.tags[a+"count"]]=this.indent_level),this.tags[a+this.tags[a+"count"]+"parent"]=this.tags.parent,this.tags.parent=a+this.tags[a+"count"]},this.retrieve_tag=function(a){if(this.tags[a+"count"]){for(var b=this.tags.parent;b&&a+this.tags[a+"count"]!=b;)b=this.tags[b+"parent"];b&&(this.indent_level=this.tags[a+this.tags[a+"count"]],this.tags.parent=this.tags[b+"parent"]),delete this.tags[a+this.tags[a+"count"]+"parent"],delete this.tags[a+this.tags[a+"count"]],1==this.tags[a+"count"]?delete this.tags[a+"count"]:this.tags[a+"count"]--}},this.indent_to_tag=function(a){if(this.tags[a+"count"]){for(var b=this.tags.parent;b&&a+this.tags[a+"count"]!=b;)b=this.tags[b+"parent"];b&&(this.indent_level=this.tags[a+this.tags[a+"count"]])}},this.get_tag=function(a){var b,c,d,e="",f=[],g="",h=!1,i=!0,j=this.pos,l=this.line_char_count;a=void 0!==a?a:!1;do{if(this.pos>=this.input.length)return a&&(this.pos=j,this.line_char_count=l),f.length?f.join(""):["","TK_EOF"];if(e=this.input.charAt(this.pos),this.pos++,this.Utils.in_array(e,this.Utils.whitespace))h=!0;else{if(("'"==e||'"'==e)&&(e+=this.get_unformatted(e),h=!0),"="==e&&(h=!1),f.length&&"="!=f[f.length-1]&&">"!=e&&h){if(this.space_or_wrap(f),h=!1,!i&&"force"==r&&"/"!=e){this.print_newline(!0,f),this.print_indentation(f);for(var m=0;s>m;m++)f.push(k)}for(var o=0;o<f.length;o++)if(" "==f[o]){i=!1;break}}if(q&&"<"==d&&e+this.input.charAt(this.pos)=="{{"&&(e+=this.get_unformatted("}}"),f.length&&" "!=f[f.length-1]&&"<"!=f[f.length-1]&&(e=" "+e),h=!0),"<"!=e||d||(b=this.pos-1,d="<"),q&&!d&&f.length>=2&&"{"==f[f.length-1]&&"{"==f[f.length-2]&&(b="#"==e||"/"==e||"!"==e?this.pos-3:this.pos-2,d="{"),this.line_char_count++,f.push(e),f[1]&&("!"==f[1]||"?"==f[1]||"%"==f[1])){f=[this.get_comment(b)];break}if(q&&f[1]&&"{"==f[1]&&f[2]&&"!"==f[2]){f=[this.get_comment(b)];break}if(q&&"{"==d&&f.length>2&&"}"==f[f.length-2]&&"}"==f[f.length-1])break}}while(">"!=e);var p,t,u=f.join("");p=-1!=u.indexOf(" ")?u.indexOf(" "):"{"==u[0]?u.indexOf("}"):u.indexOf(">"),t="<"!=u[0]&&q?"#"==u[2]?3:2:1;var v=u.substring(t,p).toLowerCase();return"/"==u.charAt(u.length-2)||this.Utils.in_array(v,this.Utils.single_token)?a||(this.tag_type="SINGLE"):q&&"{"==u[0]&&"else"==v?a||(this.indent_to_tag("if"),this.tag_type="HANDLEBARS_ELSE",this.indent_content=!0,this.traverse_whitespace()):this.is_unformatted(v,n)?(g=this.get_unformatted("</"+v+">",u),f.push(g),c=this.pos-1,this.tag_type="SINGLE"):"script"==v&&(-1==u.search("type")||u.search("type")>-1&&u.search(/\b(text|application)\/(x-)?(javascript|ecmascript|jscript|livescript)/)>-1)?a||(this.record_tag(v),this.tag_type="SCRIPT"):"style"==v&&(-1==u.search("type")||u.search("type")>-1&&u.search("text/css")>-1)?a||(this.record_tag(v),this.tag_type="STYLE"):"!"==v.charAt(0)?a||(this.tag_type="SINGLE",this.traverse_whitespace()):a||("/"==v.charAt(0)?(this.retrieve_tag(v.substring(1)),this.tag_type="END"):(this.record_tag(v),"html"!=v.toLowerCase()&&(this.indent_content=!0),this.tag_type="START"),this.traverse_whitespace()&&this.space_or_wrap(f),this.Utils.in_array(v,this.Utils.extra_liners)&&(this.print_newline(!1,this.output),this.output.length&&"\n"!=this.output[this.output.length-2]&&this.print_newline(!0,this.output))),a&&(this.pos=j,this.line_char_count=l),f.join("")},this.get_comment=function(a){var b="",c=">",d=!1;this.pos=a;var e=this.input.charAt(this.pos);for(this.pos++;this.pos<=this.input.length&&(b+=e,b[b.length-1]!=c[c.length-1]||-1==b.indexOf(c));)!d&&b.length<10&&(0===b.indexOf("<![if")?(c="<![endif]>",d=!0):0===b.indexOf("<![cdata[")?(c="]]>",d=!0):0===b.indexOf("<![")?(c="]>",d=!0):0===b.indexOf("<!--")?(c="-->",d=!0):0===b.indexOf("{{!")?(c="}}",d=!0):0===b.indexOf("<?")?(c="?>",d=!0):0===b.indexOf("<%")&&(c="%>",d=!0)),e=this.input.charAt(this.pos),this.pos++;return b},this.get_unformatted=function(a,b){if(b&&-1!=b.toLowerCase().indexOf(a))return"";var c="",d="",e=0,f=!0;do{if(this.pos>=this.input.length)return d;if(c=this.input.charAt(this.pos),this.pos++,this.Utils.in_array(c,this.Utils.whitespace)){if(!f){this.line_char_count--;continue}if("\n"==c||"\r"==c){d+="\n",this.line_char_count=0;continue}}d+=c,this.line_char_count++,f=!0,q&&"{"==c&&d.length&&"{"==d[d.length-2]&&(d+=this.get_unformatted("}}"),e=d.length)}while(-1==d.toLowerCase().indexOf(a,e));return d},this.get_token=function(){var a;if("TK_TAG_SCRIPT"==this.last_token||"TK_TAG_STYLE"==this.last_token){var b=this.last_token.substr(7);return a=this.get_contents_to(b),"string"!=typeof a?a:[a,"TK_"+b]}if("CONTENT"==this.current_mode)return a=this.get_content(),"string"!=typeof a?a:[a,"TK_CONTENT"];if("TAG"==this.current_mode){if(a=this.get_tag(),"string"!=typeof a)return a;var c="TK_TAG_"+this.tag_type;return[a,c]}},this.get_full_indent=function(a){return a=this.indent_level+a||0,1>a?"":new Array(a+1).join(this.indent_string)},this.is_unformatted=function(a,b){if(!this.Utils.in_array(a,b))return!1;if("a"!=a.toLowerCase()||!this.Utils.in_array("a",b))return!0;var c=this.get_tag(!0),d=(c||"").match(/^\s*<\s*\/?([a-z]*)\s*[^>]*>\s*$/);return!d||this.Utils.in_array(d,b)?!0:!1},this.printer=function(a,b,c,f,g){this.input=a||"",this.output=[],this.indent_character=b,this.indent_string="",this.indent_size=c,this.brace_style=g,this.indent_level=0,this.wrap_line_length=f,this.line_char_count=0;for(var h=0;h<this.indent_size;h++)this.indent_string+=this.indent_character;this.print_newline=function(a,b){this.line_char_count=0,b&&b.length&&(a||"\n"!=b[b.length-1])&&("\n"!=b[b.length-1]&&(b[b.length-1]=e(b[b.length-1])),b.push("\n"))},this.print_indentation=function(a){for(var b=0;b<this.indent_level;b++)a.push(this.indent_string),this.line_char_count+=this.indent_string.length},this.print_token=function(a){(!this.is_whitespace(a)||this.output.length)&&((a||""!==a)&&this.output.length&&"\n"==this.output[this.output.length-1]&&(this.print_indentation(this.output),a=d(a)),this.print_token_raw(a))},this.print_token_raw=function(a){this.newlines>0&&(a=e(a)),a&&""!==a&&(a.length>1&&"\n"==a[a.length-1]?(this.output.push(a.slice(0,-1)),this.print_newline(!1,this.output)):this.output.push(a));for(var b=0;b<this.newlines;b++)this.print_newline(b>0,this.output);this.newlines=0},this.indent=function(){this.indent_level++},this.unindent=function(){this.indent_level>0&&this.indent_level--}},this}var h,i,j,k,l,m,n,o,p,q,r,s,t,u;for(c=c||{},void 0!==c.wrap_line_length&&0!==parseInt(c.wrap_line_length,10)||void 0===c.max_char||0===parseInt(c.max_char,10)||(c.wrap_line_length=c.max_char),i=void 0===c.indent_inner_html?!1:c.indent_inner_html,j=void 0===c.indent_size?4:parseInt(c.indent_size,10),k=void 0===c.indent_char?" ":c.indent_char,m=void 0===c.brace_style?"collapse":c.brace_style,l=0===parseInt(c.wrap_line_length,10)?32786:parseInt(c.wrap_line_length||250,10),n=c.unformatted||["a","span","img","bdo","em","strong","dfn","code","samp","kbd","var","cite","abbr","acronym","q","sub","sup","tt","i","b","big","small","u","s","strike","font","ins","del","address","pre"],o=void 0===c.preserve_newlines?!0:c.preserve_newlines,p=o?isNaN(parseInt(c.max_preserve_newlines,10))?32786:parseInt(c.max_preserve_newlines,10):0,q=void 0===c.indent_handlebars?!1:c.indent_handlebars,r=void 0===c.wrap_attributes?"auto":c.wrap_attributes,s=void 0===c.wrap_attributes_indent_size?j:parseInt(c.wrap_attributes_indent_size,10)||j,t=void 0===c.end_with_newline?!1:c.end_with_newline,u=Array.isArray(c.extra_liners)?c.extra_liners.concat():"string"==typeof c.extra_liners?c.extra_liners.split(","):"head,body,/html".split(","),c.indent_with_tabs&&(k=" ",j=1),h=new g,h.printer(a,k,j,l,m);;){var v=h.get_token();if(h.token_text=v[0],h.token_type=v[1],"TK_EOF"==h.token_type)break;switch(h.token_type){case"TK_TAG_START":h.print_newline(!1,h.output),h.print_token(h.token_text),h.indent_content&&(h.indent(),h.indent_content=!1),h.current_mode="CONTENT";break;case"TK_TAG_STYLE":case"TK_TAG_SCRIPT":h.print_newline(!1,h.output),h.print_token(h.token_text),h.current_mode="CONTENT";break;case"TK_TAG_END":if("TK_CONTENT"==h.last_token&&""===h.last_text){var w=h.token_text.match(/\w+/)[0],x=null;h.output.length&&(x=h.output[h.output.length-1].match(/(?:<|{{#)\s*(\w+)/)),(null==x||x[1]!=w&&!h.Utils.in_array(x[1],n))&&h.print_newline(!1,h.output)}h.print_token(h.token_text),h.current_mode="CONTENT";break;case"TK_TAG_SINGLE":var y=h.token_text.match(/^\s*<([a-z-]+)/i);y&&h.Utils.in_array(y[1],n)||h.print_newline(!1,h.output),h.print_token(h.token_text),h.current_mode="CONTENT";break;case"TK_TAG_HANDLEBARS_ELSE":h.print_token(h.token_text),h.indent_content&&(h.indent(),h.indent_content=!1),h.current_mode="CONTENT";break;case"TK_TAG_HANDLEBARS_COMMENT":h.print_token(h.token_text),h.current_mode="TAG";break;case"TK_CONTENT":h.print_token(h.token_text),h.current_mode="TAG";break;case"TK_STYLE":case"TK_SCRIPT":if(""!==h.token_text){h.print_newline(!1,h.output);var z,A=h.token_text,B=1;"TK_SCRIPT"==h.token_type?z="function"==typeof f&&f:"TK_STYLE"==h.token_type&&(z="function"==typeof b&&b),"keep"==c.indent_scripts?B=0:"separate"==c.indent_scripts&&(B=-h.indent_level);var C=h.get_full_indent(B);if(z)A=z(A.replace(/^\s*/,C),c);else{var D=A.match(/^\s*/)[0],E=D.match(/[^\n\r]*$/)[0].split(h.indent_string).length-1,F=h.get_full_indent(B-E);A=A.replace(/^\s*/,C).replace(/\r\n|\r|\n/g,"\n"+F).replace(/\s+$/,"")}A&&(h.print_token_raw(A),h.print_newline(!0,h.output))}h.current_mode="TAG";break;default:""!==h.token_text&&h.print_token(h.token_text)}h.last_token=h.token_type,h.last_text=h.token_text}var G=h.output.join("").replace(/[\r\n\t ]+$/,"");return t&&(G+="\n"),G}function b(a,b){function c(){return v=a.charAt(++x),v||""}function d(b){var d="",e=x;return b&&g(),d=a.charAt(x+1)||"",x=e-1,c(),d}function e(b){for(var d=x;c();)if("\\"===v)c();else{if(-1!==b.indexOf(v))break;if("\n"===v)break}return a.substring(d,x+1)}function f(a){var b=x,d=e(a);return x=b-1,c(),d}function g(){for(var a="";w.test(d());)c(),a+=v;return a}function h(){var a="";for(v&&w.test(v)&&(a=v);w.test(c());)a+=v;return a}function i(b){var e=x;for(b="/"===d(),c();c();){if(!b&&"*"===v&&"/"===d()){c();break}if(b&&"\n"===v)return a.substring(e,x)}return a.substring(e,x)+v}function j(b){return a.substring(x-b.length,x).toLowerCase()===b}function k(){for(var b=0,c=x+1;c<a.length;c++){var d=a.charAt(c);if("{"===d)return!0;if("("===d)b+=1;else if(")"===d){if(0==b)return!1;b-=1}else if(";"===d||"}"===d)return!1}return!1}function l(){B++,z+=A}function m(){B--,z=z.slice(0,-p)}var n={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},o={"@media":!0,"@supports":!0,"@document":!0};b=b||{},a=a||"",a=a.replace(/\r\n|[\r\u2028\u2029]/g,"\n");var p=b.indent_size||4,q=b.indent_char||" ",r=void 0===b.selector_separator_newline?!0:b.selector_separator_newline,s=void 0===b.end_with_newline?!1:b.end_with_newline,t=void 0===b.newline_between_rules?!0:b.newline_between_rules,u=b.eol?b.eol:"\n";"string"==typeof p&&(p=parseInt(p,10)),b.indent_with_tabs&&(q=" ",p=1),u=u.replace(/\\r/,"\r").replace(/\\n/,"\n");var v,w=/^\s+$/,x=-1,y=0,z=a.match(/^[\t ]*/)[0],A=new Array(p+1).join(q),B=0,C=0,D={};D["{"]=function(a){D.singleSpace(),E.push(a),D.newLine()},D["}"]=function(a){D.newLine(),E.push(a),D.newLine()},D._lastCharWhitespace=function(){return w.test(E[E.length-1])},D.newLine=function(a){E.length&&(a||"\n"===E[E.length-1]||D.trim(),E.push("\n"),z&&E.push(z))},D.singleSpace=function(){E.length&&!D._lastCharWhitespace()&&E.push(" ")},D.preserveSingleSpace=function(){L&&D.singleSpace()},D.trim=function(){for(;D._lastCharWhitespace();)E.pop()};for(var E=[],F=!1,G=!1,H=!1,I="",J="";;){var K=h(),L=""!==K,M=-1!==K.indexOf("\n");if(J=I,I=v,!v)break;if("/"===v&&"*"===d()){var N=0===B;(M||N)&&D.newLine(),E.push(i()),D.newLine(),N&&D.newLine(!0)}else if("/"===v&&"/"===d())M||"{"===J||D.trim(),D.singleSpace(),E.push(i()),D.newLine();else if("@"===v){D.preserveSingleSpace(),E.push(v);var O=f(": ,;{}()[]/='\"");O.match(/[ :]$/)&&(c(),O=e(": ").replace(/\s$/,""),E.push(O),D.singleSpace()),O=O.replace(/\s$/,""),O in n&&(C+=1,O in o&&(H=!0))}else"#"===v&&"{"===d()?(D.preserveSingleSpace(),E.push(e("}"))):"{"===v?"}"===d(!0)?(g(),c(),D.singleSpace(),E.push("{}"),D.newLine(),t&&0===B&&D.newLine(!0)):(l(),D["{"](v),H?(H=!1,F=B>C):F=B>=C):"}"===v?(m(),D["}"](v),F=!1,G=!1,C&&C--,t&&0===B&&D.newLine(!0)):":"===v?(g(),!F&&!H||j("&")||k()?":"===d()?(c(),E.push("::")):E.push(":"):(G=!0,E.push(":"),D.singleSpace())):'"'===v||"'"===v?(D.preserveSingleSpace(),E.push(e(v))):";"===v?(G=!1,E.push(v),D.newLine()):"("===v?j("url")?(E.push(v),g(),c()&&(")"!==v&&'"'!==v&&"'"!==v?E.push(e(")")):x--)):(y++,D.preserveSingleSpace(),E.push(v),g()):")"===v?(E.push(v),y--):","===v?(E.push(v),g(),r&&!G&&1>y?D.newLine():D.singleSpace()):"]"===v?E.push(v):"["===v?(D.preserveSingleSpace(),E.push(v)):"="===v?(g(),v="=",E.push(v)):(D.preserveSingleSpace(),E.push(v))}var P="";return z&&(P+=z),P+=E.join("").replace(/[\r\n\t ]+$/,""),s&&(P+="\n"),"\n"!=u&&(P=P.replace(/[\n]/g,u)),P}function c(a,b){for(var c=0;c<b.length;c+=1)if(b[c]===a)return!0;return!1}function d(a){return a.replace(/^\s+|\s+$/g,"")}function e(a){return a.replace(/^\s+/g,"")}function f(a,b){var c=new g(a,b);return c.beautify()}function g(a,b){function f(a,b){var c=0;a&&(c=a.indentation_level,!R.just_added_newline()&&a.line_indent_level>c&&(c=a.line_indent_level));var d={mode:b,parent:a,last_text:a?a.last_text:"",last_word:a?a.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,if_block:!1,else_block:!1,do_block:!1,do_while:!1,in_case_statement:!1,in_case:!1,case_body:!1,indentation_level:c,line_indent_level:a?a.line_indent_level:c,start_line_index:R.get_line_number(),ternary_depth:0};return d}function g(a){var b=a.newlines,c=ba.keep_array_indentation&&t(Y.mode);if(c)for(d=0;b>d;d+=1)n(d>0);else if(ba.max_preserve_newlines&&b>ba.max_preserve_newlines&&(b=ba.max_preserve_newlines),ba.preserve_newlines&&a.newlines>1){n();for(var d=1;b>d;d+=1)n(!0)}U=a,aa[U.type]()}function h(a){a=a.replace(/\x0d/g,"");for(var b=[],c=a.indexOf("\n");-1!==c;)b.push(a.substring(0,c)),a=a.substring(c+1),c=a.indexOf("\n");return a.length&&b.push(a),b}function m(a){if(a=void 0===a?!1:a,!R.just_added_newline())if(ba.preserve_newlines&&U.wanted_newline||a)n(!1,!0);else if(ba.wrap_line_length){var b=R.current_line.get_character_count()+U.text.length+(R.space_before_token?1:0);b>=ba.wrap_line_length&&n(!1,!0)}}function n(a,b){if(!b&&";"!==Y.last_text&&","!==Y.last_text&&"="!==Y.last_text&&"TK_OPERATOR"!==V)for(;Y.mode===l.Statement&&!Y.if_block&&!Y.do_block;)v();R.add_new_line(a)&&(Y.multiline_frame=!0)}function o(){R.just_added_newline()&&(ba.keep_array_indentation&&t(Y.mode)&&U.wanted_newline?(R.current_line.push(U.whitespace_before),R.space_before_token=!1):R.set_indent(Y.indentation_level)&&(Y.line_indent_level=Y.indentation_level))}function p(a){return R.raw?void R.add_raw_token(U):(ba.comma_first&&"TK_COMMA"===V&&R.just_added_newline()&&","===R.previous_line.last()&&(R.previous_line.pop(),o(),R.add_token(","),R.space_before_token=!0),a=a||U.text,o(),void R.add_token(a))}function q(){Y.indentation_level+=1}function r(){Y.indentation_level>0&&(!Y.parent||Y.indentation_level>Y.parent.indentation_level)&&(Y.indentation_level-=1)}function s(a){Y?($.push(Y),Z=Y):Z=f(null,a),Y=f(Z,a)}function t(a){return a===l.ArrayLiteral}function u(a){return c(a,[l.Expression,l.ForInitializer,l.Conditional])}function v(){$.length>0&&(Z=Y,Y=$.pop(),Z.mode===l.Statement&&R.remove_redundant_indentation(Z))}function w(){return Y.parent.mode===l.ObjectLiteral&&Y.mode===l.Statement&&(":"===Y.last_text&&0===Y.ternary_depth||"TK_RESERVED"===V&&c(Y.last_text,["get","set"]))}function x(){return"TK_RESERVED"===V&&c(Y.last_text,["var","let","const"])&&"TK_WORD"===U.type||"TK_RESERVED"===V&&"do"===Y.last_text||"TK_RESERVED"===V&&"return"===Y.last_text&&!U.wanted_newline||"TK_RESERVED"===V&&"else"===Y.last_text&&("TK_RESERVED"!==U.type||"if"!==U.text)||"TK_END_EXPR"===V&&(Z.mode===l.ForInitializer||Z.mode===l.Conditional)||"TK_WORD"===V&&Y.mode===l.BlockStatement&&!Y.in_case&&"--"!==U.text&&"++"!==U.text&&"function"!==W&&"TK_WORD"!==U.type&&"TK_RESERVED"!==U.type||Y.mode===l.ObjectLiteral&&(":"===Y.last_text&&0===Y.ternary_depth||"TK_RESERVED"===V&&c(Y.last_text,["get","set"]))?(s(l.Statement),q(),"TK_RESERVED"===V&&c(Y.last_text,["var","let","const"])&&"TK_WORD"===U.type&&(Y.declaration_statement=!0),w()||m("TK_RESERVED"===U.type&&c(U.text,["do","for","if","while"])),!0):!1}function y(a,b){for(var c=0;c<a.length;c++){var e=d(a[c]);if(e.charAt(0)!==b)return!1}return!0}function z(a,b){for(var c,d=0,e=a.length;e>d;d++)if(c=a[d],c&&0!==c.indexOf(b))return!1;return!0}function A(a){return c(a,["case","return","do","if","throw","else"])}function B(a){var b=S+(a||0);return 0>b||b>=ca.length?null:ca[b]}function C(){x();var a=l.Expression;if("["===U.text){if("TK_WORD"===V||")"===Y.last_text)return"TK_RESERVED"===V&&c(Y.last_text,T.line_starters)&&(R.space_before_token=!0),s(a),p(),q(),void(ba.space_in_paren&&(R.space_before_token=!0));a=l.ArrayLiteral,t(Y.mode)&&("["===Y.last_text||","===Y.last_text&&("]"===W||"}"===W))&&(ba.keep_array_indentation||n())}else"TK_RESERVED"===V&&"for"===Y.last_text?a=l.ForInitializer:"TK_RESERVED"===V&&c(Y.last_text,["if","while"])&&(a=l.Conditional);";"===Y.last_text||"TK_START_BLOCK"===V?n():"TK_END_EXPR"===V||"TK_START_EXPR"===V||"TK_END_BLOCK"===V||"."===Y.last_text?m(U.wanted_newline):"TK_RESERVED"===V&&"("===U.text||"TK_WORD"===V||"TK_OPERATOR"===V?"TK_RESERVED"===V&&("function"===Y.last_word||"typeof"===Y.last_word)||"*"===Y.last_text&&"function"===W?ba.space_after_anon_function&&(R.space_before_token=!0):"TK_RESERVED"!==V||!c(Y.last_text,T.line_starters)&&"catch"!==Y.last_text||ba.space_before_conditional&&(R.space_before_token=!0):R.space_before_token=!0,"("===U.text&&"TK_RESERVED"===V&&"await"===Y.last_word&&(R.space_before_token=!0),"("===U.text&&("TK_EQUALS"===V||"TK_OPERATOR"===V)&&(w()||m()),s(a),p(),ba.space_in_paren&&(R.space_before_token=!0),q()}function D(){for(;Y.mode===l.Statement;)v();Y.multiline_frame&&m("]"===U.text&&t(Y.mode)&&!ba.keep_array_indentation),ba.space_in_paren&&("TK_START_EXPR"!==V||ba.space_in_empty_paren?R.space_before_token=!0:(R.trim(),R.space_before_token=!1)),"]"===U.text&&ba.keep_array_indentation?(p(),v()):(v(),p()),R.remove_redundant_indentation(Z),Y.do_while&&Z.mode===l.Conditional&&(Z.mode=l.Expression,Y.do_block=!1,Y.do_while=!1)}function E(){var a=B(1),b=B(2);s(b&&(":"===b.text&&c(a.type,["TK_STRING","TK_WORD","TK_RESERVED"])||c(a.text,["get","set"])&&c(b.type,["TK_WORD","TK_RESERVED"]))?c(W,["class","interface"])?l.BlockStatement:l.ObjectLiteral:l.BlockStatement);var d=!a.comments_before.length&&"}"===a.text,e=d&&"function"===Y.last_word&&"TK_END_EXPR"===V;"expand"===ba.brace_style||"none"===ba.brace_style&&U.wanted_newline?"TK_OPERATOR"!==V&&(e||"TK_EQUALS"===V||"TK_RESERVED"===V&&A(Y.last_text)&&"else"!==Y.last_text)?R.space_before_token=!0:n(!1,!0):"TK_OPERATOR"!==V&&"TK_START_EXPR"!==V?"TK_START_BLOCK"===V?n():R.space_before_token=!0:t(Z.mode)&&","===Y.last_text&&("}"===W?R.space_before_token=!0:n()),p(),q()}function F(){for(;Y.mode===l.Statement;)v();var a="TK_START_BLOCK"===V;"expand"===ba.brace_style?a||n():a||(t(Y.mode)&&ba.keep_array_indentation?(ba.keep_array_indentation=!1,n(),ba.keep_array_indentation=!0):n()),v(),p()}function G(){if("TK_RESERVED"===U.type&&Y.mode!==l.ObjectLiteral&&c(U.text,["set","get"])&&(U.type="TK_WORD"),"TK_RESERVED"===U.type&&Y.mode===l.ObjectLiteral){var a=B(1);":"==a.text&&(U.type="TK_WORD")}if(x()||!U.wanted_newline||u(Y.mode)||"TK_OPERATOR"===V&&"--"!==Y.last_text&&"++"!==Y.last_text||"TK_EQUALS"===V||!ba.preserve_newlines&&"TK_RESERVED"===V&&c(Y.last_text,["var","let","const","set","get"])||n(),Y.do_block&&!Y.do_while){if("TK_RESERVED"===U.type&&"while"===U.text)return R.space_before_token=!0,p(),R.space_before_token=!0,void(Y.do_while=!0);n(),Y.do_block=!1}if(Y.if_block)if(Y.else_block||"TK_RESERVED"!==U.type||"else"!==U.text){for(;Y.mode===l.Statement;)v();Y.if_block=!1,Y.else_block=!1}else Y.else_block=!0;if("TK_RESERVED"===U.type&&("case"===U.text||"default"===U.text&&Y.in_case_statement))return n(),(Y.case_body||ba.jslint_happy)&&(r(),Y.case_body=!1),p(),Y.in_case=!0,void(Y.in_case_statement=!0);if("TK_RESERVED"===U.type&&"function"===U.text&&((c(Y.last_text,["}",";"])||R.just_added_newline()&&!c(Y.last_text,["[","{",":","=",","]))&&(R.just_added_blankline()||U.comments_before.length||(n(),n(!0))),"TK_RESERVED"===V||"TK_WORD"===V?"TK_RESERVED"===V&&c(Y.last_text,["get","set","new","return","export","async"])?R.space_before_token=!0:"TK_RESERVED"===V&&"default"===Y.last_text&&"export"===W?R.space_before_token=!0:n():"TK_OPERATOR"===V||"="===Y.last_text?R.space_before_token=!0:(Y.multiline_frame||!u(Y.mode)&&!t(Y.mode))&&n()),("TK_COMMA"===V||"TK_START_EXPR"===V||"TK_EQUALS"===V||"TK_OPERATOR"===V)&&(w()||m()),"TK_RESERVED"===U.type&&c(U.text,["function","get","set"]))return p(),void(Y.last_word=U.text);if(_="NONE","TK_END_BLOCK"===V?"TK_RESERVED"===U.type&&c(U.text,["else","catch","finally"])?"expand"===ba.brace_style||"end-expand"===ba.brace_style||"none"===ba.brace_style&&U.wanted_newline?_="NEWLINE":(_="SPACE",R.space_before_token=!0):_="NEWLINE":"TK_SEMICOLON"===V&&Y.mode===l.BlockStatement?_="NEWLINE":"TK_SEMICOLON"===V&&u(Y.mode)?_="SPACE":"TK_STRING"===V?_="NEWLINE":"TK_RESERVED"===V||"TK_WORD"===V||"*"===Y.last_text&&"function"===W?_="SPACE":"TK_START_BLOCK"===V?_="NEWLINE":"TK_END_EXPR"===V&&(R.space_before_token=!0,_="NEWLINE"),"TK_RESERVED"===U.type&&c(U.text,T.line_starters)&&")"!==Y.last_text&&(_="else"===Y.last_text||"export"===Y.last_text?"SPACE":"NEWLINE"),"TK_RESERVED"===U.type&&c(U.text,["else","catch","finally"]))if("TK_END_BLOCK"!==V||"expand"===ba.brace_style||"end-expand"===ba.brace_style||"none"===ba.brace_style&&U.wanted_newline)n();else{R.trim(!0);var b=R.current_line;"}"!==b.last()&&n(),R.space_before_token=!0}else"NEWLINE"===_?"TK_RESERVED"===V&&A(Y.last_text)?R.space_before_token=!0:"TK_END_EXPR"!==V?"TK_START_EXPR"===V&&"TK_RESERVED"===U.type&&c(U.text,["var","let","const"])||":"===Y.last_text||("TK_RESERVED"===U.type&&"if"===U.text&&"else"===Y.last_text?R.space_before_token=!0:n()):"TK_RESERVED"===U.type&&c(U.text,T.line_starters)&&")"!==Y.last_text&&n():Y.multiline_frame&&t(Y.mode)&&","===Y.last_text&&"}"===W?n():"SPACE"===_&&(R.space_before_token=!0);p(),Y.last_word=U.text,"TK_RESERVED"===U.type&&"do"===U.text&&(Y.do_block=!0),"TK_RESERVED"===U.type&&"if"===U.text&&(Y.if_block=!0)}function H(){for(x()&&(R.space_before_token=!1);Y.mode===l.Statement&&!Y.if_block&&!Y.do_block;)v();p()}function I(){x()?R.space_before_token=!0:"TK_RESERVED"===V||"TK_WORD"===V?R.space_before_token=!0:"TK_COMMA"===V||"TK_START_EXPR"===V||"TK_EQUALS"===V||"TK_OPERATOR"===V?w()||m():n(),p()}function J(){x(),Y.declaration_statement&&(Y.declaration_assignment=!0),R.space_before_token=!0,p(),R.space_before_token=!0}function K(){return Y.declaration_statement?(u(Y.parent.mode)&&(Y.declaration_assignment=!1),p(),void(Y.declaration_assignment?(Y.declaration_assignment=!1,n(!1,!0)):(R.space_before_token=!0,ba.comma_first&&m()))):(p(),void(Y.mode===l.ObjectLiteral||Y.mode===l.Statement&&Y.parent.mode===l.ObjectLiteral?(Y.mode===l.Statement&&v(),n()):(R.space_before_token=!0,ba.comma_first&&m())))}function L(){if(x(),"TK_RESERVED"===V&&A(Y.last_text))return R.space_before_token=!0,void p();if("*"===U.text&&"TK_DOT"===V)return void p();if(":"===U.text&&Y.in_case)return Y.case_body=!0,q(),p(),n(),void(Y.in_case=!1);if("::"===U.text)return void p();"TK_OPERATOR"===V&&m();var a=!0,b=!0;c(U.text,["--","++","!","~"])||c(U.text,["-","+"])&&(c(V,["TK_START_BLOCK","TK_START_EXPR","TK_EQUALS","TK_OPERATOR"])||c(Y.last_text,T.line_starters)||","===Y.last_text)?(a=!1,b=!1,!U.wanted_newline||"--"!==U.text&&"++"!==U.text||n(!1,!0),";"===Y.last_text&&u(Y.mode)&&(a=!0),"TK_RESERVED"===V?a=!0:"TK_END_EXPR"===V?a=!("]"===Y.last_text&&("--"===U.text||"++"===U.text)):"TK_OPERATOR"===V&&(a=c(U.text,["--","-","++","+"])&&c(Y.last_text,["--","-","++","+"]),c(U.text,["+","-"])&&c(Y.last_text,["--","++"])&&(b=!0)),Y.mode!==l.BlockStatement&&Y.mode!==l.Statement||"{"!==Y.last_text&&";"!==Y.last_text||n()):":"===U.text?0===Y.ternary_depth?a=!1:Y.ternary_depth-=1:"?"===U.text?Y.ternary_depth+=1:"*"===U.text&&"TK_RESERVED"===V&&"function"===Y.last_text&&(a=!1,b=!1),R.space_before_token=R.space_before_token||a,p(),R.space_before_token=b}function M(){if(R.raw)return R.add_raw_token(U),void(U.directives&&"end"===U.directives.preserve&&(ba.test_output_raw||(R.raw=!1)));if(U.directives)return n(!1,!0),p(),"start"===U.directives.preserve&&(R.raw=!0),void n(!1,!0);if(!k.newline.test(U.text)&&!U.wanted_newline)return R.space_before_token=!0,p(),void(R.space_before_token=!0);var a,b=h(U.text),c=!1,d=!1,f=U.whitespace_before,g=f.length;for(n(!1,!0),b.length>1&&(y(b.slice(1),"*")?c=!0:z(b.slice(1),f)&&(d=!0)),p(b[0]),a=1;a<b.length;a++)n(!1,!0),c?p(" "+e(b[a])):d&&b[a].length>g?p(b[a].substring(g)):R.add_token(b[a]);n(!1,!0)}function N(){U.wanted_newline?n(!1,!0):R.trim(!0),R.space_before_token=!0,p(),n(!1,!0)}function O(){x(),"TK_RESERVED"===V&&A(Y.last_text)?R.space_before_token=!0:m(")"===Y.last_text&&ba.break_chained_methods),p()}function P(){p(),"\n"===U.text[U.text.length-1]&&n()}function Q(){for(;Y.mode===l.Statement;)v()}var R,S,T,U,V,W,X,Y,Z,$,_,aa,ba,ca=[],da="";for(aa={TK_START_EXPR:C,TK_END_EXPR:D,TK_START_BLOCK:E,TK_END_BLOCK:F,TK_WORD:G,TK_RESERVED:G,TK_SEMICOLON:H,TK_STRING:I,TK_EQUALS:J,TK_OPERATOR:L,TK_COMMA:K,TK_BLOCK_COMMENT:M,TK_COMMENT:N,TK_DOT:O,TK_UNKNOWN:P,TK_EOF:Q},b=b?b:{},ba={},void 0!==b.braces_on_own_line&&(ba.brace_style=b.braces_on_own_line?"expand":"collapse"),ba.brace_style=b.brace_style?b.brace_style:ba.brace_style?ba.brace_style:"collapse","expand-strict"===ba.brace_style&&(ba.brace_style="expand"),ba.indent_size=b.indent_size?parseInt(b.indent_size,10):4,ba.indent_char=b.indent_char?b.indent_char:" ",ba.eol=b.eol?b.eol:"\n",ba.preserve_newlines=void 0===b.preserve_newlines?!0:b.preserve_newlines,ba.break_chained_methods=void 0===b.break_chained_methods?!1:b.break_chained_methods,ba.max_preserve_newlines=void 0===b.max_preserve_newlines?0:parseInt(b.max_preserve_newlines,10),ba.space_in_paren=void 0===b.space_in_paren?!1:b.space_in_paren,ba.space_in_empty_paren=void 0===b.space_in_empty_paren?!1:b.space_in_empty_paren,ba.jslint_happy=void 0===b.jslint_happy?!1:b.jslint_happy,ba.space_after_anon_function=void 0===b.space_after_anon_function?!1:b.space_after_anon_function,ba.keep_array_indentation=void 0===b.keep_array_indentation?!1:b.keep_array_indentation,ba.space_before_conditional=void 0===b.space_before_conditional?!0:b.space_before_conditional,ba.unescape_strings=void 0===b.unescape_strings?!1:b.unescape_strings,ba.wrap_line_length=void 0===b.wrap_line_length?0:parseInt(b.wrap_line_length,10),ba.e4x=void 0===b.e4x?!1:b.e4x,ba.end_with_newline=void 0===b.end_with_newline?!1:b.end_with_newline,ba.comma_first=void 0===b.comma_first?!1:b.comma_first,ba.test_output_raw=void 0===b.test_output_raw?!1:b.test_output_raw,ba.jslint_happy&&(ba.space_after_anon_function=!0),b.indent_with_tabs&&(ba.indent_char=" ",ba.indent_size=1),ba.eol=ba.eol.replace(/\\r/,"\r").replace(/\\n/,"\n"),X="";ba.indent_size>0;)X+=ba.indent_char,ba.indent_size-=1;var ea=0;if(a&&a.length){for(;" "===a.charAt(ea)||" "===a.charAt(ea);)da+=a.charAt(ea),ea+=1;a=a.substring(ea)}V="TK_START_BLOCK",W="",R=new i(X,da),R.raw=ba.test_output_raw,$=[],s(l.BlockStatement),this.beautify=function(){var b,c;for(T=new j(a,ba,X),ca=T.tokenize(),S=0;b=B();){for(var d=0;d<b.comments_before.length;d++)g(b.comments_before[d]);g(b),W=Y.last_text,V=b.type,Y.last_text=b.text,S+=1}return c=R.get_code(),ba.end_with_newline&&(c+="\n"),"\n"!=ba.eol&&(c=c.replace(/[\n]/g,ba.eol)),c}}function h(a){var b=0,c=-1,d=[],e=!0;this.set_indent=function(d){b=a.baseIndentLength+d*a.indent_length,c=d},this.get_character_count=function(){return b},this.is_empty=function(){return e},this.last=function(){return this._empty?null:d[d.length-1]},this.push=function(a){d.push(a),b+=a.length,e=!1},this.pop=function(){var a=null;return e||(a=d.pop(),b-=a.length,e=0===d.length),a},this.remove_indent=function(){c>0&&(c-=1,b-=a.indent_length)},this.trim=function(){for(;" "===this.last();){d.pop();b-=1}e=0===d.length},this.toString=function(){var b="";return this._empty||(c>=0&&(b=a.indent_cache[c]),b+=d.join("")),b}}function i(a,b){b=b||"",this.indent_cache=[b],this.baseIndentLength=b.length,this.indent_length=a.length,this.raw=!1;var c=[];this.baseIndentString=b,this.indent_string=a,this.previous_line=null,this.current_line=null,this.space_before_token=!1,this.add_outputline=function(){this.previous_line=this.current_line,this.current_line=new h(this),c.push(this.current_line)},this.add_outputline(),this.get_line_number=function(){return c.length},this.add_new_line=function(a){return 1===this.get_line_number()&&this.just_added_newline()?!1:a||!this.just_added_newline()?(this.raw||this.add_outputline(),!0):!1},this.get_code=function(){var a=c.join("\n").replace(/[\r\n\t ]+$/,"");return a},this.set_indent=function(a){if(c.length>1){for(;a>=this.indent_cache.length;)this.indent_cache.push(this.indent_cache[this.indent_cache.length-1]+this.indent_string);return this.current_line.set_indent(a),!0}return this.current_line.set_indent(0),!1},this.add_raw_token=function(a){for(var b=0;b<a.newlines;b++)this.add_outputline();this.current_line.push(a.whitespace_before), +this.current_line.push(a.text),this.space_before_token=!1},this.add_token=function(a){this.add_space_before_token(),this.current_line.push(a)},this.add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&this.current_line.push(" "),this.space_before_token=!1},this.remove_redundant_indentation=function(a){if(!a.multiline_frame&&a.mode!==l.ForInitializer&&a.mode!==l.Conditional)for(var b=a.start_line_index,d=c.length;d>b;)c[b].remove_indent(),b++},this.trim=function(d){for(d=void 0===d?!1:d,this.current_line.trim(a,b);d&&c.length>1&&this.current_line.is_empty();)c.pop(),this.current_line=c[c.length-1],this.current_line.trim();this.previous_line=c.length>1?c[c.length-2]:null},this.just_added_newline=function(){return this.current_line.is_empty()},this.just_added_blankline=function(){if(this.just_added_newline()){if(1===c.length)return!0;var a=c[c.length-2];return a.is_empty()}return!1}}function j(a,b,e){function f(a){if(!a.match(y))return null;var b={};z.lastIndex=0;for(var c=z.exec(a);c;)b[c[1]]=c[2],c=z.exec(a);return b}function g(){var e,g=[];if(p=0,q="",t>=u)return["","TK_EOF"];var y;y=s.length?s[s.length-1]:new m("TK_START_BLOCK","{");var z=a.charAt(t);for(t+=1;c(z,i);){if(k.newline.test(z)?("\n"!==z||"\r"!==a.charAt(t-2))&&(p+=1,g=[]):g.push(z),t>=u)return["","TK_EOF"];z=a.charAt(t),t+=1}if(g.length&&(q=g.join("")),j.test(z)){var C=!0,D=!0,E=j;for("0"===z&&u>t&&/[Xxo]/.test(a.charAt(t))?(C=!1,D=!1,z+=a.charAt(t),t+=1,E=/[o]/.test(a.charAt(t))?l:n):(z="",t-=1);u>t&&E.test(a.charAt(t));)z+=a.charAt(t),t+=1,C&&u>t&&"."===a.charAt(t)&&(z+=a.charAt(t),t+=1,C=!1),D&&u>t&&/[Ee]/.test(a.charAt(t))&&(z+=a.charAt(t),t+=1,u>t&&/[+-]/.test(a.charAt(t))&&(z+=a.charAt(t),t+=1),D=!1,C=!1);return[z,"TK_WORD"]}if(k.isIdentifierStart(a.charCodeAt(t-1))){if(u>t)for(;k.isIdentifierChar(a.charCodeAt(t))&&(z+=a.charAt(t),t+=1,t!==u););return"TK_DOT"===y.type||"TK_RESERVED"===y.type&&c(y.text,["set","get"])||!c(z,v)?[z,"TK_WORD"]:"in"===z?[z,"TK_OPERATOR"]:[z,"TK_RESERVED"]}if("("===z||"["===z)return[z,"TK_START_EXPR"];if(")"===z||"]"===z)return[z,"TK_END_EXPR"];if("{"===z)return[z,"TK_START_BLOCK"];if("}"===z)return[z,"TK_END_BLOCK"];if(";"===z)return[z,"TK_SEMICOLON"];if("/"===z){var F="";if("*"===a.charAt(t)){t+=1,w.lastIndex=t;var G=w.exec(a);F="/*"+G[0],t+=G[0].length;var H=f(F);return H&&"start"===H.ignore&&(A.lastIndex=t,G=A.exec(a),F+=G[0],t+=G[0].length),F=F.replace(k.lineBreak,"\n"),[F,"TK_BLOCK_COMMENT",H]}if("/"===a.charAt(t)){t+=1,x.lastIndex=t;var G=x.exec(a);return F="//"+G[0],t+=G[0].length,[F,"TK_COMMENT"]}}if("`"===z||"'"===z||'"'===z||("/"===z||b.e4x&&"<"===z&&a.slice(t-1).match(/^<([-a-zA-Z:0-9_.]+|{[^{}]*}|!\[CDATA\[[\s\S]*?\]\])(\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{.*?}))*\s*(\/?)\s*>/))&&("TK_RESERVED"===y.type&&c(y.text,["return","case","throw","else","do","typeof","yield"])||"TK_END_EXPR"===y.type&&")"===y.text&&y.parent&&"TK_RESERVED"===y.parent.type&&c(y.parent.text,["if","while","for"])||c(y.type,["TK_COMMENT","TK_START_EXPR","TK_START_BLOCK","TK_END_BLOCK","TK_OPERATOR","TK_EQUALS","TK_EOF","TK_SEMICOLON","TK_COMMA"]))){var I=z,J=!1,K=!1;if(e=z,"/"===I)for(var L=!1;u>t&&(J||L||a.charAt(t)!==I)&&!k.newline.test(a.charAt(t));)e+=a.charAt(t),J?J=!1:(J="\\"===a.charAt(t),"["===a.charAt(t)?L=!0:"]"===a.charAt(t)&&(L=!1)),t+=1;else if(b.e4x&&"<"===I){var M=/<(\/?)([-a-zA-Z:0-9_.]+|{[^{}]*}|!\[CDATA\[[\s\S]*?\]\])(\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{.*?}))*\s*(\/?)\s*>/g,N=a.slice(t-1),O=M.exec(N);if(O&&0===O.index){for(var P=O[2],Q=0;O;){var R=!!O[1],S=O[2],T=!!O[O.length-1]||"![CDATA["===S.slice(0,8);if(S!==P||T||(R?--Q:++Q),0>=Q)break;O=M.exec(N)}var U=O?O.index+O[0].length:N.length;return N=N.slice(0,U),t+=U-1,N=N.replace(k.lineBreak,"\n"),[N,"TK_STRING"]}}else for(;u>t&&(J||a.charAt(t)!==I&&("`"===I||!k.newline.test(a.charAt(t))));)(J||"`"===I)&&k.newline.test(a.charAt(t))?("\r"===a.charAt(t)&&"\n"===a.charAt(t+1)&&(t+=1),e+="\n"):e+=a.charAt(t),J?(("x"===a.charAt(t)||"u"===a.charAt(t))&&(K=!0),J=!1):J="\\"===a.charAt(t),t+=1;if(K&&b.unescape_strings&&(e=h(e)),u>t&&a.charAt(t)===I&&(e+=I,t+=1,"/"===I))for(;u>t&&k.isIdentifierStart(a.charCodeAt(t));)e+=a.charAt(t),t+=1;return[e,"TK_STRING"]}if("#"===z){if(0===s.length&&"!"===a.charAt(t)){for(e=z;u>t&&"\n"!==z;)z=a.charAt(t),e+=z,t+=1;return[d(e)+"\n","TK_UNKNOWN"]}var V="#";if(u>t&&j.test(a.charAt(t))){do z=a.charAt(t),V+=z,t+=1;while(u>t&&"#"!==z&&"="!==z);return"#"===z||("["===a.charAt(t)&&"]"===a.charAt(t+1)?(V+="[]",t+=2):"{"===a.charAt(t)&&"}"===a.charAt(t+1)&&(V+="{}",t+=2)),[V,"TK_WORD"]}}if("<"===z&&("?"===a.charAt(t)||"%"===a.charAt(t))){B.lastIndex=t-1;var W=B.exec(a);if(W)return z=W[0],t+=z.length-1,z=z.replace(k.lineBreak,"\n"),[z,"TK_STRING"]}if("<"===z&&"<!--"===a.substring(t-1,t+3)){for(t+=3,z="<!--";!k.newline.test(a.charAt(t))&&u>t;)z+=a.charAt(t),t++;return r=!0,[z,"TK_COMMENT"]}if("-"===z&&r&&"-->"===a.substring(t-1,t+2))return r=!1,t+=2,["-->","TK_COMMENT"];if("."===z)return[z,"TK_DOT"];if(c(z,o)){for(;u>t&&c(z+a.charAt(t),o)&&(z+=a.charAt(t),t+=1,!(t>=u)););return","===z?[z,"TK_COMMA"]:"="===z?[z,"TK_EQUALS"]:[z,"TK_OPERATOR"]}return[z,"TK_UNKNOWN"]}function h(a){for(var b,c=!1,d="",e=0,f="",g=0;c||e<a.length;)if(b=a.charAt(e),e++,c){if(c=!1,"x"===b)f=a.substr(e,2),e+=2;else{if("u"!==b){d+="\\"+b;continue}f=a.substr(e,4),e+=4}if(!f.match(/^[0123456789abcdefABCDEF]+$/))return a;if(g=parseInt(f,16),g>=0&&32>g){d+="x"===b?"\\x"+f:"\\u"+f;continue}if(34===g||39===g||92===g)d+="\\"+String.fromCharCode(g);else{if("x"===b&&g>126&&255>=g)return a;d+=String.fromCharCode(g)}}else"\\"===b?c=!0:d+=b;return d}var i="\n\r ".split(""),j=/[0-9]/,l=/[01234567]/,n=/[0123456789abcdefABCDEF]/,o="+ - * / % & ++ -- = += -= *= /= %= == === != !== > < >= <= >> << >>> >>>= >>= <<= && &= | || ! ~ , : ? ^ ^= |= :: =>".split(" ");this.line_starters="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(",");var p,q,r,s,t,u,v=this.line_starters.concat(["do","in","else","get","set","new","catch","finally","typeof","yield","async","await"]),w=/([\s\S]*?)((?:\*\/)|$)/g,x=/([^\n\r\u2028\u2029]*)/g,y=/\/\* beautify( \w+[:]\w+)+ \*\//g,z=/ (\w+)[:](\w+)/g,A=/([\s\S]*?)((?:\/\*\sbeautify\signore:end\s\*\/)|$)/g,B=/((<\?php|<\?=)[\s\S]*?\?>)|(<%[\s\S]*?%>)/g;this.tokenize=function(){u=a.length,t=0,r=!1,s=[];for(var b,c,d,e=null,f=[],h=[];!c||"TK_EOF"!==c.type;){for(d=g(),b=new m(d[1],d[0],p,q);"TK_COMMENT"===b.type||"TK_BLOCK_COMMENT"===b.type||"TK_UNKNOWN"===b.type;)"TK_BLOCK_COMMENT"===b.type&&(b.directives=d[2]),h.push(b),d=g(),b=new m(d[1],d[0],p,q);h.length&&(b.comments_before=h,h=[]),"TK_START_BLOCK"===b.type||"TK_START_EXPR"===b.type?(b.parent=c,f.push(e),e=b):("TK_END_BLOCK"===b.type||"TK_END_EXPR"===b.type)&&e&&("]"===b.text&&"["===e.text||")"===b.text&&"("===e.text||"}"===b.text&&"{"===e.text)&&(b.parent=e.parent,e=f.pop()),s.push(b),c=b}return s}}var k={};!function(a){var b="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0\u08a2-\u08ac\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097f\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c33\u0c35-\u0c39\u0c3d\u0c58\u0c59\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d60\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f0\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191c\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19c1-\u19c7\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fcc\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua697\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua78e\ua790-\ua793\ua7a0-\ua7aa\ua7f8-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa80-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uabc0-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc",c="\u0300-\u036f\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u0620-\u0649\u0672-\u06d3\u06e7-\u06e8\u06fb-\u06fc\u0730-\u074a\u0800-\u0814\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0840-\u0857\u08e4-\u08fe\u0900-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962-\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09d7\u09df-\u09e0\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2-\u0ae3\u0ae6-\u0aef\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b5f-\u0b60\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c01-\u0c03\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62-\u0c63\u0c66-\u0c6f\u0c82\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2-\u0ce3\u0ce6-\u0cef\u0d02\u0d03\u0d46-\u0d48\u0d57\u0d62-\u0d63\u0d66-\u0d6f\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e34-\u0e3a\u0e40-\u0e45\u0e50-\u0e59\u0eb4-\u0eb9\u0ec8-\u0ecd\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f41-\u0f47\u0f71-\u0f84\u0f86-\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u1000-\u1029\u1040-\u1049\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u170e-\u1710\u1720-\u1730\u1740-\u1750\u1772\u1773\u1780-\u17b2\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u1920-\u192b\u1930-\u193b\u1951-\u196d\u19b0-\u19c0\u19c8-\u19c9\u19d0-\u19d9\u1a00-\u1a15\u1a20-\u1a53\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1b46-\u1b4b\u1b50-\u1b59\u1b6b-\u1b73\u1bb0-\u1bb9\u1be6-\u1bf3\u1c00-\u1c22\u1c40-\u1c49\u1c5b-\u1c7d\u1cd0-\u1cd2\u1d00-\u1dbe\u1e01-\u1f15\u200c\u200d\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2d81-\u2d96\u2de0-\u2dff\u3021-\u3028\u3099\u309a\ua640-\ua66d\ua674-\ua67d\ua69f\ua6f0-\ua6f1\ua7f8-\ua800\ua806\ua80b\ua823-\ua827\ua880-\ua881\ua8b4-\ua8c4\ua8d0-\ua8d9\ua8f3-\ua8f7\ua900-\ua909\ua926-\ua92d\ua930-\ua945\ua980-\ua983\ua9b3-\ua9c0\uaa00-\uaa27\uaa40-\uaa41\uaa4c-\uaa4d\uaa50-\uaa59\uaa7b\uaae0-\uaae9\uaaf2-\uaaf3\uabc0-\uabe1\uabec\uabed\uabf0-\uabf9\ufb20-\ufb28\ufe00-\ufe0f\ufe20-\ufe26\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f",d=new RegExp("["+b+"]"),e=new RegExp("["+b+c+"]");a.newline=/[\n\r\u2028\u2029]/,a.lineBreak=new RegExp("\r\n|"+a.newline.source),a.allLineBreaks=new RegExp(a.lineBreak.source,"g"),a.isIdentifierStart=function(a){return 65>a?36===a||64===a:91>a?!0:97>a?95===a:123>a?!0:a>=170&&d.test(String.fromCharCode(a))},a.isIdentifierChar=function(a){return 48>a?36===a:58>a?!0:65>a?!1:91>a?!0:97>a?95===a:123>a?!0:a>=170&&e.test(String.fromCharCode(a))}}(k);var l={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"},m=function(a,b,c,d,e,f){this.type=a,this.text=b,this.comments_before=[],this.newlines=c||0,this.wanted_newline=c>0,this.whitespace_before=d||"",this.parent=null,this.directives=null};return{run:a}}}); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/code_view.min.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/code_view.min.js new file mode 100644 index 0000000..ff3c064 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/code_view.min.js @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.DEFAULTS,{codeMirror:window.CodeMirror,codeMirrorOptions:{lineNumbers:!0,tabMode:"indent",indentWithTabs:!0,lineWrapping:!0,mode:"text/html",tabSize:2},codeBeautifierOptions:{end_with_newline:!0,indent_inner_html:!0,extra_liners:["p","h1","h2","h3","h4","h5","h6","blockquote","pre","ul","ol","table","dl"],brace_style:"expand",indent_char:" ",indent_size:1,wrap_line_length:0},codeViewKeepActiveButtons:["fullscreen"]}),a.FE.PLUGINS.codeView=function(b){function c(){return b.$box.hasClass("fr-code-view")}function d(){return m?m.getValue():l.val()}function e(){c()&&(m.setSize(null,b.opts.height?b.opts.height:"auto"),b.opts.heightMin||b.opts.height?b.$box.find(".CodeMirror-scroll, .CodeMirror-gutters").css("min-height",b.opts.heightMin||b.opts.height):b.$box.find(".CodeMirror-scroll, .CodeMirror-gutters").css("min-height",""))}function f(a){var c=d();b.html.set(c),b.$el.blur(),b.$tb.find(" > .fr-command").not(a).removeClass("fr-disabled").attr("aria-disabled",!1),a.removeClass("fr-active").attr("aria-pressed",!1),b.selection.setAtStart(b.el),b.selection.restore(),b.placeholder.refresh(),b.undo.saveStep()}function g(c){l||(j(),!m&&b.opts.codeMirror?m=b.opts.codeMirror.fromTextArea(l.get(0),b.opts.codeMirrorOptions):b.events.$on(l,"keydown keyup change input",function(){b.opts.height?this.removeAttribute("rows"):(this.rows=1,0===this.value.length?this.style.height="auto":this.style.height=this.scrollHeight+"px")})),b.undo.saveStep(),b.html.cleanEmptyTags(),b.html.cleanWhiteTags(!0),b.core.hasFocus()&&(b.core.isEmpty()||(b.selection.save(),b.$el.find('.fr-marker[data-type="true"]:first').replaceWith('<span class="fr-tmp fr-sm">F</span>'),b.$el.find('.fr-marker[data-type="false"]:last').replaceWith('<span class="fr-tmp fr-em">F</span>')));var d=b.html.get(!1,!0);b.$el.find("span.fr-tmp").remove(),b.$box.toggleClass("fr-code-view",!0),b.core.hasFocus()&&b.$el.blur(),d=d.replace(/<span class="fr-tmp fr-sm">F<\/span>/,"FROALA-SM"),d=d.replace(/<span class="fr-tmp fr-em">F<\/span>/,"FROALA-EM"),b.codeBeautifier&&(d=b.codeBeautifier.run(d,b.opts.codeBeautifierOptions));var e,f;if(m){e=d.indexOf("FROALA-SM"),f=d.indexOf("FROALA-EM"),e>f?e=f:f-=9,d=d.replace(/FROALA-SM/g,"").replace(/FROALA-EM/g,"");var g=d.substring(0,e).length-d.substring(0,e).replace(/\n/g,"").length,h=d.substring(0,f).length-d.substring(0,f).replace(/\n/g,"").length;e=d.substring(0,e).length-d.substring(0,d.substring(0,e).lastIndexOf("\n")+1).length,f=d.substring(0,f).length-d.substring(0,d.substring(0,f).lastIndexOf("\n")+1).length,m.setSize(null,b.opts.height?b.opts.height:"auto"),b.opts.heightMin&&b.$box.find(".CodeMirror-scroll").css("min-height",b.opts.heightMin),m.setValue(d),m.focus(),m.setSelection({line:g,ch:e},{line:h,ch:f}),m.refresh(),m.clearHistory()}else{e=d.indexOf("FROALA-SM"),f=d.indexOf("FROALA-EM")-9,b.opts.heightMin&&l.css("min-height",b.opts.heightMin),b.opts.height&&l.css("height",b.opts.height),b.opts.heightMax&&l.css("max-height",b.opts.height||b.opts.heightMax),l.val(d.replace(/FROALA-SM/g,"").replace(/FROALA-EM/g,"")).trigger("change");var i=a(b.o_doc).scrollTop();l.focus(),l.get(0).setSelectionRange(e,f),a(b.o_doc).scrollTop(i)}b.$tb.find(" > .fr-command").not(c).filter(function(){return b.opts.codeViewKeepActiveButtons.indexOf(a(this).data("cmd"))<0}).addClass("fr-disabled").attr("aria-disabled",!0),c.addClass("fr-active").attr("aria-pressed",!0),!b.helpers.isMobile()&&b.opts.toolbarInline&&b.toolbar.hide()}function h(a){"undefined"==typeof a&&(a=!c());var d=b.$tb.find('.fr-command[data-cmd="html"]');a?(b.popups.hideAll(),g(d)):(b.$box.toggleClass("fr-code-view",!1),f(d))}function i(){c()&&h(!1),m&&m.toTextArea(),l.val("").removeData().remove(),l=null,n&&(n.remove(),n=null)}function j(){l=a('<textarea class="fr-code" tabIndex="-1">'),b.$wp.append(l),l.attr("dir",b.opts.direction),b.$box.hasClass("fr-basic")||(n=a('<a data-cmd="html" title="Code View" class="fr-command fr-btn html-switch'+(b.helpers.isMobile()?"":" fr-desktop")+'" role="button" tabIndex="-1"><i class="fa fa-code"></i></button>'),b.$box.append(n),b.events.bindClick(b.$box,"a.html-switch",function(){h(!1)}));var f=function(){return!c()};b.events.on("buttons.refresh",f),b.events.on("copy",f,!0),b.events.on("cut",f,!0),b.events.on("paste",f,!0),b.events.on("destroy",i,!0),b.events.on("html.set",function(){c()&&h(!0)}),b.events.on("codeView.update",e),b.events.on("form.submit",function(){c()&&(b.html.set(d()),b.events.trigger("contentChanged",[],!0))},!0)}function k(){return b.$wp?void 0:!1}var l,m,n;return{_init:k,toggle:h,isActive:c,get:d}},a.FE.RegisterCommand("html",{title:"Code View",undo:!1,focus:!1,forcedRefresh:!0,toggle:!0,callback:function(){this.codeView.toggle()},plugin:"codeView"}),a.FE.DefineIcon("html",{NAME:"code"})}); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/colors.min.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/colors.min.js new file mode 100644 index 0000000..7d9b7fa --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/colors.min.js @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.POPUP_TEMPLATES,{"colors.picker":"[_BUTTONS_][_TEXT_COLORS_][_BACKGROUND_COLORS_][_CUSTOM_COLOR_]"}),a.extend(a.FE.DEFAULTS,{colorsText:["#61BD6D","#1ABC9C","#54ACD2","#2C82C9","#9365B8","#475577","#CCCCCC","#41A85F","#00A885","#3D8EB9","#2969B0","#553982","#28324E","#000000","#F7DA64","#FBA026","#EB6B56","#E25041","#A38F84","#EFEFEF","#FFFFFF","#FAC51C","#F37934","#D14841","#B8312F","#7C706B","#D1D5D8","REMOVE"],colorsBackground:["#61BD6D","#1ABC9C","#54ACD2","#2C82C9","#9365B8","#475577","#CCCCCC","#41A85F","#00A885","#3D8EB9","#2969B0","#553982","#28324E","#000000","#F7DA64","#FBA026","#EB6B56","#E25041","#A38F84","#EFEFEF","#FFFFFF","#FAC51C","#F37934","#D14841","#B8312F","#7C706B","#D1D5D8","REMOVE"],colorsStep:7,colorsHEXInput:!0,colorsDefaultTab:"text",colorsButtons:["colorsBack","|","-"]}),a.FE.PLUGINS.colors=function(b){function c(){var a=b.$tb.find('.fr-command[data-cmd="color"]'),c=b.popups.get("colors.picker");if(c||(c=e()),!c.hasClass("fr-active"))if(b.popups.setContainer("colors.picker",b.$tb),i(c.find(".fr-selected-tab").attr("data-param1")),a.is(":visible")){var d=a.offset().left+a.outerWidth()/2,f=a.offset().top+(b.opts.toolbarBottom?10:a.outerHeight()-10);b.popups.show("colors.picker",d,f,a.outerHeight())}else b.position.forSelection(c),b.popups.show("colors.picker")}function d(){b.popups.hide("colors.picker")}function e(){var a='<div class="fr-buttons fr-colors-buttons">';b.opts.toolbarInline&&b.opts.colorsButtons.length>0&&(a+=b.button.buildList(b.opts.colorsButtons)),a+=f()+"</div>";var c="";b.opts.colorsHEXInput&&(c='<div class="fr-color-hex-layer fr-active fr-layer" id="fr-color-hex-layer-'+b.id+'"><div class="fr-input-line"><input maxlength="7" id="fr-color-hex-layer-text-'+b.id+'" type="text" placeholder="'+b.language.translate("HEX Color")+'" tabIndex="1" aria-required="true"></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="customColor" tabIndex="2" role="button">'+b.language.translate("OK")+"</button></div></div>");var d={buttons:a,text_colors:g("text"),background_colors:g("background"),custom_color:c},e=b.popups.create("colors.picker",d);return h(e),e}function f(){var a='<div class="fr-colors-tabs fr-group">';return a+='<span class="fr-colors-tab '+("background"==b.opts.colorsDefaultTab?"":"fr-selected-tab ")+'fr-command" tabIndex="-1" role="button" aria-pressed="'+("background"==b.opts.colorsDefaultTab?!1:!0)+'" data-param1="text" data-cmd="colorChangeSet" title="'+b.language.translate("Text")+'">'+b.language.translate("Text")+"</span>",a+='<span class="fr-colors-tab '+("background"==b.opts.colorsDefaultTab?"fr-selected-tab ":"")+'fr-command" tabIndex="-1" role="button" aria-pressed="'+("background"==b.opts.colorsDefaultTab?!0:!1)+'" data-param1="background" data-cmd="colorChangeSet" title="'+b.language.translate("Background")+'">'+b.language.translate("Background")+"</span>",a+"</div>"}function g(a){for(var c="text"==a?b.opts.colorsText:b.opts.colorsBackground,d='<div class="fr-color-set fr-'+a+"-color"+(b.opts.colorsDefaultTab==a||"text"!=b.opts.colorsDefaultTab&&"background"!=b.opts.colorsDefaultTab&&"text"==a?" fr-selected-set":"")+'">',e=0;e<c.length;e++)0!==e&&e%b.opts.colorsStep===0&&(d+="<br>"),d+="REMOVE"!=c[e]?'<span class="fr-command fr-select-color" style="background: '+c[e]+';" tabIndex="-1" aria-selected="false" role="button" data-cmd="'+a+'Color" data-param1="'+c[e]+'"><span class="fr-sr-only">'+b.language.translate("Color")+" "+c[e]+" </span></span>":'<span class="fr-command fr-select-color" data-cmd="'+a+'Color" tabIndex="-1" role="button" data-param1="REMOVE" title="'+b.language.translate("Clear Formatting")+'">'+b.icon.create("remove")+'<span class="fr-sr-only">'+b.language.translate("Clear Formatting")+"</span></span>";return d+"</div>"}function h(c){b.events.on("popup.tab",function(d){var e=a(d.currentTarget);if(!b.popups.isVisible("colors.picker")||!e.is("span"))return!0;var f=d.which,g=!0;if(a.FE.KEYCODE.TAB==f){var h=c.find(".fr-buttons");g=!b.accessibility.focusToolbar(h,d.shiftKey?!0:!1)}else if(a.FE.KEYCODE.ARROW_UP==f||a.FE.KEYCODE.ARROW_DOWN==f||a.FE.KEYCODE.ARROW_LEFT==f||a.FE.KEYCODE.ARROW_RIGHT==f){if(e.is("span.fr-select-color")){var i=e.parent().find("span.fr-select-color"),j=i.index(e),k=b.opts.colorsStep,l=Math.floor(i.length/k),m=j%k,n=Math.floor(j/k),o=n*k+m,p=l*k;a.FE.KEYCODE.ARROW_UP==f?o=((o-k)%p+p)%p:a.FE.KEYCODE.ARROW_DOWN==f?o=(o+k)%p:a.FE.KEYCODE.ARROW_LEFT==f?o=((o-1)%p+p)%p:a.FE.KEYCODE.ARROW_RIGHT==f&&(o=(o+1)%p);var q=a(i.get(o));b.events.disableBlur(),q.focus(),g=!1}}else a.FE.KEYCODE.ENTER==f&&(b.button.exec(e),g=!1);return g===!1&&(d.preventDefault(),d.stopPropagation()),g},!0)}function i(c){var d,e=b.popups.get("colors.picker"),f=a(b.selection.element());d="background"==c?"background-color":"color";var g=e.find(".fr-"+c+"-color .fr-select-color");for(g.find(".fr-selected-color").remove(),g.removeClass("fr-active-item"),g.not('[data-param1="REMOVE"]').attr("aria-selected",!1);f.get(0)!=b.el;){if("transparent"!=f.css(d)&&"rgba(0, 0, 0, 0)"!=f.css(d)){var h=e.find(".fr-"+c+'-color .fr-select-color[data-param1="'+b.helpers.RGBToHex(f.css(d))+'"]');h.append('<span class="fr-selected-color" aria-hidden="true">\uf00c</span>'),h.addClass("fr-active-item").attr("aria-selected",!0);break}f=f.parent()}var i=e.find(".fr-color-hex-layer input");i.length&&i.val(b.helpers.RGBToHex(f.css(d))).trigger("change")}function j(a,c){a.hasClass("fr-selected-tab")||(a.siblings().removeClass("fr-selected-tab").attr("aria-pressed",!1),a.addClass("fr-selected-tab").attr("aria-pressed",!0),a.parents(".fr-popup").find(".fr-color-set").removeClass("fr-selected-set"),a.parents(".fr-popup").find(".fr-color-set.fr-"+c+"-color").addClass("fr-selected-set"),i(c)),b.accessibility.focusPopup(a.parents(".fr-popup"))}function k(a){"REMOVE"!=a?b.format.applyStyle("background-color",b.helpers.HEXtoRGB(a)):b.format.removeStyle("background-color"),d()}function l(a){"REMOVE"!=a?b.format.applyStyle("color",b.helpers.HEXtoRGB(a)):b.format.removeStyle("color"),d()}function m(){b.popups.hide("colors.picker"),b.toolbar.showInline()}function n(){var a=b.popups.get("colors.picker"),c=a.find(".fr-color-hex-layer input");if(c.length){var d=c.val(),e=a.find(".fr-selected-tab").attr("data-param1");"background"==e?k(d):l(d)}}return{showColorsPopup:c,hideColorsPopup:d,changeSet:j,background:k,customColor:n,text:l,back:m}},a.FE.DefineIcon("colors",{NAME:"tint"}),a.FE.RegisterCommand("color",{title:"Colors",undo:!1,focus:!0,refreshOnCallback:!1,popup:!0,callback:function(){this.popups.isVisible("colors.picker")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("colors.picker")):this.colors.showColorsPopup()},plugin:"colors"}),a.FE.RegisterCommand("textColor",{undo:!0,callback:function(a,b){this.colors.text(b)}}),a.FE.RegisterCommand("backgroundColor",{undo:!0,callback:function(a,b){this.colors.background(b)}}),a.FE.RegisterCommand("colorChangeSet",{undo:!1,focus:!1,callback:function(a,b){var c=this.popups.get("colors.picker").find('.fr-command[data-cmd="'+a+'"][data-param1="'+b+'"]');this.colors.changeSet(c,b)}}),a.FE.DefineIcon("colorsBack",{NAME:"arrow-left"}),a.FE.RegisterCommand("colorsBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.colors.back()}}),a.FE.RegisterCommand("customColor",{title:"OK",undo:!0,callback:function(){this.colors.customColor()}}),a.FE.DefineIcon("remove",{NAME:"eraser"})}); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/draggable.min.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/draggable.min.js new file mode 100644 index 0000000..0e8bbe0 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/draggable.min.js @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.DEFAULTS,{dragInline:!0}),a.FE.PLUGINS.draggable=function(b){function c(c){return c.originalEvent&&c.originalEvent.target&&c.originalEvent.target.nodeType==Node.TEXT_NODE?!0:(c.target&&"A"==c.target.tagName&&1==c.target.childNodes.length&&"IMG"==c.target.childNodes[0].tagName&&(c.target=c.target.childNodes[0]),a(c.target).hasClass("fr-draggable")?(b.undo.canDo()||b.undo.saveStep(),b.opts.dragInline?b.$el.attr("contenteditable",!0):b.$el.attr("contenteditable",!1),b.opts.toolbarInline&&b.toolbar.hide(),a(c.target).addClass("fr-dragging"),b.browser.msie||b.browser.edge||b.selection.clear(),void c.originalEvent.dataTransfer.setData("text","Froala")):(c.preventDefault(),!1))}function d(a){return!(a&&("HTML"==a.tagName||"BODY"==a.tagName||b.node.isElement(a)))}function e(a,c,d){b.opts.iframe&&(a+=b.$iframe.offset().top,c+=b.$iframe.offset().left),n.offset().top!=a&&n.css("top",a),n.offset().left!=c&&n.css("left",c),n.width()!=d&&n.css("width",d)}function f(c){var f=b.doc.elementFromPoint(c.originalEvent.pageX-b.win.pageXOffset,c.originalEvent.pageY-b.win.pageYOffset);if(!d(f)){for(var g=0,h=f;!d(h)&&h==f&&c.originalEvent.pageY-b.win.pageYOffset-g>0;)g++,h=b.doc.elementFromPoint(c.originalEvent.pageX-b.win.pageXOffset,c.originalEvent.pageY-b.win.pageYOffset-g);(!d(h)||n&&0===b.$el.find(h).length&&h!=n.get(0))&&(h=null);for(var i=0,j=f;!d(j)&&j==f&&c.originalEvent.pageY-b.win.pageYOffset+i<a(b.doc).height();)i++,j=b.doc.elementFromPoint(c.originalEvent.pageX-b.win.pageXOffset,c.originalEvent.pageY-b.win.pageYOffset+i);(!d(j)||n&&0===b.$el.find(j).length&&j!=n.get(0))&&(j=null),f=null==j&&h?h:j&&null==h?j:j&&h?i>g?h:j:null}if(a(f).hasClass("fr-drag-helper"))return!1;if(f&&!b.node.isBlock(f)&&(f=b.node.blockParent(f)),f&&["TD","TH","TR","THEAD","TBODY"].indexOf(f.tagName)>=0&&(f=a(f).parents("table").get(0)),f&&["LI"].indexOf(f.tagName)>=0&&(f=a(f).parents("UL, OL").get(0)),f&&!a(f).hasClass("fr-drag-helper")){n||(a.FE.$draggable_helper||(a.FE.$draggable_helper=a('<div class="fr-drag-helper"></div>')),n=a.FE.$draggable_helper,b.events.on("shared.destroy",function(){n.html("").removeData().remove(),n=null},!0));var k,l=c.originalEvent.pageY;k=l<a(f).offset().top+a(f).outerHeight()/2?!0:!1;var m=a(f),o=0;k||0!==m.next().length?(k||(m=m.next()),"before"==n.data("fr-position")&&m.is(n.data("fr-tag"))||(m.prev().length>0&&(o=parseFloat(m.prev().css("margin-bottom"))||0),o=Math.max(o,parseFloat(m.css("margin-top"))||0),e(m.offset().top-o/2-b.$box.offset().top,m.offset().left-b.win.pageXOffset-b.$box.offset().left,m.width()),n.data("fr-position","before"))):"after"==n.data("fr-position")&&m.is(n.data("fr-tag"))||(o=parseFloat(m.css("margin-bottom"))||0,e(m.offset().top+a(f).height()+o/2-b.$box.offset().top,m.offset().left-b.win.pageXOffset-b.$box.offset().left,m.width()),n.data("fr-position","after")),n.data("fr-tag",m),n.addClass("fr-visible"),n.appendTo(b.$box)}else n&&b.$box.find(n).length>0&&n.removeClass("fr-visible")}function g(a){a.originalEvent.dataTransfer.dropEffect="move",b.opts.dragInline?j()||!b.browser.msie&&!b.browser.edge||a.preventDefault():(a.preventDefault(),f(a))}function h(a){a.originalEvent.dataTransfer.dropEffect="move",b.opts.dragInline||a.preventDefault()}function i(a){b.$el.attr("contenteditable",!0);var c=b.$el.find(".fr-dragging");n&&n.hasClass("fr-visible")&&b.$box.find(n).length?k(a):c.length&&(a.preventDefault(),a.stopPropagation()),n&&b.$box.find(n).length&&n.removeClass("fr-visible"),c.removeClass("fr-dragging")}function j(){for(var b=null,c=0;c<a.FE.INSTANCES.length;c++)if(b=a.FE.INSTANCES[c].$el.find(".fr-dragging"),b.length)return b.get(0)}function k(c){for(var d,e,f=0;f<a.FE.INSTANCES.length;f++)if(d=a.FE.INSTANCES[f].$el.find(".fr-dragging"),d.length){e=a.FE.INSTANCES[f];break}if(d.length){if(c.preventDefault(),c.stopPropagation(),n&&n.hasClass("fr-visible")&&b.$box.find(n).length)n.data("fr-tag")[n.data("fr-position")]('<span class="fr-marker"></span>'),n.removeClass("fr-visible");else{var g=b.markers.insertAtPoint(c.originalEvent);if(g===!1)return!1}if(d.removeClass("fr-dragging"),d=b.events.chainTrigger("element.beforeDrop",d),d===!1)return!1;var h=d;if(d.parent().is("A")&&1==d.parent().get(0).childNodes.length&&(h=d.parent()),b.core.isEmpty())b.events.focus();else{var i=b.$el.find(".fr-marker");i.replaceWith(a.FE.MARKERS),b.selection.restore()}if(e==b||b.undo.canDo()||b.undo.saveStep(),b.core.isEmpty())b.$el.html(h);else{var j=b.markers.insert();0===h.find(j).length?a(j).replaceWith(h):0===d.find(j).length&&a(j).replaceWith(d),d.after(a.FE.MARKERS),b.selection.restore()}return b.popups.hideAll(),b.selection.save(),b.$el.find(b.html.emptyBlockTagsQuery()).not("TD, TH, LI, .fr-inner").remove(),b.html.wrap(),b.html.fillEmptyBlocks(),b.selection.restore(),b.undo.saveStep(),b.opts.iframe&&b.size.syncIframe(),e!=b&&(e.popups.hideAll(),e.$el.find(e.html.emptyBlockTagsQuery()).not("TD, TH, LI, .fr-inner").remove(),e.html.wrap(),e.html.fillEmptyBlocks(),e.undo.saveStep(),e.events.trigger("element.dropped"),e.opts.iframe&&e.size.syncIframe()),b.events.trigger("element.dropped",[h]),!1}n&&n.removeClass("fr-visible"),b.undo.canDo()||b.undo.saveStep(),setTimeout(function(){b.undo.saveStep()},0)}function l(a){if(a&&"DIV"==a.tagName&&b.node.hasClass(a,"fr-drag-helper"))a.parentNode.removeChild(a);else if(a&&a.nodeType==Node.ELEMENT_NODE)for(var c=a.querySelectorAll("div.fr-drag-helper"),d=0;d<c.length;d++)c[d].parentNode.removeChild(c[d])}function m(){b.opts.enter==a.FE.ENTER_BR&&(b.opts.dragInline=!0),b.events.on("dragstart",c,!0),b.events.on("dragover",g,!0),b.events.on("dragenter",h,!0),b.events.on("document.dragend",i,!0),b.events.on("document.drop",i,!0),b.events.on("drop",k,!0),b.events.on("html.processGet",l)}var n;return{_init:m}}}); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/emoticons.min.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/emoticons.min.js new file mode 100644 index 0000000..6593f75 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/emoticons.min.js @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.POPUP_TEMPLATES,{emoticons:"[_BUTTONS_][_EMOTICONS_]"}),a.extend(a.FE.DEFAULTS,{emoticonsStep:8,emoticonsSet:[{code:"1f600",desc:"Grinning face"},{code:"1f601",desc:"Grinning face with smiling eyes"},{code:"1f602",desc:"Face with tears of joy"},{code:"1f603",desc:"Smiling face with open mouth"},{code:"1f604",desc:"Smiling face with open mouth and smiling eyes"},{code:"1f605",desc:"Smiling face with open mouth and cold sweat"},{code:"1f606",desc:"Smiling face with open mouth and tightly-closed eyes"},{code:"1f607",desc:"Smiling face with halo"},{code:"1f608",desc:"Smiling face with horns"},{code:"1f609",desc:"Winking face"},{code:"1f60a",desc:"Smiling face with smiling eyes"},{code:"1f60b",desc:"Face savoring delicious food"},{code:"1f60c",desc:"Relieved face"},{code:"1f60d",desc:"Smiling face with heart-shaped eyes"},{code:"1f60e",desc:"Smiling face with sunglasses"},{code:"1f60f",desc:"Smirking face"},{code:"1f610",desc:"Neutral face"},{code:"1f611",desc:"Expressionless face"},{code:"1f612",desc:"Unamused face"},{code:"1f613",desc:"Face with cold sweat"},{code:"1f614",desc:"Pensive face"},{code:"1f615",desc:"Confused face"},{code:"1f616",desc:"Confounded face"},{code:"1f617",desc:"Kissing face"},{code:"1f618",desc:"Face throwing a kiss"},{code:"1f619",desc:"Kissing face with smiling eyes"},{code:"1f61a",desc:"Kissing face with closed eyes"},{code:"1f61b",desc:"Face with stuck out tongue"},{code:"1f61c",desc:"Face with stuck out tongue and winking eye"},{code:"1f61d",desc:"Face with stuck out tongue and tightly-closed eyes"},{code:"1f61e",desc:"Disappointed face"},{code:"1f61f",desc:"Worried face"},{code:"1f620",desc:"Angry face"},{code:"1f621",desc:"Pouting face"},{code:"1f622",desc:"Crying face"},{code:"1f623",desc:"Persevering face"},{code:"1f624",desc:"Face with look of triumph"},{code:"1f625",desc:"Disappointed but relieved face"},{code:"1f626",desc:"Frowning face with open mouth"},{code:"1f627",desc:"Anguished face"},{code:"1f628",desc:"Fearful face"},{code:"1f629",desc:"Weary face"},{code:"1f62a",desc:"Sleepy face"},{code:"1f62b",desc:"Tired face"},{code:"1f62c",desc:"Grimacing face"},{code:"1f62d",desc:"Loudly crying face"},{code:"1f62e",desc:"Face with open mouth"},{code:"1f62f",desc:"Hushed face"},{code:"1f630",desc:"Face with open mouth and cold sweat"},{code:"1f631",desc:"Face screaming in fear"},{code:"1f632",desc:"Astonished face"},{code:"1f633",desc:"Flushed face"},{code:"1f634",desc:"Sleeping face"},{code:"1f635",desc:"Dizzy face"},{code:"1f636",desc:"Face without mouth"},{code:"1f637",desc:"Face with medical mask"}],emoticonsButtons:["emoticonsBack","|"],emoticonsUseImage:!0}),a.FE.PLUGINS.emoticons=function(b){function c(){var a=b.$tb.find('.fr-command[data-cmd="emoticons"]'),c=b.popups.get("emoticons");if(c||(c=e()),!c.hasClass("fr-active")){b.popups.refresh("emoticons"),b.popups.setContainer("emoticons",b.$tb);var d=a.offset().left+a.outerWidth()/2,f=a.offset().top+(b.opts.toolbarBottom?10:a.outerHeight()-10);b.popups.show("emoticons",d,f,a.outerHeight())}}function d(){b.popups.hide("emoticons")}function e(){var a="";b.opts.toolbarInline&&b.opts.emoticonsButtons.length>0&&(a='<div class="fr-buttons fr-emoticons-buttons">'+b.button.buildList(b.opts.emoticonsButtons)+"</div>");var c={buttons:a,emoticons:g()},d=b.popups.create("emoticons",c);return b.tooltip.bind(d,".fr-emoticon"),h(d),d}function f(){if(!b.selection.isCollapsed())return!1;var a=b.selection.element(),c=b.selection.endElement();if(a&&b.node.hasClass(a,"fr-emoticon"))return a;if(c&&b.node.hasClass(c,"fr-emoticon"))return c;var d=b.selection.ranges(0),e=d.startContainer;if(e.nodeType==Node.ELEMENT_NODE&&e.childNodes.length>0&&d.startOffset>0){var f=e.childNodes[d.startOffset-1];if(b.node.hasClass(f,"fr-emoticon"))return f}return!1}function g(){for(var a='<div style="text-align: center">',c=0;c<b.opts.emoticonsSet.length;c++)0!==c&&c%b.opts.emoticonsStep===0&&(a+="<br>"),a+='<span class="fr-command fr-emoticon" tabIndex="-1" data-cmd="insertEmoticon" title="'+b.language.translate(b.opts.emoticonsSet[c].desc)+'" role="button" data-param1="'+b.opts.emoticonsSet[c].code+'">'+(b.opts.emoticonsUseImage?'<img src="https://cdnjs.cloudflare.com/ajax/libs/emojione/2.0.1/assets/svg/'+b.opts.emoticonsSet[c].code+'.svg"/>':"&#x"+b.opts.emoticonsSet[c].code+";")+'<span class="fr-sr-only">'+b.language.translate(b.opts.emoticonsSet[c].desc)+" </span></span>";return b.opts.emoticonsUseImage&&(a+='<p style="font-size: 12px; text-align: center; padding: 0 5px;">Emoji free by <a class="fr-link" tabIndex="-1" href="http://emojione.com/" target="_blank" rel="nofollow" role="link" aria-label="Open Emoji One website.">Emoji One</a></p>'),a+="</div>"}function h(c){b.events.on("popup.tab",function(d){var e=a(d.currentTarget);if(!b.popups.isVisible("emoticons")||!e.is("span, a"))return!0;var f,g,h,i=d.which;if(a.FE.KEYCODE.TAB==i){if(e.is("span.fr-emoticon")&&d.shiftKey||e.is("a")&&!d.shiftKey){var j=c.find(".fr-buttons");f=!b.accessibility.focusToolbar(j,d.shiftKey?!0:!1)}if(f!==!1){var k=c.find("span.fr-emoticon:focus:first, span.fr-emoticon:visible:first, a");e.is("span.fr-emoticon")&&(k=k.not("span.fr-emoticon:not(:focus)")),g=k.index(e),g=d.shiftKey?((g-1)%k.length+k.length)%k.length:(g+1)%k.length,h=k.get(g),b.events.disableBlur(),h.focus(),f=!1}}else if(a.FE.KEYCODE.ARROW_UP==i||a.FE.KEYCODE.ARROW_DOWN==i||a.FE.KEYCODE.ARROW_LEFT==i||a.FE.KEYCODE.ARROW_RIGHT==i){if(e.is("span.fr-emoticon")){var l=e.parent().find("span.fr-emoticon");g=l.index(e);var m=b.opts.emoticonsStep,n=Math.floor(l.length/m),o=g%m,p=Math.floor(g/m),q=p*m+o,r=n*m;a.FE.KEYCODE.ARROW_UP==i?q=((q-m)%r+r)%r:a.FE.KEYCODE.ARROW_DOWN==i?q=(q+m)%r:a.FE.KEYCODE.ARROW_LEFT==i?q=((q-1)%r+r)%r:a.FE.KEYCODE.ARROW_RIGHT==i&&(q=(q+1)%r),h=a(l.get(q)),b.events.disableBlur(),h.focus(),f=!1}}else a.FE.KEYCODE.ENTER==i&&(e.is("a")?e[0].click():b.button.exec(e),f=!1);return f===!1&&(d.preventDefault(),d.stopPropagation()),f},!0)}function i(c,d){var e=f(),g=b.selection.ranges(0);e?(0===g.startOffset&&b.selection.element()===e?a(e).before(a.FE.MARKERS+a.FE.INVISIBLE_SPACE):g.startOffset>0&&b.selection.element()===e&&g.commonAncestorContainer.parentNode.classList.contains("fr-emoticon")&&a(e).after(a.FE.INVISIBLE_SPACE+a.FE.MARKERS),b.selection.restore(),b.html.insert('<span class="fr-emoticon fr-deletable'+(d?" fr-emoticon-img":"")+'"'+(d?' style="background: url('+d+');"':"")+">"+(d?" ":c)+"</span> "+a.FE.MARKERS,!0)):b.html.insert('<span class="fr-emoticon fr-deletable'+(d?" fr-emoticon-img":"")+'"'+(d?' style="background: url('+d+');"':"")+">"+(d?" ":c)+"</span> ",!0)}function j(){b.popups.hide("emoticons"),b.toolbar.showInline()}function k(){var c=function(){for(var a=b.el.querySelectorAll(".fr-emoticon:not(.fr-deletable)"),c=0;c<a.length;c++)a[c].className+=" fr-deletable"};c(),b.events.on("html.set",c),b.events.on("keydown",function(c){if(b.keys.isCharacter(c.which)&&b.selection.inEditor()){var d=b.selection.ranges(0),e=f();b.node.hasClass(e,"fr-emoticon-img")&&e&&(0===d.startOffset&&b.selection.element()===e?a(e).before(a.FE.MARKERS+a.FE.INVISIBLE_SPACE):a(e).after(a.FE.INVISIBLE_SPACE+a.FE.MARKERS),b.selection.restore())}}),b.events.on("keyup",function(c){for(var d=b.el.querySelectorAll(".fr-emoticon"),e=0;e<d.length;e++)"undefined"!=typeof d[e].textContent&&0===d[e].textContent.replace(/\u200B/gi,"").length&&a(d[e]).remove();if(!(c.which>=a.FE.KEYCODE.ARROW_LEFT&&c.which<=a.FE.KEYCODE.ARROW_DOWN)){var g=f();b.node.hasClass(g,"fr-emoticon-img")&&(a(g).append(a.FE.MARKERS),b.selection.restore())}})}return{_init:k,insert:i,showEmoticonsPopup:c,hideEmoticonsPopup:d,back:j}},a.FE.DefineIcon("emoticons",{NAME:"smile-o",FA5NAME:"smile"}),a.FE.RegisterCommand("emoticons",{title:"Emoticons",undo:!1,focus:!0,refreshOnCallback:!1,popup:!0,callback:function(){this.popups.isVisible("emoticons")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("emoticons")):this.emoticons.showEmoticonsPopup()},plugin:"emoticons"}),a.FE.RegisterCommand("insertEmoticon",{callback:function(a,b){this.emoticons.insert("&#x"+b+";",this.opts.emoticonsUseImage?"https://cdnjs.cloudflare.com/ajax/libs/emojione/2.0.1/assets/svg/"+b+".svg":null),this.emoticons.hideEmoticonsPopup()}}),a.FE.DefineIcon("emoticonsBack",{NAME:"arrow-left"}),a.FE.RegisterCommand("emoticonsBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.emoticons.back()}})}); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/entities.min.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/entities.min.js new file mode 100644 index 0000000..0c56ca2 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/entities.min.js @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.DEFAULTS,{entities:""'¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿŒœŠšŸƒˆ˜ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρςστυφχψωϑϒϖ   ‌‍‎‏–—‘’‚“”„†‡•…‰′″‹›‾⁄€ℑ℘ℜ™ℵ←↑→↓↔↵⇐⇑⇒⇓⇔∀∂∃∅∇∈∉∋∏∑−∗√∝∞∠∧∨∩∪∫∴∼≅≈≠≡≤≥⊂⊃⊄⊆⊇⊕⊗⊥⋅⌈⌉⌊⌋⟨⟩◊♠♣♥♦"}),a.FE.PLUGINS.entities=function(b){function c(a){var b=a.textContent;if(b.match(g)){for(var c="",d=0;d<b.length;d++)c+=h[b[d]]?h[b[d]]:b[d];a.textContent=c}}function d(a){if(a&&["STYLE","SCRIPT","svg","IFRAME"].indexOf(a.tagName)>=0)return!0;for(var e=b.node.contents(a),f=0;f<e.length;f++)e[f].nodeType==Node.TEXT_NODE?c(e[f]):d(e[f]);a.nodeType==Node.TEXT_NODE&&c(a)}function e(a){if(0===a.length)return"";var c=b.clean.exec(a,d).replace(/\&/g,"&");return c}function f(){b.opts.htmlSimpleAmpersand||(b.opts.entities=b.opts.entities+"&");var c=a("<div>").html(b.opts.entities).text(),d=b.opts.entities.split(";");h={},g="";for(var f=0;f<c.length;f++){var i=c.charAt(f);h[i]=d[f]+";",g+="\\"+i+(f<c.length-1?"|":"")}g=new RegExp("("+g+")","g"),b.events.on("html.get",e,!0)}var g,h;return{_init:f}}}); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/file.min.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/file.min.js new file mode 100644 index 0000000..9f7aea8 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/file.min.js @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.POPUP_TEMPLATES,{"file.insert":"[_BUTTONS_][_UPLOAD_LAYER_][_PROGRESS_BAR_]"}),a.extend(a.FE.DEFAULTS,{fileUpload:!0,fileUploadURL:"https://i.froala.com/upload",fileUploadParam:"file",fileUploadParams:{},fileUploadToS3:!1,fileUploadMethod:"POST",fileMaxSize:10485760,fileAllowedTypes:["*"],fileInsertButtons:["fileBack","|"],fileUseSelectedText:!1}),a.FE.PLUGINS.file=function(b){function c(){var a=b.$tb.find('.fr-command[data-cmd="insertFile"]'),c=b.popups.get("file.insert");if(c||(c=s()),e(),!c.hasClass("fr-active"))if(b.popups.refresh("file.insert"),b.popups.setContainer("file.insert",b.$tb),a.is(":visible")){var d=a.offset().left+a.outerWidth()/2,f=a.offset().top+(b.opts.toolbarBottom?10:a.outerHeight()-10);b.popups.show("file.insert",d,f,a.outerHeight())}else b.position.forSelection(c),b.popups.show("file.insert")}function d(){var a=b.popups.get("file.insert");a||(a=s()),a.find(".fr-layer.fr-active").removeClass("fr-active").addClass("fr-pactive"),a.find(".fr-file-progress-bar-layer").addClass("fr-active"),a.find(".fr-buttons").hide(),f(b.language.translate("Uploading"),0)}function e(a){var c=b.popups.get("file.insert");c&&(c.find(".fr-layer.fr-pactive").addClass("fr-active").removeClass("fr-pactive"),c.find(".fr-file-progress-bar-layer").removeClass("fr-active"),c.find(".fr-buttons").show(),a&&(b.events.focus(),b.popups.hide("file.insert")))}function f(a,c){var d=b.popups.get("file.insert");if(d){var e=d.find(".fr-file-progress-bar-layer");e.find("h3").text(a+(c?" "+c+"%":"")),e.removeClass("fr-error"),c?(e.find("div").removeClass("fr-indeterminate"),e.find("div > span").css("width",c+"%")):e.find("div").addClass("fr-indeterminate")}}function g(a){d();var c=b.popups.get("file.insert"),e=c.find(".fr-file-progress-bar-layer");e.addClass("fr-error");var f=e.find("h3");f.text(a),b.events.disableBlur(),f.focus()}function h(a,c,d){b.edit.on(),b.events.focus(!0),b.selection.restore(),b.opts.fileUseSelectedText&&b.selection.text().length&&(c=b.selection.text()),b.html.insert('<a href="'+a+'" target="_blank" id="fr-inserted-file" class="fr-file">'+c+"</a>");var e=b.$el.find("#fr-inserted-file");e.removeAttr("id"),b.popups.hide("file.insert"),b.undo.saveStep(),x(),b.events.trigger("file.inserted",[e,d])}function i(a){try{if(b.events.trigger("file.uploaded",[a],!0)===!1)return b.edit.on(),!1;var c=JSON.parse(a);return c.link?c:(n(A,a),!1)}catch(d){return n(C,a),!1}}function j(c){try{var d=a(c).find("Location").text(),e=a(c).find("Key").text();return b.events.trigger("file.uploadedToS3",[d,e,c],!0)===!1?(b.edit.on(),!1):d}catch(f){return n(C,c),!1}}function k(a){var c=this.status,d=this.response,e=this.responseXML,f=this.responseText;try{if(b.opts.fileUploadToS3)if(201==c){var g=j(e);g&&h(g,a,d||e)}else n(C,d||e);else if(c>=200&&300>c){var k=i(f);k&&h(k.link,a,d||f)}else n(B,d||f)}catch(l){n(C,d||f)}}function l(){n(C,this.response||this.responseText||this.responseXML)}function m(a){if(a.lengthComputable){var c=a.loaded/a.total*100|0;f(b.language.translate("Uploading"),c)}}function n(a,c){b.edit.on(),g(b.language.translate("Something went wrong. Please try again.")),b.events.trigger("file.error",[{code:a,message:G[a]},c])}function o(){b.edit.on(),e(!0)}function p(a){if("undefined"!=typeof a&&a.length>0){if(b.events.trigger("file.beforeUpload",[a])===!1)return!1;var c=a[0];if(c.size>b.opts.fileMaxSize)return n(D),!1;if(b.opts.fileAllowedTypes.indexOf("*")<0&&b.opts.fileAllowedTypes.indexOf(c.type.replace(/file\//g,""))<0)return n(E),!1;var e;if(b.drag_support.formdata&&(e=b.drag_support.formdata?new FormData:null),e){var f;if(b.opts.fileUploadToS3!==!1){e.append("key",b.opts.fileUploadToS3.keyStart+(new Date).getTime()+"-"+(c.name||"untitled")),e.append("success_action_status","201"),e.append("X-Requested-With","xhr"),e.append("Content-Type",c.type);for(f in b.opts.fileUploadToS3.params)b.opts.fileUploadToS3.params.hasOwnProperty(f)&&e.append(f,b.opts.fileUploadToS3.params[f])}for(f in b.opts.fileUploadParams)b.opts.fileUploadParams.hasOwnProperty(f)&&e.append(f,b.opts.fileUploadParams[f]);e.append(b.opts.fileUploadParam,c);var g=b.opts.fileUploadURL;b.opts.fileUploadToS3&&(g=b.opts.fileUploadToS3.uploadURL?b.opts.fileUploadToS3.uploadURL:"https://"+b.opts.fileUploadToS3.region+".amazonaws.com/"+b.opts.fileUploadToS3.bucket);var h=b.core.getXHR(g,b.opts.fileUploadMethod);h.onload=function(){k.call(h,c.name)},h.onerror=l,h.upload.onprogress=m,h.onabort=o,d();var i=b.popups.get("file.insert");i&&i.off("abortUpload").on("abortUpload",function(){4!=h.readyState&&h.abort()}),h.send(e)}}}function q(c){b.events.$on(c,"dragover dragenter",".fr-file-upload-layer",function(){return a(this).addClass("fr-drop"),!1},!0),b.events.$on(c,"dragleave dragend",".fr-file-upload-layer",function(){return a(this).removeClass("fr-drop"),!1},!0),b.events.$on(c,"drop",".fr-file-upload-layer",function(d){d.preventDefault(),d.stopPropagation(),a(this).removeClass("fr-drop");var e=d.originalEvent.dataTransfer;if(e&&e.files){var f=c.data("instance")||b;f.file.upload(e.files)}},!0),b.helpers.isIOS()&&b.events.$on(c,"touchstart",'.fr-file-upload-layer input[type="file"]',function(){a(this).trigger("click")}),b.events.$on(c,"change",'.fr-file-upload-layer input[type="file"]',function(){if(this.files){var d=c.data("instance")||b;d.file.upload(this.files)}a(this).val("")},!0)}function r(){e()}function s(a){if(a)return b.popups.onHide("file.insert",r),!0;var c="";b.opts.fileUpload||b.opts.fileInsertButtons.splice(b.opts.fileInsertButtons.indexOf("fileUpload"),1),c='<div class="fr-buttons">'+b.button.buildList(b.opts.fileInsertButtons)+"</div>";var d="";b.opts.fileUpload&&(d='<div class="fr-file-upload-layer fr-layer fr-active" id="fr-file-upload-layer-'+b.id+'"><strong>'+b.language.translate("Drop file")+"</strong><br>("+b.language.translate("or click")+')<div class="fr-form"><input type="file" name="'+b.opts.fileUploadParam+'" accept="/*" tabIndex="-1" aria-labelledby="fr-file-upload-layer-'+b.id+'" role="button"></div></div>');var e='<div class="fr-file-progress-bar-layer fr-layer"><h3 tabIndex="-1" class="fr-message">Uploading</h3><div class="fr-loader"><span class="fr-progress"></span></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-dismiss" data-cmd="fileDismissError" tabIndex="2" role="button">OK</button></div></div>',f={buttons:c,upload_layer:d,progress_bar:e},g=b.popups.create("file.insert",f);return q(g),g}function t(a){b.node.hasClass(a,"fr-file")}function u(c){var e=c.originalEvent.dataTransfer;if(e&&e.files&&e.files.length){var f=e.files[0];if(f&&"undefined"!=typeof f.type){if(f.type.indexOf("image")<0){if(!b.opts.fileUpload)return c.preventDefault(),c.stopPropagation(),!1;b.markers.remove(),b.markers.insertAtPoint(c.originalEvent),b.$el.find(".fr-marker").replaceWith(a.FE.MARKERS),b.popups.hideAll();var g=b.popups.get("file.insert");return g||(g=s()),b.popups.setContainer("file.insert",b.$sc),b.popups.show("file.insert",c.originalEvent.pageX,c.originalEvent.pageY),d(),p(e.files),c.preventDefault(),c.stopPropagation(),!1}}else f.type.indexOf("image")<0&&(c.preventDefault(),c.stopPropagation())}}function v(){b.events.on("drop",u),b.events.$on(b.$win,"keydown",function(c){var d=c.which,e=b.popups.get("file.insert");e&&d==a.FE.KEYCODE.ESC&&e.trigger("abortUpload")}),b.events.on("destroy",function(){var a=b.popups.get("file.insert");a&&a.trigger("abortUpload")})}function w(){b.events.disableBlur(),b.selection.restore(),b.events.enableBlur(),b.popups.hide("file.insert"),b.toolbar.showInline()}function x(){var a,c=Array.prototype.slice.call(b.el.querySelectorAll("a.fr-file")),d=[];for(a=0;a<c.length;a++)d.push(c[a].getAttribute("href"));if(H)for(a=0;a<H.length;a++)d.indexOf(H[a].getAttribute("href"))<0&&b.events.trigger("file.unlink",[H[a]]);H=c}function y(){v(),b.events.on("link.beforeRemove",t),b.$wp&&(x(),b.events.on("contentChanged",x)),s(!0)}var z=1,A=2,B=3,C=4,D=5,E=6,F=7,G={};G[z]="File cannot be loaded from the passed link.",G[A]="No link in upload response.",G[B]="Error during file upload.",G[C]="Parsing response failed.",G[D]="File is too large.",G[E]="File file type is invalid.",G[F]="Files can be uploaded only to same domain in IE 8 and IE 9.";var H;return{_init:y,showInsertPopup:c,upload:p,insert:h,back:w,hideProgressBar:e}},a.FE.DefineIcon("insertFile",{NAME:"file-o",FA5NAME:"file"}),a.FE.RegisterCommand("insertFile",{title:"Upload File",undo:!1,focus:!0,refreshAfterCallback:!1,popup:!0,callback:function(){this.popups.isVisible("file.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("file.insert")):this.file.showInsertPopup()},plugin:"file"}),a.FE.DefineIcon("fileBack",{NAME:"arrow-left"}),a.FE.RegisterCommand("fileBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.file.back()},refresh:function(a){this.opts.toolbarInline?(a.removeClass("fr-hidden"),a.next(".fr-separator").removeClass("fr-hidden")):(a.addClass("fr-hidden"),a.next(".fr-separator").addClass("fr-hidden"))}}),a.FE.RegisterCommand("fileDismissError",{title:"OK",callback:function(){this.file.hideProgressBar(!0)}})}); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/font_family.min.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/font_family.min.js new file mode 100644 index 0000000..c2ae69e --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/font_family.min.js @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.DEFAULTS,{fontFamily:{"Arial,Helvetica,sans-serif":"Arial","Georgia,serif":"Georgia","Impact,Charcoal,sans-serif":"Impact","Tahoma,Geneva,sans-serif":"Tahoma","Times New Roman,Times,serif,-webkit-standard":"Times New Roman","Verdana,Geneva,sans-serif":"Verdana"},fontFamilySelection:!1,fontFamilyDefaultSelection:"Font Family"}),a.FE.PLUGINS.fontFamily=function(b){function c(a){b.format.applyStyle("font-family",a)}function d(a,b){b.find(".fr-command.fr-active").removeClass("fr-active").attr("aria-selected",!1),b.find('.fr-command[data-param1="'+g()+'"]').addClass("fr-active").attr("aria-selected",!0);var c=b.find(".fr-dropdown-list"),d=b.find(".fr-active").parent();d.length?c.parent().scrollTop(d.offset().top-c.offset().top-(c.parent().outerHeight()/2-d.outerHeight()/2)):c.parent().scrollTop(0)}function e(b){var c=b.replace(/(sans-serif|serif|monospace|cursive|fantasy)/gi,"").replace(/"|'| /g,"").split(",");return a.grep(c,function(a){return a.length>0})}function f(a,b){for(var c=0;c<a.length;c++)for(var d=0;d<b.length;d++)if(a[c].toLowerCase()==b[d].toLowerCase())return[c,d];return null}function g(){var c=a(b.selection.element()).css("font-family"),d=e(c),g=[];for(var h in b.opts.fontFamily)if(b.opts.fontFamily.hasOwnProperty(h)){var i=e(h),j=f(d,i);j&&g.push([h,j])}return 0===g.length?null:(g.sort(function(a,b){var c=a[1][0]-b[1][0];return 0===c?a[1][1]-b[1][1]:c}),g[0][0])}function h(c){if(b.opts.fontFamilySelection){var d=a(b.selection.element()).css("font-family").replace(/(sans-serif|serif|monospace|cursive|fantasy)/gi,"").replace(/"|'|/g,"").split(",");c.find("> span").text(b.opts.fontFamily[g()]||d[0]||b.language.translate(b.opts.fontFamilyDefaultSelection))}}return{apply:c,refreshOnShow:d,refresh:h}},a.FE.RegisterCommand("fontFamily",{type:"dropdown",displaySelection:function(a){return a.opts.fontFamilySelection},defaultSelection:function(a){return a.opts.fontFamilyDefaultSelection},displaySelectionWidth:120,html:function(){var a='<ul class="fr-dropdown-list" role="presentation">',b=this.opts.fontFamily;for(var c in b)b.hasOwnProperty(c)&&(a+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="fontFamily" data-param1="'+c+'" style="font-family: '+c+'" title="'+b[c]+'">'+b[c]+"</a></li>");return a+="</ul>"},title:"Font Family",callback:function(a,b){this.fontFamily.apply(b)},refresh:function(a){this.fontFamily.refresh(a)},refreshOnShow:function(a,b){this.fontFamily.refreshOnShow(a,b)},plugin:"fontFamily"}),a.FE.DefineIcon("fontFamily",{NAME:"font"})}); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/font_size.min.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/font_size.min.js new file mode 100644 index 0000000..53ad84f --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/font_size.min.js @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.DEFAULTS,{fontSize:["8","9","10","11","12","14","18","24","30","36","48","60","72","96"],fontSizeSelection:!1,fontSizeDefaultSelection:"12"}),a.FE.PLUGINS.fontSize=function(b){function c(a){b.format.applyStyle("font-size",a)}function d(c,d){var e=a(b.selection.element()).css("font-size");d.find(".fr-command.fr-active").removeClass("fr-active").attr("aria-selected",!1),d.find('.fr-command[data-param1="'+e+'"]').addClass("fr-active").attr("aria-selected",!0);var f=d.find(".fr-dropdown-list"),g=d.find(".fr-active").parent();g.length?f.parent().scrollTop(g.offset().top-f.offset().top-(f.parent().outerHeight()/2-g.outerHeight()/2)):f.parent().scrollTop(0)}function e(c){if(b.opts.fontSizeSelection){var d=b.helpers.getPX(a(b.selection.element()).css("font-size"));c.find("> span").text(d)}}return{apply:c,refreshOnShow:d,refresh:e}},a.FE.RegisterCommand("fontSize",{type:"dropdown",title:"Font Size",displaySelection:function(a){return a.opts.fontSizeSelection},displaySelectionWidth:30,defaultSelection:function(a){return a.opts.fontSizeDefaultSelection},html:function(){for(var a='<ul class="fr-dropdown-list" role="presentation">',b=this.opts.fontSize,c=0;c<b.length;c++){var d=b[c];a+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="fontSize" data-param1="'+d+'px" title="'+d+'">'+d+"</a></li>"}return a+="</ul>"},callback:function(a,b){this.fontSize.apply(b)},refresh:function(a){this.fontSize.refresh(a)},refreshOnShow:function(a,b){this.fontSize.refreshOnShow(a,b)},plugin:"fontSize"}),a.FE.DefineIcon("fontSize",{NAME:"text-height"})}); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/forms.min.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/forms.min.js new file mode 100644 index 0000000..9c7f15e --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/forms.min.js @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.POPUP_TEMPLATES,{"forms.edit":"[_BUTTONS_]","forms.update":"[_BUTTONS_][_TEXT_LAYER_]"}),a.extend(a.FE.DEFAULTS,{formEditButtons:["inputStyle","inputEdit"],formStyles:{"fr-rounded":"Rounded","fr-large":"Large"},formMultipleStyles:!0,formUpdateButtons:["inputBack","|"]}),a.FE.PLUGINS.forms=function(b){function c(c){c.preventDefault(),b.selection.clear(),a(this).data("mousedown",!0)}function d(b){a(this).data("mousedown")&&(b.stopPropagation(),a(this).removeData("mousedown"),s=this,j(this)),b.preventDefault()}function e(){b.$el.find("input, textarea, button").removeData("mousedown")}function f(){a(this).removeData("mousedown")}function g(){b.events.$on(b.$el,b._mousedown,"input, textarea, button",c),b.events.$on(b.$el,b._mouseup,"input, textarea, button",d),b.events.$on(b.$el,"touchmove","input, textarea, button",f),b.events.$on(b.$el,b._mouseup,e),b.events.$on(b.$win,b._mouseup,e),m(!0)}function h(){return s?s:null}function i(){var a="";b.opts.formEditButtons.length>0&&(a='<div class="fr-buttons">'+b.button.buildList(b.opts.formEditButtons)+"</div>");var c={buttons:a},d=b.popups.create("forms.edit",c);return b.$wp&&b.events.$on(b.$wp,"scroll.link-edit",function(){h()&&b.popups.isVisible("forms.edit")&&j(h())}),d}function j(c){var d=b.popups.get("forms.edit");d||(d=i()),s=c;var e=a(c);b.popups.refresh("forms.edit"),b.popups.setContainer("forms.edit",b.$sc);var f=e.offset().left+e.outerWidth()/2,g=e.offset().top+e.outerHeight();b.popups.show("forms.edit",f,g,e.outerHeight())}function k(){var c=b.popups.get("forms.update"),d=h();if(d){var e=a(d);e.is("button")?c.find('input[type="text"][name="text"]').val(e.text()):c.find('input[type="text"][name="text"]').val(e.attr("placeholder"))}c.find('input[type="text"][name="text"]').trigger("change")}function l(){s=null}function m(a){if(a)return b.popups.onRefresh("forms.update",k),b.popups.onHide("forms.update",l),!0;var c="";b.opts.formUpdateButtons.length>=1&&(c='<div class="fr-buttons">'+b.button.buildList(b.opts.formUpdateButtons)+"</div>");var d="",e=0;d='<div class="fr-forms-text-layer fr-layer fr-active">',d+='<div class="fr-input-line"><input name="text" type="text" placeholder="Text" tabIndex="'+ ++e+'"></div>',d+='<div class="fr-action-buttons"><button class="fr-command fr-submit" data-cmd="updateInput" href="#" tabIndex="'+ ++e+'" type="button">'+b.language.translate("Update")+"</button></div></div>";var f={buttons:c,text_layer:d},g=b.popups.create("forms.update",f);return g}function n(){var c=h();if(c){var d=a(c),e=b.popups.get("forms.update");e||(e=m()),b.popups.isVisible("forms.update")||b.popups.refresh("forms.update"),b.popups.setContainer("forms.update",b.$sc);var f=d.offset().left+d.outerWidth()/2,g=d.offset().top+d.outerHeight();b.popups.show("forms.update",f,g,d.outerHeight())}}function o(c,d,e){"undefined"==typeof d&&(d=b.opts.formStyles),"undefined"==typeof e&&(e=b.opts.formMultipleStyles);var f=h();if(!f)return!1;if(!e){var g=Object.keys(d);g.splice(g.indexOf(c),1),a(f).removeClass(g.join(" "))}a(f).toggleClass(c)}function p(){b.events.disableBlur(),b.selection.restore(),b.events.enableBlur();var a=h();a&&b.$wp&&("BUTTON"==a.tagName&&b.selection.restore(),j(a))}function q(){var c=b.popups.get("forms.update"),d=h();if(d){var e=a(d),f=c.find('input[type="text"][name="text"]').val()||"";f.length&&(e.is("button")?e.text(f):e.attr("placeholder",f)),b.popups.hide("forms.update"),j(d)}}function r(){g(),b.events.$on(b.$el,"submit","form",function(a){return a.preventDefault(),!1})}var s;return{_init:r,updateInput:q,getInput:h,applyStyle:o,showUpdatePopup:n,showEditPopup:j,back:p}},a.FE.RegisterCommand("updateInput",{undo:!1,focus:!1,title:"Update",callback:function(){this.forms.updateInput()}}),a.FE.DefineIcon("inputStyle",{NAME:"magic"}),a.FE.RegisterCommand("inputStyle",{title:"Style",type:"dropdown",html:function(){var a='<ul class="fr-dropdown-list">',b=this.opts.formStyles;for(var c in b)b.hasOwnProperty(c)&&(a+='<li><a class="fr-command" tabIndex="-1" data-cmd="inputStyle" data-param1="'+c+'">'+this.language.translate(b[c])+"</a></li>");return a+="</ul>"},callback:function(a,b){var c=this.forms.getInput();c&&(this.forms.applyStyle(b),this.forms.showEditPopup(c))},refreshOnShow:function(b,c){var d=this.forms.getInput();if(d){var e=a(d);c.find(".fr-command").each(function(){var b=a(this).data("param1");a(this).toggleClass("fr-active",e.hasClass(b))})}}}),a.FE.DefineIcon("inputEdit",{NAME:"edit"}),a.FE.RegisterCommand("inputEdit",{title:"Edit Button",undo:!1,refreshAfterCallback:!1,callback:function(){this.forms.showUpdatePopup()}}),a.FE.DefineIcon("inputBack",{NAME:"arrow-left"}),a.FE.RegisterCommand("inputBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.forms.back()}}),a.FE.RegisterCommand("updateInput",{undo:!1,focus:!1,title:"Update",callback:function(){this.forms.updateInput()}})}); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/fullscreen.min.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/fullscreen.min.js new file mode 100644 index 0000000..3cf2365 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/fullscreen.min.js @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.FE.PLUGINS.fullscreen=function(b){function c(){return b.$box.hasClass("fr-fullscreen")}function d(){if(b.helpers.isIOS()&&b.core.hasFocus())return b.$el.blur(),setTimeout(f,250),!1;i=b.helpers.scrollTop(),b.$box.toggleClass("fr-fullscreen"),a("body:first").toggleClass("fr-fullscreen"),b.helpers.isMobile()&&(b.$tb.data("parent",b.$tb.parent()),b.$tb.prependTo(b.$box),b.$tb.data("sticky-dummy")&&b.$tb.after(b.$tb.data("sticky-dummy"))),j=b.opts.height,k=b.opts.heightMax,l=b.opts.zIndex,b.position.refresh(),b.opts.height=b.o_win.innerHeight-(b.opts.toolbarInline?0:b.$tb.outerHeight()),b.opts.zIndex=2147483641,b.opts.heightMax=null,b.size.refresh(),b.opts.toolbarInline&&b.toolbar.showInline();for(var c=b.$box.parent();!c.is("body:first");)c.data("z-index",c.css("z-index")).data("overflow",c.css("overflow")).css("z-index","2147483640").css("overflow","visible"),c=c.parent();b.opts.toolbarContainer&&b.$box.prepend(b.$tb),b.events.trigger("charCounter.update"),b.events.trigger("codeView.update"),b.$win.trigger("scroll")}function e(){if(b.helpers.isIOS()&&b.core.hasFocus())return b.$el.blur(),setTimeout(f,250),!1;b.$box.toggleClass("fr-fullscreen"),a("body:first").toggleClass("fr-fullscreen"),b.$tb.prependTo(b.$tb.data("parent")),b.$tb.data("sticky-dummy")&&b.$tb.after(b.$tb.data("sticky-dummy")),b.opts.height=j,b.opts.heightMax=k,b.opts.zIndex=l,b.size.refresh(),a(b.o_win).scrollTop(i),b.opts.toolbarInline&&b.toolbar.showInline(),b.events.trigger("charCounter.update"),b.opts.toolbarSticky&&b.opts.toolbarStickyOffset&&(b.opts.toolbarBottom?b.$tb.css("bottom",b.opts.toolbarStickyOffset).data("bottom",b.opts.toolbarStickyOffset):b.$tb.css("top",b.opts.toolbarStickyOffset).data("top",b.opts.toolbarStickyOffset));for(var c=b.$box.parent();!c.is("body:first");)c.data("z-index")&&(c.css("z-index",""),c.css("z-index")!=c.data("z-index")&&c.css("z-index",c.data("z-index")),c.removeData("z-index")),c.data("overflow")?(c.css("overflow",""),c.css("overflow")!=c.data("overflow")&&c.css("overflow",c.data("overflow")),c.removeData("overflow")):(c.css("overflow",""),c.removeData("overflow")),c=c.parent();b.opts.toolbarContainer&&a(b.opts.toolbarContainer).append(b.$tb),a(b.o_win).trigger("scroll"),b.events.trigger("codeView.update")}function f(){c()?e():d(),g(b.$tb.find('.fr-command[data-cmd="fullscreen"]'))}function g(a){var d=c();a.toggleClass("fr-active",d).attr("aria-pressed",d),a.find("> *:not(.fr-sr-only)").replaceWith(d?b.icon.create("fullscreenCompress"):b.icon.create("fullscreen"))}function h(){return b.$wp?(b.events.$on(a(b.o_win),"resize",function(){c()&&(e(),d())}),b.events.on("toolbar.hide",function(){return c()&&b.helpers.isMobile()?!1:void 0}),b.events.on("position.refresh",function(){return b.helpers.isIOS()?!c():void 0}),void b.events.on("destroy",function(){c()&&e()},!0)):!1}var i,j,k,l;return{_init:h,toggle:f,refresh:g,isActive:c}},a.FE.RegisterCommand("fullscreen",{title:"Fullscreen",undo:!1,focus:!1,accessibilityFocus:!0,forcedRefresh:!0,toggle:!0,callback:function(){this.fullscreen.toggle()},refresh:function(a){this.fullscreen.refresh(a)},plugin:"fullscreen"}),a.FE.DefineIcon("fullscreen",{NAME:"expand"}),a.FE.DefineIcon("fullscreenCompress",{NAME:"compress"})}); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/help.min.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/help.min.js new file mode 100644 index 0000000..60870e8 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/help.min.js @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.DEFAULTS,{helpSets:[{title:"Inline Editor",commands:[{val:"OSkeyE",desc:"Show the editor"}]},{title:"Common actions",commands:[{val:"OSkeyC",desc:"Copy"},{val:"OSkeyX",desc:"Cut"},{val:"OSkeyV",desc:"Paste"},{val:"OSkeyZ",desc:"Undo"},{val:"OSkeyShift+Z",desc:"Redo"},{val:"OSkeyK",desc:"Insert Link"},{val:"OSkeyP",desc:"Insert Image"}]},{title:"Basic Formatting",commands:[{val:"OSkeyA",desc:"Select All"},{val:"OSkeyB",desc:"Bold"},{val:"OSkeyI",desc:"Italic"},{val:"OSkeyU",desc:"Underline"},{val:"OSkeyS",desc:"Strikethrough"},{val:"OSkey]",desc:"Increase Indent"},{val:"OSkey[",desc:"Decrease Indent"}]},{title:"Quote",commands:[{val:"OSkey'",desc:"Increase quote level"},{val:"OSkeyShift+'",desc:"Decrease quote level"}]},{title:"Image / Video",commands:[{val:"OSkey+",desc:"Resize larger"},{val:"OSkey-",desc:"Resize smaller"}]},{title:"Table",commands:[{val:"Alt+Space",desc:"Select table cell"},{val:"Shift+Left/Right arrow",desc:"Extend selection one cell"},{val:"Shift+Up/Down arrow",desc:"Extend selection one row"}]},{title:"Navigation",commands:[{val:"OSkey/",desc:"Shortcuts"},{val:"Alt+F10",desc:"Focus popup / toolbar"},{val:"Esc",desc:"Return focus to previous position"}]}]}),a.FE.PLUGINS.help=function(b){function c(){}function d(){for(var a='<div class="fr-help-modal">',c=0;c<b.opts.helpSets.length;c++){var d=b.opts.helpSets[c],e="<table>";e+="<thead><tr><th>"+b.language.translate(d.title)+"</th></tr></thead>",e+="<tbody>";for(var f=0;f<d.commands.length;f++){var g=d.commands[f];e+="<tr>",e+="<td>"+b.language.translate(g.desc)+"</td>",e+="<td>"+g.val.replace("OSkey",b.helpers.isMac()?"⌘":"Ctrl+")+"</td>",e+="</tr>"}e+="</tbody></table>",a+=e}return a+="</div>"}function e(){if(!g){var c="<h4>"+b.language.translate("Shortcuts")+"</h4>",e=d(),f=b.modals.create(j,c,e);g=f.$modal,h=f.$head,i=f.$body,b.events.$on(a(b.o_win),"resize",function(){b.modals.resize(j)})}b.modals.show(j),b.modals.resize(j)}function f(){b.modals.hide(j)}var g,h,i,j="help";return{_init:c,show:e,hide:f}},a.FroalaEditor.DefineIcon("help",{NAME:"question"}),a.FE.RegisterShortcut(a.FE.KEYCODE.SLASH,"help",null,"/"),a.FE.RegisterCommand("help",{title:"Help",icon:"help",undo:!1,focus:!1,modal:!0,callback:function(){this.help.show()},plugin:"help",showOnMobile:!1})}); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/image.min.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/image.min.js new file mode 100644 index 0000000..fd8fd39 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/image.min.js @@ -0,0 +1,8 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.POPUP_TEMPLATES,{"image.insert":"[_BUTTONS_][_UPLOAD_LAYER_][_BY_URL_LAYER_][_PROGRESS_BAR_]","image.edit":"[_BUTTONS_]","image.alt":"[_BUTTONS_][_ALT_LAYER_]","image.size":"[_BUTTONS_][_SIZE_LAYER_]"}),a.extend(a.FE.DEFAULTS,{imageInsertButtons:["imageBack","|","imageUpload","imageByURL"],imageEditButtons:["imageReplace","imageAlign","imageCaption","imageRemove","|","imageLink","linkOpen","linkEdit","linkRemove","-","imageDisplay","imageStyle","imageAlt","imageSize"],imageAltButtons:["imageBack","|"],imageSizeButtons:["imageBack","|"],imageUpload:!0,imageUploadURL:"https://i.froala.com/upload",imageCORSProxy:"https://cors-anywhere.froala.com",imageUploadRemoteUrls:!0,imageUploadParam:"file",imageUploadParams:{},imageUploadToS3:!1,imageUploadMethod:"POST",imageMaxSize:10485760,imageAllowedTypes:["jpeg","jpg","png","gif"],imageResize:!0,imageResizeWithPercent:!1,imageRoundPercent:!1,imageDefaultWidth:300,imageDefaultAlign:"center",imageDefaultDisplay:"block",imageSplitHTML:!1,imageStyles:{"fr-rounded":"Rounded","fr-bordered":"Bordered","fr-shadow":"Shadow"},imageMove:!0,imageMultipleStyles:!0,imageTextNear:!0,imagePaste:!0,imagePasteProcess:!1,imageMinWidth:16,imageOutputSize:!1,imageDefaultMargin:5}),a.FE.PLUGINS.image=function(b){function c(){var a=b.popups.get("image.insert"),c=a.find(".fr-image-by-url-layer input");c.val(""),Ea&&c.val(Ea.attr("src")),c.trigger("change")}function d(){var a=b.$tb.find('.fr-command[data-cmd="insertImage"]'),c=b.popups.get("image.insert");if(c||(c=N()),t(),!c.hasClass("fr-active"))if(b.popups.refresh("image.insert"),b.popups.setContainer("image.insert",b.$tb),a.is(":visible")){var d=a.offset().left+a.outerWidth()/2,e=a.offset().top+(b.opts.toolbarBottom?10:a.outerHeight()-10);b.popups.show("image.insert",d,e,a.outerHeight())}else b.position.forSelection(c),b.popups.show("image.insert")}function e(){var a=b.popups.get("image.edit");if(a||(a=r()),a){var c=Aa();Ca()&&(c=c.find(".fr-img-wrap")),b.popups.setContainer("image.edit",b.$sc),b.popups.refresh("image.edit");var d=c.offset().left+c.outerWidth()/2,e=c.offset().top+c.outerHeight();b.popups.show("image.edit",d,e,c.outerHeight())}}function f(){t()}function g(a){a.parents(".fr-img-caption").length>0&&(a=a.parents(".fr-img-caption:first")),a.hasClass("fr-dii")||a.hasClass("fr-dib")||(a.addClass("fr-fi"+qa(a)[0]),a.addClass("fr-di"+ra(a)[0]),a.css("margin",""),a.css("float",""),a.css("display",""),a.css("z-index",""),a.css("position",""),a.css("overflow",""),a.css("vertical-align",""))}function h(a){a.parents(".fr-img-caption").length>0&&(a=a.parents(".fr-img-caption:first"));var b=a.hasClass("fr-dib")?"block":a.hasClass("fr-dii")?"inline":null,c=a.hasClass("fr-fil")?"left":a.hasClass("fr-fir")?"right":qa(a);oa(a,b,c),a.removeClass("fr-dib fr-dii fr-fir fr-fil")}function i(){for(var c="IMG"==b.el.tagName?[b.el]:b.el.querySelectorAll("img"),d=0;d<c.length;d++){var e=a(c[d]);!b.opts.htmlUntouched&&b.opts.useClasses?((b.opts.imageDefaultAlign||b.opts.imageDefaultDisplay)&&g(e),b.opts.imageTextNear||(e.parents(".fr-img-caption").length>0?e.parents(".fr-img-caption:first").removeClass("fr-dii").addClass("fr-dib"):e.removeClass("fr-dii").addClass("fr-dib"))):b.opts.htmlUntouched||b.opts.useClasses||(b.opts.imageDefaultAlign||b.opts.imageDefaultDisplay)&&h(e),b.opts.iframe&&e.on("load",b.size.syncIframe)}}function j(c){"undefined"==typeof c&&(c=!0);var d,e=Array.prototype.slice.call(b.el.querySelectorAll("img")),f=[];for(d=0;d<e.length;d++)if(f.push(e[d].getAttribute("src")),a(e[d]).toggleClass("fr-draggable",b.opts.imageMove),""===e[d].getAttribute("class")&&e[d].removeAttribute("class"),""===e[d].getAttribute("style")&&e[d].removeAttribute("style"),e[d].parentNode&&e[d].parentNode.parentNode&&b.node.hasClass(e[d].parentNode.parentNode,"fr-img-caption")){var g=e[d].parentNode.parentNode;b.browser.mozilla||g.setAttribute("contenteditable",!1),g.setAttribute("draggable",!1),g.classList.add("fr-draggable");var h=e[d].nextSibling;h&&h.setAttribute("contenteditable",!0)}if(Sa)for(d=0;d<Sa.length;d++)f.indexOf(Sa[d].getAttribute("src"))<0&&b.events.trigger("image.removed",[a(Sa[d])]);if(Sa&&c){var i=[];for(d=0;d<Sa.length;d++)i.push(Sa[d].getAttribute("src"));for(d=0;d<e.length;d++)i.indexOf(e[d].getAttribute("src"))<0&&b.events.trigger("image.loaded",[a(e[d])])}Sa=e}function k(){if(Fa||$(),!Ea)return!1;var a=b.$wp||b.$sc;a.append(Fa),Fa.data("instance",b);var c=a.scrollTop()-("static"!=a.css("position")?a.offset().top:0),d=a.scrollLeft()-("static"!=a.css("position")?a.offset().left:0);d-=b.helpers.getPX(a.css("border-left-width")),c-=b.helpers.getPX(a.css("border-top-width")),b.$el.is("img")&&b.$sc.is("body")&&(c=0,d=0);var e=Aa();Ca()&&(e=e.find(".fr-img-wrap")),Fa.css("top",(b.opts.iframe?e.offset().top:e.offset().top+c)-1).css("left",(b.opts.iframe?e.offset().left:e.offset().left+d)-1).css("width",e.get(0).getBoundingClientRect().width).css("height",e.get(0).getBoundingClientRect().height).addClass("fr-active")}function l(a){return'<div class="fr-handler fr-h'+a+'"></div>'}function m(a){Ca()?Ea.parents(".fr-img-caption").css("width",a):Ea.css("width",a)}function n(c){if(!b.core.sameInstance(Fa))return!0;if(c.preventDefault(),c.stopPropagation(),b.$el.find("img.fr-error").left)return!1;b.undo.canDo()||b.undo.saveStep();var d=c.pageX||c.originalEvent.touches[0].pageX;if("mousedown"==c.type){var e=b.$oel.get(0),f=e.ownerDocument,g=f.defaultView||f.parentWindow,h=!1;try{h=g.location!=g.parent.location&&!(g.$&&g.$.FE)}catch(i){}h&&g.frameElement&&(d+=b.helpers.getPX(a(g.frameElement).offset().left)+g.frameElement.clientLeft)}Ga=a(this),Ga.data("start-x",d),Ga.data("start-width",Ea.width()),Ga.data("start-height",Ea.height());var j=Ea.width();if(b.opts.imageResizeWithPercent){var k=Ea.parentsUntil(b.$el,b.html.blockTagsQuery()).get(0)||b.el;j=(j/a(k).outerWidth()*100).toFixed(2)+"%"}m(j),Ha.show(),b.popups.hideAll(),ma()}function o(c){if(!b.core.sameInstance(Fa))return!0;var d;if(Ga&&Ea){if(c.preventDefault(),b.$el.find("img.fr-error").left)return!1;var e=c.pageX||(c.originalEvent.touches?c.originalEvent.touches[0].pageX:null);if(!e)return!1;var f=Ga.data("start-x"),g=e-f,h=Ga.data("start-width");if((Ga.hasClass("fr-hnw")||Ga.hasClass("fr-hsw"))&&(g=0-g),b.opts.imageResizeWithPercent){var i=Ea.parentsUntil(b.$el,b.html.blockTagsQuery()).get(0)||b.el;h=((h+g)/a(i).outerWidth()*100).toFixed(2),b.opts.imageRoundPercent&&(h=Math.round(h)),m(h+"%"),d=Ca()?(b.helpers.getPX(Ea.parents(".fr-img-caption").css("width"))/a(i).outerWidth()*100).toFixed(2):(b.helpers.getPX(Ea.css("width"))/a(i).outerWidth()*100).toFixed(2),d===h||b.opts.imageRoundPercent||m(d+"%"),Ea.css("height","").removeAttr("height")}else h+g>=b.opts.imageMinWidth&&(m(h+g),d=Ca()?b.helpers.getPX(Ea.parents(".fr-img-caption").css("width")):b.helpers.getPX(Ea.css("width"))),d!==h+g&&m(d),((Ea.attr("style")||"").match(/(^height:)|(; *height:)/)||Ea.attr("height"))&&(Ea.css("height",Ga.data("start-height")*Ea.width()/Ga.data("start-width")),Ea.removeAttr("height"));k(),b.events.trigger("image.resize",[za()])}}function p(a){if(!b.core.sameInstance(Fa))return!0;if(Ga&&Ea){if(a&&a.stopPropagation(),b.$el.find("img.fr-error").left)return!1;Ga=null,Ha.hide(),k(),e(),b.undo.saveStep(),b.events.trigger("image.resizeEnd",[za()])}}function q(a,c,d){b.edit.on(),Ea&&Ea.addClass("fr-error"),v(b.language.translate("Something went wrong. Please try again.")),!Ea&&d&&_(d),b.events.trigger("image.error",[{code:a,message:Ra[a]},c,d])}function r(a){if(a)return b.$wp&&b.events.$on(b.$wp,"scroll",function(){Ea&&b.popups.isVisible("image.edit")&&(b.events.disableBlur(),x(Ea))}),!0;var c="";if(b.opts.imageEditButtons.length>0){c+='<div class="fr-buttons">',c+=b.button.buildList(b.opts.imageEditButtons),c+="</div>";var d={buttons:c},e=b.popups.create("image.edit",d);return e}return!1}function s(a){var c=b.popups.get("image.insert");if(c||(c=N()),c.find(".fr-layer.fr-active").removeClass("fr-active").addClass("fr-pactive"),c.find(".fr-image-progress-bar-layer").addClass("fr-active"),c.find(".fr-buttons").hide(),Ea){var d=Aa();b.popups.setContainer("image.insert",b.$sc);var e=d.offset().left+d.width()/2,f=d.offset().top+d.height();b.popups.show("image.insert",e,f,d.outerHeight())}"undefined"==typeof a&&u(b.language.translate("Uploading"),0)}function t(a){var c=b.popups.get("image.insert");if(c&&(c.find(".fr-layer.fr-pactive").addClass("fr-active").removeClass("fr-pactive"),c.find(".fr-image-progress-bar-layer").removeClass("fr-active"),c.find(".fr-buttons").show(),a||b.$el.find("img.fr-error").length)){if(b.events.focus(),b.$el.find("img.fr-error").length&&(b.$el.find("img.fr-error").remove(),b.undo.saveStep(),b.undo.run(),b.undo.dropRedo()),!b.$wp&&Ea){var d=Ea;ka(!0),b.selection.setAfter(d.get(0)),b.selection.restore()}b.popups.hide("image.insert")}}function u(a,c){var d=b.popups.get("image.insert");if(d){var e=d.find(".fr-image-progress-bar-layer");e.find("h3").text(a+(c?" "+c+"%":"")),e.removeClass("fr-error"),c?(e.find("div").removeClass("fr-indeterminate"),e.find("div > span").css("width",c+"%")):e.find("div").addClass("fr-indeterminate")}}function v(a){s();var c=b.popups.get("image.insert"),d=c.find(".fr-image-progress-bar-layer");d.addClass("fr-error");var e=d.find("h3");e.text(a),b.events.disableBlur(),e.focus()}function w(){var a=b.popups.get("image.insert"),c=a.find(".fr-image-by-url-layer input");if(c.val().length>0){s(),u(b.language.translate("Loading image"));var d=c.val();if(b.opts.imageUploadRemoteUrls&&b.opts.imageCORSProxy&&b.opts.imageUpload){var e=new XMLHttpRequest;e.responseType="blob",e.onload=function(){200==this.status?I([new Blob([this.response],{type:this.response.type||"image/png"})],Ea):q(Ja)},e.onerror=function(){z(d,!0,[],Ea)},e.open("GET",b.opts.imageCORSProxy+"/"+d,!0),e.send()}else z(d,!0,[],Ea);c.val(""),c.blur()}}function x(a){ja.call(a.get(0))}function y(){var c=a(this);b.popups.hide("image.insert"),c.removeClass("fr-uploading"),c.next().is("br")&&c.next().remove(),x(c),b.events.trigger("image.loaded",[c])}function z(a,c,d,e,f){b.edit.off(),u(b.language.translate("Loading image")),c&&(a=b.helpers.sanitizeURL(a));var g=new Image;g.onload=function(){var c,g;if(e){b.undo.canDo()||e.hasClass("fr-uploading")||b.undo.saveStep();var h=e.data("fr-old-src");e.data("fr-image-pasted")&&(h=null),b.$wp?(c=e.clone().removeData("fr-old-src").removeClass("fr-uploading").removeAttr("data-fr-image-pasted"),c.off("load"),h&&e.attr("src",h),e.replaceWith(c)):c=e;for(var i=c.get(0).attributes,k=0;k<i.length;k++){var l=i[k];0===l.nodeName.indexOf("data-")&&c.removeAttr(l.nodeName)}if("undefined"!=typeof d)for(g in d)d.hasOwnProperty(g)&&"link"!=g&&c.attr("data-"+g,d[g]);c.on("load",y),c.attr("src",a),b.edit.on(),j(!1),b.undo.saveStep(),b.events.disableBlur(),b.$el.blur(),b.events.trigger(h?"image.replaced":"image.inserted",[c,f])}else c=F(a,d,y),j(!1),b.undo.saveStep(),b.$el.blur(),b.events.trigger("image.inserted",[c,f])},g.onerror=function(){q(Ja)},s(b.language.translate("Loading image")),g.src=a}function A(a){try{if(b.events.trigger("image.uploaded",[a],!0)===!1)return b.edit.on(),!1;var c=JSON.parse(a);return c.link?c:(q(Ka,a),!1)}catch(d){return q(Ma,a),!1}}function B(c){try{var d=a(c).find("Location").text(),e=a(c).find("Key").text();return b.events.trigger("image.uploadedToS3",[d,e,c],!0)===!1?(b.edit.on(),!1):d}catch(f){return q(Ma,c),!1}}function C(a){u(b.language.translate("Loading image"));var c=this.status,d=this.response,e=this.responseXML,f=this.responseText;try{if(b.opts.imageUploadToS3)if(201==c){var g=B(e);g&&z(g,!1,[],a,d||e)}else q(Ma,d||e,a);else if(c>=200&&300>c){var h=A(f);h&&z(h.link,!1,h,a,d||f)}else q(La,d||f,a)}catch(i){q(Ma,d||f,a)}}function D(){q(Ma,this.response||this.responseText||this.responseXML)}function E(a){if(a.lengthComputable){var c=a.loaded/a.total*100|0;u(b.language.translate("Uploading"),c)}}function F(c,d,e){var f,g="";if(d&&"undefined"!=typeof d)for(f in d)d.hasOwnProperty(f)&&"link"!=f&&(g+=" data-"+f+'="'+d[f]+'"');var h=b.opts.imageDefaultWidth;h&&"auto"!=h&&(h+=b.opts.imageResizeWithPercent?"%":"px");var i=a('<img src="'+c+'"'+g+(h?' style="width: '+h+';"':"")+">");oa(i,b.opts.imageDefaultDisplay,b.opts.imageDefaultAlign),i.on("load",e),i.on("error",function(){a(this).addClass("fr-error"),q(Qa)}),b.edit.on(),b.events.focus(!0),b.selection.restore(),b.undo.saveStep(),b.opts.imageSplitHTML?b.markers.split():b.markers.insert(),b.html.wrap();var j=b.$el.find(".fr-marker");return j.length?(j.parent().is("hr")&&j.parent().after(j),b.node.isLastSibling(j)&&j.parent().hasClass("fr-deletable")&&j.insertAfter(j.parent()),j.replaceWith(i)):b.$el.append(i),b.selection.clear(),i}function G(){b.edit.on(),t(!0)}function H(c,d,e,f){function g(){var e=a(this);e.off("load"),e.addClass("fr-uploading"),e.next().is("br")&&e.next().remove(),b.placeholder.refresh(),x(e),k(),s(),b.edit.off(),c.onload=function(){C.call(c,e)},c.onerror=D,c.upload.onprogress=E,c.onabort=G,e.off("abortUpload").on("abortUpload",function(){4!=c.readyState&&c.abort()}),c.send(d)}var h,i=new FileReader;i.addEventListener("load",function(){var a=i.result;if(i.result.indexOf("svg+xml")<0){for(var c=atob(i.result.split(",")[1]),d=[],e=0;e<c.length;e++)d.push(c.charCodeAt(e));a=window.URL.createObjectURL(new Blob([new Uint8Array(d)],{type:"image/jpeg"}))}f?(f.on("load",g),f.one("error",function(){f.off("load"),f.attr("src",f.data("fr-old-src")),q(Qa)}),b.edit.on(),b.undo.saveStep(),f.data("fr-old-src",f.attr("src")),f.attr("src",a)):h=F(a,null,g)},!1),i.readAsDataURL(e)}function I(a,c){if("undefined"!=typeof a&&a.length>0){if(b.events.trigger("image.beforeUpload",[a,c])===!1)return!1;var d=a[0];if(d.name||(d.name=(new Date).getTime()+".jpg"),d.size>b.opts.imageMaxSize)return q(Na),!1;if(b.opts.imageAllowedTypes.indexOf(d.type.replace(/image\//g,""))<0)return q(Oa),!1;var e;if(b.drag_support.formdata&&(e=b.drag_support.formdata?new FormData:null),e){var f;if(b.opts.imageUploadToS3!==!1){e.append("key",b.opts.imageUploadToS3.keyStart+(new Date).getTime()+"-"+(d.name||"untitled")),e.append("success_action_status","201"),e.append("X-Requested-With","xhr"),e.append("Content-Type",d.type);for(f in b.opts.imageUploadToS3.params)b.opts.imageUploadToS3.params.hasOwnProperty(f)&&e.append(f,b.opts.imageUploadToS3.params[f])}for(f in b.opts.imageUploadParams)b.opts.imageUploadParams.hasOwnProperty(f)&&e.append(f,b.opts.imageUploadParams[f]);e.append(b.opts.imageUploadParam,d,d.name);var g=b.opts.imageUploadURL;b.opts.imageUploadToS3&&(g=b.opts.imageUploadToS3.uploadURL?b.opts.imageUploadToS3.uploadURL:"https://"+b.opts.imageUploadToS3.region+".amazonaws.com/"+b.opts.imageUploadToS3.bucket);var h=b.core.getXHR(g,b.opts.imageUploadMethod);H(h,e,d,c||Ea)}}}function J(c){b.events.$on(c,"dragover dragenter",".fr-image-upload-layer",function(){return a(this).addClass("fr-drop"),!1},!0),b.events.$on(c,"dragleave dragend",".fr-image-upload-layer",function(){return a(this).removeClass("fr-drop"),!1},!0),b.events.$on(c,"drop",".fr-image-upload-layer",function(d){d.preventDefault(),d.stopPropagation(),a(this).removeClass("fr-drop");var e=d.originalEvent.dataTransfer;if(e&&e.files){var f=c.data("instance")||b;f.events.disableBlur(),f.image.upload(e.files),f.events.enableBlur()}},!0),b.helpers.isIOS()&&b.events.$on(c,"touchstart",'.fr-image-upload-layer input[type="file"]',function(){a(this).trigger("click")},!0),b.events.$on(c,"change",'.fr-image-upload-layer input[type="file"]',function(){if(this.files){var d=c.data("instance")||b;d.events.disableBlur(),c.find("input:focus").blur(),d.events.enableBlur(),d.image.upload(this.files,Ea)}a(this).val("")},!0)}function K(a){return a.is("img")&&a.parents(".fr-img-caption").length>0?a.parents(".fr-img-caption"):void 0}function L(c){var d=c.originalEvent.dataTransfer;if(d&&d.files&&d.files.length){var e=d.files[0];if(e&&e.type&&-1!==e.type.indexOf("image")&&b.opts.imageAllowedTypes.indexOf(e.type.replace(/image\//g,""))>=0){if(!b.opts.imageUpload)return c.preventDefault(),c.stopPropagation(),!1;b.markers.remove(),b.markers.insertAtPoint(c.originalEvent),b.$el.find(".fr-marker").replaceWith(a.FE.MARKERS),0===b.$el.find(".fr-marker").length&&b.selection.setAtEnd(b.el),b.popups.hideAll();var f=b.popups.get("image.insert");f||(f=N()),b.popups.setContainer("image.insert",b.$sc);var g=c.originalEvent.pageX,h=c.originalEvent.pageY;return b.opts.iframe&&(h+=b.$iframe.offset().top,g+=b.$iframe.offset().left),b.popups.show("image.insert",g,h),s(),b.opts.imageAllowedTypes.indexOf(e.type.replace(/image\//g,""))>=0?(ka(!0),I(d.files)):q(Oa),c.preventDefault(),c.stopPropagation(),!1}}}function M(){b.events.$on(b.$el,b._mousedown,"IMG"==b.el.tagName?null:'img:not([contenteditable="false"])',function(c){return"false"==a(this).parents("[contenteditable]:not(.fr-element):not(.fr-img-caption):not(body):first").attr("contenteditable")?!0:(b.helpers.isMobile()||b.selection.clear(),Ia=!0,b.popups.areVisible()&&b.events.disableBlur(),b.browser.msie&&(b.events.disableBlur(),b.$el.attr("contenteditable",!1)),b.draggable||"touchstart"==c.type||c.preventDefault(),void c.stopPropagation())}),b.events.$on(b.$el,b._mouseup,"IMG"==b.el.tagName?null:'img:not([contenteditable="false"])',function(c){return"false"==a(this).parents("[contenteditable]:not(.fr-element):not(.fr-img-caption):not(body):first").attr("contenteditable")?!0:void(Ia&&(Ia=!1,c.stopPropagation(),b.browser.msie&&(b.$el.attr("contenteditable",!0),b.events.enableBlur())))}),b.events.on("keyup",function(c){if(c.shiftKey&&""===b.selection.text().replace(/\n/g,"")&&b.keys.isArrow(c.which)){var d=b.selection.element(),e=b.selection.endElement();d&&"IMG"==d.tagName?x(a(d)):e&&"IMG"==e.tagName&&x(a(e))}},!0),b.events.on("drop",L),b.events.on("element.beforeDrop",K),b.events.on("mousedown window.mousedown",la),b.events.on("window.touchmove",ma),b.events.on("mouseup window.mouseup",function(){return Ea?(ka(),!1):void ma()}),b.events.on("commands.mousedown",function(a){a.parents(".fr-toolbar").length>0&&ka()}),b.events.on("blur image.hideResizer commands.undo commands.redo element.dropped",function(){Ia=!1,ka(!0)}),b.events.on("modals.hide",function(){Ea&&(xa(),b.selection.clear())})}function N(a){if(a)return b.popups.onRefresh("image.insert",c),b.popups.onHide("image.insert",f),!0;var d,e="";b.opts.imageUpload||b.opts.imageInsertButtons.splice(b.opts.imageInsertButtons.indexOf("imageUpload"),1),b.opts.imageInsertButtons.length>1&&(e='<div class="fr-buttons">'+b.button.buildList(b.opts.imageInsertButtons)+"</div>");var g=b.opts.imageInsertButtons.indexOf("imageUpload"),h=b.opts.imageInsertButtons.indexOf("imageByURL"),i="";g>=0&&(d=" fr-active",h>=0&&g>h&&(d=""),i='<div class="fr-image-upload-layer'+d+' fr-layer" id="fr-image-upload-layer-'+b.id+'"><strong>'+b.language.translate("Drop image")+"</strong><br>("+b.language.translate("or click")+')<div class="fr-form"><input type="file" accept="image/'+b.opts.imageAllowedTypes.join(", image/").toLowerCase()+'" tabIndex="-1" aria-labelledby="fr-image-upload-layer-'+b.id+'" role="button"></div></div>');var j="";h>=0&&(d=" fr-active",g>=0&&h>g&&(d=""),j='<div class="fr-image-by-url-layer'+d+' fr-layer" id="fr-image-by-url-layer-'+b.id+'"><div class="fr-input-line"><input id="fr-image-by-url-layer-text-'+b.id+'" type="text" placeholder="http://" tabIndex="1" aria-required="true"></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="imageInsertByURL" tabIndex="2" role="button">'+b.language.translate("Insert")+"</button></div></div>");var k='<div class="fr-image-progress-bar-layer fr-layer"><h3 tabIndex="-1" class="fr-message">Uploading</h3><div class="fr-loader"><span class="fr-progress"></span></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-dismiss" data-cmd="imageDismissError" tabIndex="2" role="button">OK</button></div></div>',l={buttons:e,upload_layer:i,by_url_layer:j,progress_bar:k},m=b.popups.create("image.insert",l);return b.$wp&&b.events.$on(b.$wp,"scroll",function(){Ea&&b.popups.isVisible("image.insert")&&wa()}),J(m),m}function O(){if(Ea){var a=b.popups.get("image.alt");a.find("input").val(Ea.attr("alt")||"").trigger("change")}}function P(){var a=b.popups.get("image.alt");a||(a=Q()),t(),b.popups.refresh("image.alt"),b.popups.setContainer("image.alt",b.$sc);var c=Aa();Ca()&&(c=c.find(".fr-img-wrap"));var d=c.offset().left+c.outerWidth()/2,e=c.offset().top+c.outerHeight();b.popups.show("image.alt",d,e,c.outerHeight())}function Q(a){if(a)return b.popups.onRefresh("image.alt",O),!0;var c="";c='<div class="fr-buttons">'+b.button.buildList(b.opts.imageAltButtons)+"</div>";var d="";d='<div class="fr-image-alt-layer fr-layer fr-active" id="fr-image-alt-layer-'+b.id+'"><div class="fr-input-line"><input id="fr-image-alt-layer-text-'+b.id+'" type="text" placeholder="'+b.language.translate("Alternate Text")+'" tabIndex="1"></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="imageSetAlt" tabIndex="2" role="button">'+b.language.translate("Update")+"</button></div></div>";var e={buttons:c,alt_layer:d},f=b.popups.create("image.alt",e);return b.$wp&&b.events.$on(b.$wp,"scroll.image-alt",function(){Ea&&b.popups.isVisible("image.alt")&&P()}),f}function R(a){if(Ea){var c=b.popups.get("image.alt");Ea.attr("alt",a||c.find("input").val()||""),c.find("input:focus").blur(),x(Ea)}}function S(){if(Ea){var a=b.popups.get("image.size");a.find('input[name="width"]').val(Ea.get(0).style.width).trigger("change"),a.find('input[name="height"]').val(Ea.get(0).style.height).trigger("change")}}function T(){var a=b.popups.get("image.size");a||(a=U()),t(),b.popups.refresh("image.size"),b.popups.setContainer("image.size",b.$sc);var c=Aa();Ca()&&(c=c.find(".fr-img-wrap"));var d=c.offset().left+c.outerWidth()/2,e=c.offset().top+c.outerHeight();b.popups.show("image.size",d,e,c.outerHeight())}function U(a){if(a)return b.popups.onRefresh("image.size",S),!0;var c="";c='<div class="fr-buttons">'+b.button.buildList(b.opts.imageSizeButtons)+"</div>";var d="";d='<div class="fr-image-size-layer fr-layer fr-active" id="fr-image-size-layer-'+b.id+'"><div class="fr-image-group"><div class="fr-input-line"><input id="fr-image-size-layer-width-'+b.id+'" type="text" name="width" placeholder="'+b.language.translate("Width")+'" tabIndex="1"></div><div class="fr-input-line"><input id="fr-image-size-layer-height'+b.id+'" type="text" name="height" placeholder="'+b.language.translate("Height")+'" tabIndex="1"></div></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="imageSetSize" tabIndex="2" role="button">'+b.language.translate("Update")+"</button></div></div>";var e={buttons:c,size_layer:d},f=b.popups.create("image.size",e);return b.$wp&&b.events.$on(b.$wp,"scroll.image-size",function(){Ea&&b.popups.isVisible("image.size")&&T()}),f}function V(a,c){if(Ea){var d=b.popups.get("image.size");a=a||d.find('input[name="width"]').val()||"",c=c||d.find('input[name="height"]').val()||"";var e=/^[\d]+((px)|%)*$/g;Ea.removeAttr("width").removeAttr("height"),a.match(e)?Ea.css("width",a):Ea.css("width",""),c.match(e)?Ea.css("height",c):Ea.css("height",""),Ca()&&(Ea.parent().removeAttr("width").removeAttr("height"),a.match(e)?Ea.parent().css("width",a):Ea.parent().css("width",""),c.match(e)?Ea.parent().css("height",c):Ea.parent().css("height","")),d.find("input:focus").blur(),x(Ea)}}function W(a){var c,d,e=b.popups.get("image.insert");if(Ea||b.opts.toolbarInline){if(Ea){var f=Aa();Ca()&&(f=f.find(".fr-img-wrap")),d=f.offset().top+f.outerHeight(),c=f.offset().left+f.outerWidth()/2}}else{var g=b.$tb.find('.fr-command[data-cmd="insertImage"]');c=g.offset().left+g.outerWidth()/2,d=g.offset().top+(b.opts.toolbarBottom?10:g.outerHeight()-10)}!Ea&&b.opts.toolbarInline&&(d=e.offset().top-b.helpers.getPX(e.css("margin-top")),e.hasClass("fr-above")&&(d+=e.outerHeight())),e.find(".fr-layer").removeClass("fr-active"),e.find(".fr-"+a+"-layer").addClass("fr-active"),b.popups.show("image.insert",c,d,Ea?Ea.outerHeight():0),b.accessibility.focusPopup(e)}function X(a){var c=b.popups.get("image.insert");c.find(".fr-image-upload-layer").hasClass("fr-active")&&a.addClass("fr-active").attr("aria-pressed",!0)}function Y(a){var c=b.popups.get("image.insert");c.find(".fr-image-by-url-layer").hasClass("fr-active")&&a.addClass("fr-active").attr("aria-pressed",!0)}function Z(a,b,c,d){return a.pageX=b,n.call(this,a),a.pageX=a.pageX+c*Math.floor(Math.pow(1.1,d)),o.call(this,a),p.call(this,a),++d}function $(){var c;if(b.shared.$image_resizer?(Fa=b.shared.$image_resizer,Ha=b.shared.$img_overlay,b.events.on("destroy",function(){Fa.removeClass("fr-active").appendTo(a("body:first"))},!0)):(b.shared.$image_resizer=a('<div class="fr-image-resizer"></div>'),Fa=b.shared.$image_resizer,b.events.$on(Fa,"mousedown",function(a){a.stopPropagation()},!0),b.opts.imageResize&&(Fa.append(l("nw")+l("ne")+l("sw")+l("se")),b.shared.$img_overlay=a('<div class="fr-image-overlay"></div>'),Ha=b.shared.$img_overlay,c=Fa.get(0).ownerDocument,a(c).find("body:first").append(Ha))),b.events.on("shared.destroy",function(){Fa.html("").removeData().remove(),Fa=null,b.opts.imageResize&&(Ha.remove(),Ha=null)},!0),b.helpers.isMobile()||b.events.$on(a(b.o_win),"resize",function(){Ea&&!Ea.hasClass("fr-uploading")?ka(!0):Ea&&(k(),wa(),s(!1))}),b.opts.imageResize){c=Fa.get(0).ownerDocument,b.events.$on(Fa,b._mousedown,".fr-handler",n),b.events.$on(a(c),b._mousemove,o),b.events.$on(a(c.defaultView||c.parentWindow),b._mouseup,p),b.events.$on(Ha,"mouseleave",p);var d=1,e=null,f=0;b.events.on("keydown",function(c){if(Ea){var g=-1!=navigator.userAgent.indexOf("Mac OS X")?c.metaKey:c.ctrlKey,h=c.which;(h!==e||c.timeStamp-f>200)&&(d=1),(h==a.FE.KEYCODE.EQUALS||b.browser.mozilla&&h==a.FE.KEYCODE.FF_EQUALS)&&g&&!c.altKey?d=Z.call(this,c,1,1,d):(h==a.FE.KEYCODE.HYPHEN||b.browser.mozilla&&h==a.FE.KEYCODE.FF_HYPHEN)&&g&&!c.altKey?d=Z.call(this,c,2,-1,d):b.keys.ctrlKey(c)||h!=a.FE.KEYCODE.ENTER||(Ea.before("<br>"),x(Ea)),e=h,f=c.timeStamp}},!0),b.events.on("keyup",function(){d=1})}}function _(c){c=c||Aa(),c&&b.events.trigger("image.beforeRemove",[c])!==!1&&(b.popups.hideAll(),xa(),ka(!0),b.undo.canDo()||b.undo.saveStep(),c.get(0)==b.el?c.removeAttr("src"):("A"==c.get(0).parentNode.tagName?(b.selection.setBefore(c.get(0).parentNode)||b.selection.setAfter(c.get(0).parentNode)||c.parent().after(a.FE.MARKERS),a(c.get(0).parentNode).remove()):(b.selection.setBefore(c.get(0))||b.selection.setAfter(c.get(0))||c.after(a.FE.MARKERS),c.remove()),b.html.fillEmptyBlocks(),b.selection.restore()),b.undo.saveStep())}function aa(c){var d=c.which;if(Ea&&(d==a.FE.KEYCODE.BACKSPACE||d==a.FE.KEYCODE.DELETE))return c.preventDefault(),c.stopPropagation(),_(),!1;if(Ea&&d==a.FE.KEYCODE.ESC){var e=Ea;return ka(!0),b.selection.setAfter(e.get(0)),b.selection.restore(),c.preventDefault(),!1}if(Ea&&(d==a.FE.KEYCODE.ARROW_LEFT||d==a.FE.KEYCODE.ARROW_RIGHT)){var f=Ea.get(0);return ka(!0),d==a.FE.KEYCODE.ARROW_LEFT?b.selection.setBefore(f):b.selection.setAfter(f),b.selection.restore(),c.preventDefault(),!1}return Ea&&d!=a.FE.KEYCODE.F10&&!b.keys.isBrowserAction(c)?(c.preventDefault(),c.stopPropagation(),!1):void 0}function ba(a){if(a&&"IMG"==a.tagName){if(b.node.hasClass(a,"fr-uploading")||b.node.hasClass(a,"fr-error")?a.parentNode.removeChild(a):b.node.hasClass(a,"fr-draggable")&&a.classList.remove("fr-draggable"),a.parentNode&&a.parentNode.parentNode&&b.node.hasClass(a.parentNode.parentNode,"fr-img-caption")){var c=a.parentNode.parentNode;c.removeAttribute("contenteditable"),c.removeAttribute("draggable"),c.classList.remove("fr-draggable");var d=a.nextSibling;d&&d.removeAttribute("contenteditable")}}else if(a&&a.nodeType==Node.ELEMENT_NODE)for(var e=a.querySelectorAll("img.fr-uploading, img.fr-error, img.fr-draggable"),f=0;f<e.length;f++)ba(e[f])}function ca(){if(M(),"IMG"==b.el.tagName&&b.$el.addClass("fr-view"),b.events.$on(b.$el,b.helpers.isMobile()&&!b.helpers.isWindowsPhone()?"touchend":"click","IMG"==b.el.tagName?null:'img:not([contenteditable="false"])',ja),b.helpers.isMobile()&&(b.events.$on(b.$el,"touchstart","IMG"==b.el.tagName?null:'img:not([contenteditable="false"])',function(){Ta=!1}),b.events.$on(b.$el,"touchmove",function(){Ta=!0})),b.$wp?(b.events.on("window.keydown keydown",aa,!0),b.events.on("keyup",function(b){return Ea&&b.which==a.FE.KEYCODE.ENTER?!1:void 0},!0)):b.events.$on(b.$win,"keydown",aa),b.events.on("toolbar.esc",function(){if(Ea){if(b.$wp)b.events.disableBlur(),b.events.focus();else{var a=Ea;ka(!0),b.selection.setAfter(a.get(0)),b.selection.restore()}return!1}},!0),b.events.on("toolbar.focusEditor",function(){return Ea?!1:void 0},!0),b.events.on("window.cut window.copy",function(c){if(Ea&&b.popups.isVisible("image.edit")&&!b.popups.get("image.edit").find(":focus").length){var d=Aa();Ca()?(d.before(a.FE.START_MARKER),d.after(a.FE.END_MARKER),b.selection.restore(),b.paste.saveCopiedText(d.get(0).outerHTML,d.text())):(xa(),b.paste.saveCopiedText(Ea.get(0).outerHTML,Ea.attr("alt"))),"copy"==c.type?setTimeout(function(){x(Ea)}):(ka(!0),b.undo.saveStep(),setTimeout(function(){b.undo.saveStep()},0))}},!0),b.browser.msie&&b.events.on("keydown",function(c){if(!b.selection.isCollapsed()||!Ea)return!0;var d=c.which;d==a.FE.KEYCODE.C&&b.keys.ctrlKey(c)?b.events.trigger("window.copy"):d==a.FE.KEYCODE.X&&b.keys.ctrlKey(c)&&b.events.trigger("window.cut")}),b.events.$on(a(b.o_win),"keydown",function(b){var c=b.which;return Ea&&c==a.FE.KEYCODE.BACKSPACE?(b.preventDefault(),!1):void 0}),b.events.$on(b.$win,"keydown",function(b){var c=b.which;Ea&&Ea.hasClass("fr-uploading")&&c==a.FE.KEYCODE.ESC&&Ea.trigger("abortUpload")}),b.events.on("destroy",function(){Ea&&Ea.hasClass("fr-uploading")&&Ea.trigger("abortUpload")}),b.events.on("paste.before",ha),b.events.on("paste.beforeCleanup",ia),b.events.on("paste.after",ea),b.events.on("html.set",i),b.events.on("html.inserted",i),i(),b.events.on("destroy",function(){Sa=[]}),b.events.on("html.processGet",ba),b.opts.imageOutputSize){var c;b.events.on("html.beforeGet",function(){c=b.el.querySelectorAll("img");for(var d=0;d<c.length;d++){var e=c[d].style.width||a(c[d]).width(),f=c[d].style.height||a(c[d]).height();e&&c[d].setAttribute("width",(""+e).replace(/px/,"")),f&&c[d].setAttribute("height",(""+f).replace(/px/,""))}})}b.opts.iframe&&b.events.on("image.loaded",b.size.syncIframe),b.$wp&&(j(),b.events.on("contentChanged",j)),b.events.$on(a(b.o_win),"orientationchange.image",function(){setTimeout(function(){Ea&&x(Ea)},100)}),r(!0),N(!0),U(!0),Q(!0),b.events.on("node.remove",function(a){return"IMG"==a.get(0).tagName?(_(a),!1):void 0})}function da(c){if(b.events.trigger("image.beforePasteUpload",[c])===!1)return!1;Ea=a(c),k(),e(),wa(),s();for(var d=atob(a(c).attr("src").split(",")[1]),f=[],g=0;g<d.length;g++)f.push(d.charCodeAt(g));var h=new Blob([new Uint8Array(f)],{type:"image/jpeg"});I([h],Ea)}function ea(){b.opts.imagePaste?b.$el.find("img[data-fr-image-pasted]").each(function(c,d){if(b.opts.imagePasteProcess){var e=b.opts.imageDefaultWidth;e&&"auto"!=e&&(e+=b.opts.imageResizeWithPercent?"%":"px"),a(d).css("width",e).removeClass("fr-dii fr-dib fr-fir fr-fil"),oa(a(d),b.opts.imageDefaultDisplay,b.opts.imageDefaultAlign)}if(0===d.src.indexOf("data:"))da(d);else if(0===d.src.indexOf("blob:")||0===d.src.indexOf("http")&&b.opts.imageUploadRemoteUrls&&b.opts.imageCORSProxy){var f=new Image;f.crossOrigin="Anonymous",f.onload=function(){var a=b.o_doc.createElement("CANVAS"),c=a.getContext("2d");a.height=this.naturalHeight,a.width=this.naturalWidth,c.drawImage(this,0,0),d.src=a.toDataURL("image/png"),da(d)},f.src=(0===d.src.indexOf("blob:")?"":b.opts.imageCORSProxy+"/")+d.src}else 0!==d.src.indexOf("http")||0===d.src.indexOf("https://mail.google.com/mail")?(b.selection.save(), +a(d).remove(),b.selection.restore()):a(d).removeAttr("data-fr-image-pasted")}):b.$el.find("img[data-fr-image-pasted]").remove()}function fa(a){var c=a.target.result,d=b.opts.imageDefaultWidth;d&&"auto"!=d&&(d+=b.opts.imageResizeWithPercent?"%":"px"),b.undo.saveStep(),b.html.insert('<img data-fr-image-pasted="true" src="'+c+'"'+(d?' style="width: '+d+';"':"")+">");var e=b.$el.find('img[data-fr-image-pasted="true"]');e&&oa(e,b.opts.imageDefaultDisplay,b.opts.imageDefaultAlign),b.events.trigger("paste.after")}function ga(a){var b=new FileReader;b.onload=fa,b.readAsDataURL(a)}function ha(a){if(a&&a.clipboardData&&a.clipboardData.items){var b=null;if(a.clipboardData.getData("text/rtf"))b=a.clipboardData.items[0].getAsFile();else for(var c=0;c<a.clipboardData.items.length&&!(b=a.clipboardData.items[c].getAsFile());c++);if(b)return ga(b),!1}}function ia(a){return a=a.replace(/<img /gi,'<img data-fr-image-pasted="true" ')}function ja(c){if("false"==a(this).parents("[contenteditable]:not(.fr-element):not(.fr-img-caption):not(body):first").attr("contenteditable"))return!0;if(c&&"touchend"==c.type&&Ta)return!0;if(c&&b.edit.isDisabled())return c.stopPropagation(),c.preventDefault(),!1;for(var d=0;d<a.FE.INSTANCES.length;d++)a.FE.INSTANCES[d]!=b&&a.FE.INSTANCES[d].events.trigger("image.hideResizer");b.toolbar.disable(),c&&(c.stopPropagation(),c.preventDefault()),b.helpers.isMobile()&&(b.events.disableBlur(),b.$el.blur(),b.events.enableBlur()),b.opts.iframe&&b.size.syncIframe(),Ea=a(this),b.browser.msie||xa(),k(),e(),b.browser.msie||b.selection.clear(),b.helpers.isIOS()&&(b.events.disableBlur(),b.$el.blur()),b.button.bulkRefresh(),b.events.trigger("video.hideResizer")}function ka(a){Ea&&(na()||a===!0)&&(b.toolbar.enable(),Fa.removeClass("fr-active"),b.popups.hide("image.edit"),Ea=null,ma(),Ga=null,Ha&&Ha.hide())}function la(){Ua=!0}function ma(){Ua=!1}function na(){return Ua}function oa(a,c,d){!b.opts.htmlUntouched&&b.opts.useClasses?(a.removeClass("fr-fil fr-fir fr-dib fr-dii"),d&&a.addClass("fr-fi"+d[0]),c&&a.addClass("fr-di"+c[0])):"inline"==c?(a.css({display:"inline-block",verticalAlign:"bottom",margin:b.opts.imageDefaultMargin}),"center"==d?a.css({"float":"none",marginBottom:"",marginTop:"",maxWidth:"calc(100% - "+2*b.opts.imageDefaultMargin+"px)",textAlign:"center"}):"left"==d?a.css({"float":"left",marginLeft:0,maxWidth:"calc(100% - "+b.opts.imageDefaultMargin+"px)",textAlign:"left"}):a.css({"float":"right",marginRight:0,maxWidth:"calc(100% - "+b.opts.imageDefaultMargin+"px)",textAlign:"right"})):"block"==c&&(a.css({display:"block","float":"none",verticalAlign:"top",margin:b.opts.imageDefaultMargin+"px auto",textAlign:"center"}),"left"==d?a.css({marginLeft:0,textAlign:"left"}):"right"==d&&a.css({marginRight:0,textAlign:"right"}))}function pa(a){var c=Aa();c.removeClass("fr-fir fr-fil"),!b.opts.htmlUntouched&&b.opts.useClasses?"left"==a?c.addClass("fr-fil"):"right"==a&&c.addClass("fr-fir"):oa(c,ra(),a),xa(),k(),e(),b.selection.clear()}function qa(a){if("undefined"==typeof a&&(a=Aa()),a){if(a.hasClass("fr-fil"))return"left";if(a.hasClass("fr-fir"))return"right";if(a.hasClass("fr-dib")||a.hasClass("fr-dii"))return"center";var b=a.css("float");if(a.css("float","none"),"block"==a.css("display")){if(a.css("float",""),a.css("float")!=b&&a.css("float",b),0===parseInt(a.css("margin-left"),10))return"left";if(0===parseInt(a.css("margin-right"),10))return"right"}else{if(a.css("float",""),a.css("float")!=b&&a.css("float",b),"left"==a.css("float"))return"left";if("right"==a.css("float"))return"right"}}return"center"}function ra(a){"undefined"==typeof a&&(a=Aa());var b=a.css("float");return a.css("float","none"),"block"==a.css("display")?(a.css("float",""),a.css("float")!=b&&a.css("float",b),"block"):(a.css("float",""),a.css("float")!=b&&a.css("float",b),"inline")}function sa(a){Ea&&a.find("> *:first").replaceWith(b.icon.create("image-align-"+qa()))}function ta(a,b){Ea&&b.find('.fr-command[data-param1="'+qa()+'"]').addClass("fr-active").attr("aria-selected",!0)}function ua(a){var c=Aa();c.removeClass("fr-dii fr-dib"),!b.opts.htmlUntouched&&b.opts.useClasses?"inline"==a?c.addClass("fr-dii"):"block"==a&&c.addClass("fr-dib"):oa(c,a,qa()),xa(),k(),e(),b.selection.clear()}function va(a,b){Ea&&b.find('.fr-command[data-param1="'+ra()+'"]').addClass("fr-active").attr("aria-selected",!0)}function wa(){var a=b.popups.get("image.insert");a||(a=N()),b.popups.isVisible("image.insert")||(t(),b.popups.refresh("image.insert"),b.popups.setContainer("image.insert",b.$sc));var c=Aa();Ca()&&(c=c.find(".fr-img-wrap"));var d=c.offset().left+c.outerWidth()/2,e=c.offset().top+c.outerHeight();b.popups.show("image.insert",d,e,c.outerHeight(!0))}function xa(){if(Ea){b.events.disableBlur(),b.selection.clear();var a=b.doc.createRange();a.selectNode(Ea.get(0));var c=b.selection.get();c.addRange(a),b.events.enableBlur()}}function ya(){Ea?(b.events.disableBlur(),a(".fr-popup input:focus").blur(),x(Ea)):(b.events.disableBlur(),b.selection.restore(),b.events.enableBlur(),b.popups.hide("image.insert"),b.toolbar.showInline())}function za(){return Ea}function Aa(){return Ca()?Ea.parents(".fr-img-caption:first"):Ea}function Ba(a,c,d){if("undefined"==typeof c&&(c=b.opts.imageStyles),"undefined"==typeof d&&(d=b.opts.imageMultipleStyles),!Ea)return!1;var e=Aa();if(!d){var f=Object.keys(c);f.splice(f.indexOf(a),1),e.removeClass(f.join(" "))}"object"==typeof c[a]?(e.removeAttr("style"),e.css(c[a].style)):e.toggleClass(a),x(Ea)}function Ca(){return Ea?Ea.parents(".fr-img-caption").length>0:!1}function Da(){var c;Ea&&!Ca()?(c=Ea,Ea.parent().is("a")&&(c=Ea.parent()),c.wrap("<span "+(b.browser.mozilla?"":'contenteditable="false"')+'class="fr-img-caption '+Ea.attr("class")+'" style="'+(Ea.attr("style")?Ea.attr("style")+" ":"")+"width: "+Ea.width()+'px;" draggable="false"></span>'),c.wrap('<span class="fr-img-wrap"></span>'),c.after('<span class="fr-inner" contenteditable="true">'+a.FE.START_MARKER+"Image caption"+a.FE.END_MARKER+"</span>"),Ea.removeAttr("class").removeAttr("style").removeAttr("width"),ka(!0),b.selection.restore()):(c=Aa(),Ea.insertAfter(c),Ea.attr("class",c.attr("class").replace("fr-img-caption","")).attr("style",c.attr("style")),c.remove(),x(Ea))}var Ea,Fa,Ga,Ha,Ia=!1,Ja=1,Ka=2,La=3,Ma=4,Na=5,Oa=6,Pa=7,Qa=8,Ra={};Ra[Ja]="Image cannot be loaded from the passed link.",Ra[Ka]="No link in upload response.",Ra[La]="Error during file upload.",Ra[Ma]="Parsing response failed.",Ra[Na]="File is too large.",Ra[Oa]="Image file type is invalid.",Ra[Pa]="Files can be uploaded only to same domain in IE 8 and IE 9.",Ra[Qa]="Image file is corrupted.";var Sa,Ta,Ua=!1;return{_init:ca,showInsertPopup:d,showLayer:W,refreshUploadButton:X,refreshByURLButton:Y,upload:I,insertByURL:w,align:pa,refreshAlign:sa,refreshAlignOnShow:ta,display:ua,refreshDisplayOnShow:va,replace:wa,back:ya,get:za,getEl:Aa,insert:z,showProgressBar:s,remove:_,hideProgressBar:t,applyStyle:Ba,showAltPopup:P,showSizePopup:T,setAlt:R,setSize:V,toggleCaption:Da,hasCaption:Ca,exitEdit:ka,edit:x}},a.FE.DefineIcon("insertImage",{NAME:"image"}),a.FE.RegisterShortcut(a.FE.KEYCODE.P,"insertImage",null,"P"),a.FE.RegisterCommand("insertImage",{title:"Insert Image",undo:!1,focus:!0,refreshAfterCallback:!1,popup:!0,callback:function(){this.popups.isVisible("image.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("image.insert")):this.image.showInsertPopup()},plugin:"image"}),a.FE.DefineIcon("imageUpload",{NAME:"upload"}),a.FE.RegisterCommand("imageUpload",{title:"Upload Image",undo:!1,focus:!1,toggle:!0,callback:function(){this.image.showLayer("image-upload")},refresh:function(a){this.image.refreshUploadButton(a)}}),a.FE.DefineIcon("imageByURL",{NAME:"link"}),a.FE.RegisterCommand("imageByURL",{title:"By URL",undo:!1,focus:!1,toggle:!0,callback:function(){this.image.showLayer("image-by-url")},refresh:function(a){this.image.refreshByURLButton(a)}}),a.FE.RegisterCommand("imageInsertByURL",{title:"Insert Image",undo:!0,refreshAfterCallback:!1,callback:function(){this.image.insertByURL()},refresh:function(a){var b=this.image.get();b?a.text(this.language.translate("Replace")):a.text(this.language.translate("Insert"))}}),a.FE.DefineIcon("imageDisplay",{NAME:"star"}),a.FE.RegisterCommand("imageDisplay",{title:"Display",type:"dropdown",options:{inline:"Inline",block:"Break Text"},callback:function(a,b){this.image.display(b)},refresh:function(a){this.opts.imageTextNear||a.addClass("fr-hidden")},refreshOnShow:function(a,b){this.image.refreshDisplayOnShow(a,b)}}),a.FE.DefineIcon("image-align",{NAME:"align-left"}),a.FE.DefineIcon("image-align-left",{NAME:"align-left"}),a.FE.DefineIcon("image-align-right",{NAME:"align-right"}),a.FE.DefineIcon("image-align-center",{NAME:"align-justify"}),a.FE.DefineIcon("imageAlign",{NAME:"align-justify"}),a.FE.RegisterCommand("imageAlign",{type:"dropdown",title:"Align",options:{left:"Align Left",center:"None",right:"Align Right"},html:function(){var b='<ul class="fr-dropdown-list" role="presentation">',c=a.FE.COMMANDS.imageAlign.options;for(var d in c)c.hasOwnProperty(d)&&(b+='<li role="presentation"><a class="fr-command fr-title" tabIndex="-1" role="option" data-cmd="imageAlign" data-param1="'+d+'" title="'+this.language.translate(c[d])+'">'+this.icon.create("image-align-"+d)+'<span class="fr-sr-only">'+this.language.translate(c[d])+"</span></a></li>");return b+="</ul>"},callback:function(a,b){this.image.align(b)},refresh:function(a){this.image.refreshAlign(a)},refreshOnShow:function(a,b){this.image.refreshAlignOnShow(a,b)}}),a.FE.DefineIcon("imageReplace",{NAME:"exchange",FA5NAME:"exchange-alt"}),a.FE.RegisterCommand("imageReplace",{title:"Replace",undo:!1,focus:!1,popup:!0,refreshAfterCallback:!1,callback:function(){this.image.replace()}}),a.FE.DefineIcon("imageRemove",{NAME:"trash"}),a.FE.RegisterCommand("imageRemove",{title:"Remove",callback:function(){this.image.remove()}}),a.FE.DefineIcon("imageBack",{NAME:"arrow-left"}),a.FE.RegisterCommand("imageBack",{title:"Back",undo:!1,focus:!1,back:!0,callback:function(){this.image.back()},refresh:function(a){var b=this.image.get();b||this.opts.toolbarInline?(a.removeClass("fr-hidden"),a.next(".fr-separator").removeClass("fr-hidden")):(a.addClass("fr-hidden"),a.next(".fr-separator").addClass("fr-hidden"))}}),a.FE.RegisterCommand("imageDismissError",{title:"OK",undo:!1,callback:function(){this.image.hideProgressBar(!0)}}),a.FE.DefineIcon("imageStyle",{NAME:"magic"}),a.FE.RegisterCommand("imageStyle",{title:"Style",type:"dropdown",html:function(){var a='<ul class="fr-dropdown-list" role="presentation">',b=this.opts.imageStyles;for(var c in b)if(b.hasOwnProperty(c)){var d=b[c];"object"==typeof d&&(d=d.title),a+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="imageStyle" data-param1="'+c+'">'+this.language.translate(d)+"</a></li>"}return a+="</ul>"},callback:function(a,b){this.image.applyStyle(b)},refreshOnShow:function(b,c){var d=this.image.getEl();d&&c.find(".fr-command").each(function(){var b=a(this).data("param1"),c=d.hasClass(b);a(this).toggleClass("fr-active",c).attr("aria-selected",c)})}}),a.FE.DefineIcon("imageAlt",{NAME:"info"}),a.FE.RegisterCommand("imageAlt",{undo:!1,focus:!1,popup:!0,title:"Alternate Text",callback:function(){this.image.showAltPopup()}}),a.FE.RegisterCommand("imageSetAlt",{undo:!0,focus:!1,title:"Update",refreshAfterCallback:!1,callback:function(){this.image.setAlt()}}),a.FE.DefineIcon("imageSize",{NAME:"arrows-alt"}),a.FE.RegisterCommand("imageSize",{undo:!1,focus:!1,popup:!0,title:"Change Size",callback:function(){this.image.showSizePopup()}}),a.FE.RegisterCommand("imageSetSize",{undo:!0,focus:!1,title:"Update",refreshAfterCallback:!1,callback:function(){this.image.setSize()}}),a.FE.DefineIcon("imageCaption",{NAME:"commenting",FA5NAME:"comment-alt"}),a.FE.RegisterCommand("imageCaption",{undo:!0,focus:!1,title:"Image Caption",refreshAfterCallback:!0,callback:function(){this.image.toggleCaption()},refresh:function(a){this.image.get()&&a.toggleClass("fr-active",this.image.hasCaption())}})}); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/image_manager.min.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/image_manager.min.js new file mode 100644 index 0000000..175338b --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/image_manager.min.js @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){if(a.extend(a.FE.DEFAULTS,{imageManagerLoadURL:"https://i.froala.com/load-files",imageManagerLoadMethod:"get",imageManagerLoadParams:{},imageManagerPreloader:null,imageManagerDeleteURL:"",imageManagerDeleteMethod:"post",imageManagerDeleteParams:{},imageManagerPageSize:12,imageManagerScrollOffset:20,imageManagerToggleTags:!0}),a.FE.PLUGINS.imageManager=function(b){function c(){if(!z){var a='<div class="fr-modal-head-line"><i class="fa fa-bars fr-modal-more fr-not-available" id="fr-modal-more-'+b.sid+'" title="'+b.language.translate("Tags")+'"></i><h4 data-text="true">'+b.language.translate("Manage Images")+"</h4></div>";a+='<div class="fr-modal-tags" id="fr-modal-tags"></div>';var c;c=b.opts.imageManagerPreloader?'<img class="fr-preloader" id="fr-preloader" alt="'+b.language.translate("Loading")+'.." src="'+b.opts.imageManagerPreloader+'" style="display: none;">':'<span class="fr-preloader" id="fr-preloader" style="display: none;">'+b.language.translate("Loading")+"</span>",c+='<div class="fr-image-list" id="fr-image-list"></div>';var d=b.modals.create(K,a,c);z=d.$modal,A=d.$head,B=d.$body}z.data("current-image",b.image.get()),b.modals.show(K),C||x(),g()}function d(){b.modals.hide(K)}function e(){var b=a(window).outerWidth();return 768>b?2:1200>b?3:4}function f(){D.empty();for(var a=0;J>a;a++)D.append('<div class="fr-list-column"></div>')}function g(){C.show(),D.find(".fr-list-column").empty(),b.opts.imageManagerLoadURL?a.ajax({url:b.opts.imageManagerLoadURL,method:b.opts.imageManagerLoadMethod,data:b.opts.imageManagerLoadParams,dataType:"json",crossDomain:b.opts.requestWithCORS,xhrFields:{withCredentials:b.opts.requestWithCredentials},headers:b.opts.requestHeaders}).done(function(a,c,d){b.events.trigger("imageManager.imagesLoaded",[a]),h(a,d.response),C.hide()}).fail(function(){var a=this.xhr();s(M,a.response||a.responseText)}):s(N)}function h(a,b){try{D.find(".fr-list-column").empty(),G=0,H=0,I=0,F=a,i()}catch(c){s(O,b)}}function i(){if(H<F.length&&(D.outerHeight()<=B.outerHeight()+b.opts.imageManagerScrollOffset||B.scrollTop()+b.opts.imageManagerScrollOffset>D.outerHeight()-B.outerHeight())){G++;for(var a=b.opts.imageManagerPageSize*(G-1);a<Math.min(F.length,b.opts.imageManagerPageSize*G);a++)j(F[a])}}function j(c){var d=new Image,e=a('<div class="fr-image-container fr-empty fr-image-'+I++ +'" data-loading="'+b.language.translate("Loading")+'.." data-deleting="'+b.language.translate("Deleting")+'..">');n(!1),d.onload=function(){e.height(Math.floor(e.width()/d.width*d.height));var f=a("<img/>");if(c.thumb)f.attr("src",c.thumb);else{if(s(P,c),!c.url)return s(Q,c),!1;f.attr("src",c.url)}if(c.url&&f.attr("data-url",c.url),c.tag)if(A.find(".fr-modal-more.fr-not-available").removeClass("fr-not-available"),A.find(".fr-modal-tags").show(),c.tag.indexOf(",")>=0){for(var g=c.tag.split(","),h=0;h<g.length;h++)g[h]=g[h].trim(),0===E.find('a[title="'+g[h]+'"]').length&&E.append('<a role="button" title="'+g[h]+'">'+g[h]+"</a>");f.attr("data-tag",g.join())}else 0===E.find('a[title="'+c.tag.trim()+'"]').length&&E.append('<a role="button" title="'+c.tag.trim()+'">'+c.tag.trim()+"</a>"),f.attr("data-tag",c.tag.trim());c.name&&f.attr("alt",c.name);for(var j in c)c.hasOwnProperty(j)&&"thumb"!=j&&"url"!=j&&"tag"!=j&&f.attr("data-"+j,c[j]);e.append(f).append(a(b.icon.create("imageManagerDelete")).addClass("fr-delete-img").attr("title",b.language.translate("Delete"))).append(a(b.icon.create("imageManagerInsert")).addClass("fr-insert-img").attr("title",b.language.translate("Insert"))),E.find(".fr-selected-tag").each(function(a,b){w(f,b.text)||e.hide()}),f.on("load",function(){e.removeClass("fr-empty"),e.height("auto"),H++;var a=l(parseInt(f.parent().attr("class").match(/fr-image-(\d+)/)[1],10)+1);m(a),n(!1),H%b.opts.imageManagerPageSize===0&&i()}),b.events.trigger("imageManager.imageLoaded",[f])},d.onerror=function(){H++,e.remove();var a=l(parseInt(e.attr("class").match(/fr-image-(\d+)/)[1],10)+1);m(a),s(L,c),H%b.opts.imageManagerPageSize===0&&i()},d.src=c.thumb||c.url,k().append(e)}function k(){var b,c;return D.find(".fr-list-column").each(function(d,e){var f=a(e);0===d?(c=f.outerHeight(),b=f):f.outerHeight()<c&&(c=f.outerHeight(),b=f)}),b}function l(b){void 0===b&&(b=0);for(var c=[],d=I-1;d>=b;d--){var e=D.find(".fr-image-"+d);e.length&&(c.push(e),a('<div id="fr-image-hidden-container">').append(e),D.find(".fr-image-"+d).remove())}return c}function m(a){for(var b=a.length-1;b>=0;b--)k().append(a[b])}function n(a){if(void 0===a&&(a=!0),!z.is(":visible"))return!0;var c=e();if(c!=J){J=c;var d=l();f(),m(d)}b.modals.resize(K),a&&i()}function o(a){var b={},c=a.data();for(var d in c)c.hasOwnProperty(d)&&"url"!=d&&"tag"!=d&&(b[d]=c[d]);return b}function p(c){var d=a(c.currentTarget).siblings("img"),e=z.data("instance")||b,f=z.data("current-image");if(b.modals.hide(K),e.image.showProgressBar(),f)f.data("fr-old-src",f.attr("src")),f.trigger("click");else{e.events.focus(!0),e.selection.restore();var g=e.position.getBoundingRect(),h=g.left+g.width/2+a(b.doc).scrollLeft(),i=g.top+g.height+a(b.doc).scrollTop();e.popups.setContainer("image.insert",b.$sc),e.popups.show("image.insert",h,i)}e.image.insert(d.data("url"),!1,o(d),f)}function q(){z.find("#fr-modal-tags > a").each(function(){0===z.find('#fr-image-list [data-tag*="'+a(this).text()+'"]').length&&a(this).removeClass("fr-selected-tag").hide()}),u()}function r(c){var d=a(c.currentTarget).siblings("img"),e=b.language.translate("Are you sure? Image will be deleted.");confirm(e)&&(b.opts.imageManagerDeleteURL?b.events.trigger("imageManager.beforeDeleteImage",[d])!==!1&&(d.parent().addClass("fr-image-deleting"),a.ajax({method:b.opts.imageManagerDeleteMethod,url:b.opts.imageManagerDeleteURL,data:a.extend(a.extend({src:d.attr("src")},o(d)),b.opts.imageManagerDeleteParams),crossDomain:b.opts.requestWithCORS,xhrFields:{withCredentials:b.opts.requestWithCredentials},headers:b.opts.requestHeaders}).done(function(a){b.events.trigger("imageManager.imageDeleted",[a]);var c=l(parseInt(d.parent().attr("class").match(/fr-image-(\d+)/)[1],10)+1);d.parent().remove(),m(c),q(),n(!0)}).fail(function(a){s(R,a.response||a.responseText)})):s(S))}function s(c,d){c>=10&&20>c?C.hide():c>=20&&30>c&&a(".fr-image-deleting").removeClass("fr-image-deleting"),b.events.trigger("imageManager.error",[{code:c,message:T[c]},d])}function t(){var a=A.find(".fr-modal-head-line").outerHeight(),b=E.outerHeight();A.toggleClass("fr-show-tags"),A.hasClass("fr-show-tags")?(A.css("height",a+b),E.find("a").css("opacity",1)):(A.css("height",a),E.find("a").css("opacity",0))}function u(){var b=E.find(".fr-selected-tag");b.length>0?(D.find("img").parent().show(),b.each(function(b,c){D.find("img").each(function(b,d){var e=a(d);w(e,c.text)||e.parent().hide()})})):D.find("img").parent().show();var c=l();m(c),i()}function v(c){c.preventDefault();var d=a(c.currentTarget);d.toggleClass("fr-selected-tag"),b.opts.imageManagerToggleTags&&d.siblings("a").removeClass("fr-selected-tag"),u()}function w(a,b){for(var c=(a.attr("data-tag")||"").split(","),d=0;d<c.length;d++)if(c[d]==b)return!0;return!1}function x(){C=z.find("#fr-preloader"),D=z.find("#fr-image-list"),E=z.find("#fr-modal-tags"),J=e(),f(),A.css("height",A.find(".fr-modal-head-line").outerHeight()),b.events.$on(a(b.o_win),"resize",function(){n(F?!0:!1)}),b.helpers.isMobile()&&(b.events.bindClick(D,"div.fr-image-container",function(b){z.find(".fr-mobile-selected").removeClass("fr-mobile-selected"),a(b.currentTarget).addClass("fr-mobile-selected")}),z.on(b._mousedown,function(){z.find(".fr-mobile-selected").removeClass("fr-mobile-selected")})),b.events.bindClick(D,".fr-insert-img",p),b.events.bindClick(D,".fr-delete-img",r),z.on(b._mousedown+" "+b._mouseup,function(a){a.stopPropagation()}),z.on(b._mousedown,"*",function(){b.events.disableBlur()}),B.on("scroll",i),b.events.bindClick(z,"i#fr-modal-more-"+b.sid,t),b.events.bindClick(E,"a",v)}function y(){return b.$wp||"IMG"==b.el.tagName?void 0:!1}var z,A,B,C,D,E,F,G,H,I,J,K="image_manager",L=10,M=11,N=12,O=13,P=14,Q=15,R=21,S=22,T={};return T[L]="Image cannot be loaded from the passed link.",T[M]="Error during load images request.",T[N]="Missing imageManagerLoadURL option.",T[O]="Parsing load response failed.",T[P]="Missing image thumb.",T[Q]="Missing image URL.",T[R]="Error during delete image request.",T[S]="Missing imageManagerDeleteURL option.",{require:["image"],_init:y,show:c,hide:d}},!a.FE.PLUGINS.image)throw new Error("Image manager plugin requires image plugin.");a.FE.DEFAULTS.imageInsertButtons.push("imageManager"),a.FE.RegisterCommand("imageManager",{title:"Browse",undo:!1,focus:!1,modal:!0,callback:function(){this.imageManager.show()},plugin:"imageManager"}),a.FE.DefineIcon("imageManager",{NAME:"folder"}),a.FE.DefineIcon("imageManagerInsert",{NAME:"plus"}),a.FE.DefineIcon("imageManagerDelete",{NAME:"trash"})}); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/inline_style.min.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/inline_style.min.js new file mode 100644 index 0000000..9d343f3 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/inline_style.min.js @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.DEFAULTS,{inlineStyles:{"Big Red":"font-size: 20px; color: red;","Small Blue":"font-size: 14px; color: blue;"}}),a.FE.PLUGINS.inlineStyle=function(b){function c(c){""!==b.selection.text()?b.html.insert(a.FE.START_MARKER+'<span style="'+c+'">'+b.selection.text()+"</span>"+a.FE.END_MARKER):b.html.insert('<span style="'+c+'">'+a.FE.INVISIBLE_SPACE+a.FE.MARKERS+"</span>")}return{apply:c}},a.FE.RegisterCommand("inlineStyle",{type:"dropdown",html:function(){var a='<ul class="fr-dropdown-list" role="presentation">',b=this.opts.inlineStyles;for(var c in b)b.hasOwnProperty(c)&&(a+='<li role="presentation"><span style="'+b[c]+'" role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="inlineStyle" data-param1="'+b[c]+'" title="'+this.language.translate(c)+'">'+this.language.translate(c)+"</a></span></li>");return a+="</ul>"},title:"Inline Style",callback:function(a,b){this.inlineStyle.apply(b)},plugin:"inlineStyle"}),a.FE.DefineIcon("inlineStyle",{NAME:"paint-brush"})}); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/line_breaker.min.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/line_breaker.min.js new file mode 100644 index 0000000..8dc035e --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/line_breaker.min.js @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.DEFAULTS,{lineBreakerTags:["table","hr","form","dl","span.fr-video",".fr-embedly"],lineBreakerOffset:15,lineBreakerHorizontalOffset:10}),a.FE.PLUGINS.lineBreaker=function(b){function c(c,d){var e,f,g,h,i,j,k,l;if(null==c)h=d.parent(),i=h.offset().top,k=d.offset().top,e=k-Math.min((k-i)/2,b.opts.lineBreakerOffset),g=h.outerWidth(),f=h.offset().left;else if(null==d)h=c.parent(),j=h.offset().top+h.outerHeight(),l=c.offset().top+c.outerHeight(),l>j&&(h=a(h).parent(),j=h.offset().top+h.outerHeight()),e=l+Math.min(Math.abs(j-l)/2,b.opts.lineBreakerOffset),g=h.outerWidth(),f=h.offset().left;else{h=c.parent();var m=c.offset().top+c.height(),n=d.offset().top;if(m>n)return!1;e=(m+n)/2,g=h.outerWidth(),f=h.offset().left}b.opts.iframe&&(f+=b.$iframe.offset().left-b.helpers.scrollLeft(),e+=b.$iframe.offset().top-b.helpers.scrollTop()),b.$box.append(r),r.css("top",e-b.win.pageYOffset),r.css("left",f-b.win.pageXOffset),r.css("width",g),r.data("tag1",c),r.data("tag2",d),r.addClass("fr-visible").data("instance",b)}function d(a,d){var f,g,h=a.offset().top,i=a.offset().top+a.outerHeight();if(Math.abs(i-d)<=b.opts.lineBreakerOffset||Math.abs(d-h)<=b.opts.lineBreakerOffset)if(Math.abs(i-d)<Math.abs(d-h)){g=a.get(0);for(var j=g.nextSibling;j&&j.nodeType==Node.TEXT_NODE&&0===j.textContent.length;)j=j.nextSibling;if(!j)return c(a,null),!0;if(f=e(j))return c(a,f),!0}else{if(g=a.get(0),!g.previousSibling)return c(null,a),!0;if(f=e(g.previousSibling))return c(f,a),!0}r.removeClass("fr-visible").removeData("instance")}function e(c){if(c){var d=a(c);if(0===b.$el.find(d).length)return null;if(c.nodeType!=Node.TEXT_NODE&&d.is(b.opts.lineBreakerTags.join(",")))return d;if(d.parents(b.opts.lineBreakerTags.join(",")).length>0)return c=d.parents(b.opts.lineBreakerTags.join(",")).get(0),0!==b.$el.find(c).length&&a(c).is(b.opts.lineBreakerTags.join(","))?a(c):null}return null}function f(a){if("undefined"!=typeof a.inFroalaWrapper)return a.inFroalaWrapper;for(var c=a;a.parentNode&&a.parentNode!==b.$wp.get(0);)a=a.parentNode;return c.inFroalaWrapper=a.parentNode==b.$wp.get(0),c.inFroalaWrapper}function g(a,c){var d=b.doc.elementFromPoint(a,c);return d&&!d.closest(".fr-line-breaker")&&!b.node.isElement(d)&&d!=b.$wp.get(0)&&f(d)?d:null}function h(a,c,d){for(var e=d,f=null;e<=b.opts.lineBreakerOffset&&!f;)f=g(a,c-e),f||(f=g(a,c+e)),e+=d;return f}function i(a,c,d){for(var e=null,f=100;!e&&a>b.$box.offset().left&&a<b.$box.offset().left+b.$box.outerWidth()&&f>0;)e=g(a,c),e||(e=h(a,c,5)),"left"==d?a-=b.opts.lineBreakerHorizontalOffset:a+=b.opts.lineBreakerHorizontalOffset,f-=b.opts.lineBreakerHorizontalOffset;return e}function j(a){t=null;var c=null,f=null,g=b.doc.elementFromPoint(a.pageX-b.win.pageXOffset,a.pageY-b.win.pageYOffset);g&&("HTML"==g.tagName||"BODY"==g.tagName||b.node.isElement(g)||(g.getAttribute("class")||"").indexOf("fr-line-breaker")>=0)?(f=h(a.pageX-b.win.pageXOffset,a.pageY-b.win.pageYOffset,1),f||(f=i(a.pageX-b.win.pageXOffset-b.opts.lineBreakerHorizontalOffset,a.pageY-b.win.pageYOffset,"left")),f||(f=i(a.pageX-b.win.pageXOffset+b.opts.lineBreakerHorizontalOffset,a.pageY-b.win.pageYOffset,"right")),c=e(f)):c=e(g),c?d(c,a.pageY):b.core.sameInstance(r)&&r.removeClass("fr-visible").removeData("instance")}function k(a){return r.hasClass("fr-visible")&&!b.core.sameInstance(r)?!1:b.popups.areVisible()||b.el.querySelector(".fr-selected-cell")?(r.removeClass("fr-visible"),!0):void(s!==!1||b.edit.isDisabled()||(t&&clearTimeout(t),t=setTimeout(j,30,a)))}function l(){t&&clearTimeout(t),r.hasClass("fr-visible")&&r.removeClass("fr-visible").removeData("instance")}function m(){s=!0,l()}function n(){s=!1}function o(c){c.preventDefault();var d=r.data("instance")||b;r.removeClass("fr-visible").removeData("instance");var e=r.data("tag1"),f=r.data("tag2"),g=b.html.defaultTag();null==e?g&&"TD"!=f.parent().get(0).tagName&&0===f.parents(g).length?f.before("<"+g+">"+a.FE.MARKERS+"<br></"+g+">"):f.before(a.FE.MARKERS+"<br>"):g&&"TD"!=e.parent().get(0).tagName&&0===e.parents(g).length?e.after("<"+g+">"+a.FE.MARKERS+"<br></"+g+">"):e.after(a.FE.MARKERS+"<br>"),d.selection.restore()}function p(){b.shared.$line_breaker||(b.shared.$line_breaker=a('<div class="fr-line-breaker"><a class="fr-floating-btn" role="button" tabIndex="-1" title="'+b.language.translate("Break")+'"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><rect x="21" y="11" width="2" height="8"/><rect x="14" y="17" width="7" height="2"/><path d="M14.000,14.000 L14.000,22.013 L9.000,18.031 L14.000,14.000 Z"/></svg></a></div>')),r=b.shared.$line_breaker,b.events.on("shared.destroy",function(){r.html("").removeData().remove(),r=null},!0),b.events.on("destroy",function(){r.removeData("instance").removeClass("fr-visible").appendTo("body:first"),clearTimeout(t)},!0),b.events.$on(r,"mousemove",function(a){a.stopPropagation()},!0),b.events.bindClick(r,"a",o)}function q(){return b.$wp?(p(),s=!1,b.events.$on(b.$win,"mousemove",k),b.events.$on(a(b.win),"scroll",l),b.events.on("popups.show.table.edit",l),b.events.on("commands.after",l),b.events.$on(a(b.win),"mousedown",m),void b.events.$on(a(b.win),"mouseup",n)):!1}var r,s,t;return{_init:q}}}); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/link.min.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/link.min.js new file mode 100644 index 0000000..81c905e --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/link.min.js @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.POPUP_TEMPLATES,{"link.edit":"[_BUTTONS_]","link.insert":"[_BUTTONS_][_INPUT_LAYER_]"}),a.extend(a.FE.DEFAULTS,{linkEditButtons:["linkOpen","linkStyle","linkEdit","linkRemove"],linkInsertButtons:["linkBack","|","linkList"],linkAttributes:{},linkAutoPrefix:"http://",linkStyles:{"fr-green":"Green","fr-strong":"Thick"},linkMultipleStyles:!0,linkConvertEmailAddress:!0,linkAlwaysBlank:!1,linkAlwaysNoFollow:!1,linkNoOpener:!0,linkNoReferrer:!0,linkList:[{text:"Froala",href:"https://froala.com",target:"_blank"},{text:"Google",href:"https://google.com",target:"_blank"},{displayText:"Facebook",href:"https://facebook.com"}],linkText:!0}),a.FE.PLUGINS.link=function(b){function c(){var c=b.image?b.image.get():null;if(!c&&b.$wp){var d=b.selection.ranges(0).commonAncestorContainer;try{d&&(d.contains&&d.contains(b.el)||!b.el.contains(d)||b.el==d)&&(d=null)}catch(e){d=null}if(d&&"A"===d.tagName)return d;var f=b.selection.element(),g=b.selection.endElement();"A"==f.tagName||b.node.isElement(f)||(f=a(f).parentsUntil(b.$el,"a:first").get(0)),"A"==g.tagName||b.node.isElement(g)||(g=a(g).parentsUntil(b.$el,"a:first").get(0));try{g&&(g.contains&&g.contains(b.el)||!b.el.contains(g)||b.el==g)&&(g=null)}catch(e){g=null}try{f&&(f.contains&&f.contains(b.el)||!b.el.contains(f)||b.el==f)&&(f=null)}catch(e){f=null}return g&&g==f&&"A"==g.tagName?(b.browser.msie||b.helpers.isMobile())&&(b.selection.info(f).atEnd||b.selection.info(f).atStart)?null:f:null}return"A"==b.el.tagName?b.el:c&&c.get(0).parentNode&&"A"==c.get(0).parentNode.tagName?c.get(0).parentNode:void 0}function d(){var a=b.image?b.image.get():null,c=[];if(a)"A"==a.get(0).parentNode.tagName&&c.push(a.get(0).parentNode);else{var d,e,f,g;if(b.win.getSelection){var h=b.win.getSelection();if(h.getRangeAt&&h.rangeCount){g=b.doc.createRange();for(var i=0;i<h.rangeCount;++i)if(d=h.getRangeAt(i),e=d.commonAncestorContainer,e&&1!=e.nodeType&&(e=e.parentNode),e&&"a"==e.nodeName.toLowerCase())c.push(e);else{f=e.getElementsByTagName("a");for(var j=0;j<f.length;++j)g.selectNodeContents(f[j]),g.compareBoundaryPoints(d.END_TO_START,d)<1&&g.compareBoundaryPoints(d.START_TO_END,d)>-1&&c.push(f[j])}}}else if(b.doc.selection&&"Control"!=b.doc.selection.type)if(d=b.doc.selection.createRange(),e=d.parentElement(),"a"==e.nodeName.toLowerCase())c.push(e);else{f=e.getElementsByTagName("a"),g=b.doc.body.createTextRange();for(var k=0;k<f.length;++k)g.moveToElementText(f[k]),g.compareEndPoints("StartToEnd",d)>-1&&g.compareEndPoints("EndToStart",d)<1&&c.push(f[k])}}return c}function e(d){if(b.core.hasFocus()){if(g(),d&&"keyup"===d.type&&(d.altKey||d.which==a.FE.KEYCODE.ALT))return!0;setTimeout(function(){if(!d||d&&(1==d.which||"mouseup"!=d.type)){var e=c(),g=b.image?b.image.get():null;if(e&&!g){if(b.image){var h=b.node.contents(e);if(1==h.length&&"IMG"==h[0].tagName){var i=b.selection.ranges(0);return 0===i.startOffset&&0===i.endOffset?a(e).before(a.FE.MARKERS):a(e).after(a.FE.MARKERS),b.selection.restore(),!1}}d&&d.stopPropagation(),f(e)}}},b.helpers.isIOS()?100:0)}}function f(c){var d=b.popups.get("link.edit");d||(d=h());var e=a(c);b.popups.isVisible("link.edit")||b.popups.refresh("link.edit"),b.popups.setContainer("link.edit",b.$sc);var f=e.offset().left+a(c).outerWidth()/2,g=e.offset().top+e.outerHeight();b.popups.show("link.edit",f,g,e.outerHeight())}function g(){b.popups.hide("link.edit")}function h(){var a="";b.opts.linkEditButtons.length>=1&&("A"==b.el.tagName&&b.opts.linkEditButtons.indexOf("linkRemove")>=0&&b.opts.linkEditButtons.splice(b.opts.linkEditButtons.indexOf("linkRemove"),1),a='<div class="fr-buttons">'+b.button.buildList(b.opts.linkEditButtons)+"</div>");var d={buttons:a},e=b.popups.create("link.edit",d);return b.$wp&&b.events.$on(b.$wp,"scroll.link-edit",function(){c()&&b.popups.isVisible("link.edit")&&f(c())}),e}function i(){}function j(){var d=b.popups.get("link.insert"),e=c();if(e){var f,g,h=a(e),i=d.find('input.fr-link-attr[type="text"]'),j=d.find('input.fr-link-attr[type="checkbox"]');for(f=0;f<i.length;f++)g=a(i[f]),g.val(h.attr(g.attr("name")||""));for(j.prop("checked",!1),f=0;f<j.length;f++)g=a(j[f]),h.attr(g.attr("name"))==g.data("checked")&&g.prop("checked",!0);d.find('input.fr-link-attr[type="text"][name="text"]').val(h.text())}else d.find('input.fr-link-attr[type="text"]').val(""),d.find('input.fr-link-attr[type="checkbox"]').prop("checked",!1),d.find('input.fr-link-attr[type="text"][name="text"]').val(b.selection.text());d.find("input.fr-link-attr").trigger("change");var k=b.image?b.image.get():null;k?d.find('.fr-link-attr[name="text"]').parent().hide():d.find('.fr-link-attr[name="text"]').parent().show()}function k(){var a=b.$tb.find('.fr-command[data-cmd="insertLink"]'),c=b.popups.get("link.insert");if(c||(c=l()),!c.hasClass("fr-active"))if(b.popups.refresh("link.insert"),b.popups.setContainer("link.insert",b.$tb||b.$sc),a.is(":visible")){var d=a.offset().left+a.outerWidth()/2,e=a.offset().top+(b.opts.toolbarBottom?10:a.outerHeight()-10);b.popups.show("link.insert",d,e,a.outerHeight())}else b.position.forSelection(c),b.popups.show("link.insert")}function l(a){if(a)return b.popups.onRefresh("link.insert",j),b.popups.onHide("link.insert",i),!0;var d="";b.opts.linkInsertButtons.length>=1&&(d='<div class="fr-buttons">'+b.button.buildList(b.opts.linkInsertButtons)+"</div>");var e='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="10" height="10" viewBox="0 0 32 32"><path d="M27 4l-15 15-7-7-5 5 12 12 20-20z" fill="#FFF"></path></svg>',f="",g=0;f='<div class="fr-link-insert-layer fr-layer fr-active" id="fr-link-insert-layer-'+b.id+'">',f+='<div class="fr-input-line"><input id="fr-link-insert-layer-url-'+b.id+'" name="href" type="text" class="fr-link-attr" placeholder="'+b.language.translate("URL")+'" tabIndex="'+ ++g+'"></div>',b.opts.linkText&&(f+='<div class="fr-input-line"><input id="fr-link-insert-layer-text-'+b.id+'" name="text" type="text" class="fr-link-attr" placeholder="'+b.language.translate("Text")+'" tabIndex="'+ ++g+'"></div>');for(var h in b.opts.linkAttributes)if(b.opts.linkAttributes.hasOwnProperty(h)){var k=b.opts.linkAttributes[h];f+='<div class="fr-input-line"><input name="'+h+'" type="text" class="fr-link-attr" placeholder="'+b.language.translate(k)+'" tabIndex="'+ ++g+'"></div>'}b.opts.linkAlwaysBlank||(f+='<div class="fr-checkbox-line"><span class="fr-checkbox"><input name="target" class="fr-link-attr" data-checked="_blank" type="checkbox" id="fr-link-target-'+b.id+'" tabIndex="'+ ++g+'"><span>'+e+'</span></span><label for="fr-link-target-'+b.id+'">'+b.language.translate("Open in new tab")+"</label></div>"),f+='<div class="fr-action-buttons"><button class="fr-command fr-submit" role="button" data-cmd="linkInsert" href="#" tabIndex="'+ ++g+'" type="button">'+b.language.translate("Insert")+"</button></div></div>";var l={buttons:d,input_layer:f},m=b.popups.create("link.insert",l);return b.$wp&&b.events.$on(b.$wp,"scroll.link-insert",function(){var a=b.image?b.image.get():null;a&&b.popups.isVisible("link.insert")&&u(),c&&b.popups.isVisible("link.insert")&&s()}),m}function m(){var d=c(),e=b.image?b.image.get():null;return b.events.trigger("link.beforeRemove",[d])===!1?!1:void(e&&d?(e.unwrap(),b.image.edit(e)):d&&(b.selection.save(),a(d).replaceWith(a(d).html()),b.selection.restore(),g()))}function n(){b.events.on("keyup",function(b){b.which!=a.FE.KEYCODE.ESC&&e(b)}),b.events.on("window.mouseup",e),b.events.$on(b.$el,"click","a",function(a){b.edit.isDisabled()&&a.preventDefault()}),b.helpers.isMobile()&&b.events.$on(b.$doc,"selectionchange",e),l(!0),"A"==b.el.tagName&&b.$el.addClass("fr-view"),b.events.on("toolbar.esc",function(){return b.popups.isVisible("link.edit")?(b.events.disableBlur(),b.events.focus(),!1):void 0},!0)}function o(c){var d,e,f=b.opts.linkList[c],g=b.popups.get("link.insert"),h=g.find('input.fr-link-attr[type="text"]'),i=g.find('input.fr-link-attr[type="checkbox"]');for(e=0;e<h.length;e++)d=a(h[e]),f[d.attr("name")]?d.val(f[d.attr("name")]):"text"!=d.attr("name")&&d.val("");for(e=0;e<i.length;e++)d=a(i[e]),d.prop("checked",d.data("checked")==f[d.attr("name")]);b.accessibility.focusPopup(g)}function p(){var c,d,e=b.popups.get("link.insert"),f=e.find('input.fr-link-attr[type="text"]'),g=e.find('input.fr-link-attr[type="checkbox"]'),h=(f.filter('[name="href"]').val()||"").trim(),i=f.filter('[name="text"]').val(),j={};for(d=0;d<f.length;d++)c=a(f[d]),["href","text"].indexOf(c.attr("name"))<0&&(j[c.attr("name")]=c.val());for(d=0;d<g.length;d++)c=a(g[d]),c.is(":checked")?j[c.attr("name")]=c.data("checked"):j[c.attr("name")]=c.data("unchecked")||null;var k=b.helpers.scrollTop();r(h,i,j),a(b.o_win).scrollTop(k)}function q(){if(!b.selection.isCollapsed()){b.selection.save();for(var c=b.$el.find(".fr-marker").addClass("fr-unprocessed").toArray();c.length;){var d=a(c.pop());d.removeClass("fr-unprocessed");var e=b.node.deepestParent(d.get(0));if(e){var f=d.get(0),g="",h="";do f=f.parentNode,b.node.isBlock(f)||(g+=b.node.closeTagString(f),h=b.node.openTagString(f)+h);while(f!=e);var i=b.node.openTagString(d.get(0))+d.html()+b.node.closeTagString(d.get(0));d.replaceWith('<span id="fr-break"></span>');var j=e.outerHTML;j=j.replace(/<span id="fr-break"><\/span>/g,g+i+h),e.outerHTML=j}c=b.$el.find(".fr-marker.fr-unprocessed").toArray()}b.html.cleanEmptyTags(),b.selection.restore()}}function r(f,g,h){if("undefined"==typeof h&&(h={}),b.events.trigger("link.beforeInsert",[f,g,h])===!1)return!1;var i=b.image?b.image.get():null;i||"A"==b.el.tagName?"A"==b.el.tagName&&b.$el.focus():(b.selection.restore(),b.popups.hide("link.insert"));var j=f;b.opts.linkConvertEmailAddress&&b.helpers.isEmail(f)&&!/^mailto:.*/i.test(f)&&(f="mailto:"+f);var k=/^([A-Za-z]:(\\){1,2}|[A-Za-z]:((\\){1,2}[^\\]+)+)(\\)?$/i;if(""===b.opts.linkAutoPrefix||new RegExp("^("+a.FE.LinkProtocols.join("|")+"):.","i").test(f)||/^data:image.*/i.test(f)||/^(https?:|ftps?:|file:|)\/\//i.test(f)||k.test(f)||["/","{","[","#","(","."].indexOf((f||"")[0])<0&&(f=b.opts.linkAutoPrefix+b.helpers.sanitizeURL(f)),f=b.helpers.sanitizeURL(f),b.opts.linkAlwaysBlank&&(h.target="_blank"),b.opts.linkAlwaysNoFollow&&(h.rel="nofollow"),"_blank"==h.target?(b.opts.linkNoOpener&&(h.rel?h.rel+=" noopener":h.rel="noopener"),b.opts.linkNoReferrer&&(h.rel?h.rel+=" noreferrer":h.rel="noreferrer")):null==h.target&&(h.rel?h.rel=h.rel.replace(/noopener/,"").replace(/noreferrer/,""):h.rel=null),g=g||"",f===b.opts.linkAutoPrefix){var l=b.popups.get("link.insert");return l.find('input[name="href"]').addClass("fr-error"),b.events.trigger("link.bad",[j]),!1}var m,n=c();if(n){if(m=a(n),m.attr("href",f),g.length>0&&m.text()!=g&&!i){for(var o=m.get(0);1===o.childNodes.length&&o.childNodes[0].nodeType==Node.ELEMENT_NODE;)o=o.childNodes[0];a(o).text(g)}i||m.prepend(a.FE.START_MARKER).append(a.FE.END_MARKER),m.attr(h),i||b.selection.restore()}else{i?i.wrap('<a href="'+f+'"></a>'):(b.format.remove("a"),b.selection.isCollapsed()?(g=0===g.length?j:g,b.html.insert('<a href="'+f+'">'+a.FE.START_MARKER+g.replace(/&/g,"&")+a.FE.END_MARKER+"</a>"),b.selection.restore()):g.length>0&&g!=b.selection.text().replace(/\n/g,"")?(b.selection.remove(),b.html.insert('<a href="'+f+'">'+a.FE.START_MARKER+g.replace(/&/g,"&")+a.FE.END_MARKER+"</a>"),b.selection.restore()):(q(),b.format.apply("a",{href:f})));for(var p=d(),r=0;r<p.length;r++)m=a(p[r]),m.attr(h),m.removeAttr("_moz_dirty");1==p.length&&b.$wp&&!i&&(a(p[0]).prepend(a.FE.START_MARKER).append(a.FE.END_MARKER),b.selection.restore())}if(i){var s=b.popups.get("link.insert");s&&s.find("input:focus").blur(),b.image.edit(i)}else e()}function s(){g();var d=c();if(d){var e=b.popups.get("link.insert");e||(e=l()),b.popups.isVisible("link.insert")||(b.popups.refresh("link.insert"),b.selection.save(),b.helpers.isMobile()&&(b.events.disableBlur(),b.$el.blur(),b.events.enableBlur())),b.popups.setContainer("link.insert",b.$sc);var f=(b.image?b.image.get():null)||a(d),h=f.offset().left+f.outerWidth()/2,i=f.offset().top+f.outerHeight();b.popups.show("link.insert",h,i,f.outerHeight())}}function t(){var a=b.image?b.image.get():null;if(a)b.image.back();else{b.events.disableBlur(),b.selection.restore(),b.events.enableBlur();var d=c();d&&b.$wp?(b.selection.restore(),g(),e()):"A"==b.el.tagName?(b.$el.focus(),e()):(b.popups.hide("link.insert"),b.toolbar.showInline())}}function u(){var a=b.image?b.image.getEl():null;if(a){var c=b.popups.get("link.insert");b.image.hasCaption()&&(a=a.find(".fr-img-wrap")),c||(c=l()),j(!0),b.popups.setContainer("link.insert",b.$sc);var d=a.offset().left+a.outerWidth()/2,e=a.offset().top+a.outerHeight();b.popups.show("link.insert",d,e,a.outerHeight())}}function v(d,f,g){"undefined"==typeof g&&(g=b.opts.linkMultipleStyles),"undefined"==typeof f&&(f=b.opts.linkStyles);var h=c();if(!h)return!1;if(!g){var i=Object.keys(f);i.splice(i.indexOf(d),1),a(h).removeClass(i.join(" "))}a(h).toggleClass(d),e()}return{_init:n,remove:m,showInsertPopup:k,usePredefined:o,insertCallback:p,insert:r,update:s,get:c,allSelected:d,back:t,imageLink:u,applyStyle:v}},a.FE.DefineIcon("insertLink",{NAME:"link"}),a.FE.RegisterShortcut(a.FE.KEYCODE.K,"insertLink",null,"K"),a.FE.RegisterCommand("insertLink",{title:"Insert Link",undo:!1,focus:!0,refreshOnCallback:!1,popup:!0,callback:function(){this.popups.isVisible("link.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("link.insert")):this.link.showInsertPopup()},plugin:"link"}),a.FE.DefineIcon("linkOpen",{NAME:"external-link",FA5NAME:"external-link-alt"}),a.FE.RegisterCommand("linkOpen",{title:"Open Link",undo:!1,refresh:function(a){var b=this.link.get();b?a.removeClass("fr-hidden"):a.addClass("fr-hidden")},callback:function(){var a=this.link.get();a&&(this.o_win.open(a.href,"_blank","noopener"),this.popups.hide("link.edit"))},plugin:"link"}),a.FE.DefineIcon("linkEdit",{NAME:"edit"}),a.FE.RegisterCommand("linkEdit",{title:"Edit Link",undo:!1,refreshAfterCallback:!1,popup:!0,callback:function(){this.link.update()},refresh:function(a){var b=this.link.get();b?a.removeClass("fr-hidden"):a.addClass("fr-hidden")},plugin:"link"}),a.FE.DefineIcon("linkRemove",{NAME:"unlink"}),a.FE.RegisterCommand("linkRemove",{title:"Unlink",callback:function(){this.link.remove()},refresh:function(a){var b=this.link.get();b?a.removeClass("fr-hidden"):a.addClass("fr-hidden")},plugin:"link"}),a.FE.DefineIcon("linkBack",{NAME:"arrow-left"}),a.FE.RegisterCommand("linkBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.link.back()},refresh:function(a){var b=this.link.get()&&this.doc.hasFocus(),c=this.image?this.image.get():null;c||b||this.opts.toolbarInline?(a.removeClass("fr-hidden"),a.next(".fr-separator").removeClass("fr-hidden")):(a.addClass("fr-hidden"),a.next(".fr-separator").addClass("fr-hidden"))},plugin:"link"}),a.FE.DefineIcon("linkList",{NAME:"search"}),a.FE.RegisterCommand("linkList",{title:"Choose Link",type:"dropdown",focus:!1,undo:!1,refreshAfterCallback:!1,html:function(){for(var a='<ul class="fr-dropdown-list" role="presentation">',b=this.opts.linkList,c=0;c<b.length;c++)a+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="linkList" data-param1="'+c+'">'+(b[c].displayText||b[c].text)+"</a></li>";return a+="</ul>"},callback:function(a,b){this.link.usePredefined(b)},plugin:"link"}),a.FE.RegisterCommand("linkInsert",{focus:!1,refreshAfterCallback:!1,callback:function(){this.link.insertCallback()},refresh:function(a){var b=this.link.get();b?a.text(this.language.translate("Update")):a.text(this.language.translate("Insert"))},plugin:"link"}),a.FE.DefineIcon("imageLink",{NAME:"link"}),a.FE.RegisterCommand("imageLink",{title:"Insert Link",undo:!1,focus:!1,popup:!0,callback:function(){this.link.imageLink()},refresh:function(a){var b,c=this.link.get();c?(b=a.prev(),b.hasClass("fr-separator")&&b.removeClass("fr-hidden"),a.addClass("fr-hidden")):(b=a.prev(),b.hasClass("fr-separator")&&b.addClass("fr-hidden"),a.removeClass("fr-hidden"))},plugin:"link"}),a.FE.DefineIcon("linkStyle",{NAME:"magic"}),a.FE.RegisterCommand("linkStyle",{title:"Style",type:"dropdown",html:function(){var a='<ul class="fr-dropdown-list" role="presentation">',b=this.opts.linkStyles;for(var c in b)b.hasOwnProperty(c)&&(a+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="linkStyle" data-param1="'+c+'">'+this.language.translate(b[c])+"</a></li>");return a+="</ul>"},callback:function(a,b){this.link.applyStyle(b)},refreshOnShow:function(b,c){var d=this.link.get();if(d){var e=a(d);c.find(".fr-command").each(function(){var b=a(this).data("param1"),c=e.hasClass(b);a(this).toggleClass("fr-active",c).attr("aria-selected",c)})}},refresh:function(a){var b=this.link.get();b?a.removeClass("fr-hidden"):a.addClass("fr-hidden")},plugin:"link"})}); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/lists.min.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/lists.min.js new file mode 100644 index 0000000..4cf5514 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/lists.min.js @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.FE.PLUGINS.lists=function(b){function c(a){return'<span class="fr-open-'+a.toLowerCase()+'"></span>'}function d(a){return'<span class="fr-close-'+a.toLowerCase()+'"></span>'}function e(c,d){for(var e=[],f=0;f<c.length;f++){var g=c[f].parentNode;"LI"==c[f].tagName&&g.tagName!=d&&e.indexOf(g)<0&&e.push(g)}for(f=e.length-1;f>=0;f--){var h=a(e[f]);h.replaceWith("<"+d.toLowerCase()+" "+b.node.attributes(h.get(0))+">"+h.html()+"</"+d.toLowerCase()+">")}}function f(c,d){e(c,d);var f,g=b.html.defaultTag(),h=null;c.length&&(f="rtl"==b.opts.direction||"rtl"==a(c[0]).css("direction")?"margin-right":"margin-left");for(var i=0;i<c.length;i++)if("LI"!=c[i].tagName){var j=b.helpers.getPX(a(c[i]).css(f))||0;c[i].style.marginLeft=null,null===h&&(h=j);var k=h>0?"<"+d+' style="'+f+": "+h+'px;">':"<"+d+">",l="</"+d+">";for(j-=h;j/b.opts.indentMargin>0;)k+="<"+d+">",l+=l,j-=b.opts.indentMargin;g&&c[i].tagName.toLowerCase()==g?a(c[i]).replaceWith(k+"<li"+b.node.attributes(c[i])+">"+a(c[i]).html()+"</li>"+l):a(c[i]).wrap(k+"<li></li>"+l)}b.clean.lists()}function g(e){var f,g;for(f=e.length-1;f>=0;f--)for(g=f-1;g>=0;g--)if(a(e[g]).find(e[f]).length||e[g]==e[f]){e.splice(f,1);break}var h=[];for(f=0;f<e.length;f++){var i=a(e[f]),j=e[f].parentNode,k=i.attr("class");if(i.before(d(j.tagName)),"LI"==j.parentNode.tagName)i.before(d("LI")),i.after(c("LI"));else{var l="";k&&(l+=' class="'+k+'"');var m="rtl"==b.opts.direction||"rtl"==i.css("direction")?"margin-right":"margin-left";b.helpers.getPX(a(j).css(m))&&(a(j).attr("style")||"").indexOf(m+":")>=0&&(l+=' style="'+m+":"+b.helpers.getPX(a(j).css(m))+'px;"'),b.html.defaultTag()&&0===i.find(b.html.blockTagsQuery()).length&&i.wrapInner("<"+b.html.defaultTag()+l+"></"+b.html.defaultTag()+">"),b.node.isEmpty(i.get(0),!0)||0!==i.find(b.html.blockTagsQuery()).length||i.append("<br>"),i.append(c("LI")),i.prepend(d("LI"))}i.after(c(j.tagName)),"LI"==j.parentNode.tagName&&(j=j.parentNode.parentNode),h.indexOf(j)<0&&h.push(j)}for(f=0;f<h.length;f++){var n=a(h[f]),o=n.html();o=o.replace(/<span class="fr-close-([a-z]*)"><\/span>/g,"</$1>"),o=o.replace(/<span class="fr-open-([a-z]*)"><\/span>/g,"<$1>"),n.replaceWith(b.node.openTagString(n.get(0))+o+b.node.closeTagString(n.get(0)))}b.$el.find("li:empty").remove(),b.$el.find("ul:empty, ol:empty").remove(),b.clean.lists(),b.html.wrap()}function h(a,b){for(var c=!0,d=0;d<a.length;d++){if("LI"!=a[d].tagName)return!1;a[d].parentNode.tagName!=b&&(c=!1)}return c}function i(a){b.selection.save(),b.html.wrap(!0,!0,!0,!0),b.selection.restore();for(var c=b.selection.blocks(),d=0;d<c.length;d++)"LI"!=c[d].tagName&&"LI"==c[d].parentNode.tagName&&(c[d]=c[d].parentNode);b.selection.save(),h(c,a)?g(c):f(c,a),b.html.unwrap(),b.selection.restore()}function j(c,d){var e=a(b.selection.element());if(e.get(0)!=b.el){var f=e.get(0);f="LI"!=f.tagName&&f.firstElementChild&&"LI"!=f.firstElementChild.tagName?e.parents("li").get(0):"LI"==f.tagName||f.firstElementChild?f.firstElementChild&&"LI"==f.firstElementChild.tagName?e.get(0).firstChild:e.get(0):e.parents("li").get(0),f&&f.parentNode.tagName==d&&b.el.contains(f.parentNode)&&c.addClass("fr-active")}}function k(c){b.selection.save();for(var d=0;d<c.length;d++){var e=c[d].previousSibling;if(e){var f=a(c[d]).find("> ul, > ol").last().get(0);if(f){for(var g=a("<li>").prependTo(a(f)),h=b.node.contents(c[d])[0];h&&!b.node.isList(h);){var i=h.nextSibling;g.append(h),h=i}a(e).append(a(f)),a(c[d]).remove()}else{var j=a(e).find("> ul, > ol").last().get(0);if(j)a(j).append(a(c[d]));else{var k=a("<"+c[d].parentNode.tagName+">");a(e).append(k),k.append(a(c[d]))}}}}b.clean.lists(),b.selection.restore()}function l(a){b.selection.save(),g(a),b.selection.restore()}function m(a){if("indent"==a||"outdent"==a){for(var c=!1,d=b.selection.blocks(),e=[],f=0;f<d.length;f++)"LI"==d[f].tagName?(c=!0,e.push(d[f])):"LI"==d[f].parentNode.tagName&&(c=!0,e.push(d[f].parentNode));c&&("indent"==a?k(e):l(e))}}function n(){b.events.on("commands.after",m),b.events.on("keydown",function(c){if(c.which==a.FE.KEYCODE.TAB){for(var d=b.selection.blocks(),e=[],f=0;f<d.length;f++)"LI"==d[f].tagName?e.push(d[f]):"LI"==d[f].parentNode.tagName&&e.push(d[f].parentNode);if(e.length>1||e.length&&(b.selection.info(e[0]).atStart||b.node.isEmpty(e[0])))return c.preventDefault(),c.stopPropagation(),c.shiftKey?l(e):k(e),!1}},!0)}return{_init:n,format:i,refresh:j}},a.FE.RegisterCommand("formatUL",{title:"Unordered List",refresh:function(a){this.lists.refresh(a,"UL")},callback:function(){this.lists.format("UL")},plugin:"lists"}),a.FE.RegisterCommand("formatOL",{title:"Ordered List",refresh:function(a){this.lists.refresh(a,"OL")},callback:function(){this.lists.format("OL")},plugin:"lists"}),a.FE.DefineIcon("formatUL",{NAME:"list-ul"}),a.FE.DefineIcon("formatOL",{NAME:"list-ol"})}); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/paragraph_format.min.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/paragraph_format.min.js new file mode 100644 index 0000000..36da3a5 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/paragraph_format.min.js @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.DEFAULTS,{paragraphFormat:{N:"Normal",H1:"Heading 1",H2:"Heading 2",H3:"Heading 3",H4:"Heading 4",PRE:"Code"},paragraphFormatSelection:!1,paragraphDefaultSelection:"Paragraph Format"}),a.FE.PLUGINS.paragraphFormat=function(b){function c(c,d){var e=b.html.defaultTag();if(d&&d.toLowerCase()!=e)if(c.find("ul, ol").length>0){var f=a("<"+d+">");c.prepend(f);for(var g=b.node.contents(c.get(0))[0];g&&["UL","OL"].indexOf(g.tagName)<0;){var h=g.nextSibling;f.append(g),g=h}}else c.html("<"+d+">"+c.html()+"</"+d+">")}function d(c,d){var e=b.html.defaultTag();d&&d.toLowerCase()!=e||(d='div class="fr-temp-div"'),c.replaceWith(a("<"+d+">").html(c.html()))}function e(c,d){var e=b.html.defaultTag();d||(d='div class="fr-temp-div"'+(b.node.isEmpty(c.get(0),!0)?' data-empty="true"':"")),d.toLowerCase()==e?(b.node.isEmpty(c.get(0),!0)||c.append("<br/>"),c.replaceWith(c.html())):c.replaceWith(a("<"+d+">").html(c.html()))}function f(c,d){d||(d='div class="fr-temp-div"'+(b.node.isEmpty(c.get(0),!0)?' data-empty="true"':"")),c.replaceWith(a("<"+d+" "+b.node.attributes(c.get(0))+">").html(c.html()).removeAttr("data-empty"))}function g(g){"N"==g&&(g=b.html.defaultTag()),b.selection.save(),b.html.wrap(!0,!0,!b.opts.paragraphFormat.BLOCKQUOTE,!0,!0),b.selection.restore();var h=b.selection.blocks();b.selection.save(),b.$el.find("pre").attr("skip",!0);for(var i=0;i<h.length;i++)if(h[i].tagName!=g&&!b.node.isList(h[i])){var j=a(h[i]);"LI"==h[i].tagName?c(j,g):"LI"==h[i].parentNode.tagName&&h[i]?d(j,g):["TD","TH"].indexOf(h[i].parentNode.tagName)>=0?e(j,g):f(j,g)}b.$el.find('pre:not([skip="true"]) + pre:not([skip="true"])').each(function(){a(this).prev().append("<br>"+a(this).html()),a(this).remove()}),b.$el.find("pre").removeAttr("skip"),b.html.unwrap(),b.selection.restore()}function h(a,c){var d=b.selection.blocks();if(d.length){var e=d[0],f="N",g=b.html.defaultTag();e.tagName.toLowerCase()!=g&&e!=b.el&&(f=e.tagName),c.find('.fr-command[data-param1="'+f+'"]').addClass("fr-active").attr("aria-selected",!0)}else c.find('.fr-command[data-param1="N"]').addClass("fr-active").attr("aria-selected",!0)}function i(a){if(b.opts.paragraphFormatSelection){var c=b.selection.blocks();if(c.length){var d=c[0],e="N",f=b.html.defaultTag();d.tagName.toLowerCase()!=f&&d!=b.el&&(e=d.tagName),["LI","TD","TH"].indexOf(e)>=0&&(e="N"),a.find("> span").text(b.language.translate(b.opts.paragraphFormat[e]))}else a.find("> span").text(b.language.translate(b.opts.paragraphFormat.N))}}return{apply:g,refreshOnShow:h,refresh:i}},a.FE.RegisterCommand("paragraphFormat",{type:"dropdown",displaySelection:function(a){return a.opts.paragraphFormatSelection},defaultSelection:function(a){return a.language.translate(a.opts.paragraphDefaultSelection)},displaySelectionWidth:125,html:function(){var a='<ul class="fr-dropdown-list" role="presentation">',b=this.opts.paragraphFormat;for(var c in b)if(b.hasOwnProperty(c)){var d=this.shortcuts.get("paragraphFormat."+c);d=d?'<span class="fr-shortcut">'+d+"</span>":"",a+='<li role="presentation"><'+("N"==c?this.html.defaultTag()||"DIV":c)+' style="padding: 0 !important; margin: 0 !important;" role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="paragraphFormat" data-param1="'+c+'" title="'+this.language.translate(b[c])+'">'+this.language.translate(b[c])+"</a></"+("N"==c?this.html.defaultTag()||"DIV":c)+"></li>"}return a+="</ul>"},title:"Paragraph Format",callback:function(a,b){this.paragraphFormat.apply(b)},refresh:function(a){this.paragraphFormat.refresh(a)},refreshOnShow:function(a,b){this.paragraphFormat.refreshOnShow(a,b)},plugin:"paragraphFormat"}),a.FE.DefineIcon("paragraphFormat",{NAME:"paragraph"})}); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/paragraph_style.min.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/paragraph_style.min.js new file mode 100644 index 0000000..8469fd2 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/paragraph_style.min.js @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.DEFAULTS,{paragraphStyles:{"fr-text-gray":"Gray","fr-text-bordered":"Bordered","fr-text-spaced":"Spaced","fr-text-uppercase":"Uppercase"},paragraphMultipleStyles:!0}),a.FE.PLUGINS.paragraphStyle=function(b){function c(c,d,e){"undefined"==typeof d&&(d=b.opts.paragraphStyles),"undefined"==typeof e&&(e=b.opts.paragraphMultipleStyles);var f="";e||(f=Object.keys(d),f.splice(f.indexOf(c),1),f=f.join(" ")),b.selection.save(),b.html.wrap(!0,!0,!0,!0),b.selection.restore();var g=b.selection.blocks();b.selection.save();for(var h=a(g[0]).hasClass(c),i=0;i<g.length;i++)a(g[i]).removeClass(f).toggleClass(c,!h),a(g[i]).hasClass("fr-temp-div")&&a(g[i]).removeClass("fr-temp-div"),""===a(g[i]).attr("class")&&a(g[i]).removeAttr("class");b.html.unwrap(),b.selection.restore()}function d(c,d){var e=b.selection.blocks();if(e.length){var f=a(e[0]);d.find(".fr-command").each(function(){var b=a(this).data("param1"),c=f.hasClass(b);a(this).toggleClass("fr-active",c).attr("aria-selected",c)})}}function e(){}return{_init:e,apply:c,refreshOnShow:d}},a.FE.RegisterCommand("paragraphStyle",{type:"dropdown",html:function(){var a='<ul class="fr-dropdown-list" role="presentation">',b=this.opts.paragraphStyles;for(var c in b)b.hasOwnProperty(c)&&(a+='<li role="presentation"><a class="fr-command '+c+'" tabIndex="-1" role="option" data-cmd="paragraphStyle" data-param1="'+c+'" title="'+this.language.translate(b[c])+'">'+this.language.translate(b[c])+"</a></li>");return a+="</ul>"},title:"Paragraph Style",callback:function(a,b){this.paragraphStyle.apply(b)},refreshOnShow:function(a,b){this.paragraphStyle.refreshOnShow(a,b)},plugin:"paragraphStyle"}),a.FE.DefineIcon("paragraphStyle",{NAME:"magic"})}); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/print.min.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/print.min.js new file mode 100644 index 0000000..8e93077 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/print.min.js @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.FE.PLUGINS.print=function(a){function b(){var b=a.$el.html(),c=null;a.shared.print_iframe?c=a.shared.print_iframe:(c=document.createElement("iframe"),c.name="fr-print",c.style.position="fixed",c.style.top="0",c.style.left="-9999px",c.style.height="100%",c.style.width="0",c.style.overflow="hidden",c.style["z-index"]="2147483647",c.style.tabIndex="-1",document.body.appendChild(c),c.onload=function(){setTimeout(function(){a.events.disableBlur(),window.frames["fr-print"].focus(),window.frames["fr-print"].print(),a.$win.get(0).focus(),a.events.disableBlur(),a.events.focus()},0)},a.events.on("shared.destroy",function(){c.remove()}),a.shared.print_iframe=c);var d=c.contentWindow;d.document.open(),d.document.write("<!DOCTYPE html><html><head><title>"+document.title+"</title>"),Array.prototype.forEach.call(document.querySelectorAll("style"),function(a){a=a.cloneNode(!0),d.document.write(a.outerHTML)});var e=document.querySelectorAll("link[rel=stylesheet]");Array.prototype.forEach.call(e,function(a){var b=document.createElement("link");b.rel=a.rel,b.href=a.href,b.media="print",b.type="text/css",b.media="all",d.document.write(b.outerHTML)}),d.document.write('</head><body style="text-align: '+("rtl"==a.opts.direction?"right":"left")+"; direction: "+a.opts.direction+';"><div class="fr-view">'),d.document.write(b),d.document.write("</div></body></html>"),d.document.close()}return{run:b}},a.FE.DefineIcon("print",{NAME:"print"}),a.FE.RegisterCommand("print",{title:"Print",undo:!1,focus:!1,plugin:"print",callback:function(){this.print.run()}})}); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/quick_insert.min.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/quick_insert.min.js new file mode 100644 index 0000000..19c9866 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/quick_insert.min.js @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.DEFAULTS,{quickInsertButtons:["image","video","embedly","table","ul","ol","hr"],quickInsertTags:["p","div","h1","h2","h3","h4","h5","h6","pre","blockquote"]}),a.FE.QUICK_INSERT_BUTTONS={},a.FE.DefineIcon("quickInsert",{PATH:'<path d="M22,16.75 L16.75,16.75 L16.75,22 L15.25,22.000 L15.25,16.75 L10,16.75 L10,15.25 L15.25,15.25 L15.25,10 L16.75,10 L16.75,15.25 L22,15.25 L22,16.75 Z"/>',template:"svg"}),a.FE.RegisterQuickInsertButton=function(b,c){a.FE.QUICK_INSERT_BUTTONS[b]=a.extend({undo:!0},c)},a.FE.RegisterQuickInsertButton("image",{icon:"insertImage",requiredPlugin:"image",title:"Insert Image",undo:!1,callback:function(){var b=this;b.shared.$qi_image_input||(b.shared.$qi_image_input=a('<input accept="image/*" name="quickInsertImage'+this.id+'" style="display: none;" type="file">'),a("body:first").append(b.shared.$qi_image_input),b.events.$on(b.shared.$qi_image_input,"change",function(){var b=a(this).data("inst");this.files&&(b.quickInsert.hide(),b.image.upload(this.files)),a(this).val("")},!0)),b.$qi_image_input=b.shared.$qi_image_input,b.helpers.isMobile()&&b.selection.save(),b.$qi_image_input.data("inst",b).trigger("click")}}),a.FE.RegisterQuickInsertButton("video",{icon:"insertVideo",requiredPlugin:"video",title:"Insert Video",undo:!1,callback:function(){var a=prompt(this.language.translate("Paste the URL of the video you want to insert."));a&&this.video.insertByURL(a)}}),a.FE.RegisterQuickInsertButton("embedly",{icon:"embedly",requiredPlugin:"embedly",title:"Embed URL",undo:!1,callback:function(){var a=prompt(this.language.translate("Paste the URL of any web content you want to insert."));a&&this.embedly.add(a)}}),a.FE.RegisterQuickInsertButton("table",{icon:"insertTable",requiredPlugin:"table",title:"Insert Table",callback:function(){this.table.insert(2,2)}}),a.FE.RegisterQuickInsertButton("ol",{icon:"formatOL",requiredPlugin:"lists",title:"Ordered List",callback:function(){this.lists.format("OL")}}),a.FE.RegisterQuickInsertButton("ul",{icon:"formatUL",requiredPlugin:"lists",title:"Unordered List",callback:function(){this.lists.format("UL")}}),a.FE.RegisterQuickInsertButton("hr",{icon:"insertHR",title:"Insert Horizontal Line",callback:function(){this.commands.insertHR()}}),a.FE.PLUGINS.quickInsert=function(b){function c(c){var d,e,f;d=c.offset().top-b.$box.offset().top,e=0-k.outerWidth(),b.opts.enter!=a.FE.ENTER_BR?f=(k.outerHeight()-c.outerHeight())/2:(a("<span>"+a.FE.INVISIBLE_SPACE+"</span>").insertAfter(c),f=(k.outerHeight()-c.next().outerHeight())/2,c.next().remove()),b.opts.iframe&&(d+=b.$iframe.offset().top-b.helpers.scrollTop()),k.hasClass("fr-on")&&d>=0&&l.css("top",d-f),d>=0&&d-f<=b.$box.outerHeight()-c.outerHeight()?(k.hasClass("fr-hidden")&&(k.hasClass("fr-on")&&g(),k.removeClass("fr-hidden")),k.css("top",d-f)):k.hasClass("fr-visible")&&(k.addClass("fr-hidden"),h()),k.css("left",e)}function d(a){k||i(),k.hasClass("fr-on")&&h(),b.$box.append(k),c(a),k.data("tag",a),k.addClass("fr-visible")}function e(){if(b.core.hasFocus()){var c=b.selection.element();if(b.opts.enter==a.FE.ENTER_BR||b.node.isBlock(c)||(c=b.node.blockParent(c)),b.opts.enter==a.FE.ENTER_BR&&!b.node.isBlock(c)){var e=b.node.deepestParent(c);e&&(c=e)}var g=function(){return b.opts.enter!=a.FE.ENTER_BR&&b.node.isEmpty(c)&&b.node.isElement(c.parentNode)&&b.opts.quickInsertTags.indexOf(c.tagName.toLowerCase())>=0},i=function(){return b.opts.enter==a.FE.ENTER_BR&&("BR"==c.tagName&&(!c.previousSibling||"BR"==c.previousSibling.tagName||b.node.isBlock(c.previousSibling))||b.node.isEmpty(c)&&(!c.previousSibling||"BR"==c.previousSibling.tagName||b.node.isBlock(c.previousSibling))&&(!c.nextSibling||"BR"==c.nextSibling.tagName||b.node.isBlock(c.nextSibling)))};c&&(g()||i())?k&&k.data("tag").is(a(c))&&k.hasClass("fr-on")?h():b.selection.isCollapsed()&&d(a(c)):f()}}function f(){k&&(b.html.checkIfEmpty(),k.hasClass("fr-on")&&h(),k.removeClass("fr-visible fr-on"),k.css("left",-9999).css("top",-9999))}function g(c){if(c&&c.preventDefault(),k.hasClass("fr-on")&&!k.hasClass("fr-hidden"))h();else{if(!b.shared.$qi_helper){for(var d=b.opts.quickInsertButtons,e='<div class="fr-qi-helper">',f=0,g=0;g<d.length;g++){var i=a.FE.QUICK_INSERT_BUTTONS[d[g]];i&&(!i.requiredPlugin||a.FE.PLUGINS[i.requiredPlugin]&&b.opts.pluginsEnabled.indexOf(i.requiredPlugin)>=0)&&(e+='<a class="fr-btn fr-floating-btn" role="button" title="'+b.language.translate(i.title)+'" tabIndex="-1" data-cmd="'+d[g]+'" style="transition-delay: '+.025*f++ +'s;">'+b.icon.create(i.icon)+"</a>")}e+="</div>",b.shared.$qi_helper=a(e),b.tooltip.bind(b.shared.$qi_helper,"> a.fr-btn")}l=b.shared.$qi_helper,l.appendTo(b.$box),setTimeout(function(){l.css("top",parseFloat(k.css("top"))),l.css("left",parseFloat(k.css("left"))+k.outerWidth()),l.find("a").addClass("fr-size-1"),k.addClass("fr-on")},10)}}function h(){var a=b.$box.find(".fr-qi-helper");a.length&&(a.find("a").removeClass("fr-size-1"),a.css("left",-9999),k.hasClass("fr-hidden")||k.removeClass("fr-on"))}function i(){b.shared.$quick_insert||(b.shared.$quick_insert=a('<div class="fr-quick-insert"><a class="fr-floating-btn" role="button" tabIndex="-1" title="'+b.language.translate("Quick Insert")+'">'+b.icon.create("quickInsert")+"</a></div>")),k=b.shared.$quick_insert,b.tooltip.bind(b.$box,".fr-quick-insert > a.fr-floating-btn"),b.events.on("destroy",function(){k.removeClass("fr-on").appendTo(a("body:first")).css("left",-9999).css("top",-9999),l&&(h(),l.appendTo(a("body:first")))},!0),b.events.on("shared.destroy",function(){k.html("").removeData().remove(),k=null,l&&(l.html("").removeData().remove(),l=null)},!0),b.events.on("commands.before",f),b.events.on("commands.after",function(){b.popups.areVisible()||e()}),b.events.bindClick(b.$box,".fr-quick-insert > a",g),b.events.bindClick(b.$box,".fr-qi-helper > a.fr-btn",function(c){var d=a(c.currentTarget).data("cmd");a.FE.QUICK_INSERT_BUTTONS[d].callback.apply(b,[c.currentTarget]),a.FE.QUICK_INSERT_BUTTONS[d].undo&&b.undo.saveStep(),b.quickInsert.hide()}),b.events.$on(b.$wp,"scroll",function(){k.hasClass("fr-visible")&&c(k.data("tag"))})}function j(){return b.$wp?(b.opts.iframe&&b.$el.parent("html").find("head").append('<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css">'),b.popups.onShow("image.edit",f),b.events.on("mouseup",e),b.helpers.isMobile()&&b.events.$on(a(b.o_doc),"selectionchange",e),b.events.on("blur",f),b.events.on("keyup",e),void b.events.on("keydown",function(){setTimeout(function(){e()},0)})):!1}var k,l;return{_init:j,hide:f}}}); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/quote.min.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/quote.min.js new file mode 100644 index 0000000..37e7d04 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/quote.min.js @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.FE.PLUGINS.quote=function(b){function c(a){for(;a.parentNode&&a.parentNode!=b.el;)a=a.parentNode;return a}function d(){var d,e=b.selection.blocks();for(d=0;d<e.length;d++)e[d]=c(e[d]);b.selection.save();var f=a("<blockquote>");for(f.insertBefore(e[0]),d=0;d<e.length;d++)f.append(e[d]);b.html.unwrap(),b.selection.restore()}function e(){var c,d=b.selection.blocks();for(c=0;c<d.length;c++)"BLOCKQUOTE"!=d[c].tagName&&(d[c]=a(d[c]).parentsUntil(b.$el,"BLOCKQUOTE").get(0));for(b.selection.save(),c=0;c<d.length;c++)d[c]&&a(d[c]).replaceWith(d[c].innerHTML);b.html.unwrap(),b.selection.restore()}function f(a){b.selection.save(),b.html.wrap(!0,!0,!0,!0),b.selection.restore(),"increase"==a?d():"decrease"==a&&e()}return{apply:f}},a.FE.RegisterShortcut(a.FE.KEYCODE.SINGLE_QUOTE,"quote","increase","'"),a.FE.RegisterShortcut(a.FE.KEYCODE.SINGLE_QUOTE,"quote","decrease","'",!0),a.FE.RegisterCommand("quote",{title:"Quote",type:"dropdown",options:{increase:"Increase",decrease:"Decrease"},callback:function(a,b){this.quote.apply(b)},plugin:"quote"}),a.FE.DefineIcon("quote",{NAME:"quote-left"})}); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/save.min.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/save.min.js new file mode 100644 index 0000000..17e1998 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/save.min.js @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.DEFAULTS,{saveInterval:1e4,saveURL:null,saveParams:{},saveParam:"body",saveMethod:"POST"}),a.FE.PLUGINS.save=function(b){function c(a,c){b.events.trigger("save.error",[{code:a,message:n[a]},c])}function d(d){"undefined"==typeof d&&(d=b.html.get());var e=d,f=b.events.trigger("save.before",[d]);if(f===!1)return!1;if("string"==typeof f&&(d=f),b.opts.saveURL){var g={};for(var h in b.opts.saveParams)if(b.opts.saveParams.hasOwnProperty(h)){var i=b.opts.saveParams[h];"function"==typeof i?g[h]=i.call(this):g[h]=i}var k={};k[b.opts.saveParam]=d,a.ajax({type:b.opts.saveMethod,url:b.opts.saveURL,data:a.extend(k,g),crossDomain:b.opts.requestWithCORS,xhrFields:{withCredentials:b.opts.requestWithCredentials},headers:b.opts.requestHeaders}).done(function(a){j=e,b.events.trigger("save.after",[a])}).fail(function(a){c(m,a.response||a.responseText)})}else c(l)}function e(){clearTimeout(i),i=setTimeout(function(){var a=b.html.get();(j!=a||k)&&(j=a,k=!1,d(a))},b.opts.saveInterval)}function f(){e(),k=!1}function g(){k=!0}function h(){b.opts.saveInterval&&(j=b.html.get(),b.events.on("contentChanged",e),b.events.on("keydown destroy",function(){clearTimeout(i)}))}var i=null,j=null,k=!1,l=1,m=2,n={};return n[l]="Missing saveURL option.",n[m]="Something went wrong during save.",{_init:h,save:d,reset:f,force:g}},a.FE.DefineIcon("save",{NAME:"floppy-o"}),a.FE.RegisterCommand("save",{title:"Save",undo:!1,focus:!1,refreshAfterCallback:!1,callback:function(){this.save.save()},plugin:"save"})}); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/special_characters.min.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/special_characters.min.js new file mode 100644 index 0000000..7924673 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/special_characters.min.js @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.DEFAULTS,{specialCharactersSets:[{title:"Latin",list:[{"char":"¡",desc:"INVERTED EXCLAMATION MARK"},{"char":"¢",desc:"CENT SIGN"},{"char":"£",desc:"POUND SIGN"},{"char":"¤",desc:"CURRENCY SIGN"},{"char":"¥",desc:"YEN SIGN"},{"char":"¦",desc:"BROKEN BAR"},{"char":"§",desc:"SECTION SIGN"},{"char":"¨",desc:"DIAERESIS"},{"char":"©",desc:"COPYRIGHT SIGN"},{"char":"™",desc:"TRADEMARK SIGN"},{"char":"ª",desc:"FEMININE ORDINAL INDICATOR"},{"char":"«",desc:"LEFT-POINTING DOUBLE ANGLE QUOTATION MARK"},{"char":"¬",desc:"NOT SIGN"},{"char":"®",desc:"REGISTERED SIGN"},{"char":"¯",desc:"MACRON"},{"char":"°",desc:"DEGREE SIGN"},{"char":"±",desc:"PLUS-MINUS SIGN"},{"char":"²",desc:"SUPERSCRIPT TWO"},{"char":"³",desc:"SUPERSCRIPT THREE"},{"char":"´",desc:"ACUTE ACCENT"},{"char":"µ",desc:"MICRO SIGN"},{"char":"¶",desc:"PILCROW SIGN"},{"char":"·",desc:"MIDDLE DOT"},{"char":"¸",desc:"CEDILLA"},{"char":"¹",desc:"SUPERSCRIPT ONE"},{"char":"º",desc:"MASCULINE ORDINAL INDICATOR"},{"char":"»",desc:"RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK"},{"char":"¼",desc:"VULGAR FRACTION ONE QUARTER"},{"char":"½",desc:"VULGAR FRACTION ONE HALF"},{"char":"¾",desc:"VULGAR FRACTION THREE QUARTERS"},{"char":"¿",desc:"INVERTED QUESTION MARK"},{"char":"À",desc:"LATIN CAPITAL LETTER A WITH GRAVE"},{"char":"Á",desc:"LATIN CAPITAL LETTER A WITH ACUTE"},{"char":"Â",desc:"LATIN CAPITAL LETTER A WITH CIRCUMFLEX"},{"char":"Ã",desc:"LATIN CAPITAL LETTER A WITH TILDE"},{"char":"Ä",desc:"LATIN CAPITAL LETTER A WITH DIAERESIS "},{"char":"Å",desc:"LATIN CAPITAL LETTER A WITH RING ABOVE"},{"char":"Æ",desc:"LATIN CAPITAL LETTER AE"},{"char":"Ç",desc:"LATIN CAPITAL LETTER C WITH CEDILLA"},{"char":"È",desc:"LATIN CAPITAL LETTER E WITH GRAVE"},{"char":"É",desc:"LATIN CAPITAL LETTER E WITH ACUTE"},{"char":"Ê",desc:"LATIN CAPITAL LETTER E WITH CIRCUMFLEX"},{"char":"Ë",desc:"LATIN CAPITAL LETTER E WITH DIAERESIS"},{"char":"Ì",desc:"LATIN CAPITAL LETTER I WITH GRAVE"},{"char":"Í",desc:"LATIN CAPITAL LETTER I WITH ACUTE"},{"char":"Î",desc:"LATIN CAPITAL LETTER I WITH CIRCUMFLEX"},{"char":"Ï",desc:"LATIN CAPITAL LETTER I WITH DIAERESIS"},{"char":"Ð",desc:"LATIN CAPITAL LETTER ETH"},{"char":"Ñ",desc:"LATIN CAPITAL LETTER N WITH TILDE"},{"char":"Ò",desc:"LATIN CAPITAL LETTER O WITH GRAVE"},{"char":"Ó",desc:"LATIN CAPITAL LETTER O WITH ACUTE"},{"char":"Ô",desc:"LATIN CAPITAL LETTER O WITH CIRCUMFLEX"},{"char":"Õ",desc:"LATIN CAPITAL LETTER O WITH TILDE"},{"char":"Ö",desc:"LATIN CAPITAL LETTER O WITH DIAERESIS"},{"char":"×",desc:"MULTIPLICATION SIGN"},{"char":"Ø",desc:"LATIN CAPITAL LETTER O WITH STROKE"},{"char":"Ù",desc:"LATIN CAPITAL LETTER U WITH GRAVE"},{"char":"Ú",desc:"LATIN CAPITAL LETTER U WITH ACUTE"},{"char":"Û",desc:"LATIN CAPITAL LETTER U WITH CIRCUMFLEX"},{"char":"Ü",desc:"LATIN CAPITAL LETTER U WITH DIAERESIS"},{"char":"Ý",desc:"LATIN CAPITAL LETTER Y WITH ACUTE"},{"char":"Þ",desc:"LATIN CAPITAL LETTER THORN"},{"char":"ß",desc:"LATIN SMALL LETTER SHARP S"},{"char":"à",desc:"LATIN SMALL LETTER A WITH GRAVE"},{"char":"á",desc:"LATIN SMALL LETTER A WITH ACUTE "},{"char":"â",desc:"LATIN SMALL LETTER A WITH CIRCUMFLEX"},{"char":"ã",desc:"LATIN SMALL LETTER A WITH TILDE"},{"char":"ä",desc:"LATIN SMALL LETTER A WITH DIAERESIS"},{"char":"å",desc:"LATIN SMALL LETTER A WITH RING ABOVE"},{"char":"æ",desc:"LATIN SMALL LETTER AE"},{"char":"ç",desc:"LATIN SMALL LETTER C WITH CEDILLA"},{"char":"è",desc:"LATIN SMALL LETTER E WITH GRAVE"},{"char":"é",desc:"LATIN SMALL LETTER E WITH ACUTE"},{"char":"ê",desc:"LATIN SMALL LETTER E WITH CIRCUMFLEX"},{"char":"ë",desc:"LATIN SMALL LETTER E WITH DIAERESIS"},{"char":"ì",desc:"LATIN SMALL LETTER I WITH GRAVE"},{"char":"í",desc:"LATIN SMALL LETTER I WITH ACUTE"},{"char":"î",desc:"LATIN SMALL LETTER I WITH CIRCUMFLEX"},{"char":"ï",desc:"LATIN SMALL LETTER I WITH DIAERESIS"},{"char":"ð",desc:"LATIN SMALL LETTER ETH"},{"char":"ñ",desc:"LATIN SMALL LETTER N WITH TILDE"},{"char":"ò",desc:"LATIN SMALL LETTER O WITH GRAVE"},{"char":"ó",desc:"LATIN SMALL LETTER O WITH ACUTE"},{"char":"ô",desc:"LATIN SMALL LETTER O WITH CIRCUMFLEX"},{"char":"õ",desc:"LATIN SMALL LETTER O WITH TILDE"},{"char":"ö",desc:"LATIN SMALL LETTER O WITH DIAERESIS"},{"char":"÷",desc:"DIVISION SIGN"},{"char":"ø",desc:"LATIN SMALL LETTER O WITH STROKE"},{"char":"ù",desc:"LATIN SMALL LETTER U WITH GRAVE"},{"char":"ú",desc:"LATIN SMALL LETTER U WITH ACUTE"},{"char":"û",desc:"LATIN SMALL LETTER U WITH CIRCUMFLEX"},{"char":"ü",desc:"LATIN SMALL LETTER U WITH DIAERESIS"},{"char":"ý",desc:"LATIN SMALL LETTER Y WITH ACUTE"},{"char":"þ",desc:"LATIN SMALL LETTER THORN"},{"char":"ÿ",desc:"LATIN SMALL LETTER Y WITH DIAERESIS"}]},{title:"Greek",list:[{"char":"Α",desc:"GREEK CAPITAL LETTER ALPHA"},{"char":"Β",desc:"GREEK CAPITAL LETTER BETA"},{"char":"Γ",desc:"GREEK CAPITAL LETTER GAMMA"},{"char":"Δ",desc:"GREEK CAPITAL LETTER DELTA"},{"char":"Ε",desc:"GREEK CAPITAL LETTER EPSILON"},{"char":"Ζ",desc:"GREEK CAPITAL LETTER ZETA"},{"char":"Η",desc:"GREEK CAPITAL LETTER ETA"},{"char":"Θ",desc:"GREEK CAPITAL LETTER THETA"},{"char":"Ι",desc:"GREEK CAPITAL LETTER IOTA"},{"char":"Κ",desc:"GREEK CAPITAL LETTER KAPPA"},{"char":"Λ",desc:"GREEK CAPITAL LETTER LAMBDA"},{"char":"Μ",desc:"GREEK CAPITAL LETTER MU"},{"char":"Ν",desc:"GREEK CAPITAL LETTER NU"},{"char":"Ξ",desc:"GREEK CAPITAL LETTER XI"},{"char":"Ο",desc:"GREEK CAPITAL LETTER OMICRON"},{"char":"Π",desc:"GREEK CAPITAL LETTER PI"},{"char":"Ρ",desc:"GREEK CAPITAL LETTER RHO"},{"char":"Σ",desc:"GREEK CAPITAL LETTER SIGMA"},{"char":"Τ",desc:"GREEK CAPITAL LETTER TAU"},{"char":"Υ",desc:"GREEK CAPITAL LETTER UPSILON"},{"char":"Φ",desc:"GREEK CAPITAL LETTER PHI"},{"char":"Χ",desc:"GREEK CAPITAL LETTER CHI"},{"char":"Ψ",desc:"GREEK CAPITAL LETTER PSI"},{"char":"Ω",desc:"GREEK CAPITAL LETTER OMEGA"},{"char":"α",desc:"GREEK SMALL LETTER ALPHA"},{"char":"β",desc:"GREEK SMALL LETTER BETA"},{"char":"γ",desc:"GREEK SMALL LETTER GAMMA"},{"char":"δ",desc:"GREEK SMALL LETTER DELTA"},{"char":"ε",desc:"GREEK SMALL LETTER EPSILON"},{"char":"ζ",desc:"GREEK SMALL LETTER ZETA"},{"char":"η",desc:"GREEK SMALL LETTER ETA"},{"char":"θ",desc:"GREEK SMALL LETTER THETA"},{"char":"ι",desc:"GREEK SMALL LETTER IOTA"},{"char":"κ",desc:"GREEK SMALL LETTER KAPPA"},{"char":"λ",desc:"GREEK SMALL LETTER LAMBDA"},{"char":"μ",desc:"GREEK SMALL LETTER MU"},{"char":"ν",desc:"GREEK SMALL LETTER NU"},{"char":"ξ",desc:"GREEK SMALL LETTER XI"},{"char":"ο",desc:"GREEK SMALL LETTER OMICRON"},{"char":"π",desc:"GREEK SMALL LETTER PI"},{"char":"ρ",desc:"GREEK SMALL LETTER RHO"},{"char":"ς",desc:"GREEK SMALL LETTER FINAL SIGMA"},{"char":"σ",desc:"GREEK SMALL LETTER SIGMA"},{"char":"τ",desc:"GREEK SMALL LETTER TAU"},{"char":"υ",desc:"GREEK SMALL LETTER UPSILON"},{"char":"φ",desc:"GREEK SMALL LETTER PHI"},{"char":"χ",desc:"GREEK SMALL LETTER CHI"},{"char":"ψ",desc:"GREEK SMALL LETTER PSI"},{"char":"ω",desc:"GREEK SMALL LETTER OMEGA"},{"char":"ϑ",desc:"GREEK THETA SYMBOL"},{"char":"ϒ",desc:"GREEK UPSILON WITH HOOK SYMBOL"},{"char":"ϕ",desc:"GREEK PHI SYMBOL"},{"char":"ϖ",desc:"GREEK PI SYMBOL"},{"char":"Ϝ",desc:"GREEK LETTER DIGAMMA"},{"char":"ϝ",desc:"GREEK SMALL LETTER DIGAMMA"},{"char":"ϰ",desc:"GREEK KAPPA SYMBOL"},{"char":"ϱ",desc:"GREEK RHO SYMBOL"},{"char":"ϵ",desc:"GREEK LUNATE EPSILON SYMBOL"},{"char":"϶",desc:"GREEK REVERSED LUNATE EPSILON SYMBOL"}]},{title:"Cyrillic",list:[{"char":"Ѐ",desc:"CYRILLIC CAPITAL LETTER IE WITH GRAVE"},{"char":"Ё",desc:"CYRILLIC CAPITAL LETTER IO"},{"char":"Ђ",desc:"CYRILLIC CAPITAL LETTER DJE"},{"char":"Ѓ",desc:"CYRILLIC CAPITAL LETTER GJE"},{"char":"Є",desc:"CYRILLIC CAPITAL LETTER UKRAINIAN IE"},{"char":"Ѕ",desc:"CYRILLIC CAPITAL LETTER DZE"},{"char":"І",desc:"CYRILLIC CAPITAL LETTER BYELORUSSIAN-UKRAINIAN I"},{"char":"Ї",desc:"CYRILLIC CAPITAL LETTER YI"},{"char":"Ј",desc:"CYRILLIC CAPITAL LETTER JE"},{"char":"Љ",desc:"CYRILLIC CAPITAL LETTER LJE"},{"char":"Њ",desc:"CYRILLIC CAPITAL LETTER NJE"},{"char":"Ћ",desc:"CYRILLIC CAPITAL LETTER TSHE"},{"char":"Ќ",desc:"CYRILLIC CAPITAL LETTER KJE"},{"char":"Ѝ",desc:"CYRILLIC CAPITAL LETTER I WITH GRAVE"},{"char":"Ў",desc:"CYRILLIC CAPITAL LETTER SHORT U"},{"char":"Џ",desc:"CYRILLIC CAPITAL LETTER DZHE"},{"char":"А",desc:"CYRILLIC CAPITAL LETTER A"},{"char":"Б",desc:"CYRILLIC CAPITAL LETTER BE"},{"char":"В",desc:"CYRILLIC CAPITAL LETTER VE"},{"char":"Г",desc:"CYRILLIC CAPITAL LETTER GHE"},{"char":"Д",desc:"CYRILLIC CAPITAL LETTER DE"},{"char":"Е",desc:"CYRILLIC CAPITAL LETTER IE"},{"char":"Ж",desc:"CYRILLIC CAPITAL LETTER ZHE"},{"char":"З",desc:"CYRILLIC CAPITAL LETTER ZE"},{"char":"И",desc:"CYRILLIC CAPITAL LETTER I"},{"char":"Й",desc:"CYRILLIC CAPITAL LETTER SHORT I"},{"char":"К",desc:"CYRILLIC CAPITAL LETTER KA"},{"char":"Л",desc:"CYRILLIC CAPITAL LETTER EL"},{"char":"М",desc:"CYRILLIC CAPITAL LETTER EM"},{"char":"Н",desc:"CYRILLIC CAPITAL LETTER EN"},{"char":"О",desc:"CYRILLIC CAPITAL LETTER O"},{"char":"П",desc:"CYRILLIC CAPITAL LETTER PE"},{"char":"Р",desc:"CYRILLIC CAPITAL LETTER ER"},{"char":"С",desc:"CYRILLIC CAPITAL LETTER ES"},{"char":"Т",desc:"CYRILLIC CAPITAL LETTER TE"},{"char":"У",desc:"CYRILLIC CAPITAL LETTER U"},{"char":"Ф",desc:"CYRILLIC CAPITAL LETTER EF"},{"char":"Х",desc:"CYRILLIC CAPITAL LETTER HA"},{"char":"Ц",desc:"CYRILLIC CAPITAL LETTER TSE"},{"char":"Ч",desc:"CYRILLIC CAPITAL LETTER CHE"},{"char":"Ш",desc:"CYRILLIC CAPITAL LETTER SHA"},{"char":"Щ",desc:"CYRILLIC CAPITAL LETTER SHCHA"},{"char":"Ъ",desc:"CYRILLIC CAPITAL LETTER HARD SIGN"},{"char":"Ы",desc:"CYRILLIC CAPITAL LETTER YERU"},{"char":"Ь",desc:"CYRILLIC CAPITAL LETTER SOFT SIGN"},{"char":"Э",desc:"CYRILLIC CAPITAL LETTER E"},{"char":"Ю",desc:"CYRILLIC CAPITAL LETTER YU"},{"char":"Я",desc:"CYRILLIC CAPITAL LETTER YA"},{"char":"а",desc:"CYRILLIC SMALL LETTER A"},{"char":"б",desc:"CYRILLIC SMALL LETTER BE"},{"char":"в",desc:"CYRILLIC SMALL LETTER VE"},{"char":"г",desc:"CYRILLIC SMALL LETTER GHE"},{"char":"д",desc:"CYRILLIC SMALL LETTER DE"},{"char":"е",desc:"CYRILLIC SMALL LETTER IE"},{"char":"ж",desc:"CYRILLIC SMALL LETTER ZHE"},{"char":"з",desc:"CYRILLIC SMALL LETTER ZE"},{"char":"и",desc:"CYRILLIC SMALL LETTER I"},{"char":"й",desc:"CYRILLIC SMALL LETTER SHORT I"},{"char":"к",desc:"CYRILLIC SMALL LETTER KA"},{"char":"л",desc:"CYRILLIC SMALL LETTER EL"},{"char":"м",desc:"CYRILLIC SMALL LETTER EM"},{"char":"н",desc:"CYRILLIC SMALL LETTER EN"},{"char":"о",desc:"CYRILLIC SMALL LETTER O"},{"char":"п",desc:"CYRILLIC SMALL LETTER PE"},{"char":"р",desc:"CYRILLIC SMALL LETTER ER"},{"char":"с",desc:"CYRILLIC SMALL LETTER ES"},{"char":"т",desc:"CYRILLIC SMALL LETTER TE"},{"char":"у",desc:"CYRILLIC SMALL LETTER U"},{"char":"ф",desc:"CYRILLIC SMALL LETTER EF"},{"char":"х",desc:"CYRILLIC SMALL LETTER HA"},{"char":"ц",desc:"CYRILLIC SMALL LETTER TSE"},{"char":"ч",desc:"CYRILLIC SMALL LETTER CHE"},{"char":"ш",desc:"CYRILLIC SMALL LETTER SHA"},{"char":"щ",desc:"CYRILLIC SMALL LETTER SHCHA"},{"char":"ъ",desc:"CYRILLIC SMALL LETTER HARD SIGN"},{"char":"ы",desc:"CYRILLIC SMALL LETTER YERU"},{"char":"ь",desc:"CYRILLIC SMALL LETTER SOFT SIGN"},{"char":"э",desc:"CYRILLIC SMALL LETTER E"},{"char":"ю",desc:"CYRILLIC SMALL LETTER YU"},{"char":"я",desc:"CYRILLIC SMALL LETTER YA"},{"char":"ѐ",desc:"CYRILLIC SMALL LETTER IE WITH GRAVE"},{"char":"ё",desc:"CYRILLIC SMALL LETTER IO"},{"char":"ђ",desc:"CYRILLIC SMALL LETTER DJE"},{"char":"ѓ",desc:"CYRILLIC SMALL LETTER GJE"},{"char":"є",desc:"CYRILLIC SMALL LETTER UKRAINIAN IE"},{"char":"ѕ",desc:"CYRILLIC SMALL LETTER DZE"},{"char":"і",desc:"CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I"},{"char":"ї",desc:"CYRILLIC SMALL LETTER YI"},{"char":"ј",desc:"CYRILLIC SMALL LETTER JE"},{"char":"љ",desc:"CYRILLIC SMALL LETTER LJE"},{"char":"њ",desc:"CYRILLIC SMALL LETTER NJE"},{"char":"ћ",desc:"CYRILLIC SMALL LETTER TSHE"},{"char":"ќ",desc:"CYRILLIC SMALL LETTER KJE"},{"char":"ѝ",desc:"CYRILLIC SMALL LETTER I WITH GRAVE"},{"char":"ў",desc:"CYRILLIC SMALL LETTER SHORT U"},{"char":"џ",desc:"CYRILLIC SMALL LETTER DZHE"}]},{title:"Punctuation",list:[{"char":"–",desc:"EN DASH"},{"char":"—",desc:"EM DASH"},{"char":"‘",desc:"LEFT SINGLE QUOTATION MARK"},{"char":"’",desc:"RIGHT SINGLE QUOTATION MARK"},{"char":"‚",desc:"SINGLE LOW-9 QUOTATION MARK"},{"char":"“",desc:"LEFT DOUBLE QUOTATION MARK"},{"char":"”",desc:"RIGHT DOUBLE QUOTATION MARK"},{"char":"„",desc:"DOUBLE LOW-9 QUOTATION MARK"},{"char":"†",desc:"DAGGER"},{"char":"‡",desc:"DOUBLE DAGGER"},{"char":"•",desc:"BULLET"},{"char":"…",desc:"HORIZONTAL ELLIPSIS"},{"char":"‰",desc:"PER MILLE SIGN"},{"char":"′",desc:"PRIME"},{"char":"″",desc:"DOUBLE PRIME"},{"char":"‹",desc:"SINGLE LEFT-POINTING ANGLE QUOTATION MARK"},{"char":"›",desc:"SINGLE RIGHT-POINTING ANGLE QUOTATION MARK"},{"char":"‾",desc:"OVERLINE"},{"char":"⁄",desc:"FRACTION SLASH"}]},{title:"Currency",list:[{"char":"₠",desc:"EURO-CURRENCY SIGN"},{"char":"₡",desc:"COLON SIGN"},{"char":"₢",desc:"CRUZEIRO SIGN"},{"char":"₣",desc:"FRENCH FRANC SIGN"},{"char":"₤",desc:"LIRA SIGN"},{"char":"₥",desc:"MILL SIGN"},{"char":"₦",desc:"NAIRA SIGN"},{"char":"₧",desc:"PESETA SIGN"},{"char":"₨",desc:"RUPEE SIGN"},{"char":"₩",desc:"WON SIGN"},{"char":"₪",desc:"NEW SHEQEL SIGN"},{"char":"₫",desc:"DONG SIGN"},{"char":"€",desc:"EURO SIGN"},{"char":"₭",desc:"KIP SIGN"},{"char":"₮",desc:"TUGRIK SIGN"},{"char":"₯",desc:"DRACHMA SIGN"},{"char":"₰",desc:"GERMAN PENNY SYMBOL"},{"char":"₱",desc:"PESO SIGN"},{"char":"₲",desc:"GUARANI SIGN"},{"char":"₳",desc:"AUSTRAL SIGN"},{"char":"₴",desc:"HRYVNIA SIGN"},{"char":"₵",desc:"CEDI SIGN"},{"char":"₶",desc:"LIVRE TOURNOIS SIGN"},{"char":"₷",desc:"SPESMILO SIGN"},{"char":"₸",desc:"TENGE SIGN"},{"char":"₹",desc:"INDIAN RUPEE SIGN"}]},{title:"Arrows",list:[{"char":"←",desc:"LEFTWARDS ARROW"},{"char":"↑",desc:"UPWARDS ARROW"},{"char":"→",desc:"RIGHTWARDS ARROW"},{"char":"↓",desc:"DOWNWARDS ARROW"},{"char":"↔",desc:"LEFT RIGHT ARROW"},{"char":"↕",desc:"UP DOWN ARROW"},{"char":"↖",desc:"NORTH WEST ARROW"},{"char":"↗",desc:"NORTH EAST ARROW"},{"char":"↘",desc:"SOUTH EAST ARROW"},{"char":"↙",desc:"SOUTH WEST ARROW"},{"char":"↚",desc:"LEFTWARDS ARROW WITH STROKE"},{"char":"↛",desc:"RIGHTWARDS ARROW WITH STROKE"},{"char":"↜",desc:"LEFTWARDS WAVE ARROW"},{"char":"↝",desc:"RIGHTWARDS WAVE ARROW"},{"char":"↞",desc:"LEFTWARDS TWO HEADED ARROW"},{"char":"↟",desc:"UPWARDS TWO HEADED ARROW"},{"char":"↠",desc:"RIGHTWARDS TWO HEADED ARROW"},{"char":"↡",desc:"DOWNWARDS TWO HEADED ARROW"},{"char":"↢",desc:"LEFTWARDS ARROW WITH TAIL"},{"char":"↣",desc:"RIGHTWARDS ARROW WITH TAIL"},{"char":"↤",desc:"LEFTWARDS ARROW FROM BAR"},{"char":"↥",desc:"UPWARDS ARROW FROM BAR"},{"char":"↦",desc:"RIGHTWARDS ARROW FROM BAR"},{"char":"↧",desc:"DOWNWARDS ARROW FROM BAR"},{"char":"↨",desc:"UP DOWN ARROW WITH BASE"},{"char":"↩",desc:"LEFTWARDS ARROW WITH HOOK"},{"char":"↪",desc:"RIGHTWARDS ARROW WITH HOOK"},{"char":"↫",desc:"LEFTWARDS ARROW WITH LOOP"},{"char":"↬",desc:"RIGHTWARDS ARROW WITH LOOP"},{"char":"↭",desc:"LEFT RIGHT WAVE ARROW"},{"char":"↮",desc:"LEFT RIGHT ARROW WITH STROKE"},{"char":"↯",desc:"DOWNWARDS ZIGZAG ARROW"},{"char":"↰",desc:"UPWARDS ARROW WITH TIP LEFTWARDS"},{"char":"↱",desc:"UPWARDS ARROW WITH TIP RIGHTWARDS"},{"char":"↲",desc:"DOWNWARDS ARROW WITH TIP LEFTWARDS"},{"char":"↳",desc:"DOWNWARDS ARROW WITH TIP RIGHTWARDS"},{"char":"↴",desc:"RIGHTWARDS ARROW WITH CORNER DOWNWARDS"},{"char":"↵",desc:"DOWNWARDS ARROW WITH CORNER LEFTWARDS"},{"char":"↶",desc:"ANTICLOCKWISE TOP SEMICIRCLE ARROW"},{"char":"↷",desc:"CLOCKWISE TOP SEMICIRCLE ARROW"},{"char":"↸",desc:"NORTH WEST ARROW TO LONG BAR"},{"char":"↹",desc:"LEFTWARDS ARROW TO BAR OVER RIGHTWARDS ARROW TO BAR"},{"char":"↺",desc:"ANTICLOCKWISE OPEN CIRCLE ARROW"},{"char":"↻",desc:"CLOCKWISE OPEN CIRCLE ARROW"},{"char":"↼",desc:"LEFTWARDS HARPOON WITH BARB UPWARDS"},{"char":"↽",desc:"LEFTWARDS HARPOON WITH BARB DOWNWARDS"},{"char":"↾",desc:"UPWARDS HARPOON WITH BARB RIGHTWARDS"},{"char":"↿",desc:"UPWARDS HARPOON WITH BARB LEFTWARDS"},{"char":"⇀",desc:"RIGHTWARDS HARPOON WITH BARB UPWARDS"},{"char":"⇁",desc:"RIGHTWARDS HARPOON WITH BARB DOWNWARDS"},{"char":"⇂",desc:"DOWNWARDS HARPOON WITH BARB RIGHTWARDS"},{"char":"⇃",desc:"DOWNWARDS HARPOON WITH BARB LEFTWARDS"},{"char":"⇄",desc:"RIGHTWARDS ARROW OVER LEFTWARDS ARROW"},{"char":"⇅",desc:"UPWARDS ARROW LEFTWARDS OF DOWNWARDS ARROW"},{"char":"⇆",desc:"LEFTWARDS ARROW OVER RIGHTWARDS ARROW"},{"char":"⇇",desc:"LEFTWARDS PAIRED ARROWS"},{"char":"⇈",desc:"UPWARDS PAIRED ARROWS"},{"char":"⇉",desc:"RIGHTWARDS PAIRED ARROWS"},{"char":"⇊",desc:"DOWNWARDS PAIRED ARROWS"},{"char":"⇋",desc:"LEFTWARDS HARPOON OVER RIGHTWARDS HARPOON"},{"char":"⇌",desc:"RIGHTWARDS HARPOON OVER LEFTWARDS HARPOON"},{"char":"⇍",desc:"LEFTWARDS DOUBLE ARROW WITH STROKE"},{"char":"⇎",desc:"LEFT RIGHT DOUBLE ARROW WITH STROKE"},{"char":"⇏",desc:"RIGHTWARDS DOUBLE ARROW WITH STROKE"},{"char":"⇐",desc:"LEFTWARDS DOUBLE ARROW"},{"char":"⇑",desc:"UPWARDS DOUBLE ARROW"},{"char":"⇒",desc:"RIGHTWARDS DOUBLE ARROW"},{"char":"⇓",desc:"DOWNWARDS DOUBLE ARROW"},{"char":"⇔",desc:"LEFT RIGHT DOUBLE ARROW"},{"char":"⇕",desc:"UP DOWN DOUBLE ARROW"},{"char":"⇖",desc:"NORTH WEST DOUBLE ARROW"},{"char":"⇗",desc:"NORTH EAST DOUBLE ARROW"},{"char":"⇘",desc:"SOUTH EAST DOUBLE ARROW"},{"char":"⇙",desc:"SOUTH WEST DOUBLE ARROW"},{"char":"⇚",desc:"LEFTWARDS TRIPLE ARROW"},{"char":"⇛",desc:"RIGHTWARDS TRIPLE ARROW"},{"char":"⇜",desc:"LEFTWARDS SQUIGGLE ARROW"},{"char":"⇝",desc:"RIGHTWARDS SQUIGGLE ARROW"},{"char":"⇞",desc:"UPWARDS ARROW WITH DOUBLE STROKE"},{"char":"⇟",desc:"DOWNWARDS ARROW WITH DOUBLE STROKE"},{"char":"⇠",desc:"LEFTWARDS DASHED ARROW"},{"char":"⇡",desc:"UPWARDS DASHED ARROW"},{"char":"⇢",desc:"RIGHTWARDS DASHED ARROW"},{"char":"⇣",desc:"DOWNWARDS DASHED ARROW"},{"char":"⇤",desc:"LEFTWARDS ARROW TO BAR"},{"char":"⇥",desc:"RIGHTWARDS ARROW TO BAR"},{"char":"⇦",desc:"LEFTWARDS WHITE ARROW"},{"char":"⇧",desc:"UPWARDS WHITE ARROW"},{"char":"⇨",desc:"RIGHTWARDS WHITE ARROW"},{"char":"⇩",desc:"DOWNWARDS WHITE ARROW"},{"char":"⇪",desc:"UPWARDS WHITE ARROW FROM BAR"},{"char":"⇫",desc:"UPWARDS WHITE ARROW ON PEDESTAL"},{"char":"⇬",desc:"UPWARDS WHITE ARROW ON PEDESTAL WITH HORIZONTAL BAR"},{"char":"⇭",desc:"UPWARDS WHITE ARROW ON PEDESTAL WITH VERTICAL BAR"},{"char":"⇮",desc:"UPWARDS WHITE DOUBLE ARROW"},{"char":"⇯",desc:"UPWARDS WHITE DOUBLE ARROW ON PEDESTAL"},{"char":"⇰",desc:"RIGHTWARDS WHITE ARROW FROM WALL"},{"char":"⇱",desc:"NORTH WEST ARROW TO CORNER"},{"char":"⇲",desc:"SOUTH EAST ARROW TO CORNER"},{"char":"⇳",desc:"UP DOWN WHITE ARROW"},{"char":"⇴",desc:"RIGHT ARROW WITH SMALL CIRCLE"},{"char":"⇵",desc:"DOWNWARDS ARROW LEFTWARDS OF UPWARDS ARROW"},{"char":"⇶",desc:"THREE RIGHTWARDS ARROWS"},{"char":"⇷",desc:"LEFTWARDS ARROW WITH VERTICAL STROKE"},{"char":"⇸",desc:"RIGHTWARDS ARROW WITH VERTICAL STROKE"},{"char":"⇹",desc:"LEFT RIGHT ARROW WITH VERTICAL STROKE"},{"char":"⇺",desc:"LEFTWARDS ARROW WITH DOUBLE VERTICAL STROKE"},{"char":"⇻",desc:"RIGHTWARDS ARROW WITH DOUBLE VERTICAL STROKE"},{"char":"⇼",desc:"LEFT RIGHT ARROW WITH DOUBLE VERTICAL STROKE"},{"char":"⇽",desc:"LEFTWARDS OPEN-HEADED ARROW"},{"char":"⇾",desc:"RIGHTWARDS OPEN-HEADED ARROW"},{"char":"⇿",desc:"LEFT RIGHT OPEN-HEADED ARROW"}]},{title:"Math",list:[{"char":"∀",desc:"FOR ALL"},{"char":"∂",desc:"PARTIAL DIFFERENTIAL"},{"char":"∃",desc:"THERE EXISTS"},{"char":"∅",desc:"EMPTY SET"},{"char":"∇",desc:"NABLA"},{"char":"∈",desc:"ELEMENT OF"},{"char":"∉",desc:"NOT AN ELEMENT OF"},{"char":"∋",desc:"CONTAINS AS MEMBER"},{"char":"∏",desc:"N-ARY PRODUCT"},{"char":"∑",desc:"N-ARY SUMMATION"},{"char":"−",desc:"MINUS SIGN"},{"char":"∗",desc:"ASTERISK OPERATOR"},{"char":"√",desc:"SQUARE ROOT"},{"char":"∝",desc:"PROPORTIONAL TO"},{"char":"∞",desc:"INFINITY"},{"char":"∠",desc:"ANGLE"},{"char":"∧",desc:"LOGICAL AND"},{"char":"∨",desc:"LOGICAL OR"},{"char":"∩",desc:"INTERSECTION"},{"char":"∪",desc:"UNION"},{"char":"∫",desc:"INTEGRAL"},{"char":"∴",desc:"THEREFORE"},{"char":"∼",desc:"TILDE OPERATOR"},{"char":"≅",desc:"APPROXIMATELY EQUAL TO"},{"char":"≈",desc:"ALMOST EQUAL TO"},{"char":"≠",desc:"NOT EQUAL TO"},{"char":"≡",desc:"IDENTICAL TO"},{"char":"≤",desc:"LESS-THAN OR EQUAL TO"},{"char":"≥",desc:"GREATER-THAN OR EQUAL TO"},{"char":"⊂",desc:"SUBSET OF"},{"char":"⊃",desc:"SUPERSET OF"},{"char":"⊄",desc:"NOT A SUBSET OF"},{"char":"⊆",desc:"SUBSET OF OR EQUAL TO"},{"char":"⊇",desc:"SUPERSET OF OR EQUAL TO"},{"char":"⊕",desc:"CIRCLED PLUS"},{"char":"⊗",desc:"CIRCLED TIMES"},{"char":"⊥",desc:"UP TACK"}]},{title:"Misc",list:[{"char":"♠",desc:"BLACK SPADE SUIT"},{"char":"♣",desc:"BLACK CLUB SUIT"},{"char":"♥",desc:"BLACK HEART SUIT"},{"char":"♦",desc:"BLACK DIAMOND SUIT"},{"char":"♩",desc:"QUARTER NOTE"},{"char":"♪",desc:"EIGHTH NOTE"},{"char":"♫",desc:"BEAMED EIGHTH NOTES"},{"char":"♬",desc:"BEAMED SIXTEENTH NOTES"},{"char":"♭",desc:"MUSIC FLAT SIGN"},{"char":"♮",desc:"MUSIC NATURAL SIGN"},{"char":"☀",desc:"BLACK SUN WITH RAYS"},{"char":"☁",desc:"CLOUD"},{"char":"☂",desc:"UMBRELLA"},{"char":"☃",desc:"SNOWMAN"},{"char":"☕",desc:"HOT BEVERAGE"},{"char":"☘",desc:"SHAMROCK"},{"char":"☯",desc:"YIN YANG"},{"char":"✔",desc:"HEAVY CHECK MARK"},{"char":"✖",desc:"HEAVY MULTIPLICATION X"},{"char":"❄",desc:"SNOWFLAKE"},{"char":"❛",desc:"HEAVY SINGLE TURNED COMMA QUOTATION MARK ORNAMENT"},{"char":"❜",desc:"HEAVY SINGLE COMMA QUOTATION MARK ORNAMENT"},{"char":"❝",desc:"HEAVY DOUBLE TURNED COMMA QUOTATION MARK ORNAMENT"},{"char":"❞",desc:"HEAVY DOUBLE COMMA QUOTATION MARK ORNAMENT"},{"char":"❤",desc:"HEAVY BLACK HEART"}]}]}),a.FE.PLUGINS.specialCharacters=function(b){function c(){}function d(){for(var a='<div class="fr-special-characters-modal">',c=0;c<b.opts.specialCharactersSets.length;c++){for(var d=b.opts.specialCharactersSets[c],e=d.list,f='<div class="fr-special-characters-list"><p class="fr-special-characters-title">'+b.language.translate(d.title)+"</p>",g=0;g<e.length;g++){var h=e[g];f+='<span class="fr-command fr-special-character" tabIndex="-1" role="button" value="'+h["char"]+'" title="'+h.desc+'">'+h["char"]+'<span class="fr-sr-only">'+b.language.translate(h.desc)+" </span></span>"}a+=f+"</div>"}return a+="</div>"}function e(a,c){b.events.disableBlur(),a.focus(),c.preventDefault(),c.stopPropagation()}function f(){b.events.$on(l,"keydown",function(c){var d=c.which,f=l.find("span.fr-special-character:focus:first");if(!(f.length||d!=a.FE.KEYCODE.F10||b.keys.ctrlKey(c)||c.shiftKey)&&c.altKey){var g=l.find("span.fr-special-character:first");return e(g,c),!1}if(d==a.FE.KEYCODE.TAB||d==a.FE.KEYCODE.ARROW_LEFT||d==a.FE.KEYCODE.ARROW_RIGHT){var h=null,i=null,k=!1;return d==a.FE.KEYCODE.ARROW_LEFT||d==a.FE.KEYCODE.ARROW_RIGHT?(i=d==a.FE.KEYCODE.ARROW_RIGHT,k=!0):i=!c.shiftKey,f.length?(k&&(h=i?f.nextAll("span.fr-special-character:first"):f.prevAll("span.fr-special-character:first")),h&&h.length||(h=i?f.parent().next().find("span.fr-special-character:first"):f.parent().prev().find("span.fr-special-character:"+(k?"last":"first")),h.length||(h=l.find("span.fr-special-character:"+(i?"first":"last"))))):h=l.find("span.fr-special-character:"+(i?"first":"last")),e(h,c),!1}if(d!=a.FE.KEYCODE.ENTER||!f.length)return!0;var m=j.data("instance")||b;m.specialCharacters.insert(f)},!0)}function g(){if(!j){var c="<h4>"+b.language.translate("Special Characters")+"</h4>",e=d(),g=b.modals.create(m,c,e);j=g.$modal,k=g.$head,l=g.$body,b.events.$on(a(b.o_win),"resize",function(){var a=j.data("instance")||b;a.modals.resize(m)}),b.events.bindClick(l,".fr-special-character",function(c){var d=j.data("instance")||b,e=a(c.currentTarget);d.specialCharacters.insert(e)}),f()}b.modals.show(m),b.modals.resize(m)}function h(){b.modals.hide(m)}function i(a){b.specialCharacters.hide(),b.undo.saveStep(),b.html.insert(a.attr("value"),!0),b.undo.saveStep()}var j,k,l,m="special_characters";return{_init:c,show:g,hide:h,insert:i}},a.FroalaEditor.DefineIcon("specialCharacters",{template:"text",NAME:"Ω"}),a.FE.RegisterCommand("specialCharacters",{title:"Special Characters",icon:"specialCharacters",undo:!1,focus:!1,modal:!0,callback:function(){this.specialCharacters.show()},plugin:"specialCharacters",showOnMobile:!1})}); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/table.min.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/table.min.js new file mode 100644 index 0000000..01e6edf --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/table.min.js @@ -0,0 +1,8 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.POPUP_TEMPLATES,{"table.insert":"[_BUTTONS_][_ROWS_COLUMNS_]","table.edit":"[_BUTTONS_]","table.colors":"[_BUTTONS_][_COLORS_][_CUSTOM_COLOR_]"}),a.extend(a.FE.DEFAULTS,{tableInsertMaxSize:10,tableEditButtons:["tableHeader","tableRemove","|","tableRows","tableColumns","tableStyle","-","tableCells","tableCellBackground","tableCellVerticalAlign","tableCellHorizontalAlign","tableCellStyle"],tableInsertButtons:["tableBack","|"],tableResizer:!0,tableResizerOffset:5,tableResizingLimit:30,tableColorsButtons:["tableBack","|"],tableColors:["#61BD6D","#1ABC9C","#54ACD2","#2C82C9","#9365B8","#475577","#CCCCCC","#41A85F","#00A885","#3D8EB9","#2969B0","#553982","#28324E","#000000","#F7DA64","#FBA026","#EB6B56","#E25041","#A38F84","#EFEFEF","#FFFFFF","#FAC51C","#F37934","#D14841","#B8312F","#7C706B","#D1D5D8","REMOVE"],tableColorsStep:7,tableCellStyles:{"fr-highlighted":"Highlighted","fr-thick":"Thick"},tableStyles:{"fr-dashed-borders":"Dashed Borders","fr-alternate-rows":"Alternate Rows"},tableCellMultipleStyles:!0,tableMultipleStyles:!0,tableInsertHelper:!0,tableInsertHelperOffset:15}),a.FE.PLUGINS.table=function(b){function c(){var a=b.$tb.find('.fr-command[data-cmd="insertTable"]'),c=b.popups.get("table.insert");if(c||(c=g()),!c.hasClass("fr-active")){b.popups.refresh("table.insert"),b.popups.setContainer("table.insert",b.$tb);var d=a.offset().left+a.outerWidth()/2,e=a.offset().top+(b.opts.toolbarBottom?10:a.outerHeight()-10);b.popups.show("table.insert",d,e,a.outerHeight())}}function d(){var a=J();if(a){var c=b.popups.get("table.edit");if(c||(c=k()),c){b.popups.setContainer("table.edit",b.$sc);var d=R(a),e=(d.left+d.right)/2,f=d.bottom;b.popups.show("table.edit",e,f,d.bottom-d.top),b.edit.isDisabled()&&(b.toolbar.disable(),b.$el.removeClass("fr-no-selection"),b.edit.on(),b.button.bulkRefresh(),b.selection.setAtEnd(b.$el.find(".fr-selected-cell:last").get(0)),b.selection.restore())}}}function e(){var a=J();if(a){var c=b.popups.get("table.colors");c||(c=l()),b.popups.setContainer("table.colors",b.$sc);var d=R(a),e=(d.left+d.right)/2,f=d.bottom;p(),b.popups.show("table.colors",e,f,d.bottom-d.top)}}function f(){0===ta().length&&b.toolbar.enable()}function g(c){if(c)return b.popups.onHide("table.insert",function(){b.popups.get("table.insert").find('.fr-table-size .fr-select-table-size > span[data-row="1"][data-col="1"]').trigger("mouseenter")}),!0;var d="";b.opts.tableInsertButtons.length>0&&(d='<div class="fr-buttons">'+b.button.buildList(b.opts.tableInsertButtons)+"</div>");var e={buttons:d,rows_columns:i()},f=b.popups.create("table.insert",e);return b.events.$on(f,"mouseenter",".fr-table-size .fr-select-table-size .fr-table-cell",function(b){h(a(b.currentTarget))},!0),j(f),f}function h(a){var c=a.data("row"),d=a.data("col"),e=a.parent();e.siblings(".fr-table-size-info").html(c+" × "+d),e.find("> span").removeClass("hover fr-active-item");for(var f=1;f<=b.opts.tableInsertMaxSize;f++)for(var g=0;g<=b.opts.tableInsertMaxSize;g++){var h=e.find('> span[data-row="'+f+'"][data-col="'+g+'"]');c>=f&&d>=g?h.addClass("hover"):c+1>=f||2>=f&&!b.helpers.isMobile()?h.css("display","inline-block"):f>2&&!b.helpers.isMobile()&&h.css("display","none")}a.addClass("fr-active-item")}function i(){for(var a='<div class="fr-table-size"><div class="fr-table-size-info">1 × 1</div><div class="fr-select-table-size">',c=1;c<=b.opts.tableInsertMaxSize;c++){for(var d=1;d<=b.opts.tableInsertMaxSize;d++){var e="inline-block";c>2&&!b.helpers.isMobile()&&(e="none");var f="fr-table-cell ";1==c&&1==d&&(f+=" hover"),a+='<span class="fr-command '+f+'" tabIndex="-1" data-cmd="tableInsert" data-row="'+c+'" data-col="'+d+'" data-param1="'+c+'" data-param2="'+d+'" style="display: '+e+';" role="button"><span></span><span class="fr-sr-only">'+c+" × "+d+" </span></span>"}a+='<div class="new-line"></div>'}return a+="</div></div>"}function j(c){b.events.$on(c,"focus","[tabIndex]",function(b){var c=a(b.currentTarget);h(c)}),b.events.on("popup.tab",function(c){var d=a(c.currentTarget);if(!b.popups.isVisible("table.insert")||!d.is("span, a"))return!0;var e,f=c.which;if(a.FE.KEYCODE.ARROW_UP==f||a.FE.KEYCODE.ARROW_DOWN==f||a.FE.KEYCODE.ARROW_LEFT==f||a.FE.KEYCODE.ARROW_RIGHT==f){if(d.is("span.fr-table-cell")){var g=d.parent().find("span.fr-table-cell"),i=g.index(d),j=b.opts.tableInsertMaxSize,k=i%j,l=Math.floor(i/j);a.FE.KEYCODE.ARROW_UP==f?l=Math.max(0,l-1):a.FE.KEYCODE.ARROW_DOWN==f?l=Math.min(b.opts.tableInsertMaxSize-1,l+1):a.FE.KEYCODE.ARROW_LEFT==f?k=Math.max(0,k-1):a.FE.KEYCODE.ARROW_RIGHT==f&&(k=Math.min(b.opts.tableInsertMaxSize-1,k+1));var m=l*j+k,n=a(g.get(m));h(n),b.events.disableBlur(),n.focus(),e=!1}}else a.FE.KEYCODE.ENTER==f&&(b.button.exec(d),e=!1);return e===!1&&(c.preventDefault(),c.stopPropagation()),e},!0)}function k(a){if(a)return b.popups.onHide("table.edit",f),!0;var c="";if(b.opts.tableEditButtons.length>0){c='<div class="fr-buttons">'+b.button.buildList(b.opts.tableEditButtons)+"</div>";var e={buttons:c},g=b.popups.create("table.edit",e);return b.events.$on(b.$wp,"scroll.table-edit",function(){b.popups.isVisible("table.edit")&&d()}),g}return!1}function l(){var a="";b.opts.tableColorsButtons.length>0&&(a='<div class="fr-buttons fr-table-colors-buttons">'+b.button.buildList(b.opts.tableColorsButtons)+"</div>");var c="";b.opts.colorsHEXInput&&(c='<div class="fr-table-colors-hex-layer fr-active fr-layer" id="fr-table-colors-hex-layer-'+b.id+'"><div class="fr-input-line"><input maxlength="7" id="fr-table-colors-hex-layer-text-'+b.id+'" type="text" placeholder="'+b.language.translate("HEX Color")+'" tabIndex="1" aria-required="true"></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="tableCellBackgroundCustomColor" tabIndex="2" role="button">'+b.language.translate("OK")+"</button></div></div>");var d={buttons:a,colors:m(),custom_color:c},f=b.popups.create("table.colors",d);return b.events.$on(b.$wp,"scroll.table-colors",function(){b.popups.isVisible("table.colors")&&e()}),o(f),f}function m(){for(var a='<div class="fr-table-colors">',c=0;c<b.opts.tableColors.length;c++)0!==c&&c%b.opts.tableColorsStep===0&&(a+="<br>"),a+="REMOVE"!=b.opts.tableColors[c]?'<span class="fr-command" style="background: '+b.opts.tableColors[c]+';" tabIndex="-1" role="button" data-cmd="tableCellBackgroundColor" data-param1="'+b.opts.tableColors[c]+'"><span class="fr-sr-only">'+b.language.translate("Color")+" "+b.opts.tableColors[c]+" </span></span>":'<span class="fr-command" data-cmd="tableCellBackgroundColor" tabIndex="-1" role="button" data-param1="REMOVE" title="'+b.language.translate("Clear Formatting")+'">'+b.icon.create("tableColorRemove")+'<span class="fr-sr-only">'+b.language.translate("Clear Formatting")+"</span></span>";return a+="</div>"}function n(){var a=b.popups.get("table.colors"),c=a.find(".fr-table-colors-hex-layer input");c.length&&F(c.val())}function o(c){b.events.on("popup.tab",function(d){var e=a(d.currentTarget);if(!b.popups.isVisible("table.colors")||!e.is("span"))return!0;var f=d.which,g=!0;if(a.FE.KEYCODE.TAB==f){var h=c.find(".fr-buttons");g=!b.accessibility.focusToolbar(h,d.shiftKey?!0:!1)}else if(a.FE.KEYCODE.ARROW_UP==f||a.FE.KEYCODE.ARROW_DOWN==f||a.FE.KEYCODE.ARROW_LEFT==f||a.FE.KEYCODE.ARROW_RIGHT==f){var i=e.parent().find("span.fr-command"),j=i.index(e),k=b.opts.colorsStep,l=Math.floor(i.length/k),m=j%k,n=Math.floor(j/k),o=n*k+m,p=l*k;a.FE.KEYCODE.ARROW_UP==f?o=((o-k)%p+p)%p:a.FE.KEYCODE.ARROW_DOWN==f?o=(o+k)%p:a.FE.KEYCODE.ARROW_LEFT==f?o=((o-1)%p+p)%p:a.FE.KEYCODE.ARROW_RIGHT==f&&(o=(o+1)%p);var q=a(i.get(o));b.events.disableBlur(),q.focus(),g=!1}else a.FE.KEYCODE.ENTER==f&&(b.button.exec(e),g=!1);return g===!1&&(d.preventDefault(),d.stopPropagation()),g},!0)}function p(){var a=b.popups.get("table.colors"),c=b.$el.find(".fr-selected-cell:first"),d=b.helpers.RGBToHex(c.css("background-color")),e=a.find(".fr-table-colors-hex-layer input");a.find(".fr-selected-color").removeClass("fr-selected-color fr-active-item"),a.find('span[data-param1="'+d+'"]').addClass("fr-selected-color fr-active-item"),e.val(d).trigger("change")}function q(c,d){var e,f,g='<table style="width: 100%;" class="fr-inserted-table"><tbody>',h=100/d;for(e=0;c>e;e++){for(g+="<tr>",f=0;d>f;f++)g+='<td style="width: '+h.toFixed(4)+'%;">',0===e&&0===f&&(g+=a.FE.MARKERS),g+="<br></td>";g+="</tr>"}g+="</tbody></table>",b.html.insert(g),b.selection.restore();var i=b.$el.find(".fr-inserted-table");i.removeClass("fr-inserted-table"),b.events.trigger("table.inserted",[i.get(0)])}function r(){if(ta().length>0){var a=ua();b.selection.setBefore(a.get(0))||b.selection.setAfter(a.get(0)),b.selection.restore(),b.popups.hide("table.edit"),a.remove(),b.toolbar.enable()}}function s(){var b=ua();if(b.length>0&&0===b.find("th").length){var c,e="<thead><tr>",f=0;for(b.find("tr:first > td").each(function(){var b=a(this);f+=parseInt(b.attr("colspan"),10)||1}),c=0;f>c;c++)e+="<th><br></th>";e+="</tr></thead>",b.prepend(e),d()}}function t(){var a=ua(),c=a.find("thead");if(c.length>0)if(0===a.find("tbody tr").length)r();else if(c.remove(),ta().length>0)d();else{b.popups.hide("table.edit");var e=a.find("tbody tr:first td:first").get(0);e&&(b.selection.setAtEnd(e),b.selection.restore())}}function u(c){var e=ua();if(e.length>0){if(b.$el.find("th.fr-selected-cell").length>0&&"above"==c)return;var f,g,h,i=J(),j=P(i);g="above"==c?j.min_i:j.max_i;var k="<tr>";for(f=0;f<i[g].length;f++)if("below"==c&&g<i.length-1&&i[g][f]==i[g+1][f]||"above"==c&&g>0&&i[g][f]==i[g-1][f]){if(0===f||f>0&&i[g][f]!=i[g][f-1]){var l=a(i[g][f]);l.attr("rowspan",parseInt(l.attr("rowspan"),10)+1)}}else k+="<td><br></td>";k+="</tr>",h=a(b.$el.find("th.fr-selected-cell").length>0&&"below"==c?e.find("tbody").not(e.find("table tbody")):e.find("tr").not(e.find("table tr")).get(g)),"below"==c?"TBODY"==h.prop("tagName")?h.prepend(k):h.after(k):"above"==c&&(h.before(k),b.popups.isVisible("table.edit")&&d())}}function v(){var c=ua();if(c.length>0){var d,e,f,g=J(),h=P(g);if(0===h.min_i&&h.max_i==g.length-1)r();else{for(d=h.max_i;d>=h.min_i;d--){for(f=a(c.find("tr").not(c.find("table tr")).get(d)),e=0;e<g[d].length;e++)if(0===e||g[d][e]!=g[d][e-1]){var i=a(g[d][e]);if(parseInt(i.attr("rowspan"),10)>1){var j=parseInt(i.attr("rowspan"),10)-1;1==j?i.removeAttr("rowspan"):i.attr("rowspan",j)}if(d<g.length-1&&g[d][e]==g[d+1][e]&&(0===d||g[d][e]!=g[d-1][e])){for(var k=g[d][e],l=e;l>0&&g[d][l]==g[d][l-1];)l--;0===l?a(c.find("tr").not(c.find("table tr")).get(d+1)).prepend(k):a(g[d+1][l-1]).after(k)}}var m=f.parent();f.remove(),0===m.find("tr").length&&m.remove(),g=J(c)}B(0,g.length-1,0,g[0].length-1,c),h.min_i>0?b.selection.setAtEnd(g[h.min_i-1][0]):b.selection.setAtEnd(g[0][0]),b.selection.restore(),b.popups.hide("table.edit")}}}function w(c){var e=ua();if(e.length>0){var f,g=J(),h=P(g);f="before"==c?h.min_j:h.max_j;var i,j=100/g[0].length,k=100/(g[0].length+1);e.find("th, td").each(function(){i=a(this),i.data("old-width",i.outerWidth()/e.outerWidth()*100)}),e.find("tr").not(e.find("table tr")).each(function(b){for(var d,e=a(this),h=0,i=0;f>h-1;){if(d=e.find("> th, > td").get(i),!d){d=null;break}d==g[b][h]?(h+=parseInt(a(d).attr("colspan"),10)||1,i++):(h+=parseInt(a(g[b][h]).attr("colspan"),10)||1,"after"==c&&(d=0===i?-1:e.find("> th, > td").get(i-1)))}var l=a(d);if("after"==c&&h-1>f||"before"==c&&f>0&&g[b][f]==g[b][f-1]){if(0===b||b>0&&g[b][f]!=g[b-1][f]){var m=parseInt(l.attr("colspan"),10)+1;l.attr("colspan",m),l.css("width",(l.data("old-width")*k/j+k).toFixed(4)+"%"),l.removeData("old-width")}}else{var n;n=e.find("th").length>0?'<th style="width: '+k.toFixed(4)+'%;"><br></th>':'<td style="width: '+k.toFixed(4)+'%;"><br></td>',-1==d?e.prepend(n):null==d?e.append(n):"before"==c?l.before(n):"after"==c&&l.after(n)}}),e.find("th, td").each(function(){i=a(this),i.data("old-width")&&(i.css("width",(i.data("old-width")*k/j).toFixed(4)+"%"),i.removeData("old-width"))}),b.popups.isVisible("table.edit")&&d()}}function x(){var c=ua();if(c.length>0){var d,e,f,g=J(),h=P(g);if(0===h.min_j&&h.max_j==g[0].length-1)r();else{var i=100/g[0].length,j=100/(g[0].length-h.max_j+h.min_j-1);for(c.find("th, td").each(function(){f=a(this),f.hasClass("fr-selected-cell")||f.data("old-width",f.outerWidth()/c.outerWidth()*100)}),e=h.max_j;e>=h.min_j;e--)for(d=0;d<g.length;d++)if(0===d||g[d][e]!=g[d-1][e])if(f=a(g[d][e]),(parseInt(f.attr("colspan"),10)||1)>1){var k=parseInt(f.attr("colspan"),10)-1;1==k?f.removeAttr("colspan"):f.attr("colspan",k),f.css("width",((f.data("old-width")-la(e,g))*j/i).toFixed(4)+"%"),f.removeData("old-width")}else{var l=a(f.parent().get(0));f.remove(),0===l.find("> th, > td").length&&(0===l.prev().length||0===l.next().length||l.prev().find("> th[rowspan], > td[rowspan]").length<l.prev().find("> th, > td").length)&&l.remove()}B(0,g.length-1,0,g[0].length-1,c),h.min_j>0?b.selection.setAtEnd(g[h.min_i][h.min_j-1]):b.selection.setAtEnd(g[h.min_i][0]),b.selection.restore(),b.popups.hide("table.edit"),c.find("th, td").each(function(){f=a(this),f.data("old-width")&&(f.css("width",(f.data("old-width")*j/i).toFixed(4)+"%"),f.removeData("old-width"))})}}}function y(a,b,c){var d,e,f,g,h,i=0,j=J(c);if(b=Math.min(b,j[0].length-1),b>a)for(e=a;b>=e;e++)if(!(e>a&&j[0][e]==j[0][e-1])&&(g=Math.min(parseInt(j[0][e].getAttribute("colspan"),10)||1,b-a+1),g>1&&j[0][e]==j[0][e+1]))for(i=g-1,d=1;d<j.length;d++)if(j[d][e]!=j[d-1][e]){for(f=e;e+g>f;f++)if(h=parseInt(j[d][f].getAttribute("colspan"),10)||1,h>1&&j[d][f]==j[d][f+1])i=Math.min(i,h-1),f+=i;else if(i=Math.max(0,i-1),!i)break;if(!i)break}i&&A(j,i,"colspan",0,j.length-1,a,b)}function z(a,b,c){var d,e,f,g,h,i=0,j=J(c);if(b=Math.min(b,j.length-1),b>a)for(d=a;b>=d;d++)if(!(d>a&&j[d][0]==j[d-1][0])&&(g=Math.min(parseInt(j[d][0].getAttribute("rowspan"),10)||1,b-a+1),g>1&&j[d][0]==j[d+1][0]))for(i=g-1,e=1;e<j[0].length;e++)if(j[d][e]!=j[d][e-1]){for(f=d;d+g>f;f++)if(h=parseInt(j[f][e].getAttribute("rowspan"),10)||1,h>1&&j[f][e]==j[f+1][e])i=Math.min(i,h-1),f+=i;else if(i=Math.max(0,i-1),!i)break;if(!i)break}i&&A(j,i,"rowspan",a,b,0,j[0].length-1)}function A(a,b,c,d,e,f,g){var h,i,j;for(h=d;e>=h;h++)for(i=f;g>=i;i++)h>d&&a[h][i]==a[h-1][i]||i>f&&a[h][i]==a[h][i-1]||(j=parseInt(a[h][i].getAttribute(c),10)||1,j>1&&(j-b>1?a[h][i].setAttribute(c,j-b):a[h][i].removeAttribute(c)))}function B(a,b,c,d,e){z(a,b,e),y(c,d,e)}function C(){if(ta().length>1&&(0===b.$el.find("th.fr-selected-cell").length||0===b.$el.find("td.fr-selected-cell").length)){M();var c,e,f=J(),g=P(f),h=b.$el.find(".fr-selected-cell"),i=a(h[0]),j=i.parent(),k=j.find(".fr-selected-cell"),l=i.closest("table"),m=i.html(),n=0;for(c=0;c<k.length;c++)n+=a(k[c]).outerWidth();for(i.css("width",(n/l.outerWidth()*100).toFixed(4)+"%"),g.min_j<g.max_j&&i.attr("colspan",g.max_j-g.min_j+1),g.min_i<g.max_i&&i.attr("rowspan",g.max_i-g.min_i+1),c=1;c<h.length;c++)e=a(h[c]),"<br>"!=e.html()&&""!==e.html()&&(m+="<br>"+e.html()),e.remove();i.html(m),b.selection.setAtEnd(i.get(0)),b.selection.restore(),b.toolbar.enable(),z(g.min_i,g.max_i,l);var o=l.find("tr:empty");for(c=o.length-1;c>=0;c--)a(o[c]).remove();y(g.min_j,g.max_j,l),d()}}function D(){if(1==ta().length){var c=b.$el.find(".fr-selected-cell"),d=c.parent(),e=c.closest("table"),f=parseInt(c.attr("rowspan"),10),g=J(),h=K(c.get(0),g),i=c.clone().html("<br>");if(f>1){var j=Math.ceil(f/2);j>1?c.attr("rowspan",j):c.removeAttr("rowspan"),f-j>1?i.attr("rowspan",f-j):i.removeAttr("rowspan");for(var k=h.row+j,l=0===h.col?h.col:h.col-1;l>=0&&(g[k][l]==g[k][l-1]||k>0&&g[k][l]==g[k-1][l]);)l--;-1==l?a(e.find("tr").not(e.find("table tr")).get(k)).prepend(i):a(g[k][l]).after(i)}else{var m,n=a("<tr>").append(i);for(m=0;m<g[0].length;m++)if(0===m||g[h.row][m]!=g[h.row][m-1]){var o=a(g[h.row][m]);o.is(c)||o.attr("rowspan",(parseInt(o.attr("rowspan"),10)||1)+1)}d.after(n)}N(),b.popups.hide("table.edit")}}function E(){if(1==ta().length){var c=b.$el.find(".fr-selected-cell"),d=parseInt(c.attr("colspan"),10)||1,e=c.parent().outerWidth(),f=c.outerWidth(),g=c.clone().html("<br>"),h=J(),i=K(c.get(0),h);if(d>1){var j=Math.ceil(d/2);f=ma(i.col,i.col+j-1,h)/e*100;var k=ma(i.col+j,i.col+d-1,h)/e*100;j>1?c.attr("colspan",j):c.removeAttr("colspan"),d-j>1?g.attr("colspan",d-j):g.removeAttr("colspan"),c.css("width",f.toFixed(4)+"%"),g.css("width",k.toFixed(4)+"%")}else{var l;for(l=0;l<h.length;l++)if(0===l||h[l][i.col]!=h[l-1][i.col]){var m=a(h[l][i.col]);if(!m.is(c)){var n=(parseInt(m.attr("colspan"),10)||1)+1;m.attr("colspan",n)}}f=f/e*100/2,c.css("width",f.toFixed(4)+"%"),g.css("width",f.toFixed(4)+"%")}c.after(g),N(),b.popups.hide("table.edit")}}function F(a){var c=b.$el.find(".fr-selected-cell");"REMOVE"!=a?c.css("background-color",b.helpers.HEXtoRGB(a)):c.css("background-color",""),d()}function G(a){b.$el.find(".fr-selected-cell").css("vertical-align",a)}function H(a){b.$el.find(".fr-selected-cell").css("text-align",a)}function I(a,b,c,d){if(b.length>0){if(!c){var e=Object.keys(d);e.splice(e.indexOf(a),1),b.removeClass(e.join(" "))}b.toggleClass(a)}}function J(b){b=b||null;var c=[];return null==b&&ta().length>0&&(b=ua()),b&&b.find("tr").not(b.find("table tr")).each(function(b,d){var e=a(d),f=0;e.find("> th, > td").each(function(d,e){for(var g=a(e),h=parseInt(g.attr("colspan"),10)||1,i=parseInt(g.attr("rowspan"),10)||1,j=b;b+i>j;j++)for(var k=f;f+h>k;k++)c[j]||(c[j]=[]),c[j][k]?f++:c[j][k]=e;f+=h})}),c}function K(a,b){for(var c=0;c<b.length;c++)for(var d=0;d<b[c].length;d++)if(b[c][d]==a)return{row:c,col:d}}function L(a,b,c){for(var d=a+1,e=b+1;d<c.length;){if(c[d][b]!=c[a][b]){d--;break}d++}for(d==c.length&&d--;e<c[a].length;){if(c[a][e]!=c[a][b]){e--;break}e++}return e==c[a].length&&e--,{row:d,col:e}}function M(){b.el.querySelector(".fr-cell-fixed")&&b.el.querySelector(".fr-cell-fixed").classList.remove("fr-cell-fixed"),b.el.querySelector(".fr-cell-handler")&&b.el.querySelector(".fr-cell-handler").classList.remove("fr-cell-handler")}function N(){var c=b.$el.find(".fr-selected-cell");c.length>0&&c.each(function(){var b=a(this);b.removeClass("fr-selected-cell"),""===b.attr("class")&&b.removeAttr("class")}),M()}function O(){b.events.disableBlur(),b.selection.clear(),b.$el.addClass("fr-no-selection"),b.$el.blur(),b.events.enableBlur()}function P(a){var c=b.$el.find(".fr-selected-cell");if(c.length>0){var d,e=a.length,f=0,g=a[0].length,h=0;for(d=0;d<c.length;d++){var i=K(c[d],a),j=L(i.row,i.col,a);e=Math.min(i.row,e),f=Math.max(j.row,f),g=Math.min(i.col,g),h=Math.max(j.col,h)}return{min_i:e,max_i:f,min_j:g,max_j:h}}return null}function Q(b,c,d,e,f){var g,h,i,j,k=b,l=c,m=d,n=e;for(g=k;l>=g;g++)((parseInt(a(f[g][m]).attr("rowspan"),10)||1)>1||(parseInt(a(f[g][m]).attr("colspan"),10)||1)>1)&&(i=K(f[g][m],f),j=L(i.row,i.col,f),k=Math.min(i.row,k),l=Math.max(j.row,l),m=Math.min(i.col,m),n=Math.max(j.col,n)),((parseInt(a(f[g][n]).attr("rowspan"),10)||1)>1||(parseInt(a(f[g][n]).attr("colspan"),10)||1)>1)&&(i=K(f[g][n],f),j=L(i.row,i.col,f),k=Math.min(i.row,k),l=Math.max(j.row,l),m=Math.min(i.col,m),n=Math.max(j.col,n));for(h=m;n>=h;h++)((parseInt(a(f[k][h]).attr("rowspan"),10)||1)>1||(parseInt(a(f[k][h]).attr("colspan"),10)||1)>1)&&(i=K(f[k][h],f),j=L(i.row,i.col,f),k=Math.min(i.row,k),l=Math.max(j.row,l),m=Math.min(i.col,m),n=Math.max(j.col,n)),((parseInt(a(f[l][h]).attr("rowspan"),10)||1)>1||(parseInt(a(f[l][h]).attr("colspan"),10)||1)>1)&&(i=K(f[l][h],f),j=L(i.row,i.col,f),k=Math.min(i.row,k),l=Math.max(j.row,l),m=Math.min(i.col,m),n=Math.max(j.col,n));return k==b&&l==c&&m==d&&n==e?{min_i:b,max_i:c,min_j:d,max_j:e}:Q(k,l,m,n,f)}function R(b){var c=P(b),d=a(b[c.min_i][c.min_j]),e=a(b[c.min_i][c.max_j]),f=a(b[c.max_i][c.min_j]),g=d.offset().left,h=e.offset().left+e.outerWidth(),i=d.offset().top,j=f.offset().top+f.outerHeight();return{left:g,right:h,top:i,bottom:j}}function S(c,d){if(a(c).is(d))N(),b.edit.on(),a(c).addClass("fr-selected-cell");else{O(),b.edit.off();var e=J(),f=K(c,e),g=K(d,e),h=Q(Math.min(f.row,g.row),Math.max(f.row,g.row),Math.min(f.col,g.col),Math.max(f.col,g.col),e);N(),c.classList.add("fr-cell-fixed"),d.classList.add("fr-cell-handler");for(var i=h.min_i;i<=h.max_i;i++)for(var j=h.min_j;j<=h.max_j;j++)a(e[i][j]).addClass("fr-selected-cell")}}function T(c){var d=null,e=a(c.target);return"TD"==c.target.tagName||"TH"==c.target.tagName?d=c.target:e.closest("td").length>0?d=e.closest("td").get(0):e.closest("th").length>0&&(d=e.closest("th").get(0)),0===b.$el.find(d).length?null:d}function U(){N(),b.popups.hide("table.edit")}function V(c){var d=T(c);if("false"==a(d).parents("[contenteditable]:not(.fr-element):not(.fr-img-caption):not(body):first").attr("contenteditable"))return!0;if(ta().length>0&&!d&&U(),!b.edit.isDisabled()||b.popups.isVisible("table.edit"))if(1!=c.which||1==c.which&&b.helpers.isMac()&&c.ctrlKey)(3==c.which||1==c.which&&b.helpers.isMac()&&c.ctrlKey)&&d&&U();else if(Ba=!0,d){ta().length>0&&!c.shiftKey&&U(),c.stopPropagation(),b.events.trigger("image.hideResizer"),b.events.trigger("video.hideResizer"),Aa=!0;var e=d.tagName.toLowerCase();c.shiftKey&&b.$el.find(e+".fr-selected-cell").length>0?a(b.$el.find(e+".fr-selected-cell").closest("table")).is(a(d).closest("table"))?S(Ca,d):O():((b.keys.ctrlKey(c)||c.shiftKey)&&(ta().length>1||0===a(d).find(b.selection.element()).length&&!a(d).is(b.selection.element()))&&O(),Ca=d,S(Ca,Ca))}}function W(c){if(Aa||b.$tb.is(c.target)||b.$tb.is(a(c.target).closest(b.$tb.get(0)))||(ta().length>0&&b.toolbar.enable(),N()),!(1!=c.which||1==c.which&&b.helpers.isMac()&&c.ctrlKey)){if(Ba=!1,Aa){Aa=!1;var e=T(c);e||1!=ta().length?ta().length>0&&(b.selection.isCollapsed()?d():N()):N()}if(Ea){Ea=!1,ya.removeClass("fr-moving"),b.$el.removeClass("fr-no-selection"),b.edit.on();var f=parseFloat(ya.css("left"))+b.opts.tableResizerOffset+b.$wp.offset().left;b.opts.iframe&&(f-=b.$iframe.offset().left),ya.data("release-position",f),ya.removeData("max-left"),ya.removeData("max-right"),ka(c),ca()}}}function X(c){if(Aa===!0){var d=a(c.currentTarget);if(d.closest("table").is(ua())){if("TD"==c.currentTarget.tagName&&0===b.$el.find("th.fr-selected-cell").length)return void S(Ca,c.currentTarget);if("TH"==c.currentTarget.tagName&&0===b.$el.find("td.fr-selected-cell").length)return void S(Ca,c.currentTarget)}O()}}function Y(c,d){for(var e=c;e&&"TABLE"!=e.tagName&&e.parentNode!=b.el;)e=e.parentNode;if(e&&"TABLE"==e.tagName){var f=J(a(e));"up"==d?$(K(c,f),e,f):"down"==d&&_(K(c,f),e,f)}}function Z(a,c,d,e){for(var f,g=c;g!=b.el&&"TD"!=g.tagName&&"TH"!=g.tagName&&("up"==e?f=g.previousElementSibling:"down"==e&&(f=g.nextElementSibling),!f);)g=g.parentNode;"TD"==g.tagName||"TH"==g.tagName?Y(g,e):f&&("up"==e&&b.selection.setAtEnd(f),"down"==e&&b.selection.setAtStart(f))}function $(a,c,d){a.row>0?b.selection.setAtEnd(d[a.row-1][a.col]):Z(a,c,d,"up")}function _(a,c,d){var e=parseInt(d[a.row][a.col].getAttribute("rowspan"),10)||1;a.row<d.length-e?b.selection.setAtStart(d[a.row+e][a.col]):Z(a,c,d,"down")}function aa(c){var d=c.which,e=b.selection.blocks();if(e.length&&(e=e[0],"TD"==e.tagName||"TH"==e.tagName)){for(var f=e;f&&"TABLE"!=f.tagName&&f.parentNode!=b.el;)f=f.parentNode;if(f&&"TABLE"==f.tagName&&(a.FE.KEYCODE.ARROW_LEFT==d||a.FE.KEYCODE.ARROW_UP==d||a.FE.KEYCODE.ARROW_RIGHT==d||a.FE.KEYCODE.ARROW_DOWN==d)&&(ta().length>0&&U(),b.browser.webkit&&(a.FE.KEYCODE.ARROW_UP==d||a.FE.KEYCODE.ARROW_DOWN==d))){var g=b.selection.ranges(0).startContainer;if(g.nodeType==Node.TEXT_NODE&&(a.FE.KEYCODE.ARROW_UP==d&&g.previousSibling||a.FE.KEYCODE.ARROW_DOWN==d&&g.nextSibling))return;c.preventDefault(),c.stopPropagation();var h=J(a(f)),i=K(e,h);return a.FE.KEYCODE.ARROW_UP==d?$(i,f,h):a.FE.KEYCODE.ARROW_DOWN==d&&_(i,f,h),b.selection.restore(),!1}}}function ba(){b.shared.$table_resizer||(b.shared.$table_resizer=a('<div class="fr-table-resizer"><div></div></div>')),ya=b.shared.$table_resizer,b.events.$on(ya,"mousedown",function(a){return b.core.sameInstance(ya)?(ta().length>0&&U(),1==a.which?(b.selection.save(),Ea=!0,ya.addClass("fr-moving"),O(),b.edit.off(),ya.find("div").css("opacity",1),!1):void 0):!0}),b.events.$on(ya,"mousemove",function(a){return b.core.sameInstance(ya)?void(Ea&&(b.opts.iframe&&(a.pageX-=b.$iframe.offset().left),na(a))):!0}),b.events.on("shared.destroy",function(){ya.html("").removeData().remove(),ya=null},!0),b.events.on("destroy",function(){b.$el.find(".fr-selected-cell").removeClass("fr-selected-cell"),ya.hide().appendTo(a("body:first"))},!0)}function ca(){ya&&(ya.find("div").css("opacity",0),ya.css("top",0),ya.css("left",0),ya.css("height",0),ya.find("div").css("height",0),ya.hide())}function da(){za&&za.removeClass("fr-visible").css("left","-9999px")}function ea(c,d){var e=a(d),f=e.closest("table"),g=f.parent();if(d&&"TD"!=d.tagName&&"TH"!=d.tagName&&(e.closest("td").length>0?d=e.closest("td"):e.closest("th").length>0&&(d=e.closest("th"))),!d||"TD"!=d.tagName&&"TH"!=d.tagName)ya&&e.get(0)!=ya.get(0)&&e.parent().get(0)!=ya.get(0)&&b.core.sameInstance(ya)&&ca();else{if(e=a(d),0===b.$el.find(e).length)return!1;var h=e.offset().left-1,i=h+e.outerWidth();if(Math.abs(c.pageX-h)<=b.opts.tableResizerOffset||Math.abs(i-c.pageX)<=b.opts.tableResizerOffset){var j,k,l,m,n,o=J(f),p=K(d,o),q=L(p.row,p.col,o),r=f.offset().top,s=f.outerHeight()-1;"rtl"!=b.opts.direction?c.pageX-h<=b.opts.tableResizerOffset?(l=h,p.col>0?(m=h-la(p.col-1,o)+b.opts.tableResizingLimit,n=h+la(p.col,o)-b.opts.tableResizingLimit,j=p.col-1,k=p.col):(j=null,k=0,m=f.offset().left-1-parseInt(f.css("margin-left"),10),n=f.offset().left-1+f.width()-o[0].length*b.opts.tableResizingLimit)):i-c.pageX<=b.opts.tableResizerOffset&&(l=i,q.col<o[q.row].length&&o[q.row][q.col+1]?(m=i-la(q.col,o)+b.opts.tableResizingLimit,n=i+la(q.col+1,o)-b.opts.tableResizingLimit,j=q.col,k=q.col+1):(j=q.col,k=null,m=f.offset().left-1+o[0].length*b.opts.tableResizingLimit,n=g.offset().left-1+g.width()+parseFloat(g.css("padding-left")))):i-c.pageX<=b.opts.tableResizerOffset?(l=i,p.col>0?(m=i-la(p.col,o)+b.opts.tableResizingLimit,n=i+la(p.col-1,o)-b.opts.tableResizingLimit,j=p.col,k=p.col-1):(j=null,k=0,m=f.offset().left+o[0].length*b.opts.tableResizingLimit,n=g.offset().left-1+g.width()+parseFloat(g.css("padding-left")))):c.pageX-h<=b.opts.tableResizerOffset&&(l=h,q.col<o[q.row].length&&o[q.row][q.col+1]?(m=h-la(q.col+1,o)+b.opts.tableResizingLimit,n=h+la(q.col,o)-b.opts.tableResizingLimit,j=q.col+1,k=q.col):(j=q.col,k=null,m=g.offset().left+parseFloat(g.css("padding-left")),n=f.offset().left-1+f.width()-o[0].length*b.opts.tableResizingLimit)),ya||ba(),ya.data("table",f),ya.data("first",j),ya.data("second",k),ya.data("instance",b),b.$wp.append(ya);var t=l-b.win.pageXOffset-b.opts.tableResizerOffset-b.$wp.offset().left,u=r-b.$wp.offset().top+b.$wp.scrollTop();b.opts.iframe&&(t+=b.$iframe.offset().left,u+=b.$iframe.offset().top,m+=b.$iframe.offset().left,n+=b.$iframe.offset().left),ya.data("max-left",m),ya.data("max-right",n),ya.data("origin",l-b.win.pageXOffset),ya.css("top",u),ya.css("left",t),ya.css("height",s),ya.find("div").css("height",s),ya.css("padding-left",b.opts.tableResizerOffset),ya.css("padding-right",b.opts.tableResizerOffset),ya.show()}else b.core.sameInstance(ya)&&ca()}}function fa(c,d){if(b.$box.find(".fr-line-breaker").is(":visible"))return!1;za||qa(),b.$box.append(za),za.data("instance",b);var e=a(d),f=e.find("tr:first"),g=c.pageX,h=0,i=0;b.opts.iframe&&(h+=b.$iframe.offset().left-b.helpers.scrollLeft(),i+=b.$iframe.offset().top-b.helpers.scrollTop());var j;f.find("th, td").each(function(){var c=a(this);return c.offset().left<=g&&g<c.offset().left+c.outerWidth()/2?(j=parseInt(za.find("a").css("width"),10),za.css("top",i+c.offset().top-b.$box.offset().top-b.win.pageYOffset-j-5),za.css("left",h+c.offset().left-b.$box.offset().left-b.win.pageXOffset-j/2),za.data("selected-cell",c),za.data("position","before"),za.addClass("fr-visible"),!1):c.offset().left+c.outerWidth()/2<=g&&g<c.offset().left+c.outerWidth()?(j=parseInt(za.find("a").css("width"),10),za.css("top",i+c.offset().top-b.$box.offset().top-b.win.pageYOffset-j-5),za.css("left",h+c.offset().left-b.$box.offset().left+c.outerWidth()-b.win.pageXOffset-j/2),za.data("selected-cell",c),za.data("position","after"),za.addClass("fr-visible"),!1):void 0})}function ga(c,d){if(b.$box.find(".fr-line-breaker").is(":visible"))return!1;za||qa(),b.$box.append(za),za.data("instance",b);var e=a(d),f=c.pageY,g=0,h=0;b.opts.iframe&&(g+=b.$iframe.offset().left-b.helpers.scrollLeft(),h+=b.$iframe.offset().top-b.helpers.scrollTop());var i;e.find("tr").each(function(){var c=a(this);return c.offset().top<=f&&f<c.offset().top+c.outerHeight()/2?(i=parseInt(za.find("a").css("width"),10),za.css("top",h+c.offset().top-b.$box.offset().top-b.win.pageYOffset-i/2),za.css("left",g+c.offset().left-b.$box.offset().left-b.win.pageXOffset-i-5),za.data("selected-cell",c.find("td:first")),za.data("position","above"),za.addClass("fr-visible"),!1):c.offset().top+c.outerHeight()/2<=f&&f<c.offset().top+c.outerHeight()?(i=parseInt(za.find("a").css("width"),10),za.css("top",h+c.offset().top-b.$box.offset().top+c.outerHeight()-b.win.pageYOffset-i/2),za.css("left",g+c.offset().left-b.$box.offset().left-b.win.pageXOffset-i-5),za.data("selected-cell",c.find("td:first")),za.data("position","below"),za.addClass("fr-visible"),!1):void 0})}function ha(c,d){if(0===ta().length){var e,f,g;if(d&&("HTML"==d.tagName||"BODY"==d.tagName||b.node.isElement(d)))for(e=1;e<=b.opts.tableInsertHelperOffset;e++){if(f=b.doc.elementFromPoint(c.pageX-b.win.pageXOffset,c.pageY-b.win.pageYOffset+e),a(f).hasClass("fr-tooltip"))return!0;if(f&&("TH"==f.tagName||"TD"==f.tagName||"TABLE"==f.tagName)&&(a(f).parents(".fr-wrapper").length||b.opts.iframe))return fa(c,a(f).closest("table")),!0;if(g=b.doc.elementFromPoint(c.pageX-b.win.pageXOffset+e,c.pageY-b.win.pageYOffset),a(g).hasClass("fr-tooltip"))return!0;if(g&&("TH"==g.tagName||"TD"==g.tagName||"TABLE"==g.tagName)&&(a(g).parents(".fr-wrapper").length||b.opts.iframe))return ga(c,a(g).closest("table")),!0}b.core.sameInstance(za)&&da()}}function ia(a){Da=null;var c=b.doc.elementFromPoint(a.pageX-b.win.pageXOffset,a.pageY-b.win.pageYOffset);b.opts.tableResizer&&(!b.popups.areVisible()||b.popups.areVisible()&&b.popups.isVisible("table.edit"))&&ea(a,c),!b.opts.tableInsertHelper||b.popups.areVisible()||b.$tb.hasClass("fr-inline")&&b.$tb.is(":visible")||ha(a,c)}function ja(){if(Ea){var a=ya.data("table"),c=a.offset().top-b.win.pageYOffset;b.opts.iframe&&(c+=b.$iframe.offset().top-b.helpers.scrollTop()),ya.css("top",c)}}function ka(){var c=ya.data("origin"),d=ya.data("release-position");if(c!==d){var e=ya.data("first"),f=ya.data("second"),g=ya.data("table"),h=g.outerWidth();if(b.undo.canDo()||b.undo.saveStep(),null!==e&&null!==f){var i,j,k,l=J(g),m=[],n=[],o=[],p=[];for(i=0;i<l.length;i++)j=a(l[i][e]),k=a(l[i][f]),m[i]=j.outerWidth(),o[i]=k.outerWidth(),n[i]=m[i]/h*100,p[i]=o[i]/h*100;for(i=0;i<l.length;i++){j=a(l[i][e]),k=a(l[i][f]);var q=(n[i]*(m[i]+d-c)/m[i]).toFixed(4);j.css("width",q+"%"),k.css("width",(n[i]+p[i]-q).toFixed(4)+"%")}}else{var r,s=g.parent(),t=h/s.width()*100,u=(parseInt(g.css("margin-left"),10)||0)/s.width()*100,v=(parseInt(g.css("margin-right"),10)||0)/s.width()*100;"rtl"==b.opts.direction&&0===f||"rtl"!=b.opts.direction&&0!==f?(r=(h+d-c)/h*t,g.css("margin-right","calc(100% - "+Math.round(r).toFixed(4)+"% - "+Math.round(u).toFixed(4)+"%)")):("rtl"==b.opts.direction&&0!==f||"rtl"!=b.opts.direction&&0===f)&&(r=(h-d+c)/h*t,g.css("margin-left","calc(100% - "+Math.round(r).toFixed(4)+"% - "+Math.round(v).toFixed(4)+"%)")),g.css("width",Math.round(r).toFixed(4)+"%")}b.selection.restore(),b.undo.saveStep()}ya.removeData("origin"),ya.removeData("release-position"),ya.removeData("first"),ya.removeData("second"),ya.removeData("table")}function la(b,c){var d,e=a(c[0][b]).outerWidth(); +for(d=1;d<c.length;d++)e=Math.min(e,a(c[d][b]).outerWidth());return e}function ma(a,b,c){var d,e=0;for(d=a;b>=d;d++)e+=la(d,c);return e}function na(a){if(ta().length>1&&Ba&&O(),Ba===!1&&Aa===!1&&Ea===!1)Da&&clearTimeout(Da),(!b.edit.isDisabled()||b.popups.isVisible("table.edit"))&&(Da=setTimeout(ia,30,a));else if(Ea){var c=a.pageX-b.win.pageXOffset;b.opts.iframe&&(c+=b.$iframe.offset().left);var d=ya.data("max-left"),e=ya.data("max-right");c>=d&&e>=c?ya.css("left",c-b.opts.tableResizerOffset-b.$wp.offset().left):d>c&&parseFloat(ya.css("left"),10)>d-b.opts.tableResizerOffset?ya.css("left",d-b.opts.tableResizerOffset-b.$wp.offset().left):c>e&&parseFloat(ya.css("left"),10)<e-b.opts.tableResizerOffset&&ya.css("left",e-b.opts.tableResizerOffset-b.$wp.offset().left)}else Ba&&da()}function oa(c){b.node.isEmpty(c.get(0))?c.prepend(a.FE.MARKERS):c.prepend(a.FE.START_MARKER).append(a.FE.END_MARKER)}function pa(c){var d=c.which;if(d==a.FE.KEYCODE.TAB){var e;if(ta().length>0)e=b.$el.find(".fr-selected-cell:last");else{var f=b.selection.element();"TD"==f.tagName||"TH"==f.tagName?e=a(f):f!=b.el&&(a(f).parentsUntil(b.$el,"td").length>0?e=a(f).parents("td:first"):a(f).parentsUntil(b.$el,"th").length>0&&(e=a(f).parents("th:first")))}if(e)return c.preventDefault(),a(b.selection.element()).parents("ol, ul").length>0&&(a(b.selection.element()).parents("li").prev().length>0||a(b.selection.element()).is("li")&&a(b.selection.element()).prev().length>0)?!0:(U(),c.shiftKey?e.prev().length>0?oa(e.prev()):e.closest("tr").length>0&&e.closest("tr").prev().length>0?oa(e.closest("tr").prev().find("td:last")):e.closest("tbody").length>0&&e.closest("table").find("thead tr").length>0&&oa(e.closest("table").find("thead tr th:last")):e.next().length>0?oa(e.next()):e.closest("tr").length>0&&e.closest("tr").next().length>0?oa(e.closest("tr").next().find("td:first")):e.closest("thead").length>0&&e.closest("table").find("tbody tr").length>0?oa(e.closest("table").find("tbody tr td:first")):(e.addClass("fr-selected-cell"),u("below"),N(),oa(e.closest("tr").next().find("td:first"))),b.selection.restore(),!1)}}function qa(){b.shared.$ti_helper||(b.shared.$ti_helper=a('<div class="fr-insert-helper"><a class="fr-floating-btn" role="button" tabIndex="-1" title="'+b.language.translate("Insert")+'"><svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M22,16.75 L16.75,16.75 L16.75,22 L15.25,22.000 L15.25,16.75 L10,16.75 L10,15.25 L15.25,15.25 L15.25,10 L16.75,10 L16.75,15.25 L22,15.25 L22,16.75 Z"/></svg></a></div>'),b.events.bindClick(b.shared.$ti_helper,"a",function(){var a=za.data("selected-cell"),c=za.data("position"),d=za.data("instance")||b;"before"==c?(b.undo.saveStep(),a.addClass("fr-selected-cell"),d.table.insertColumn(c),a.removeClass("fr-selected-cell"),b.undo.saveStep()):"after"==c?(b.undo.saveStep(),a.addClass("fr-selected-cell"),d.table.insertColumn(c),a.removeClass("fr-selected-cell"),b.undo.saveStep()):"above"==c?(b.undo.saveStep(),a.addClass("fr-selected-cell"),d.table.insertRow(c),a.removeClass("fr-selected-cell"),b.undo.saveStep()):"below"==c&&(b.undo.saveStep(),a.addClass("fr-selected-cell"),d.table.insertRow(c),a.removeClass("fr-selected-cell"),b.undo.saveStep()),da()}),b.events.on("shared.destroy",function(){b.shared.$ti_helper.html("").removeData().remove(),b.shared.$ti_helper=null},!0),b.events.$on(b.shared.$ti_helper,"mousemove",function(a){a.stopPropagation()},!0),b.events.$on(a(b.o_win),"scroll",function(){da()},!0),b.events.$on(b.$wp,"scroll",function(){da()},!0)),za=b.shared.$ti_helper,b.events.on("destroy",function(){za=null}),b.tooltip.bind(b.$box,".fr-insert-helper > a.fr-floating-btn")}function ra(){Ca=null,clearTimeout(Da)}function sa(){ta().length>0?d():(b.popups.hide("table.insert"),b.toolbar.showInline())}function ta(){return b.el.querySelectorAll(".fr-selected-cell")}function ua(){var c=ta();if(c.length){for(var d=c[0];d&&"TABLE"!=d.tagName&&d.parentNode!=b.el;)d=d.parentNode;return a(d&&"TABLE"==d.tagName?d:[])}return a([])}function va(c){if(c.altKey&&c.which==a.FE.KEYCODE.SPACE){var e,f=b.selection.element();if("TD"==f.tagName||"TH"==f.tagName?e=f:a(f).closest("td").length>0?e=a(f).closest("td").get(0):a(f).closest("th").length>0&&(e=a(f).closest("th").get(0)),e)return c.preventDefault(),S(e,e),d(),!1}}function wa(c){var d=ta();if(d.length>0){var e,f,g=J(),h=c.which;1==d.length?(e=d[0],f=e):(e=b.el.querySelector(".fr-cell-fixed"),f=b.el.querySelector(".fr-cell-handler"));var i=K(f,g);if(a.FE.KEYCODE.ARROW_RIGHT==h){if(i.col<g[0].length-1)return S(e,g[i.row][i.col+1]),!1}else if(a.FE.KEYCODE.ARROW_DOWN==h){if(i.row<g.length-1)return S(e,g[i.row+1][i.col]),!1}else if(a.FE.KEYCODE.ARROW_LEFT==h){if(i.col>0)return S(e,g[i.row][i.col-1]),!1}else if(a.FE.KEYCODE.ARROW_UP==h&&i.row>0)return S(e,g[i.row-1][i.col]),!1}}function xa(){if(!b.$wp)return!1;if(!b.helpers.isMobile()){Ba=!1,Aa=!1,Ea=!1,b.events.$on(b.$el,"mousedown",V),b.popups.onShow("image.edit",function(){N(),Ba=!1,Aa=!1}),b.popups.onShow("link.edit",function(){N(),Ba=!1,Aa=!1}),b.events.on("commands.mousedown",function(a){a.parents(".fr-toolbar").length>0&&N()}),b.events.$on(b.$el,"mouseenter","th, td",X),b.events.$on(b.$win,"mouseup",W),b.opts.iframe&&b.events.$on(a(b.o_win),"mouseup",W),b.events.$on(b.$win,"mousemove",na),b.events.$on(a(b.o_win),"scroll",ja),b.events.on("contentChanged",function(){ta().length>0&&(d(),b.$el.find("img").on("load.selected-cells",function(){a(this).off("load.selected-cells"),ta().length>0&&d()}))}),b.events.$on(a(b.o_win),"resize",function(){N()}),b.events.on("toolbar.esc",function(){return ta().length>0?(b.events.disableBlur(),b.events.focus(),!1):void 0},!0),b.events.$on(a(b.o_win),"keydown",function(){Ba&&Aa&&(Ba=!1,Aa=!1,b.$el.removeClass("fr-no-selection"),b.edit.on(),b.selection.setAtEnd(b.$el.find(".fr-selected-cell:last").get(0)),b.selection.restore(),N())}),b.events.$on(b.$el,"keydown",function(a){a.shiftKey?wa(a)===!1&&setTimeout(function(){d()},0):aa(a)}),b.events.on("keydown",function(c){if(pa(c)===!1)return!1;var d=ta();if(d.length>0){if(d.length>0&&b.keys.ctrlKey(c)&&c.which==a.FE.KEYCODE.A)return N(),b.popups.isVisible("table.edit")&&b.popups.hide("table.edit"),d=[],!0;if(c.which==a.FE.KEYCODE.ESC&&b.popups.isVisible("table.edit"))return N(),b.popups.hide("table.edit"),c.preventDefault(),c.stopPropagation(),c.stopImmediatePropagation(),d=[],!1;if(d.length>1&&(c.which==a.FE.KEYCODE.BACKSPACE||c.which==a.FE.KEYCODE.DELETE)){b.undo.saveStep();for(var e=0;e<d.length;e++)a(d[e]).html("<br>"),e==d.length-1&&a(d[e]).prepend(a.FE.MARKERS);return b.selection.restore(),b.undo.saveStep(),d=[],!1}if(d.length>1&&c.which!=a.FE.KEYCODE.F10&&!b.keys.isBrowserAction(c))return c.preventDefault(),d=[],!1}else if(d=[],va(c)===!1)return!1},!0);var c=[];b.events.on("html.beforeGet",function(){c=ta();for(var a=0;a<c.length;a++)c[a].className=(c[a].className||"").replace(/fr-selected-cell/g,"")}),b.events.on("html.afterGet",function(){for(var a=0;a<c.length;a++)c[a].className=(c[a].className?c[a].className.trim()+" ":"")+"fr-selected-cell";c=[]}),g(!0),k(!0)}b.events.on("destroy",ra)}var ya,za,Aa,Ba,Ca,Da,Ea;return{_init:xa,insert:q,remove:r,insertRow:u,deleteRow:v,insertColumn:w,deleteColumn:x,mergeCells:C,splitCellVertically:E,splitCellHorizontally:D,addHeader:s,removeHeader:t,setBackground:F,showInsertPopup:c,showEditPopup:d,showColorsPopup:e,back:sa,verticalAlign:G,horizontalAlign:H,applyStyle:I,selectedTable:ua,selectedCells:ta,customColor:n}},a.FE.DefineIcon("insertTable",{NAME:"table"}),a.FE.RegisterCommand("insertTable",{title:"Insert Table",undo:!1,focus:!0,refreshOnCallback:!1,popup:!0,callback:function(){this.popups.isVisible("table.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("table.insert")):this.table.showInsertPopup()},plugin:"table"}),a.FE.RegisterCommand("tableInsert",{callback:function(a,b,c){this.table.insert(b,c),this.popups.hide("table.insert")}}),a.FE.DefineIcon("tableHeader",{NAME:"header",FA5NAME:"heading"}),a.FE.RegisterCommand("tableHeader",{title:"Table Header",focus:!1,toggle:!0,callback:function(){var a=this.popups.get("table.edit").find('.fr-command[data-cmd="tableHeader"]');a.hasClass("fr-active")?this.table.removeHeader():this.table.addHeader()},refresh:function(a){var b=this.table.selectedTable();b.length>0&&(0===b.find("th").length?a.removeClass("fr-active").attr("aria-pressed",!1):a.addClass("fr-active").attr("aria-pressed",!0))}}),a.FE.DefineIcon("tableRows",{NAME:"bars"}),a.FE.RegisterCommand("tableRows",{type:"dropdown",focus:!1,title:"Row",options:{above:"Insert row above",below:"Insert row below","delete":"Delete row"},html:function(){var b='<ul class="fr-dropdown-list" role="presentation">',c=a.FE.COMMANDS.tableRows.options;for(var d in c)c.hasOwnProperty(d)&&(b+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableRows" data-param1="'+d+'" title="'+this.language.translate(c[d])+'">'+this.language.translate(c[d])+"</a></li>");return b+="</ul>"},callback:function(a,b){"above"==b||"below"==b?this.table.insertRow(b):this.table.deleteRow()}}),a.FE.DefineIcon("tableColumns",{NAME:"bars fa-rotate-90"}),a.FE.RegisterCommand("tableColumns",{type:"dropdown",focus:!1,title:"Column",options:{before:"Insert column before",after:"Insert column after","delete":"Delete column"},html:function(){var b='<ul class="fr-dropdown-list" role="presentation">',c=a.FE.COMMANDS.tableColumns.options;for(var d in c)c.hasOwnProperty(d)&&(b+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableColumns" data-param1="'+d+'" title="'+this.language.translate(c[d])+'">'+this.language.translate(c[d])+"</a></li>");return b+="</ul>"},callback:function(a,b){"before"==b||"after"==b?this.table.insertColumn(b):this.table.deleteColumn()}}),a.FE.DefineIcon("tableCells",{NAME:"square-o",FA5NAME:"square"}),a.FE.RegisterCommand("tableCells",{type:"dropdown",focus:!1,title:"Cell",options:{merge:"Merge cells","vertical-split":"Vertical split","horizontal-split":"Horizontal split"},html:function(){var b='<ul class="fr-dropdown-list" role="presentation">',c=a.FE.COMMANDS.tableCells.options;for(var d in c)c.hasOwnProperty(d)&&(b+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableCells" data-param1="'+d+'" title="'+this.language.translate(c[d])+'">'+this.language.translate(c[d])+"</a></li>");return b+="</ul>"},callback:function(a,b){"merge"==b?this.table.mergeCells():"vertical-split"==b?this.table.splitCellVertically():this.table.splitCellHorizontally()},refreshOnShow:function(a,b){this.$el.find(".fr-selected-cell").length>1?(b.find('a[data-param1="vertical-split"]').addClass("fr-disabled").attr("aria-disabled",!0),b.find('a[data-param1="horizontal-split"]').addClass("fr-disabled").attr("aria-disabled",!0),b.find('a[data-param1="merge"]').removeClass("fr-disabled").attr("aria-disabled",!1)):(b.find('a[data-param1="merge"]').addClass("fr-disabled").attr("aria-disabled",!0),b.find('a[data-param1="vertical-split"]').removeClass("fr-disabled").attr("aria-disabled",!1),b.find('a[data-param1="horizontal-split"]').removeClass("fr-disabled").attr("aria-disabled",!1))}}),a.FE.DefineIcon("tableRemove",{NAME:"trash"}),a.FE.RegisterCommand("tableRemove",{title:"Remove Table",focus:!1,callback:function(){this.table.remove()}}),a.FE.DefineIcon("tableStyle",{NAME:"paint-brush"}),a.FE.RegisterCommand("tableStyle",{title:"Table Style",type:"dropdown",focus:!1,html:function(){var a='<ul class="fr-dropdown-list" role="presentation">',b=this.opts.tableStyles;for(var c in b)b.hasOwnProperty(c)&&(a+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableStyle" data-param1="'+c+'" title="'+this.language.translate(b[c])+'">'+this.language.translate(b[c])+"</a></li>");return a+="</ul>"},callback:function(a,b){this.table.applyStyle(b,this.$el.find(".fr-selected-cell").closest("table"),this.opts.tableMultipleStyles,this.opts.tableStyles)},refreshOnShow:function(b,c){var d=this.$el.find(".fr-selected-cell").closest("table");d&&c.find(".fr-command").each(function(){var b=a(this).data("param1"),c=d.hasClass(b);a(this).toggleClass("fr-active",c).attr("aria-selected",c)})}}),a.FE.DefineIcon("tableCellBackground",{NAME:"tint"}),a.FE.RegisterCommand("tableCellBackground",{title:"Cell Background",focus:!1,popup:!0,callback:function(){this.table.showColorsPopup()}}),a.FE.RegisterCommand("tableCellBackgroundColor",{undo:!0,focus:!1,callback:function(a,b){this.table.setBackground(b)}}),a.FE.DefineIcon("tableBack",{NAME:"arrow-left"}),a.FE.RegisterCommand("tableBack",{title:"Back",undo:!1,focus:!1,back:!0,callback:function(){this.table.back()},refresh:function(a){0!==this.table.selectedCells().length||this.opts.toolbarInline?(a.removeClass("fr-hidden"),a.next(".fr-separator").removeClass("fr-hidden")):(a.addClass("fr-hidden"),a.next(".fr-separator").addClass("fr-hidden"))}}),a.FE.DefineIcon("tableCellVerticalAlign",{NAME:"arrows-v",FA5NAME:"arrows-alt-v"}),a.FE.RegisterCommand("tableCellVerticalAlign",{type:"dropdown",focus:!1,title:"Vertical Align",options:{Top:"Align Top",Middle:"Align Middle",Bottom:"Align Bottom"},html:function(){var b='<ul class="fr-dropdown-list" role="presentation">',c=a.FE.COMMANDS.tableCellVerticalAlign.options;for(var d in c)c.hasOwnProperty(d)&&(b+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableCellVerticalAlign" data-param1="'+d.toLowerCase()+'" title="'+this.language.translate(c[d])+'">'+this.language.translate(d)+"</a></li>");return b+="</ul>"},callback:function(a,b){this.table.verticalAlign(b)},refreshOnShow:function(a,b){b.find('.fr-command[data-param1="'+this.$el.find(".fr-selected-cell").css("vertical-align")+'"]').addClass("fr-active").attr("aria-selected",!0)}}),a.FE.DefineIcon("tableCellHorizontalAlign",{NAME:"align-left"}),a.FE.DefineIcon("align-left",{NAME:"align-left"}),a.FE.DefineIcon("align-right",{NAME:"align-right"}),a.FE.DefineIcon("align-center",{NAME:"align-center"}),a.FE.DefineIcon("align-justify",{NAME:"align-justify"}),a.FE.RegisterCommand("tableCellHorizontalAlign",{type:"dropdown",focus:!1,title:"Horizontal Align",options:{left:"Align Left",center:"Align Center",right:"Align Right",justify:"Align Justify"},html:function(){var b='<ul class="fr-dropdown-list" role="presentation">',c=a.FE.COMMANDS.tableCellHorizontalAlign.options;for(var d in c)c.hasOwnProperty(d)&&(b+='<li role="presentation"><a class="fr-command fr-title" tabIndex="-1" role="option" data-cmd="tableCellHorizontalAlign" data-param1="'+d+'" title="'+this.language.translate(c[d])+'">'+this.icon.create("align-"+d)+'<span class="fr-sr-only">'+this.language.translate(c[d])+"</span></a></li>");return b+="</ul>"},callback:function(a,b){this.table.horizontalAlign(b)},refresh:function(b){var c=this.table.selectedCells();c.length&&b.find("> *:first").replaceWith(this.icon.create("align-"+this.helpers.getAlignment(a(c[0]))))},refreshOnShow:function(a,b){b.find('.fr-command[data-param1="'+this.helpers.getAlignment(this.$el.find(".fr-selected-cell:first"))+'"]').addClass("fr-active").attr("aria-selected",!0)}}),a.FE.DefineIcon("tableCellStyle",{NAME:"magic"}),a.FE.RegisterCommand("tableCellStyle",{title:"Cell Style",type:"dropdown",focus:!1,html:function(){var a='<ul class="fr-dropdown-list" role="presentation">',b=this.opts.tableCellStyles;for(var c in b)b.hasOwnProperty(c)&&(a+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableCellStyle" data-param1="'+c+'" title="'+this.language.translate(b[c])+'">'+this.language.translate(b[c])+"</a></li>");return a+="</ul>"},callback:function(a,b){this.table.applyStyle(b,this.$el.find(".fr-selected-cell"),this.opts.tableCellMultipleStyles,this.opts.tableCellStyles)},refreshOnShow:function(b,c){var d=this.$el.find(".fr-selected-cell:first");d&&c.find(".fr-command").each(function(){var b=a(this).data("param1"),c=d.hasClass(b);a(this).toggleClass("fr-active",c).attr("aria-selected",c)})}}),a.FE.RegisterCommand("tableCellBackgroundCustomColor",{title:"OK",undo:!0,callback:function(){this.table.customColor()}}),a.FE.DefineIcon("tableColorRemove",{NAME:"eraser"})}); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/url.min.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/url.min.js new file mode 100644 index 0000000..dd13d68 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/url.min.js @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.FE.URLRegEx="(^| |\\u00A0)("+a.FE.LinkRegEx+"|([a-z0-9+-_.]{1,}@[a-z0-9+-_.]{1,}\\.[a-z0-9+-_]{1,}))$",a.FE.PLUGINS.url=function(b){function c(a,c,d){for(var e="";d.length&&"."==d[d.length-1];)e+=".",d=d.substring(0,d.length-1);var f=d;if(b.opts.linkConvertEmailAddress)b.helpers.isEmail(f)&&!/^mailto:.*/i.test(f)&&(f="mailto:"+f);else if(b.helpers.isEmail(f))return c+d;return/^((http|https|ftp|ftps|mailto|tel|sms|notes|data)\:)/i.test(f)||(f="//"+f),(c?c:"")+"<a"+(b.opts.linkAlwaysBlank?' target="_blank"':"")+(j?' rel="'+j+'"':"")+' data-fr-linked="true" href="'+f+'">'+d.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/&/g,"&")+"</a>"+e}function d(){return new RegExp(a.FE.URLRegEx,"gi")}function e(a){return b.opts.linkAlwaysNoFollow&&(j="nofollow"),b.opts.linkAlwaysBlank&&(b.opts.linkNoOpener&&(j?j+=" noopener":j="noopener"),b.opts.linkNoReferrer&&(j?j+=" noreferrer":j="noreferrer")),a.replace(d(),c)}function f(a){return a?"A"===a.tagName?!0:a.parentNode&&a.parentNode!=b.el?f(a.parentNode):!1:!1}function g(a){var b=a.split(" ");return b[b.length-1]}function h(){var c=b.selection.ranges(0),h=c.startContainer;if(!h||h.nodeType!==Node.TEXT_NODE)return!1;if(f(h))return!1;if(d().test(g(h.textContent))){a(h).before(e(h.textContent));var i=a(h.parentNode).find("a[data-fr-linked]");i.removeAttr("data-fr-linked"),h.parentNode.removeChild(h),b.events.trigger("url.linked",[i.get(0)])}else if(h.textContent.split(" ").length<=2&&h.previousSibling&&"A"===h.previousSibling.tagName){var j=h.previousSibling.innerText+h.textContent;d().test(g(j))&&(a(h.previousSibling).replaceWith(e(j)),h.parentNode.removeChild(h))}}function i(){b.events.on("keypress",function(a){!b.selection.isCollapsed()||"."!=a.key&&")"!=a.key&&"("!=a.key||h()},!0),b.events.on("keydown",function(c){var d=c.which;!b.selection.isCollapsed()||d!=a.FE.KEYCODE.ENTER&&d!=a.FE.KEYCODE.SPACE||h()},!0),b.events.on("paste.beforeCleanup",function(a){if(b.helpers.isURL(a)){var c=null;return b.opts.linkAlwaysBlank&&(b.opts.linkNoOpener&&(c?c+=" noopener":c="noopener"),b.opts.linkNoReferrer&&(c?c+=" noreferrer":c="noreferrer")),"<a"+(b.opts.linkAlwaysBlank?' target="_blank"':"")+(c?' rel="'+c+'"':"")+' href="'+a+'" >'+a+"</a>"}})}var j=null;return{_init:i}}}); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/video.min.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/video.min.js new file mode 100644 index 0000000..53c5802 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/video.min.js @@ -0,0 +1,8 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.POPUP_TEMPLATES,{"video.insert":"[_BUTTONS_][_BY_URL_LAYER_][_EMBED_LAYER_][_UPLOAD_LAYER_][_PROGRESS_BAR_]","video.edit":"[_BUTTONS_]","video.size":"[_BUTTONS_][_SIZE_LAYER_]"}),a.extend(a.FE.DEFAULTS,{videoAllowedTypes:["mp4","webm","ogg"],videoAllowedProviders:[".*"],videoDefaultAlign:"center",videoDefaultDisplay:"block",videoDefaultWidth:600,videoEditButtons:["videoReplace","videoRemove","|","videoDisplay","videoAlign","videoSize"],videoInsertButtons:["videoBack","|","videoByURL","videoEmbed","videoUpload"],videoMaxSize:52428800,videoMove:!0,videoResize:!0,videoSizeButtons:["videoBack","|"],videoSplitHTML:!1,videoTextNear:!0,videoUpload:!0,videoUploadMethod:"POST",videoUploadParam:"file",videoUploadParams:{},videoUploadToS3:!1,videoUploadURL:"https://i.froala.com/upload"}),a.FE.VIDEO_PROVIDERS=[{test_regex:/^.*((youtu.be)|(youtube.com))\/((v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))?\??v?=?([^#\&\?]*).*/,url_regex:/(?:https?:\/\/)?(?:www\.)?(?:m\.)?(?:youtube\.com|youtu\.be)\/(?:watch\?v=|embed\/)?([0-9a-zA-Z_\-]+)(.+)?/g,url_text:"https://www.youtube.com/embed/$1",html:'<iframe width="640" height="360" src="{url}?wmode=opaque" frameborder="0" allowfullscreen></iframe>',provider:"youtube"},{test_regex:/^.*(?:vimeo.com)\/(?:channels(\/\w+\/)?|groups\/*\/videos\/\u200b\d+\/|video\/|)(\d+)(?:$|\/|\?)/,url_regex:/(?:https?:\/\/)?(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/(?:[^\/]*)\/videos\/|album\/(?:\d+)\/video\/|video\/|)(\d+)(?:[a-zA-Z0-9_\-]+)?/i,url_text:"https://player.vimeo.com/video/$1",html:'<iframe width="640" height="360" src="{url}" frameborder="0" allowfullscreen></iframe>',provider:"vimeo"},{test_regex:/^.+(dailymotion.com|dai.ly)\/(video|hub)?\/?([^_]+)[^#]*(#video=([^_&]+))?/,url_regex:/(?:https?:\/\/)?(?:www\.)?(?:dailymotion\.com|dai\.ly)\/(?:video|hub)?\/?(.+)/g,url_text:"https://www.dailymotion.com/embed/video/$1",html:'<iframe width="640" height="360" src="{url}" frameborder="0" allowfullscreen></iframe>',provider:"dailymotion"},{test_regex:/^.+(screen.yahoo.com)\/[^_&]+/,url_regex:"",url_text:"",html:'<iframe width="640" height="360" src="{url}?format=embed" frameborder="0" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true" allowtransparency="true"></iframe>',provider:"yahoo"},{test_regex:/^.+(rutube.ru)\/[^_&]+/,url_regex:/(?:https?:\/\/)?(?:www\.)?(?:rutube\.ru)\/(?:video)?\/?(.+)/g,url_text:"https://rutube.ru/play/embed/$1",html:'<iframe width="640" height="360" src="{url}" frameborder="0" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true" allowtransparency="true"></iframe>',provider:"rutube"},{test_regex:/^(?:.+)vidyard.com\/(?:watch)?\/?([^.&\/]+)\/?(?:[^_.&]+)?/,url_regex:/^(?:.+)vidyard.com\/(?:watch)?\/?([^.&\/]+)\/?(?:[^_.&]+)?/g,url_text:"https://play.vidyard.com/$1",html:'<iframe width="640" height="360" src="{url}" frameborder="0" allowfullscreen></iframe>',provider:"vidyard"}],a.FE.VIDEO_EMBED_REGEX=/^\W*((<iframe.*><\/iframe>)|(<embed.*>))\W*$/i,a.FE.PLUGINS.video=function(b){function c(){var a=b.popups.get("video.insert"),c=a.find(".fr-video-by-url-layer input");c.val("").trigger("change");var d=a.find(".fr-video-embed-layer textarea");d.val("").trigger("change"),d=a.find(".fr-video-upload-layer input"),d.val("").trigger("change")}function d(){var a=b.$tb.find('.fr-command[data-cmd="insertVideo"]'),c=b.popups.get("video.insert");if(c||(c=f()),o(),!c.hasClass("fr-active"))if(b.popups.refresh("video.insert"),b.popups.setContainer("video.insert",b.$tb),a.is(":visible")){var d=a.offset().left+a.outerWidth()/2,e=a.offset().top+(b.opts.toolbarBottom?10:a.outerHeight()-10);b.popups.show("video.insert",d,e,a.outerHeight())}else b.position.forSelection(c),b.popups.show("video.insert")}function e(){var a=b.popups.get("video.edit");if(a||(a=T()),a){b.popups.setContainer("video.edit",b.$sc),b.popups.refresh("video.edit");var c=ra.find("iframe, embed, video"),d=c.offset().left+c.outerWidth()/2,e=c.offset().top+c.outerHeight();b.popups.show("video.edit",d,e,c.outerHeight())}}function f(a){if(a)return b.popups.onRefresh("video.insert",c),b.popups.onHide("image.insert",ea),!0;var d="";b.opts.videoUpload||b.opts.videoInsertButtons.splice(b.opts.videoInsertButtons.indexOf("videoUpload"),1),b.opts.videoInsertButtons.length>1&&(d='<div class="fr-buttons">'+b.button.buildList(b.opts.videoInsertButtons)+"</div>");var e,f="",g=b.opts.videoInsertButtons.indexOf("videoUpload"),h=b.opts.videoInsertButtons.indexOf("videoByURL"),i=b.opts.videoInsertButtons.indexOf("videoEmbed");h>=0&&(e=" fr-active",(h>g&&g>=0||h>i&&i>=0)&&(e=""),f='<div class="fr-video-by-url-layer fr-layer'+e+'" id="fr-video-by-url-layer-'+b.id+'"><div class="fr-input-line"><input id="fr-video-by-url-layer-text-'+b.id+'" type="text" placeholder="'+b.language.translate("Paste in a video URL")+'" tabIndex="1" aria-required="true"></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="videoInsertByURL" tabIndex="2" role="button">'+b.language.translate("Insert")+"</button></div></div>");var j="";i>=0&&(e=" fr-active",(i>g&&g>=0||i>h&&h>=0)&&(e=""),j='<div class="fr-video-embed-layer fr-layer'+e+'" id="fr-video-embed-layer-'+b.id+'"><div class="fr-input-line"><textarea id="fr-video-embed-layer-text'+b.id+'" type="text" placeholder="'+b.language.translate("Embedded Code")+'" tabIndex="1" aria-required="true" rows="5"></textarea></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="videoInsertEmbed" tabIndex="2" role="button">'+b.language.translate("Insert")+"</button></div></div>");var k="";g>=0&&(e=" fr-active",(g>i&&i>=0||g>h&&h>=0)&&(e=""),k='<div class="fr-video-upload-layer fr-layer'+e+'" id="fr-video-upload-layer-'+b.id+'"><strong>'+b.language.translate("Drop video")+"</strong><br>("+b.language.translate("or click")+')<div class="fr-form"><input type="file" accept="video/'+b.opts.videoAllowedTypes.join(", video/").toLowerCase()+'" tabIndex="-1" aria-labelledby="fr-video-upload-layer-'+b.id+'" role="button"></div></div>');var l='<div class="fr-video-progress-bar-layer fr-layer"><h3 tabIndex="-1" class="fr-message">Uploading</h3><div class="fr-loader"><span class="fr-progress"></span></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-dismiss" data-cmd="videoDismissError" tabIndex="2" role="button">OK</button></div></div>',m={buttons:d,by_url_layer:f,embed_layer:j,upload_layer:k,progress_bar:l},n=b.popups.create("video.insert",m);return Q(n),n}function g(a){var c,d,e=b.popups.get("video.insert");if(!ra&&!b.opts.toolbarInline){var f=b.$tb.find('.fr-command[data-cmd="insertVideo"]');c=f.offset().left+f.outerWidth()/2,d=f.offset().top+(b.opts.toolbarBottom?10:f.outerHeight()-10)}b.opts.toolbarInline&&(d=e.offset().top-b.helpers.getPX(e.css("margin-top")),e.hasClass("fr-above")&&(d+=e.outerHeight())),e.find(".fr-layer").removeClass("fr-active"),e.find(".fr-"+a+"-layer").addClass("fr-active"),b.popups.show("video.insert",c,d,0),b.accessibility.focusPopup(e)}function h(a){var c=b.popups.get("video.insert");c.find(".fr-video-by-url-layer").hasClass("fr-active")&&a.addClass("fr-active").attr("aria-pressed",!0)}function i(a){var c=b.popups.get("video.insert");c.find(".fr-video-embed-layer").hasClass("fr-active")&&a.addClass("fr-active").attr("aria-pressed",!0)}function j(a){var c=b.popups.get("video.insert");c.find(".fr-video-upload-layer").hasClass("fr-active")&&a.addClass("fr-active").attr("aria-pressed",!0)}function k(a){b.events.focus(!0),b.selection.restore();var c=!1;ra&&(da(),c=!0),b.html.insert('<span contenteditable="false" draggable="true" class="fr-jiv fr-video">'+a+"</span>",!1,b.opts.videoSplitHTML),b.popups.hide("video.insert");var d=b.$el.find(".fr-jiv");d.removeClass("fr-jiv"),fa(d,b.opts.videoDefaultDisplay,b.opts.videoDefaultAlign),d.toggleClass("fr-draggable",b.opts.videoMove),b.events.trigger(c?"video.replaced":"video.inserted",[d])}function l(){var c=a(this);b.popups.hide("video.insert"),c.removeClass("fr-uploading"),c.parent().next().is("br")&&c.parent().next().remove(),t(c.parent()),b.events.trigger("video.loaded",[c.parent()])}function m(a,c,d,e,f){b.edit.off(),p("Loading video"),c&&(a=b.helpers.sanitizeURL(a));var g=function(){var c,g;if(e){b.undo.canDo()||e.find("video").hasClass("fr-uploading")||b.undo.saveStep();var h=e.find("video").data("fr-old-src"),i=e.data("fr-replaced");e.data("fr-replaced",!1),b.$wp?(c=e.clone(),c.find("video").removeData("fr-old-src").removeClass("fr-uploading"),c.find("video").off("canplay"),h&&e.find("video").attr("src",h),e.replaceWith(c)):c=e;for(var j=c.find("video").get(0).attributes,k=0;k<j.length;k++){var m=j[k];0===m.nodeName.indexOf("data-")&&c.find("video").removeAttr(m.nodeName)}if("undefined"!=typeof d)for(g in d)d.hasOwnProperty(g)&&"link"!=g&&c.find("video").attr("data-"+g,d[g]);c.find("video").on("canplay",l),c.find("video").attr("src",a),b.edit.on(),H(),b.undo.saveStep(),b.$el.blur(),b.events.trigger(i?"video.replaced":"video.inserted",[c,f])}else c=A(a,d,l),H(),b.undo.saveStep(),b.events.trigger("video.inserted",[c,f])};n("Loading video"),g()}function n(a){var c=b.popups.get("video.insert");if(c||(c=f()),c.find(".fr-layer.fr-active").removeClass("fr-active").addClass("fr-pactive"),c.find(".fr-video-progress-bar-layer").addClass("fr-active"),c.find(".fr-buttons").hide(),ra){var d=ra.find("video");b.popups.setContainer("video.insert",b.$sc);var e=d.offset().left+d.width()/2,g=d.offset().top+d.height();b.popups.show("video.insert",e,g,d.outerHeight())}"undefined"==typeof a&&p(b.language.translate("Uploading"),0)}function o(a){var c=b.popups.get("video.insert");if(c&&(c.find(".fr-layer.fr-pactive").addClass("fr-active").removeClass("fr-pactive"),c.find(".fr-video-progress-bar-layer").removeClass("fr-active"),c.find(".fr-buttons").show(),a||b.$el.find("video.fr-error").length)){if(b.events.focus(),b.$el.find("video.fr-error").length&&(b.$el.find("video.fr-error").parent().remove(),b.undo.saveStep(),b.undo.run(),b.undo.dropRedo()),!b.$wp&&ra){var d=ra;K(!0),b.selection.setAfter(d.find("video").get(0)),b.selection.restore()}b.popups.hide("video.insert")}}function p(a,c){var d=b.popups.get("video.insert");if(d){var e=d.find(".fr-video-progress-bar-layer");e.find("h3").text(a+(c?" "+c+"%":"")),e.removeClass("fr-error"),c?(e.find("div").removeClass("fr-indeterminate"),e.find("div > span").css("width",c+"%")):e.find("div").addClass("fr-indeterminate")}}function q(a){n();var c=b.popups.get("video.insert"),d=c.find(".fr-video-progress-bar-layer");d.addClass("fr-error");var e=d.find("h3");e.text(a),b.events.disableBlur(),e.focus()}function r(c){if("undefined"==typeof c){var d=b.popups.get("video.insert");c=(d.find('.fr-video-by-url-layer input[type="text"]').val()||"").trim()}var e=null;if(/^http/.test(c)||(c="https://"+c),b.helpers.isURL(c))for(var f=0;f<a.FE.VIDEO_PROVIDERS.length;f++){var g=a.FE.VIDEO_PROVIDERS[f];if(g.test_regex.test(c)&&new RegExp(b.opts.videoAllowedProviders.join("|")).test(g.provider)){e=c.replace(g.url_regex,g.url_text),e=g.html.replace(/\{url\}/,e);break}}e?k(e):b.events.trigger("video.linkError",[c])}function s(c){if("undefined"==typeof c){var d=b.popups.get("video.insert");c=d.find(".fr-video-embed-layer textarea").val()||""}0!==c.length&&a.FE.VIDEO_EMBED_REGEX.test(c)?k(c):b.events.trigger("video.codeError",[c])}function t(a){J.call(a.get(0))}function u(a){try{if(b.events.trigger("video.uploaded",[a],!0)===!1)return b.edit.on(),!1;var c=JSON.parse(a);return c.link?c:(S(ta,a),!1)}catch(d){return S(va,a),!1}}function v(c){try{var d=a(c).find("Location").text(),e=a(c).find("Key").text();return b.events.trigger("video.uploadedToS3",[d,e,c],!0)===!1?(b.edit.on(),!1):d}catch(f){return S(va,c),!1}}function w(a){p("Loading video");var c=this.status,d=this.response,e=this.responseXML,f=this.responseText;try{if(b.opts.videoUploadToS3)if(201==c){var g=v(e);g&&m(g,!1,[],a,d||e)}else S(va,d||e);else if(c>=200&&300>c){var h=u(f);h&&m(h.link,!1,h,a,d||f)}else S(ua,d||f)}catch(i){S(va,d||f)}}function x(){S(va,this.response||this.responseText||this.responseXML)}function y(a){if(a.lengthComputable){var c=a.loaded/a.total*100|0;p(b.language.translate("Uploading"),c)}}function z(){b.edit.on(),o(!0)}function A(c,d,e){var f,g="";if(d&&"undefined"!=typeof d)for(f in d)d.hasOwnProperty(f)&&"link"!=f&&(g+=" data-"+f+'="'+d[f]+'"');var h=b.opts.videoDefaultWidth;h&&"auto"!=h&&(h+="px");var i=a('<span contenteditable="false" draggable="true" class="fr-video fr-dv'+b.opts.videoDefaultDisplay[0]+("center"!=b.opts.videoDefaultAlign?" fr-fv"+b.opts.videoDefaultAlign[0]:"")+'"><video src="'+c+'" '+g+(h?' style="width: '+h+';" ':"")+" controls>"+b.language.translate("Your browser does not support HTML5 video.")+"</video></span>");i.toggleClass("fr-draggable",b.opts.videoMove),b.edit.on(),b.events.focus(!0),b.selection.restore(),b.undo.saveStep(),b.opts.videoSplitHTML?b.markers.split():b.markers.insert(),b.html.wrap();var j=b.$el.find(".fr-marker");return b.node.isLastSibling(j)&&j.parent().hasClass("fr-deletable")&&j.insertAfter(j.parent()),j.replaceWith(i),b.selection.clear(),i.find("video").get(0).readyState>i.find("video").get(0).HAVE_FUTURE_DATA||b.helpers.isIOS()?e.call(i.find("video").get(0)):i.find("video").on("canplaythrough load",e),i}function B(c){if(!b.core.sameInstance(qa))return!0;c.preventDefault(),c.stopPropagation();var d=c.pageX||(c.originalEvent.touches?c.originalEvent.touches[0].pageX:null),e=c.pageY||(c.originalEvent.touches?c.originalEvent.touches[0].pageY:null);if(!d||!e)return!1;if("mousedown"==c.type){var f=b.$oel.get(0),g=f.ownerDocument,h=g.defaultView||g.parentWindow,i=!1;try{i=h.location!=h.parent.location&&!(h.$&&h.$.FE)}catch(j){}i&&h.frameElement&&(d+=b.helpers.getPX(a(h.frameElement).offset().left)+h.frameElement.clientLeft,e=c.clientY+b.helpers.getPX(a(h.frameElement).offset().top)+h.frameElement.clientTop)}b.undo.canDo()||b.undo.saveStep(),pa=a(this),pa.data("start-x",d),pa.data("start-y",e),oa.show(),b.popups.hideAll(),M()}function C(a){if(!b.core.sameInstance(qa))return!0;if(pa){a.preventDefault();var c=a.pageX||(a.originalEvent.touches?a.originalEvent.touches[0].pageX:null),d=a.pageY||(a.originalEvent.touches?a.originalEvent.touches[0].pageY:null);if(!c||!d)return!1;var e=pa.data("start-x"),f=pa.data("start-y");pa.data("start-x",c),pa.data("start-y",d);var g=c-e,h=d-f,i=ra.find("iframe, embed, video"),j=i.width(),k=i.height();(pa.hasClass("fr-hnw")||pa.hasClass("fr-hsw"))&&(g=0-g),(pa.hasClass("fr-hnw")||pa.hasClass("fr-hne"))&&(h=0-h),i.css("width",j+g),i.css("height",k+h),i.removeAttr("width"),i.removeAttr("height"),I()}}function D(a){return b.core.sameInstance(qa)?void(pa&&ra&&(a&&a.stopPropagation(),pa=null,oa.hide(),I(),e(),b.undo.saveStep())):!0}function E(a){return'<div class="fr-handler fr-h'+a+'"></div>'}function F(a,b,c,d){return a.pageX=b,a.pageY=b,B.call(this,a),a.pageX=a.pageX+c*Math.floor(Math.pow(1.1,d)),a.pageY=a.pageY+c*Math.floor(Math.pow(1.1,d)),C.call(this,a),D.call(this,a),++d}function G(){var c;if(b.shared.$video_resizer?(qa=b.shared.$video_resizer,oa=b.shared.$vid_overlay,b.events.on("destroy",function(){qa.removeClass("fr-active").appendTo(a("body:first"))},!0)):(b.shared.$video_resizer=a('<div class="fr-video-resizer"></div>'),qa=b.shared.$video_resizer,b.events.$on(qa,"mousedown",function(a){a.stopPropagation()},!0),b.opts.videoResize&&(qa.append(E("nw")+E("ne")+E("sw")+E("se")),b.shared.$vid_overlay=a('<div class="fr-video-overlay"></div>'),oa=b.shared.$vid_overlay,c=qa.get(0).ownerDocument,a(c).find("body:first").append(oa))),b.events.on("shared.destroy",function(){qa.html("").removeData().remove(),qa=null,b.opts.videoResize&&(oa.remove(),oa=null)},!0),b.helpers.isMobile()||b.events.$on(a(b.o_win),"resize.video",function(){K(!0)}),b.opts.videoResize){c=qa.get(0).ownerDocument,b.events.$on(qa,b._mousedown,".fr-handler",B),b.events.$on(a(c),b._mousemove,C),b.events.$on(a(c.defaultView||c.parentWindow),b._mouseup,D),b.events.$on(oa,"mouseleave",D);var d=1,e=null,f=0;b.events.on("keydown",function(c){if(ra){var g=-1!=navigator.userAgent.indexOf("Mac OS X")?c.metaKey:c.ctrlKey,h=c.which;(h!==e||c.timeStamp-f>200)&&(d=1),(h==a.FE.KEYCODE.EQUALS||b.browser.mozilla&&h==a.FE.KEYCODE.FF_EQUALS)&&g&&!c.altKey?d=F.call(this,c,1,1,d):(h==a.FE.KEYCODE.HYPHEN||b.browser.mozilla&&h==a.FE.KEYCODE.FF_HYPHEN)&&g&&!c.altKey&&(d=F.call(this,c,2,-1,d)),e=h,f=c.timeStamp}}),b.events.on("keyup",function(){d=1})}}function H(){var c,d=Array.prototype.slice.call(b.el.querySelectorAll("video, .fr-video > *")),e=[];for(c=0;c<d.length;c++)e.push(d[c].getAttribute("src")),a(d[c]).toggleClass("fr-draggable",b.opts.videoMove),""===d[c].getAttribute("class")&&d[c].removeAttribute("class"),""===d[c].getAttribute("style")&&d[c].removeAttribute("style");if(Aa)for(c=0;c<Aa.length;c++)e.indexOf(Aa[c].getAttribute("src"))<0&&b.events.trigger("video.removed",[a(Aa[c])]);Aa=d}function I(){qa||G(),(b.$wp||b.$sc).append(qa),qa.data("instance",b);var a=ra.find("iframe, embed, video");qa.css("top",(b.opts.iframe?a.offset().top-1:a.offset().top-b.$wp.offset().top-1)+b.$wp.scrollTop()).css("left",(b.opts.iframe?a.offset().left-1:a.offset().left-b.$wp.offset().left-1)+b.$wp.scrollLeft()).css("width",a.get(0).getBoundingClientRect().width).css("height",a.get(0).getBoundingClientRect().height).addClass("fr-active")}function J(c){if(c&&"touchend"==c.type&&Ba)return!0;if(c&&b.edit.isDisabled())return c.stopPropagation(),c.preventDefault(),!1;if(b.edit.isDisabled())return!1;for(var d=0;d<a.FE.INSTANCES.length;d++)a.FE.INSTANCES[d]!=b&&a.FE.INSTANCES[d].events.trigger("video.hideResizer");b.toolbar.disable(),b.helpers.isMobile()&&(b.events.disableBlur(),b.$el.blur(),b.events.enableBlur()),b.$el.find(".fr-video.fr-active").removeClass("fr-active"),ra=a(this),ra.addClass("fr-active"),b.opts.iframe&&b.size.syncIframe(),ka(),I(),e(),b.selection.clear(),b.button.bulkRefresh(),b.events.trigger("image.hideResizer")}function K(a){ra&&(N()||a===!0)&&(qa.removeClass("fr-active"),b.toolbar.enable(),ra.removeClass("fr-active"),ra=null,M())}function L(){b.shared.vid_exit_flag=!0}function M(){b.shared.vid_exit_flag=!1}function N(){return b.shared.vid_exit_flag}function O(c){var d=c.originalEvent.dataTransfer;if(d&&d.files&&d.files.length){var e=d.files[0];if(e&&e.type&&-1!==e.type.indexOf("video")){if(!b.opts.videoUpload)return c.preventDefault(),c.stopPropagation(),!1;b.markers.remove(),b.markers.insertAtPoint(c.originalEvent),b.$el.find(".fr-marker").replaceWith(a.FE.MARKERS),b.popups.hideAll();var g=b.popups.get("video.insert");return g||(g=f()),b.popups.setContainer("video.insert",b.$sc),b.popups.show("video.insert",c.originalEvent.pageX,c.originalEvent.pageY),n(),b.opts.videoAllowedTypes.indexOf(e.type.replace(/video\//g,""))>=0?P(d.files):S(xa),c.preventDefault(),c.stopPropagation(),!1}}}function P(a){if("undefined"!=typeof a&&a.length>0){if(b.events.trigger("video.beforeUpload",[a])===!1)return!1;var c=a[0];if(c.size>b.opts.videoMaxSize)return S(wa),!1;if(b.opts.videoAllowedTypes.indexOf(c.type.replace(/video\//g,""))<0)return S(xa),!1;var d;if(b.drag_support.formdata&&(d=b.drag_support.formdata?new FormData:null),d){var e;if(b.opts.videoUploadToS3!==!1){d.append("key",b.opts.videoUploadToS3.keyStart+(new Date).getTime()+"-"+(c.name||"untitled")),d.append("success_action_status","201"),d.append("X-Requested-With","xhr"),d.append("Content-Type",c.type);for(e in b.opts.videoUploadToS3.params)b.opts.videoUploadToS3.params.hasOwnProperty(e)&&d.append(e,b.opts.videoUploadToS3.params[e])}for(e in b.opts.videoUploadParams)b.opts.videoUploadParams.hasOwnProperty(e)&&d.append(e,b.opts.videoUploadParams[e]);d.append(b.opts.videoUploadParam,c);var f=b.opts.videoUploadURL;b.opts.videoUploadToS3&&(f=b.opts.videoUploadToS3.uploadURL?b.opts.videoUploadToS3.uploadURL:"https://"+b.opts.videoUploadToS3.region+".amazonaws.com/"+b.opts.videoUploadToS3.bucket);var g=b.core.getXHR(f,b.opts.videoUploadMethod);g.onload=function(){w.call(g,ra)},g.onerror=x,g.upload.onprogress=y,g.onabort=z,n(),b.events.disableBlur(),b.edit.off(),b.events.enableBlur();var h=b.popups.get("video.insert");h&&h.off("abortUpload").on("abortUpload",function(){4!=g.readyState&&g.abort()}),g.send(d)}}}function Q(c){b.events.$on(c,"dragover dragenter",".fr-video-upload-layer",function(){return a(this).addClass("fr-drop"),!1},!0),b.events.$on(c,"dragleave dragend",".fr-video-upload-layer",function(){return a(this).removeClass("fr-drop"),!1},!0),b.events.$on(c,"drop",".fr-video-upload-layer",function(d){d.preventDefault(),d.stopPropagation(),a(this).removeClass("fr-drop");var e=d.originalEvent.dataTransfer;if(e&&e.files){var f=c.data("instance")||b;f.events.disableBlur(),f.video.upload(e.files),f.events.enableBlur()}},!0),b.helpers.isIOS()&&b.events.$on(c,"touchstart",'.fr-video-upload-layer input[type="file"]',function(){a(this).trigger("click")},!0),b.events.$on(c,"change",'.fr-video-upload-layer input[type="file"]',function(){if(this.files){var d=c.data("instance")||b;d.events.disableBlur(),c.find("input:focus").blur(),d.events.enableBlur(),d.video.upload(this.files)}a(this).val("")},!0)}function R(){b.events.on("drop",O,!0),b.events.on("mousedown window.mousedown",L),b.events.on("window.touchmove",M),b.events.on("mouseup window.mouseup",K),b.events.on("commands.mousedown",function(a){a.parents(".fr-toolbar").length>0&&K()}),b.events.on("video.hideResizer commands.undo commands.redo element.dropped",function(){K(!0)})}function S(a,c){b.edit.on(),ra&&ra.find("video").addClass("fr-error"),q(b.language.translate("Something went wrong. Please try again.")),b.events.trigger("video.error",[{code:a,message:za[a]},c])}function T(){var a="";if(b.opts.videoEditButtons.length>0){a+='<div class="fr-buttons">',a+=b.button.buildList(b.opts.videoEditButtons),a+="</div>";var c={buttons:a},d=b.popups.create("video.edit",c);return b.events.$on(b.$wp,"scroll.video-edit",function(){ra&&b.popups.isVisible("video.edit")&&(b.events.disableBlur(),t(ra))}),d}return!1}function U(){if(ra){var a=b.popups.get("video.size"),c=ra.find("iframe, embed, video");a.find('input[name="width"]').val(c.get(0).style.width||c.attr("width")).trigger("change"),a.find('input[name="height"]').val(c.get(0).style.height||c.attr("height")).trigger("change")}}function V(){var a=b.popups.get("video.size");a||(a=W()),o(),b.popups.refresh("video.size"),b.popups.setContainer("video.size",b.$sc);var c=ra.find("iframe, embed, video"),d=c.offset().left+c.width()/2,e=c.offset().top+c.height();b.popups.show("video.size",d,e,c.height())}function W(a){if(a)return b.popups.onRefresh("video.size",U),!0;var c="";c='<div class="fr-buttons">'+b.button.buildList(b.opts.videoSizeButtons)+"</div>";var d="";d='<div class="fr-video-size-layer fr-layer fr-active" id="fr-video-size-layer-'+b.id+'"><div class="fr-video-group"><div class="fr-input-line"><input id="fr-video-size-layer-width-'+b.id+'" type="text" name="width" placeholder="'+b.language.translate("Width")+'" tabIndex="1"></div><div class="fr-input-line"><input id="fr-video-size-layer-height-'+b.id+'" type="text" name="height" placeholder="'+b.language.translate("Height")+'" tabIndex="1"></div></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="videoSetSize" tabIndex="2" role="button">'+b.language.translate("Update")+"</button></div></div>";var e={buttons:c,size_layer:d},f=b.popups.create("video.size",e);return b.events.$on(b.$wp,"scroll",function(){ra&&b.popups.isVisible("video.size")&&(b.events.disableBlur(),t(ra))}),f}function X(a){if("undefined"==typeof a&&(a=ra),a){if(a.hasClass("fr-fvl"))return"left";if(a.hasClass("fr-fvr"))return"right";if(a.hasClass("fr-dvb")||a.hasClass("fr-dvi"))return"center";if("block"==a.css("display")){if("left"==a.css("text-algin"))return"left";if("right"==a.css("text-align"))return"right"}else{if("left"==a.css("float"))return"left";if("right"==a.css("float"))return"right"}}return"center"}function Y(a){ra.removeClass("fr-fvr fr-fvl"),!b.opts.htmlUntouched&&b.opts.useClasses?"left"==a?ra.addClass("fr-fvl"):"right"==a&&ra.addClass("fr-fvr"):fa(ra,_(),a),ka(),I(),e(),b.selection.clear()}function Z(a){return ra?void a.find("> *:first").replaceWith(b.icon.create("video-align-"+X())):!1}function $(a,b){ra&&b.find('.fr-command[data-param1="'+X()+'"]').addClass("fr-active").attr("aria-selected",!0)}function _(a){"undefined"==typeof a&&(a=ra);var b=a.css("float");return a.css("float","none"),"block"==a.css("display")?(a.css("float",""),a.css("float")!=b&&a.css("float",b),"block"):(a.css("float",""),a.css("float")!=b&&a.css("float",b),"inline")}function aa(a){ra.removeClass("fr-dvi fr-dvb"),!b.opts.htmlUntouched&&b.opts.useClasses?"inline"==a?ra.addClass("fr-dvi"):"block"==a&&ra.addClass("fr-dvb"):fa(ra,a,X()),ka(),I(),e(),b.selection.clear()}function ba(a,b){ra&&b.find('.fr-command[data-param1="'+_()+'"]').addClass("fr-active").attr("aria-selected",!0)}function ca(){var a=b.popups.get("video.insert");a||(a=f()),b.popups.isVisible("video.insert")||(o(),b.popups.refresh("video.insert"),b.popups.setContainer("video.insert",b.$sc));var c=ra.offset().left+ra.width()/2,d=ra.offset().top+ra.height();b.popups.show("video.insert",c,d,ra.outerHeight())}function da(){if(ra&&b.events.trigger("video.beforeRemove",[ra])!==!1){var a=ra;b.popups.hideAll(),K(!0),b.selection.setBefore(a.get(0))||b.selection.setAfter(a.get(0)),a.remove(),b.selection.restore(),b.html.fillEmptyBlocks(),b.events.trigger("video.removed",[a])}}function ea(){o()}function fa(a,c,d){!b.opts.htmlUntouched&&b.opts.useClasses?(a.removeClass("fr-fvl fr-fvr fr-dvb fr-dvi"),a.addClass("fr-fv"+d[0]+" fr-dv"+c[0])):"inline"==c?(a.css({display:"inline-block"}),"center"==d?a.css({"float":"none"}):"left"==d?a.css({"float":"left"}):a.css({"float":"right"})):(a.css({display:"block",clear:"both"}),"left"==d?a.css({textAlign:"left"}):"right"==d?a.css({textAlign:"right"}):a.css({textAlign:"center"}))}function ga(a){a.hasClass("fr-dvi")||a.hasClass("fr-dvb")||(a.addClass("fr-fv"+X(a)[0]),a.addClass("fr-dv"+_(a)[0]))}function ha(a){var b=a.hasClass("fr-dvb")?"block":a.hasClass("fr-dvi")?"inline":null,c=a.hasClass("fr-fvl")?"left":a.hasClass("fr-fvr")?"right":X(a);fa(a,b,c),a.removeClass("fr-dvb fr-dvi fr-fvr fr-fvl")}function ia(){b.$el.find("video").filter(function(){return 0===a(this).parents("span.fr-video").length}).wrap('<span class="fr-video" contenteditable="false"></span>'),b.$el.find("embed, iframe").filter(function(){if(b.browser.safari&&this.getAttribute("src")&&this.setAttribute("src",this.src),a(this).parents("span.fr-video").length>0)return!1;for(var c=a(this).attr("src"),d=0;d<a.FE.VIDEO_PROVIDERS.length;d++){var e=a.FE.VIDEO_PROVIDERS[d];if(e.test_regex.test(c)&&new RegExp(b.opts.videoAllowedProviders.join("|")).test(e.provider))return!0}return!1}).map(function(){return 0===a(this).parents("object").length?this:a(this).parents("object").get(0)}).wrap('<span class="fr-video" contenteditable="false"></span>');for(var c=b.$el.find("span.fr-video, video"),d=0;d<c.length;d++){var e=a(c[d]);!b.opts.htmlUntouched&&b.opts.useClasses?(ga(e),b.opts.videoTextNear||e.removeClass("fr-dvi").addClass("fr-dvb")):b.opts.htmlUntouched||b.opts.useClasses||ha(e)}c.toggleClass("fr-draggable",b.opts.videoMove)}function ja(){R(),b.helpers.isMobile()&&(b.events.$on(b.$el,"touchstart","span.fr-video",function(){Ba=!1}),b.events.$on(b.$el,"touchmove",function(){Ba=!0})),b.events.on("html.set",ia),ia(),b.events.$on(b.$el,"mousedown","span.fr-video",function(a){a.stopPropagation()}),b.events.$on(b.$el,"click touchend","span.fr-video",function(b){return"false"==a(this).parents("[contenteditable]:not(.fr-element):not(.fr-img-caption):not(body):first").attr("contenteditable")?!0:void J.call(this,b)}),b.events.on("keydown",function(c){var d=c.which;return!ra||d!=a.FE.KEYCODE.BACKSPACE&&d!=a.FE.KEYCODE.DELETE?ra&&d==a.FE.KEYCODE.ESC?(K(!0),c.preventDefault(),!1):ra&&d!=a.FE.KEYCODE.F10&&!b.keys.isBrowserAction(c)?(c.preventDefault(),!1):void 0:(c.preventDefault(),da(),b.undo.saveStep(),!1)},!0),b.events.on("toolbar.esc",function(){return ra?(b.events.disableBlur(),b.events.focus(),!1):void 0},!0),b.events.on("toolbar.focusEditor",function(){return ra?!1:void 0},!0),b.events.on("keydown",function(){b.$el.find("span.fr-video:empty").remove()}),b.$wp&&(H(),b.events.on("contentChanged",H)),f(!0),W(!0)}function ka(){if(ra){b.selection.clear();var a=b.doc.createRange();a.selectNode(ra.get(0));var c=b.selection.get();c.addRange(a)}}function la(){ra?(b.events.disableBlur(),ra.trigger("click")):(b.events.disableBlur(),b.selection.restore(),b.events.enableBlur(),b.popups.hide("video.insert"),b.toolbar.showInline())}function ma(a,c){if(ra){var d=b.popups.get("video.size"),e=ra.find("iframe, embed, video");e.css("width",a||d.find('input[name="width"]').val()),e.css("height",c||d.find('input[name="height"]').val()),e.get(0).style.width&&e.removeAttr("width"),e.get(0).style.height&&e.removeAttr("height"),d.find("input:focus").blur(),setTimeout(function(){ra.trigger("click")},b.helpers.isAndroid()?50:0)}}function na(){return ra}var oa,pa,qa,ra,sa=1,ta=2,ua=3,va=4,wa=5,xa=6,ya=7,za={};za[sa]="Video cannot be loaded from the passed link.",za[ta]="No link in upload response.",za[ua]="Error during file upload.",za[va]="Parsing response failed.",za[wa]="File is too large.",za[xa]="Video file type is invalid.",za[ya]="Files can be uploaded only to same domain in IE 8 and IE 9.";var Aa,Ba;return b.shared.vid_exit_flag=!1,{_init:ja,showInsertPopup:d,showLayer:g,refreshByURLButton:h,refreshEmbedButton:i,refreshUploadButton:j,upload:P,insertByURL:r,insertEmbed:s,insert:k,align:Y,refreshAlign:Z,refreshAlignOnShow:$,display:aa,refreshDisplayOnShow:ba,remove:da,hideProgressBar:o,showSizePopup:V,replace:ca,back:la,setSize:ma,get:na}},a.FE.RegisterCommand("insertVideo",{title:"Insert Video",undo:!1,focus:!0,refreshAfterCallback:!1,popup:!0,callback:function(){this.popups.isVisible("video.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("video.insert")):this.video.showInsertPopup()},plugin:"video"}),a.FE.DefineIcon("insertVideo",{NAME:"video-camera",FA5NAME:"camera"}),a.FE.DefineIcon("videoByURL",{NAME:"link"}),a.FE.RegisterCommand("videoByURL",{title:"By URL",undo:!1,focus:!1,toggle:!0,callback:function(){this.video.showLayer("video-by-url")},refresh:function(a){this.video.refreshByURLButton(a)}}),a.FE.DefineIcon("videoEmbed",{NAME:"code"}),a.FE.RegisterCommand("videoEmbed",{title:"Embedded Code",undo:!1,focus:!1,toggle:!0,callback:function(){this.video.showLayer("video-embed")},refresh:function(a){this.video.refreshEmbedButton(a)}}),a.FE.DefineIcon("videoUpload",{NAME:"upload"}),a.FE.RegisterCommand("videoUpload",{title:"Upload Video",undo:!1,focus:!1,toggle:!0,callback:function(){this.video.showLayer("video-upload")},refresh:function(a){this.video.refreshUploadButton(a)}}),a.FE.RegisterCommand("videoInsertByURL",{undo:!0,focus:!0,callback:function(){this.video.insertByURL()}}),a.FE.RegisterCommand("videoInsertEmbed",{undo:!0,focus:!0,callback:function(){this.video.insertEmbed()}}),a.FE.DefineIcon("videoDisplay",{NAME:"star"}),a.FE.RegisterCommand("videoDisplay",{title:"Display",type:"dropdown",options:{inline:"Inline",block:"Break Text"},callback:function(a,b){this.video.display(b)},refresh:function(a){this.opts.videoTextNear||a.addClass("fr-hidden")},refreshOnShow:function(a,b){this.video.refreshDisplayOnShow(a,b)}}),a.FE.DefineIcon("video-align",{NAME:"align-left"}),a.FE.DefineIcon("video-align-left",{NAME:"align-left"}),a.FE.DefineIcon("video-align-right",{NAME:"align-right"}),a.FE.DefineIcon("video-align-center",{NAME:"align-justify" +}),a.FE.DefineIcon("videoAlign",{NAME:"align-center"}),a.FE.RegisterCommand("videoAlign",{type:"dropdown",title:"Align",options:{left:"Align Left",center:"None",right:"Align Right"},html:function(){var b='<ul class="fr-dropdown-list" role="presentation">',c=a.FE.COMMANDS.videoAlign.options;for(var d in c)c.hasOwnProperty(d)&&(b+='<li role="presentation"><a class="fr-command fr-title" tabIndex="-1" role="option" data-cmd="videoAlign" data-param1="'+d+'" title="'+this.language.translate(c[d])+'">'+this.icon.create("video-align-"+d)+'<span class="fr-sr-only">'+this.language.translate(c[d])+"</span></a></li>");return b+="</ul>"},callback:function(a,b){this.video.align(b)},refresh:function(a){this.video.refreshAlign(a)},refreshOnShow:function(a,b){this.video.refreshAlignOnShow(a,b)}}),a.FE.DefineIcon("videoReplace",{NAME:"exchange"}),a.FE.RegisterCommand("videoReplace",{title:"Replace",undo:!1,focus:!1,popup:!0,refreshAfterCallback:!1,callback:function(){this.video.replace()}}),a.FE.DefineIcon("videoRemove",{NAME:"trash"}),a.FE.RegisterCommand("videoRemove",{title:"Remove",callback:function(){this.video.remove()}}),a.FE.DefineIcon("videoSize",{NAME:"arrows-alt"}),a.FE.RegisterCommand("videoSize",{undo:!1,focus:!1,popup:!0,title:"Change Size",callback:function(){this.video.showSizePopup()}}),a.FE.DefineIcon("videoBack",{NAME:"arrow-left"}),a.FE.RegisterCommand("videoBack",{title:"Back",undo:!1,focus:!1,back:!0,callback:function(){this.video.back()},refresh:function(a){var b=this.video.get();b||this.opts.toolbarInline?(a.removeClass("fr-hidden"),a.next(".fr-separator").removeClass("fr-hidden")):(a.addClass("fr-hidden"),a.next(".fr-separator").addClass("fr-hidden"))}}),a.FE.RegisterCommand("videoDismissError",{title:"OK",undo:!1,callback:function(){this.video.hideProgressBar(!0)}}),a.FE.RegisterCommand("videoSetSize",{undo:!0,focus:!1,title:"Update",refreshAfterCallback:!1,callback:function(){this.video.setSize()}})}); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/word_paste.min.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/word_paste.min.js new file mode 100644 index 0000000..6644799 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/plugins/word_paste.min.js @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.DEFAULTS,{wordDeniedTags:[],wordDeniedAttrs:[],wordAllowedStyleProps:["font-family","font-size","background","color","width","text-align","vertical-align","background-color","padding","margin","height","margin-top","margin-left","margin-right","margin-bottom","text-decoration","font-weight","font-style"],wordPasteModal:!0}),a.FE.PLUGINS.wordPaste=function(b){function c(){b.events.on("paste.wordPaste",function(a){return C=a,b.opts.wordPasteModal?e():g(!0),!1})}function d(){var a='<div class="fr-word-paste-modal" style="padding: 20px 20px 10px 20px;">';return a+='<p style="text-align: left;">'+b.language.translate("The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?")+"</p>",a+='<div style="text-align: right; margin-top: 50px;"><button class="fr-remove-word fr-command">'+b.language.translate("Clean")+'</button> <button class="fr-keep-word fr-command">'+b.language.translate("Keep")+"</button></div>",a+="</div>"}function e(){if(!B){var c='<h4><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 74.95 73.23" style="height: 25px; vertical-align: text-bottom; margin-right: 5px; display: inline-block"><defs><style>.a{fill:#2a5699;}.b{fill:#fff;}</style></defs><path class="a" d="M615.15,827.22h5.09V834c9.11.05,18.21-.09,27.32.05a2.93,2.93,0,0,1,3.29,3.25c.14,16.77,0,33.56.09,50.33-.09,1.72.17,3.63-.83,5.15-1.24.89-2.85.78-4.3.84-8.52,0-17,0-25.56,0v6.81h-5.32c-13-2.37-26-4.54-38.94-6.81q0-29.8,0-59.59c13.05-2.28,26.11-4.5,39.17-6.83Z" transform="translate(-575.97 -827.22)"/><path class="b" d="M620.24,836.59h28.1v54.49h-28.1v-6.81h22.14v-3.41H620.24v-4.26h22.14V873.2H620.24v-4.26h22.14v-3.41H620.24v-4.26h22.14v-3.41H620.24v-4.26h22.14v-3.41H620.24V846h22.14v-3.41H620.24Zm-26.67,15c1.62-.09,3.24-.16,4.85-.25,1.13,5.75,2.29,11.49,3.52,17.21,1-5.91,2-11.8,3.06-17.7,1.7-.06,3.41-.15,5.1-.26-1.92,8.25-3.61,16.57-5.71,24.77-1.42.74-3.55,0-5.24.09-1.13-5.64-2.45-11.24-3.47-16.9-1,5.5-2.29,10.95-3.43,16.42q-2.45-.13-4.92-.3c-1.41-7.49-3.07-14.93-4.39-22.44l4.38-.18c.88,5.42,1.87,10.82,2.64,16.25,1.2-5.57,2.43-11.14,3.62-16.71Z" transform="translate(-575.97 -827.22)"/></svg> '+b.language.translate("Word Paste Detected")+"</h4>",e=d(),f=b.modals.create(D,c,e),g=f.$body;B=f.$modal,f.$modal.addClass("fr-middle"),b.events.bindClick(g,"button.fr-remove-word",function(){var a=B.data("instance")||b;a.wordPaste.clean()}),b.events.bindClick(g,"button.fr-keep-word",function(){var a=B.data("instance")||b;a.wordPaste.clean(!0)}),b.events.$on(a(b.o_win),"resize",function(){b.modals.resize(D)})}b.modals.show(D),b.modals.resize(D)}function f(){b.modals.hide(D)}function g(a){var c=b.opts.wordAllowedStyleProps;a||(b.opts.wordAllowedStyleProps=[]),0===C.indexOf("<colgroup>")&&(C="<table>"+C+"</table>"),C=C.replace(/<span[\n\r ]*style='mso-spacerun:yes'>[\r\n\u00a0 ]*<\/span>/g," "),C=A(C,b.paste.getRtfClipboard());var d=b.doc.createElement("DIV");d.innerHTML=C,b.html.cleanBlankSpaces(d),C=d.innerHTML,C=b.paste.cleanEmptyTagsAndDivs(C),C=C.replace(/\u200b/g,""),f(),b.paste.clean(C,!0,!0),b.opts.wordAllowedStyleProps=c}function h(a){var b=a.parentNode;b&&a.parentNode.removeChild(a)}function i(a,b){if(b(a))for(var c=a.firstChild;c;){var d=c,e=c.previousSibling;c=c.nextSibling,i(d,b),d.previousSibling||d.nextSibling||d.parentNode||!c||e==c.previousSibling||!c.parentNode?d.previousSibling||d.nextSibling||d.parentNode||!c||c.previousSibling||c.nextSibling||c.parentNode||(e?c=e.nextSibling?e.nextSibling.nextSibling:null:a.firstChild&&(c=a.firstChild.nextSibling)):c=e?e.nextSibling:a.firstChild}}function j(a){if(!a.getAttribute("style")||!/mso-list:[\s]*l/gi.test(a.getAttribute("style").replace(/\n/gi,"")))return!1;try{if(!a.querySelector('[style="mso-list:Ignore"]'))return!1}catch(b){return!1}return!0}function k(a){return a.getAttribute("style").replace(/\n/gi,"").replace(/.*level([0-9]+?).*/gi,"$1")}function l(a,b){var c=a.cloneNode(!0);if(-1!=["H1","H2","H3","H4","H5","H6"].indexOf(a.tagName)){var d=document.createElement(a.tagName.toLowerCase());d.setAttribute("style",a.getAttribute("style")),d.innerHTML=c.innerHTML,c.innerHTML=d.outerHTML}i(c,function(a){return a.nodeType==Node.ELEMENT_NODE&&("mso-list:Ignore"==a.getAttribute("style")&&a.parentNode.removeChild(a),x(a,b)),!0});var e=c.innerHTML;return e=e.replace(/<!--[\s\S]*?-->/gi,"")}function m(a,b){var c=/[0-9a-zA-Z]./gi,d=!1;a.firstElementChild&&a.firstElementChild.firstElementChild&&a.firstElementChild.firstElementChild.firstChild&&(d=d||c.test(a.firstElementChild.firstElementChild.firstChild.data||""),!d&&a.firstElementChild.firstElementChild.firstElementChild&&a.firstElementChild.firstElementChild.firstElementChild.firstChild&&(d=d||c.test(a.firstElementChild.firstElementChild.firstElementChild.firstChild.data||"")));var e=d?"ol":"ul",f=k(a),g="<"+e+"><li>"+l(a,b),i=a.nextElementSibling,n=a.parentNode;for(h(a),a=null;i&&j(i);){var o=i.previousElementSibling,p=k(i);if(p>f)g+=m(i,b).outerHTML;else{if(f>p)break;g+="</li><li>"+l(i,b)}if(f=p,i.previousElementSibling||i.nextElementSibling||i.parentNode){var q=i;i=i.nextElementSibling,h(q),q=null}else i=o?o.nextElementSibling:n.firstElementChild}g+="</li></"+e+">";var r=document.createElement("div");r.innerHTML=g;var s=r.firstElementChild;return s}function n(a,b){for(var c=document.createElement(b),d=0;d<a.attributes.length;d++){var e=a.attributes[d].name;c.setAttribute(e,a.getAttribute(e))}return c.innerHTML=a.innerHTML,a.parentNode.replaceChild(c,a),c}function o(c,d){b.node.clearAttributes(c);for(var e=c.firstElementChild,f=0,g=!1,i=null;e;){e.firstElementChild&&-1!=e.firstElementChild.tagName.indexOf("W:")&&(e.innerHTML=e.firstElementChild.innerHTML),i=e.getAttribute("width"),i||g||(g=!0),f+=parseInt(i,10),(!e.firstChild||e.firstChild&&e.firstChild.data==a.FE.UNICODE_NBSP)&&(e.firstChild&&h(e.firstChild),e.innerHTML="<br>");for(var k=e.firstElementChild,l=1==e.children.length;k;)"P"!=k.tagName||j(k)||l&&p(k),k=k.nextElementSibling;if(d){var m=e.getAttribute("class");if(m){m=q(m);var n=m.match(/xl[0-9]+/gi);if(n){var o=n[0],s="."+o;d[s]&&r(e,d[s])}}d.td&&r(e,d.td)}var t=e.getAttribute("style");t&&(t=q(t),t&&";"!=t.slice(-1)&&(t+=";"));var u=e.getAttribute("valign");if(!u&&t){var v=t.match(/vertical-align:.+?[; "]{1,1}/gi);v&&(u=v[v.length-1].replace(/vertical-align:(.+?)[; "]{1,1}/gi,"$1"))}var w=null;if(t){var x=t.match(/text-align:.+?[; "]{1,1}/gi);x&&(w=x[x.length-1].replace(/text-align:(.+?)[; "]{1,1}/gi,"$1")),"general"==w&&(w=null)}var y=null;if(t){var z=t.match(/background:.+?[; "]{1,1}/gi);z&&(y=z[z.length-1].replace(/background:(.+?)[; "]{1,1}/gi,"$1"))}var A=e.getAttribute("colspan"),B=e.getAttribute("rowspan");A&&e.setAttribute("colspan",A),B&&e.setAttribute("rowspan",B),u&&(e.style["vertical-align"]=u),w&&(e.style["text-align"]=w),y&&(e.style["background-color"]=y),i&&e.setAttribute("width",i),e=e.nextElementSibling}for(e=c.firstElementChild;e;)i=e.getAttribute("width"),g?e.removeAttribute("width"):e.setAttribute("width",100*parseInt(i,10)/f+"%"),e=e.nextElementSibling}function p(a){var b=a.parentNode,c=a.getAttribute("align");c&&(b&&"TD"==b.tagName?(b.setAttribute("style",b.getAttribute("style")+"text-align:"+c+";"),a.removeAttribute("align")):(a.style["text-align"]=c,a.removeAttribute("align")))}function q(a){return a.replace(/\n|\r|\n\r|"/g,"")}function r(a,b,c){if(b){var d=a.getAttribute("style");d&&";"!=d.slice(-1)&&(d+=";"),b&&";"!=b.slice(-1)&&(b+=";"),b=b.replace(/\n/gi,"");var e=null;e=c?(d||"")+b:b+(d||""),a.setAttribute("style",e)}}function s(a){var b=a.getAttribute("style");if(b){b=q(b),b&&";"!=b.slice(-1)&&(b+=";");var c=b.match(/(^|\S+?):.+?;{1,1}/gi);if(c){for(var d={},e=0;e<c.length;e++){var f=c[e],g=f.split(":");2==g.length&&("text-align"!=g[0]||"SPAN"!=a.tagName)&&(d[g[0]]=g[1])}var h="";for(var i in d)if(d.hasOwnProperty(i)){if("font-size"==i&&"pt;"==d[i].slice(-3)){var j=null;try{j=parseFloat(d[i].slice(0,-3),10)}catch(k){}j&&(j=Math.round(1.33*j),d[i]=j+"px;")}h+=i+":"+d[i]}h&&a.setAttribute("style",h)}}}function t(a){for(var b=a.match(/[0-9a-f]{2}/gi),c=[],d=0;d<b.length;d++)c.push(String.fromCharCode(parseInt(b[d],16)));var e=c.join("");return btoa(e)}function u(a,b,c){for(var d=a.split(c),e=1;e<d.length;e++){var f=d[e];if(f=f.split("shplid"),f.length>1){f=f[1];for(var g="",h=0;h<f.length&&"\\"!=f[h]&&"{"!=f[h]&&" "!=f[h]&&"\r"!=f[h]&&"\n"!=f[h];)g+=f[h],h++;var i=f.split("bliptag");if(i&&i.length<2)continue;var j=null;if(-1!=i[0].indexOf("pngblip")?j="image/png":-1!=i[0].indexOf("jpegblip")&&(j="image/jpeg"),!j)continue;var k=i[1].split("}");if(k&&k.length<2)continue;var l;if(k.length>2&&-1!=k[0].indexOf("blipuid"))l=k[1].split(" ");else{if(l=k[0].split(" "),l&&l.length<2)continue;l.shift()}var m=l.join("");E[b+g]={image_hex:m,image_type:j}}}}function v(a){E={},u(a,"i","\\shppict"),u(a,"s","\\shp{")}function w(b,c){if(c){var d;if("IMG"==b.tagName){var e=b.getAttribute("src");if(!e||-1==e.indexOf("file://"))return;d=F[b.getAttribute("v:shapes")],d||(d=b.getAttribute("v:shapes"))}else d=b.parentNode.getAttribute("o:spid");if(b.removeAttribute("height"),d){v(c);var f=E[d.substring(7)];if(f){var g=t(f.image_hex),h="data:"+f.image_type+";base64,"+g;"IMG"===b.tagName?(b.src=h,b.setAttribute("data-fr-image-pasted",!0)):a(b.parentNode).before('<img data-fr-image-pasted="true" src="'+h+'" style="'+b.parentNode.getAttribute("style")+'">').remove()}}}}function x(a,b){var c=a.tagName,d=c.toLowerCase();a.firstElementChild&&("I"==a.firstElementChild.tagName?n(a.firstElementChild,"em"):"B"==a.firstElementChild.tagName&&n(a.firstElementChild,"strong"));var e=["SCRIPT","APPLET","EMBED","NOFRAMES","NOSCRIPT"];if(-1!=e.indexOf(c))return h(a),!1;var f=-1,g=["META","LINK","XML","ST1:","O:","W:","FONT"];for(f=0;f<g.length;f++)if(-1!=c.indexOf(g[f]))return a.innerHTML?(a.outerHTML=a.innerHTML,h(a),!1):(h(a),!1);if("TD"!=c){var i=a.getAttribute("class");if(b&&i){i=q(i);var j=i.split(" ");for(f=0;f<j.length;f++){var k=j[f],l=[],m="."+k;l.push(m),m=d+m,l.push(m);for(var s=0;s<l.length;s++)b[l[s]]&&r(a,b[l[s]])}a.removeAttribute("class")}b&&b[d]&&r(a,b[d])}var t=["P","H1","H2","H3","H4","H5","H6","PRE"];if(-1!=t.indexOf(c)){var u=a.getAttribute("class");if(u&&(b&&b[c.toLowerCase()+"."+u]&&r(a,b[c.toLowerCase()+"."+u]),-1!=u.toLowerCase().indexOf("mso"))){var v=q(u);v=v.replace(/[0-9a-z-_]*mso[0-9a-z-_]*/gi,""),v?a.setAttribute("class",v):a.removeAttribute("class")}var w=a.getAttribute("style"),x=null;if(w){var y=w.match(/text-align:.+?[; "]{1,1}/gi);y&&(x=y[y.length-1].replace(/(text-align:.+?[; "]{1,1})/gi,"$1"))}p(a)}if("TR"==c&&o(a,b),"A"==c&&!a.attributes.getNamedItem("href")&&a.innerHTML&&(a.outerHTML=a.innerHTML),"TD"!=c&&"TH"!=c||a.innerHTML||(a.innerHTML="<br>"),"TABLE"==c&&(a.style.width="100%"),a.getAttribute("lang")&&a.removeAttribute("lang"),a.getAttribute("style")&&-1!=a.getAttribute("style").toLowerCase().indexOf("mso")){var z=q(a.getAttribute("style"));z=z.replace(/[0-9a-z-_]*mso[0-9a-z-_]*:.+?(;{1,1}|$)/gi,""),z?a.setAttribute("style",z):a.removeAttribute("style")}return!0}function y(a){var b={},c=a.getElementsByTagName("style");if(c.length){var d=c[0],e=d.innerHTML.match(/[\S ]+\s+{[\s\S]+?}/gi);if(e)for(var f=0;f<e.length;f++){var g=e[f],h=g.replace(/([\S ]+\s+){[\s\S]+?}/gi,"$1"),i=g.replace(/[\S ]+\s+{([\s\S]+?)}/gi,"$1");h=h.replace(/^[\s]|[\s]$/gm,""),i=i.replace(/^[\s]|[\s]$/gm,""),h=h.replace(/\n|\r|\n\r/g,""),i=i.replace(/\n|\r|\n\r/g,"");for(var j=h.split(", "),k=0;k<j.length;k++)b[j[k]]=i}}return b}function z(a){for(var b=a.split("v:shape"),c=1;c<b.length;c++){var d=b[c],e=d.split(' id="')[1];if(e&&e.length>1){e=e.split('"')[0];var f=d.split(' o:spid="')[1];f&&f.length>1&&(f=f.split('"')[0],F[e]=f)}}}function A(c,d){c=c.replace(/[.\s\S\w\W<>]*(<html[^>]*>[.\s\S\w\W<>]*<\/html>)[.\s\S\w\W<>]*/i,"$1"),z(c);var e=new DOMParser,f=e.parseFromString(c,"text/html"),g=f.head,k=f.body,l=y(g);i(k,function(b){if(b.nodeType==Node.TEXT_NODE&&/\n|\u00a0|\r/.test(b.data)){if(!/\S| /.test(b.data))return b.data==a.FE.UNICODE_NBSP?(b.data="\u200b",!0):1==b.data.length&&10==b.data.charCodeAt(0)?(b.data=" ",!0):(h(b),!1);b.data=b.data.replace(/\n|\r/gi," ")}return!0}),i(k,function(a){return a.nodeType!=Node.ELEMENT_NODE||"V:IMAGEDATA"!=a.tagName&&"IMG"!=a.tagName||w(a,d),!0});for(var n=k.querySelectorAll("ul > ul, ul > ol, ol > ul, ol > ol"),o=n.length-1;o>=0;o--)n[o].previousElementSibling&&"LI"===n[o].previousElementSibling.tagName&&n[o].previousElementSibling.appendChild(n[o]);i(k,function(a){if(a.nodeType==Node.TEXT_NODE)return a.data=a.data.replace(/<br>(\n|\r)/gi,"<br>"),!1;if(a.nodeType==Node.ELEMENT_NODE){if(j(a)){var b=a.parentNode,c=a.previousSibling,d=m(a,l),e=null;return e=c?c.nextSibling:b.firstChild,e?b.insertBefore(d,e):b.appendChild(d),!1}return x(a,l)}return a.nodeType==Node.COMMENT_NODE?(h(a),!1):!0}),i(k,function(a){if(a.nodeType==Node.ELEMENT_NODE){var b=a.tagName;if(!a.innerHTML&&-1==["BR","IMG"].indexOf(b)){for(var c=a.parentNode;c&&(h(a),a=c,!a.innerHTML);)c=a.parentNode;return!1}s(a)}return!0});var p=k.outerHTML,q=b.opts.htmlAllowedStyleProps;return b.opts.htmlAllowedStyleProps=b.opts.wordAllowedStyleProps,p=b.clean.html(p,b.opts.wordDeniedTags,b.opts.wordDeniedAttrs,!1),b.opts.htmlAllowedStyleProps=q,p}var B,C,D="word_paste",E=null,F={};return{_init:c,clean:g}}}); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/third_party/embedly.min.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/third_party/embedly.min.js new file mode 100644 index 0000000..50becbf --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/third_party/embedly.min.js @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.extend(a.FE.POPUP_TEMPLATES,{"embedly.insert":"[_BUTTONS_][_URL_LAYER_]","embedly.edit":"[_BUTTONS_]"}),a.extend(a.FE.DEFAULTS,{embedlyKey:null,embedlyInsertButtons:["embedlyBack","|"],embedlyEditButtons:["embedlyRemove"],embedlyScriptPath:"https://cdn.embedly.com/widgets/platform.js"}),a.FE.PLUGINS.embedly=function(b){function c(){b.events.on("html.processGet",k),b.events.$on(b.$el,"click touchend","div.fr-embedly",e),b.events.on("mousedown window.mousedown",s),b.events.on("window.touchmove",t),b.events.on("mouseup window.mouseup",r),b.events.on("commands.mousedown",function(a){a.parents(".fr-toolbar").length>0&&r()}),b.events.on("blur video.hideResizer commands.undo commands.redo element.dropped",function(){r(!0)}),b.events.on("element.beforeDrop",function(a){return a.hasClass("fr-embedly")?(a.html(a.attr("data-original-embed")),a):void 0}),b.events.on("keydown",function(c){var d=c.which;return!x||d!=a.FE.KEYCODE.BACKSPACE&&d!=a.FE.KEYCODE.DELETE?x&&d==a.FE.KEYCODE.ESC?(r(!0),c.preventDefault(),!1):x&&d!=a.FE.KEYCODE.F10&&!b.keys.isBrowserAction(c)?(c.preventDefault(),!1):void 0:(c.preventDefault(),q(),!1)},!0),b.events.on("toolbar.esc",function(){return x?(b.events.disableBlur(),b.events.focus(),!1):void 0},!0),b.events.on("toolbar.focusEditor",function(){return x?!1:void 0},!0),b.events.on("snapshot.after",function(a){var c=b.doc.createElement("div");c.innerHTML=a.html,k(c),a.html=c.innerHTML}),b.win.embedly("on","card.resize",function(b){var c=a(b),d=c.parents(".fr-embedly");d.attr("contenteditable",!1).attr("draggable",!0).css("height",c.height()).addClass("fr-draggable")}),l(!0)}function d(){if(!b.$wp)return!1;if("undefined"!=typeof embedly)c();else if(b.shared.embedlyLoaded||(b.shared.embedlyCallbacks=[]),b.shared.embedlyCallbacks.push(c),!b.shared.embedlyLoaded){b.shared.embedlyLoaded=!0;var a=b.doc.createElement("script");a.type="text/javascript",a.src=b.opts.embedlyScriptPath,a.innerText="",a.onload=function(){for(var a=0;a<b.shared.embedlyCallbacks.length;a++)b.shared.embedlyCallbacks[a]()},b.doc.getElementsByTagName("head")[0].appendChild(a)}}function e(b){x=a(this),j(),h()}function f(){var a="";if(b.opts.embedlyEditButtons.length>0){a+='<div class="fr-buttons">',a+=b.button.buildList(b.opts.embedlyEditButtons),a+="</div>";var c={buttons:a},d=b.popups.create("embedly.edit",c);return b.events.$on(b.$wp,"scroll.emebdly-edit",function(){x&&b.popups.isVisible("embedly.edit")&&(b.events.disableBlur(),g(x))}),d}return!1}function g(a){e.call(a.get(0))}function h(){var a=b.popups.get("embedly.edit");if(a||(a=f()),a){b.popups.setContainer("embedly.edit",b.$sc),b.popups.refresh("embedly.edit");var c=x.offset().left+x.outerWidth()/2,d=x.offset().top+x.outerHeight();b.popups.show("embedly.edit",c,d,x.outerHeight())}}function i(){b.shared.$embedly_resizer?(y=b.shared.$embedly_resizer,z=b.shared.$embedly_overlay,b.events.on("destroy",function(){y.appendTo(a("body:first"))},!0)):(b.shared.$embedly_resizer=a('<div class="fr-embedly-resizer"></div>'),y=b.shared.$embedly_resizer,b.events.$on(y,"mousedown",function(a){a.stopPropagation()},!0)),b.events.on("shared.destroy",function(){y.html("").removeData().remove(),y=null},!0)}function j(){y||i(),(b.$wp||b.$sc).append(y),y.data("instance",b),y.css("top",(b.opts.iframe?x.offset().top-1+b.$iframe.position().top:x.offset().top-b.$wp.offset().top-1)+b.$wp.scrollTop()).css("left",(b.opts.iframe?x.offset().left-1:x.offset().left-b.$wp.offset().left-1)+b.$wp.scrollLeft()).css("width",x.outerWidth()).css("height",x.height()).addClass("fr-active")}function k(a){if(a&&b.node.hasClass(a,"fr-embedly"))a.innerHTML=a.getAttribute("data-original-embed"),a.removeAttribute("draggable"),a.removeAttribute("contenteditable"),a.setAttribute("class",(a.getAttribute("class")||"").replace("fr-draggable",""));else if(a&&a.nodeType==Node.ELEMENT_NODE)for(var c=a.querySelectorAll(".fr-embedly"),d=0;d<c.length;d++)k(c[d])}function l(a){if(a)return b.popups.onRefresh("embedly.insert",m),!0;var c="";b.opts.embedlyInsertButtons.length>0&&(c+='<div class="fr-buttons">',c+=b.button.buildList(b.opts.embedlyInsertButtons),c+="</div>");var d="";d='<div class="fr-embedly-layer fr-active fr-layer" id="fr-embedly-layer-'+b.id+'"><div class="fr-input-line"><input id="fr-embedly-layer-text-'+b.id+'" type="text" placeholder="'+b.language.translate("Paste in a URL to embed")+'" tabIndex="1" aria-required="true"></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="embedlyInsert" tabIndex="2" role="button">'+b.language.translate("Insert")+"</button></div></div>";var e={buttons:c,url_layer:d},f=b.popups.create("embedly.insert",e);return f}function m(){var a=b.popups.get("embedly.insert"),c=a.find(".fr-embedly-layer input");c.val("").trigger("change")}function n(){var a=b.$tb.find('.fr-command[data-cmd="embedly"]'),c=b.popups.get("embedly.insert");if(c||(c=l()),!c.hasClass("fr-active"))if(b.popups.refresh("embedly.insert"),b.popups.setContainer("embedly.insert",b.$tb),a.is(":visible")){var d=a.offset().left+a.outerWidth()/2,e=a.offset().top+(b.opts.toolbarBottom?10:a.outerHeight()-10);b.popups.show("embedly.insert",d,e,a.outerHeight())}else b.position.forSelection(c),b.popups.show("embedly.insert")}function o(){var a=b.popups.get("embedly.insert"),c=a.find(".fr-embedly-layer input");p(c.val())}function p(a){if(a.length){var c="<a href='"+a+"' class='embedly-card'"+(b.opts.embedlyKey?" data-card-key='"+b.opts.embedlyKey+"'":"")+"></a>";b.html.insert('<div class="fr-embedly fr-draggable" draggable="true" contenteditable="false" data-original-embed="'+c+'">'+c+"</div>"),b.popups.hideAll()}}function q(){if(x&&b.events.trigger("embedly.beforeRemove",[x])!==!1){var a=x;b.popups.hideAll(),r(!0),b.selection.setBefore(a.get(0))||b.selection.setAfter(a.get(0)),a.remove(),b.selection.restore(),b.html.fillEmptyBlocks(),b.undo.saveStep(),b.events.trigger("video.removed",[a])}}function r(a){x&&(u()||a===!0)&&(y.removeClass("fr-active"),b.toolbar.enable(),x.removeClass("fr-active"),x=null,t())}function s(){b.shared.embedly_exit_flag=!0}function t(){b.shared.embedly_exit_flag=!1}function u(){return b.shared.embedly_exit_flag}function v(){return x}function w(){x?(b.events.disableBlur(),x.trigger("click")):(b.events.disableBlur(),b.selection.restore(),b.events.enableBlur(),b.popups.hide("embedly.insert"),b.toolbar.showInline())}var x,y,z;return b.shared.embedly_exit_flag=!1,{_init:d,showInsertPopup:n,insert:o,remove:q,get:v,add:p,back:w}},a.FE.DefineIcon("embedly",{NAME:"share-alt"}),a.FE.RegisterCommand("embedly",{undo:!0,focus:!0,title:"Embed URL",popup:!0,callback:function(){this.popups.isVisible("embedly.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("embedly.insert")):this.embedly.showInsertPopup()},plugin:"embedly"}),a.FE.RegisterCommand("embedlyInsert",{undo:!0,focus:!0,callback:function(){this.embedly.insert()}}),a.FE.DefineIcon("embedlyRemove",{NAME:"trash"}),a.FE.RegisterCommand("embedlyRemove",{title:"Remove",undo:!1,callback:function(){this.embedly.remove()}}),a.FE.DefineIcon("embedlyBack",{NAME:"arrow-left"}),a.FE.RegisterCommand("embedlyBack",{title:"Back",undo:!1,focus:!1,back:!0,callback:function(){this.embedly.back()},refresh:function(a){var b=this.embedly.get();b||this.opts.toolbarInline?(a.removeClass("fr-hidden"),a.next(".fr-separator").removeClass("fr-hidden")):(a.addClass("fr-hidden"),a.next(".fr-separator").addClass("fr-hidden"))}})}); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/third_party/image_aviary.min.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/third_party/image_aviary.min.js new file mode 100644 index 0000000..3c27736 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/third_party/image_aviary.min.js @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){if(a.extend(a.FE.DEFAULTS,{aviaryKey:"542e1ff5d5144b9b81cef846574ba6cf",aviaryScriptURL:"https://dme0ih8comzn4.cloudfront.net/imaging/v3/editor.js",aviaryOptions:{displayImageSize:!0,theme:"minimum"}}),a.FE.PLUGINS.imageAviary=function(b){function c(a,b){var c=document.createElement("script");c.type="text/javascript",c.defer="defer",c.src=a,c.innerText="",c.onload=b,document.getElementsByTagName("head")[0].appendChild(c)}function d(){b.shared.feather_editor||(b.shared.feather_editor=!0,"undefined"==typeof Aviary?c(b.opts.aviaryScriptURL,e):e())}function e(){b.shared.feather_editor=new Aviary.Feather(a.extend({apiKey:b.opts.aviaryKey,onSave:function(c,d){var e=new Image;e.crossOrigin="Anonymous",e.onload=function(){var c=document.createElement("CANVAS"),d=c.getContext("2d");c.height=this.height,c.width=this.width,d.drawImage(this,0,0);for(var e=c.toDataURL("image/png"),f=atob(e.split(",")[1]),g=[],h=0;h<f.length;h++)g.push(f.charCodeAt(h));var i=new Blob([new Uint8Array(g)],{type:"image/png"});b.shared.feather_editor.instance.image.edit(a(b.shared.feather_editor.current_image)),b.shared.feather_editor.instance.image.upload([i]),b.shared.feather_editor.close()},e.src=d,b.shared.feather_editor.showWaitIndicator()},onError:function(a){throw new Error(a.message)},onClose:function(){b.shared.feather_editor.instance.image.get()||b.shared.feather_editor.instance.image.edit(a(b.shared.feather_editor.current_image))}},b.opts.aviaryOptions))}function f(a){"object"==typeof a.shared.feather_editor&&(a.shared.feather_editor.current_image=a.image.get()[0],a.shared.feather_editor.instance=a,a.shared.feather_editor.launch({image:a.image.get()[0],url:a.image.get()[0].src}))}return{_init:d,launch:f}},a.FE.DefineIcon("aviary",{NAME:"sliders",FA5NAME:"sliders-h"}),a.FE.RegisterCommand("aviary",{title:"Advanced Edit",undo:!1,focus:!1,callback:function(a,b){this.imageAviary.launch(this)},plugin:"imageAviary"}),!a.FE.PLUGINS.image)throw new Error("Image Aviary plugin requires image plugin.");a.FE.DEFAULTS.imageEditButtons.push("aviary")}); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/froala-editor/js/third_party/spell_checker.min.js b/Mobile.WYSIWYG/Scripts/froala-editor/js/third_party/spell_checker.min.js new file mode 100644 index 0000000..a5f7934 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/froala-editor/js/third_party/spell_checker.min.js @@ -0,0 +1,7 @@ +/*! + * froala_editor v2.7.6 (https://www.froala.com/wysiwyg-editor) + * License https://froala.com/wysiwyg-editor/terms/ + * Copyright 2014-2018 Froala Labs + */ + +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c)}:a(window.jQuery)}(function(a){a.FE.DEFAULT_SCAYT_OPTIONS={enableOnTouchDevices:!1,disableOptionsStorage:["all"],localization:"en",extraModules:"ui",DefaultSelection:"American English",spellcheckLang:"en_US",contextMenuSections:"suggest|moresuggest",serviceProtocol:"https",servicePort:"80",serviceHost:"svc.webspellchecker.net",servicePath:"spellcheck/script/ssrv.cgi",contextMenuForMisspelledOnly:!0,scriptPath:"https://svc.webspellchecker.net/spellcheck31/lf/scayt3/customscayt/customscayt.js"},a.extend(a.FE.DEFAULTS,{scaytAutoload:!1,scaytCustomerId:"1:tLBmI3-7rr3J1-GMEFA1-mIewo-hynTZ1-PV38I1-uEXCy2-Rn81L-gXuG4-NUNri4-5q9Q34-Jd",scaytOptions:{}}),a.FE.PLUGINS.spellChecker=function(b){function c(a){if(l){var c=!l.isDisabled();a.toggleClass("fr-active",c).attr("aria-pressed",c),b.$el.attr("spellcheck",b.opts.spellcheck&&!c)}}function d(a){l&&!l.isDisabled()&&(["bold","italic","underline","strikeThrough","subscript","superscript","fontFamily","fontSize"].indexOf(a)>=0&&l.removeMarkupInSelectionNode({removeInside:!0}),"html"==a&&g())}function e(a){l&&!l.isDisabled()&&["bold","italic","underline","strikeThrough","subscript","superscript","fontFamily","fontSize"].indexOf(a)>=0&&l.reloadMarkup()}function f(b){if(l&&!l.isDisabled()){var c=b.which;c==a.FE.KEYCODE.ENTER&&setTimeout(l.reloadMarkup,0)}}function g(){l&&l.setDisabled(!l.isDisabled())}function h(a){if(a&&a.getAttribute&&a.getAttribute("data-scayt-word"))a.outerHTML=a.innerHTML;else if(a&&a.nodeType==Node.ELEMENT_NODE)for(var b=a.querySelectorAll("[data-scayt-word]"),c=0;c<b.length;c++)b[c].outerHTML=b[c].innerHTML}function i(){b.events.on("commands.before",d),b.events.on("commands.after",e),b.events.on("keydown",f,!0),b.events.on("html.processGet",h),c(b.$tb.find('[data-cmd="spellChecker"]'))}function j(){var a=b.opts.scaytOptions;a.customerId=b.opts.scaytCustomerId,a.container=b.$iframe?b.$iframe.get(0):b.$el.get(0),a.autoStartup=b.opts.scaytAutoload,a.onLoad=i,null!==b.opts.language&&(b.opts.spellCheckerLanguage=b.opts.language),b.opts.scaytAutoload===!0&&(b.opts.spellcheck=!1),l=new SCAYT.CUSTOMSCAYT(a)}function k(){if(!b.$wp)return!1;if(b.opts.scaytOptions=a.extend({},a.FE.DEFAULT_SCAYT_OPTIONS,b.opts.scaytOptions),"undefined"!=typeof SCAYT)j();else if(b.shared.spellCheckerLoaded||(b.shared.spellCheckerCallbacks=[]),b.shared.spellCheckerCallbacks.push(j),!b.shared.spellCheckerLoaded){b.shared.spellCheckerLoaded=!0;var c=document.createElement("script");c.type="text/javascript",c.src=b.opts.scaytOptions.scriptPath,c.innerText="",c.onload=function(){for(var a=0;a<b.shared.spellCheckerCallbacks.length;a++)b.shared.spellCheckerCallbacks[a]()},document.getElementsByTagName("head")[0].appendChild(c)}}var l;return{_init:k,refresh:c,toggle:g}},a.FE.DefineIcon("spellChecker",{NAME:"keyboard-o"}),a.FE.RegisterCommand("spellChecker",{title:"Spell Checker",undo:!1,focus:!1,accessibilityFocus:!0,forcedRefresh:!0,toggle:!0,callback:function(){this.spellChecker.toggle()},refresh:function(a){this.spellChecker.refresh(a)},plugin:"spellChecker"})}); \ No newline at end of file diff --git a/Mobile.Search.Web/Scripts/jquery-1.10.2.intellisense.js b/Mobile.WYSIWYG/Scripts/jquery-1.10.2.intellisense.js similarity index 100% rename from Mobile.Search.Web/Scripts/jquery-1.10.2.intellisense.js rename to Mobile.WYSIWYG/Scripts/jquery-1.10.2.intellisense.js diff --git a/Mobile.Search.Web/Scripts/jquery-3.1.1.intellisense.js b/Mobile.WYSIWYG/Scripts/jquery-3.1.1.intellisense.js similarity index 100% rename from Mobile.Search.Web/Scripts/jquery-3.1.1.intellisense.js rename to Mobile.WYSIWYG/Scripts/jquery-3.1.1.intellisense.js diff --git a/Mobile.Search.Web/Scripts/jquery-3.1.1.js b/Mobile.WYSIWYG/Scripts/jquery-3.1.1.js similarity index 100% rename from Mobile.Search.Web/Scripts/jquery-3.1.1.js rename to Mobile.WYSIWYG/Scripts/jquery-3.1.1.js diff --git a/Mobile.Search.Web/Scripts/jquery-3.1.1.min.js b/Mobile.WYSIWYG/Scripts/jquery-3.1.1.min.js similarity index 100% rename from Mobile.Search.Web/Scripts/jquery-3.1.1.min.js rename to Mobile.WYSIWYG/Scripts/jquery-3.1.1.min.js diff --git a/Mobile.Search.Web/Scripts/jquery-3.1.1.min.map b/Mobile.WYSIWYG/Scripts/jquery-3.1.1.min.map similarity index 100% rename from Mobile.Search.Web/Scripts/jquery-3.1.1.min.map rename to Mobile.WYSIWYG/Scripts/jquery-3.1.1.min.map diff --git a/Mobile.Search.Web/Scripts/jquery-3.1.1.slim.js b/Mobile.WYSIWYG/Scripts/jquery-3.1.1.slim.js similarity index 100% rename from Mobile.Search.Web/Scripts/jquery-3.1.1.slim.js rename to Mobile.WYSIWYG/Scripts/jquery-3.1.1.slim.js diff --git a/Mobile.Search.Web/Scripts/jquery-3.1.1.slim.min.js b/Mobile.WYSIWYG/Scripts/jquery-3.1.1.slim.min.js similarity index 100% rename from Mobile.Search.Web/Scripts/jquery-3.1.1.slim.min.js rename to Mobile.WYSIWYG/Scripts/jquery-3.1.1.slim.min.js diff --git a/Mobile.Search.Web/Scripts/jquery-3.1.1.slim.min.map b/Mobile.WYSIWYG/Scripts/jquery-3.1.1.slim.min.map similarity index 100% rename from Mobile.Search.Web/Scripts/jquery-3.1.1.slim.min.map rename to Mobile.WYSIWYG/Scripts/jquery-3.1.1.slim.min.map diff --git a/Mobile.WYSIWYG/Scripts/jquery.validate-vsdoc.js b/Mobile.WYSIWYG/Scripts/jquery.validate-vsdoc.js new file mode 100644 index 0000000..57684e1 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/jquery.validate-vsdoc.js @@ -0,0 +1,1288 @@ +/* +* This file has been commented to support Visual Studio Intellisense. +* You should not use this file at runtime inside the browser--it is only +* intended to be used only for design-time IntelliSense. Please use the +* standard jQuery library for all production use. +* +* Comment version: 1.15.0 +*/ + +/* +* Note: While Microsoft is not the author of this file, Microsoft is +* offering you a license subject to the terms of the Microsoft Software +* License Terms for Microsoft ASP.NET Model View Controller 3. +* Microsoft reserves all other rights. The notices below are provided +* for informational purposes only and are not the license terms under +* which Microsoft distributed this file. +* +* jQuery Validation Plugin - v1.15.0 - 2/4/2013 +* https://github.com/jzaefferer/jquery-validation +* Copyright (c) 2013 Jörn Zaefferer; Licensed MIT +* +*/ + +(function($) { + +$.extend($.fn, { + // http://docs.jquery.com/Plugins/Validation/validate + validate: function( options ) { + /// <summary> + /// Validates the selected form. This method sets up event handlers for submit, focus, + /// keyup, blur and click to trigger validation of the entire form or individual + /// elements. Each one can be disabled, see the onxxx options (onsubmit, onfocusout, + /// onkeyup, onclick). focusInvalid focuses elements when submitting a invalid form. + /// </summary> + /// <param name="options" type="Object"> + /// A set of key/value pairs that configure the validate. All options are optional. + /// </param> + + // if nothing is selected, return nothing; can't chain anyway + if (!this.length) { + options && options.debug && window.console && console.warn( "nothing selected, can't validate, returning nothing" ); + return; + } + + // check if a validator for this form was already created + var validator = $.data(this[0], 'validator'); + if ( validator ) { + return validator; + } + + validator = new $.validator( options, this[0] ); + $.data(this[0], 'validator', validator); + + if ( validator.settings.onsubmit ) { + + // allow suppresing validation by adding a cancel class to the submit button + this.find("input, button").filter(".cancel").click(function() { + validator.cancelSubmit = true; + }); + + // when a submitHandler is used, capture the submitting button + if (validator.settings.submitHandler) { + this.find("input, button").filter(":submit").click(function() { + validator.submitButton = this; + }); + } + + // validate the form on submit + this.submit( function( event ) { + if ( validator.settings.debug ) + // prevent form submit to be able to see console output + event.preventDefault(); + + function handle() { + if ( validator.settings.submitHandler ) { + if (validator.submitButton) { + // insert a hidden input as a replacement for the missing submit button + var hidden = $("<input type='hidden'/>").attr("name", validator.submitButton.name).val(validator.submitButton.value).appendTo(validator.currentForm); + } + validator.settings.submitHandler.call( validator, validator.currentForm ); + if (validator.submitButton) { + // and clean up afterwards; thanks to no-block-scope, hidden can be referenced + hidden.remove(); + } + return false; + } + return true; + } + + // prevent submit for invalid forms or custom submit handlers + if ( validator.cancelSubmit ) { + validator.cancelSubmit = false; + return handle(); + } + if ( validator.form() ) { + if ( validator.pendingRequest ) { + validator.formSubmitted = true; + return false; + } + return handle(); + } else { + validator.focusInvalid(); + return false; + } + }); + } + + return validator; + }, + // http://docs.jquery.com/Plugins/Validation/valid + valid: function() { + /// <summary> + /// Checks if the selected form is valid or if all selected elements are valid. + /// validate() needs to be called on the form before checking it using this method. + /// </summary> + /// <returns type="Boolean" /> + + if ( $(this[0]).is('form')) { + return this.validate().form(); + } else { + var valid = true; + var validator = $(this[0].form).validate(); + this.each(function() { + valid &= validator.element(this); + }); + return valid; + } + }, + // attributes: space seperated list of attributes to retrieve and remove + removeAttrs: function(attributes) { + /// <summary> + /// Remove the specified attributes from the first matched element and return them. + /// </summary> + /// <param name="attributes" type="String"> + /// A space-seperated list of attribute names to remove. + /// </param> + + var result = {}, + $element = this; + $.each(attributes.split(/\s/), function(index, value) { + result[value] = $element.attr(value); + $element.removeAttr(value); + }); + return result; + }, + // http://docs.jquery.com/Plugins/Validation/rules + rules: function(command, argument) { + /// <summary> + /// Return the validations rules for the first selected element. + /// </summary> + /// <param name="command" type="String"> + /// Can be either "add" or "remove". + /// </param> + /// <param name="argument" type=""> + /// A list of rules to add or remove. + /// </param> + + var element = this[0]; + + if (command) { + var settings = $.data(element.form, 'validator').settings; + var staticRules = settings.rules; + var existingRules = $.validator.staticRules(element); + switch(command) { + case "add": + $.extend(existingRules, $.validator.normalizeRule(argument)); + staticRules[element.name] = existingRules; + if (argument.messages) + settings.messages[element.name] = $.extend( settings.messages[element.name], argument.messages ); + break; + case "remove": + if (!argument) { + delete staticRules[element.name]; + return existingRules; + } + var filtered = {}; + $.each(argument.split(/\s/), function(index, method) { + filtered[method] = existingRules[method]; + delete existingRules[method]; + }); + return filtered; + } + } + + var data = $.validator.normalizeRules( + $.extend( + {}, + $.validator.metadataRules(element), + $.validator.classRules(element), + $.validator.attributeRules(element), + $.validator.staticRules(element) + ), element); + + // make sure required is at front + if (data.required) { + var param = data.required; + delete data.required; + data = $.extend({required: param}, data); + } + + return data; + } +}); + +// Custom selectors +$.extend($.expr[":"], { + // http://docs.jquery.com/Plugins/Validation/blank + blank: function(a) {return !$.trim("" + a.value);}, + // http://docs.jquery.com/Plugins/Validation/filled + filled: function(a) {return !!$.trim("" + a.value);}, + // http://docs.jquery.com/Plugins/Validation/unchecked + unchecked: function(a) {return !a.checked;} +}); + +// constructor for validator +$.validator = function( options, form ) { + this.settings = $.extend( true, {}, $.validator.defaults, options ); + this.currentForm = form; + this.init(); +}; + +$.validator.format = function(source, params) { + /// <summary> + /// Replaces {n} placeholders with arguments. + /// One or more arguments can be passed, in addition to the string template itself, to insert + /// into the string. + /// </summary> + /// <param name="source" type="String"> + /// The string to format. + /// </param> + /// <param name="params" type="String"> + /// The first argument to insert, or an array of Strings to insert + /// </param> + /// <returns type="String" /> + + if ( arguments.length == 1 ) + return function() { + var args = $.makeArray(arguments); + args.unshift(source); + return $.validator.format.apply( this, args ); + }; + if ( arguments.length > 2 && params.constructor != Array ) { + params = $.makeArray(arguments).slice(1); + } + if ( params.constructor != Array ) { + params = [ params ]; + } + $.each(params, function(i, n) { + source = source.replace(new RegExp("\\{" + i + "\\}", "g"), n); + }); + return source; +}; + +$.extend($.validator, { + + defaults: { + messages: {}, + groups: {}, + rules: {}, + errorClass: "error", + validClass: "valid", + errorElement: "label", + focusInvalid: true, + errorContainer: $( [] ), + errorLabelContainer: $( [] ), + onsubmit: true, + ignore: [], + ignoreTitle: false, + onfocusin: function(element) { + this.lastActive = element; + + // hide error label and remove error class on focus if enabled + if ( this.settings.focusCleanup && !this.blockFocusCleanup ) { + this.settings.unhighlight && this.settings.unhighlight.call( this, element, this.settings.errorClass, this.settings.validClass ); + this.addWrapper(this.errorsFor(element)).hide(); + } + }, + onfocusout: function(element) { + if ( !this.checkable(element) && (element.name in this.submitted || !this.optional(element)) ) { + this.element(element); + } + }, + onkeyup: function(element) { + if ( element.name in this.submitted || element == this.lastElement ) { + this.element(element); + } + }, + onclick: function(element) { + // click on selects, radiobuttons and checkboxes + if ( element.name in this.submitted ) + this.element(element); + // or option elements, check parent select in that case + else if (element.parentNode.name in this.submitted) + this.element(element.parentNode); + }, + highlight: function( element, errorClass, validClass ) { + $(element).addClass(errorClass).removeClass(validClass); + }, + unhighlight: function( element, errorClass, validClass ) { + $(element).removeClass(errorClass).addClass(validClass); + } + }, + + // http://docs.jquery.com/Plugins/Validation/Validator/setDefaults + setDefaults: function(settings) { + /// <summary> + /// Modify default settings for validation. + /// Accepts everything that Plugins/Validation/validate accepts. + /// </summary> + /// <param name="settings" type="Options"> + /// Options to set as default. + /// </param> + + $.extend( $.validator.defaults, settings ); + }, + + messages: { + required: "This field is required.", + remote: "Please fix this field.", + email: "Please enter a valid email address.", + url: "Please enter a valid URL.", + date: "Please enter a valid date.", + dateISO: "Please enter a valid date (ISO).", + number: "Please enter a valid number.", + digits: "Please enter only digits.", + creditcard: "Please enter a valid credit card number.", + equalTo: "Please enter the same value again.", + accept: "Please enter a value with a valid extension.", + maxlength: $.validator.format("Please enter no more than {0} characters."), + minlength: $.validator.format("Please enter at least {0} characters."), + rangelength: $.validator.format("Please enter a value between {0} and {1} characters long."), + range: $.validator.format("Please enter a value between {0} and {1}."), + max: $.validator.format("Please enter a value less than or equal to {0}."), + min: $.validator.format("Please enter a value greater than or equal to {0}.") + }, + + autoCreateRanges: false, + + prototype: { + + init: function() { + this.labelContainer = $(this.settings.errorLabelContainer); + this.errorContext = this.labelContainer.length && this.labelContainer || $(this.currentForm); + this.containers = $(this.settings.errorContainer).add( this.settings.errorLabelContainer ); + this.submitted = {}; + this.valueCache = {}; + this.pendingRequest = 0; + this.pending = {}; + this.invalid = {}; + this.reset(); + + var groups = (this.groups = {}); + $.each(this.settings.groups, function(key, value) { + $.each(value.split(/\s/), function(index, name) { + groups[name] = key; + }); + }); + var rules = this.settings.rules; + $.each(rules, function(key, value) { + rules[key] = $.validator.normalizeRule(value); + }); + + function delegate(event) { + var validator = $.data(this[0].form, "validator"), + eventType = "on" + event.type.replace(/^validate/, ""); + validator.settings[eventType] && validator.settings[eventType].call(validator, this[0] ); + } + $(this.currentForm) + .validateDelegate(":text, :password, :file, select, textarea", "focusin focusout keyup", delegate) + .validateDelegate(":radio, :checkbox, select, option", "click", delegate); + + if (this.settings.invalidHandler) + $(this.currentForm).bind("invalid-form.validate", this.settings.invalidHandler); + }, + + // http://docs.jquery.com/Plugins/Validation/Validator/form + form: function() { + /// <summary> + /// Validates the form, returns true if it is valid, false otherwise. + /// This behaves as a normal submit event, but returns the result. + /// </summary> + /// <returns type="Boolean" /> + + this.checkForm(); + $.extend(this.submitted, this.errorMap); + this.invalid = $.extend({}, this.errorMap); + if (!this.valid()) + $(this.currentForm).triggerHandler("invalid-form", [this]); + this.showErrors(); + return this.valid(); + }, + + checkForm: function() { + this.prepareForm(); + for ( var i = 0, elements = (this.currentElements = this.elements()); elements[i]; i++ ) { + this.check( elements[i] ); + } + return this.valid(); + }, + + // http://docs.jquery.com/Plugins/Validation/Validator/element + element: function( element ) { + /// <summary> + /// Validates a single element, returns true if it is valid, false otherwise. + /// This behaves as validation on blur or keyup, but returns the result. + /// </summary> + /// <param name="element" type="Selector"> + /// An element to validate, must be inside the validated form. + /// </param> + /// <returns type="Boolean" /> + + element = this.clean( element ); + this.lastElement = element; + this.prepareElement( element ); + this.currentElements = $(element); + var result = this.check( element ); + if ( result ) { + delete this.invalid[element.name]; + } else { + this.invalid[element.name] = true; + } + if ( !this.numberOfInvalids() ) { + // Hide error containers on last error + this.toHide = this.toHide.add( this.containers ); + } + this.showErrors(); + return result; + }, + + // http://docs.jquery.com/Plugins/Validation/Validator/showErrors + showErrors: function(errors) { + /// <summary> + /// Show the specified messages. + /// Keys have to refer to the names of elements, values are displayed for those elements, using the configured error placement. + /// </summary> + /// <param name="errors" type="Object"> + /// One or more key/value pairs of input names and messages. + /// </param> + + if(errors) { + // add items to error list and map + $.extend( this.errorMap, errors ); + this.errorList = []; + for ( var name in errors ) { + this.errorList.push({ + message: errors[name], + element: this.findByName(name)[0] + }); + } + // remove items from success list + this.successList = $.grep( this.successList, function(element) { + return !(element.name in errors); + }); + } + this.settings.showErrors + ? this.settings.showErrors.call( this, this.errorMap, this.errorList ) + : this.defaultShowErrors(); + }, + + // http://docs.jquery.com/Plugins/Validation/Validator/resetForm + resetForm: function() { + /// <summary> + /// Resets the controlled form. + /// Resets input fields to their original value (requires form plugin), removes classes + /// indicating invalid elements and hides error messages. + /// </summary> + + if ( $.fn.resetForm ) + $( this.currentForm ).resetForm(); + this.submitted = {}; + this.prepareForm(); + this.hideErrors(); + this.elements().removeClass( this.settings.errorClass ); + }, + + numberOfInvalids: function() { + /// <summary> + /// Returns the number of invalid fields. + /// This depends on the internal validator state. It covers all fields only after + /// validating the complete form (on submit or via $("form").valid()). After validating + /// a single element, only that element is counted. Most useful in combination with the + /// invalidHandler-option. + /// </summary> + /// <returns type="Number" /> + + return this.objectLength(this.invalid); + }, + + objectLength: function( obj ) { + var count = 0; + for ( var i in obj ) + count++; + return count; + }, + + hideErrors: function() { + this.addWrapper( this.toHide ).hide(); + }, + + valid: function() { + return this.size() == 0; + }, + + size: function() { + return this.errorList.length; + }, + + focusInvalid: function() { + if( this.settings.focusInvalid ) { + try { + $(this.findLastActive() || this.errorList.length && this.errorList[0].element || []) + .filter(":visible") + .focus() + // manually trigger focusin event; without it, focusin handler isn't called, findLastActive won't have anything to find + .trigger("focusin"); + } catch(e) { + // ignore IE throwing errors when focusing hidden elements + } + } + }, + + findLastActive: function() { + var lastActive = this.lastActive; + return lastActive && $.grep(this.errorList, function(n) { + return n.element.name == lastActive.name; + }).length == 1 && lastActive; + }, + + elements: function() { + var validator = this, + rulesCache = {}; + + // select all valid inputs inside the form (no submit or reset buttons) + // workaround $Query([]).add until http://dev.jquery.com/ticket/2114 is solved + return $([]).add(this.currentForm.elements) + .filter(":input") + .not(":submit, :reset, :image, [disabled]") + .not( this.settings.ignore ) + .filter(function() { + !this.name && validator.settings.debug && window.console && console.error( "%o has no name assigned", this); + + // select only the first element for each name, and only those with rules specified + if ( this.name in rulesCache || !validator.objectLength($(this).rules()) ) + return false; + + rulesCache[this.name] = true; + return true; + }); + }, + + clean: function( selector ) { + return $( selector )[0]; + }, + + errors: function() { + return $( this.settings.errorElement + "." + this.settings.errorClass, this.errorContext ); + }, + + reset: function() { + this.successList = []; + this.errorList = []; + this.errorMap = {}; + this.toShow = $([]); + this.toHide = $([]); + this.currentElements = $([]); + }, + + prepareForm: function() { + this.reset(); + this.toHide = this.errors().add( this.containers ); + }, + + prepareElement: function( element ) { + this.reset(); + this.toHide = this.errorsFor(element); + }, + + check: function( element ) { + element = this.clean( element ); + + // if radio/checkbox, validate first element in group instead + if (this.checkable(element)) { + element = this.findByName(element.name).not(this.settings.ignore)[0]; + } + + var rules = $(element).rules(); + var dependencyMismatch = false; + for (var method in rules) { + var rule = { method: method, parameters: rules[method] }; + try { + var result = $.validator.methods[method].call( this, element.value.replace(/\r/g, ""), element, rule.parameters ); + + // if a method indicates that the field is optional and therefore valid, + // don't mark it as valid when there are no other rules + if ( result == "dependency-mismatch" ) { + dependencyMismatch = true; + continue; + } + dependencyMismatch = false; + + if ( result == "pending" ) { + this.toHide = this.toHide.not( this.errorsFor(element) ); + return; + } + + if( !result ) { + this.formatAndAdd( element, rule ); + return false; + } + } catch(e) { + this.settings.debug && window.console && console.log("exception occured when checking element " + element.id + + ", check the '" + rule.method + "' method", e); + throw e; + } + } + if (dependencyMismatch) + return; + if ( this.objectLength(rules) ) + this.successList.push(element); + return true; + }, + + // return the custom message for the given element and validation method + // specified in the element's "messages" metadata + customMetaMessage: function(element, method) { + if (!$.metadata) + return; + + var meta = this.settings.meta + ? $(element).metadata()[this.settings.meta] + : $(element).metadata(); + + return meta && meta.messages && meta.messages[method]; + }, + + // return the custom message for the given element name and validation method + customMessage: function( name, method ) { + var m = this.settings.messages[name]; + return m && (m.constructor == String + ? m + : m[method]); + }, + + // return the first defined argument, allowing empty strings + findDefined: function() { + for(var i = 0; i < arguments.length; i++) { + if (arguments[i] !== undefined) + return arguments[i]; + } + return undefined; + }, + + defaultMessage: function( element, method) { + return this.findDefined( + this.customMessage( element.name, method ), + this.customMetaMessage( element, method ), + // title is never undefined, so handle empty string as undefined + !this.settings.ignoreTitle && element.title || undefined, + $.validator.messages[method], + "<strong>Warning: No message defined for " + element.name + "</strong>" + ); + }, + + formatAndAdd: function( element, rule ) { + var message = this.defaultMessage( element, rule.method ), + theregex = /\$?\{(\d+)\}/g; + if ( typeof message == "function" ) { + message = message.call(this, rule.parameters, element); + } else if (theregex.test(message)) { + message = jQuery.format(message.replace(theregex, '{$1}'), rule.parameters); + } + this.errorList.push({ + message: message, + element: element + }); + + this.errorMap[element.name] = message; + this.submitted[element.name] = message; + }, + + addWrapper: function(toToggle) { + if ( this.settings.wrapper ) + toToggle = toToggle.add( toToggle.parent( this.settings.wrapper ) ); + return toToggle; + }, + + defaultShowErrors: function() { + for ( var i = 0; this.errorList[i]; i++ ) { + var error = this.errorList[i]; + this.settings.highlight && this.settings.highlight.call( this, error.element, this.settings.errorClass, this.settings.validClass ); + this.showLabel( error.element, error.message ); + } + if( this.errorList.length ) { + this.toShow = this.toShow.add( this.containers ); + } + if (this.settings.success) { + for ( var i = 0; this.successList[i]; i++ ) { + this.showLabel( this.successList[i] ); + } + } + if (this.settings.unhighlight) { + for ( var i = 0, elements = this.validElements(); elements[i]; i++ ) { + this.settings.unhighlight.call( this, elements[i], this.settings.errorClass, this.settings.validClass ); + } + } + this.toHide = this.toHide.not( this.toShow ); + this.hideErrors(); + this.addWrapper( this.toShow ).show(); + }, + + validElements: function() { + return this.currentElements.not(this.invalidElements()); + }, + + invalidElements: function() { + return $(this.errorList).map(function() { + return this.element; + }); + }, + + showLabel: function(element, message) { + var label = this.errorsFor( element ); + if ( label.length ) { + // refresh error/success class + label.removeClass().addClass( this.settings.errorClass ); + + // check if we have a generated label, replace the message then + label.attr("generated") && label.html(message); + } else { + // create label + label = $("<" + this.settings.errorElement + "/>") + .attr({"for": this.idOrName(element), generated: true}) + .addClass(this.settings.errorClass) + .html(message || ""); + if ( this.settings.wrapper ) { + // make sure the element is visible, even in IE + // actually showing the wrapped element is handled elsewhere + label = label.hide().show().wrap("<" + this.settings.wrapper + "/>").parent(); + } + if ( !this.labelContainer.append(label).length ) + this.settings.errorPlacement + ? this.settings.errorPlacement(label, $(element) ) + : label.insertAfter(element); + } + if ( !message && this.settings.success ) { + label.text(""); + typeof this.settings.success == "string" + ? label.addClass( this.settings.success ) + : this.settings.success( label ); + } + this.toShow = this.toShow.add(label); + }, + + errorsFor: function(element) { + var name = this.idOrName(element); + return this.errors().filter(function() { + return $(this).attr('for') == name; + }); + }, + + idOrName: function(element) { + return this.groups[element.name] || (this.checkable(element) ? element.name : element.id || element.name); + }, + + checkable: function( element ) { + return /radio|checkbox/i.test(element.type); + }, + + findByName: function( name ) { + // select by name and filter by form for performance over form.find("[name=...]") + var form = this.currentForm; + return $(document.getElementsByName(name)).map(function(index, element) { + return element.form == form && element.name == name && element || null; + }); + }, + + getLength: function(value, element) { + switch( element.nodeName.toLowerCase() ) { + case 'select': + return $("option:selected", element).length; + case 'input': + if( this.checkable( element) ) + return this.findByName(element.name).filter(':checked').length; + } + return value.length; + }, + + depend: function(param, element) { + return this.dependTypes[typeof param] + ? this.dependTypes[typeof param](param, element) + : true; + }, + + dependTypes: { + "boolean": function(param, element) { + return param; + }, + "string": function(param, element) { + return !!$(param, element.form).length; + }, + "function": function(param, element) { + return param(element); + } + }, + + optional: function(element) { + return !$.validator.methods.required.call(this, $.trim(element.value), element) && "dependency-mismatch"; + }, + + startRequest: function(element) { + if (!this.pending[element.name]) { + this.pendingRequest++; + this.pending[element.name] = true; + } + }, + + stopRequest: function(element, valid) { + this.pendingRequest--; + // sometimes synchronization fails, make sure pendingRequest is never < 0 + if (this.pendingRequest < 0) + this.pendingRequest = 0; + delete this.pending[element.name]; + if ( valid && this.pendingRequest == 0 && this.formSubmitted && this.form() ) { + $(this.currentForm).submit(); + this.formSubmitted = false; + } else if (!valid && this.pendingRequest == 0 && this.formSubmitted) { + $(this.currentForm).triggerHandler("invalid-form", [this]); + this.formSubmitted = false; + } + }, + + previousValue: function(element) { + return $.data(element, "previousValue") || $.data(element, "previousValue", { + old: null, + valid: true, + message: this.defaultMessage( element, "remote" ) + }); + } + + }, + + classRuleSettings: { + required: {required: true}, + email: {email: true}, + url: {url: true}, + date: {date: true}, + dateISO: {dateISO: true}, + dateDE: {dateDE: true}, + number: {number: true}, + numberDE: {numberDE: true}, + digits: {digits: true}, + creditcard: {creditcard: true} + }, + + addClassRules: function(className, rules) { + /// <summary> + /// Add a compound class method - useful to refactor common combinations of rules into a single + /// class. + /// </summary> + /// <param name="name" type="String"> + /// The name of the class rule to add + /// </param> + /// <param name="rules" type="Options"> + /// The compound rules + /// </param> + + className.constructor == String ? + this.classRuleSettings[className] = rules : + $.extend(this.classRuleSettings, className); + }, + + classRules: function(element) { + var rules = {}; + var classes = $(element).attr('class'); + classes && $.each(classes.split(' '), function() { + if (this in $.validator.classRuleSettings) { + $.extend(rules, $.validator.classRuleSettings[this]); + } + }); + return rules; + }, + + attributeRules: function(element) { + var rules = {}; + var $element = $(element); + + for (var method in $.validator.methods) { + var value = $element.attr(method); + if (value) { + rules[method] = value; + } + } + + // maxlength may be returned as -1, 2147483647 (IE) and 524288 (safari) for text inputs + if (rules.maxlength && /-1|2147483647|524288/.test(rules.maxlength)) { + delete rules.maxlength; + } + + return rules; + }, + + metadataRules: function(element) { + if (!$.metadata) return {}; + + var meta = $.data(element.form, 'validator').settings.meta; + return meta ? + $(element).metadata()[meta] : + $(element).metadata(); + }, + + staticRules: function(element) { + var rules = {}; + var validator = $.data(element.form, 'validator'); + if (validator.settings.rules) { + rules = $.validator.normalizeRule(validator.settings.rules[element.name]) || {}; + } + return rules; + }, + + normalizeRules: function(rules, element) { + // handle dependency check + $.each(rules, function(prop, val) { + // ignore rule when param is explicitly false, eg. required:false + if (val === false) { + delete rules[prop]; + return; + } + if (val.param || val.depends) { + var keepRule = true; + switch (typeof val.depends) { + case "string": + keepRule = !!$(val.depends, element.form).length; + break; + case "function": + keepRule = val.depends.call(element, element); + break; + } + if (keepRule) { + rules[prop] = val.param !== undefined ? val.param : true; + } else { + delete rules[prop]; + } + } + }); + + // evaluate parameters + $.each(rules, function(rule, parameter) { + rules[rule] = $.isFunction(parameter) ? parameter(element) : parameter; + }); + + // clean number parameters + $.each(['minlength', 'maxlength', 'min', 'max'], function() { + if (rules[this]) { + rules[this] = Number(rules[this]); + } + }); + $.each(['rangelength', 'range'], function() { + if (rules[this]) { + rules[this] = [Number(rules[this][0]), Number(rules[this][1])]; + } + }); + + if ($.validator.autoCreateRanges) { + // auto-create ranges + if (rules.min && rules.max) { + rules.range = [rules.min, rules.max]; + delete rules.min; + delete rules.max; + } + if (rules.minlength && rules.maxlength) { + rules.rangelength = [rules.minlength, rules.maxlength]; + delete rules.minlength; + delete rules.maxlength; + } + } + + // To support custom messages in metadata ignore rule methods titled "messages" + if (rules.messages) { + delete rules.messages; + } + + return rules; + }, + + // Converts a simple string to a {string: true} rule, e.g., "required" to {required:true} + normalizeRule: function(data) { + if( typeof data == "string" ) { + var transformed = {}; + $.each(data.split(/\s/), function() { + transformed[this] = true; + }); + data = transformed; + } + return data; + }, + + // http://docs.jquery.com/Plugins/Validation/Validator/addMethod + addMethod: function(name, method, message) { + /// <summary> + /// Add a custom validation method. It must consist of a name (must be a legal javascript + /// identifier), a javascript based function and a default string message. + /// </summary> + /// <param name="name" type="String"> + /// The name of the method, used to identify and referencing it, must be a valid javascript + /// identifier + /// </param> + /// <param name="method" type="Function"> + /// The actual method implementation, returning true if an element is valid + /// </param> + /// <param name="message" type="String" optional="true"> + /// (Optional) The default message to display for this method. Can be a function created by + /// jQuery.validator.format(value). When undefined, an already existing message is used + /// (handy for localization), otherwise the field-specific messages have to be defined. + /// </param> + + $.validator.methods[name] = method; + $.validator.messages[name] = message != undefined ? message : $.validator.messages[name]; + if (method.length < 3) { + $.validator.addClassRules(name, $.validator.normalizeRule(name)); + } + }, + + methods: { + + // http://docs.jquery.com/Plugins/Validation/Methods/required + required: function(value, element, param) { + // check if dependency is met + if ( !this.depend(param, element) ) + return "dependency-mismatch"; + switch( element.nodeName.toLowerCase() ) { + case 'select': + // could be an array for select-multiple or a string, both are fine this way + var val = $(element).val(); + return val && val.length > 0; + case 'input': + if ( this.checkable(element) ) + return this.getLength(value, element) > 0; + default: + return $.trim(value).length > 0; + } + }, + + // http://docs.jquery.com/Plugins/Validation/Methods/remote + remote: function(value, element, param) { + if ( this.optional(element) ) + return "dependency-mismatch"; + + var previous = this.previousValue(element); + if (!this.settings.messages[element.name] ) + this.settings.messages[element.name] = {}; + previous.originalMessage = this.settings.messages[element.name].remote; + this.settings.messages[element.name].remote = previous.message; + + param = typeof param == "string" && {url:param} || param; + + if ( this.pending[element.name] ) { + return "pending"; + } + if ( previous.old === value ) { + return previous.valid; + } + + previous.old = value; + var validator = this; + this.startRequest(element); + var data = {}; + data[element.name] = value; + $.ajax($.extend(true, { + url: param, + mode: "abort", + port: "validate" + element.name, + dataType: "json", + data: data, + success: function(response) { + validator.settings.messages[element.name].remote = previous.originalMessage; + var valid = response === true; + if ( valid ) { + var submitted = validator.formSubmitted; + validator.prepareElement(element); + validator.formSubmitted = submitted; + validator.successList.push(element); + validator.showErrors(); + } else { + var errors = {}; + var message = response || validator.defaultMessage(element, "remote"); + errors[element.name] = previous.message = $.isFunction(message) ? message(value) : message; + validator.showErrors(errors); + } + previous.valid = valid; + validator.stopRequest(element, valid); + } + }, param)); + return "pending"; + }, + + // http://docs.jquery.com/Plugins/Validation/Methods/minlength + minlength: function(value, element, param) { + return this.optional(element) || this.getLength($.trim(value), element) >= param; + }, + + // http://docs.jquery.com/Plugins/Validation/Methods/maxlength + maxlength: function(value, element, param) { + return this.optional(element) || this.getLength($.trim(value), element) <= param; + }, + + // http://docs.jquery.com/Plugins/Validation/Methods/rangelength + rangelength: function(value, element, param) { + var length = this.getLength($.trim(value), element); + return this.optional(element) || ( length >= param[0] && length <= param[1] ); + }, + + // http://docs.jquery.com/Plugins/Validation/Methods/min + min: function( value, element, param ) { + return this.optional(element) || value >= param; + }, + + // http://docs.jquery.com/Plugins/Validation/Methods/max + max: function( value, element, param ) { + return this.optional(element) || value <= param; + }, + + // http://docs.jquery.com/Plugins/Validation/Methods/range + range: function( value, element, param ) { + return this.optional(element) || ( value >= param[0] && value <= param[1] ); + }, + + // http://docs.jquery.com/Plugins/Validation/Methods/email + email: function(value, element) { + // contributed by Scott Gonzalez: http://projects.scottsplayground.com/email_address_validation/ + return this.optional(element) || /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(value); + }, + + // http://docs.jquery.com/Plugins/Validation/Methods/url + url: function(value, element) { + // contributed by Scott Gonzalez: http://projects.scottsplayground.com/iri/ + return this.optional(element) || /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(value); + }, + + // http://docs.jquery.com/Plugins/Validation/Methods/date + date: function(value, element) { + return this.optional(element) || !/Invalid|NaN/.test(new Date(value)); + }, + + // http://docs.jquery.com/Plugins/Validation/Methods/dateISO + dateISO: function(value, element) { + return this.optional(element) || /^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(value); + }, + + // http://docs.jquery.com/Plugins/Validation/Methods/number + number: function(value, element) { + return this.optional(element) || /^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(value); + }, + + // http://docs.jquery.com/Plugins/Validation/Methods/digits + digits: function(value, element) { + return this.optional(element) || /^\d+$/.test(value); + }, + + // http://docs.jquery.com/Plugins/Validation/Methods/creditcard + // based on http://en.wikipedia.org/wiki/Luhn + creditcard: function(value, element) { + if ( this.optional(element) ) + return "dependency-mismatch"; + // accept only digits and dashes + if (/[^0-9-]+/.test(value)) + return false; + var nCheck = 0, + nDigit = 0, + bEven = false; + + value = value.replace(/\D/g, ""); + + for (var n = value.length - 1; n >= 0; n--) { + var cDigit = value.charAt(n); + var nDigit = parseInt(cDigit, 10); + if (bEven) { + if ((nDigit *= 2) > 9) + nDigit -= 9; + } + nCheck += nDigit; + bEven = !bEven; + } + + return (nCheck % 10) == 0; + }, + + // http://docs.jquery.com/Plugins/Validation/Methods/accept + accept: function(value, element, param) { + param = typeof param == "string" ? param.replace(/,/g, '|') : "png|jpe?g|gif"; + return this.optional(element) || value.match(new RegExp(".(" + param + ")$", "i")); + }, + + // http://docs.jquery.com/Plugins/Validation/Methods/equalTo + equalTo: function(value, element, param) { + // bind to the blur event of the target in order to revalidate whenever the target field is updated + // TODO find a way to bind the event just once, avoiding the unbind-rebind overhead + var target = $(param).unbind(".validate-equalTo").bind("blur.validate-equalTo", function() { + $(element).valid(); + }); + return value == target.val(); + } + + } + +}); + +// deprecated, use $.validator.format instead +$.format = $.validator.format; + +})(jQuery); + +// ajax mode: abort +// usage: $.ajax({ mode: "abort"[, port: "uniqueport"]}); +// if mode:"abort" is used, the previous request on that port (port can be undefined) is aborted via XMLHttpRequest.abort() +;(function($) { + var pendingRequests = {}; + // Use a prefilter if available (1.5+) + if ( $.ajaxPrefilter ) { + $.ajaxPrefilter(function(settings, _, xhr) { + var port = settings.port; + if (settings.mode == "abort") { + if ( pendingRequests[port] ) { + pendingRequests[port].abort(); + } pendingRequests[port] = xhr; + } + }); + } else { + // Proxy ajax + var ajax = $.ajax; + $.ajax = function(settings) { + var mode = ( "mode" in settings ? settings : $.ajaxSettings ).mode, + port = ( "port" in settings ? settings : $.ajaxSettings ).port; + if (mode == "abort") { + if ( pendingRequests[port] ) { + pendingRequests[port].abort(); + } + + return (pendingRequests[port] = ajax.apply(this, arguments)); + } + return ajax.apply(this, arguments); + }; + } +})(jQuery); + +// provides cross-browser focusin and focusout events +// IE has native support, in other browsers, use event caputuring (neither bubbles) + +// provides delegate(type: String, delegate: Selector, handler: Callback) plugin for easier event delegation +// handler is only called when $(event.target).is(delegate), in the scope of the jquery-object for event.target +;(function($) { + // only implement if not provided by jQuery core (since 1.4) + // TODO verify if jQuery 1.4's implementation is compatible with older jQuery special-event APIs + if (!jQuery.event.special.focusin && !jQuery.event.special.focusout && document.addEventListener) { + $.each({ + focus: 'focusin', + blur: 'focusout' + }, function( original, fix ){ + $.event.special[fix] = { + setup:function() { + this.addEventListener( original, handler, true ); + }, + teardown:function() { + this.removeEventListener( original, handler, true ); + }, + handler: function(e) { + arguments[0] = $.event.fix(e); + arguments[0].type = fix; + return $.event.handle.apply(this, arguments); + } + }; + function handler(e) { + e = $.event.fix(e); + e.type = fix; + return $.event.handle.call(this, e); + } + }); + }; + $.extend($.fn, { + validateDelegate: function(delegate, type, handler) { + return this.bind(type, function(event) { + var target = $(event.target); + if (target.is(delegate)) { + return handler.apply(target, arguments); + } + }); + } + }); +})(jQuery); diff --git a/Mobile.WYSIWYG/Scripts/jquery.validate.js b/Mobile.WYSIWYG/Scripts/jquery.validate.js new file mode 100644 index 0000000..e110f1d --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/jquery.validate.js @@ -0,0 +1,1574 @@ +/*! + * jQuery Validation Plugin v1.15.1 + * + * http://jqueryvalidation.org/ + * + * Copyright (c) 2016 Jörn Zaefferer + * Released under the MIT license + */ +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + define( ["jquery"], factory ); + } else if (typeof module === "object" && module.exports) { + module.exports = factory( require( "jquery" ) ); + } else { + factory( jQuery ); + } +}(function( $ ) { + +$.extend( $.fn, { + + // http://jqueryvalidation.org/validate/ + validate: function( options ) { + + // If nothing is selected, return nothing; can't chain anyway + if ( !this.length ) { + if ( options && options.debug && window.console ) { + console.warn( "Nothing selected, can't validate, returning nothing." ); + } + return; + } + + // Check if a validator for this form was already created + var validator = $.data( this[ 0 ], "validator" ); + if ( validator ) { + return validator; + } + + // Add novalidate tag if HTML5. + this.attr( "novalidate", "novalidate" ); + + validator = new $.validator( options, this[ 0 ] ); + $.data( this[ 0 ], "validator", validator ); + + if ( validator.settings.onsubmit ) { + + this.on( "click.validate", ":submit", function( event ) { + if ( validator.settings.submitHandler ) { + validator.submitButton = event.target; + } + + // Allow suppressing validation by adding a cancel class to the submit button + if ( $( this ).hasClass( "cancel" ) ) { + validator.cancelSubmit = true; + } + + // Allow suppressing validation by adding the html5 formnovalidate attribute to the submit button + if ( $( this ).attr( "formnovalidate" ) !== undefined ) { + validator.cancelSubmit = true; + } + } ); + + // Validate the form on submit + this.on( "submit.validate", function( event ) { + if ( validator.settings.debug ) { + + // Prevent form submit to be able to see console output + event.preventDefault(); + } + function handle() { + var hidden, result; + if ( validator.settings.submitHandler ) { + if ( validator.submitButton ) { + + // Insert a hidden input as a replacement for the missing submit button + hidden = $( "<input type='hidden'/>" ) + .attr( "name", validator.submitButton.name ) + .val( $( validator.submitButton ).val() ) + .appendTo( validator.currentForm ); + } + result = validator.settings.submitHandler.call( validator, validator.currentForm, event ); + if ( validator.submitButton ) { + + // And clean up afterwards; thanks to no-block-scope, hidden can be referenced + hidden.remove(); + } + if ( result !== undefined ) { + return result; + } + return false; + } + return true; + } + + // Prevent submit for invalid forms or custom submit handlers + if ( validator.cancelSubmit ) { + validator.cancelSubmit = false; + return handle(); + } + if ( validator.form() ) { + if ( validator.pendingRequest ) { + validator.formSubmitted = true; + return false; + } + return handle(); + } else { + validator.focusInvalid(); + return false; + } + } ); + } + + return validator; + }, + + // http://jqueryvalidation.org/valid/ + valid: function() { + var valid, validator, errorList; + + if ( $( this[ 0 ] ).is( "form" ) ) { + valid = this.validate().form(); + } else { + errorList = []; + valid = true; + validator = $( this[ 0 ].form ).validate(); + this.each( function() { + valid = validator.element( this ) && valid; + if ( !valid ) { + errorList = errorList.concat( validator.errorList ); + } + } ); + validator.errorList = errorList; + } + return valid; + }, + + // http://jqueryvalidation.org/rules/ + rules: function( command, argument ) { + var element = this[ 0 ], + settings, staticRules, existingRules, data, param, filtered; + + // If nothing is selected, return empty object; can't chain anyway + if ( element == null || element.form == null ) { + return; + } + + if ( command ) { + settings = $.data( element.form, "validator" ).settings; + staticRules = settings.rules; + existingRules = $.validator.staticRules( element ); + switch ( command ) { + case "add": + $.extend( existingRules, $.validator.normalizeRule( argument ) ); + + // Remove messages from rules, but allow them to be set separately + delete existingRules.messages; + staticRules[ element.name ] = existingRules; + if ( argument.messages ) { + settings.messages[ element.name ] = $.extend( settings.messages[ element.name ], argument.messages ); + } + break; + case "remove": + if ( !argument ) { + delete staticRules[ element.name ]; + return existingRules; + } + filtered = {}; + $.each( argument.split( /\s/ ), function( index, method ) { + filtered[ method ] = existingRules[ method ]; + delete existingRules[ method ]; + if ( method === "required" ) { + $( element ).removeAttr( "aria-required" ); + } + } ); + return filtered; + } + } + + data = $.validator.normalizeRules( + $.extend( + {}, + $.validator.classRules( element ), + $.validator.attributeRules( element ), + $.validator.dataRules( element ), + $.validator.staticRules( element ) + ), element ); + + // Make sure required is at front + if ( data.required ) { + param = data.required; + delete data.required; + data = $.extend( { required: param }, data ); + $( element ).attr( "aria-required", "true" ); + } + + // Make sure remote is at back + if ( data.remote ) { + param = data.remote; + delete data.remote; + data = $.extend( data, { remote: param } ); + } + + return data; + } +} ); + +// Custom selectors +$.extend( $.expr[ ":" ], { + + // http://jqueryvalidation.org/blank-selector/ + blank: function( a ) { + return !$.trim( "" + $( a ).val() ); + }, + + // http://jqueryvalidation.org/filled-selector/ + filled: function( a ) { + var val = $( a ).val(); + return val !== null && !!$.trim( "" + val ); + }, + + // http://jqueryvalidation.org/unchecked-selector/ + unchecked: function( a ) { + return !$( a ).prop( "checked" ); + } +} ); + +// Constructor for validator +$.validator = function( options, form ) { + this.settings = $.extend( true, {}, $.validator.defaults, options ); + this.currentForm = form; + this.init(); +}; + +// http://jqueryvalidation.org/jQuery.validator.format/ +$.validator.format = function( source, params ) { + if ( arguments.length === 1 ) { + return function() { + var args = $.makeArray( arguments ); + args.unshift( source ); + return $.validator.format.apply( this, args ); + }; + } + if ( params === undefined ) { + return source; + } + if ( arguments.length > 2 && params.constructor !== Array ) { + params = $.makeArray( arguments ).slice( 1 ); + } + if ( params.constructor !== Array ) { + params = [ params ]; + } + $.each( params, function( i, n ) { + source = source.replace( new RegExp( "\\{" + i + "\\}", "g" ), function() { + return n; + } ); + } ); + return source; +}; + +$.extend( $.validator, { + + defaults: { + messages: {}, + groups: {}, + rules: {}, + errorClass: "error", + pendingClass: "pending", + validClass: "valid", + errorElement: "label", + focusCleanup: false, + focusInvalid: true, + errorContainer: $( [] ), + errorLabelContainer: $( [] ), + onsubmit: true, + ignore: ":hidden", + ignoreTitle: false, + onfocusin: function( element ) { + this.lastActive = element; + + // Hide error label and remove error class on focus if enabled + if ( this.settings.focusCleanup ) { + if ( this.settings.unhighlight ) { + this.settings.unhighlight.call( this, element, this.settings.errorClass, this.settings.validClass ); + } + this.hideThese( this.errorsFor( element ) ); + } + }, + onfocusout: function( element ) { + if ( !this.checkable( element ) && ( element.name in this.submitted || !this.optional( element ) ) ) { + this.element( element ); + } + }, + onkeyup: function( element, event ) { + + // Avoid revalidate the field when pressing one of the following keys + // Shift => 16 + // Ctrl => 17 + // Alt => 18 + // Caps lock => 20 + // End => 35 + // Home => 36 + // Left arrow => 37 + // Up arrow => 38 + // Right arrow => 39 + // Down arrow => 40 + // Insert => 45 + // Num lock => 144 + // AltGr key => 225 + var excludedKeys = [ + 16, 17, 18, 20, 35, 36, 37, + 38, 39, 40, 45, 144, 225 + ]; + + if ( event.which === 9 && this.elementValue( element ) === "" || $.inArray( event.keyCode, excludedKeys ) !== -1 ) { + return; + } else if ( element.name in this.submitted || element.name in this.invalid ) { + this.element( element ); + } + }, + onclick: function( element ) { + + // Click on selects, radiobuttons and checkboxes + if ( element.name in this.submitted ) { + this.element( element ); + + // Or option elements, check parent select in that case + } else if ( element.parentNode.name in this.submitted ) { + this.element( element.parentNode ); + } + }, + highlight: function( element, errorClass, validClass ) { + if ( element.type === "radio" ) { + this.findByName( element.name ).addClass( errorClass ).removeClass( validClass ); + } else { + $( element ).addClass( errorClass ).removeClass( validClass ); + } + }, + unhighlight: function( element, errorClass, validClass ) { + if ( element.type === "radio" ) { + this.findByName( element.name ).removeClass( errorClass ).addClass( validClass ); + } else { + $( element ).removeClass( errorClass ).addClass( validClass ); + } + } + }, + + // http://jqueryvalidation.org/jQuery.validator.setDefaults/ + setDefaults: function( settings ) { + $.extend( $.validator.defaults, settings ); + }, + + messages: { + required: "This field is required.", + remote: "Please fix this field.", + email: "Please enter a valid email address.", + url: "Please enter a valid URL.", + date: "Please enter a valid date.", + dateISO: "Please enter a valid date (ISO).", + number: "Please enter a valid number.", + digits: "Please enter only digits.", + equalTo: "Please enter the same value again.", + maxlength: $.validator.format( "Please enter no more than {0} characters." ), + minlength: $.validator.format( "Please enter at least {0} characters." ), + rangelength: $.validator.format( "Please enter a value between {0} and {1} characters long." ), + range: $.validator.format( "Please enter a value between {0} and {1}." ), + max: $.validator.format( "Please enter a value less than or equal to {0}." ), + min: $.validator.format( "Please enter a value greater than or equal to {0}." ), + step: $.validator.format( "Please enter a multiple of {0}." ) + }, + + autoCreateRanges: false, + + prototype: { + + init: function() { + this.labelContainer = $( this.settings.errorLabelContainer ); + this.errorContext = this.labelContainer.length && this.labelContainer || $( this.currentForm ); + this.containers = $( this.settings.errorContainer ).add( this.settings.errorLabelContainer ); + this.submitted = {}; + this.valueCache = {}; + this.pendingRequest = 0; + this.pending = {}; + this.invalid = {}; + this.reset(); + + var groups = ( this.groups = {} ), + rules; + $.each( this.settings.groups, function( key, value ) { + if ( typeof value === "string" ) { + value = value.split( /\s/ ); + } + $.each( value, function( index, name ) { + groups[ name ] = key; + } ); + } ); + rules = this.settings.rules; + $.each( rules, function( key, value ) { + rules[ key ] = $.validator.normalizeRule( value ); + } ); + + function delegate( event ) { + + // Set form expando on contenteditable + if ( !this.form && this.hasAttribute( "contenteditable" ) ) { + this.form = $( this ).closest( "form" )[ 0 ]; + } + + var validator = $.data( this.form, "validator" ), + eventType = "on" + event.type.replace( /^validate/, "" ), + settings = validator.settings; + if ( settings[ eventType ] && !$( this ).is( settings.ignore ) ) { + settings[ eventType ].call( validator, this, event ); + } + } + + $( this.currentForm ) + .on( "focusin.validate focusout.validate keyup.validate", + ":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], " + + "[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], " + + "[type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], " + + "[type='radio'], [type='checkbox'], [contenteditable]", delegate ) + + // Support: Chrome, oldIE + // "select" is provided as event.target when clicking a option + .on( "click.validate", "select, option, [type='radio'], [type='checkbox']", delegate ); + + if ( this.settings.invalidHandler ) { + $( this.currentForm ).on( "invalid-form.validate", this.settings.invalidHandler ); + } + + // Add aria-required to any Static/Data/Class required fields before first validation + // Screen readers require this attribute to be present before the initial submission http://www.w3.org/TR/WCAG-TECHS/ARIA2.html + $( this.currentForm ).find( "[required], [data-rule-required], .required" ).attr( "aria-required", "true" ); + }, + + // http://jqueryvalidation.org/Validator.form/ + form: function() { + this.checkForm(); + $.extend( this.submitted, this.errorMap ); + this.invalid = $.extend( {}, this.errorMap ); + if ( !this.valid() ) { + $( this.currentForm ).triggerHandler( "invalid-form", [ this ] ); + } + this.showErrors(); + return this.valid(); + }, + + checkForm: function() { + this.prepareForm(); + for ( var i = 0, elements = ( this.currentElements = this.elements() ); elements[ i ]; i++ ) { + this.check( elements[ i ] ); + } + return this.valid(); + }, + + // http://jqueryvalidation.org/Validator.element/ + element: function( element ) { + var cleanElement = this.clean( element ), + checkElement = this.validationTargetFor( cleanElement ), + v = this, + result = true, + rs, group; + + if ( checkElement === undefined ) { + delete this.invalid[ cleanElement.name ]; + } else { + this.prepareElement( checkElement ); + this.currentElements = $( checkElement ); + + // If this element is grouped, then validate all group elements already + // containing a value + group = this.groups[ checkElement.name ]; + if ( group ) { + $.each( this.groups, function( name, testgroup ) { + if ( testgroup === group && name !== checkElement.name ) { + cleanElement = v.validationTargetFor( v.clean( v.findByName( name ) ) ); + if ( cleanElement && cleanElement.name in v.invalid ) { + v.currentElements.push( cleanElement ); + result = v.check( cleanElement ) && result; + } + } + } ); + } + + rs = this.check( checkElement ) !== false; + result = result && rs; + if ( rs ) { + this.invalid[ checkElement.name ] = false; + } else { + this.invalid[ checkElement.name ] = true; + } + + if ( !this.numberOfInvalids() ) { + + // Hide error containers on last error + this.toHide = this.toHide.add( this.containers ); + } + this.showErrors(); + + // Add aria-invalid status for screen readers + $( element ).attr( "aria-invalid", !rs ); + } + + return result; + }, + + // http://jqueryvalidation.org/Validator.showErrors/ + showErrors: function( errors ) { + if ( errors ) { + var validator = this; + + // Add items to error list and map + $.extend( this.errorMap, errors ); + this.errorList = $.map( this.errorMap, function( message, name ) { + return { + message: message, + element: validator.findByName( name )[ 0 ] + }; + } ); + + // Remove items from success list + this.successList = $.grep( this.successList, function( element ) { + return !( element.name in errors ); + } ); + } + if ( this.settings.showErrors ) { + this.settings.showErrors.call( this, this.errorMap, this.errorList ); + } else { + this.defaultShowErrors(); + } + }, + + // http://jqueryvalidation.org/Validator.resetForm/ + resetForm: function() { + if ( $.fn.resetForm ) { + $( this.currentForm ).resetForm(); + } + this.invalid = {}; + this.submitted = {}; + this.prepareForm(); + this.hideErrors(); + var elements = this.elements() + .removeData( "previousValue" ) + .removeAttr( "aria-invalid" ); + + this.resetElements( elements ); + }, + + resetElements: function( elements ) { + var i; + + if ( this.settings.unhighlight ) { + for ( i = 0; elements[ i ]; i++ ) { + this.settings.unhighlight.call( this, elements[ i ], + this.settings.errorClass, "" ); + this.findByName( elements[ i ].name ).removeClass( this.settings.validClass ); + } + } else { + elements + .removeClass( this.settings.errorClass ) + .removeClass( this.settings.validClass ); + } + }, + + numberOfInvalids: function() { + return this.objectLength( this.invalid ); + }, + + objectLength: function( obj ) { + /* jshint unused: false */ + var count = 0, + i; + for ( i in obj ) { + if ( obj[ i ] ) { + count++; + } + } + return count; + }, + + hideErrors: function() { + this.hideThese( this.toHide ); + }, + + hideThese: function( errors ) { + errors.not( this.containers ).text( "" ); + this.addWrapper( errors ).hide(); + }, + + valid: function() { + return this.size() === 0; + }, + + size: function() { + return this.errorList.length; + }, + + focusInvalid: function() { + if ( this.settings.focusInvalid ) { + try { + $( this.findLastActive() || this.errorList.length && this.errorList[ 0 ].element || [] ) + .filter( ":visible" ) + .focus() + + // Manually trigger focusin event; without it, focusin handler isn't called, findLastActive won't have anything to find + .trigger( "focusin" ); + } catch ( e ) { + + // Ignore IE throwing errors when focusing hidden elements + } + } + }, + + findLastActive: function() { + var lastActive = this.lastActive; + return lastActive && $.grep( this.errorList, function( n ) { + return n.element.name === lastActive.name; + } ).length === 1 && lastActive; + }, + + elements: function() { + var validator = this, + rulesCache = {}; + + // Select all valid inputs inside the form (no submit or reset buttons) + return $( this.currentForm ) + .find( "input, select, textarea, [contenteditable]" ) + .not( ":submit, :reset, :image, :disabled" ) + .not( this.settings.ignore ) + .filter( function() { + var name = this.name || $( this ).attr( "name" ); // For contenteditable + if ( !name && validator.settings.debug && window.console ) { + console.error( "%o has no name assigned", this ); + } + + // Set form expando on contenteditable + if ( this.hasAttribute( "contenteditable" ) ) { + this.form = $( this ).closest( "form" )[ 0 ]; + } + + // Select only the first element for each name, and only those with rules specified + if ( name in rulesCache || !validator.objectLength( $( this ).rules() ) ) { + return false; + } + + rulesCache[ name ] = true; + return true; + } ); + }, + + clean: function( selector ) { + return $( selector )[ 0 ]; + }, + + errors: function() { + var errorClass = this.settings.errorClass.split( " " ).join( "." ); + return $( this.settings.errorElement + "." + errorClass, this.errorContext ); + }, + + resetInternals: function() { + this.successList = []; + this.errorList = []; + this.errorMap = {}; + this.toShow = $( [] ); + this.toHide = $( [] ); + }, + + reset: function() { + this.resetInternals(); + this.currentElements = $( [] ); + }, + + prepareForm: function() { + this.reset(); + this.toHide = this.errors().add( this.containers ); + }, + + prepareElement: function( element ) { + this.reset(); + this.toHide = this.errorsFor( element ); + }, + + elementValue: function( element ) { + var $element = $( element ), + type = element.type, + val, idx; + + if ( type === "radio" || type === "checkbox" ) { + return this.findByName( element.name ).filter( ":checked" ).val(); + } else if ( type === "number" && typeof element.validity !== "undefined" ) { + return element.validity.badInput ? "NaN" : $element.val(); + } + + if ( element.hasAttribute( "contenteditable" ) ) { + val = $element.text(); + } else { + val = $element.val(); + } + + if ( type === "file" ) { + + // Modern browser (chrome & safari) + if ( val.substr( 0, 12 ) === "C:\\fakepath\\" ) { + return val.substr( 12 ); + } + + // Legacy browsers + // Unix-based path + idx = val.lastIndexOf( "/" ); + if ( idx >= 0 ) { + return val.substr( idx + 1 ); + } + + // Windows-based path + idx = val.lastIndexOf( "\\" ); + if ( idx >= 0 ) { + return val.substr( idx + 1 ); + } + + // Just the file name + return val; + } + + if ( typeof val === "string" ) { + return val.replace( /\r/g, "" ); + } + return val; + }, + + check: function( element ) { + element = this.validationTargetFor( this.clean( element ) ); + + var rules = $( element ).rules(), + rulesCount = $.map( rules, function( n, i ) { + return i; + } ).length, + dependencyMismatch = false, + val = this.elementValue( element ), + result, method, rule; + + // If a normalizer is defined for this element, then + // call it to retreive the changed value instead + // of using the real one. + // Note that `this` in the normalizer is `element`. + if ( typeof rules.normalizer === "function" ) { + val = rules.normalizer.call( element, val ); + + if ( typeof val !== "string" ) { + throw new TypeError( "The normalizer should return a string value." ); + } + + // Delete the normalizer from rules to avoid treating + // it as a pre-defined method. + delete rules.normalizer; + } + + for ( method in rules ) { + rule = { method: method, parameters: rules[ method ] }; + try { + result = $.validator.methods[ method ].call( this, val, element, rule.parameters ); + + // If a method indicates that the field is optional and therefore valid, + // don't mark it as valid when there are no other rules + if ( result === "dependency-mismatch" && rulesCount === 1 ) { + dependencyMismatch = true; + continue; + } + dependencyMismatch = false; + + if ( result === "pending" ) { + this.toHide = this.toHide.not( this.errorsFor( element ) ); + return; + } + + if ( !result ) { + this.formatAndAdd( element, rule ); + return false; + } + } catch ( e ) { + if ( this.settings.debug && window.console ) { + console.log( "Exception occurred when checking element " + element.id + ", check the '" + rule.method + "' method.", e ); + } + if ( e instanceof TypeError ) { + e.message += ". Exception occurred when checking element " + element.id + ", check the '" + rule.method + "' method."; + } + + throw e; + } + } + if ( dependencyMismatch ) { + return; + } + if ( this.objectLength( rules ) ) { + this.successList.push( element ); + } + return true; + }, + + // Return the custom message for the given element and validation method + // specified in the element's HTML5 data attribute + // return the generic message if present and no method specific message is present + customDataMessage: function( element, method ) { + return $( element ).data( "msg" + method.charAt( 0 ).toUpperCase() + + method.substring( 1 ).toLowerCase() ) || $( element ).data( "msg" ); + }, + + // Return the custom message for the given element name and validation method + customMessage: function( name, method ) { + var m = this.settings.messages[ name ]; + return m && ( m.constructor === String ? m : m[ method ] ); + }, + + // Return the first defined argument, allowing empty strings + findDefined: function() { + for ( var i = 0; i < arguments.length; i++ ) { + if ( arguments[ i ] !== undefined ) { + return arguments[ i ]; + } + } + return undefined; + }, + + // The second parameter 'rule' used to be a string, and extended to an object literal + // of the following form: + // rule = { + // method: "method name", + // parameters: "the given method parameters" + // } + // + // The old behavior still supported, kept to maintain backward compatibility with + // old code, and will be removed in the next major release. + defaultMessage: function( element, rule ) { + if ( typeof rule === "string" ) { + rule = { method: rule }; + } + + var message = this.findDefined( + this.customMessage( element.name, rule.method ), + this.customDataMessage( element, rule.method ), + + // 'title' is never undefined, so handle empty string as undefined + !this.settings.ignoreTitle && element.title || undefined, + $.validator.messages[ rule.method ], + "<strong>Warning: No message defined for " + element.name + "</strong>" + ), + theregex = /\$?\{(\d+)\}/g; + if ( typeof message === "function" ) { + message = message.call( this, rule.parameters, element ); + } else if ( theregex.test( message ) ) { + message = $.validator.format( message.replace( theregex, "{$1}" ), rule.parameters ); + } + + return message; + }, + + formatAndAdd: function( element, rule ) { + var message = this.defaultMessage( element, rule ); + + this.errorList.push( { + message: message, + element: element, + method: rule.method + } ); + + this.errorMap[ element.name ] = message; + this.submitted[ element.name ] = message; + }, + + addWrapper: function( toToggle ) { + if ( this.settings.wrapper ) { + toToggle = toToggle.add( toToggle.parent( this.settings.wrapper ) ); + } + return toToggle; + }, + + defaultShowErrors: function() { + var i, elements, error; + for ( i = 0; this.errorList[ i ]; i++ ) { + error = this.errorList[ i ]; + if ( this.settings.highlight ) { + this.settings.highlight.call( this, error.element, this.settings.errorClass, this.settings.validClass ); + } + this.showLabel( error.element, error.message ); + } + if ( this.errorList.length ) { + this.toShow = this.toShow.add( this.containers ); + } + if ( this.settings.success ) { + for ( i = 0; this.successList[ i ]; i++ ) { + this.showLabel( this.successList[ i ] ); + } + } + if ( this.settings.unhighlight ) { + for ( i = 0, elements = this.validElements(); elements[ i ]; i++ ) { + this.settings.unhighlight.call( this, elements[ i ], this.settings.errorClass, this.settings.validClass ); + } + } + this.toHide = this.toHide.not( this.toShow ); + this.hideErrors(); + this.addWrapper( this.toShow ).show(); + }, + + validElements: function() { + return this.currentElements.not( this.invalidElements() ); + }, + + invalidElements: function() { + return $( this.errorList ).map( function() { + return this.element; + } ); + }, + + showLabel: function( element, message ) { + var place, group, errorID, v, + error = this.errorsFor( element ), + elementID = this.idOrName( element ), + describedBy = $( element ).attr( "aria-describedby" ); + + if ( error.length ) { + + // Refresh error/success class + error.removeClass( this.settings.validClass ).addClass( this.settings.errorClass ); + + // Replace message on existing label + error.html( message ); + } else { + + // Create error element + error = $( "<" + this.settings.errorElement + ">" ) + .attr( "id", elementID + "-error" ) + .addClass( this.settings.errorClass ) + .html( message || "" ); + + // Maintain reference to the element to be placed into the DOM + place = error; + if ( this.settings.wrapper ) { + + // Make sure the element is visible, even in IE + // actually showing the wrapped element is handled elsewhere + place = error.hide().show().wrap( "<" + this.settings.wrapper + "/>" ).parent(); + } + if ( this.labelContainer.length ) { + this.labelContainer.append( place ); + } else if ( this.settings.errorPlacement ) { + this.settings.errorPlacement.call( this, place, $( element ) ); + } else { + place.insertAfter( element ); + } + + // Link error back to the element + if ( error.is( "label" ) ) { + + // If the error is a label, then associate using 'for' + error.attr( "for", elementID ); + + // If the element is not a child of an associated label, then it's necessary + // to explicitly apply aria-describedby + } else if ( error.parents( "label[for='" + this.escapeCssMeta( elementID ) + "']" ).length === 0 ) { + errorID = error.attr( "id" ); + + // Respect existing non-error aria-describedby + if ( !describedBy ) { + describedBy = errorID; + } else if ( !describedBy.match( new RegExp( "\\b" + this.escapeCssMeta( errorID ) + "\\b" ) ) ) { + + // Add to end of list if not already present + describedBy += " " + errorID; + } + $( element ).attr( "aria-describedby", describedBy ); + + // If this element is grouped, then assign to all elements in the same group + group = this.groups[ element.name ]; + if ( group ) { + v = this; + $.each( v.groups, function( name, testgroup ) { + if ( testgroup === group ) { + $( "[name='" + v.escapeCssMeta( name ) + "']", v.currentForm ) + .attr( "aria-describedby", error.attr( "id" ) ); + } + } ); + } + } + } + if ( !message && this.settings.success ) { + error.text( "" ); + if ( typeof this.settings.success === "string" ) { + error.addClass( this.settings.success ); + } else { + this.settings.success( error, element ); + } + } + this.toShow = this.toShow.add( error ); + }, + + errorsFor: function( element ) { + var name = this.escapeCssMeta( this.idOrName( element ) ), + describer = $( element ).attr( "aria-describedby" ), + selector = "label[for='" + name + "'], label[for='" + name + "'] *"; + + // 'aria-describedby' should directly reference the error element + if ( describer ) { + selector = selector + ", #" + this.escapeCssMeta( describer ) + .replace( /\s+/g, ", #" ); + } + + return this + .errors() + .filter( selector ); + }, + + // See https://api.jquery.com/category/selectors/, for CSS + // meta-characters that should be escaped in order to be used with JQuery + // as a literal part of a name/id or any selector. + escapeCssMeta: function( string ) { + return string.replace( /([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g, "\\$1" ); + }, + + idOrName: function( element ) { + return this.groups[ element.name ] || ( this.checkable( element ) ? element.name : element.id || element.name ); + }, + + validationTargetFor: function( element ) { + + // If radio/checkbox, validate first element in group instead + if ( this.checkable( element ) ) { + element = this.findByName( element.name ); + } + + // Always apply ignore filter + return $( element ).not( this.settings.ignore )[ 0 ]; + }, + + checkable: function( element ) { + return ( /radio|checkbox/i ).test( element.type ); + }, + + findByName: function( name ) { + return $( this.currentForm ).find( "[name='" + this.escapeCssMeta( name ) + "']" ); + }, + + getLength: function( value, element ) { + switch ( element.nodeName.toLowerCase() ) { + case "select": + return $( "option:selected", element ).length; + case "input": + if ( this.checkable( element ) ) { + return this.findByName( element.name ).filter( ":checked" ).length; + } + } + return value.length; + }, + + depend: function( param, element ) { + return this.dependTypes[ typeof param ] ? this.dependTypes[ typeof param ]( param, element ) : true; + }, + + dependTypes: { + "boolean": function( param ) { + return param; + }, + "string": function( param, element ) { + return !!$( param, element.form ).length; + }, + "function": function( param, element ) { + return param( element ); + } + }, + + optional: function( element ) { + var val = this.elementValue( element ); + return !$.validator.methods.required.call( this, val, element ) && "dependency-mismatch"; + }, + + startRequest: function( element ) { + if ( !this.pending[ element.name ] ) { + this.pendingRequest++; + $( element ).addClass( this.settings.pendingClass ); + this.pending[ element.name ] = true; + } + }, + + stopRequest: function( element, valid ) { + this.pendingRequest--; + + // Sometimes synchronization fails, make sure pendingRequest is never < 0 + if ( this.pendingRequest < 0 ) { + this.pendingRequest = 0; + } + delete this.pending[ element.name ]; + $( element ).removeClass( this.settings.pendingClass ); + if ( valid && this.pendingRequest === 0 && this.formSubmitted && this.form() ) { + $( this.currentForm ).submit(); + this.formSubmitted = false; + } else if ( !valid && this.pendingRequest === 0 && this.formSubmitted ) { + $( this.currentForm ).triggerHandler( "invalid-form", [ this ] ); + this.formSubmitted = false; + } + }, + + previousValue: function( element, method ) { + method = typeof method === "string" && method || "remote"; + + return $.data( element, "previousValue" ) || $.data( element, "previousValue", { + old: null, + valid: true, + message: this.defaultMessage( element, { method: method } ) + } ); + }, + + // Cleans up all forms and elements, removes validator-specific events + destroy: function() { + this.resetForm(); + + $( this.currentForm ) + .off( ".validate" ) + .removeData( "validator" ) + .find( ".validate-equalTo-blur" ) + .off( ".validate-equalTo" ) + .removeClass( "validate-equalTo-blur" ); + } + + }, + + classRuleSettings: { + required: { required: true }, + email: { email: true }, + url: { url: true }, + date: { date: true }, + dateISO: { dateISO: true }, + number: { number: true }, + digits: { digits: true }, + creditcard: { creditcard: true } + }, + + addClassRules: function( className, rules ) { + if ( className.constructor === String ) { + this.classRuleSettings[ className ] = rules; + } else { + $.extend( this.classRuleSettings, className ); + } + }, + + classRules: function( element ) { + var rules = {}, + classes = $( element ).attr( "class" ); + + if ( classes ) { + $.each( classes.split( " " ), function() { + if ( this in $.validator.classRuleSettings ) { + $.extend( rules, $.validator.classRuleSettings[ this ] ); + } + } ); + } + return rules; + }, + + normalizeAttributeRule: function( rules, type, method, value ) { + + // Convert the value to a number for number inputs, and for text for backwards compability + // allows type="date" and others to be compared as strings + if ( /min|max|step/.test( method ) && ( type === null || /number|range|text/.test( type ) ) ) { + value = Number( value ); + + // Support Opera Mini, which returns NaN for undefined minlength + if ( isNaN( value ) ) { + value = undefined; + } + } + + if ( value || value === 0 ) { + rules[ method ] = value; + } else if ( type === method && type !== "range" ) { + + // Exception: the jquery validate 'range' method + // does not test for the html5 'range' type + rules[ method ] = true; + } + }, + + attributeRules: function( element ) { + var rules = {}, + $element = $( element ), + type = element.getAttribute( "type" ), + method, value; + + for ( method in $.validator.methods ) { + + // Support for <input required> in both html5 and older browsers + if ( method === "required" ) { + value = element.getAttribute( method ); + + // Some browsers return an empty string for the required attribute + // and non-HTML5 browsers might have required="" markup + if ( value === "" ) { + value = true; + } + + // Force non-HTML5 browsers to return bool + value = !!value; + } else { + value = $element.attr( method ); + } + + this.normalizeAttributeRule( rules, type, method, value ); + } + + // 'maxlength' may be returned as -1, 2147483647 ( IE ) and 524288 ( safari ) for text inputs + if ( rules.maxlength && /-1|2147483647|524288/.test( rules.maxlength ) ) { + delete rules.maxlength; + } + + return rules; + }, + + dataRules: function( element ) { + var rules = {}, + $element = $( element ), + type = element.getAttribute( "type" ), + method, value; + + for ( method in $.validator.methods ) { + value = $element.data( "rule" + method.charAt( 0 ).toUpperCase() + method.substring( 1 ).toLowerCase() ); + this.normalizeAttributeRule( rules, type, method, value ); + } + return rules; + }, + + staticRules: function( element ) { + var rules = {}, + validator = $.data( element.form, "validator" ); + + if ( validator.settings.rules ) { + rules = $.validator.normalizeRule( validator.settings.rules[ element.name ] ) || {}; + } + return rules; + }, + + normalizeRules: function( rules, element ) { + + // Handle dependency check + $.each( rules, function( prop, val ) { + + // Ignore rule when param is explicitly false, eg. required:false + if ( val === false ) { + delete rules[ prop ]; + return; + } + if ( val.param || val.depends ) { + var keepRule = true; + switch ( typeof val.depends ) { + case "string": + keepRule = !!$( val.depends, element.form ).length; + break; + case "function": + keepRule = val.depends.call( element, element ); + break; + } + if ( keepRule ) { + rules[ prop ] = val.param !== undefined ? val.param : true; + } else { + $.data( element.form, "validator" ).resetElements( $( element ) ); + delete rules[ prop ]; + } + } + } ); + + // Evaluate parameters + $.each( rules, function( rule, parameter ) { + rules[ rule ] = $.isFunction( parameter ) && rule !== "normalizer" ? parameter( element ) : parameter; + } ); + + // Clean number parameters + $.each( [ "minlength", "maxlength" ], function() { + if ( rules[ this ] ) { + rules[ this ] = Number( rules[ this ] ); + } + } ); + $.each( [ "rangelength", "range" ], function() { + var parts; + if ( rules[ this ] ) { + if ( $.isArray( rules[ this ] ) ) { + rules[ this ] = [ Number( rules[ this ][ 0 ] ), Number( rules[ this ][ 1 ] ) ]; + } else if ( typeof rules[ this ] === "string" ) { + parts = rules[ this ].replace( /[\[\]]/g, "" ).split( /[\s,]+/ ); + rules[ this ] = [ Number( parts[ 0 ] ), Number( parts[ 1 ] ) ]; + } + } + } ); + + if ( $.validator.autoCreateRanges ) { + + // Auto-create ranges + if ( rules.min != null && rules.max != null ) { + rules.range = [ rules.min, rules.max ]; + delete rules.min; + delete rules.max; + } + if ( rules.minlength != null && rules.maxlength != null ) { + rules.rangelength = [ rules.minlength, rules.maxlength ]; + delete rules.minlength; + delete rules.maxlength; + } + } + + return rules; + }, + + // Converts a simple string to a {string: true} rule, e.g., "required" to {required:true} + normalizeRule: function( data ) { + if ( typeof data === "string" ) { + var transformed = {}; + $.each( data.split( /\s/ ), function() { + transformed[ this ] = true; + } ); + data = transformed; + } + return data; + }, + + // http://jqueryvalidation.org/jQuery.validator.addMethod/ + addMethod: function( name, method, message ) { + $.validator.methods[ name ] = method; + $.validator.messages[ name ] = message !== undefined ? message : $.validator.messages[ name ]; + if ( method.length < 3 ) { + $.validator.addClassRules( name, $.validator.normalizeRule( name ) ); + } + }, + + // http://jqueryvalidation.org/jQuery.validator.methods/ + methods: { + + // http://jqueryvalidation.org/required-method/ + required: function( value, element, param ) { + + // Check if dependency is met + if ( !this.depend( param, element ) ) { + return "dependency-mismatch"; + } + if ( element.nodeName.toLowerCase() === "select" ) { + + // Could be an array for select-multiple or a string, both are fine this way + var val = $( element ).val(); + return val && val.length > 0; + } + if ( this.checkable( element ) ) { + return this.getLength( value, element ) > 0; + } + return value.length > 0; + }, + + // http://jqueryvalidation.org/email-method/ + email: function( value, element ) { + + // From https://html.spec.whatwg.org/multipage/forms.html#valid-e-mail-address + // Retrieved 2014-01-14 + // If you have a problem with this implementation, report a bug against the above spec + // Or use custom methods to implement your own email validation + return this.optional( element ) || /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test( value ); + }, + + // http://jqueryvalidation.org/url-method/ + url: function( value, element ) { + + // Copyright (c) 2010-2013 Diego Perini, MIT licensed + // https://gist.github.com/dperini/729294 + // see also https://mathiasbynens.be/demo/url-regex + // modified to allow protocol-relative URLs + return this.optional( element ) || /^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test( value ); + }, + + // http://jqueryvalidation.org/date-method/ + date: function( value, element ) { + return this.optional( element ) || !/Invalid|NaN/.test( new Date( value ).toString() ); + }, + + // http://jqueryvalidation.org/dateISO-method/ + dateISO: function( value, element ) { + return this.optional( element ) || /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test( value ); + }, + + // http://jqueryvalidation.org/number-method/ + number: function( value, element ) { + return this.optional( element ) || /^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test( value ); + }, + + // http://jqueryvalidation.org/digits-method/ + digits: function( value, element ) { + return this.optional( element ) || /^\d+$/.test( value ); + }, + + // http://jqueryvalidation.org/minlength-method/ + minlength: function( value, element, param ) { + var length = $.isArray( value ) ? value.length : this.getLength( value, element ); + return this.optional( element ) || length >= param; + }, + + // http://jqueryvalidation.org/maxlength-method/ + maxlength: function( value, element, param ) { + var length = $.isArray( value ) ? value.length : this.getLength( value, element ); + return this.optional( element ) || length <= param; + }, + + // http://jqueryvalidation.org/rangelength-method/ + rangelength: function( value, element, param ) { + var length = $.isArray( value ) ? value.length : this.getLength( value, element ); + return this.optional( element ) || ( length >= param[ 0 ] && length <= param[ 1 ] ); + }, + + // http://jqueryvalidation.org/min-method/ + min: function( value, element, param ) { + return this.optional( element ) || value >= param; + }, + + // http://jqueryvalidation.org/max-method/ + max: function( value, element, param ) { + return this.optional( element ) || value <= param; + }, + + // http://jqueryvalidation.org/range-method/ + range: function( value, element, param ) { + return this.optional( element ) || ( value >= param[ 0 ] && value <= param[ 1 ] ); + }, + + // http://jqueryvalidation.org/step-method/ + step: function( value, element, param ) { + var type = $( element ).attr( "type" ), + errorMessage = "Step attribute on input type " + type + " is not supported.", + supportedTypes = [ "text", "number", "range" ], + re = new RegExp( "\\b" + type + "\\b" ), + notSupported = type && !re.test( supportedTypes.join() ), + decimalPlaces = function( num ) { + var match = ( "" + num ).match( /(?:\.(\d+))?$/ ); + if ( !match ) { + return 0; + } + + // Number of digits right of decimal point. + return match[ 1 ] ? match[ 1 ].length : 0; + }, + toInt = function( num ) { + return Math.round( num * Math.pow( 10, decimals ) ); + }, + valid = true, + decimals; + + // Works only for text, number and range input types + // TODO find a way to support input types date, datetime, datetime-local, month, time and week + if ( notSupported ) { + throw new Error( errorMessage ); + } + + decimals = decimalPlaces( param ); + + // Value can't have too many decimals + if ( decimalPlaces( value ) > decimals || toInt( value ) % toInt( param ) !== 0 ) { + valid = false; + } + + return this.optional( element ) || valid; + }, + + // http://jqueryvalidation.org/equalTo-method/ + equalTo: function( value, element, param ) { + + // Bind to the blur event of the target in order to revalidate whenever the target field is updated + var target = $( param ); + if ( this.settings.onfocusout && target.not( ".validate-equalTo-blur" ).length ) { + target.addClass( "validate-equalTo-blur" ).on( "blur.validate-equalTo", function() { + $( element ).valid(); + } ); + } + return value === target.val(); + }, + + // http://jqueryvalidation.org/remote-method/ + remote: function( value, element, param, method ) { + if ( this.optional( element ) ) { + return "dependency-mismatch"; + } + + method = typeof method === "string" && method || "remote"; + + var previous = this.previousValue( element, method ), + validator, data, optionDataString; + + if ( !this.settings.messages[ element.name ] ) { + this.settings.messages[ element.name ] = {}; + } + previous.originalMessage = previous.originalMessage || this.settings.messages[ element.name ][ method ]; + this.settings.messages[ element.name ][ method ] = previous.message; + + param = typeof param === "string" && { url: param } || param; + optionDataString = $.param( $.extend( { data: value }, param.data ) ); + if ( previous.old === optionDataString ) { + return previous.valid; + } + + previous.old = optionDataString; + validator = this; + this.startRequest( element ); + data = {}; + data[ element.name ] = value; + $.ajax( $.extend( true, { + mode: "abort", + port: "validate" + element.name, + dataType: "json", + data: data, + context: validator.currentForm, + success: function( response ) { + var valid = response === true || response === "true", + errors, message, submitted; + + validator.settings.messages[ element.name ][ method ] = previous.originalMessage; + if ( valid ) { + submitted = validator.formSubmitted; + validator.resetInternals(); + validator.toHide = validator.errorsFor( element ); + validator.formSubmitted = submitted; + validator.successList.push( element ); + validator.invalid[ element.name ] = false; + validator.showErrors(); + } else { + errors = {}; + message = response || validator.defaultMessage( element, { method: method, parameters: value } ); + errors[ element.name ] = previous.message = message; + validator.invalid[ element.name ] = true; + validator.showErrors( errors ); + } + previous.valid = valid; + validator.stopRequest( element, valid ); + } + }, param ) ); + return "pending"; + } + } + +} ); + +// Ajax mode: abort +// usage: $.ajax({ mode: "abort"[, port: "uniqueport"]}); +// if mode:"abort" is used, the previous request on that port (port can be undefined) is aborted via XMLHttpRequest.abort() + +var pendingRequests = {}, + ajax; + +// Use a prefilter if available (1.5+) +if ( $.ajaxPrefilter ) { + $.ajaxPrefilter( function( settings, _, xhr ) { + var port = settings.port; + if ( settings.mode === "abort" ) { + if ( pendingRequests[ port ] ) { + pendingRequests[ port ].abort(); + } + pendingRequests[ port ] = xhr; + } + } ); +} else { + + // Proxy ajax + ajax = $.ajax; + $.ajax = function( settings ) { + var mode = ( "mode" in settings ? settings : $.ajaxSettings ).mode, + port = ( "port" in settings ? settings : $.ajaxSettings ).port; + if ( mode === "abort" ) { + if ( pendingRequests[ port ] ) { + pendingRequests[ port ].abort(); + } + pendingRequests[ port ] = ajax.apply( this, arguments ); + return pendingRequests[ port ]; + } + return ajax.apply( this, arguments ); + }; +} + +})); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/jquery.validate.min.js b/Mobile.WYSIWYG/Scripts/jquery.validate.min.js new file mode 100644 index 0000000..9da901f --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/jquery.validate.min.js @@ -0,0 +1,4 @@ +/*! jQuery Validation Plugin - v1.15.1 - 7/22/2016 + * http://jqueryvalidation.org/ + * Copyright (c) 2016 Jörn Zaefferer; Licensed MIT */ +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){a.extend(a.fn,{validate:function(b){if(!this.length)return void(b&&b.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."));var c=a.data(this[0],"validator");return c?c:(this.attr("novalidate","novalidate"),c=new a.validator(b,this[0]),a.data(this[0],"validator",c),c.settings.onsubmit&&(this.on("click.validate",":submit",function(b){c.settings.submitHandler&&(c.submitButton=b.target),a(this).hasClass("cancel")&&(c.cancelSubmit=!0),void 0!==a(this).attr("formnovalidate")&&(c.cancelSubmit=!0)}),this.on("submit.validate",function(b){function d(){var d,e;return!c.settings.submitHandler||(c.submitButton&&(d=a("<input type='hidden'/>").attr("name",c.submitButton.name).val(a(c.submitButton).val()).appendTo(c.currentForm)),e=c.settings.submitHandler.call(c,c.currentForm,b),c.submitButton&&d.remove(),void 0!==e&&e)}return c.settings.debug&&b.preventDefault(),c.cancelSubmit?(c.cancelSubmit=!1,d()):c.form()?c.pendingRequest?(c.formSubmitted=!0,!1):d():(c.focusInvalid(),!1)})),c)},valid:function(){var b,c,d;return a(this[0]).is("form")?b=this.validate().form():(d=[],b=!0,c=a(this[0].form).validate(),this.each(function(){b=c.element(this)&&b,b||(d=d.concat(c.errorList))}),c.errorList=d),b},rules:function(b,c){var d,e,f,g,h,i,j=this[0];if(null!=j&&null!=j.form){if(b)switch(d=a.data(j.form,"validator").settings,e=d.rules,f=a.validator.staticRules(j),b){case"add":a.extend(f,a.validator.normalizeRule(c)),delete f.messages,e[j.name]=f,c.messages&&(d.messages[j.name]=a.extend(d.messages[j.name],c.messages));break;case"remove":return c?(i={},a.each(c.split(/\s/),function(b,c){i[c]=f[c],delete f[c],"required"===c&&a(j).removeAttr("aria-required")}),i):(delete e[j.name],f)}return g=a.validator.normalizeRules(a.extend({},a.validator.classRules(j),a.validator.attributeRules(j),a.validator.dataRules(j),a.validator.staticRules(j)),j),g.required&&(h=g.required,delete g.required,g=a.extend({required:h},g),a(j).attr("aria-required","true")),g.remote&&(h=g.remote,delete g.remote,g=a.extend(g,{remote:h})),g}}}),a.extend(a.expr[":"],{blank:function(b){return!a.trim(""+a(b).val())},filled:function(b){var c=a(b).val();return null!==c&&!!a.trim(""+c)},unchecked:function(b){return!a(b).prop("checked")}}),a.validator=function(b,c){this.settings=a.extend(!0,{},a.validator.defaults,b),this.currentForm=c,this.init()},a.validator.format=function(b,c){return 1===arguments.length?function(){var c=a.makeArray(arguments);return c.unshift(b),a.validator.format.apply(this,c)}:void 0===c?b:(arguments.length>2&&c.constructor!==Array&&(c=a.makeArray(arguments).slice(1)),c.constructor!==Array&&(c=[c]),a.each(c,function(a,c){b=b.replace(new RegExp("\\{"+a+"\\}","g"),function(){return c})}),b)},a.extend(a.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(a){this.lastActive=a,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,a,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(a)))},onfocusout:function(a){this.checkable(a)||!(a.name in this.submitted)&&this.optional(a)||this.element(a)},onkeyup:function(b,c){var d=[16,17,18,20,35,36,37,38,39,40,45,144,225];9===c.which&&""===this.elementValue(b)||a.inArray(c.keyCode,d)!==-1||(b.name in this.submitted||b.name in this.invalid)&&this.element(b)},onclick:function(a){a.name in this.submitted?this.element(a):a.parentNode.name in this.submitted&&this.element(a.parentNode)},highlight:function(b,c,d){"radio"===b.type?this.findByName(b.name).addClass(c).removeClass(d):a(b).addClass(c).removeClass(d)},unhighlight:function(b,c,d){"radio"===b.type?this.findByName(b.name).removeClass(c).addClass(d):a(b).removeClass(c).addClass(d)}},setDefaults:function(b){a.extend(a.validator.defaults,b)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:a.validator.format("Please enter no more than {0} characters."),minlength:a.validator.format("Please enter at least {0} characters."),rangelength:a.validator.format("Please enter a value between {0} and {1} characters long."),range:a.validator.format("Please enter a value between {0} and {1}."),max:a.validator.format("Please enter a value less than or equal to {0}."),min:a.validator.format("Please enter a value greater than or equal to {0}."),step:a.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){function b(b){!this.form&&this.hasAttribute("contenteditable")&&(this.form=a(this).closest("form")[0]);var c=a.data(this.form,"validator"),d="on"+b.type.replace(/^validate/,""),e=c.settings;e[d]&&!a(this).is(e.ignore)&&e[d].call(c,this,b)}this.labelContainer=a(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||a(this.currentForm),this.containers=a(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var c,d=this.groups={};a.each(this.settings.groups,function(b,c){"string"==typeof c&&(c=c.split(/\s/)),a.each(c,function(a,c){d[c]=b})}),c=this.settings.rules,a.each(c,function(b,d){c[b]=a.validator.normalizeRule(d)}),a(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable]",b).on("click.validate","select, option, [type='radio'], [type='checkbox']",b),this.settings.invalidHandler&&a(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler),a(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),a.extend(this.submitted,this.errorMap),this.invalid=a.extend({},this.errorMap),this.valid()||a(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var a=0,b=this.currentElements=this.elements();b[a];a++)this.check(b[a]);return this.valid()},element:function(b){var c,d,e=this.clean(b),f=this.validationTargetFor(e),g=this,h=!0;return void 0===f?delete this.invalid[e.name]:(this.prepareElement(f),this.currentElements=a(f),d=this.groups[f.name],d&&a.each(this.groups,function(a,b){b===d&&a!==f.name&&(e=g.validationTargetFor(g.clean(g.findByName(a))),e&&e.name in g.invalid&&(g.currentElements.push(e),h=g.check(e)&&h))}),c=this.check(f)!==!1,h=h&&c,c?this.invalid[f.name]=!1:this.invalid[f.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),a(b).attr("aria-invalid",!c)),h},showErrors:function(b){if(b){var c=this;a.extend(this.errorMap,b),this.errorList=a.map(this.errorMap,function(a,b){return{message:a,element:c.findByName(b)[0]}}),this.successList=a.grep(this.successList,function(a){return!(a.name in b)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){a.fn.resetForm&&a(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var b=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(b)},resetElements:function(a){var b;if(this.settings.unhighlight)for(b=0;a[b];b++)this.settings.unhighlight.call(this,a[b],this.settings.errorClass,""),this.findByName(a[b].name).removeClass(this.settings.validClass);else a.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(a){var b,c=0;for(b in a)a[b]&&c++;return c},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(a){a.not(this.containers).text(""),this.addWrapper(a).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{a(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(a){}},findLastActive:function(){var b=this.lastActive;return b&&1===a.grep(this.errorList,function(a){return a.element.name===b.name}).length&&b},elements:function(){var b=this,c={};return a(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var d=this.name||a(this).attr("name");return!d&&b.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.hasAttribute("contenteditable")&&(this.form=a(this).closest("form")[0]),!(d in c||!b.objectLength(a(this).rules()))&&(c[d]=!0,!0)})},clean:function(b){return a(b)[0]},errors:function(){var b=this.settings.errorClass.split(" ").join(".");return a(this.settings.errorElement+"."+b,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=a([]),this.toHide=a([])},reset:function(){this.resetInternals(),this.currentElements=a([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(a){this.reset(),this.toHide=this.errorsFor(a)},elementValue:function(b){var c,d,e=a(b),f=b.type;return"radio"===f||"checkbox"===f?this.findByName(b.name).filter(":checked").val():"number"===f&&"undefined"!=typeof b.validity?b.validity.badInput?"NaN":e.val():(c=b.hasAttribute("contenteditable")?e.text():e.val(),"file"===f?"C:\\fakepath\\"===c.substr(0,12)?c.substr(12):(d=c.lastIndexOf("/"),d>=0?c.substr(d+1):(d=c.lastIndexOf("\\"),d>=0?c.substr(d+1):c)):"string"==typeof c?c.replace(/\r/g,""):c)},check:function(b){b=this.validationTargetFor(this.clean(b));var c,d,e,f=a(b).rules(),g=a.map(f,function(a,b){return b}).length,h=!1,i=this.elementValue(b);if("function"==typeof f.normalizer){if(i=f.normalizer.call(b,i),"string"!=typeof i)throw new TypeError("The normalizer should return a string value.");delete f.normalizer}for(d in f){e={method:d,parameters:f[d]};try{if(c=a.validator.methods[d].call(this,i,b,e.parameters),"dependency-mismatch"===c&&1===g){h=!0;continue}if(h=!1,"pending"===c)return void(this.toHide=this.toHide.not(this.errorsFor(b)));if(!c)return this.formatAndAdd(b,e),!1}catch(a){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+b.id+", check the '"+e.method+"' method.",a),a instanceof TypeError&&(a.message+=". Exception occurred when checking element "+b.id+", check the '"+e.method+"' method."),a}}if(!h)return this.objectLength(f)&&this.successList.push(b),!0},customDataMessage:function(b,c){return a(b).data("msg"+c.charAt(0).toUpperCase()+c.substring(1).toLowerCase())||a(b).data("msg")},customMessage:function(a,b){var c=this.settings.messages[a];return c&&(c.constructor===String?c:c[b])},findDefined:function(){for(var a=0;a<arguments.length;a++)if(void 0!==arguments[a])return arguments[a]},defaultMessage:function(b,c){"string"==typeof c&&(c={method:c});var d=this.findDefined(this.customMessage(b.name,c.method),this.customDataMessage(b,c.method),!this.settings.ignoreTitle&&b.title||void 0,a.validator.messages[c.method],"<strong>Warning: No message defined for "+b.name+"</strong>"),e=/\$?\{(\d+)\}/g;return"function"==typeof d?d=d.call(this,c.parameters,b):e.test(d)&&(d=a.validator.format(d.replace(e,"{$1}"),c.parameters)),d},formatAndAdd:function(a,b){var c=this.defaultMessage(a,b);this.errorList.push({message:c,element:a,method:b.method}),this.errorMap[a.name]=c,this.submitted[a.name]=c},addWrapper:function(a){return this.settings.wrapper&&(a=a.add(a.parent(this.settings.wrapper))),a},defaultShowErrors:function(){var a,b,c;for(a=0;this.errorList[a];a++)c=this.errorList[a],this.settings.highlight&&this.settings.highlight.call(this,c.element,this.settings.errorClass,this.settings.validClass),this.showLabel(c.element,c.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(a=0;this.successList[a];a++)this.showLabel(this.successList[a]);if(this.settings.unhighlight)for(a=0,b=this.validElements();b[a];a++)this.settings.unhighlight.call(this,b[a],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return a(this.errorList).map(function(){return this.element})},showLabel:function(b,c){var d,e,f,g,h=this.errorsFor(b),i=this.idOrName(b),j=a(b).attr("aria-describedby");h.length?(h.removeClass(this.settings.validClass).addClass(this.settings.errorClass),h.html(c)):(h=a("<"+this.settings.errorElement+">").attr("id",i+"-error").addClass(this.settings.errorClass).html(c||""),d=h,this.settings.wrapper&&(d=h.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(d):this.settings.errorPlacement?this.settings.errorPlacement.call(this,d,a(b)):d.insertAfter(b),h.is("label")?h.attr("for",i):0===h.parents("label[for='"+this.escapeCssMeta(i)+"']").length&&(f=h.attr("id"),j?j.match(new RegExp("\\b"+this.escapeCssMeta(f)+"\\b"))||(j+=" "+f):j=f,a(b).attr("aria-describedby",j),e=this.groups[b.name],e&&(g=this,a.each(g.groups,function(b,c){c===e&&a("[name='"+g.escapeCssMeta(b)+"']",g.currentForm).attr("aria-describedby",h.attr("id"))})))),!c&&this.settings.success&&(h.text(""),"string"==typeof this.settings.success?h.addClass(this.settings.success):this.settings.success(h,b)),this.toShow=this.toShow.add(h)},errorsFor:function(b){var c=this.escapeCssMeta(this.idOrName(b)),d=a(b).attr("aria-describedby"),e="label[for='"+c+"'], label[for='"+c+"'] *";return d&&(e=e+", #"+this.escapeCssMeta(d).replace(/\s+/g,", #")),this.errors().filter(e)},escapeCssMeta:function(a){return a.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(a){return this.groups[a.name]||(this.checkable(a)?a.name:a.id||a.name)},validationTargetFor:function(b){return this.checkable(b)&&(b=this.findByName(b.name)),a(b).not(this.settings.ignore)[0]},checkable:function(a){return/radio|checkbox/i.test(a.type)},findByName:function(b){return a(this.currentForm).find("[name='"+this.escapeCssMeta(b)+"']")},getLength:function(b,c){switch(c.nodeName.toLowerCase()){case"select":return a("option:selected",c).length;case"input":if(this.checkable(c))return this.findByName(c.name).filter(":checked").length}return b.length},depend:function(a,b){return!this.dependTypes[typeof a]||this.dependTypes[typeof a](a,b)},dependTypes:{boolean:function(a){return a},string:function(b,c){return!!a(b,c.form).length},function:function(a,b){return a(b)}},optional:function(b){var c=this.elementValue(b);return!a.validator.methods.required.call(this,c,b)&&"dependency-mismatch"},startRequest:function(b){this.pending[b.name]||(this.pendingRequest++,a(b).addClass(this.settings.pendingClass),this.pending[b.name]=!0)},stopRequest:function(b,c){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[b.name],a(b).removeClass(this.settings.pendingClass),c&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(a(this.currentForm).submit(),this.formSubmitted=!1):!c&&0===this.pendingRequest&&this.formSubmitted&&(a(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(b,c){return c="string"==typeof c&&c||"remote",a.data(b,"previousValue")||a.data(b,"previousValue",{old:null,valid:!0,message:this.defaultMessage(b,{method:c})})},destroy:function(){this.resetForm(),a(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(b,c){b.constructor===String?this.classRuleSettings[b]=c:a.extend(this.classRuleSettings,b)},classRules:function(b){var c={},d=a(b).attr("class");return d&&a.each(d.split(" "),function(){this in a.validator.classRuleSettings&&a.extend(c,a.validator.classRuleSettings[this])}),c},normalizeAttributeRule:function(a,b,c,d){/min|max|step/.test(c)&&(null===b||/number|range|text/.test(b))&&(d=Number(d),isNaN(d)&&(d=void 0)),d||0===d?a[c]=d:b===c&&"range"!==b&&(a[c]=!0)},attributeRules:function(b){var c,d,e={},f=a(b),g=b.getAttribute("type");for(c in a.validator.methods)"required"===c?(d=b.getAttribute(c),""===d&&(d=!0),d=!!d):d=f.attr(c),this.normalizeAttributeRule(e,g,c,d);return e.maxlength&&/-1|2147483647|524288/.test(e.maxlength)&&delete e.maxlength,e},dataRules:function(b){var c,d,e={},f=a(b),g=b.getAttribute("type");for(c in a.validator.methods)d=f.data("rule"+c.charAt(0).toUpperCase()+c.substring(1).toLowerCase()),this.normalizeAttributeRule(e,g,c,d);return e},staticRules:function(b){var c={},d=a.data(b.form,"validator");return d.settings.rules&&(c=a.validator.normalizeRule(d.settings.rules[b.name])||{}),c},normalizeRules:function(b,c){return a.each(b,function(d,e){if(e===!1)return void delete b[d];if(e.param||e.depends){var f=!0;switch(typeof e.depends){case"string":f=!!a(e.depends,c.form).length;break;case"function":f=e.depends.call(c,c)}f?b[d]=void 0===e.param||e.param:(a.data(c.form,"validator").resetElements(a(c)),delete b[d])}}),a.each(b,function(d,e){b[d]=a.isFunction(e)&&"normalizer"!==d?e(c):e}),a.each(["minlength","maxlength"],function(){b[this]&&(b[this]=Number(b[this]))}),a.each(["rangelength","range"],function(){var c;b[this]&&(a.isArray(b[this])?b[this]=[Number(b[this][0]),Number(b[this][1])]:"string"==typeof b[this]&&(c=b[this].replace(/[\[\]]/g,"").split(/[\s,]+/),b[this]=[Number(c[0]),Number(c[1])]))}),a.validator.autoCreateRanges&&(null!=b.min&&null!=b.max&&(b.range=[b.min,b.max],delete b.min,delete b.max),null!=b.minlength&&null!=b.maxlength&&(b.rangelength=[b.minlength,b.maxlength],delete b.minlength,delete b.maxlength)),b},normalizeRule:function(b){if("string"==typeof b){var c={};a.each(b.split(/\s/),function(){c[this]=!0}),b=c}return b},addMethod:function(b,c,d){a.validator.methods[b]=c,a.validator.messages[b]=void 0!==d?d:a.validator.messages[b],c.length<3&&a.validator.addClassRules(b,a.validator.normalizeRule(b))},methods:{required:function(b,c,d){if(!this.depend(d,c))return"dependency-mismatch";if("select"===c.nodeName.toLowerCase()){var e=a(c).val();return e&&e.length>0}return this.checkable(c)?this.getLength(b,c)>0:b.length>0},email:function(a,b){return this.optional(b)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(a)},url:function(a,b){return this.optional(b)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(a)},date:function(a,b){return this.optional(b)||!/Invalid|NaN/.test(new Date(a).toString())},dateISO:function(a,b){return this.optional(b)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(a)},number:function(a,b){return this.optional(b)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(a)},digits:function(a,b){return this.optional(b)||/^\d+$/.test(a)},minlength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||e>=d},maxlength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||e<=d},rangelength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||e>=d[0]&&e<=d[1]},min:function(a,b,c){return this.optional(b)||a>=c},max:function(a,b,c){return this.optional(b)||a<=c},range:function(a,b,c){return this.optional(b)||a>=c[0]&&a<=c[1]},step:function(b,c,d){var e,f=a(c).attr("type"),g="Step attribute on input type "+f+" is not supported.",h=["text","number","range"],i=new RegExp("\\b"+f+"\\b"),j=f&&!i.test(h.join()),k=function(a){var b=(""+a).match(/(?:\.(\d+))?$/);return b&&b[1]?b[1].length:0},l=function(a){return Math.round(a*Math.pow(10,e))},m=!0;if(j)throw new Error(g);return e=k(d),(k(b)>e||l(b)%l(d)!==0)&&(m=!1),this.optional(c)||m},equalTo:function(b,c,d){var e=a(d);return this.settings.onfocusout&&e.not(".validate-equalTo-blur").length&&e.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){a(c).valid()}),b===e.val()},remote:function(b,c,d,e){if(this.optional(c))return"dependency-mismatch";e="string"==typeof e&&e||"remote";var f,g,h,i=this.previousValue(c,e);return this.settings.messages[c.name]||(this.settings.messages[c.name]={}),i.originalMessage=i.originalMessage||this.settings.messages[c.name][e],this.settings.messages[c.name][e]=i.message,d="string"==typeof d&&{url:d}||d,h=a.param(a.extend({data:b},d.data)),i.old===h?i.valid:(i.old=h,f=this,this.startRequest(c),g={},g[c.name]=b,a.ajax(a.extend(!0,{mode:"abort",port:"validate"+c.name,dataType:"json",data:g,context:f.currentForm,success:function(a){var d,g,h,j=a===!0||"true"===a;f.settings.messages[c.name][e]=i.originalMessage,j?(h=f.formSubmitted,f.resetInternals(),f.toHide=f.errorsFor(c),f.formSubmitted=h,f.successList.push(c),f.invalid[c.name]=!1,f.showErrors()):(d={},g=a||f.defaultMessage(c,{method:e,parameters:b}),d[c.name]=i.message=g,f.invalid[c.name]=!0,f.showErrors(d)),i.valid=j,f.stopRequest(c,j)}},d)),"pending")}}});var b,c={};a.ajaxPrefilter?a.ajaxPrefilter(function(a,b,d){var e=a.port;"abort"===a.mode&&(c[e]&&c[e].abort(),c[e]=d)}):(b=a.ajax,a.ajax=function(d){var e=("mode"in d?d:a.ajaxSettings).mode,f=("port"in d?d:a.ajaxSettings).port;return"abort"===e?(c[f]&&c[f].abort(),c[f]=b.apply(this,arguments),c[f]):b.apply(this,arguments)})}); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/jquery.validate.unobtrusive.js b/Mobile.WYSIWYG/Scripts/jquery.validate.unobtrusive.js new file mode 100644 index 0000000..0503334 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/jquery.validate.unobtrusive.js @@ -0,0 +1,429 @@ +/* NUGET: BEGIN LICENSE TEXT + * + * Microsoft grants you the right to use these script files for the sole + * purpose of either: (i) interacting through your browser with the Microsoft + * website or online service, subject to the applicable licensing or use + * terms; or (ii) using the files as included with a Microsoft product subject + * to that product's license terms. Microsoft reserves all other rights to the + * files not expressly granted by Microsoft, whether by implication, estoppel + * or otherwise. Insofar as a script file is dual licensed under GPL, + * Microsoft neither took the code under GPL nor distributes it thereunder but + * under the terms set out in this paragraph. All notices and licenses + * below are for informational purposes only. + * + * NUGET: END LICENSE TEXT */ +/*! +** Unobtrusive validation support library for jQuery and jQuery Validate +** Copyright (C) Microsoft Corporation. All rights reserved. +*/ + +/*jslint white: true, browser: true, onevar: true, undef: true, nomen: true, eqeqeq: true, plusplus: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: false */ +/*global document: false, jQuery: false */ + +(function ($) { + var $jQval = $.validator, + adapters, + data_validation = "unobtrusiveValidation"; + + function setValidationValues(options, ruleName, value) { + options.rules[ruleName] = value; + if (options.message) { + options.messages[ruleName] = options.message; + } + } + + function splitAndTrim(value) { + return value.replace(/^\s+|\s+$/g, "").split(/\s*,\s*/g); + } + + function escapeAttributeValue(value) { + // As mentioned on http://api.jquery.com/category/selectors/ + return value.replace(/([!"#$%&'()*+,./:;<=>?@\[\\\]^`{|}~])/g, "\\$1"); + } + + function getModelPrefix(fieldName) { + return fieldName.substr(0, fieldName.lastIndexOf(".") + 1); + } + + function appendModelPrefix(value, prefix) { + if (value.indexOf("*.") === 0) { + value = value.replace("*.", prefix); + } + return value; + } + + function onError(error, inputElement) { // 'this' is the form element + var container = $(this).find("[data-valmsg-for='" + escapeAttributeValue(inputElement[0].name) + "']"), + replaceAttrValue = container.attr("data-valmsg-replace"), + replace = replaceAttrValue ? $.parseJSON(replaceAttrValue) !== false : null; + + container.removeClass("field-validation-valid").addClass("field-validation-error"); + error.data("unobtrusiveContainer", container); + + if (replace) { + container.empty(); + error.removeClass("input-validation-error").appendTo(container); + } + else { + error.hide(); + } + } + + function onErrors(event, validator) { // 'this' is the form element + var container = $(this).find("[data-valmsg-summary=true]"), + list = container.find("ul"); + + if (list && list.length && validator.errorList.length) { + list.empty(); + container.addClass("validation-summary-errors").removeClass("validation-summary-valid"); + + $.each(validator.errorList, function () { + $("<li />").html(this.message).appendTo(list); + }); + } + } + + function onSuccess(error) { // 'this' is the form element + var container = error.data("unobtrusiveContainer"), + replaceAttrValue = container.attr("data-valmsg-replace"), + replace = replaceAttrValue ? $.parseJSON(replaceAttrValue) : null; + + if (container) { + container.addClass("field-validation-valid").removeClass("field-validation-error"); + error.removeData("unobtrusiveContainer"); + + if (replace) { + container.empty(); + } + } + } + + function onReset(event) { // 'this' is the form element + var $form = $(this), + key = '__jquery_unobtrusive_validation_form_reset'; + if ($form.data(key)) { + return; + } + // Set a flag that indicates we're currently resetting the form. + $form.data(key, true); + try { + $form.data("validator").resetForm(); + } finally { + $form.removeData(key); + } + + $form.find(".validation-summary-errors") + .addClass("validation-summary-valid") + .removeClass("validation-summary-errors"); + $form.find(".field-validation-error") + .addClass("field-validation-valid") + .removeClass("field-validation-error") + .removeData("unobtrusiveContainer") + .find(">*") // If we were using valmsg-replace, get the underlying error + .removeData("unobtrusiveContainer"); + } + + function validationInfo(form) { + var $form = $(form), + result = $form.data(data_validation), + onResetProxy = $.proxy(onReset, form), + defaultOptions = $jQval.unobtrusive.options || {}, + execInContext = function (name, args) { + var func = defaultOptions[name]; + func && $.isFunction(func) && func.apply(form, args); + } + + if (!result) { + result = { + options: { // options structure passed to jQuery Validate's validate() method + errorClass: defaultOptions.errorClass || "input-validation-error", + errorElement: defaultOptions.errorElement || "span", + errorPlacement: function () { + onError.apply(form, arguments); + execInContext("errorPlacement", arguments); + }, + invalidHandler: function () { + onErrors.apply(form, arguments); + execInContext("invalidHandler", arguments); + }, + messages: {}, + rules: {}, + success: function () { + onSuccess.apply(form, arguments); + execInContext("success", arguments); + } + }, + attachValidation: function () { + $form + .off("reset." + data_validation, onResetProxy) + .on("reset." + data_validation, onResetProxy) + .validate(this.options); + }, + validate: function () { // a validation function that is called by unobtrusive Ajax + $form.validate(); + return $form.valid(); + } + }; + $form.data(data_validation, result); + } + + return result; + } + + $jQval.unobtrusive = { + adapters: [], + + parseElement: function (element, skipAttach) { + /// <summary> + /// Parses a single HTML element for unobtrusive validation attributes. + /// </summary> + /// <param name="element" domElement="true">The HTML element to be parsed.</param> + /// <param name="skipAttach" type="Boolean">[Optional] true to skip attaching the + /// validation to the form. If parsing just this single element, you should specify true. + /// If parsing several elements, you should specify false, and manually attach the validation + /// to the form when you are finished. The default is false.</param> + var $element = $(element), + form = $element.parents("form")[0], + valInfo, rules, messages; + + if (!form) { // Cannot do client-side validation without a form + return; + } + + valInfo = validationInfo(form); + valInfo.options.rules[element.name] = rules = {}; + valInfo.options.messages[element.name] = messages = {}; + + $.each(this.adapters, function () { + var prefix = "data-val-" + this.name, + message = $element.attr(prefix), + paramValues = {}; + + if (message !== undefined) { // Compare against undefined, because an empty message is legal (and falsy) + prefix += "-"; + + $.each(this.params, function () { + paramValues[this] = $element.attr(prefix + this); + }); + + this.adapt({ + element: element, + form: form, + message: message, + params: paramValues, + rules: rules, + messages: messages + }); + } + }); + + $.extend(rules, { "__dummy__": true }); + + if (!skipAttach) { + valInfo.attachValidation(); + } + }, + + parse: function (selector) { + /// <summary> + /// Parses all the HTML elements in the specified selector. It looks for input elements decorated + /// with the [data-val=true] attribute value and enables validation according to the data-val-* + /// attribute values. + /// </summary> + /// <param name="selector" type="String">Any valid jQuery selector.</param> + + // $forms includes all forms in selector's DOM hierarchy (parent, children and self) that have at least one + // element with data-val=true + var $selector = $(selector), + $forms = $selector.parents() + .addBack() + .filter("form") + .add($selector.find("form")) + .has("[data-val=true]"); + + $selector.find("[data-val=true]").each(function () { + $jQval.unobtrusive.parseElement(this, true); + }); + + $forms.each(function () { + var info = validationInfo(this); + if (info) { + info.attachValidation(); + } + }); + } + }; + + adapters = $jQval.unobtrusive.adapters; + + adapters.add = function (adapterName, params, fn) { + /// <summary>Adds a new adapter to convert unobtrusive HTML into a jQuery Validate validation.</summary> + /// <param name="adapterName" type="String">The name of the adapter to be added. This matches the name used + /// in the data-val-nnnn HTML attribute (where nnnn is the adapter name).</param> + /// <param name="params" type="Array" optional="true">[Optional] An array of parameter names (strings) that will + /// be extracted from the data-val-nnnn-mmmm HTML attributes (where nnnn is the adapter name, and + /// mmmm is the parameter name).</param> + /// <param name="fn" type="Function">The function to call, which adapts the values from the HTML + /// attributes into jQuery Validate rules and/or messages.</param> + /// <returns type="jQuery.validator.unobtrusive.adapters" /> + if (!fn) { // Called with no params, just a function + fn = params; + params = []; + } + this.push({ name: adapterName, params: params, adapt: fn }); + return this; + }; + + adapters.addBool = function (adapterName, ruleName) { + /// <summary>Adds a new adapter to convert unobtrusive HTML into a jQuery Validate validation, where + /// the jQuery Validate validation rule has no parameter values.</summary> + /// <param name="adapterName" type="String">The name of the adapter to be added. This matches the name used + /// in the data-val-nnnn HTML attribute (where nnnn is the adapter name).</param> + /// <param name="ruleName" type="String" optional="true">[Optional] The name of the jQuery Validate rule. If not provided, the value + /// of adapterName will be used instead.</param> + /// <returns type="jQuery.validator.unobtrusive.adapters" /> + return this.add(adapterName, function (options) { + setValidationValues(options, ruleName || adapterName, true); + }); + }; + + adapters.addMinMax = function (adapterName, minRuleName, maxRuleName, minMaxRuleName, minAttribute, maxAttribute) { + /// <summary>Adds a new adapter to convert unobtrusive HTML into a jQuery Validate validation, where + /// the jQuery Validate validation has three potential rules (one for min-only, one for max-only, and + /// one for min-and-max). The HTML parameters are expected to be named -min and -max.</summary> + /// <param name="adapterName" type="String">The name of the adapter to be added. This matches the name used + /// in the data-val-nnnn HTML attribute (where nnnn is the adapter name).</param> + /// <param name="minRuleName" type="String">The name of the jQuery Validate rule to be used when you only + /// have a minimum value.</param> + /// <param name="maxRuleName" type="String">The name of the jQuery Validate rule to be used when you only + /// have a maximum value.</param> + /// <param name="minMaxRuleName" type="String">The name of the jQuery Validate rule to be used when you + /// have both a minimum and maximum value.</param> + /// <param name="minAttribute" type="String" optional="true">[Optional] The name of the HTML attribute that + /// contains the minimum value. The default is "min".</param> + /// <param name="maxAttribute" type="String" optional="true">[Optional] The name of the HTML attribute that + /// contains the maximum value. The default is "max".</param> + /// <returns type="jQuery.validator.unobtrusive.adapters" /> + return this.add(adapterName, [minAttribute || "min", maxAttribute || "max"], function (options) { + var min = options.params.min, + max = options.params.max; + + if (min && max) { + setValidationValues(options, minMaxRuleName, [min, max]); + } + else if (min) { + setValidationValues(options, minRuleName, min); + } + else if (max) { + setValidationValues(options, maxRuleName, max); + } + }); + }; + + adapters.addSingleVal = function (adapterName, attribute, ruleName) { + /// <summary>Adds a new adapter to convert unobtrusive HTML into a jQuery Validate validation, where + /// the jQuery Validate validation rule has a single value.</summary> + /// <param name="adapterName" type="String">The name of the adapter to be added. This matches the name used + /// in the data-val-nnnn HTML attribute(where nnnn is the adapter name).</param> + /// <param name="attribute" type="String">[Optional] The name of the HTML attribute that contains the value. + /// The default is "val".</param> + /// <param name="ruleName" type="String" optional="true">[Optional] The name of the jQuery Validate rule. If not provided, the value + /// of adapterName will be used instead.</param> + /// <returns type="jQuery.validator.unobtrusive.adapters" /> + return this.add(adapterName, [attribute || "val"], function (options) { + setValidationValues(options, ruleName || adapterName, options.params[attribute]); + }); + }; + + $jQval.addMethod("__dummy__", function (value, element, params) { + return true; + }); + + $jQval.addMethod("regex", function (value, element, params) { + var match; + if (this.optional(element)) { + return true; + } + + match = new RegExp(params).exec(value); + return (match && (match.index === 0) && (match[0].length === value.length)); + }); + + $jQval.addMethod("nonalphamin", function (value, element, nonalphamin) { + var match; + if (nonalphamin) { + match = value.match(/\W/g); + match = match && match.length >= nonalphamin; + } + return match; + }); + + if ($jQval.methods.extension) { + adapters.addSingleVal("accept", "mimtype"); + adapters.addSingleVal("extension", "extension"); + } else { + // for backward compatibility, when the 'extension' validation method does not exist, such as with versions + // of JQuery Validation plugin prior to 1.10, we should use the 'accept' method for + // validating the extension, and ignore mime-type validations as they are not supported. + adapters.addSingleVal("extension", "extension", "accept"); + } + + adapters.addSingleVal("regex", "pattern"); + adapters.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url"); + adapters.addMinMax("length", "minlength", "maxlength", "rangelength").addMinMax("range", "min", "max", "range"); + adapters.addMinMax("minlength", "minlength").addMinMax("maxlength", "minlength", "maxlength"); + adapters.add("equalto", ["other"], function (options) { + var prefix = getModelPrefix(options.element.name), + other = options.params.other, + fullOtherName = appendModelPrefix(other, prefix), + element = $(options.form).find(":input").filter("[name='" + escapeAttributeValue(fullOtherName) + "']")[0]; + + setValidationValues(options, "equalTo", element); + }); + adapters.add("required", function (options) { + // jQuery Validate equates "required" with "mandatory" for checkbox elements + if (options.element.tagName.toUpperCase() !== "INPUT" || options.element.type.toUpperCase() !== "CHECKBOX") { + setValidationValues(options, "required", true); + } + }); + adapters.add("remote", ["url", "type", "additionalfields"], function (options) { + var value = { + url: options.params.url, + type: options.params.type || "GET", + data: {} + }, + prefix = getModelPrefix(options.element.name); + + $.each(splitAndTrim(options.params.additionalfields || options.element.name), function (i, fieldName) { + var paramName = appendModelPrefix(fieldName, prefix); + value.data[paramName] = function () { + var field = $(options.form).find(":input").filter("[name='" + escapeAttributeValue(paramName) + "']"); + // For checkboxes and radio buttons, only pick up values from checked fields. + if (field.is(":checkbox")) { + return field.filter(":checked").val() || field.filter(":hidden").val() || ''; + } + else if (field.is(":radio")) { + return field.filter(":checked").val() || ''; + } + return field.val(); + }; + }); + + setValidationValues(options, "remote", value); + }); + adapters.add("password", ["min", "nonalphamin", "regex"], function (options) { + if (options.params.min) { + setValidationValues(options, "minlength", options.params.min); + } + if (options.params.nonalphamin) { + setValidationValues(options, "nonalphamin", options.params.nonalphamin); + } + if (options.params.regex) { + setValidationValues(options, "regex", options.params.regex); + } + }); + + $(function () { + $jQval.unobtrusive.parse(document); + }); +}(jQuery)); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/jquery.validate.unobtrusive.min.js b/Mobile.WYSIWYG/Scripts/jquery.validate.unobtrusive.min.js new file mode 100644 index 0000000..dfeaf38 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/jquery.validate.unobtrusive.min.js @@ -0,0 +1,19 @@ +/* NUGET: BEGIN LICENSE TEXT + * + * Microsoft grants you the right to use these script files for the sole + * purpose of either: (i) interacting through your browser with the Microsoft + * website or online service, subject to the applicable licensing or use + * terms; or (ii) using the files as included with a Microsoft product subject + * to that product's license terms. Microsoft reserves all other rights to the + * files not expressly granted by Microsoft, whether by implication, estoppel + * or otherwise. Insofar as a script file is dual licensed under GPL, + * Microsoft neither took the code under GPL nor distributes it thereunder but + * under the terms set out in this paragraph. All notices and licenses + * below are for informational purposes only. + * + * NUGET: END LICENSE TEXT */ +/* +** Unobtrusive validation support library for jQuery and jQuery Validate +** Copyright (C) Microsoft Corporation. All rights reserved. +*/ +(function(a){var d=a.validator,b,e="unobtrusiveValidation";function c(a,b,c){a.rules[b]=c;if(a.message)a.messages[b]=a.message}function j(a){return a.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g)}function f(a){return a.replace(/([!"#$%&'()*+,./:;<=>?@\[\\\]^`{|}~])/g,"\\$1")}function h(a){return a.substr(0,a.lastIndexOf(".")+1)}function g(a,b){if(a.indexOf("*.")===0)a=a.replace("*.",b);return a}function m(c,e){var b=a(this).find("[data-valmsg-for='"+f(e[0].name)+"']"),d=b.attr("data-valmsg-replace"),g=d?a.parseJSON(d)!==false:null;b.removeClass("field-validation-valid").addClass("field-validation-error");c.data("unobtrusiveContainer",b);if(g){b.empty();c.removeClass("input-validation-error").appendTo(b)}else c.hide()}function l(e,d){var c=a(this).find("[data-valmsg-summary=true]"),b=c.find("ul");if(b&&b.length&&d.errorList.length){b.empty();c.addClass("validation-summary-errors").removeClass("validation-summary-valid");a.each(d.errorList,function(){a("<li />").html(this.message).appendTo(b)})}}function k(d){var b=d.data("unobtrusiveContainer"),c=b.attr("data-valmsg-replace"),e=c?a.parseJSON(c):null;if(b){b.addClass("field-validation-valid").removeClass("field-validation-error");d.removeData("unobtrusiveContainer");e&&b.empty()}}function n(){var b=a(this),c="__jquery_unobtrusive_validation_form_reset";if(b.data(c))return;b.data(c,true);try{b.data("validator").resetForm()}finally{b.removeData(c)}b.find(".validation-summary-errors").addClass("validation-summary-valid").removeClass("validation-summary-errors");b.find(".field-validation-error").addClass("field-validation-valid").removeClass("field-validation-error").removeData("unobtrusiveContainer").find(">*").removeData("unobtrusiveContainer")}function i(b){var c=a(b),f=c.data(e),i=a.proxy(n,b),g=d.unobtrusive.options||{},h=function(e,d){var c=g[e];c&&a.isFunction(c)&&c.apply(b,d)};if(!f){f={options:{errorClass:g.errorClass||"input-validation-error",errorElement:g.errorElement||"span",errorPlacement:function(){m.apply(b,arguments);h("errorPlacement",arguments)},invalidHandler:function(){l.apply(b,arguments);h("invalidHandler",arguments)},messages:{},rules:{},success:function(){k.apply(b,arguments);h("success",arguments)}},attachValidation:function(){c.off("reset."+e,i).on("reset."+e,i).validate(this.options)},validate:function(){c.validate();return c.valid()}};c.data(e,f)}return f}d.unobtrusive={adapters:[],parseElement:function(b,h){var d=a(b),f=d.parents("form")[0],c,e,g;if(!f)return;c=i(f);c.options.rules[b.name]=e={};c.options.messages[b.name]=g={};a.each(this.adapters,function(){var c="data-val-"+this.name,i=d.attr(c),h={};if(i!==undefined){c+="-";a.each(this.params,function(){h[this]=d.attr(c+this)});this.adapt({element:b,form:f,message:i,params:h,rules:e,messages:g})}});a.extend(e,{__dummy__:true});!h&&c.attachValidation()},parse:function(c){var b=a(c),e=b.parents().addBack().filter("form").add(b.find("form")).has("[data-val=true]");b.find("[data-val=true]").each(function(){d.unobtrusive.parseElement(this,true)});e.each(function(){var a=i(this);a&&a.attachValidation()})}};b=d.unobtrusive.adapters;b.add=function(c,a,b){if(!b){b=a;a=[]}this.push({name:c,params:a,adapt:b});return this};b.addBool=function(a,b){return this.add(a,function(d){c(d,b||a,true)})};b.addMinMax=function(e,g,f,a,d,b){return this.add(e,[d||"min",b||"max"],function(b){var e=b.params.min,d=b.params.max;if(e&&d)c(b,a,[e,d]);else if(e)c(b,g,e);else d&&c(b,f,d)})};b.addSingleVal=function(a,b,d){return this.add(a,[b||"val"],function(e){c(e,d||a,e.params[b])})};d.addMethod("__dummy__",function(){return true});d.addMethod("regex",function(b,c,d){var a;if(this.optional(c))return true;a=(new RegExp(d)).exec(b);return a&&a.index===0&&a[0].length===b.length});d.addMethod("nonalphamin",function(c,d,b){var a;if(b){a=c.match(/\W/g);a=a&&a.length>=b}return a});if(d.methods.extension){b.addSingleVal("accept","mimtype");b.addSingleVal("extension","extension")}else b.addSingleVal("extension","extension","accept");b.addSingleVal("regex","pattern");b.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url");b.addMinMax("length","minlength","maxlength","rangelength").addMinMax("range","min","max","range");b.addMinMax("minlength","minlength").addMinMax("maxlength","minlength","maxlength");b.add("equalto",["other"],function(b){var i=h(b.element.name),j=b.params.other,d=g(j,i),e=a(b.form).find(":input").filter("[name='"+f(d)+"']")[0];c(b,"equalTo",e)});b.add("required",function(a){(a.element.tagName.toUpperCase()!=="INPUT"||a.element.type.toUpperCase()!=="CHECKBOX")&&c(a,"required",true)});b.add("remote",["url","type","additionalfields"],function(b){var d={url:b.params.url,type:b.params.type||"GET",data:{}},e=h(b.element.name);a.each(j(b.params.additionalfields||b.element.name),function(i,h){var c=g(h,e);d.data[c]=function(){var d=a(b.form).find(":input").filter("[name='"+f(c)+"']");return d.is(":checkbox")?d.filter(":checked").val()||d.filter(":hidden").val()||"":d.is(":radio")?d.filter(":checked").val()||"":d.val()}});c(b,"remote",d)});b.add("password",["min","nonalphamin","regex"],function(a){a.params.min&&c(a,"minlength",a.params.min);a.params.nonalphamin&&c(a,"nonalphamin",a.params.nonalphamin);a.params.regex&&c(a,"regex",a.params.regex)});a(function(){d.unobtrusive.parse(document)})})(jQuery); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/modernizr-2.6.2.js b/Mobile.WYSIWYG/Scripts/modernizr-2.6.2.js new file mode 100644 index 0000000..cbfe1f3 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/modernizr-2.6.2.js @@ -0,0 +1,1416 @@ +/* NUGET: BEGIN LICENSE TEXT + * + * Microsoft grants you the right to use these script files for the sole + * purpose of either: (i) interacting through your browser with the Microsoft + * website or online service, subject to the applicable licensing or use + * terms; or (ii) using the files as included with a Microsoft product subject + * to that product's license terms. Microsoft reserves all other rights to the + * files not expressly granted by Microsoft, whether by implication, estoppel + * or otherwise. Insofar as a script file is dual licensed under GPL, + * Microsoft neither took the code under GPL nor distributes it thereunder but + * under the terms set out in this paragraph. All notices and licenses + * below are for informational purposes only. + * + * Copyright (c) Faruk Ates, Paul Irish, Alex Sexton; http://www.modernizr.com/license/ + * + * Includes matchMedia polyfill; Copyright (c) 2010 Filament Group, Inc; http://opensource.org/licenses/MIT + * + * Includes material adapted from ES5-shim https://github.com/kriskowal/es5-shim/blob/master/es5-shim.js; Copyright 2009-2012 by contributors; http://opensource.org/licenses/MIT + * + * Includes material from css-support; Copyright (c) 2005-2012 Diego Perini; https://github.com/dperini/css-support/blob/master/LICENSE + * + * NUGET: END LICENSE TEXT */ + +/*! + * Modernizr v2.6.2 + * www.modernizr.com + * + * Copyright (c) Faruk Ates, Paul Irish, Alex Sexton + * Available under the BSD and MIT licenses: www.modernizr.com/license/ + */ + +/* + * Modernizr tests which native CSS3 and HTML5 features are available in + * the current UA and makes the results available to you in two ways: + * as properties on a global Modernizr object, and as classes on the + * <html> element. This information allows you to progressively enhance + * your pages with a granular level of control over the experience. + * + * Modernizr has an optional (not included) conditional resource loader + * called Modernizr.load(), based on Yepnope.js (yepnopejs.com). + * To get a build that includes Modernizr.load(), as well as choosing + * which tests to include, go to www.modernizr.com/download/ + * + * Authors Faruk Ates, Paul Irish, Alex Sexton + * Contributors Ryan Seddon, Ben Alman + */ + +window.Modernizr = (function( window, document, undefined ) { + + var version = '2.6.2', + + Modernizr = {}, + + /*>>cssclasses*/ + // option for enabling the HTML classes to be added + enableClasses = true, + /*>>cssclasses*/ + + docElement = document.documentElement, + + /** + * Create our "modernizr" element that we do most feature tests on. + */ + mod = 'modernizr', + modElem = document.createElement(mod), + mStyle = modElem.style, + + /** + * Create the input element for various Web Forms feature tests. + */ + inputElem /*>>inputelem*/ = document.createElement('input') /*>>inputelem*/ , + + /*>>smile*/ + smile = ':)', + /*>>smile*/ + + toString = {}.toString, + + // TODO :: make the prefixes more granular + /*>>prefixes*/ + // List of property values to set for css tests. See ticket #21 + prefixes = ' -webkit- -moz- -o- -ms- '.split(' '), + /*>>prefixes*/ + + /*>>domprefixes*/ + // Following spec is to expose vendor-specific style properties as: + // elem.style.WebkitBorderRadius + // and the following would be incorrect: + // elem.style.webkitBorderRadius + + // Webkit ghosts their properties in lowercase but Opera & Moz do not. + // Microsoft uses a lowercase `ms` instead of the correct `Ms` in IE8+ + // erik.eae.net/archives/2008/03/10/21.48.10/ + + // More here: github.com/Modernizr/Modernizr/issues/issue/21 + omPrefixes = 'Webkit Moz O ms', + + cssomPrefixes = omPrefixes.split(' '), + + domPrefixes = omPrefixes.toLowerCase().split(' '), + /*>>domprefixes*/ + + /*>>ns*/ + ns = {'svg': 'http://www.w3.org/2000/svg'}, + /*>>ns*/ + + tests = {}, + inputs = {}, + attrs = {}, + + classes = [], + + slice = classes.slice, + + featureName, // used in testing loop + + + /*>>teststyles*/ + // Inject element with style element and some CSS rules + injectElementWithStyles = function( rule, callback, nodes, testnames ) { + + var style, ret, node, docOverflow, + div = document.createElement('div'), + // After page load injecting a fake body doesn't work so check if body exists + body = document.body, + // IE6 and 7 won't return offsetWidth or offsetHeight unless it's in the body element, so we fake it. + fakeBody = body || document.createElement('body'); + + if ( parseInt(nodes, 10) ) { + // In order not to give false positives we create a node for each test + // This also allows the method to scale for unspecified uses + while ( nodes-- ) { + node = document.createElement('div'); + node.id = testnames ? testnames[nodes] : mod + (nodes + 1); + div.appendChild(node); + } + } + + // <style> elements in IE6-9 are considered 'NoScope' elements and therefore will be removed + // when injected with innerHTML. To get around this you need to prepend the 'NoScope' element + // with a 'scoped' element, in our case the soft-hyphen entity as it won't mess with our measurements. + // msdn.microsoft.com/en-us/library/ms533897%28VS.85%29.aspx + // Documents served as xml will throw if using ­ so use xml friendly encoded version. See issue #277 + style = ['­','<style id="s', mod, '">', rule, '</style>'].join(''); + div.id = mod; + // IE6 will false positive on some tests due to the style element inside the test div somehow interfering offsetHeight, so insert it into body or fakebody. + // Opera will act all quirky when injecting elements in documentElement when page is served as xml, needs fakebody too. #270 + (body ? div : fakeBody).innerHTML += style; + fakeBody.appendChild(div); + if ( !body ) { + //avoid crashing IE8, if background image is used + fakeBody.style.background = ''; + //Safari 5.13/5.1.4 OSX stops loading if ::-webkit-scrollbar is used and scrollbars are visible + fakeBody.style.overflow = 'hidden'; + docOverflow = docElement.style.overflow; + docElement.style.overflow = 'hidden'; + docElement.appendChild(fakeBody); + } + + ret = callback(div, rule); + // If this is done after page load we don't want to remove the body so check if body exists + if ( !body ) { + fakeBody.parentNode.removeChild(fakeBody); + docElement.style.overflow = docOverflow; + } else { + div.parentNode.removeChild(div); + } + + return !!ret; + + }, + /*>>teststyles*/ + + /*>>mq*/ + // adapted from matchMedia polyfill + // by Scott Jehl and Paul Irish + // gist.github.com/786768 + testMediaQuery = function( mq ) { + + var matchMedia = window.matchMedia || window.msMatchMedia; + if ( matchMedia ) { + return matchMedia(mq).matches; + } + + var bool; + + injectElementWithStyles('@media ' + mq + ' { #' + mod + ' { position: absolute; } }', function( node ) { + bool = (window.getComputedStyle ? + getComputedStyle(node, null) : + node.currentStyle)['position'] == 'absolute'; + }); + + return bool; + + }, + /*>>mq*/ + + + /*>>hasevent*/ + // + // isEventSupported determines if a given element supports the given event + // kangax.github.com/iseventsupported/ + // + // The following results are known incorrects: + // Modernizr.hasEvent("webkitTransitionEnd", elem) // false negative + // Modernizr.hasEvent("textInput") // in Webkit. github.com/Modernizr/Modernizr/issues/333 + // ... + isEventSupported = (function() { + + var TAGNAMES = { + 'select': 'input', 'change': 'input', + 'submit': 'form', 'reset': 'form', + 'error': 'img', 'load': 'img', 'abort': 'img' + }; + + function isEventSupported( eventName, element ) { + + element = element || document.createElement(TAGNAMES[eventName] || 'div'); + eventName = 'on' + eventName; + + // When using `setAttribute`, IE skips "unload", WebKit skips "unload" and "resize", whereas `in` "catches" those + var isSupported = eventName in element; + + if ( !isSupported ) { + // If it has no `setAttribute` (i.e. doesn't implement Node interface), try generic element + if ( !element.setAttribute ) { + element = document.createElement('div'); + } + if ( element.setAttribute && element.removeAttribute ) { + element.setAttribute(eventName, ''); + isSupported = is(element[eventName], 'function'); + + // If property was created, "remove it" (by setting value to `undefined`) + if ( !is(element[eventName], 'undefined') ) { + element[eventName] = undefined; + } + element.removeAttribute(eventName); + } + } + + element = null; + return isSupported; + } + return isEventSupported; + })(), + /*>>hasevent*/ + + // TODO :: Add flag for hasownprop ? didn't last time + + // hasOwnProperty shim by kangax needed for Safari 2.0 support + _hasOwnProperty = ({}).hasOwnProperty, hasOwnProp; + + if ( !is(_hasOwnProperty, 'undefined') && !is(_hasOwnProperty.call, 'undefined') ) { + hasOwnProp = function (object, property) { + return _hasOwnProperty.call(object, property); + }; + } + else { + hasOwnProp = function (object, property) { /* yes, this can give false positives/negatives, but most of the time we don't care about those */ + return ((property in object) && is(object.constructor.prototype[property], 'undefined')); + }; + } + + // Adapted from ES5-shim https://github.com/kriskowal/es5-shim/blob/master/es5-shim.js + // es5.github.com/#x15.3.4.5 + + if (!Function.prototype.bind) { + Function.prototype.bind = function bind(that) { + + var target = this; + + if (typeof target != "function") { + throw new TypeError(); + } + + var args = slice.call(arguments, 1), + bound = function () { + + if (this instanceof bound) { + + var F = function(){}; + F.prototype = target.prototype; + var self = new F(); + + var result = target.apply( + self, + args.concat(slice.call(arguments)) + ); + if (Object(result) === result) { + return result; + } + return self; + + } else { + + return target.apply( + that, + args.concat(slice.call(arguments)) + ); + + } + + }; + + return bound; + }; + } + + /** + * setCss applies given styles to the Modernizr DOM node. + */ + function setCss( str ) { + mStyle.cssText = str; + } + + /** + * setCssAll extrapolates all vendor-specific css strings. + */ + function setCssAll( str1, str2 ) { + return setCss(prefixes.join(str1 + ';') + ( str2 || '' )); + } + + /** + * is returns a boolean for if typeof obj is exactly type. + */ + function is( obj, type ) { + return typeof obj === type; + } + + /** + * contains returns a boolean for if substr is found within str. + */ + function contains( str, substr ) { + return !!~('' + str).indexOf(substr); + } + + /*>>testprop*/ + + // testProps is a generic CSS / DOM property test. + + // In testing support for a given CSS property, it's legit to test: + // `elem.style[styleName] !== undefined` + // If the property is supported it will return an empty string, + // if unsupported it will return undefined. + + // We'll take advantage of this quick test and skip setting a style + // on our modernizr element, but instead just testing undefined vs + // empty string. + + // Because the testing of the CSS property names (with "-", as + // opposed to the camelCase DOM properties) is non-portable and + // non-standard but works in WebKit and IE (but not Gecko or Opera), + // we explicitly reject properties with dashes so that authors + // developing in WebKit or IE first don't end up with + // browser-specific content by accident. + + function testProps( props, prefixed ) { + for ( var i in props ) { + var prop = props[i]; + if ( !contains(prop, "-") && mStyle[prop] !== undefined ) { + return prefixed == 'pfx' ? prop : true; + } + } + return false; + } + /*>>testprop*/ + + // TODO :: add testDOMProps + /** + * testDOMProps is a generic DOM property test; if a browser supports + * a certain property, it won't return undefined for it. + */ + function testDOMProps( props, obj, elem ) { + for ( var i in props ) { + var item = obj[props[i]]; + if ( item !== undefined) { + + // return the property name as a string + if (elem === false) return props[i]; + + // let's bind a function + if (is(item, 'function')){ + // default to autobind unless override + return item.bind(elem || obj); + } + + // return the unbound function or obj or value + return item; + } + } + return false; + } + + /*>>testallprops*/ + /** + * testPropsAll tests a list of DOM properties we want to check against. + * We specify literally ALL possible (known and/or likely) properties on + * the element including the non-vendor prefixed one, for forward- + * compatibility. + */ + function testPropsAll( prop, prefixed, elem ) { + + var ucProp = prop.charAt(0).toUpperCase() + prop.slice(1), + props = (prop + ' ' + cssomPrefixes.join(ucProp + ' ') + ucProp).split(' '); + + // did they call .prefixed('boxSizing') or are we just testing a prop? + if(is(prefixed, "string") || is(prefixed, "undefined")) { + return testProps(props, prefixed); + + // otherwise, they called .prefixed('requestAnimationFrame', window[, elem]) + } else { + props = (prop + ' ' + (domPrefixes).join(ucProp + ' ') + ucProp).split(' '); + return testDOMProps(props, prefixed, elem); + } + } + /*>>testallprops*/ + + + /** + * Tests + * ----- + */ + + // The *new* flexbox + // dev.w3.org/csswg/css3-flexbox + + tests['flexbox'] = function() { + return testPropsAll('flexWrap'); + }; + + // The *old* flexbox + // www.w3.org/TR/2009/WD-css3-flexbox-20090723/ + + tests['flexboxlegacy'] = function() { + return testPropsAll('boxDirection'); + }; + + // On the S60 and BB Storm, getContext exists, but always returns undefined + // so we actually have to call getContext() to verify + // github.com/Modernizr/Modernizr/issues/issue/97/ + + tests['canvas'] = function() { + var elem = document.createElement('canvas'); + return !!(elem.getContext && elem.getContext('2d')); + }; + + tests['canvastext'] = function() { + return !!(Modernizr['canvas'] && is(document.createElement('canvas').getContext('2d').fillText, 'function')); + }; + + // webk.it/70117 is tracking a legit WebGL feature detect proposal + + // We do a soft detect which may false positive in order to avoid + // an expensive context creation: bugzil.la/732441 + + tests['webgl'] = function() { + return !!window.WebGLRenderingContext; + }; + + /* + * The Modernizr.touch test only indicates if the browser supports + * touch events, which does not necessarily reflect a touchscreen + * device, as evidenced by tablets running Windows 7 or, alas, + * the Palm Pre / WebOS (touch) phones. + * + * Additionally, Chrome (desktop) used to lie about its support on this, + * but that has since been rectified: crbug.com/36415 + * + * We also test for Firefox 4 Multitouch Support. + * + * For more info, see: modernizr.github.com/Modernizr/touch.html + */ + + tests['touch'] = function() { + var bool; + + if(('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch) { + bool = true; + } else { + injectElementWithStyles(['@media (',prefixes.join('touch-enabled),('),mod,')','{#modernizr{top:9px;position:absolute}}'].join(''), function( node ) { + bool = node.offsetTop === 9; + }); + } + + return bool; + }; + + + // geolocation is often considered a trivial feature detect... + // Turns out, it's quite tricky to get right: + // + // Using !!navigator.geolocation does two things we don't want. It: + // 1. Leaks memory in IE9: github.com/Modernizr/Modernizr/issues/513 + // 2. Disables page caching in WebKit: webk.it/43956 + // + // Meanwhile, in Firefox < 8, an about:config setting could expose + // a false positive that would throw an exception: bugzil.la/688158 + + tests['geolocation'] = function() { + return 'geolocation' in navigator; + }; + + + tests['postmessage'] = function() { + return !!window.postMessage; + }; + + + // Chrome incognito mode used to throw an exception when using openDatabase + // It doesn't anymore. + tests['websqldatabase'] = function() { + return !!window.openDatabase; + }; + + // Vendors had inconsistent prefixing with the experimental Indexed DB: + // - Webkit's implementation is accessible through webkitIndexedDB + // - Firefox shipped moz_indexedDB before FF4b9, but since then has been mozIndexedDB + // For speed, we don't test the legacy (and beta-only) indexedDB + tests['indexedDB'] = function() { + return !!testPropsAll("indexedDB", window); + }; + + // documentMode logic from YUI to filter out IE8 Compat Mode + // which false positives. + tests['hashchange'] = function() { + return isEventSupported('hashchange', window) && (document.documentMode === undefined || document.documentMode > 7); + }; + + // Per 1.6: + // This used to be Modernizr.historymanagement but the longer + // name has been deprecated in favor of a shorter and property-matching one. + // The old API is still available in 1.6, but as of 2.0 will throw a warning, + // and in the first release thereafter disappear entirely. + tests['history'] = function() { + return !!(window.history && history.pushState); + }; + + tests['draganddrop'] = function() { + var div = document.createElement('div'); + return ('draggable' in div) || ('ondragstart' in div && 'ondrop' in div); + }; + + // FF3.6 was EOL'ed on 4/24/12, but the ESR version of FF10 + // will be supported until FF19 (2/12/13), at which time, ESR becomes FF17. + // FF10 still uses prefixes, so check for it until then. + // for more ESR info, see: mozilla.org/en-US/firefox/organizations/faq/ + tests['websockets'] = function() { + return 'WebSocket' in window || 'MozWebSocket' in window; + }; + + + // css-tricks.com/rgba-browser-support/ + tests['rgba'] = function() { + // Set an rgba() color and check the returned value + + setCss('background-color:rgba(150,255,150,.5)'); + + return contains(mStyle.backgroundColor, 'rgba'); + }; + + tests['hsla'] = function() { + // Same as rgba(), in fact, browsers re-map hsla() to rgba() internally, + // except IE9 who retains it as hsla + + setCss('background-color:hsla(120,40%,100%,.5)'); + + return contains(mStyle.backgroundColor, 'rgba') || contains(mStyle.backgroundColor, 'hsla'); + }; + + tests['multiplebgs'] = function() { + // Setting multiple images AND a color on the background shorthand property + // and then querying the style.background property value for the number of + // occurrences of "url(" is a reliable method for detecting ACTUAL support for this! + + setCss('background:url(https://),url(https://),red url(https://)'); + + // If the UA supports multiple backgrounds, there should be three occurrences + // of the string "url(" in the return value for elemStyle.background + + return (/(url\s*\(.*?){3}/).test(mStyle.background); + }; + + + + // this will false positive in Opera Mini + // github.com/Modernizr/Modernizr/issues/396 + + tests['backgroundsize'] = function() { + return testPropsAll('backgroundSize'); + }; + + tests['borderimage'] = function() { + return testPropsAll('borderImage'); + }; + + + // Super comprehensive table about all the unique implementations of + // border-radius: muddledramblings.com/table-of-css3-border-radius-compliance + + tests['borderradius'] = function() { + return testPropsAll('borderRadius'); + }; + + // WebOS unfortunately false positives on this test. + tests['boxshadow'] = function() { + return testPropsAll('boxShadow'); + }; + + // FF3.0 will false positive on this test + tests['textshadow'] = function() { + return document.createElement('div').style.textShadow === ''; + }; + + + tests['opacity'] = function() { + // Browsers that actually have CSS Opacity implemented have done so + // according to spec, which means their return values are within the + // range of [0.0,1.0] - including the leading zero. + + setCssAll('opacity:.55'); + + // The non-literal . in this regex is intentional: + // German Chrome returns this value as 0,55 + // github.com/Modernizr/Modernizr/issues/#issue/59/comment/516632 + return (/^0.55$/).test(mStyle.opacity); + }; + + + // Note, Android < 4 will pass this test, but can only animate + // a single property at a time + // daneden.me/2011/12/putting-up-with-androids-bullshit/ + tests['cssanimations'] = function() { + return testPropsAll('animationName'); + }; + + + tests['csscolumns'] = function() { + return testPropsAll('columnCount'); + }; + + + tests['cssgradients'] = function() { + /** + * For CSS Gradients syntax, please see: + * webkit.org/blog/175/introducing-css-gradients/ + * developer.mozilla.org/en/CSS/-moz-linear-gradient + * developer.mozilla.org/en/CSS/-moz-radial-gradient + * dev.w3.org/csswg/css3-images/#gradients- + */ + + var str1 = 'background-image:', + str2 = 'gradient(linear,left top,right bottom,from(#9f9),to(white));', + str3 = 'linear-gradient(left top,#9f9, white);'; + + setCss( + // legacy webkit syntax (FIXME: remove when syntax not in use anymore) + (str1 + '-webkit- '.split(' ').join(str2 + str1) + + // standard syntax // trailing 'background-image:' + prefixes.join(str3 + str1)).slice(0, -str1.length) + ); + + return contains(mStyle.backgroundImage, 'gradient'); + }; + + + tests['cssreflections'] = function() { + return testPropsAll('boxReflect'); + }; + + + tests['csstransforms'] = function() { + return !!testPropsAll('transform'); + }; + + + tests['csstransforms3d'] = function() { + + var ret = !!testPropsAll('perspective'); + + // Webkit's 3D transforms are passed off to the browser's own graphics renderer. + // It works fine in Safari on Leopard and Snow Leopard, but not in Chrome in + // some conditions. As a result, Webkit typically recognizes the syntax but + // will sometimes throw a false positive, thus we must do a more thorough check: + if ( ret && 'webkitPerspective' in docElement.style ) { + + // Webkit allows this media query to succeed only if the feature is enabled. + // `@media (transform-3d),(-webkit-transform-3d){ ... }` + injectElementWithStyles('@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}', function( node, rule ) { + ret = node.offsetLeft === 9 && node.offsetHeight === 3; + }); + } + return ret; + }; + + + tests['csstransitions'] = function() { + return testPropsAll('transition'); + }; + + + /*>>fontface*/ + // @font-face detection routine by Diego Perini + // javascript.nwbox.com/CSSSupport/ + + // false positives: + // WebOS github.com/Modernizr/Modernizr/issues/342 + // WP7 github.com/Modernizr/Modernizr/issues/538 + tests['fontface'] = function() { + var bool; + + injectElementWithStyles('@font-face {font-family:"font";src:url("https://")}', function( node, rule ) { + var style = document.getElementById('smodernizr'), + sheet = style.sheet || style.styleSheet, + cssText = sheet ? (sheet.cssRules && sheet.cssRules[0] ? sheet.cssRules[0].cssText : sheet.cssText || '') : ''; + + bool = /src/i.test(cssText) && cssText.indexOf(rule.split(' ')[0]) === 0; + }); + + return bool; + }; + /*>>fontface*/ + + // CSS generated content detection + tests['generatedcontent'] = function() { + var bool; + + injectElementWithStyles(['#',mod,'{font:0/0 a}#',mod,':after{content:"',smile,'";visibility:hidden;font:3px/1 a}'].join(''), function( node ) { + bool = node.offsetHeight >= 3; + }); + + return bool; + }; + + + + // These tests evaluate support of the video/audio elements, as well as + // testing what types of content they support. + // + // We're using the Boolean constructor here, so that we can extend the value + // e.g. Modernizr.video // true + // Modernizr.video.ogg // 'probably' + // + // Codec values from : github.com/NielsLeenheer/html5test/blob/9106a8/index.html#L845 + // thx to NielsLeenheer and zcorpan + + // Note: in some older browsers, "no" was a return value instead of empty string. + // It was live in FF3.5.0 and 3.5.1, but fixed in 3.5.2 + // It was also live in Safari 4.0.0 - 4.0.4, but fixed in 4.0.5 + + tests['video'] = function() { + var elem = document.createElement('video'), + bool = false; + + // IE9 Running on Windows Server SKU can cause an exception to be thrown, bug #224 + try { + if ( bool = !!elem.canPlayType ) { + bool = new Boolean(bool); + bool.ogg = elem.canPlayType('video/ogg; codecs="theora"') .replace(/^no$/,''); + + // Without QuickTime, this value will be `undefined`. github.com/Modernizr/Modernizr/issues/546 + bool.h264 = elem.canPlayType('video/mp4; codecs="avc1.42E01E"') .replace(/^no$/,''); + + bool.webm = elem.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,''); + } + + } catch(e) { } + + return bool; + }; + + tests['audio'] = function() { + var elem = document.createElement('audio'), + bool = false; + + try { + if ( bool = !!elem.canPlayType ) { + bool = new Boolean(bool); + bool.ogg = elem.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,''); + bool.mp3 = elem.canPlayType('audio/mpeg;') .replace(/^no$/,''); + + // Mimetypes accepted: + // developer.mozilla.org/En/Media_formats_supported_by_the_audio_and_video_elements + // bit.ly/iphoneoscodecs + bool.wav = elem.canPlayType('audio/wav; codecs="1"') .replace(/^no$/,''); + bool.m4a = ( elem.canPlayType('audio/x-m4a;') || + elem.canPlayType('audio/aac;')) .replace(/^no$/,''); + } + } catch(e) { } + + return bool; + }; + + + // In FF4, if disabled, window.localStorage should === null. + + // Normally, we could not test that directly and need to do a + // `('localStorage' in window) && ` test first because otherwise Firefox will + // throw bugzil.la/365772 if cookies are disabled + + // Also in iOS5 Private Browsing mode, attempting to use localStorage.setItem + // will throw the exception: + // QUOTA_EXCEEDED_ERRROR DOM Exception 22. + // Peculiarly, getItem and removeItem calls do not throw. + + // Because we are forced to try/catch this, we'll go aggressive. + + // Just FWIW: IE8 Compat mode supports these features completely: + // www.quirksmode.org/dom/html5.html + // But IE8 doesn't support either with local files + + tests['localstorage'] = function() { + try { + localStorage.setItem(mod, mod); + localStorage.removeItem(mod); + return true; + } catch(e) { + return false; + } + }; + + tests['sessionstorage'] = function() { + try { + sessionStorage.setItem(mod, mod); + sessionStorage.removeItem(mod); + return true; + } catch(e) { + return false; + } + }; + + + tests['webworkers'] = function() { + return !!window.Worker; + }; + + + tests['applicationcache'] = function() { + return !!window.applicationCache; + }; + + + // Thanks to Erik Dahlstrom + tests['svg'] = function() { + return !!document.createElementNS && !!document.createElementNS(ns.svg, 'svg').createSVGRect; + }; + + // specifically for SVG inline in HTML, not within XHTML + // test page: paulirish.com/demo/inline-svg + tests['inlinesvg'] = function() { + var div = document.createElement('div'); + div.innerHTML = '<svg/>'; + return (div.firstChild && div.firstChild.namespaceURI) == ns.svg; + }; + + // SVG SMIL animation + tests['smil'] = function() { + return !!document.createElementNS && /SVGAnimate/.test(toString.call(document.createElementNS(ns.svg, 'animate'))); + }; + + // This test is only for clip paths in SVG proper, not clip paths on HTML content + // demo: srufaculty.sru.edu/david.dailey/svg/newstuff/clipPath4.svg + + // However read the comments to dig into applying SVG clippaths to HTML content here: + // github.com/Modernizr/Modernizr/issues/213#issuecomment-1149491 + tests['svgclippaths'] = function() { + return !!document.createElementNS && /SVGClipPath/.test(toString.call(document.createElementNS(ns.svg, 'clipPath'))); + }; + + /*>>webforms*/ + // input features and input types go directly onto the ret object, bypassing the tests loop. + // Hold this guy to execute in a moment. + function webforms() { + /*>>input*/ + // Run through HTML5's new input attributes to see if the UA understands any. + // We're using f which is the <input> element created early on + // Mike Taylr has created a comprehensive resource for testing these attributes + // when applied to all input types: + // miketaylr.com/code/input-type-attr.html + // spec: www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary + + // Only input placeholder is tested while textarea's placeholder is not. + // Currently Safari 4 and Opera 11 have support only for the input placeholder + // Both tests are available in feature-detects/forms-placeholder.js + Modernizr['input'] = (function( props ) { + for ( var i = 0, len = props.length; i < len; i++ ) { + attrs[ props[i] ] = !!(props[i] in inputElem); + } + if (attrs.list){ + // safari false positive's on datalist: webk.it/74252 + // see also github.com/Modernizr/Modernizr/issues/146 + attrs.list = !!(document.createElement('datalist') && window.HTMLDataListElement); + } + return attrs; + })('autocomplete autofocus list placeholder max min multiple pattern required step'.split(' ')); + /*>>input*/ + + /*>>inputtypes*/ + // Run through HTML5's new input types to see if the UA understands any. + // This is put behind the tests runloop because it doesn't return a + // true/false like all the other tests; instead, it returns an object + // containing each input type with its corresponding true/false value + + // Big thanks to @miketaylr for the html5 forms expertise. miketaylr.com/ + Modernizr['inputtypes'] = (function(props) { + + for ( var i = 0, bool, inputElemType, defaultView, len = props.length; i < len; i++ ) { + + inputElem.setAttribute('type', inputElemType = props[i]); + bool = inputElem.type !== 'text'; + + // We first check to see if the type we give it sticks.. + // If the type does, we feed it a textual value, which shouldn't be valid. + // If the value doesn't stick, we know there's input sanitization which infers a custom UI + if ( bool ) { + + inputElem.value = smile; + inputElem.style.cssText = 'position:absolute;visibility:hidden;'; + + if ( /^range$/.test(inputElemType) && inputElem.style.WebkitAppearance !== undefined ) { + + docElement.appendChild(inputElem); + defaultView = document.defaultView; + + // Safari 2-4 allows the smiley as a value, despite making a slider + bool = defaultView.getComputedStyle && + defaultView.getComputedStyle(inputElem, null).WebkitAppearance !== 'textfield' && + // Mobile android web browser has false positive, so must + // check the height to see if the widget is actually there. + (inputElem.offsetHeight !== 0); + + docElement.removeChild(inputElem); + + } else if ( /^(search|tel)$/.test(inputElemType) ){ + // Spec doesn't define any special parsing or detectable UI + // behaviors so we pass these through as true + + // Interestingly, opera fails the earlier test, so it doesn't + // even make it here. + + } else if ( /^(url|email)$/.test(inputElemType) ) { + // Real url and email support comes with prebaked validation. + bool = inputElem.checkValidity && inputElem.checkValidity() === false; + + } else { + // If the upgraded input compontent rejects the :) text, we got a winner + bool = inputElem.value != smile; + } + } + + inputs[ props[i] ] = !!bool; + } + return inputs; + })('search tel url email datetime date month week time datetime-local number range color'.split(' ')); + /*>>inputtypes*/ + } + /*>>webforms*/ + + + // End of test definitions + // ----------------------- + + + + // Run through all tests and detect their support in the current UA. + // todo: hypothetically we could be doing an array of tests and use a basic loop here. + for ( var feature in tests ) { + if ( hasOwnProp(tests, feature) ) { + // run the test, throw the return value into the Modernizr, + // then based on that boolean, define an appropriate className + // and push it into an array of classes we'll join later. + featureName = feature.toLowerCase(); + Modernizr[featureName] = tests[feature](); + + classes.push((Modernizr[featureName] ? '' : 'no-') + featureName); + } + } + + /*>>webforms*/ + // input tests need to run. + Modernizr.input || webforms(); + /*>>webforms*/ + + + /** + * addTest allows the user to define their own feature tests + * the result will be added onto the Modernizr object, + * as well as an appropriate className set on the html element + * + * @param feature - String naming the feature + * @param test - Function returning true if feature is supported, false if not + */ + Modernizr.addTest = function ( feature, test ) { + if ( typeof feature == 'object' ) { + for ( var key in feature ) { + if ( hasOwnProp( feature, key ) ) { + Modernizr.addTest( key, feature[ key ] ); + } + } + } else { + + feature = feature.toLowerCase(); + + if ( Modernizr[feature] !== undefined ) { + // we're going to quit if you're trying to overwrite an existing test + // if we were to allow it, we'd do this: + // var re = new RegExp("\\b(no-)?" + feature + "\\b"); + // docElement.className = docElement.className.replace( re, '' ); + // but, no rly, stuff 'em. + return Modernizr; + } + + test = typeof test == 'function' ? test() : test; + + if (typeof enableClasses !== "undefined" && enableClasses) { + docElement.className += ' ' + (test ? '' : 'no-') + feature; + } + Modernizr[feature] = test; + + } + + return Modernizr; // allow chaining. + }; + + + // Reset modElem.cssText to nothing to reduce memory footprint. + setCss(''); + modElem = inputElem = null; + + /*>>shiv*/ + /*! HTML5 Shiv v3.6.1 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed */ + ;(function(window, document) { + /*jshint evil:true */ + /** Preset options */ + var options = window.html5 || {}; + + /** Used to skip problem elements */ + var reSkip = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i; + + /** Not all elements can be cloned in IE **/ + var saveClones = /^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i; + + /** Detect whether the browser supports default html5 styles */ + var supportsHtml5Styles; + + /** Name of the expando, to work with multiple documents or to re-shiv one document */ + var expando = '_html5shiv'; + + /** The id for the the documents expando */ + var expanID = 0; + + /** Cached data for each document */ + var expandoData = {}; + + /** Detect whether the browser supports unknown elements */ + var supportsUnknownElements; + + (function() { + try { + var a = document.createElement('a'); + a.innerHTML = '<xyz></xyz>'; + //if the hidden property is implemented we can assume, that the browser supports basic HTML5 Styles + supportsHtml5Styles = ('hidden' in a); + + supportsUnknownElements = a.childNodes.length == 1 || (function() { + // assign a false positive if unable to shiv + (document.createElement)('a'); + var frag = document.createDocumentFragment(); + return ( + typeof frag.cloneNode == 'undefined' || + typeof frag.createDocumentFragment == 'undefined' || + typeof frag.createElement == 'undefined' + ); + }()); + } catch(e) { + supportsHtml5Styles = true; + supportsUnknownElements = true; + } + + }()); + + /*--------------------------------------------------------------------------*/ + + /** + * Creates a style sheet with the given CSS text and adds it to the document. + * @private + * @param {Document} ownerDocument The document. + * @param {String} cssText The CSS text. + * @returns {StyleSheet} The style element. + */ + function addStyleSheet(ownerDocument, cssText) { + var p = ownerDocument.createElement('p'), + parent = ownerDocument.getElementsByTagName('head')[0] || ownerDocument.documentElement; + + p.innerHTML = 'x<style>' + cssText + '</style>'; + return parent.insertBefore(p.lastChild, parent.firstChild); + } + + /** + * Returns the value of `html5.elements` as an array. + * @private + * @returns {Array} An array of shived element node names. + */ + function getElements() { + var elements = html5.elements; + return typeof elements == 'string' ? elements.split(' ') : elements; + } + + /** + * Returns the data associated to the given document + * @private + * @param {Document} ownerDocument The document. + * @returns {Object} An object of data. + */ + function getExpandoData(ownerDocument) { + var data = expandoData[ownerDocument[expando]]; + if (!data) { + data = {}; + expanID++; + ownerDocument[expando] = expanID; + expandoData[expanID] = data; + } + return data; + } + + /** + * returns a shived element for the given nodeName and document + * @memberOf html5 + * @param {String} nodeName name of the element + * @param {Document} ownerDocument The context document. + * @returns {Object} The shived element. + */ + function createElement(nodeName, ownerDocument, data){ + if (!ownerDocument) { + ownerDocument = document; + } + if(supportsUnknownElements){ + return ownerDocument.createElement(nodeName); + } + if (!data) { + data = getExpandoData(ownerDocument); + } + var node; + + if (data.cache[nodeName]) { + node = data.cache[nodeName].cloneNode(); + } else if (saveClones.test(nodeName)) { + node = (data.cache[nodeName] = data.createElem(nodeName)).cloneNode(); + } else { + node = data.createElem(nodeName); + } + + // Avoid adding some elements to fragments in IE < 9 because + // * Attributes like `name` or `type` cannot be set/changed once an element + // is inserted into a document/fragment + // * Link elements with `src` attributes that are inaccessible, as with + // a 403 response, will cause the tab/window to crash + // * Script elements appended to fragments will execute when their `src` + // or `text` property is set + return node.canHaveChildren && !reSkip.test(nodeName) ? data.frag.appendChild(node) : node; + } + + /** + * returns a shived DocumentFragment for the given document + * @memberOf html5 + * @param {Document} ownerDocument The context document. + * @returns {Object} The shived DocumentFragment. + */ + function createDocumentFragment(ownerDocument, data){ + if (!ownerDocument) { + ownerDocument = document; + } + if(supportsUnknownElements){ + return ownerDocument.createDocumentFragment(); + } + data = data || getExpandoData(ownerDocument); + var clone = data.frag.cloneNode(), + i = 0, + elems = getElements(), + l = elems.length; + for(;i<l;i++){ + clone.createElement(elems[i]); + } + return clone; + } + + /** + * Shivs the `createElement` and `createDocumentFragment` methods of the document. + * @private + * @param {Document|DocumentFragment} ownerDocument The document. + * @param {Object} data of the document. + */ + function shivMethods(ownerDocument, data) { + if (!data.cache) { + data.cache = {}; + data.createElem = ownerDocument.createElement; + data.createFrag = ownerDocument.createDocumentFragment; + data.frag = data.createFrag(); + } + + + ownerDocument.createElement = function(nodeName) { + //abort shiv + if (!html5.shivMethods) { + return data.createElem(nodeName); + } + return createElement(nodeName, ownerDocument, data); + }; + + ownerDocument.createDocumentFragment = Function('h,f', 'return function(){' + + 'var n=f.cloneNode(),c=n.createElement;' + + 'h.shivMethods&&(' + + // unroll the `createElement` calls + getElements().join().replace(/\w+/g, function(nodeName) { + data.createElem(nodeName); + data.frag.createElement(nodeName); + return 'c("' + nodeName + '")'; + }) + + ');return n}' + )(html5, data.frag); + } + + /*--------------------------------------------------------------------------*/ + + /** + * Shivs the given document. + * @memberOf html5 + * @param {Document} ownerDocument The document to shiv. + * @returns {Document} The shived document. + */ + function shivDocument(ownerDocument) { + if (!ownerDocument) { + ownerDocument = document; + } + var data = getExpandoData(ownerDocument); + + if (html5.shivCSS && !supportsHtml5Styles && !data.hasCSS) { + data.hasCSS = !!addStyleSheet(ownerDocument, + // corrects block display not defined in IE6/7/8/9 + 'article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}' + + // adds styling not present in IE6/7/8/9 + 'mark{background:#FF0;color:#000}' + ); + } + if (!supportsUnknownElements) { + shivMethods(ownerDocument, data); + } + return ownerDocument; + } + + /*--------------------------------------------------------------------------*/ + + /** + * The `html5` object is exposed so that more elements can be shived and + * existing shiving can be detected on iframes. + * @type Object + * @example + * + * // options can be changed before the script is included + * html5 = { 'elements': 'mark section', 'shivCSS': false, 'shivMethods': false }; + */ + var html5 = { + + /** + * An array or space separated string of node names of the elements to shiv. + * @memberOf html5 + * @type Array|String + */ + 'elements': options.elements || 'abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video', + + /** + * A flag to indicate that the HTML5 style sheet should be inserted. + * @memberOf html5 + * @type Boolean + */ + 'shivCSS': (options.shivCSS !== false), + + /** + * Is equal to true if a browser supports creating unknown/HTML5 elements + * @memberOf html5 + * @type boolean + */ + 'supportsUnknownElements': supportsUnknownElements, + + /** + * A flag to indicate that the document's `createElement` and `createDocumentFragment` + * methods should be overwritten. + * @memberOf html5 + * @type Boolean + */ + 'shivMethods': (options.shivMethods !== false), + + /** + * A string to describe the type of `html5` object ("default" or "default print"). + * @memberOf html5 + * @type String + */ + 'type': 'default', + + // shivs the document according to the specified `html5` object options + 'shivDocument': shivDocument, + + //creates a shived element + createElement: createElement, + + //creates a shived documentFragment + createDocumentFragment: createDocumentFragment + }; + + /*--------------------------------------------------------------------------*/ + + // expose html5 + window.html5 = html5; + + // shiv the document + shivDocument(document); + + }(this, document)); + /*>>shiv*/ + + // Assign private properties to the return object with prefix + Modernizr._version = version; + + // expose these for the plugin API. Look in the source for how to join() them against your input + /*>>prefixes*/ + Modernizr._prefixes = prefixes; + /*>>prefixes*/ + /*>>domprefixes*/ + Modernizr._domPrefixes = domPrefixes; + Modernizr._cssomPrefixes = cssomPrefixes; + /*>>domprefixes*/ + + /*>>mq*/ + // Modernizr.mq tests a given media query, live against the current state of the window + // A few important notes: + // * If a browser does not support media queries at all (eg. oldIE) the mq() will always return false + // * A max-width or orientation query will be evaluated against the current state, which may change later. + // * You must specify values. Eg. If you are testing support for the min-width media query use: + // Modernizr.mq('(min-width:0)') + // usage: + // Modernizr.mq('only screen and (max-width:768)') + Modernizr.mq = testMediaQuery; + /*>>mq*/ + + /*>>hasevent*/ + // Modernizr.hasEvent() detects support for a given event, with an optional element to test on + // Modernizr.hasEvent('gesturestart', elem) + Modernizr.hasEvent = isEventSupported; + /*>>hasevent*/ + + /*>>testprop*/ + // Modernizr.testProp() investigates whether a given style property is recognized + // Note that the property names must be provided in the camelCase variant. + // Modernizr.testProp('pointerEvents') + Modernizr.testProp = function(prop){ + return testProps([prop]); + }; + /*>>testprop*/ + + /*>>testallprops*/ + // Modernizr.testAllProps() investigates whether a given style property, + // or any of its vendor-prefixed variants, is recognized + // Note that the property names must be provided in the camelCase variant. + // Modernizr.testAllProps('boxSizing') + Modernizr.testAllProps = testPropsAll; + /*>>testallprops*/ + + + /*>>teststyles*/ + // Modernizr.testStyles() allows you to add custom styles to the document and test an element afterwards + // Modernizr.testStyles('#modernizr { position:absolute }', function(elem, rule){ ... }) + Modernizr.testStyles = injectElementWithStyles; + /*>>teststyles*/ + + + /*>>prefixed*/ + // Modernizr.prefixed() returns the prefixed or nonprefixed property name variant of your input + // Modernizr.prefixed('boxSizing') // 'MozBoxSizing' + + // Properties must be passed as dom-style camelcase, rather than `box-sizing` hypentated style. + // Return values will also be the camelCase variant, if you need to translate that to hypenated style use: + // + // str.replace(/([A-Z])/g, function(str,m1){ return '-' + m1.toLowerCase(); }).replace(/^ms-/,'-ms-'); + + // If you're trying to ascertain which transition end event to bind to, you might do something like... + // + // var transEndEventNames = { + // 'WebkitTransition' : 'webkitTransitionEnd', + // 'MozTransition' : 'transitionend', + // 'OTransition' : 'oTransitionEnd', + // 'msTransition' : 'MSTransitionEnd', + // 'transition' : 'transitionend' + // }, + // transEndEventName = transEndEventNames[ Modernizr.prefixed('transition') ]; + + Modernizr.prefixed = function(prop, obj, elem){ + if(!obj) { + return testPropsAll(prop, 'pfx'); + } else { + // Testing DOM property e.g. Modernizr.prefixed('requestAnimationFrame', window) // 'mozRequestAnimationFrame' + return testPropsAll(prop, obj, elem); + } + }; + /*>>prefixed*/ + + + /*>>cssclasses*/ + // Remove "no-js" class from <html> element, if it exists: + docElement.className = docElement.className.replace(/(^|\s)no-js(\s|$)/, '$1$2') + + + // Add the new classes to the <html> element. + (enableClasses ? ' js ' + classes.join(' ') : ''); + /*>>cssclasses*/ + + return Modernizr; + +})(this, this.document); diff --git a/Mobile.WYSIWYG/Scripts/modernizr-2.8.3.js b/Mobile.WYSIWYG/Scripts/modernizr-2.8.3.js new file mode 100644 index 0000000..3365339 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/modernizr-2.8.3.js @@ -0,0 +1,1406 @@ +/*! + * Modernizr v2.8.3 + * www.modernizr.com + * + * Copyright (c) Faruk Ates, Paul Irish, Alex Sexton + * Available under the BSD and MIT licenses: www.modernizr.com/license/ + */ + +/* + * Modernizr tests which native CSS3 and HTML5 features are available in + * the current UA and makes the results available to you in two ways: + * as properties on a global Modernizr object, and as classes on the + * <html> element. This information allows you to progressively enhance + * your pages with a granular level of control over the experience. + * + * Modernizr has an optional (not included) conditional resource loader + * called Modernizr.load(), based on Yepnope.js (yepnopejs.com). + * To get a build that includes Modernizr.load(), as well as choosing + * which tests to include, go to www.modernizr.com/download/ + * + * Authors Faruk Ates, Paul Irish, Alex Sexton + * Contributors Ryan Seddon, Ben Alman + */ + +window.Modernizr = (function( window, document, undefined ) { + + var version = '2.8.3', + + Modernizr = {}, + + /*>>cssclasses*/ + // option for enabling the HTML classes to be added + enableClasses = true, + /*>>cssclasses*/ + + docElement = document.documentElement, + + /** + * Create our "modernizr" element that we do most feature tests on. + */ + mod = 'modernizr', + modElem = document.createElement(mod), + mStyle = modElem.style, + + /** + * Create the input element for various Web Forms feature tests. + */ + inputElem /*>>inputelem*/ = document.createElement('input') /*>>inputelem*/ , + + /*>>smile*/ + smile = ':)', + /*>>smile*/ + + toString = {}.toString, + + // TODO :: make the prefixes more granular + /*>>prefixes*/ + // List of property values to set for css tests. See ticket #21 + prefixes = ' -webkit- -moz- -o- -ms- '.split(' '), + /*>>prefixes*/ + + /*>>domprefixes*/ + // Following spec is to expose vendor-specific style properties as: + // elem.style.WebkitBorderRadius + // and the following would be incorrect: + // elem.style.webkitBorderRadius + + // Webkit ghosts their properties in lowercase but Opera & Moz do not. + // Microsoft uses a lowercase `ms` instead of the correct `Ms` in IE8+ + // erik.eae.net/archives/2008/03/10/21.48.10/ + + // More here: github.com/Modernizr/Modernizr/issues/issue/21 + omPrefixes = 'Webkit Moz O ms', + + cssomPrefixes = omPrefixes.split(' '), + + domPrefixes = omPrefixes.toLowerCase().split(' '), + /*>>domprefixes*/ + + /*>>ns*/ + ns = {'svg': 'http://www.w3.org/2000/svg'}, + /*>>ns*/ + + tests = {}, + inputs = {}, + attrs = {}, + + classes = [], + + slice = classes.slice, + + featureName, // used in testing loop + + + /*>>teststyles*/ + // Inject element with style element and some CSS rules + injectElementWithStyles = function( rule, callback, nodes, testnames ) { + + var style, ret, node, docOverflow, + div = document.createElement('div'), + // After page load injecting a fake body doesn't work so check if body exists + body = document.body, + // IE6 and 7 won't return offsetWidth or offsetHeight unless it's in the body element, so we fake it. + fakeBody = body || document.createElement('body'); + + if ( parseInt(nodes, 10) ) { + // In order not to give false positives we create a node for each test + // This also allows the method to scale for unspecified uses + while ( nodes-- ) { + node = document.createElement('div'); + node.id = testnames ? testnames[nodes] : mod + (nodes + 1); + div.appendChild(node); + } + } + + // <style> elements in IE6-9 are considered 'NoScope' elements and therefore will be removed + // when injected with innerHTML. To get around this you need to prepend the 'NoScope' element + // with a 'scoped' element, in our case the soft-hyphen entity as it won't mess with our measurements. + // msdn.microsoft.com/en-us/library/ms533897%28VS.85%29.aspx + // Documents served as xml will throw if using ­ so use xml friendly encoded version. See issue #277 + style = ['­','<style id="s', mod, '">', rule, '</style>'].join(''); + div.id = mod; + // IE6 will false positive on some tests due to the style element inside the test div somehow interfering offsetHeight, so insert it into body or fakebody. + // Opera will act all quirky when injecting elements in documentElement when page is served as xml, needs fakebody too. #270 + (body ? div : fakeBody).innerHTML += style; + fakeBody.appendChild(div); + if ( !body ) { + //avoid crashing IE8, if background image is used + fakeBody.style.background = ''; + //Safari 5.13/5.1.4 OSX stops loading if ::-webkit-scrollbar is used and scrollbars are visible + fakeBody.style.overflow = 'hidden'; + docOverflow = docElement.style.overflow; + docElement.style.overflow = 'hidden'; + docElement.appendChild(fakeBody); + } + + ret = callback(div, rule); + // If this is done after page load we don't want to remove the body so check if body exists + if ( !body ) { + fakeBody.parentNode.removeChild(fakeBody); + docElement.style.overflow = docOverflow; + } else { + div.parentNode.removeChild(div); + } + + return !!ret; + + }, + /*>>teststyles*/ + + /*>>mq*/ + // adapted from matchMedia polyfill + // by Scott Jehl and Paul Irish + // gist.github.com/786768 + testMediaQuery = function( mq ) { + + var matchMedia = window.matchMedia || window.msMatchMedia; + if ( matchMedia ) { + return matchMedia(mq) && matchMedia(mq).matches || false; + } + + var bool; + + injectElementWithStyles('@media ' + mq + ' { #' + mod + ' { position: absolute; } }', function( node ) { + bool = (window.getComputedStyle ? + getComputedStyle(node, null) : + node.currentStyle)['position'] == 'absolute'; + }); + + return bool; + + }, + /*>>mq*/ + + + /*>>hasevent*/ + // + // isEventSupported determines if a given element supports the given event + // kangax.github.com/iseventsupported/ + // + // The following results are known incorrects: + // Modernizr.hasEvent("webkitTransitionEnd", elem) // false negative + // Modernizr.hasEvent("textInput") // in Webkit. github.com/Modernizr/Modernizr/issues/333 + // ... + isEventSupported = (function() { + + var TAGNAMES = { + 'select': 'input', 'change': 'input', + 'submit': 'form', 'reset': 'form', + 'error': 'img', 'load': 'img', 'abort': 'img' + }; + + function isEventSupported( eventName, element ) { + + element = element || document.createElement(TAGNAMES[eventName] || 'div'); + eventName = 'on' + eventName; + + // When using `setAttribute`, IE skips "unload", WebKit skips "unload" and "resize", whereas `in` "catches" those + var isSupported = eventName in element; + + if ( !isSupported ) { + // If it has no `setAttribute` (i.e. doesn't implement Node interface), try generic element + if ( !element.setAttribute ) { + element = document.createElement('div'); + } + if ( element.setAttribute && element.removeAttribute ) { + element.setAttribute(eventName, ''); + isSupported = is(element[eventName], 'function'); + + // If property was created, "remove it" (by setting value to `undefined`) + if ( !is(element[eventName], 'undefined') ) { + element[eventName] = undefined; + } + element.removeAttribute(eventName); + } + } + + element = null; + return isSupported; + } + return isEventSupported; + })(), + /*>>hasevent*/ + + // TODO :: Add flag for hasownprop ? didn't last time + + // hasOwnProperty shim by kangax needed for Safari 2.0 support + _hasOwnProperty = ({}).hasOwnProperty, hasOwnProp; + + if ( !is(_hasOwnProperty, 'undefined') && !is(_hasOwnProperty.call, 'undefined') ) { + hasOwnProp = function (object, property) { + return _hasOwnProperty.call(object, property); + }; + } + else { + hasOwnProp = function (object, property) { /* yes, this can give false positives/negatives, but most of the time we don't care about those */ + return ((property in object) && is(object.constructor.prototype[property], 'undefined')); + }; + } + + // Adapted from ES5-shim https://github.com/kriskowal/es5-shim/blob/master/es5-shim.js + // es5.github.com/#x15.3.4.5 + + if (!Function.prototype.bind) { + Function.prototype.bind = function bind(that) { + + var target = this; + + if (typeof target != "function") { + throw new TypeError(); + } + + var args = slice.call(arguments, 1), + bound = function () { + + if (this instanceof bound) { + + var F = function(){}; + F.prototype = target.prototype; + var self = new F(); + + var result = target.apply( + self, + args.concat(slice.call(arguments)) + ); + if (Object(result) === result) { + return result; + } + return self; + + } else { + + return target.apply( + that, + args.concat(slice.call(arguments)) + ); + + } + + }; + + return bound; + }; + } + + /** + * setCss applies given styles to the Modernizr DOM node. + */ + function setCss( str ) { + mStyle.cssText = str; + } + + /** + * setCssAll extrapolates all vendor-specific css strings. + */ + function setCssAll( str1, str2 ) { + return setCss(prefixes.join(str1 + ';') + ( str2 || '' )); + } + + /** + * is returns a boolean for if typeof obj is exactly type. + */ + function is( obj, type ) { + return typeof obj === type; + } + + /** + * contains returns a boolean for if substr is found within str. + */ + function contains( str, substr ) { + return !!~('' + str).indexOf(substr); + } + + /*>>testprop*/ + + // testProps is a generic CSS / DOM property test. + + // In testing support for a given CSS property, it's legit to test: + // `elem.style[styleName] !== undefined` + // If the property is supported it will return an empty string, + // if unsupported it will return undefined. + + // We'll take advantage of this quick test and skip setting a style + // on our modernizr element, but instead just testing undefined vs + // empty string. + + // Because the testing of the CSS property names (with "-", as + // opposed to the camelCase DOM properties) is non-portable and + // non-standard but works in WebKit and IE (but not Gecko or Opera), + // we explicitly reject properties with dashes so that authors + // developing in WebKit or IE first don't end up with + // browser-specific content by accident. + + function testProps( props, prefixed ) { + for ( var i in props ) { + var prop = props[i]; + if ( !contains(prop, "-") && mStyle[prop] !== undefined ) { + return prefixed == 'pfx' ? prop : true; + } + } + return false; + } + /*>>testprop*/ + + // TODO :: add testDOMProps + /** + * testDOMProps is a generic DOM property test; if a browser supports + * a certain property, it won't return undefined for it. + */ + function testDOMProps( props, obj, elem ) { + for ( var i in props ) { + var item = obj[props[i]]; + if ( item !== undefined) { + + // return the property name as a string + if (elem === false) return props[i]; + + // let's bind a function + if (is(item, 'function')){ + // default to autobind unless override + return item.bind(elem || obj); + } + + // return the unbound function or obj or value + return item; + } + } + return false; + } + + /*>>testallprops*/ + /** + * testPropsAll tests a list of DOM properties we want to check against. + * We specify literally ALL possible (known and/or likely) properties on + * the element including the non-vendor prefixed one, for forward- + * compatibility. + */ + function testPropsAll( prop, prefixed, elem ) { + + var ucProp = prop.charAt(0).toUpperCase() + prop.slice(1), + props = (prop + ' ' + cssomPrefixes.join(ucProp + ' ') + ucProp).split(' '); + + // did they call .prefixed('boxSizing') or are we just testing a prop? + if(is(prefixed, "string") || is(prefixed, "undefined")) { + return testProps(props, prefixed); + + // otherwise, they called .prefixed('requestAnimationFrame', window[, elem]) + } else { + props = (prop + ' ' + (domPrefixes).join(ucProp + ' ') + ucProp).split(' '); + return testDOMProps(props, prefixed, elem); + } + } + /*>>testallprops*/ + + + /** + * Tests + * ----- + */ + + // The *new* flexbox + // dev.w3.org/csswg/css3-flexbox + + tests['flexbox'] = function() { + return testPropsAll('flexWrap'); + }; + + // The *old* flexbox + // www.w3.org/TR/2009/WD-css3-flexbox-20090723/ + + tests['flexboxlegacy'] = function() { + return testPropsAll('boxDirection'); + }; + + // On the S60 and BB Storm, getContext exists, but always returns undefined + // so we actually have to call getContext() to verify + // github.com/Modernizr/Modernizr/issues/issue/97/ + + tests['canvas'] = function() { + var elem = document.createElement('canvas'); + return !!(elem.getContext && elem.getContext('2d')); + }; + + tests['canvastext'] = function() { + return !!(Modernizr['canvas'] && is(document.createElement('canvas').getContext('2d').fillText, 'function')); + }; + + // webk.it/70117 is tracking a legit WebGL feature detect proposal + + // We do a soft detect which may false positive in order to avoid + // an expensive context creation: bugzil.la/732441 + + tests['webgl'] = function() { + return !!window.WebGLRenderingContext; + }; + + /* + * The Modernizr.touch test only indicates if the browser supports + * touch events, which does not necessarily reflect a touchscreen + * device, as evidenced by tablets running Windows 7 or, alas, + * the Palm Pre / WebOS (touch) phones. + * + * Additionally, Chrome (desktop) used to lie about its support on this, + * but that has since been rectified: crbug.com/36415 + * + * We also test for Firefox 4 Multitouch Support. + * + * For more info, see: modernizr.github.com/Modernizr/touch.html + */ + + tests['touch'] = function() { + var bool; + + if(('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch) { + bool = true; + } else { + injectElementWithStyles(['@media (',prefixes.join('touch-enabled),('),mod,')','{#modernizr{top:9px;position:absolute}}'].join(''), function( node ) { + bool = node.offsetTop === 9; + }); + } + + return bool; + }; + + + // geolocation is often considered a trivial feature detect... + // Turns out, it's quite tricky to get right: + // + // Using !!navigator.geolocation does two things we don't want. It: + // 1. Leaks memory in IE9: github.com/Modernizr/Modernizr/issues/513 + // 2. Disables page caching in WebKit: webk.it/43956 + // + // Meanwhile, in Firefox < 8, an about:config setting could expose + // a false positive that would throw an exception: bugzil.la/688158 + + tests['geolocation'] = function() { + return 'geolocation' in navigator; + }; + + + tests['postmessage'] = function() { + return !!window.postMessage; + }; + + + // Chrome incognito mode used to throw an exception when using openDatabase + // It doesn't anymore. + tests['websqldatabase'] = function() { + return !!window.openDatabase; + }; + + // Vendors had inconsistent prefixing with the experimental Indexed DB: + // - Webkit's implementation is accessible through webkitIndexedDB + // - Firefox shipped moz_indexedDB before FF4b9, but since then has been mozIndexedDB + // For speed, we don't test the legacy (and beta-only) indexedDB + tests['indexedDB'] = function() { + return !!testPropsAll("indexedDB", window); + }; + + // documentMode logic from YUI to filter out IE8 Compat Mode + // which false positives. + tests['hashchange'] = function() { + return isEventSupported('hashchange', window) && (document.documentMode === undefined || document.documentMode > 7); + }; + + // Per 1.6: + // This used to be Modernizr.historymanagement but the longer + // name has been deprecated in favor of a shorter and property-matching one. + // The old API is still available in 1.6, but as of 2.0 will throw a warning, + // and in the first release thereafter disappear entirely. + tests['history'] = function() { + return !!(window.history && history.pushState); + }; + + tests['draganddrop'] = function() { + var div = document.createElement('div'); + return ('draggable' in div) || ('ondragstart' in div && 'ondrop' in div); + }; + + // FF3.6 was EOL'ed on 4/24/12, but the ESR version of FF10 + // will be supported until FF19 (2/12/13), at which time, ESR becomes FF17. + // FF10 still uses prefixes, so check for it until then. + // for more ESR info, see: mozilla.org/en-US/firefox/organizations/faq/ + tests['websockets'] = function() { + return 'WebSocket' in window || 'MozWebSocket' in window; + }; + + + // css-tricks.com/rgba-browser-support/ + tests['rgba'] = function() { + // Set an rgba() color and check the returned value + + setCss('background-color:rgba(150,255,150,.5)'); + + return contains(mStyle.backgroundColor, 'rgba'); + }; + + tests['hsla'] = function() { + // Same as rgba(), in fact, browsers re-map hsla() to rgba() internally, + // except IE9 who retains it as hsla + + setCss('background-color:hsla(120,40%,100%,.5)'); + + return contains(mStyle.backgroundColor, 'rgba') || contains(mStyle.backgroundColor, 'hsla'); + }; + + tests['multiplebgs'] = function() { + // Setting multiple images AND a color on the background shorthand property + // and then querying the style.background property value for the number of + // occurrences of "url(" is a reliable method for detecting ACTUAL support for this! + + setCss('background:url(https://),url(https://),red url(https://)'); + + // If the UA supports multiple backgrounds, there should be three occurrences + // of the string "url(" in the return value for elemStyle.background + + return (/(url\s*\(.*?){3}/).test(mStyle.background); + }; + + + + // this will false positive in Opera Mini + // github.com/Modernizr/Modernizr/issues/396 + + tests['backgroundsize'] = function() { + return testPropsAll('backgroundSize'); + }; + + tests['borderimage'] = function() { + return testPropsAll('borderImage'); + }; + + + // Super comprehensive table about all the unique implementations of + // border-radius: muddledramblings.com/table-of-css3-border-radius-compliance + + tests['borderradius'] = function() { + return testPropsAll('borderRadius'); + }; + + // WebOS unfortunately false positives on this test. + tests['boxshadow'] = function() { + return testPropsAll('boxShadow'); + }; + + // FF3.0 will false positive on this test + tests['textshadow'] = function() { + return document.createElement('div').style.textShadow === ''; + }; + + + tests['opacity'] = function() { + // Browsers that actually have CSS Opacity implemented have done so + // according to spec, which means their return values are within the + // range of [0.0,1.0] - including the leading zero. + + setCssAll('opacity:.55'); + + // The non-literal . in this regex is intentional: + // German Chrome returns this value as 0,55 + // github.com/Modernizr/Modernizr/issues/#issue/59/comment/516632 + return (/^0.55$/).test(mStyle.opacity); + }; + + + // Note, Android < 4 will pass this test, but can only animate + // a single property at a time + // goo.gl/v3V4Gp + tests['cssanimations'] = function() { + return testPropsAll('animationName'); + }; + + + tests['csscolumns'] = function() { + return testPropsAll('columnCount'); + }; + + + tests['cssgradients'] = function() { + /** + * For CSS Gradients syntax, please see: + * webkit.org/blog/175/introducing-css-gradients/ + * developer.mozilla.org/en/CSS/-moz-linear-gradient + * developer.mozilla.org/en/CSS/-moz-radial-gradient + * dev.w3.org/csswg/css3-images/#gradients- + */ + + var str1 = 'background-image:', + str2 = 'gradient(linear,left top,right bottom,from(#9f9),to(white));', + str3 = 'linear-gradient(left top,#9f9, white);'; + + setCss( + // legacy webkit syntax (FIXME: remove when syntax not in use anymore) + (str1 + '-webkit- '.split(' ').join(str2 + str1) + + // standard syntax // trailing 'background-image:' + prefixes.join(str3 + str1)).slice(0, -str1.length) + ); + + return contains(mStyle.backgroundImage, 'gradient'); + }; + + + tests['cssreflections'] = function() { + return testPropsAll('boxReflect'); + }; + + + tests['csstransforms'] = function() { + return !!testPropsAll('transform'); + }; + + + tests['csstransforms3d'] = function() { + + var ret = !!testPropsAll('perspective'); + + // Webkit's 3D transforms are passed off to the browser's own graphics renderer. + // It works fine in Safari on Leopard and Snow Leopard, but not in Chrome in + // some conditions. As a result, Webkit typically recognizes the syntax but + // will sometimes throw a false positive, thus we must do a more thorough check: + if ( ret && 'webkitPerspective' in docElement.style ) { + + // Webkit allows this media query to succeed only if the feature is enabled. + // `@media (transform-3d),(-webkit-transform-3d){ ... }` + injectElementWithStyles('@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}', function( node, rule ) { + ret = node.offsetLeft === 9 && node.offsetHeight === 3; + }); + } + return ret; + }; + + + tests['csstransitions'] = function() { + return testPropsAll('transition'); + }; + + + /*>>fontface*/ + // @font-face detection routine by Diego Perini + // javascript.nwbox.com/CSSSupport/ + + // false positives: + // WebOS github.com/Modernizr/Modernizr/issues/342 + // WP7 github.com/Modernizr/Modernizr/issues/538 + tests['fontface'] = function() { + var bool; + + injectElementWithStyles('@font-face {font-family:"font";src:url("https://")}', function( node, rule ) { + var style = document.getElementById('smodernizr'), + sheet = style.sheet || style.styleSheet, + cssText = sheet ? (sheet.cssRules && sheet.cssRules[0] ? sheet.cssRules[0].cssText : sheet.cssText || '') : ''; + + bool = /src/i.test(cssText) && cssText.indexOf(rule.split(' ')[0]) === 0; + }); + + return bool; + }; + /*>>fontface*/ + + // CSS generated content detection + tests['generatedcontent'] = function() { + var bool; + + injectElementWithStyles(['#',mod,'{font:0/0 a}#',mod,':after{content:"',smile,'";visibility:hidden;font:3px/1 a}'].join(''), function( node ) { + bool = node.offsetHeight >= 3; + }); + + return bool; + }; + + + + // These tests evaluate support of the video/audio elements, as well as + // testing what types of content they support. + // + // We're using the Boolean constructor here, so that we can extend the value + // e.g. Modernizr.video // true + // Modernizr.video.ogg // 'probably' + // + // Codec values from : github.com/NielsLeenheer/html5test/blob/9106a8/index.html#L845 + // thx to NielsLeenheer and zcorpan + + // Note: in some older browsers, "no" was a return value instead of empty string. + // It was live in FF3.5.0 and 3.5.1, but fixed in 3.5.2 + // It was also live in Safari 4.0.0 - 4.0.4, but fixed in 4.0.5 + + tests['video'] = function() { + var elem = document.createElement('video'), + bool = false; + + // IE9 Running on Windows Server SKU can cause an exception to be thrown, bug #224 + try { + if ( bool = !!elem.canPlayType ) { + bool = new Boolean(bool); + bool.ogg = elem.canPlayType('video/ogg; codecs="theora"') .replace(/^no$/,''); + + // Without QuickTime, this value will be `undefined`. github.com/Modernizr/Modernizr/issues/546 + bool.h264 = elem.canPlayType('video/mp4; codecs="avc1.42E01E"') .replace(/^no$/,''); + + bool.webm = elem.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,''); + } + + } catch(e) { } + + return bool; + }; + + tests['audio'] = function() { + var elem = document.createElement('audio'), + bool = false; + + try { + if ( bool = !!elem.canPlayType ) { + bool = new Boolean(bool); + bool.ogg = elem.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,''); + bool.mp3 = elem.canPlayType('audio/mpeg;') .replace(/^no$/,''); + + // Mimetypes accepted: + // developer.mozilla.org/En/Media_formats_supported_by_the_audio_and_video_elements + // bit.ly/iphoneoscodecs + bool.wav = elem.canPlayType('audio/wav; codecs="1"') .replace(/^no$/,''); + bool.m4a = ( elem.canPlayType('audio/x-m4a;') || + elem.canPlayType('audio/aac;')) .replace(/^no$/,''); + } + } catch(e) { } + + return bool; + }; + + + // In FF4, if disabled, window.localStorage should === null. + + // Normally, we could not test that directly and need to do a + // `('localStorage' in window) && ` test first because otherwise Firefox will + // throw bugzil.la/365772 if cookies are disabled + + // Also in iOS5 Private Browsing mode, attempting to use localStorage.setItem + // will throw the exception: + // QUOTA_EXCEEDED_ERRROR DOM Exception 22. + // Peculiarly, getItem and removeItem calls do not throw. + + // Because we are forced to try/catch this, we'll go aggressive. + + // Just FWIW: IE8 Compat mode supports these features completely: + // www.quirksmode.org/dom/html5.html + // But IE8 doesn't support either with local files + + tests['localstorage'] = function() { + try { + localStorage.setItem(mod, mod); + localStorage.removeItem(mod); + return true; + } catch(e) { + return false; + } + }; + + tests['sessionstorage'] = function() { + try { + sessionStorage.setItem(mod, mod); + sessionStorage.removeItem(mod); + return true; + } catch(e) { + return false; + } + }; + + + tests['webworkers'] = function() { + return !!window.Worker; + }; + + + tests['applicationcache'] = function() { + return !!window.applicationCache; + }; + + + // Thanks to Erik Dahlstrom + tests['svg'] = function() { + return !!document.createElementNS && !!document.createElementNS(ns.svg, 'svg').createSVGRect; + }; + + // specifically for SVG inline in HTML, not within XHTML + // test page: paulirish.com/demo/inline-svg + tests['inlinesvg'] = function() { + var div = document.createElement('div'); + div.innerHTML = '<svg/>'; + return (div.firstChild && div.firstChild.namespaceURI) == ns.svg; + }; + + // SVG SMIL animation + tests['smil'] = function() { + return !!document.createElementNS && /SVGAnimate/.test(toString.call(document.createElementNS(ns.svg, 'animate'))); + }; + + // This test is only for clip paths in SVG proper, not clip paths on HTML content + // demo: srufaculty.sru.edu/david.dailey/svg/newstuff/clipPath4.svg + + // However read the comments to dig into applying SVG clippaths to HTML content here: + // github.com/Modernizr/Modernizr/issues/213#issuecomment-1149491 + tests['svgclippaths'] = function() { + return !!document.createElementNS && /SVGClipPath/.test(toString.call(document.createElementNS(ns.svg, 'clipPath'))); + }; + + /*>>webforms*/ + // input features and input types go directly onto the ret object, bypassing the tests loop. + // Hold this guy to execute in a moment. + function webforms() { + /*>>input*/ + // Run through HTML5's new input attributes to see if the UA understands any. + // We're using f which is the <input> element created early on + // Mike Taylr has created a comprehensive resource for testing these attributes + // when applied to all input types: + // miketaylr.com/code/input-type-attr.html + // spec: www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary + + // Only input placeholder is tested while textarea's placeholder is not. + // Currently Safari 4 and Opera 11 have support only for the input placeholder + // Both tests are available in feature-detects/forms-placeholder.js + Modernizr['input'] = (function( props ) { + for ( var i = 0, len = props.length; i < len; i++ ) { + attrs[ props[i] ] = !!(props[i] in inputElem); + } + if (attrs.list){ + // safari false positive's on datalist: webk.it/74252 + // see also github.com/Modernizr/Modernizr/issues/146 + attrs.list = !!(document.createElement('datalist') && window.HTMLDataListElement); + } + return attrs; + })('autocomplete autofocus list placeholder max min multiple pattern required step'.split(' ')); + /*>>input*/ + + /*>>inputtypes*/ + // Run through HTML5's new input types to see if the UA understands any. + // This is put behind the tests runloop because it doesn't return a + // true/false like all the other tests; instead, it returns an object + // containing each input type with its corresponding true/false value + + // Big thanks to @miketaylr for the html5 forms expertise. miketaylr.com/ + Modernizr['inputtypes'] = (function(props) { + + for ( var i = 0, bool, inputElemType, defaultView, len = props.length; i < len; i++ ) { + + inputElem.setAttribute('type', inputElemType = props[i]); + bool = inputElem.type !== 'text'; + + // We first check to see if the type we give it sticks.. + // If the type does, we feed it a textual value, which shouldn't be valid. + // If the value doesn't stick, we know there's input sanitization which infers a custom UI + if ( bool ) { + + inputElem.value = smile; + inputElem.style.cssText = 'position:absolute;visibility:hidden;'; + + if ( /^range$/.test(inputElemType) && inputElem.style.WebkitAppearance !== undefined ) { + + docElement.appendChild(inputElem); + defaultView = document.defaultView; + + // Safari 2-4 allows the smiley as a value, despite making a slider + bool = defaultView.getComputedStyle && + defaultView.getComputedStyle(inputElem, null).WebkitAppearance !== 'textfield' && + // Mobile android web browser has false positive, so must + // check the height to see if the widget is actually there. + (inputElem.offsetHeight !== 0); + + docElement.removeChild(inputElem); + + } else if ( /^(search|tel)$/.test(inputElemType) ){ + // Spec doesn't define any special parsing or detectable UI + // behaviors so we pass these through as true + + // Interestingly, opera fails the earlier test, so it doesn't + // even make it here. + + } else if ( /^(url|email)$/.test(inputElemType) ) { + // Real url and email support comes with prebaked validation. + bool = inputElem.checkValidity && inputElem.checkValidity() === false; + + } else { + // If the upgraded input compontent rejects the :) text, we got a winner + bool = inputElem.value != smile; + } + } + + inputs[ props[i] ] = !!bool; + } + return inputs; + })('search tel url email datetime date month week time datetime-local number range color'.split(' ')); + /*>>inputtypes*/ + } + /*>>webforms*/ + + + // End of test definitions + // ----------------------- + + + + // Run through all tests and detect their support in the current UA. + // todo: hypothetically we could be doing an array of tests and use a basic loop here. + for ( var feature in tests ) { + if ( hasOwnProp(tests, feature) ) { + // run the test, throw the return value into the Modernizr, + // then based on that boolean, define an appropriate className + // and push it into an array of classes we'll join later. + featureName = feature.toLowerCase(); + Modernizr[featureName] = tests[feature](); + + classes.push((Modernizr[featureName] ? '' : 'no-') + featureName); + } + } + + /*>>webforms*/ + // input tests need to run. + Modernizr.input || webforms(); + /*>>webforms*/ + + + /** + * addTest allows the user to define their own feature tests + * the result will be added onto the Modernizr object, + * as well as an appropriate className set on the html element + * + * @param feature - String naming the feature + * @param test - Function returning true if feature is supported, false if not + */ + Modernizr.addTest = function ( feature, test ) { + if ( typeof feature == 'object' ) { + for ( var key in feature ) { + if ( hasOwnProp( feature, key ) ) { + Modernizr.addTest( key, feature[ key ] ); + } + } + } else { + + feature = feature.toLowerCase(); + + if ( Modernizr[feature] !== undefined ) { + // we're going to quit if you're trying to overwrite an existing test + // if we were to allow it, we'd do this: + // var re = new RegExp("\\b(no-)?" + feature + "\\b"); + // docElement.className = docElement.className.replace( re, '' ); + // but, no rly, stuff 'em. + return Modernizr; + } + + test = typeof test == 'function' ? test() : test; + + if (typeof enableClasses !== "undefined" && enableClasses) { + docElement.className += ' ' + (test ? '' : 'no-') + feature; + } + Modernizr[feature] = test; + + } + + return Modernizr; // allow chaining. + }; + + + // Reset modElem.cssText to nothing to reduce memory footprint. + setCss(''); + modElem = inputElem = null; + + /*>>shiv*/ + /** + * @preserve HTML5 Shiv prev3.7.1 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed + */ + ;(function(window, document) { + /*jshint evil:true */ + /** version */ + var version = '3.7.0'; + + /** Preset options */ + var options = window.html5 || {}; + + /** Used to skip problem elements */ + var reSkip = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i; + + /** Not all elements can be cloned in IE **/ + var saveClones = /^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i; + + /** Detect whether the browser supports default html5 styles */ + var supportsHtml5Styles; + + /** Name of the expando, to work with multiple documents or to re-shiv one document */ + var expando = '_html5shiv'; + + /** The id for the the documents expando */ + var expanID = 0; + + /** Cached data for each document */ + var expandoData = {}; + + /** Detect whether the browser supports unknown elements */ + var supportsUnknownElements; + + (function() { + try { + var a = document.createElement('a'); + a.innerHTML = '<xyz></xyz>'; + //if the hidden property is implemented we can assume, that the browser supports basic HTML5 Styles + supportsHtml5Styles = ('hidden' in a); + + supportsUnknownElements = a.childNodes.length == 1 || (function() { + // assign a false positive if unable to shiv + (document.createElement)('a'); + var frag = document.createDocumentFragment(); + return ( + typeof frag.cloneNode == 'undefined' || + typeof frag.createDocumentFragment == 'undefined' || + typeof frag.createElement == 'undefined' + ); + }()); + } catch(e) { + // assign a false positive if detection fails => unable to shiv + supportsHtml5Styles = true; + supportsUnknownElements = true; + } + + }()); + + /*--------------------------------------------------------------------------*/ + + /** + * Creates a style sheet with the given CSS text and adds it to the document. + * @private + * @param {Document} ownerDocument The document. + * @param {String} cssText The CSS text. + * @returns {StyleSheet} The style element. + */ + function addStyleSheet(ownerDocument, cssText) { + var p = ownerDocument.createElement('p'), + parent = ownerDocument.getElementsByTagName('head')[0] || ownerDocument.documentElement; + + p.innerHTML = 'x<style>' + cssText + '</style>'; + return parent.insertBefore(p.lastChild, parent.firstChild); + } + + /** + * Returns the value of `html5.elements` as an array. + * @private + * @returns {Array} An array of shived element node names. + */ + function getElements() { + var elements = html5.elements; + return typeof elements == 'string' ? elements.split(' ') : elements; + } + + /** + * Returns the data associated to the given document + * @private + * @param {Document} ownerDocument The document. + * @returns {Object} An object of data. + */ + function getExpandoData(ownerDocument) { + var data = expandoData[ownerDocument[expando]]; + if (!data) { + data = {}; + expanID++; + ownerDocument[expando] = expanID; + expandoData[expanID] = data; + } + return data; + } + + /** + * returns a shived element for the given nodeName and document + * @memberOf html5 + * @param {String} nodeName name of the element + * @param {Document} ownerDocument The context document. + * @returns {Object} The shived element. + */ + function createElement(nodeName, ownerDocument, data){ + if (!ownerDocument) { + ownerDocument = document; + } + if(supportsUnknownElements){ + return ownerDocument.createElement(nodeName); + } + if (!data) { + data = getExpandoData(ownerDocument); + } + var node; + + if (data.cache[nodeName]) { + node = data.cache[nodeName].cloneNode(); + } else if (saveClones.test(nodeName)) { + node = (data.cache[nodeName] = data.createElem(nodeName)).cloneNode(); + } else { + node = data.createElem(nodeName); + } + + // Avoid adding some elements to fragments in IE < 9 because + // * Attributes like `name` or `type` cannot be set/changed once an element + // is inserted into a document/fragment + // * Link elements with `src` attributes that are inaccessible, as with + // a 403 response, will cause the tab/window to crash + // * Script elements appended to fragments will execute when their `src` + // or `text` property is set + return node.canHaveChildren && !reSkip.test(nodeName) && !node.tagUrn ? data.frag.appendChild(node) : node; + } + + /** + * returns a shived DocumentFragment for the given document + * @memberOf html5 + * @param {Document} ownerDocument The context document. + * @returns {Object} The shived DocumentFragment. + */ + function createDocumentFragment(ownerDocument, data){ + if (!ownerDocument) { + ownerDocument = document; + } + if(supportsUnknownElements){ + return ownerDocument.createDocumentFragment(); + } + data = data || getExpandoData(ownerDocument); + var clone = data.frag.cloneNode(), + i = 0, + elems = getElements(), + l = elems.length; + for(;i<l;i++){ + clone.createElement(elems[i]); + } + return clone; + } + + /** + * Shivs the `createElement` and `createDocumentFragment` methods of the document. + * @private + * @param {Document|DocumentFragment} ownerDocument The document. + * @param {Object} data of the document. + */ + function shivMethods(ownerDocument, data) { + if (!data.cache) { + data.cache = {}; + data.createElem = ownerDocument.createElement; + data.createFrag = ownerDocument.createDocumentFragment; + data.frag = data.createFrag(); + } + + + ownerDocument.createElement = function(nodeName) { + //abort shiv + if (!html5.shivMethods) { + return data.createElem(nodeName); + } + return createElement(nodeName, ownerDocument, data); + }; + + ownerDocument.createDocumentFragment = Function('h,f', 'return function(){' + + 'var n=f.cloneNode(),c=n.createElement;' + + 'h.shivMethods&&(' + + // unroll the `createElement` calls + getElements().join().replace(/[\w\-]+/g, function(nodeName) { + data.createElem(nodeName); + data.frag.createElement(nodeName); + return 'c("' + nodeName + '")'; + }) + + ');return n}' + )(html5, data.frag); + } + + /*--------------------------------------------------------------------------*/ + + /** + * Shivs the given document. + * @memberOf html5 + * @param {Document} ownerDocument The document to shiv. + * @returns {Document} The shived document. + */ + function shivDocument(ownerDocument) { + if (!ownerDocument) { + ownerDocument = document; + } + var data = getExpandoData(ownerDocument); + + if (html5.shivCSS && !supportsHtml5Styles && !data.hasCSS) { + data.hasCSS = !!addStyleSheet(ownerDocument, + // corrects block display not defined in IE6/7/8/9 + 'article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}' + + // adds styling not present in IE6/7/8/9 + 'mark{background:#FF0;color:#000}' + + // hides non-rendered elements + 'template{display:none}' + ); + } + if (!supportsUnknownElements) { + shivMethods(ownerDocument, data); + } + return ownerDocument; + } + + /*--------------------------------------------------------------------------*/ + + /** + * The `html5` object is exposed so that more elements can be shived and + * existing shiving can be detected on iframes. + * @type Object + * @example + * + * // options can be changed before the script is included + * html5 = { 'elements': 'mark section', 'shivCSS': false, 'shivMethods': false }; + */ + var html5 = { + + /** + * An array or space separated string of node names of the elements to shiv. + * @memberOf html5 + * @type Array|String + */ + 'elements': options.elements || 'abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video', + + /** + * current version of html5shiv + */ + 'version': version, + + /** + * A flag to indicate that the HTML5 style sheet should be inserted. + * @memberOf html5 + * @type Boolean + */ + 'shivCSS': (options.shivCSS !== false), + + /** + * Is equal to true if a browser supports creating unknown/HTML5 elements + * @memberOf html5 + * @type boolean + */ + 'supportsUnknownElements': supportsUnknownElements, + + /** + * A flag to indicate that the document's `createElement` and `createDocumentFragment` + * methods should be overwritten. + * @memberOf html5 + * @type Boolean + */ + 'shivMethods': (options.shivMethods !== false), + + /** + * A string to describe the type of `html5` object ("default" or "default print"). + * @memberOf html5 + * @type String + */ + 'type': 'default', + + // shivs the document according to the specified `html5` object options + 'shivDocument': shivDocument, + + //creates a shived element + createElement: createElement, + + //creates a shived documentFragment + createDocumentFragment: createDocumentFragment + }; + + /*--------------------------------------------------------------------------*/ + + // expose html5 + window.html5 = html5; + + // shiv the document + shivDocument(document); + + }(this, document)); + /*>>shiv*/ + + // Assign private properties to the return object with prefix + Modernizr._version = version; + + // expose these for the plugin API. Look in the source for how to join() them against your input + /*>>prefixes*/ + Modernizr._prefixes = prefixes; + /*>>prefixes*/ + /*>>domprefixes*/ + Modernizr._domPrefixes = domPrefixes; + Modernizr._cssomPrefixes = cssomPrefixes; + /*>>domprefixes*/ + + /*>>mq*/ + // Modernizr.mq tests a given media query, live against the current state of the window + // A few important notes: + // * If a browser does not support media queries at all (eg. oldIE) the mq() will always return false + // * A max-width or orientation query will be evaluated against the current state, which may change later. + // * You must specify values. Eg. If you are testing support for the min-width media query use: + // Modernizr.mq('(min-width:0)') + // usage: + // Modernizr.mq('only screen and (max-width:768)') + Modernizr.mq = testMediaQuery; + /*>>mq*/ + + /*>>hasevent*/ + // Modernizr.hasEvent() detects support for a given event, with an optional element to test on + // Modernizr.hasEvent('gesturestart', elem) + Modernizr.hasEvent = isEventSupported; + /*>>hasevent*/ + + /*>>testprop*/ + // Modernizr.testProp() investigates whether a given style property is recognized + // Note that the property names must be provided in the camelCase variant. + // Modernizr.testProp('pointerEvents') + Modernizr.testProp = function(prop){ + return testProps([prop]); + }; + /*>>testprop*/ + + /*>>testallprops*/ + // Modernizr.testAllProps() investigates whether a given style property, + // or any of its vendor-prefixed variants, is recognized + // Note that the property names must be provided in the camelCase variant. + // Modernizr.testAllProps('boxSizing') + Modernizr.testAllProps = testPropsAll; + /*>>testallprops*/ + + + /*>>teststyles*/ + // Modernizr.testStyles() allows you to add custom styles to the document and test an element afterwards + // Modernizr.testStyles('#modernizr { position:absolute }', function(elem, rule){ ... }) + Modernizr.testStyles = injectElementWithStyles; + /*>>teststyles*/ + + + /*>>prefixed*/ + // Modernizr.prefixed() returns the prefixed or nonprefixed property name variant of your input + // Modernizr.prefixed('boxSizing') // 'MozBoxSizing' + + // Properties must be passed as dom-style camelcase, rather than `box-sizing` hypentated style. + // Return values will also be the camelCase variant, if you need to translate that to hypenated style use: + // + // str.replace(/([A-Z])/g, function(str,m1){ return '-' + m1.toLowerCase(); }).replace(/^ms-/,'-ms-'); + + // If you're trying to ascertain which transition end event to bind to, you might do something like... + // + // var transEndEventNames = { + // 'WebkitTransition' : 'webkitTransitionEnd', + // 'MozTransition' : 'transitionend', + // 'OTransition' : 'oTransitionEnd', + // 'msTransition' : 'MSTransitionEnd', + // 'transition' : 'transitionend' + // }, + // transEndEventName = transEndEventNames[ Modernizr.prefixed('transition') ]; + + Modernizr.prefixed = function(prop, obj, elem){ + if(!obj) { + return testPropsAll(prop, 'pfx'); + } else { + // Testing DOM property e.g. Modernizr.prefixed('requestAnimationFrame', window) // 'mozRequestAnimationFrame' + return testPropsAll(prop, obj, elem); + } + }; + /*>>prefixed*/ + + + /*>>cssclasses*/ + // Remove "no-js" class from <html> element, if it exists: + docElement.className = docElement.className.replace(/(^|\s)no-js(\s|$)/, '$1$2') + + + // Add the new classes to the <html> element. + (enableClasses ? ' js ' + classes.join(' ') : ''); + /*>>cssclasses*/ + + return Modernizr; + +})(this, this.document); diff --git a/Mobile.WYSIWYG/Scripts/respond.js b/Mobile.WYSIWYG/Scripts/respond.js new file mode 100644 index 0000000..b1298d0 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/respond.js @@ -0,0 +1,224 @@ +/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license */ +/*! NOTE: If you're already including a window.matchMedia polyfill via Modernizr or otherwise, you don't need this part */ +(function(w) { + "use strict"; + w.matchMedia = w.matchMedia || function(doc, undefined) { + var bool, docElem = doc.documentElement, refNode = docElem.firstElementChild || docElem.firstChild, fakeBody = doc.createElement("body"), div = doc.createElement("div"); + div.id = "mq-test-1"; + div.style.cssText = "position:absolute;top:-100em"; + fakeBody.style.background = "none"; + fakeBody.appendChild(div); + return function(q) { + div.innerHTML = '­<style media="' + q + '"> #mq-test-1 { width: 42px; }</style>'; + docElem.insertBefore(fakeBody, refNode); + bool = div.offsetWidth === 42; + docElem.removeChild(fakeBody); + return { + matches: bool, + media: q + }; + }; + }(w.document); +})(this); + +/*! Respond.js v1.4.0: min/max-width media query polyfill. (c) Scott Jehl. MIT Lic. j.mp/respondjs */ +(function(w) { + "use strict"; + var respond = {}; + w.respond = respond; + respond.update = function() {}; + var requestQueue = [], xmlHttp = function() { + var xmlhttpmethod = false; + try { + xmlhttpmethod = new w.XMLHttpRequest(); + } catch (e) { + xmlhttpmethod = new w.ActiveXObject("Microsoft.XMLHTTP"); + } + return function() { + return xmlhttpmethod; + }; + }(), ajax = function(url, callback) { + var req = xmlHttp(); + if (!req) { + return; + } + req.open("GET", url, true); + req.onreadystatechange = function() { + if (req.readyState !== 4 || req.status !== 200 && req.status !== 304) { + return; + } + callback(req.responseText); + }; + if (req.readyState === 4) { + return; + } + req.send(null); + }; + respond.ajax = ajax; + respond.queue = requestQueue; + respond.regex = { + media: /@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi, + keyframes: /@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi, + urls: /(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g, + findStyles: /@media *([^\{]+)\{([\S\s]+?)$/, + only: /(only\s+)?([a-zA-Z]+)\s?/, + minw: /\([\s]*min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/, + maxw: /\([\s]*max\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/ + }; + respond.mediaQueriesSupported = w.matchMedia && w.matchMedia("only all") !== null && w.matchMedia("only all").matches; + if (respond.mediaQueriesSupported) { + return; + } + var doc = w.document, docElem = doc.documentElement, mediastyles = [], rules = [], appendedEls = [], parsedSheets = {}, resizeThrottle = 30, head = doc.getElementsByTagName("head")[0] || docElem, base = doc.getElementsByTagName("base")[0], links = head.getElementsByTagName("link"), lastCall, resizeDefer, eminpx, getEmValue = function() { + var ret, div = doc.createElement("div"), body = doc.body, originalHTMLFontSize = docElem.style.fontSize, originalBodyFontSize = body && body.style.fontSize, fakeUsed = false; + div.style.cssText = "position:absolute;font-size:1em;width:1em"; + if (!body) { + body = fakeUsed = doc.createElement("body"); + body.style.background = "none"; + } + docElem.style.fontSize = "100%"; + body.style.fontSize = "100%"; + body.appendChild(div); + if (fakeUsed) { + docElem.insertBefore(body, docElem.firstChild); + } + ret = div.offsetWidth; + if (fakeUsed) { + docElem.removeChild(body); + } else { + body.removeChild(div); + } + docElem.style.fontSize = originalHTMLFontSize; + if (originalBodyFontSize) { + body.style.fontSize = originalBodyFontSize; + } + ret = eminpx = parseFloat(ret); + return ret; + }, applyMedia = function(fromResize) { + var name = "clientWidth", docElemProp = docElem[name], currWidth = doc.compatMode === "CSS1Compat" && docElemProp || doc.body[name] || docElemProp, styleBlocks = {}, lastLink = links[links.length - 1], now = new Date().getTime(); + if (fromResize && lastCall && now - lastCall < resizeThrottle) { + w.clearTimeout(resizeDefer); + resizeDefer = w.setTimeout(applyMedia, resizeThrottle); + return; + } else { + lastCall = now; + } + for (var i in mediastyles) { + if (mediastyles.hasOwnProperty(i)) { + var thisstyle = mediastyles[i], min = thisstyle.minw, max = thisstyle.maxw, minnull = min === null, maxnull = max === null, em = "em"; + if (!!min) { + min = parseFloat(min) * (min.indexOf(em) > -1 ? eminpx || getEmValue() : 1); + } + if (!!max) { + max = parseFloat(max) * (max.indexOf(em) > -1 ? eminpx || getEmValue() : 1); + } + if (!thisstyle.hasquery || (!minnull || !maxnull) && (minnull || currWidth >= min) && (maxnull || currWidth <= max)) { + if (!styleBlocks[thisstyle.media]) { + styleBlocks[thisstyle.media] = []; + } + styleBlocks[thisstyle.media].push(rules[thisstyle.rules]); + } + } + } + for (var j in appendedEls) { + if (appendedEls.hasOwnProperty(j)) { + if (appendedEls[j] && appendedEls[j].parentNode === head) { + head.removeChild(appendedEls[j]); + } + } + } + appendedEls.length = 0; + for (var k in styleBlocks) { + if (styleBlocks.hasOwnProperty(k)) { + var ss = doc.createElement("style"), css = styleBlocks[k].join("\n"); + ss.type = "text/css"; + ss.media = k; + head.insertBefore(ss, lastLink.nextSibling); + if (ss.styleSheet) { + ss.styleSheet.cssText = css; + } else { + ss.appendChild(doc.createTextNode(css)); + } + appendedEls.push(ss); + } + } + }, translate = function(styles, href, media) { + var qs = styles.replace(respond.regex.keyframes, "").match(respond.regex.media), ql = qs && qs.length || 0; + href = href.substring(0, href.lastIndexOf("/")); + var repUrls = function(css) { + return css.replace(respond.regex.urls, "$1" + href + "$2$3"); + }, useMedia = !ql && media; + if (href.length) { + href += "/"; + } + if (useMedia) { + ql = 1; + } + for (var i = 0; i < ql; i++) { + var fullq, thisq, eachq, eql; + if (useMedia) { + fullq = media; + rules.push(repUrls(styles)); + } else { + fullq = qs[i].match(respond.regex.findStyles) && RegExp.$1; + rules.push(RegExp.$2 && repUrls(RegExp.$2)); + } + eachq = fullq.split(","); + eql = eachq.length; + for (var j = 0; j < eql; j++) { + thisq = eachq[j]; + mediastyles.push({ + media: thisq.split("(")[0].match(respond.regex.only) && RegExp.$2 || "all", + rules: rules.length - 1, + hasquery: thisq.indexOf("(") > -1, + minw: thisq.match(respond.regex.minw) && parseFloat(RegExp.$1) + (RegExp.$2 || ""), + maxw: thisq.match(respond.regex.maxw) && parseFloat(RegExp.$1) + (RegExp.$2 || "") + }); + } + } + applyMedia(); + }, makeRequests = function() { + if (requestQueue.length) { + var thisRequest = requestQueue.shift(); + ajax(thisRequest.href, function(styles) { + translate(styles, thisRequest.href, thisRequest.media); + parsedSheets[thisRequest.href] = true; + w.setTimeout(function() { + makeRequests(); + }, 0); + }); + } + }, ripCSS = function() { + for (var i = 0; i < links.length; i++) { + var sheet = links[i], href = sheet.href, media = sheet.media, isCSS = sheet.rel && sheet.rel.toLowerCase() === "stylesheet"; + if (!!href && isCSS && !parsedSheets[href]) { + if (sheet.styleSheet && sheet.styleSheet.rawCssText) { + translate(sheet.styleSheet.rawCssText, href, media); + parsedSheets[href] = true; + } else { + if (!/^([a-zA-Z:]*\/\/)/.test(href) && !base || href.replace(RegExp.$1, "").split("/")[0] === w.location.host) { + if (href.substring(0, 2) === "//") { + href = w.location.protocol + href; + } + requestQueue.push({ + href: href, + media: media + }); + } + } + } + } + makeRequests(); + }; + ripCSS(); + respond.update = ripCSS; + respond.getEmValue = getEmValue; + function callMedia() { + applyMedia(true); + } + if (w.addEventListener) { + w.addEventListener("resize", callMedia, false); + } else if (w.attachEvent) { + w.attachEvent("onresize", callMedia); + } +})(this); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/respond.matchmedia.addListener.js b/Mobile.WYSIWYG/Scripts/respond.matchmedia.addListener.js new file mode 100644 index 0000000..31571cd --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/respond.matchmedia.addListener.js @@ -0,0 +1,273 @@ +/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license */ +/*! NOTE: If you're already including a window.matchMedia polyfill via Modernizr or otherwise, you don't need this part */ +(function(w) { + "use strict"; + w.matchMedia = w.matchMedia || function(doc, undefined) { + var bool, docElem = doc.documentElement, refNode = docElem.firstElementChild || docElem.firstChild, fakeBody = doc.createElement("body"), div = doc.createElement("div"); + div.id = "mq-test-1"; + div.style.cssText = "position:absolute;top:-100em"; + fakeBody.style.background = "none"; + fakeBody.appendChild(div); + return function(q) { + div.innerHTML = '­<style media="' + q + '"> #mq-test-1 { width: 42px; }</style>'; + docElem.insertBefore(fakeBody, refNode); + bool = div.offsetWidth === 42; + docElem.removeChild(fakeBody); + return { + matches: bool, + media: q + }; + }; + }(w.document); +})(this); + +/*! matchMedia() polyfill addListener/removeListener extension. Author & copyright (c) 2012: Scott Jehl. Dual MIT/BSD license */ +(function(w) { + "use strict"; + if (w.matchMedia && w.matchMedia("all").addListener) { + return false; + } + var localMatchMedia = w.matchMedia, hasMediaQueries = localMatchMedia("only all").matches, isListening = false, timeoutID = 0, queries = [], handleChange = function(evt) { + w.clearTimeout(timeoutID); + timeoutID = w.setTimeout(function() { + for (var i = 0, il = queries.length; i < il; i++) { + var mql = queries[i].mql, listeners = queries[i].listeners || [], matches = localMatchMedia(mql.media).matches; + if (matches !== mql.matches) { + mql.matches = matches; + for (var j = 0, jl = listeners.length; j < jl; j++) { + listeners[j].call(w, mql); + } + } + } + }, 30); + }; + w.matchMedia = function(media) { + var mql = localMatchMedia(media), listeners = [], index = 0; + mql.addListener = function(listener) { + if (!hasMediaQueries) { + return; + } + if (!isListening) { + isListening = true; + w.addEventListener("resize", handleChange, true); + } + if (index === 0) { + index = queries.push({ + mql: mql, + listeners: listeners + }); + } + listeners.push(listener); + }; + mql.removeListener = function(listener) { + for (var i = 0, il = listeners.length; i < il; i++) { + if (listeners[i] === listener) { + listeners.splice(i, 1); + } + } + }; + return mql; + }; +})(this); + +/*! Respond.js v1.4.0: min/max-width media query polyfill. (c) Scott Jehl. MIT Lic. j.mp/respondjs */ +(function(w) { + "use strict"; + var respond = {}; + w.respond = respond; + respond.update = function() {}; + var requestQueue = [], xmlHttp = function() { + var xmlhttpmethod = false; + try { + xmlhttpmethod = new w.XMLHttpRequest(); + } catch (e) { + xmlhttpmethod = new w.ActiveXObject("Microsoft.XMLHTTP"); + } + return function() { + return xmlhttpmethod; + }; + }(), ajax = function(url, callback) { + var req = xmlHttp(); + if (!req) { + return; + } + req.open("GET", url, true); + req.onreadystatechange = function() { + if (req.readyState !== 4 || req.status !== 200 && req.status !== 304) { + return; + } + callback(req.responseText); + }; + if (req.readyState === 4) { + return; + } + req.send(null); + }; + respond.ajax = ajax; + respond.queue = requestQueue; + respond.regex = { + media: /@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi, + keyframes: /@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi, + urls: /(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g, + findStyles: /@media *([^\{]+)\{([\S\s]+?)$/, + only: /(only\s+)?([a-zA-Z]+)\s?/, + minw: /\([\s]*min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/, + maxw: /\([\s]*max\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/ + }; + respond.mediaQueriesSupported = w.matchMedia && w.matchMedia("only all") !== null && w.matchMedia("only all").matches; + if (respond.mediaQueriesSupported) { + return; + } + var doc = w.document, docElem = doc.documentElement, mediastyles = [], rules = [], appendedEls = [], parsedSheets = {}, resizeThrottle = 30, head = doc.getElementsByTagName("head")[0] || docElem, base = doc.getElementsByTagName("base")[0], links = head.getElementsByTagName("link"), lastCall, resizeDefer, eminpx, getEmValue = function() { + var ret, div = doc.createElement("div"), body = doc.body, originalHTMLFontSize = docElem.style.fontSize, originalBodyFontSize = body && body.style.fontSize, fakeUsed = false; + div.style.cssText = "position:absolute;font-size:1em;width:1em"; + if (!body) { + body = fakeUsed = doc.createElement("body"); + body.style.background = "none"; + } + docElem.style.fontSize = "100%"; + body.style.fontSize = "100%"; + body.appendChild(div); + if (fakeUsed) { + docElem.insertBefore(body, docElem.firstChild); + } + ret = div.offsetWidth; + if (fakeUsed) { + docElem.removeChild(body); + } else { + body.removeChild(div); + } + docElem.style.fontSize = originalHTMLFontSize; + if (originalBodyFontSize) { + body.style.fontSize = originalBodyFontSize; + } + ret = eminpx = parseFloat(ret); + return ret; + }, applyMedia = function(fromResize) { + var name = "clientWidth", docElemProp = docElem[name], currWidth = doc.compatMode === "CSS1Compat" && docElemProp || doc.body[name] || docElemProp, styleBlocks = {}, lastLink = links[links.length - 1], now = new Date().getTime(); + if (fromResize && lastCall && now - lastCall < resizeThrottle) { + w.clearTimeout(resizeDefer); + resizeDefer = w.setTimeout(applyMedia, resizeThrottle); + return; + } else { + lastCall = now; + } + for (var i in mediastyles) { + if (mediastyles.hasOwnProperty(i)) { + var thisstyle = mediastyles[i], min = thisstyle.minw, max = thisstyle.maxw, minnull = min === null, maxnull = max === null, em = "em"; + if (!!min) { + min = parseFloat(min) * (min.indexOf(em) > -1 ? eminpx || getEmValue() : 1); + } + if (!!max) { + max = parseFloat(max) * (max.indexOf(em) > -1 ? eminpx || getEmValue() : 1); + } + if (!thisstyle.hasquery || (!minnull || !maxnull) && (minnull || currWidth >= min) && (maxnull || currWidth <= max)) { + if (!styleBlocks[thisstyle.media]) { + styleBlocks[thisstyle.media] = []; + } + styleBlocks[thisstyle.media].push(rules[thisstyle.rules]); + } + } + } + for (var j in appendedEls) { + if (appendedEls.hasOwnProperty(j)) { + if (appendedEls[j] && appendedEls[j].parentNode === head) { + head.removeChild(appendedEls[j]); + } + } + } + appendedEls.length = 0; + for (var k in styleBlocks) { + if (styleBlocks.hasOwnProperty(k)) { + var ss = doc.createElement("style"), css = styleBlocks[k].join("\n"); + ss.type = "text/css"; + ss.media = k; + head.insertBefore(ss, lastLink.nextSibling); + if (ss.styleSheet) { + ss.styleSheet.cssText = css; + } else { + ss.appendChild(doc.createTextNode(css)); + } + appendedEls.push(ss); + } + } + }, translate = function(styles, href, media) { + var qs = styles.replace(respond.regex.keyframes, "").match(respond.regex.media), ql = qs && qs.length || 0; + href = href.substring(0, href.lastIndexOf("/")); + var repUrls = function(css) { + return css.replace(respond.regex.urls, "$1" + href + "$2$3"); + }, useMedia = !ql && media; + if (href.length) { + href += "/"; + } + if (useMedia) { + ql = 1; + } + for (var i = 0; i < ql; i++) { + var fullq, thisq, eachq, eql; + if (useMedia) { + fullq = media; + rules.push(repUrls(styles)); + } else { + fullq = qs[i].match(respond.regex.findStyles) && RegExp.$1; + rules.push(RegExp.$2 && repUrls(RegExp.$2)); + } + eachq = fullq.split(","); + eql = eachq.length; + for (var j = 0; j < eql; j++) { + thisq = eachq[j]; + mediastyles.push({ + media: thisq.split("(")[0].match(respond.regex.only) && RegExp.$2 || "all", + rules: rules.length - 1, + hasquery: thisq.indexOf("(") > -1, + minw: thisq.match(respond.regex.minw) && parseFloat(RegExp.$1) + (RegExp.$2 || ""), + maxw: thisq.match(respond.regex.maxw) && parseFloat(RegExp.$1) + (RegExp.$2 || "") + }); + } + } + applyMedia(); + }, makeRequests = function() { + if (requestQueue.length) { + var thisRequest = requestQueue.shift(); + ajax(thisRequest.href, function(styles) { + translate(styles, thisRequest.href, thisRequest.media); + parsedSheets[thisRequest.href] = true; + w.setTimeout(function() { + makeRequests(); + }, 0); + }); + } + }, ripCSS = function() { + for (var i = 0; i < links.length; i++) { + var sheet = links[i], href = sheet.href, media = sheet.media, isCSS = sheet.rel && sheet.rel.toLowerCase() === "stylesheet"; + if (!!href && isCSS && !parsedSheets[href]) { + if (sheet.styleSheet && sheet.styleSheet.rawCssText) { + translate(sheet.styleSheet.rawCssText, href, media); + parsedSheets[href] = true; + } else { + if (!/^([a-zA-Z:]*\/\/)/.test(href) && !base || href.replace(RegExp.$1, "").split("/")[0] === w.location.host) { + if (href.substring(0, 2) === "//") { + href = w.location.protocol + href; + } + requestQueue.push({ + href: href, + media: media + }); + } + } + } + } + makeRequests(); + }; + ripCSS(); + respond.update = ripCSS; + respond.getEmValue = getEmValue; + function callMedia() { + applyMedia(true); + } + if (w.addEventListener) { + w.addEventListener("resize", callMedia, false); + } else if (w.attachEvent) { + w.attachEvent("onresize", callMedia); + } +})(this); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/respond.matchmedia.addListener.min.js b/Mobile.WYSIWYG/Scripts/respond.matchmedia.addListener.min.js new file mode 100644 index 0000000..50ac74c --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/respond.matchmedia.addListener.min.js @@ -0,0 +1,5 @@ +/*! Respond.js v1.4.2: min/max-width media query polyfill * Copyright 2013 Scott Jehl + * Licensed under https://github.com/scottjehl/Respond/blob/master/LICENSE-MIT + * */ + +!function(a){"use strict";a.matchMedia=a.matchMedia||function(a){var b,c=a.documentElement,d=c.firstElementChild||c.firstChild,e=a.createElement("body"),f=a.createElement("div");return f.id="mq-test-1",f.style.cssText="position:absolute;top:-100em",e.style.background="none",e.appendChild(f),function(a){return f.innerHTML='­<style media="'+a+'"> #mq-test-1 { width: 42px; }</style>',c.insertBefore(e,d),b=42===f.offsetWidth,c.removeChild(e),{matches:b,media:a}}}(a.document)}(this),function(a){"use strict";if(a.matchMedia&&a.matchMedia("all").addListener)return!1;var b=a.matchMedia,c=b("only all").matches,d=!1,e=0,f=[],g=function(){a.clearTimeout(e),e=a.setTimeout(function(){for(var c=0,d=f.length;d>c;c++){var e=f[c].mql,g=f[c].listeners||[],h=b(e.media).matches;if(h!==e.matches){e.matches=h;for(var i=0,j=g.length;j>i;i++)g[i].call(a,e)}}},30)};a.matchMedia=function(e){var h=b(e),i=[],j=0;return h.addListener=function(b){c&&(d||(d=!0,a.addEventListener("resize",g,!0)),0===j&&(j=f.push({mql:h,listeners:i})),i.push(b))},h.removeListener=function(a){for(var b=0,c=i.length;c>b;b++)i[b]===a&&i.splice(b,1)},h}}(this),function(a){"use strict";function b(){u(!0)}var c={};a.respond=c,c.update=function(){};var d=[],e=function(){var b=!1;try{b=new a.XMLHttpRequest}catch(c){b=new a.ActiveXObject("Microsoft.XMLHTTP")}return function(){return b}}(),f=function(a,b){var c=e();c&&(c.open("GET",a,!0),c.onreadystatechange=function(){4!==c.readyState||200!==c.status&&304!==c.status||b(c.responseText)},4!==c.readyState&&c.send(null))};if(c.ajax=f,c.queue=d,c.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\([\s]*min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/,maxw:/\([\s]*max\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/},c.mediaQueriesSupported=a.matchMedia&&null!==a.matchMedia("only all")&&a.matchMedia("only all").matches,!c.mediaQueriesSupported){var g,h,i,j=a.document,k=j.documentElement,l=[],m=[],n=[],o={},p=30,q=j.getElementsByTagName("head")[0]||k,r=j.getElementsByTagName("base")[0],s=q.getElementsByTagName("link"),t=function(){var a,b=j.createElement("div"),c=j.body,d=k.style.fontSize,e=c&&c.style.fontSize,f=!1;return b.style.cssText="position:absolute;font-size:1em;width:1em",c||(c=f=j.createElement("body"),c.style.background="none"),k.style.fontSize="100%",c.style.fontSize="100%",c.appendChild(b),f&&k.insertBefore(c,k.firstChild),a=b.offsetWidth,f?k.removeChild(c):c.removeChild(b),k.style.fontSize=d,e&&(c.style.fontSize=e),a=i=parseFloat(a)},u=function(b){var c="clientWidth",d=k[c],e="CSS1Compat"===j.compatMode&&d||j.body[c]||d,f={},o=s[s.length-1],r=(new Date).getTime();if(b&&g&&p>r-g)return a.clearTimeout(h),h=a.setTimeout(u,p),void 0;g=r;for(var v in l)if(l.hasOwnProperty(v)){var w=l[v],x=w.minw,y=w.maxw,z=null===x,A=null===y,B="em";x&&(x=parseFloat(x)*(x.indexOf(B)>-1?i||t():1)),y&&(y=parseFloat(y)*(y.indexOf(B)>-1?i||t():1)),w.hasquery&&(z&&A||!(z||e>=x)||!(A||y>=e))||(f[w.media]||(f[w.media]=[]),f[w.media].push(m[w.rules]))}for(var C in n)n.hasOwnProperty(C)&&n[C]&&n[C].parentNode===q&&q.removeChild(n[C]);n.length=0;for(var D in f)if(f.hasOwnProperty(D)){var E=j.createElement("style"),F=f[D].join("\n");E.type="text/css",E.media=D,q.insertBefore(E,o.nextSibling),E.styleSheet?E.styleSheet.cssText=F:E.appendChild(j.createTextNode(F)),n.push(E)}},v=function(a,b,d){var e=a.replace(c.regex.keyframes,"").match(c.regex.media),f=e&&e.length||0;b=b.substring(0,b.lastIndexOf("/"));var g=function(a){return a.replace(c.regex.urls,"$1"+b+"$2$3")},h=!f&&d;b.length&&(b+="/"),h&&(f=1);for(var i=0;f>i;i++){var j,k,n,o;h?(j=d,m.push(g(a))):(j=e[i].match(c.regex.findStyles)&&RegExp.$1,m.push(RegExp.$2&&g(RegExp.$2))),n=j.split(","),o=n.length;for(var p=0;o>p;p++)k=n[p],l.push({media:k.split("(")[0].match(c.regex.only)&&RegExp.$2||"all",rules:m.length-1,hasquery:k.indexOf("(")>-1,minw:k.match(c.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:k.match(c.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}u()},w=function(){if(d.length){var b=d.shift();f(b.href,function(c){v(c,b.href,b.media),o[b.href]=!0,a.setTimeout(function(){w()},0)})}},x=function(){for(var b=0;b<s.length;b++){var c=s[b],e=c.href,f=c.media,g=c.rel&&"stylesheet"===c.rel.toLowerCase();e&&g&&!o[e]&&(c.styleSheet&&c.styleSheet.rawCssText?(v(c.styleSheet.rawCssText,e,f),o[e]=!0):(!/^([a-zA-Z:]*\/\/)/.test(e)&&!r||e.replace(RegExp.$1,"").split("/")[0]===a.location.host)&&("//"===e.substring(0,2)&&(e=a.location.protocol+e),d.push({href:e,media:f})))}w()};x(),c.update=x,c.getEmValue=t,a.addEventListener?a.addEventListener("resize",b,!1):a.attachEvent&&a.attachEvent("onresize",b)}}(this); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Scripts/respond.min.js b/Mobile.WYSIWYG/Scripts/respond.min.js new file mode 100644 index 0000000..80a7b69 --- /dev/null +++ b/Mobile.WYSIWYG/Scripts/respond.min.js @@ -0,0 +1,5 @@ +/*! Respond.js v1.4.2: min/max-width media query polyfill * Copyright 2013 Scott Jehl + * Licensed under https://github.com/scottjehl/Respond/blob/master/LICENSE-MIT + * */ + +!function(a){"use strict";a.matchMedia=a.matchMedia||function(a){var b,c=a.documentElement,d=c.firstElementChild||c.firstChild,e=a.createElement("body"),f=a.createElement("div");return f.id="mq-test-1",f.style.cssText="position:absolute;top:-100em",e.style.background="none",e.appendChild(f),function(a){return f.innerHTML='­<style media="'+a+'"> #mq-test-1 { width: 42px; }</style>',c.insertBefore(e,d),b=42===f.offsetWidth,c.removeChild(e),{matches:b,media:a}}}(a.document)}(this),function(a){"use strict";function b(){u(!0)}var c={};a.respond=c,c.update=function(){};var d=[],e=function(){var b=!1;try{b=new a.XMLHttpRequest}catch(c){b=new a.ActiveXObject("Microsoft.XMLHTTP")}return function(){return b}}(),f=function(a,b){var c=e();c&&(c.open("GET",a,!0),c.onreadystatechange=function(){4!==c.readyState||200!==c.status&&304!==c.status||b(c.responseText)},4!==c.readyState&&c.send(null))};if(c.ajax=f,c.queue=d,c.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\([\s]*min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/,maxw:/\([\s]*max\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/},c.mediaQueriesSupported=a.matchMedia&&null!==a.matchMedia("only all")&&a.matchMedia("only all").matches,!c.mediaQueriesSupported){var g,h,i,j=a.document,k=j.documentElement,l=[],m=[],n=[],o={},p=30,q=j.getElementsByTagName("head")[0]||k,r=j.getElementsByTagName("base")[0],s=q.getElementsByTagName("link"),t=function(){var a,b=j.createElement("div"),c=j.body,d=k.style.fontSize,e=c&&c.style.fontSize,f=!1;return b.style.cssText="position:absolute;font-size:1em;width:1em",c||(c=f=j.createElement("body"),c.style.background="none"),k.style.fontSize="100%",c.style.fontSize="100%",c.appendChild(b),f&&k.insertBefore(c,k.firstChild),a=b.offsetWidth,f?k.removeChild(c):c.removeChild(b),k.style.fontSize=d,e&&(c.style.fontSize=e),a=i=parseFloat(a)},u=function(b){var c="clientWidth",d=k[c],e="CSS1Compat"===j.compatMode&&d||j.body[c]||d,f={},o=s[s.length-1],r=(new Date).getTime();if(b&&g&&p>r-g)return a.clearTimeout(h),h=a.setTimeout(u,p),void 0;g=r;for(var v in l)if(l.hasOwnProperty(v)){var w=l[v],x=w.minw,y=w.maxw,z=null===x,A=null===y,B="em";x&&(x=parseFloat(x)*(x.indexOf(B)>-1?i||t():1)),y&&(y=parseFloat(y)*(y.indexOf(B)>-1?i||t():1)),w.hasquery&&(z&&A||!(z||e>=x)||!(A||y>=e))||(f[w.media]||(f[w.media]=[]),f[w.media].push(m[w.rules]))}for(var C in n)n.hasOwnProperty(C)&&n[C]&&n[C].parentNode===q&&q.removeChild(n[C]);n.length=0;for(var D in f)if(f.hasOwnProperty(D)){var E=j.createElement("style"),F=f[D].join("\n");E.type="text/css",E.media=D,q.insertBefore(E,o.nextSibling),E.styleSheet?E.styleSheet.cssText=F:E.appendChild(j.createTextNode(F)),n.push(E)}},v=function(a,b,d){var e=a.replace(c.regex.keyframes,"").match(c.regex.media),f=e&&e.length||0;b=b.substring(0,b.lastIndexOf("/"));var g=function(a){return a.replace(c.regex.urls,"$1"+b+"$2$3")},h=!f&&d;b.length&&(b+="/"),h&&(f=1);for(var i=0;f>i;i++){var j,k,n,o;h?(j=d,m.push(g(a))):(j=e[i].match(c.regex.findStyles)&&RegExp.$1,m.push(RegExp.$2&&g(RegExp.$2))),n=j.split(","),o=n.length;for(var p=0;o>p;p++)k=n[p],l.push({media:k.split("(")[0].match(c.regex.only)&&RegExp.$2||"all",rules:m.length-1,hasquery:k.indexOf("(")>-1,minw:k.match(c.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:k.match(c.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}u()},w=function(){if(d.length){var b=d.shift();f(b.href,function(c){v(c,b.href,b.media),o[b.href]=!0,a.setTimeout(function(){w()},0)})}},x=function(){for(var b=0;b<s.length;b++){var c=s[b],e=c.href,f=c.media,g=c.rel&&"stylesheet"===c.rel.toLowerCase();e&&g&&!o[e]&&(c.styleSheet&&c.styleSheet.rawCssText?(v(c.styleSheet.rawCssText,e,f),o[e]=!0):(!/^([a-zA-Z:]*\/\/)/.test(e)&&!r||e.replace(RegExp.$1,"").split("/")[0]===a.location.host)&&("//"===e.substring(0,2)&&(e=a.location.protocol+e),d.push({href:e,media:f})))}w()};x(),c.update=x,c.getEmValue=t,a.addEventListener?a.addEventListener("resize",b,!1):a.attachEvent&&a.attachEvent("onresize",b)}}(this); \ No newline at end of file diff --git a/Mobile.WYSIWYG/Startup.cs b/Mobile.WYSIWYG/Startup.cs new file mode 100644 index 0000000..39856c7 --- /dev/null +++ b/Mobile.WYSIWYG/Startup.cs @@ -0,0 +1,14 @@ +using Microsoft.Owin; +using Owin; + +[assembly: OwinStartupAttribute(typeof(Mobile.Search.Web.Startup))] +namespace Mobile.Search.Web +{ + public partial class Startup + { + public void Configuration(IAppBuilder app) + { + ConfigureAuth(app); + } + } +} diff --git a/Mobile.WYSIWYG/Utils/Utils.cs b/Mobile.WYSIWYG/Utils/Utils.cs new file mode 100644 index 0000000..ae96b74 --- /dev/null +++ b/Mobile.WYSIWYG/Utils/Utils.cs @@ -0,0 +1,106 @@ +using System; +using System.Security.Cryptography; +using System.Text; + +namespace FroalaEditor +{ + /// <summary> + /// Basic utility functionality. + /// </summary> + public static class Utils + { + /// <summary> + /// Compute hash for string encoded as UTF8 + /// </summary> + /// <param name="s">String to be hashed</param> + /// <returns>40-character hex string</returns> + public static string SHA1HashStringForUTF8String(string s) + { + byte[] bytes = Encoding.UTF8.GetBytes(s); + + var sha1 = SHA1.Create(); + byte[] hashBytes = sha1.ComputeHash(bytes); + + return HexStringFromBytes(hashBytes); + } + + /// <summary> + /// Convert an array of bytes to a string of hex digits + /// </summary> + /// <param name="bytes">array of bytes</param> + /// <returns>String of hex digits</returns> + public static string HexStringFromBytes(byte[] bytes) + { + var sb = new StringBuilder(); + foreach (byte b in bytes) + { + var hex = b.ToString("x2"); + sb.Append(hex); + } + return sb.ToString(); + } + + /// <summary> + /// Generate an unique string based on current timestamp. + /// </summary> + /// <returns>Unique sha1 string</returns> + public static string GenerateUniqueString() + { + long milliseconds = DateTime.Now.Ticks / TimeSpan.TicksPerMillisecond; + return SHA1HashStringForUTF8String(milliseconds.ToString()); + } + + /// <summary> + /// Get file extension. + /// </summary> + /// <param name="filename">Filename.</param> + /// <returns>Extension without the dot.</returns> + public static string GetFileExtension(string filename) + { + return filename.Substring(filename.LastIndexOf('.') + 1); + } + + /// <summary> + /// Convert plain text string to a base 64 encoded string. + /// </summary> + /// <param name="plainText">String to convert.</param> + /// <returns>Base 64 converted string.</returns> + public static string Base64Encode(string plainText) + { + var plainTextBytes = Encoding.UTF8.GetBytes(plainText); + return Convert.ToBase64String(plainTextBytes); + } + + /// <summary> + /// Convert a string to a byte array. + /// </summary> + /// <param name="str">String to convert</param> + /// <returns>Converted bye array.</returns> + public static byte[] ToBytes(string str) + { + return Encoding.UTF8.GetBytes(str.ToCharArray()); + } + + /// <summary> + /// Convert byte array to a hex string. + /// </summary> + /// <param name="bytes">Byte array.</param> + /// <returns>Hex string.</returns> + public static string HexEncode(byte[] bytes) + { + return BitConverter.ToString(bytes).Replace("-", string.Empty).ToLowerInvariant(); + } + + /// <summary> + /// Generate HMAC256 hash. + /// </summary> + /// <param name="key">Byte array key.</param> + /// <param name="value">String value to hash.</param> + /// <returns>Byte array hash.</returns> + public static byte[] HMAC256(byte[] key, string value) + { + HMACSHA256 hmac = new HMACSHA256(key); + return hmac.ComputeHash(ToBytes(value)); + } + } +} diff --git a/Mobile.WYSIWYG/Views/Account/Login.cshtml b/Mobile.WYSIWYG/Views/Account/Login.cshtml new file mode 100644 index 0000000..6f81618 --- /dev/null +++ b/Mobile.WYSIWYG/Views/Account/Login.cshtml @@ -0,0 +1,37 @@ +@model Mobile.Search.Web.Controllers.LoginModel +@{ + ViewBag.Title = "Login"; +} + +<hgroup class="title"> + <h1>@ViewBag.Title.</h1> +</hgroup> + +<section id="loginForm"> + <h3>Use your ADK windows credentials to log in.</h3> + @using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl })) + { + @Html.AntiForgeryToken() + @Html.ValidationSummary(true) + + <fieldset> + <ul style="list-style-type: none"> + <li> + @Html.LabelFor(m => m.UserName) + @Html.TextBoxFor(m => m.UserName, new { @class = "form-control"}) + @Html.ValidationMessageFor(m => m.UserName) + </li> + <li> + @Html.LabelFor(m => m.Password) + @Html.PasswordFor(m => m.Password, new { @class = "form-control"}) + @Html.ValidationMessageFor(m => m.Password) + </li> + </ul> + <input type="submit" value="Log in" /> + </fieldset> + } +</section> + +@section Scripts { + @Scripts.Render("~/bundles/jqueryval") +} diff --git a/Mobile.WYSIWYG/Views/Home/Index.cshtml b/Mobile.WYSIWYG/Views/Home/Index.cshtml new file mode 100644 index 0000000..16bafce --- /dev/null +++ b/Mobile.WYSIWYG/Views/Home/Index.cshtml @@ -0,0 +1,128 @@ +@model Mobile.Search.Web.Controllers.SearchPageViewModel +@{ + ViewBag.Title = "Index"; + Layout = null; +} + +<html> + <head> + <title></title> + <link href="~/Content/bootstrap.min.css" rel="stylesheet" /> + <style> + #custom-search-input{ + padding: 3px; + border: solid 1px #E4E4E4; + border-radius: 6px; + margin-top: 5px; + background-color: #fff; + } + + #custom-search-input input{ + border: 0; + box-shadow: none; + } + + #custom-search-input button{ + margin: 2px 0 0 0; + background: none; + box-shadow: none; + border: 0; + color: #666666; + padding: 0 8px 0 10px; + } + + #custom-search-input button:hover{ + border: 0; + box-shadow: none; + border-left: solid 1px #ccc; + } + + #custom-search-input .glyphicon-search{ + font-size: 19px; + margin-top: -7px; + margin-right: -11px; + } + body { + background-color: #eee; + } + .header-bar { + background-color: #f1f1f1; + height: 69px; + margin-top: -15px; + position: absolute; + left: 0; + top: 0; + width: 100%; + border-bottom: 1px solid #e5e5e5; + } + + .home-page-search { + margin-top: 200px; + } + .search-results { + margin-top: 60px; + } + </style> + </head> + <body> + <div class="header-bar"></div> + @if (string.IsNullOrEmpty(Model.Html)) + { + using (Html.BeginForm("Index", "Home", FormMethod.Get)) + { + <div class="home-page-search"> + <div class="container"> + <div class="row"> + <div class="col-md-3 col-xs-2"></div> + <div class="col-md-6 col-xs-8"> + <div id="custom-search-input"> + <div class="input-group col-xs-12"> + <input type="text" name="q" class="form-control" placeholder="Search" /> + <span class="input-group-btn"> + <button class="btn btn-info btn-sm" type="button"> + <i class="glyphicon glyphicon-search"></i> + </button> + </span> + </div> + </div> + </div> + <div class="col-md-3 col-xs-2"></div> + </div> + </div> + </div> + } + } + else + { + <div class="row" style="margin-left:10px; margin-right:10px;"> + <div class="col-md-4 col-sm-6 col-xs-12"> + @using (Html.BeginForm("Index", "Home", FormMethod.Get)) + { + <div id="custom-search-input"> + <div class="input-group col-xs-12"> + <input type="text" name="q" class="form-control" placeholder="Search" /> + <span class="input-group-btn"> + <button class="btn btn-info btn-sm" type="button"> + <i class="glyphicon glyphicon-search"></i> + </button> + </span> + </div> + </div> + } + </div> + <div class="col-md-8 col-sm-6"></div> + <div class="search-results"> + @Html.Raw(Model.Html) + </div> + </div> + } + <!--@ViewBag.ExceptionBody--> + + <!--URL: @ViewBag.Url--> + </body> +</html> + + + + + diff --git a/Mobile.WYSIWYG/Views/InboxMobi/Index.cshtml b/Mobile.WYSIWYG/Views/InboxMobi/Index.cshtml new file mode 100644 index 0000000..a9d0646 --- /dev/null +++ b/Mobile.WYSIWYG/Views/InboxMobi/Index.cshtml @@ -0,0 +1,218 @@ +@model Mobile.Search.Web.Controllers.SearchPageViewModel +@{ + ViewBag.Title = "Index"; + Layout = null; +} + +<html> +<head> + <title></title> + <link href="~/Content/bootstrap.min.css" rel="stylesheet" /> + <title>InboxMobi | Search</title> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" /> + <style type="text/css"> + .ybox input[type=text] { + border-radius: 2px; + font-size: 16px; + color: #333; + display: inline-block; + font-family: 'helvetica neue', helvetica, arial, sans-serif; + } + + body { + background-color: white; + margin: 0; + padding: 0; + } + + .contain { + border-top: solid 1px #ccc; + background-color: #eee; + max-width: 700px; + margin: auto; + font-family: arial; + height: 300px; + overflow: hidden; + } + + .contain-box { + background-color: white; + margin: 0; + padding-top: 10px; + padding-bottom: 10px; + width: 100%; + max-width: 556px; + border: 1px solid transparent; + border-bottom: 1px solid #ccc; + } + + .contain-box.search-bar { + margin-top: -1px; + margin-bottom: 6px; + } + + .contain-box .title { + margin-left: 10px; + margin-right: 10px; + color: #0000db; + font-size: 18px; + text-decoration: none; + font-family: helvetica, arial, sans-serif; + cursor: pointer; + } + + .contain-box .site { + color: #1B6F75; + margin-left: 10px; + margin-right: 10px; + font-family: helvetica, arial, sans-serif; + font-size: 13px; + } + + .contain-box .description { + color: #585962; + margin-left: 10px; + margin-right: 10px; + line-height: 17px; + font-family: helvetica, arial, sans-serif; + font-size: 13px; + } + + .search-results { + margin-top: 5px; + margin-left: 10px; + margin-right: 10px; + overflow: hidden; + } + + .header-bar { + margin-top: -15px; + position: absolute; + left: 0; + top: 0; + width: 100%; + } + + .home-page-search { + margin-top: 200px; + } + + .search-results { + } + + .search_button { + padding: 5px; + background: #0000DB; + width: 40px; + height: 37px; + border: none; + position: absolute; + top: 0; + right: 0; + opacity: 1; + z-index: 5; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; + } + + .search_button .loupe { + display: inline-block; + position: relative; + width: 20px; + height: 20px; + } + + .search_button .glass { + position: absolute; + width: 14px; + height: 14px; + border: 2px solid #fff; + border-radius: 100%; + top: 3px; + left: 0; + } + + .search_button .handle { + position: absolute; + display: inline-block; + border: 0; + background-color: #fff; + width: 9px; + height: 3px; + right: 1px; + bottom: 1px; + -webkit-transform: rotate(45deg); + transform: rotate(45deg); + } + </style> +</head> +<body> + <img src="@Model.PixelUrl" style="visibility: hidden;" /> + <div class="header-bar"></div> + @if (string.IsNullOrEmpty(Model.Html)) + { + using (Html.BeginForm("Index", "InboxMobi", FormMethod.Get)) + { + @Html.Hidden("uuid", Request.QueryString["uuid"]) + @Html.Hidden("product", Request.QueryString["product"]) + @Html.Hidden("src", Request.QueryString["src"]) + @Html.Hidden("pubid", Request.QueryString["pubid"]) + <div class="home-page-search"> + <div class="container"> + <div class="row"> + <div class="col-md-3 col-xs-2"></div> + <div class="col-md-6 col-xs-8"> + <div id="custom-search-input"> + <div class="input-group col-xs-12"> + <input type="text" name="q" class="form-control" placeholder="Search" style="height:37px" /> + <button type="submit" class="search_button" data-reactid=".7rbt1slc0.1.1.0.0.a.1"><span class="loupe" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1"><span class="glass" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1.0"></span><span class="handle" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1.1"></span></span></button> + </div> + </div> + </div> + <div class="col-md-3 col-xs-2"></div> + </div> + </div> + </div> + } + } + else + { + <div class="row" style="margin-left:10px; margin-right:10px;"> + <div class="col-md-4 col-sm-6 col-xs-12"> + @using (Html.BeginForm("Index", "InboxMobi", FormMethod.Get)) + { + <div id="custom-search-input"> + <div class="input-group col-xs-12"> + <div id="custom-search-input"> + <div class="input-group col-xs-12"> + <input type="text" name="q" class="form-control" value="@Model.Query" placeholder="Search" style="height:37px" /> + <button type="submit" class="search_button" data-reactid=".7rbt1slc0.1.1.0.0.a.1"><span class="loupe" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1"><span class="glass" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1.0"></span><span class="handle" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1.1"></span></span></button> + </div> + </div> + </div> + </div> + } + </div> + <div class="col-md-8 col-sm-6"></div> + </div> + <div class="search-results"> + @Html.Raw(Model.Html) + </div> + } + + <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script> + + <script> +$(function() { + $('.contain-box').click(function() { + window.document.location = $(this).data('href'); + }); + $('.arrow').click(function() { + window.document.location = $(this).data('href'); + }); +}) + </script> +</body> +</html> \ No newline at end of file diff --git a/Mobile.WYSIWYG/Views/InboxMobi/IndexB.cshtml b/Mobile.WYSIWYG/Views/InboxMobi/IndexB.cshtml new file mode 100644 index 0000000..2b97a01 --- /dev/null +++ b/Mobile.WYSIWYG/Views/InboxMobi/IndexB.cshtml @@ -0,0 +1,233 @@ +@model Mobile.Search.Web.Controllers.SearchPageViewModel +@{ + ViewBag.Title = "Index"; + Layout = null; +} + +<html> +<head> + <title></title> + <link href="~/Content/bootstrap.min.css" rel="stylesheet" /> + <title>InboxMobi | Search</title> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" /> + <style type="text/css"> + .ybox input[type=text] { + border-radius: 2px; + font-size: 16px; + color: #333; + display: inline-block; + font-family: 'helvetica neue', helvetica, arial, sans-serif; + } + + body { + background-color: white; + margin: 0; + overflow-x: hidden; + padding: 0; + } + + .contain { + border-top: solid 1px #ccc; + background-color: #eee; + max-width: 700px; + margin: auto; + font-family: arial; + height: 300px; + overflow: hidden; + } + + .contain-box { + background-color: white; + margin: 0; + padding-top: 10px; + padding-bottom: 10px; + width: 100%; + max-width: 556px; + border: 1px solid transparent; + border-bottom: 1px solid #ccc; + } + + .contain-box.search-bar { + margin-top: -1px; + margin-bottom: 6px; + } + + .contain-box .title { + margin-left: 10px; + margin-right: 10px; + color: #0000db; + font-size: 18px; + text-decoration: none; + font-family: helvetica, arial, sans-serif; + cursor: pointer; + } + + .contain-box .site { + color: #1B6F75; + margin-left: 10px; + margin-right: 10px; + font-family: helvetica, arial, sans-serif; + font-size: 13px; + } + + .contain-box .description { + color: #585962; + margin-left: 10px; + margin-right: 10px; + line-height: 17px; + font-family: helvetica, arial, sans-serif; + font-size: 13px; + } + + .search-results { + margin-top: 5px; + margin-left: 10px; + margin-right: 10px; + overflow: hidden; + } + + .header-bar { + margin-top: -15px; + position: absolute; + left: 0; + top: 0; + width: 100%; + } + + .home-page-search { + margin-top: 200px; + } + + .search-results { + } + + .search_button { + padding: 5px; + background: #0000DB; + width: 40px; + height: 37px; + border: none; + position: absolute; + top: 0; + right: 0; + opacity: 1; + z-index: 5; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; + } + + .search_button .loupe { + display: inline-block; + position: relative; + width: 20px; + height: 20px; + } + + .search_button .glass { + position: absolute; + width: 14px; + height: 14px; + border: 2px solid #fff; + border-radius: 100%; + top: 3px; + left: 0; + } + + .search_button .handle { + position: absolute; + display: inline-block; + border: 0; + background-color: #fff; + width: 9px; + height: 3px; + right: 1px; + bottom: 1px; + -webkit-transform: rotate(45deg); + transform: rotate(45deg); + } + </style> +</head> +<body> + <img src="@Model.PixelUrl" style="visibility: hidden;" /> + <div class="header-bar"></div> + @if (string.IsNullOrEmpty(Model.Html)) + { + using (Html.BeginForm("Index", "InboxMobi", FormMethod.Get)) + { + @Html.Hidden("uuid", Request.QueryString["uuid"]) + @Html.Hidden("product", Request.QueryString["product"]) + @Html.Hidden("src", Request.QueryString["src"]) + @Html.Hidden("pubid", Request.QueryString["pubid"]) + @Html.Hidden("view", "IndexB") + <div class="home-page-search"> + <div class="container"> + <div class="row"> + <div class="col-md-3 col-xs-2"></div> + <div class="col-md-6 col-xs-8"> + <div id="custom-search-input"> + <div class="input-group col-xs-12"> + <input type="text" name="q" class="form-control" placeholder="Search" style="height:37px" /> + <button type="submit" class="search_button" data-reactid=".7rbt1slc0.1.1.0.0.a.1"><span class="loupe" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1"><span class="glass" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1.0"></span><span class="handle" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1.1"></span></span></button> + </div> + </div> + </div> + <div class="col-md-3 col-xs-2"></div> + </div> + </div> + </div> + } + } + else + { + <div class="row" style=""> + <div class="col-md-4 col-sm-6 col-xs-12"> + @using (Html.BeginForm("Index", "InboxMobi", FormMethod.Get)) + { + @Html.Hidden("uuid", Request.QueryString["uuid"]) + @Html.Hidden("product", Request.QueryString["product"]) + @Html.Hidden("src", Request.QueryString["src"]) + @Html.Hidden("pubid", Request.QueryString["pubid"]) + @Html.Hidden("view", "IndexB") + <div id="custom-search-input"> + <div class="input-group col-xs-12"> + <div id="custom-search-input"> + <div class="input-group col-xs-12"> + <div style="width:100%;height:47px;border-bottom:1px solid #a9a9a9;background-color:#f8f8f8;margin:0 auto;text-align:center;position:fixed;top:0px;"> + <div style="width:100%;max-width:475px;margin:0 auto;text-align:left;padding-top:9px;"> + <div style="background-color:#e5e6e8;border-radius:5px;text-align:center;margin:0 auto;width:90%;"> + <div style="font-size:11pt;color:#8e8e90;text-align:left;padding:2px;padding-left:6px;"> + <input type="search" width="100%" style="border: none;border-color: transparent;-webkit-appearance: none;-moz-appearance: none;appearance: none;width:100%;outline: none;background-color:#e5e6e8;-webkit-box-shadow: none;box-shadow: none;" placeholder="Enter Safe Search Term" name="q" id="searchTerm" onclick="this.value='';" /> + </div> + </div> + <div style="clear:both"></div> + </div> + </div> + </div> + </div> + </div> + </div> + } + </div> + <div class="col-md-8 col-sm-6"></div> + </div> + <div class="search-results"> + @Html.Raw(Model.Html) + </div> + } + + <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script> + + <script> +$(function() { + $('.contain-box').click(function() { + window.document.location = $(this).data('href'); + }); + $('.arrow').click(function() { + window.document.location = $(this).data('href'); + }); +}) + </script> +</body> +</html> diff --git a/Mobile.WYSIWYG/Views/Lightning/Bible.cshtml b/Mobile.WYSIWYG/Views/Lightning/Bible.cshtml new file mode 100644 index 0000000..675f979 --- /dev/null +++ b/Mobile.WYSIWYG/Views/Lightning/Bible.cshtml @@ -0,0 +1,446 @@ + +@model Mobile.Search.Web.Controllers.SearchPageViewModel +@{ + ViewBag.Title = "Bible Search"; + Layout = null; + ViewBag.design = Request["design"]; +} +<html> +<head> + <title>Lightning | Search</title> + <link href="~/Content/bootstrap.min.css" rel="stylesheet" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> + <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" /> + <link href="https://fonts.googleapis.com/css?family=Roboto:300,400" rel="stylesheet"> + <style type="text/css"> + .ybox input[type=text] { + font-size: 16px; + color: #333; + display: inline-block; + font-family: 'helvetica neue', helvetica, arial, sans-serif; + } + + body { + background-color: #f2f2f2; + padding: 0; + margin: 0; + font-family: Roboto; + } + + .custom-search-input { + } + + .contain { + border-top: solid 1px #ccc; + background-color: white; + max-width: 960px; + margin: auto; + font-family: arial; + height: 300px; + overflow: hidden; + } + + .contain-box { + background-color: white; + margin: 0 auto; + margin-top: 8px; + margin-bottom: 8px; + padding-top: 10px; + padding-bottom: 10px; + width: 100%; + max-width: 960px; + border: 1px solid #e1e1e1; + width: 100%; + border-bottom: 1px solid #d2d2d2; + } + + .contain-box.search-bar { + } + + .contain-box .title { + margin-left: 10px; + margin-right: 10px; + margin-bottom: 8px; + color: #0000db; + font-size: 18px; + text-decoration: none; + font-family: helvetica, arial, sans-serif; + cursor: pointer; + border-bottom: 1px solid #ebebeb; + } + + .contain-box .site { + color: #1B6F75; + margin-left: 10px; + margin-right: 10px; + font-family: helvetica, arial, sans-serif; + font-size: 13px; + } + + .contain-box .description { + color: #585962; + margin-left: 10px; + margin-right: 10px; + line-height: 17px; + font-family: helvetica, arial, sans-serif; + font-size: 13px; + } + + .search-results { + margin-top: 5px; + margin-left: 10px; + margin-right: 10px; + text-align: left; + background-color: #f2f2f2; + overflow: hidden; + } + + .home-page-search { + margin: 0 auto; + text-align: center; + } + + + .search_button { + padding: 5px; + background: #3b78e7; + width: 40px; + height: 37px; + border: none; + position: absolute; + top: 0; + right: 0; + opacity: 1; + z-index: 5; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; + } + + .search_button .loupe { + display: inline-block; + position: relative; + width: 20px; + height: 20px; + } + + .search_button .glass { + position: absolute; + width: 14px; + height: 14px; + border: 2px solid #fff; + border-radius: 100%; + top: 3px; + left: 0; + } + + .search_button .handle { + position: absolute; + display: inline-block; + border: 0; + background-color: #fff; + width: 9px; + height: 3px; + right: 1px; + bottom: 1px; + -webkit-transform: rotate(45deg); + transform: rotate(45deg); + } + + #search_input { + height: 35px; + width: 100%; + max-width: 960px; + outline: none; + border: none; + font-size: 16px; + background-color: transparent; + } + + span { + display: block; + overflow: hidden; + padding-left: 5px; + vertical-align: middle; + } + + .search_bar { + width: 100%; + height: 35px; + max-width: 940px; + margin: 0 auto; + background-color: #fff; + box-shadow: 0px 2px 3px rgba( 0, 0, 0, 0.25 ); + font-family: Arial; + color: #444; + } + + #search_submit { + outline: none; + height: 37px; + float: right; + color: #404040; + font-size: 16px; + font-weight: bold; + border: none; + background-color: transparent; + } + + .outer { + } + + .middle { + display: table-cell; + vertical-align: middle; + } + + .inner { + margin-left: auto; + margin-right: auto; + margin-bottom: 10%; + width: 100%; + } + + img.smaller { + width: 50%; + max-width: 300px; + } + + .box { + vertical-align: middle; + position: relative; + display: block; + margin: 10px; + padding-left: 10px; + padding-right: 10px; + padding-top: 5px; + padding-bottom: 5px; + background-color: #fff; + box-shadow: 0px 3px rgba( 0, 0, 0, 0.1 ); + font-family: Arial; + color: #444; + font-size: 12px; + } + + .topper { + } + + .widget { + margin-top: 10px; + } + + #table-wrapper { + width: 100%; + height: 200px; + display: table; + vertical-align: middle; + text-align: center; + max-width: 800px; + margin: 0 auto; + } + + #carousel { + width: 100%; + height: 180px; + background-color: #ffffff; + overflow: auto; + white-space: nowrap; + } + + #carousel .slide { + display: inline-block; + width: 169px; + text-overflow: ellipsis; + font: 10pt roboto; + } + </style> + +</head> +<body> + @if (string.IsNullOrEmpty(Model.Html)) + { + <div style="width:100%;margin:0 auto; text-align:center;"> + <div id="table-wrapper"> + <div style="background-image:url('http://biblicalbuddy.com/Content/Images/Bible/bible-backer.jpg');background-size:cover;height:150px; width:100%; display:table-cell; + vertical-align:middle;background-position:bottom"> + <form action="http://search.lightningbrowser.com/Lightning/Bible" method="get"> + + @Html.Hidden("uuid", Request.QueryString["uuid"]) + @Html.Hidden("src", Request.QueryString["src"]) + <div class="home-page-search"> + + <div style="color:#ffffff;font-size:18pt;font-family:'Roboto';font-weight:300">Bible Browser</div> + <div class="topper" style="margin-left:10px; margin-right:10px;margin-top:10px;margin-bottom:10px;"> + + <div class="custom-search-input"> + <div class="input-group col-xs-12"> + + <input type="text" name="q" class="form-control" value="@Model.Query" placeholder="Search" style="height:37px;border-radius:0px;" /> + <button type="submit" class="search_button" data-reactid=".7rbt1slc0.1.1.0.0.a.1"><span class="loupe" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1"><span class="glass" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1.0"></span><span class="handle" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1.1"></span></span></button> + </div> + </div> + + + </div> + </div> + + + </form> + </div> + </div> + + <div style="background-color:#ffffff;margin-top:10px;padding:10px; width:100%;max-width:800px;text-align:center;margin:0 auto;"> + + + + <img src="http://search.lightningbrowser.com/Content/Images/BibleBrowser/temp-verse.jpg" style="width:100%;max-width:540px;"/> + </div> + </div> + + <div style="background-color:#ffffff;margin-top:10px;padding:10px; width:100%;max-width:800px;text-align:center;margin:0 auto;"> + <div style="font-size:20pt;">Past Verses</div> + + + <img src="http://search.lightningbrowser.com/Content/Images/BibleBrowser/temp-img2.jpg" style="width:100%;max-width:540px;" /> + <br /><br /> + <img src="http://search.lightningbrowser.com/Content/Images/BibleBrowser/temp-image3.jpg" style="width:100%;max-width:540px;" /> + </div> + + + + + + <!-- <a href="http://www.whatsmysignsay.com/5-reasons-your-sign-is-best/"> + <div style="background-color:#ffffff;margin-top:10px;padding:10px; width:95%;max-width:800px;text-align:center;margin:0 auto;margin-top:10px;border:1px solid #acacac"> + <div style="float:left"><img src="http://search.lightningbrowser.com/Content/Images/playstore-icon.png" width="25" /></div> + <div style="float:left;font:6pt;color:#808080;margin-top:5px;margin-left:5px;">Astrology</div> + <div style="clear:both"></div> + <div style="text-align:left;font-weight:bolder;margin-top:5px;font-size:14pt;">5 Reasons Your Sign Is The Best Sign</div> + <div style="float:left;width:60%;text-align:left;">In this three part article we will review the top five, most positive traits possessed by each of the 12 zodiac signs. Read Part 1 Now!</div> + <div style="float:right"> + <div style="width:125px;height:75px;background-image:url('http://dqqrlago0bb5s.cloudfront.net/wp-content/uploads/2016/09/22044925/bestsign_taurus-203x150.jpg');background-size:cover;"></div> + + </div> + <div style="clear:both"></div> + </div> + </a> + <a href="http://www.whatsmysignsay.com/numerology-basics/"> + <div style="background-color:#ffffff;margin-top:10px;padding:10px; width:95%;max-width:800px;text-align:center;margin:0 auto;margin-top:10px;border:1px solid #acacac"> + <div style="float:left"><img src="http://search.lightningbrowser.com/Content/Images/playstore-icon.png" width="25" /></div> + <div style="float:left;font:6pt;color:#808080;margin-top:5px;margin-left:5px;">Numerology</div> + <div style="clear:both"></div> + <div style="text-align:left;font-weight:bolder;margin-top:5px;font-size:14pt;">The Basics Of Numerology Part One</div> + <div style="float:left;width:60%;text-align:left;">Numerology is intriguingly interesting part of the occult. As mathematics, more and more, is defining the universe and the world around us – Learn more now!</div> + <div style="float:right"> + <div style="width:125px;height:75px;;background-image:url('http://dqqrlago0bb5s.cloudfront.net/wp-content/uploads/2016/09/23040512/numerology2.jpg');background-size:cover;"></div> + + </div> + <div style="clear:both"></div> + </div> + </a> + <a href="http://www.whatsmysignsay.com/compatible-zodiac-signs/"> + + <div style="background-color:#ffffff;margin-top:10px;padding:10px; width:95%;max-width:800px;text-align:center;margin:0 auto;margin-top:10px;border:1px solid #acacac"> + <div style="float:left"><img src="http://search.lightningbrowser.com/Content/Images/playstore-icon.png" width="25" /></div> + <div style="float:left;font:6pt;color:#808080;margin-top:5px;margin-left:5px;">Love</div> + <div style="clear:both"></div> + <div style="text-align:left;font-weight:bolder;margin-top:5px;font-size:14pt;">Which Zodiac Sign Are You Compatible With?</div> + <div style="float:left;width:60%;text-align:left;">One of the most common questions people who follow and consult astrology have is: “Which zodiac sign am I most compatible with?”</div> + <div style="float:right"> + <div style="width:125px;height:75px;background-image:url('http://dqqrlago0bb5s.cloudfront.net/wp-content/uploads/2016/10/04153136/compatible_zodiac_1.jpg');background-size:cover;"></div> + + </div> + <div style="clear:both"></div> + </div> + </a>--> + + + + + + + + <!-- <div style="background-color:#ffffff;margin-top:10px;padding:10px;"> + <table style="text-align:center;margin:0 auto;width:100%;max-width:475px;"> + <tr> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.yahoo.com')"><img src="~/content/Images/image-Yahoo-app-icon.png" width="40" /><br />Yahoo</td> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.youtube.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-youtube.png" width="40" /><br />Youtube</td> + <td style="text-align:center;padding-top:10px;margin:0 auto;" onclick="goURL('http://www.facebook.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-facebook.png" width="40" /><br />Facebook</td> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.twitter.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-twitter.png" width="40" /><br />Twitter</td> + </tr> + <tr> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.instagram.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-instagram.png" width="40" /><br />Instagram</td> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('https://login.yahoo.com')"><img src="~/Content/Images/Yahoo-Mail-3.0-for-iOS-app-icon-small.png" width="40" /><br />E-Mail</td> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.cnn.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-cnn.png" width="40" /><br />CNN</td> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.weather.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-weather.png" width="40" /><br />Weather</td> + + </tr> + <tr> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://maps.google.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-maps.png" width="40" /><br />Maps</td> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.bloomberg.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-bloomberg.png" width="40" /><br />Bloomberg</td> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.amazon.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-amazon.png" width="40" /><br />Amazon</td> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.ebay.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-ebay.png" width="40" /><br />ebay</td> + </tr> + <tr> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.wikipedia.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-wikipedia.png" width="40" /><br />wikipedia</td> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.nytimes.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-nyt.png" width="40" /><br />NY Times</td> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.espn.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-espn.png" width="40" /><br />ESPN</td> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.imdb.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-imdb.png" width="40" /><br />iMDb</td> + </tr> + </table> + </div>--> + } + else + { + + <div class="topper"> + <div id="table-wrapper"> + <div style="background-image:url('http://biblicalbuddy.com/Content/Images/Bible/bible-backer.jpg');background-size:cover;height:150px; width:100%; display:table-cell; + vertical-align:middle;background-position:bottom"> + <form action="http://search.lightningbrowser.com/Lightning/Bible" method="get"> + + @Html.Hidden("uuid", Request.QueryString["uuid"]) + @Html.Hidden("src", Request.QueryString["src"]) + <div class="home-page-search"> + + <div style="color:#ffffff;font-size:18pt;font-family:'Roboto';font-weight:300">Bible Browser</div> + <div class="topper" style="margin-left:10px; margin-right:10px;margin-top:10px;margin-bottom:10px;"> + + <div class="custom-search-input"> + <div class="input-group col-xs-12"> + + <input type="text" name="q" class="form-control" value="@Model.Query" placeholder="Search" style="height:37px;border-radius:0px;" /> + <button type="submit" class="search_button" data-reactid=".7rbt1slc0.1.1.0.0.a.1"><span class="loupe" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1"><span class="glass" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1.0"></span><span class="handle" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1.1"></span></span></button> + </div> + </div> + + + </div> + </div> + + + </form> + </div> + </div> + + </div> + <div class="search-results"> + @Html.Raw(Model.Html) + </div> + } + <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script> + <script> + $(function () { + $('.contain-box').click(function () { + window.document.location = $(this).data('href'); + }); + $('.arrow').click(function () { + window.document.location = $(this).data('href'); + }); + }) + </script> +</body> + +</html> + + diff --git a/Mobile.WYSIWYG/Views/Lightning/Discounts.cshtml b/Mobile.WYSIWYG/Views/Lightning/Discounts.cshtml new file mode 100644 index 0000000..917b20e --- /dev/null +++ b/Mobile.WYSIWYG/Views/Lightning/Discounts.cshtml @@ -0,0 +1,473 @@ + +@model Mobile.Search.Web.Controllers.SearchPageViewModel +@{ + ViewBag.Title = "Discount Search"; + Layout = null; + ViewBag.design = Request["design"]; +} +<html> +<head> + <title>Lightning | Search</title> + <link href="~/Content/bootstrap.min.css" rel="stylesheet" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> + <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" /> + <link href="https://fonts.googleapis.com/css?family=Roboto:300,400" rel="stylesheet"> + <style type="text/css"> + .ybox input[type=text] { + font-size: 16px; + color: #333; + display: inline-block; + font-family: 'helvetica neue', helvetica, arial, sans-serif; + } + + body { + background-color: #f2f2f2; + padding: 0; + margin: 0; + font-family: Roboto; + } + + .custom-search-input { + } + + .contain { + border-top: solid 1px #ccc; + background-color: white; + max-width: 960px; + margin: auto; + font-family: arial; + height: 300px; + overflow: hidden; + } + + .contain-box { + background-color: white; + margin: 0 auto; + margin-top: 8px; + margin-bottom: 8px; + padding-top: 10px; + padding-bottom: 10px; + width: 100%; + max-width: 960px; + border: 1px solid #e1e1e1; + width: 100%; + border-bottom: 1px solid #d2d2d2; + } + + .contain-box.search-bar { + } + + .contain-box .title { + margin-left: 10px; + margin-right: 10px; + margin-bottom: 8px; + color: #0000db; + font-size: 18px; + text-decoration: none; + font-family: helvetica, arial, sans-serif; + cursor: pointer; + border-bottom: 1px solid #ebebeb; + } + + .contain-box .site { + color: #1B6F75; + margin-left: 10px; + margin-right: 10px; + font-family: helvetica, arial, sans-serif; + font-size: 13px; + } + + .contain-box .description { + color: #585962; + margin-left: 10px; + margin-right: 10px; + line-height: 17px; + font-family: helvetica, arial, sans-serif; + font-size: 13px; + } + + .search-results { + margin-top: 5px; + margin-left: 10px; + margin-right: 10px; + text-align: left; + background-color: #f2f2f2; + overflow: hidden; + } + + .home-page-search { + margin: 0 auto; + text-align: center; + } + + + .search_button { + padding: 5px; + background: #3b78e7; + width: 40px; + height: 37px; + border: none; + position: absolute; + top: 0; + right: 0; + opacity: 1; + z-index: 5; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; + } + + .search_button .loupe { + display: inline-block; + position: relative; + width: 20px; + height: 20px; + } + + .search_button .glass { + position: absolute; + width: 14px; + height: 14px; + border: 2px solid #fff; + border-radius: 100%; + top: 3px; + left: 0; + } + + .search_button .handle { + position: absolute; + display: inline-block; + border: 0; + background-color: #fff; + width: 9px; + height: 3px; + right: 1px; + bottom: 1px; + -webkit-transform: rotate(45deg); + transform: rotate(45deg); + } + + #search_input { + height: 35px; + width: 100%; + max-width: 960px; + outline: none; + border: none; + font-size: 16px; + background-color: transparent; + } + + span { + display: block; + overflow: hidden; + padding-left: 5px; + vertical-align: middle; + } + + .search_bar { + width: 100%; + height: 35px; + max-width: 940px; + margin: 0 auto; + background-color: #fff; + box-shadow: 0px 2px 3px rgba( 0, 0, 0, 0.25 ); + font-family: Arial; + color: #444; + } + + #search_submit { + outline: none; + height: 37px; + float: right; + color: #404040; + font-size: 16px; + font-weight: bold; + border: none; + background-color: transparent; + } + + .outer { + } + + .middle { + display: table-cell; + vertical-align: middle; + } + + .inner { + margin-left: auto; + margin-right: auto; + margin-bottom: 10%; + width: 100%; + } + + img.smaller { + width: 50%; + max-width: 300px; + } + + .box { + vertical-align: middle; + position: relative; + display: block; + margin: 10px; + padding-left: 10px; + padding-right: 10px; + padding-top: 5px; + padding-bottom: 5px; + background-color: #fff; + box-shadow: 0px 3px rgba( 0, 0, 0, 0.1 ); + font-family: Arial; + color: #444; + font-size: 12px; + } + + .topper { + } + + .widget { + margin-top: 10px; + } + + #table-wrapper { + width: 100%; + height: 200px; + display: table; + vertical-align: middle; + text-align: center; + max-width: 800px; + margin: 0 auto; + } + + #carousel { + width: 100%; + height: 180px; + background-color: #ffffff; + overflow: auto; + white-space: nowrap; + } + + #carousel .slide { + display: inline-block; + width: 169px; + text-overflow: ellipsis; + font: 10pt roboto; + } + </style> + +</head> +<body> + @if (string.IsNullOrEmpty(Model.Html)) + { + <div style=" width:95%;max-width:800px;margin:0 auto; text-align:center;border:1px solid #acacac;margin-top:10px;"> + <div id="table-wrapper"> + <div style="background-image:url('');background-color:#FFFFFF;background-size:cover;height:150px; width:100%; display:table-cell; + vertical-align:middle;"> + <form action="http://search.lightningbrowser.com/Lightning/Discounts" method="get"> + + @Html.Hidden("uuid", Request.QueryString["uuid"]) + @Html.Hidden("src", Request.QueryString["src"]) + <div class="home-page-search"> + <img src="http://search.lightningbrowser.com/Content/Images/BargainExplorer/icon-small.png" width="200"/> + <div style="color:#ffffff;font-size:18pt;font-family:'Roboto';font-weight:300;margin-bottom:10px;"><img src="http://search.lightningbrowser.com/Content/Images/BargainExplorer/bargain-icon.png" style="width:98%;max-width:500px;" /></div> + <div class="topper" style="margin-left:10px; margin-right:10px;margin-top:20px;"> + + <div class="custom-search-input"> + <div class="input-group col-xs-12"> + + <input type="text" name="q" class="form-control" value="@Model.Query" placeholder="Search For Discounts" style="height:37px;border-radius:0px;" /> + <button type="submit" class="search_button" data-reactid=".7rbt1slc0.1.1.0.0.a.1"><span class="loupe" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1"><span class="glass" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1.0"></span><span class="handle" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1.1"></span></span></button> + </div> + </div> + + + </div> + </div> + + + </form> + </div> + </div> + + <div style="background-color:#ffffff;margin-top:10px;padding:10px; width:100%;max-width:800px;text-align:center;margin:0 auto;"> + <div style="font-size:20pt;"><img src="http://search.lightningbrowser.com/Content/Images/BargainExplorer/suggested.png" style="width:98%;max-width:500px;" /></div> + + + <table border="0" style="width:100%;max-width:500px;padding: 0; border-spacing: 0;text-align:left;margin:0 auto; color:#000;font-size:13px;background-color:white;-webkit-border-radius: 10px;"> + <tbody> + <tr style="background-color: #F9F9F9;"> + <td width="50%" style="padding-left:5px;" valign="middle"> + <label><a href="discounts?q=grocery discounts" style="font-size:15pt;">Grocery</a></label> + </td> + + <td width="50%" style="padding-left:5px;"> + <label><a href="discounts?q=household discounts" style="font-size:15pt;">Home</a></label> + </td> + + </tr> + + + <tr> + <td width="50%" style="padding-left:5px;"> + <label><a href="discounts?q=personal care discounts" style="font-size:15pt;">Personal Care</a></label> + </td> + <td width="50%" style="padding-left:5px;"> + <label> <a href="discounts?q=health" style="font-size:15pt;">Health</a></label> + </td> + + + </tr> + <tr style="background-color: #F9F9F9;"> + + <td width="50%" style="padding-left:5px;"> + <label><a href="discounts?q=beverage discounts" style="font-size:15pt;">Beverage</a></label> + </td> + <td width="50%" style="padding-left:5px;"> + <label><a href="discounts?q=baby discounts" style="font-size:15pt;">Baby</a></label> + </td> + + </tr> + + <tr> + <td width="60%" style="padding-left:5px;"> + <label><a href="discounts?q=automotive discounts" style="font-size:15pt;">Automotive</a></label> + </td> + <td width="50%" style="padding-left:5px;"> + <label><a href="discounts?q=pet care discounts" style="font-size:15pt;">Pet Care</a></label> + </td> + + </tr> + + + + + + </tbody> + </table> + + </div> + + </div> + + + <a href="#"> + <div style="background-color:#ffffff;margin-top:10px;padding:10px; width:95%;max-width:800px;text-align:center;margin:0 auto;margin-top:10px;border:1px solid #acacac"> + <div style="float:left"><img src="http://search.lightningbrowser.com/Content/Images/BargainExplorer/icon-small.png" width="25" /></div> + <div style="float:left;font:6pt;color:#808080;margin-top:5px;margin-left:5px;">Coupons</div> + <div style="clear:both"></div> + <div style="text-align:left;font-weight:bolder;margin-top:5px;font-size:14pt;">Top 10 Couponing Tricks</div> + <div style="float:left;width:60%;text-align:left;">In this three part article we will review the top ten, most valueable tricks to couponing! Read Part 1 Now!</div> + <div style="float:right"> + <div style="width:125px;height:75px;background-image:url('http://cdn.moneycrashers.com/wp-content/uploads/2010/11/coupons-scissors-brown-bag.jpg');background-size:cover;"></div> + + </div> + <div style="clear:both"></div> + </div> + </a> + <a href="#"> + <div style="background-color:#ffffff;margin-top:10px;padding:10px; width:95%;max-width:800px;text-align:center;margin:0 auto;margin-top:10px;border:1px solid #acacac"> + <div style="float:left"><img src="http://search.lightningbrowser.com/Content/Images/BargainExplorer/icon-small.png" width="25" /></div> + <div style="float:left;font:6pt;color:#808080;margin-top:5px;margin-left:5px;">Discount Travel</div> + <div style="clear:both"></div> + <div style="text-align:left;font-weight:bolder;margin-top:5px;font-size:14pt;">8 Inexpensive Places To Visit</div> + <div style="float:left;width:60%;text-align:left;">Travel the world in style and comfort on a shoestring budget! Read about the top destination for penny pinchers</div> + <div style="float:right"> + <div style="width:125px;height:75px;;background-image:url('http://weknowyourdreams.com/images/travel/travel-02.jpg');background-size:cover;"></div> + + </div> + <div style="clear:both"></div> + </div> + </a> + + + + + + + + + <!-- <div style="background-color:#ffffff;margin-top:10px;padding:10px;"> + <table style="text-align:center;margin:0 auto;width:100%;max-width:475px;"> + <tr> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.yahoo.com')"><img src="~/content/Images/image-Yahoo-app-icon.png" width="40" /><br />Yahoo</td> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.youtube.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-youtube.png" width="40" /><br />Youtube</td> + <td style="text-align:center;padding-top:10px;margin:0 auto;" onclick="goURL('http://www.facebook.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-facebook.png" width="40" /><br />Facebook</td> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.twitter.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-twitter.png" width="40" /><br />Twitter</td> + </tr> + <tr> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.instagram.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-instagram.png" width="40" /><br />Instagram</td> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('https://login.yahoo.com')"><img src="~/Content/Images/Yahoo-Mail-3.0-for-iOS-app-icon-small.png" width="40" /><br />E-Mail</td> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.cnn.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-cnn.png" width="40" /><br />CNN</td> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.weather.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-weather.png" width="40" /><br />Weather</td> + + </tr> + <tr> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://maps.google.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-maps.png" width="40" /><br />Maps</td> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.bloomberg.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-bloomberg.png" width="40" /><br />Bloomberg</td> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.amazon.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-amazon.png" width="40" /><br />Amazon</td> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.ebay.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-ebay.png" width="40" /><br />ebay</td> + </tr> + <tr> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.wikipedia.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-wikipedia.png" width="40" /><br />wikipedia</td> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.nytimes.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-nyt.png" width="40" /><br />NY Times</td> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.espn.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-espn.png" width="40" /><br />ESPN</td> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.imdb.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-imdb.png" width="40" /><br />iMDb</td> + </tr> + </table> + </div>--> + } + else + { + + <div style=" width:95%;max-width:800px;margin:0 auto; text-align:center;border:1px solid #acacac;margin-top:10px;"> + <div class="topper"> + <div id="table-wrapper"> + <div style="background-image:url('');background-color:#FFFFFF;background-size:cover;height:150px; width:100%; display:table-cell; + vertical-align:middle;"> + <form action="http://search.lightningbrowser.com/Lightning/Discounts" method="get"> + + @Html.Hidden("uuid", Request.QueryString["uuid"]) + @Html.Hidden("src", Request.QueryString["src"]) + <div class="home-page-search"> + <img src="~/Content/Images/BargainExplorer/icon-small.png" width="200" /> + <div style="color:#ffffff;font-size:18pt;font-family:'Roboto';font-weight:300;margin-bottom:10px;"><img src="~/Content/Images/BargainExplorer/bargain-icon.png" style="width:98%;max-width:500px;" /></div> + <div class="topper" style="margin-left:10px; margin-right:10px;margin-top:20px;"> + + <div class="custom-search-input"> + <div class="input-group col-xs-12"> + + <input type="text" name="q" class="form-control" value="@Model.Query" placeholder="Search For Discounts" style="height:37px;border-radius:0px;" /> + <button type="submit" class="search_button" data-reactid=".7rbt1slc0.1.1.0.0.a.1"><span class="loupe" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1"><span class="glass" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1.0"></span><span class="handle" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1.1"></span></span></button> + </div> + </div> + + + </div> + </div> + + + </form> + </div> + </div> + + </div> + </div> + <div class="search-results"> + @Html.Raw(Model.Html) + </div> + } + <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script> + <script> + $(function () { + $('.contain-box').click(function () { + window.document.location = $(this).data('href'); + }); + $('.arrow').click(function () { + window.document.location = $(this).data('href'); + }); + }) + </script> +</body> + +</html> + diff --git a/Mobile.WYSIWYG/Views/Lightning/Horoscope.cshtml b/Mobile.WYSIWYG/Views/Lightning/Horoscope.cshtml new file mode 100644 index 0000000..a89baf5 --- /dev/null +++ b/Mobile.WYSIWYG/Views/Lightning/Horoscope.cshtml @@ -0,0 +1,465 @@ + +@model Mobile.Search.Web.Controllers.SearchPageViewModel +@{ + ViewBag.Title = "Astro Browser"; + Layout = null; + ViewBag.design = Request["design"]; +} +<html> +<head> + <title>Lightning | Search</title> + <link href="~/Content/bootstrap.min.css" rel="stylesheet" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> + <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" /> + <link href="https://fonts.googleapis.com/css?family=Roboto:300,400" rel="stylesheet"> + <style type="text/css"> + .ybox input[type=text] { + + font-size: 16px; + color: #333; + display: inline-block; + font-family: 'helvetica neue', helvetica, arial, sans-serif; + } + + body { + background-color: #f2f2f2; + + padding: 0; + margin: 0; + font-family:Roboto; + + } + + .custom-search-input { + } + + .contain { + border-top: solid 1px #ccc; + background-color: white; + max-width: 960px; + margin: auto; + font-family: arial; + height: 300px; + overflow: hidden; + } + + .contain-box { + background-color: white; + + margin: 0 auto; + margin-top: 8px; + margin-bottom: 8px; + padding-top: 10px; + padding-bottom: 10px; + width: 100%; + max-width: 960px; + border: 1px solid #e1e1e1; + width: 100%; + border-bottom: 1px solid #d2d2d2; + } + + .contain-box.search-bar { + } + + .contain-box .title { + margin-left: 10px; + margin-right: 10px; + margin-bottom: 8px; + color: #0000db; + font-size: 18px; + text-decoration: none; + font-family: helvetica, arial, sans-serif; + cursor: pointer; + border-bottom: 1px solid #ebebeb; + } + + .contain-box .site { + color: #1B6F75; + margin-left: 10px; + margin-right: 10px; + font-family: helvetica, arial, sans-serif; + font-size: 13px; + } + + .contain-box .description { + color: #585962; + margin-left: 10px; + margin-right: 10px; + line-height: 17px; + font-family: helvetica, arial, sans-serif; + font-size: 13px; + } + + .search-results { + margin-top: 5px; + margin-left: 10px; + margin-right: 10px; + text-align: left; + background-color: #f2f2f2; + overflow: hidden; + } + + .home-page-search { + + margin: 0 auto; + text-align: center; + + } + + + .search_button { + padding: 5px; + background: #3b78e7; + width: 40px; + height: 37px; + border: none; + position: absolute; + top: 0; + right: 0; + opacity: 1; + z-index: 5; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; + } + + .search_button .loupe { + display: inline-block; + position: relative; + width: 20px; + height: 20px; + } + + .search_button .glass { + position: absolute; + width: 14px; + height: 14px; + border: 2px solid #fff; + border-radius: 100%; + top: 3px; + left: 0; + } + + .search_button .handle { + position: absolute; + display: inline-block; + border: 0; + background-color: #fff; + width: 9px; + height: 3px; + right: 1px; + bottom: 1px; + -webkit-transform: rotate(45deg); + transform: rotate(45deg); + } + + #search_input { + height: 35px; + width: 100%; + max-width: 960px; + outline: none; + border: none; + font-size: 16px; + background-color: transparent; + } + + span { + display: block; + overflow: hidden; + padding-left: 5px; + vertical-align: middle; + } + + .search_bar { + width: 100%; + height: 35px; + max-width: 940px; + margin: 0 auto; + background-color: #fff; + box-shadow: 0px 2px 3px rgba( 0, 0, 0, 0.25 ); + font-family: Arial; + color: #444; + + } + + #search_submit { + outline: none; + height: 37px; + float: right; + color: #404040; + font-size: 16px; + font-weight: bold; + border: none; + background-color: transparent; + } + + .outer { + } + + .middle { + display: table-cell; + vertical-align: middle; + } + + .inner { + margin-left: auto; + margin-right: auto; + margin-bottom: 10%; + width: 100%; + } + + img.smaller { + width: 50%; + max-width: 300px; + } + + .box { + vertical-align: middle; + position: relative; + display: block; + margin: 10px; + padding-left: 10px; + padding-right: 10px; + padding-top: 5px; + padding-bottom: 5px; + background-color: #fff; + box-shadow: 0px 3px rgba( 0, 0, 0, 0.1 ); + font-family: Arial; + color: #444; + font-size: 12px; + + } + + .topper { + } + + .widget{ + margin-top:10px; + } + + #table-wrapper { + width: 100%; + height: 200px; + display: table; + vertical-align: middle; + text-align: center; + max-width:800px; + margin:0 auto; +} + + #carousel { + width: 100%; + height: 180px; + background-color: #ffffff; + + overflow: auto; + white-space:nowrap; +} + +#carousel .slide { + display: inline-block; + width:169px; + text-overflow: ellipsis; + font:10pt roboto; +} + </style> + +</head> +<body> + @if (string.IsNullOrEmpty(Model.Html)) + { + <div style="width:100%;margin:0 auto; text-align:center;"> + <div id="table-wrapper"> + <div style="background-image:url('http://search.lightningbrowser.com/Content/Images/searchbacker.jpg');background-size:cover;height:150px; width:100%; display:table-cell; + vertical-align:middle;"> + <form action="http://search.lightningbrowser.com/Lightning/Horoscope" method="get"> + + @Html.Hidden("uuid", Request.QueryString["uuid"]) + @Html.Hidden("src", Request.QueryString["src"]) + <div class="home-page-search"> + + <div style="color:#ffffff;font-size:18pt;font-family:'Roboto';font-weight:300">Astro Browser</div> + <div class="topper" style="margin-left:10px; margin-right:10px;;margin-top:10px;"> + + <div class="custom-search-input"> + <div class="input-group col-xs-12"> + + <input type="text" name="q" class="form-control" value="@Model.Query" placeholder="Search" style="height:37px;border-radius:0px;" /> + <button type="submit" class="search_button" data-reactid=".7rbt1slc0.1.1.0.0.a.1"><span class="loupe" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1"><span class="glass" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1.0"></span><span class="handle" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1.1"></span></span></button> + </div> + </div> + + + </div> + </div> + + + </form> + </div> + </div> + + <div style="background-color:#ffffff;margin-top:10px;padding:10px; width:100%;max-width:800px;text-align:center;margin:0 auto;"> + <div style="font-size:20pt;">Your Daily Horoscope</div> + + + <div id="option1" style="max-width:800px;width:100%;text-align:center;margin:0 auto;"> + <table cellpadding="0" cellspacing="0" border="0" align="center" style="border:1px solid #ededed;width:100%;margin:0 auto;text-align:center;"> + <tr> + <td style="padding:5px;"><div id="img1" style="padding:5px;border:none;" ><a href="http://www.whatsmysignsay.com/daily-horoscope-12/#virgo1"><img src="http://astrosignmatch.com/Content/Images/Horoscope/signmatch/1.png" width="60" /></a></div><div style="width:60px;font-family:'roboto';text-align:center;color:#337ab7;margin:0 auto;">Virgo</div></td> + <td style="padding:5px;"><div id="img2" style="padding:5px;border:none;" ><a href="http://www.whatsmysignsay.com/daily-horoscope-12/#taurus1"><img src="http://astrosignmatch.com/Content/Images/Horoscope/signmatch/2.png" width="60" /></a></div><div style="width:60px;font-family:'roboto';text-align:center;color:#337ab7;margin:0 auto;">Taurus</div></td> + <td style="padding:5px;"><div id="img3" style="padding:5px;border:none;" ><a href="http://www.whatsmysignsay.com/daily-horoscope-12/#scorpio1"><img src="http://astrosignmatch.com/Content/Images/Horoscope/signmatch/3.png" width="60" /></a></div><div style="width:60px;font-family:'roboto';text-align:center;color:#337ab7;margin:0 auto;">Scorpio</div></td> + <td style="padding:5px;"><div id="img4" style="padding:5px;border:none;" ><a href="http://www.whatsmysignsay.com/daily-horoscope-12/#sagittarius1"><img src="http://astrosignmatch.com/Content/Images/Horoscope/signmatch/4.png" width="60" /></a></div><div style="width:60px;font-family:'roboto';text-align:center;color:#337ab7;margin:0 auto;font-size:10pt;">Sagittarius</div></td> + </tr> + <tr> + <td style="padding:5px;"><div id="img5" style="padding:5px;border:none;"><a href="http://www.whatsmysignsay.com/daily-horoscope-12/#pisces1"><img src="http://astrosignmatch.com/Content/Images/Horoscope/signmatch/5.png" width="60" /></a></div><div style="width:60px;font-family:'roboto';text-align:center;color:#337ab7;margin:0 auto;">Pisces</div></td> + <td style="padding:5px;"><div id="img6" style="padding:5px;border:none;"><a href="http://www.whatsmysignsay.com/daily-horoscope-12/#libra1"><img src="http://astrosignmatch.com/Content/Images/Horoscope/signmatch/6.png" width="60" /></a></div><div style="width:60px;font-family:'roboto';text-align:center;color:#337ab7;margin:0 auto;">Libra</div></td> + <td style="padding:5px;"><div id="img7" style="padding:5px;border:none;"><a href="http://www.whatsmysignsay.com/daily-horoscope-12/#leo1"><img src="http://astrosignmatch.com/Content/Images/Horoscope/signmatch/7.png" width="60" /></a></div><div style="width:60px;font-family:'roboto';text-align:center;color:#337ab7;margin:0 auto;">Leo</div></td> + <td style="padding:5px;"><div id="img8" style="padding:5px;border:none;"><a href="http://www.whatsmysignsay.com/daily-horoscope-12/#gemini1"><img src="http://astrosignmatch.com/Content/Images/Horoscope/signmatch/8.png" width="60" /></a></div><div style="width:60px;font-family:'roboto';text-align:center;color:#337ab7;margin:0 auto;">Gemini</div></td> + </tr> + <tr> + <td style="padding:5px;"><div id="img9" style="padding:5px;border:none;"><a href="http://www.whatsmysignsay.com/daily-horoscope-12/#capricorn1"><img src="http://astrosignmatch.com/Content/Images/Horoscope/signmatch/9.png" width="60" /></a></div><div style="width:60px;font-family:'roboto';text-align:center;color:#337ab7;margin:0 auto;">Capricorn</div></td> + <td style="padding:5px;"><div id="img10" style="padding:5px;border:none;"><a href="http://www.whatsmysignsay.com/daily-horoscope-12/#cancer1"><img src="http://astrosignmatch.com/Content/Images/Horoscope/signmatch/10.png" width="60" /></a></div><div style="width:60px;font-family:'roboto';text-align:center;color:#337ab7;margin:0 auto;">Cancer</div></td> + <td style="padding:5px;"><div id="img11" style="padding:5px;border:none;"><a href="http://www.whatsmysignsay.com/daily-horoscope-12/#aires1"><img src="http://astrosignmatch.com/Content/Images/Horoscope/signmatch/11.png" width="60" /></a></div><div style="width:60px;font-family:'roboto';text-align:center;color:#337ab7;margin:0 auto;">Aires</div></td> + <td style="padding:5px;"><div id="img12" style="padding:5px;border:none;"><a href="http://www.whatsmysignsay.com/daily-horoscope-12/#aquarius1"><img src="http://astrosignmatch.com/Content/Images/Horoscope/signmatch/12.png" width="60" /></a></div><div style="width:60px;font-family:'roboto';text-align:center;color:#337ab7;margin:0 auto;">Aquarius</div></td> + </tr> + </table> + </div> + </div> + + </div> + + + <a href="http://www.whatsmysignsay.com/5-reasons-your-sign-is-best/"> + <div style="background-color:#ffffff;margin-top:10px;padding:10px; width:95%;max-width:800px;text-align:center;margin:0 auto;margin-top:10px;border:1px solid #acacac"> + <div style="float:left"><img src="http://search.lightningbrowser.com/Content/Images/playstore-icon.png" width="25" /></div> + <div style="float:left;font:6pt;color:#808080;margin-top:5px;margin-left:5px;">Astrology</div> + <div style="clear:both"></div> + <div style="text-align:left;font-weight:bolder;margin-top:5px;font-size:14pt;">5 Reasons Your Sign Is The Best Sign</div> + <div style="float:left;width:60%;text-align:left;">In this three part article we will review the top five, most positive traits possessed by each of the 12 zodiac signs. Read Part 1 Now!</div> + <div style="float:right"> + <div style="width:125px;height:75px;background-image:url('http://dqqrlago0bb5s.cloudfront.net/wp-content/uploads/2016/09/22044925/bestsign_taurus-203x150.jpg');background-size:cover;"></div> + + </div> + <div style="clear:both"></div> + </div> + </a> + <a href="http://www.whatsmysignsay.com/numerology-basics/"> + <div style="background-color:#ffffff;margin-top:10px;padding:10px; width:95%;max-width:800px;text-align:center;margin:0 auto;margin-top:10px;border:1px solid #acacac"> + <div style="float:left"><img src="http://search.lightningbrowser.com/Content/Images/playstore-icon.png" width="25" /></div> + <div style="float:left;font:6pt;color:#808080;margin-top:5px;margin-left:5px;">Numerology</div> + <div style="clear:both"></div> + <div style="text-align:left;font-weight:bolder;margin-top:5px;font-size:14pt;">The Basics Of Numerology Part One</div> + <div style="float:left;width:60%;text-align:left;">Numerology is intriguingly interesting part of the occult. As mathematics, more and more, is defining the universe and the world around us – Learn more now!</div> + <div style="float:right"> + <div style="width:125px;height:75px;;background-image:url('http://dqqrlago0bb5s.cloudfront.net/wp-content/uploads/2016/09/23040512/numerology2.jpg');background-size:cover;"></div> + + </div> + <div style="clear:both"></div> + </div> + </a> + <a href="http://www.whatsmysignsay.com/compatible-zodiac-signs/"> + + <div style="background-color:#ffffff;margin-top:10px;padding:10px; width:95%;max-width:800px;text-align:center;margin:0 auto;margin-top:10px;border:1px solid #acacac"> + <div style="float:left"><img src="http://search.lightningbrowser.com/Content/Images/playstore-icon.png" width="25" /></div> + <div style="float:left;font:6pt;color:#808080;margin-top:5px;margin-left:5px;">Love</div> + <div style="clear:both"></div> + <div style="text-align:left;font-weight:bolder;margin-top:5px;font-size:14pt;">Which Zodiac Sign Are You Compatible With?</div> + <div style="float:left;width:60%;text-align:left;">One of the most common questions people who follow and consult astrology have is: “Which zodiac sign am I most compatible with?”</div> + <div style="float:right"> + <div style="width:125px;height:75px;background-image:url('http://dqqrlago0bb5s.cloudfront.net/wp-content/uploads/2016/10/04153136/compatible_zodiac_1.jpg');background-size:cover;"></div> + + </div> + <div style="clear:both"></div> + </div> + </a> + + + + + + + + <!-- <div style="background-color:#ffffff;margin-top:10px;padding:10px;"> + <table style="text-align:center;margin:0 auto;width:100%;max-width:475px;"> + <tr> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.yahoo.com')"><img src="~/content/Images/image-Yahoo-app-icon.png" width="40" /><br />Yahoo</td> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.youtube.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-youtube.png" width="40" /><br />Youtube</td> + <td style="text-align:center;padding-top:10px;margin:0 auto;" onclick="goURL('http://www.facebook.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-facebook.png" width="40" /><br />Facebook</td> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.twitter.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-twitter.png" width="40" /><br />Twitter</td> + </tr> + <tr> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.instagram.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-instagram.png" width="40" /><br />Instagram</td> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('https://login.yahoo.com')"><img src="~/Content/Images/Yahoo-Mail-3.0-for-iOS-app-icon-small.png" width="40" /><br />E-Mail</td> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.cnn.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-cnn.png" width="40" /><br />CNN</td> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.weather.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-weather.png" width="40" /><br />Weather</td> + + </tr> + <tr> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://maps.google.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-maps.png" width="40" /><br />Maps</td> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.bloomberg.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-bloomberg.png" width="40" /><br />Bloomberg</td> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.amazon.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-amazon.png" width="40" /><br />Amazon</td> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.ebay.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-ebay.png" width="40" /><br />ebay</td> + </tr> + <tr> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.wikipedia.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-wikipedia.png" width="40" /><br />wikipedia</td> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.nytimes.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-nyt.png" width="40" /><br />NY Times</td> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.espn.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-espn.png" width="40" /><br />ESPN</td> + <td style="padding-top:10px;text-align:center;margin:0 auto;" onclick="goURL('http://www.imdb.com')"><img src="http://www.astrosignmatch.com/Content/Images/SafeBrowser/icon-imdb.png" width="40" /><br />iMDb</td> + </tr> + </table> + </div>--> + } + else + { + + <div class="topper"> + <div id="table-wrapper"> + <div style="background-image:url('http://search.lightningbrowser.com/Content/Images/searchbacker.jpg');background-size:cover;height:150px; width:100%; display:table-cell; + vertical-align:middle;"> + <form action="http://search.lightningbrowser.com/Lightning/Horoscope" method="get"> + <div class="home-page-search"> + + <div style="color:#ffffff;font-size:18pt;">Astro Browser</div> + <div class="topper" style="margin-left:10px; margin-right:10px;;margin-top:10px;"> + + <div class="custom-search-input"> + <div class="input-group col-xs-12"> + @Html.Hidden("uuid", Request.QueryString["uuid"]) + @Html.Hidden("src", Request.QueryString["src"]) + <input type="text" name="q" class="form-control" value="@Model.Query" placeholder="Search" style="height:37px;border-radius:0px;" /> + <button type="submit" class="search_button" data-reactid=".7rbt1slc0.1.1.0.0.a.1"><span class="loupe" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1"><span class="glass" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1.0"></span><span class="handle" data-reactid=".7rbt1slc0.1.1.0.0.a.1.1.1"></span></span></button> + </div> + </div> + + + </div> + </div> + + + </form> + </div> + </div> + + </div> + <div class="search-results"> + @Html.Raw(Model.Html) + </div> + } + <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script> + <script> + $(function () { + $('.contain-box').click(function () { + window.document.location = $(this).data('href'); + }); + $('.arrow').click(function () { + window.document.location = $(this).data('href'); + }); + }) + </script> +</body> + +</html> + + + + diff --git a/Mobile.WYSIWYG/Views/Lightning/Index.cshtml b/Mobile.WYSIWYG/Views/Lightning/Index.cshtml new file mode 100644 index 0000000..6383c86 --- /dev/null +++ b/Mobile.WYSIWYG/Views/Lightning/Index.cshtml @@ -0,0 +1,381 @@ +@model PagedList.IPagedList< HtmlNode> +@using PagedList.Mvc; + + + +@using HtmlAgilityPack +@{ + ViewBag.Title = "Lightning Browser Search"; + Layout = null; + + + } +<html> +<head> + <title>Lightning | Search</title> + <link href="~/Content/bootstrap.min.css" rel="stylesheet" /> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" /> + <style type="text/css"> + .ybox input[type=text] { + border-radius: 2px; + font-size: 16px; + color: #333; + display: inline-block; + font-family: 'helvetica neue', helvetica, arial, sans-serif; + } + + body { + background-color: #f2f2f2; + padding: 0; + margin: 0; + } + + .custom-search-input { + } + + .contain { + border-top: solid 1px #ccc; + background-color: white; + max-width: 960px; + margin: auto; + font-family: arial; + height: 300px; + overflow: hidden; + } + + .contain-box { + background-color: white; + border-radius: 5px; + margin: 0 auto; + margin-top: 8px; + margin-bottom: 8px; + padding-top: 10px; + padding-bottom: 10px; + width: 100%; + max-width: 960px; + border: 1px solid #e1e1e1; + width: 100%; + border-bottom: 1px solid #d2d2d2; + } + + .contain-box.search-bar { + } + + .contain-box .title { + margin-left: 10px; + margin-right: 10px; + margin-bottom: 8px; + color: #0000db; + font-size: 18px; + text-decoration: none; + font-family: helvetica, arial, sans-serif; + cursor: pointer; + border-bottom: 1px solid #ebebeb; + } + + .contain-box .site { + color: #1B6F75; + margin-left: 10px; + margin-right: 10px; + font-family: helvetica, arial, sans-serif; + font-size: 13px; + } + + .contain-box .description { + color: #585962; + margin-left: 10px; + margin-right: 10px; + line-height: 17px; + font-family: helvetica, arial, sans-serif; + font-size: 13px; + } + + .search-results { + + margin-left: 10px; + margin-right: 10px; + text-align: left; + background-color: #f2f2f2; + overflow: hidden; + } + + .home-page-search { + margin-top: 100px; + margin: 0 auto; + text-align: center; + } + + + .search_button { + padding: 5px; + background: #3b78e7; + width: 40px; + height: 37px; + border: none; + position: absolute; + top: 0; + right: 0; + opacity: 1; + z-index: 5; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; + } + + .search_button .loupe { + display: inline-block; + position: relative; + width: 20px; + height: 20px; + } + + .search_button .glass { + position: absolute; + width: 14px; + height: 14px; + border: 2px solid #fff; + border-radius: 100%; + top: 3px; + left: 0; + } + + .search_button .handle { + position: absolute; + display: inline-block; + border: 0; + background-color: #fff; + width: 9px; + height: 3px; + right: 1px; + bottom: 1px; + -webkit-transform: rotate(45deg); + transform: rotate(45deg); + } + + #search_input { + height: 35px; + width: 100%; + max-width: 960px; + outline: none; + border: none; + font-size: 16px; + background-color: transparent; + } + + span { + display: block; + overflow: hidden; + padding-left: 5px; + vertical-align: middle; + } + + .search_bar { + width: 100%; + height: 35px; + max-width: 940px; + margin: 0 auto; + background-color: #fff; + box-shadow: 0px 2px 3px rgba( 0, 0, 0, 0.25 ); + font-family: Arial; + color: #444; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + border-radius: 2px; + } + + #search_submit { + outline: none; + height: 37px; + float: right; + color: #404040; + font-size: 16px; + font-weight: bold; + border: none; + background-color: transparent; + } + + .outer { + } + + .middle { + display: table-cell; + vertical-align: middle; + } + + .inner { + margin-left: auto; + margin-right: auto; + margin-bottom: 10%; + width: 100%; + } + + img.smaller { + width: 50%; + max-width: 300px; + } + + .box { + vertical-align: middle; + position: relative; + display: block; + margin: 10px; + padding-left: 10px; + padding-right: 10px; + padding-top: 5px; + padding-bottom: 5px; + background-color: #fff; + box-shadow: 0px 3px rgba( 0, 0, 0, 0.1 ); + font-family: Arial; + color: #444; + font-size: 12px; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + border-radius: 2px; + } + + .topper { + } + </style> + +</head> +<body> + @if (Model == null) + { + + <div style="width:100%;text-align:center;margin:0 auto;"> + <div style="text-align:center;margin:0 auto;"> + <div style="text-align:center;margin:0 auto;"> + <div class="inner" style="text-align:center;margin:0 auto;width:90%; position: absolute; + left: 50%; + top: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%);"> + <!--<img class="smaller" src="http://www.appfueler.com/Content/LightningBrowser/Google_2015_logo.png" width="100" style="text-align:center;margin:0 auto;" /><br />--> + <br /> + <form action="http://search.lightningbrowser.com/Lightning" method="get" class="search_bar"> + @Html.Hidden("uuid", Request.QueryString["uuid"]) + @Html.Hidden("src", Request.QueryString["src"]) + <input type="submit" id="search_submit" value="Search" /><span> + <input class="search" type="text" name="q" id="search_input" /> + </span> + </form><br /> + <br /> + </div> + </div> + </div> + </div> + <span style="color:#f2f2f2">@Request["uuid"]</span> + + } + else + { + var uuid = Request.QueryString["uuid"]; + var q = Request.QueryString["q"]; + + <span style="color:#f2f2f2">@Request["uuid"]</span> + <div style="width:100%;text-align:center;margin:0 auto;"> + <div style="text-align:center;margin:0 auto;"> + <div style="text-align:center;margin:0 auto;"> + <div class="inner" style="text-align:center;margin:0 auto;width:95%;max-width:960px;"> + <!--<img class="smaller" src="http://www.appfueler.com/Content/LightningBrowser/Google_2015_logo.png" width="100" style="text-align:center;margin:0 auto;" /><br />--> + <br /> + <form action="http://search.lightningbrowser.com/Lightning" method="get" class="search_bar"> + @Html.Hidden("uuid", Request.QueryString["uuid"]) + @Html.Hidden("src", Request.QueryString["src"]) + <input type="submit" id="search_submit" value="Search" /><span> + <input class="search" type="text" name="q" value="@ViewBag.searchTerm"id="search_input" /> + </span> + </form><br /> + <br /> + </div> + </div> + </div> + </div> + <div class="search-results"> + + @foreach (var node in Model) + { + @Html.Raw(node.OuterHtml); + + + } + <br /> + <div style="text-align:center;margin:0 auto"> + Page @(Model.PageCount < Model.PageNumber ? 0 : Model.PageNumber) of @Model.PageCount + + @Html.PagedListPager(Model, page => Url.Action("Index", + new { page, uuid = uuid, q = q, sortOrder = ViewBag.CurrentSort, currentFilter = ViewBag.CurrentFilter })) + </div> + </div> + } + <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script> + <script> + $(function () { + $('.contain-box').click(function () { + window.document.location = $(this).data('href'); + }); + $('.arrow').click(function () { + window.document.location = $(this).data('href'); + }); + }) + </script> + + <!-- firebase events--> + <script> + function logEvent(name, params) { + if (!name) { + return; + } + + if (window.AnalyticsWebInterface) { + // Call Android interface + window.AnalyticsWebInterface.logEvent(name, JSON.stringify(params)); + } else if (window.webkit + && window.webkit.messageHandlers + && window.webkit.messageHandlers.firebase) { + // Call iOS interface + var message = { + command: 'logEvent', + name: name, + parameters: params + }; + window.webkit.messageHandlers.firebase.postMessage(message); + } else { + // No Android or iOS interface found + console.log("No native APIs found."); + } + } + + function setUserProperty(name, value) { + if (!name || !value) { + return; + } + + if (window.AnalyticsWebInterface) { + // Call Android interface + window.AnalyticsWebInterface.setUserProperty(name, value); + } else if (window.webkit + && window.webkit.messageHandlers + && window.webkit.messageHandlers.firebase) { + // Call iOS interface + var message = { + command: 'setUserProperty', + name: name, + value: value + }; + window.webkit.messageHandlers.firebase.postMessage(message); + } else { + // No Android or iOS interface found + console.log("No native APIs found."); + } + } + </script> + <script> + + + logEvent("TestEvent") + </script> +</body> + +</html> diff --git a/Mobile.WYSIWYG/Views/Lightning/Index2.cshtml b/Mobile.WYSIWYG/Views/Lightning/Index2.cshtml new file mode 100644 index 0000000..bec29cf --- /dev/null +++ b/Mobile.WYSIWYG/Views/Lightning/Index2.cshtml @@ -0,0 +1,386 @@ +@model PagedList.IPagedList<HtmlNode> +@using PagedList.Mvc; + + + +@using HtmlAgilityPack +@{ + ViewBag.Title = "Lightning Browser Search"; + Layout = null; + + +} +<html> +<head> + <title>Lightning | Search</title> + <link href="~/Content/bootstrap.min.css" rel="stylesheet" /> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" /> + <style type="text/css"> + .ybox input[type=text] { + border-radius: 2px; + font-size: 16px; + color: #333; + display: inline-block; + font-family: 'helvetica neue', helvetica, arial, sans-serif; + } + + body { + background-color: #f2f2f2; + padding: 0; + margin: 0; + } + + .custom-search-input { + } + + .contain { + border-top: solid 1px #ccc; + background-color: white; + max-width: 960px; + margin: auto; + font-family: arial; + height: 300px; + overflow: hidden; + } + + .contain-box { + background-color: white; + border-radius: 5px; + margin: 0 auto; + margin-top: 8px; + margin-bottom: 8px; + padding-top: 10px; + padding-bottom: 10px; + width: 100%; + max-width: 960px; + border: 1px solid #e1e1e1; + width: 100%; + border-bottom: 1px solid #d2d2d2; + } + + .contain-box.search-bar { + } + + .contain-box .title { + margin-left: 10px; + margin-right: 10px; + margin-bottom: 8px; + color: #0000db; + font-size: 18px; + text-decoration: none; + font-family: helvetica, arial, sans-serif; + cursor: pointer; + border-bottom: 1px solid #ebebeb; + } + + .contain-box .site { + color: #1B6F75; + margin-left: 10px; + margin-right: 10px; + font-family: helvetica, arial, sans-serif; + font-size: 13px; + } + + .contain-box .description { + color: #585962; + margin-left: 10px; + margin-right: 10px; + line-height: 17px; + font-family: helvetica, arial, sans-serif; + font-size: 13px; + } + + .search-results { + margin-left: 10px; + margin-right: 10px; + text-align: left; + background-color: #f2f2f2; + overflow: hidden; + } + + .home-page-search { + margin-top: 100px; + margin: 0 auto; + text-align: center; + } + + + .search_button { + padding: 5px; + background: #3b78e7; + width: 40px; + height: 37px; + border: none; + position: absolute; + top: 0; + right: 0; + opacity: 1; + z-index: 5; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; + } + + .search_button .loupe { + display: inline-block; + position: relative; + width: 20px; + height: 20px; + } + + .search_button .glass { + position: absolute; + width: 14px; + height: 14px; + border: 2px solid #fff; + border-radius: 100%; + top: 3px; + left: 0; + } + + .search_button .handle { + position: absolute; + display: inline-block; + border: 0; + background-color: #fff; + width: 9px; + height: 3px; + right: 1px; + bottom: 1px; + -webkit-transform: rotate(45deg); + transform: rotate(45deg); + } + + #search_input { + height: 35px; + width: 100%; + max-width: 960px; + outline: none; + border: none; + font-size: 16px; + background-color: transparent; + } + + span { + display: block; + overflow: hidden; + padding-left: 5px; + vertical-align: middle; + } + + .search_bar { + width: 100%; + height: 35px; + max-width: 940px; + margin: 0 auto; + background-color: #fff; + box-shadow: 0px 2px 3px rgba( 0, 0, 0, 0.25 ); + font-family: Arial; + color: #444; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + border-radius: 2px; + } + + #search_submit { + outline: none; + height: 37px; + float: right; + color: #404040; + font-size: 16px; + font-weight: bold; + border: none; + background-color: transparent; + } + + .outer { + } + + .middle { + display: table-cell; + vertical-align: middle; + } + + .inner { + margin-left: auto; + margin-right: auto; + margin-bottom: 10%; + width: 100%; + } + + img.smaller { + width: 50%; + max-width: 300px; + } + + .box { + vertical-align: middle; + position: relative; + display: block; + margin: 10px; + padding-left: 10px; + padding-right: 10px; + padding-top: 5px; + padding-bottom: 5px; + background-color: #fff; + box-shadow: 0px 3px rgba( 0, 0, 0, 0.1 ); + font-family: Arial; + color: #444; + font-size: 12px; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + border-radius: 2px; + } + + .topper { + } + </style> + +</head> +<body> + @if (Model == null) + { + + <div style="width:100%;text-align:center;margin:0 auto;"> + <div style="text-align:center;margin:0 auto;"> + <div style="text-align:center;margin:0 auto;"> + <div class="inner" style="text-align:center;margin:0 auto;width:90%; position: absolute; + left: 50%; + top: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%);"> + <!--<img class="smaller" src="http://www.appfueler.com/Content/LightningBrowser/Google_2015_logo.png" width="100" style="text-align:center;margin:0 auto;" /><br />--> + <br /> + <form action="http://search.lightningbrowser.com/Lightning" method="get" class="search_bar"> + @Html.Hidden("uuid", Request.QueryString["uuid"]) + @Html.Hidden("src", Request.QueryString["src"]) + <input type="submit" id="search_submit" value="Search" /><span> + <input class="search" type="text" name="q" id="search_input" /> + </span> + </form><br /> + <br /> + </div> + </div> + </div> + </div> + <span style="color:#f2f2f2">@Request["uuid"]</span> + + } + else + { + var uuid = Request.QueryString["uuid"]; + var q = Request.QueryString["q"]; + + <span style="color:#f2f2f2">@Request["uuid"]</span> + <div style="width:100%;text-align:center;margin:0 auto;"> + <div style="text-align:center;margin:0 auto;"> + <div style="text-align:center;margin:0 auto;"> + <div class="inner" style="text-align:center;margin:0 auto;width:95%;max-width:960px;"> + <!--<img class="smaller" src="http://www.appfueler.com/Content/LightningBrowser/Google_2015_logo.png" width="100" style="text-align:center;margin:0 auto;" /><br />--> + <br /> + <form action="http://search.lightningbrowser.com/Lightning/Index2" method="get" class="search_bar"> + @Html.Hidden("uuid", Request.QueryString["uuid"]) + @Html.Hidden("src", Request.QueryString["src"]) + <input type="submit" id="search_submit" value="Search" /><span> + <input class="search" type="text" name="q" value="@ViewBag.searchTerm" id="search_input" /> + </span> + </form><br /> + <br /> + </div> + </div> + </div> + </div> + <div class="search-results"> + + @foreach (var node in Model) + { + @Html.Raw(node.OuterHtml); + + + } + <br /> + <div style="text-align:center;margin:0 auto"> + Page @(Model.PageCount < Model.PageNumber ? 0 : Model.PageNumber) of @Model.PageCount + + @Html.PagedListPager(Model, page => Url.Action("Index", + new { page, uuid = uuid, q = q, sortOrder = ViewBag.CurrentSort, currentFilter = ViewBag.CurrentFilter })) + </div> + </div> + } + <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script> + <script> + $(function () { + $('.contain-box').click(function () { + window.document.location = $(this).data('href'); + }); + $('.arrow').click(function () { + window.document.location = $(this).data('href'); + }); + }) + </script> + + <!-- firebase events--> + <script> + function logEvent(name, params) { + if (!name) { + return; + } + + if (window.AnalyticsWebInterface) { + // Call Android interface + alert("Android Interface Found"); + window.AnalyticsWebInterface.logEvent(name, JSON.stringify(params)); + } else if (window.webkit + && window.webkit.messageHandlers + && window.webkit.messageHandlers.firebase) { + alert("ios Interface Found"); + var message = { + command: 'logEvent', + name: name, + parameters: params + }; + alert("Posting:"+message.name) + window.webkit.messageHandlers.firebase.postMessage(message); + } else { + // No Android or iOS interface found + alert("No native APIs found."); + } + } + + function setUserProperty(name, value) { + if (!name || !value) { + return; + } + + if (window.AnalyticsWebInterface) { + // Call Android interface + window.AnalyticsWebInterface.setUserProperty(name, value); + } else if (window.webkit + && window.webkit.messageHandlers + && window.webkit.messageHandlers.firebase) { + // Call iOS interface + var message = { + command: 'setUserProperty', + name: name, + value: value + }; + window.webkit.messageHandlers.firebase.postMessage(message); + } else { + // No Android or iOS interface found + console.log("No native APIs found."); + } + } + </script> + <script> + + + logEvent("TestEvent") + </script> +</body> + +</html> + + + + diff --git a/Mobile.WYSIWYG/Views/Manage/AddPhoneNumber.cshtml b/Mobile.WYSIWYG/Views/Manage/AddPhoneNumber.cshtml new file mode 100644 index 0000000..183caaa --- /dev/null +++ b/Mobile.WYSIWYG/Views/Manage/AddPhoneNumber.cshtml @@ -0,0 +1,29 @@ +@model Mobile.Search.Web.Models.AddPhoneNumberViewModel +@{ + ViewBag.Title = "Phone Number"; +} + +<h2>@ViewBag.Title.</h2> + +@using (Html.BeginForm("AddPhoneNumber", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) +{ + @Html.AntiForgeryToken() + <h4>Add a phone number</h4> + <hr /> + @Html.ValidationSummary("", new { @class = "text-danger" }) + <div class="form-group"> + @Html.LabelFor(m => m.Number, new { @class = "col-md-2 control-label" }) + <div class="col-md-10"> + @Html.TextBoxFor(m => m.Number, new { @class = "form-control" }) + </div> + </div> + <div class="form-group"> + <div class="col-md-offset-2 col-md-10"> + <input type="submit" class="btn btn-default" value="Submit" /> + </div> + </div> +} + +@section Scripts { + @Scripts.Render("~/bundles/jqueryval") +} diff --git a/Mobile.WYSIWYG/Views/Manage/ChangePassword.cshtml b/Mobile.WYSIWYG/Views/Manage/ChangePassword.cshtml new file mode 100644 index 0000000..7e72d8e --- /dev/null +++ b/Mobile.WYSIWYG/Views/Manage/ChangePassword.cshtml @@ -0,0 +1,40 @@ +@model Mobile.Search.Web.Models.ChangePasswordViewModel +@{ + ViewBag.Title = "Change Password"; +} + +<h2>@ViewBag.Title.</h2> + +@using (Html.BeginForm("ChangePassword", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) +{ + @Html.AntiForgeryToken() + <h4>Change Password Form</h4> + <hr /> + @Html.ValidationSummary("", new { @class = "text-danger" }) + <div class="form-group"> + @Html.LabelFor(m => m.OldPassword, new { @class = "col-md-2 control-label" }) + <div class="col-md-10"> + @Html.PasswordFor(m => m.OldPassword, new { @class = "form-control" }) + </div> + </div> + <div class="form-group"> + @Html.LabelFor(m => m.NewPassword, new { @class = "col-md-2 control-label" }) + <div class="col-md-10"> + @Html.PasswordFor(m => m.NewPassword, new { @class = "form-control" }) + </div> + </div> + <div class="form-group"> + @Html.LabelFor(m => m.ConfirmPassword, new { @class = "col-md-2 control-label" }) + <div class="col-md-10"> + @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-control" }) + </div> + </div> + <div class="form-group"> + <div class="col-md-offset-2 col-md-10"> + <input type="submit" value="Change password" class="btn btn-default" /> + </div> + </div> +} +@section Scripts { + @Scripts.Render("~/bundles/jqueryval") +} \ No newline at end of file diff --git a/Mobile.WYSIWYG/Views/Manage/Index.cshtml b/Mobile.WYSIWYG/Views/Manage/Index.cshtml new file mode 100644 index 0000000..7846ab1 --- /dev/null +++ b/Mobile.WYSIWYG/Views/Manage/Index.cshtml @@ -0,0 +1,84 @@ +@model Mobile.Search.Web.Models.IndexViewModel +@{ + ViewBag.Title = "Manage"; +} + +<h2>@ViewBag.Title.</h2> + +<p class="text-success">@ViewBag.StatusMessage</p> +<div> + <h4>Change your account settings</h4> + <hr /> + <dl class="dl-horizontal"> + <dt>Password:</dt> + <dd> + [ + @if (Model.HasPassword) + { + @Html.ActionLink("Change your password", "ChangePassword") + } + else + { + @Html.ActionLink("Create", "SetPassword") + } + ] + </dd> + <dt>External Logins:</dt> + <dd> + @Model.Logins.Count [ + @Html.ActionLink("Manage", "ManageLogins") ] + </dd> + @* + Phone Numbers can used as a second factor of verification in a two-factor authentication system. + + See <a href="http://go.microsoft.com/fwlink/?LinkId=403804">this article</a> + for details on setting up this ASP.NET application to support two-factor authentication using SMS. + + Uncomment the following block after you have set up two-factor authentication + *@ + @* + <dt>Phone Number:</dt> + <dd> + @(Model.PhoneNumber ?? "None") [ + @if (Model.PhoneNumber != null) + { + @Html.ActionLink("Change", "AddPhoneNumber") + @: | + @Html.ActionLink("Remove", "RemovePhoneNumber") + } + else + { + @Html.ActionLink("Add", "AddPhoneNumber") + } + ] + </dd> + *@ + <dt>Two-Factor Authentication:</dt> + <dd> + <p> + There are no two-factor authentication providers configured. See <a href="http://go.microsoft.com/fwlink/?LinkId=403804">this article</a> + for details on setting up this ASP.NET application to support two-factor authentication. + </p> + @*@if (Model.TwoFactor) + { + using (Html.BeginForm("DisableTwoFactorAuthentication", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) + { + @Html.AntiForgeryToken() + <text>Enabled + <input type="submit" value="Disable" class="btn btn-link" /> + </text> + } + } + else + { + using (Html.BeginForm("EnableTwoFactorAuthentication", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) + { + @Html.AntiForgeryToken() + <text>Disabled + <input type="submit" value="Enable" class="btn btn-link" /> + </text> + } + }*@ + </dd> + </dl> +</div> diff --git a/Mobile.WYSIWYG/Views/Manage/ManageLogins.cshtml b/Mobile.WYSIWYG/Views/Manage/ManageLogins.cshtml new file mode 100644 index 0000000..f1ccdfc --- /dev/null +++ b/Mobile.WYSIWYG/Views/Manage/ManageLogins.cshtml @@ -0,0 +1,70 @@ +@model Mobile.Search.Web.Models.ManageLoginsViewModel +@using Microsoft.Owin.Security +@{ + ViewBag.Title = "Manage your external logins"; +} + +<h2>@ViewBag.Title.</h2> + +<p class="text-success">@ViewBag.StatusMessage</p> +@{ + var loginProviders = Context.GetOwinContext().Authentication.GetExternalAuthenticationTypes(); + if (loginProviders.Count() == 0) { + <div> + <p> + There are no external authentication services configured. See <a href="http://go.microsoft.com/fwlink/?LinkId=313242">this article</a> + for details on setting up this ASP.NET application to support logging in via external services. + </p> + </div> + } + else + { + if (Model.CurrentLogins.Count > 0) + { + <h4>Registered Logins</h4> + <table class="table"> + <tbody> + @foreach (var account in Model.CurrentLogins) + { + <tr> + <td>@account.LoginProvider</td> + <td> + @if (ViewBag.ShowRemoveButton) + { + using (Html.BeginForm("RemoveLogin", "Manage")) + { + @Html.AntiForgeryToken() + <div> + @Html.Hidden("loginProvider", account.LoginProvider) + @Html.Hidden("providerKey", account.ProviderKey) + <input type="submit" class="btn btn-default" value="Remove" title="Remove this @account.LoginProvider login from your account" /> + </div> + } + } + else + { + @: + } + </td> + </tr> + } + </tbody> + </table> + } + if (Model.OtherLogins.Count > 0) + { + using (Html.BeginForm("LinkLogin", "Manage")) + { + @Html.AntiForgeryToken() + <div id="socialLoginList"> + <p> + @foreach (AuthenticationDescription p in Model.OtherLogins) + { + <button type="submit" class="btn btn-default" id="@p.AuthenticationType" name="provider" value="@p.AuthenticationType" title="Log in using your @p.Caption account">@p.AuthenticationType</button> + } + </p> + </div> + } + } + } +} diff --git a/Mobile.WYSIWYG/Views/Manage/SetPassword.cshtml b/Mobile.WYSIWYG/Views/Manage/SetPassword.cshtml new file mode 100644 index 0000000..856665e --- /dev/null +++ b/Mobile.WYSIWYG/Views/Manage/SetPassword.cshtml @@ -0,0 +1,39 @@ +@model Mobile.Search.Web.Models.SetPasswordViewModel +@{ + ViewBag.Title = "Create Password"; +} + +<h2>@ViewBag.Title.</h2> +<p class="text-info"> + You do not have a local username/password for this site. Add a local + account so you can log in without an external login. +</p> + +@using (Html.BeginForm("SetPassword", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) +{ + @Html.AntiForgeryToken() + + <h4>Create Local Login</h4> + <hr /> + @Html.ValidationSummary("", new { @class = "text-danger" }) + <div class="form-group"> + @Html.LabelFor(m => m.NewPassword, new { @class = "col-md-2 control-label" }) + <div class="col-md-10"> + @Html.PasswordFor(m => m.NewPassword, new { @class = "form-control" }) + </div> + </div> + <div class="form-group"> + @Html.LabelFor(m => m.ConfirmPassword, new { @class = "col-md-2 control-label" }) + <div class="col-md-10"> + @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-control" }) + </div> + </div> + <div class="form-group"> + <div class="col-md-offset-2 col-md-10"> + <input type="submit" value="Set password" class="btn btn-default" /> + </div> + </div> +} +@section Scripts { + @Scripts.Render("~/bundles/jqueryval") +} \ No newline at end of file diff --git a/Mobile.WYSIWYG/Views/Manage/VerifyPhoneNumber.cshtml b/Mobile.WYSIWYG/Views/Manage/VerifyPhoneNumber.cshtml new file mode 100644 index 0000000..37c60a7 --- /dev/null +++ b/Mobile.WYSIWYG/Views/Manage/VerifyPhoneNumber.cshtml @@ -0,0 +1,31 @@ +@model Mobile.Search.Web.Models.VerifyPhoneNumberViewModel +@{ + ViewBag.Title = "Verify Phone Number"; +} + +<h2>@ViewBag.Title.</h2> + +@using (Html.BeginForm("VerifyPhoneNumber", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) +{ + @Html.AntiForgeryToken() + @Html.Hidden("phoneNumber", @Model.PhoneNumber) + <h4>Enter verification code</h4> + <h5>@ViewBag.Status</h5> + <hr /> + @Html.ValidationSummary("", new { @class = "text-danger" }) + <div class="form-group"> + @Html.LabelFor(m => m.Code, new { @class = "col-md-2 control-label" }) + <div class="col-md-10"> + @Html.TextBoxFor(m => m.Code, new { @class = "form-control" }) + </div> + </div> + <div class="form-group"> + <div class="col-md-offset-2 col-md-10"> + <input type="submit" class="btn btn-default" value="Submit" /> + </div> + </div> +} + +@section Scripts { + @Scripts.Render("~/bundles/jqueryval") +} diff --git a/Mobile.WYSIWYG/Views/Quiz/AirHead.cshtml b/Mobile.WYSIWYG/Views/Quiz/AirHead.cshtml new file mode 100644 index 0000000..df9aa92 --- /dev/null +++ b/Mobile.WYSIWYG/Views/Quiz/AirHead.cshtml @@ -0,0 +1,312 @@ +@{ + ViewBag.Title = "Index"; +} + +<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> +<script> + + function showAd(keyword) { + document.getElementById('adspace').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + function showFinalAd(keyword) { + document.getElementById('final').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + function showFinalAd2(keyword) { + document.getElementById('final2').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + + + +</script> +<script> + $(document).ready( + function() { + $("#q1").click(function() { + $("#q1").hide(); + $("#q2").show(); + }); + + + $("#q2y").click(function () { + $("#q2").hide(); + $("#q3").show(); + }); + + $("#q2n").click(function () { + $("#q2").hide(); + showAd('luxury+watch+brands'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#next1").click(function () { + $("#adspace").hide(); + $("#next1").hide(); + $("#q3").show(); + }); + + + $("#q3").click(function () { + $("#q3").hide(); + $("#q4").show(); + }); + + + $("#q4").click(function () { + $("#q4").hide(); + $("#q5").show(); + }); + + $("#q5").click(function () { + $("#q5").hide(); + showAd('printable+coupons+oil+change'); + $("#adspace").show(); + $("#next2").show(); + + }); + + $("#next2").click(function () { + $("#adspace").hide(); + $("#next2").hide(); + $("#q6").show(); + }); + + + + $("#q6").click(function () { + $("#q6").hide(); + $("#q7").show(); + }); + + $("#q7").click(function () { + $("#q7").hide(); + $("#q8").show(); + }); + + + $("#q8y").click(function () { + $("#q8").hide(); + showAd('attention+deficit+disorder'); + $("#adspace").show(); + $("#next3").show(); + }); + + $("#q8n").click(function () { + $("#q8").hide(); + $("#q9").show(); + }); + + $("#next3").click(function () { + $("#adspace").hide(); + $("#next3").hide(); + $("#q9").show(); + }); + + + $("#q9y").click(function () { + $("#q9").hide(); + showFinalAd('brain+games'); + $("#finaly").show(); + }); + + $("#q9n").click(function () { + $("#q9").hide(); + showFinalAd2('custom+closet+organization'); + $("#finaln").show(); + }); + + + $("#q13").click(function () { + $("#q13").hide(); + $("#q14").show(); + }); + + $("#q14n").click(function () { + $("#q14").hide(); + showAd('car+dealers'); + $("#adspace").show(); + $("#next5").show(); + }); + + $("#next5").click(function () { + $("#adspace").hide(); + $("#next5").hide(); + $("#q15").show(); + }); + + $("#q14y").click(function () { + $("#q14").hide(); + $("#q15").show(); + }); + + $("#q15").click(function () { + $("#q15").hide(); + $("#q16").show(); + }); + + + + $("#q16n").click(function () { + $("#q16").hide(); + showAd('galaxy+s6+edge'); + $("#adspace").show(); + $("#next6").show(); + }); + + $("#q16y").click(function () { + $("#q16").hide(); + showAd('protective+cell+phone+covers'); + $("#adspace").show(); + $("#next6").show(); + }); + + $("#next6").click(function () { + $("#adspace").hide(); + $("#next6").hide(); + $("#q17").show(); + }); + + + + $("#q17").click(function () { + $("#q17").hide(); + $("#q18").show(); + }); + + $("#q18").click(function () { + $("#q18").hide(); + $("#q19").show(); + }); + + $("#q19y").click(function () { + $("#q19").hide(); + $("#finaly").show(); + }); + + $("#q19n").click(function () { + $("#q19").hide(); + $("#finaln").show(); + }); + + + + + + + + + + + }); +</script> + + +<div style="width: 100%; margin: 0 auto;"> + + <div text align="center"> + <div id="q1"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Ever miss an appointment or meeting?</div> + <div id="q1y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q1n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q2" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are you generally on time for work and appointments?</div> + <div id="q2y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q2n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q3" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Have you ever misplaced your keys?</div> + <div id="q3y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q3n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q4" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Ever drive off with something on the roof of your car?</div> + <div id="q4y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q4n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q5" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Is your car maintenance always on schedule? (oil changes, tire rotation, etc.)</div> + <div id="q5y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q5n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + + </div> + + + + <div id="q6" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Have you ever needed someone to call your phone so you could find it?</div> + <div id="q6y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q6n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q7" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Anyone ever accused you of having ADD?</div> + <div id="q7y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q7n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q8" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Ever lost your shoes in your home?</div> + <div id="q8y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q8n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q9" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Ever been late paying a bill because you forgot or misplaced it?</div> + <div id="q9y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q9n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + + + + <div id="finaly" style="display: none"> + <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">"You are 70% absent-minded. That makes you a little bit scatterbrained sometimes! You've experienced your share of embarrassing brain slips, +but you're not a complete space-cadet. You tend to be relatively +attentive, but do live in your own world sometimes. Want to improve your brainpower?"</div> + <div id="final"></div> + <div style="clear: both"></div> + </div> + + <div id="finaln" style="display: none"> + <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">You are 30% absent-minded. You're generally aware and attentive of your surroundings! Not much slips through the cracks with you. You have a clear sense of presence and purpose and are generally on time. Organization is your strong: suit from your mail, to your cosmetics, to your clothes... everything has a place!</div> + <div id="final2"></div> + <div style="clear: both"></div> + </div> + + + + + + + <div id="adspace" style="display: none"> + </div> + + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next5">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next6">Next ></div> + + </div> + +</div> + diff --git a/Mobile.WYSIWYG/Views/Quiz/Career.cshtml b/Mobile.WYSIWYG/Views/Quiz/Career.cshtml new file mode 100644 index 0000000..3e5c115 --- /dev/null +++ b/Mobile.WYSIWYG/Views/Quiz/Career.cshtml @@ -0,0 +1,412 @@ +@{ + ViewBag.Title = "Index"; +} + +<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> +<script> + + function showAd(keyword) { + document.getElementById('adspace').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + function showFinalAd(keyword) { + document.getElementById('final').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + function showFinalAd2(keyword) { + document.getElementById('final2').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + + + +</script> +<script> + $(document).ready( + function() { + $("#q1").click(function() { + $("#q1").hide(); + $("#q2").show(); + }); + + + $("#q2").click(function () { + $("#q2").hide(); + $("#q3").show(); + }); + + + $("#q3n").click(function () { + $("#q3").hide(); + $("#q4").show(); + }); + + $("#q3y").click(function () { + $("#q3").hide(); + showAd('online+nursing+schools'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#next1").click(function () { + $("#adspace").hide(); + $("#next1").hide(); + $("#q4").show(); + }); + + $("#q4").click(function () { + $("#q4").hide(); + $("#q5").show(); + }); + + $("#q5").click(function () { + $("#q5").hide(); + $("#q6").show(); + }); + + + + $("#q6n").click(function () { + $("#q6").hide(); + $("#q7").show(); + }); + + $("#q6y").click(function () { + $("#q6").hide(); + showAd('online+college'); + $("#adspace").show(); + $("#next2").show(); + }); + + + + + + $("#next2").click(function () { + $("#adspace").hide(); + $("#next2").hide(); + $("#q7").show(); + }); + + $("#q7").click(function () { + $("#q7").hide(); + $("#q8").show(); + }); + + + $("#q8").click(function () { + $("#q8").hide(); + $("#q9").show(); + }); + + + $("#q9y").click(function () { + $("#q9").hide(); + showAd('online+accounting+degree'); + $("#adspace").show(); + $("#next3").show(); + }); + + $("#next3").click(function () { + $("#adspace").hide(); + $("#next3").hide(); + $("#q10").show(); + }); + + $("#q9n").click(function () { + $("#q9").hide(); + $("#q10").show(); + }); + + + $("#q10").click(function () { + $("#q10").hide(); + $("#q11").show(); + }); + + $("#q111").click(function () { + $("#q11").hide(); + showAd('online+nursing+schools'); + $("#adspace").show(); + $("#next4").show(); + }); + + $("#q112").click(function () { + $("#q11").hide(); + showAd('online+accounting+degree'); + $("#adspace").show(); + $("#next4").show(); + }); + + $("#q113").click(function () { + $("#q11").hide(); + showAd('medical+billing+and+coding'); + $("#adspace").show(); + $("#next4").show(); + }); + + $("#q114").click(function () { + $("#q11").hide(); + showAd('early+childhood+education'); + $("#adspace").show(); + $("#next4").show(); + }); + + $("#q115").click(function () { + $("#q11").hide(); + showAd('online+seminary'); + $("#adspace").show(); + $("#next4").show(); + }); + + $("#q116").click(function () { + $("#q11").hide(); + showAd('physical+therapy+certification'); + $("#adspace").show(); + $("#next4").show(); + }); + + $("#q117").click(function () { + $("#q11").hide(); + $("#q12").show(); + }); + + $("#next4").click(function () { + $("#adspace").hide(); + $("#next4").hide(); + $("#q12").show(); + }); + + + + + $("#q12y").click(function () { + $("#q12").hide(); + showFinalAd('online+college'); + $("#finaly").show(); + }); + + $("#q12n").click(function () { + $("#q12").hide(); + + $("#finaln").show(); + }); + + + $("#q13").click(function () { + $("#q13").hide(); + $("#q14").show(); + }); + + $("#q14n").click(function () { + $("#q14").hide(); + showAd('car+dealers'); + $("#adspace").show(); + $("#next5").show(); + }); + + $("#next5").click(function () { + $("#adspace").hide(); + $("#next5").hide(); + $("#q15").show(); + }); + + $("#q14y").click(function () { + $("#q14").hide(); + $("#q15").show(); + }); + + $("#q15").click(function () { + $("#q15").hide(); + $("#q16").show(); + }); + + + + $("#q16n").click(function () { + $("#q16").hide(); + showAd('galaxy+s6+edge'); + $("#adspace").show(); + $("#next6").show(); + }); + + $("#q16y").click(function () { + $("#q16").hide(); + showAd('protective+cell+phone+covers'); + $("#adspace").show(); + $("#next6").show(); + }); + + $("#next6").click(function () { + $("#adspace").hide(); + $("#next6").hide(); + $("#q17").show(); + }); + + + + $("#q17").click(function () { + $("#q17").hide(); + $("#q18").show(); + }); + + $("#q18").click(function () { + $("#q18").hide(); + $("#q19").show(); + }); + + $("#q19y").click(function () { + $("#q19").hide(); + $("#finaly").show(); + }); + + $("#q19n").click(function () { + $("#q19").hide(); + $("#finaln").show(); + }); + + + + + + + + + + + }); +</script> + + +<div style="width: 100%; margin: 0 auto;"> + + <div text align="center"> + <div id="q1"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Comfortable working with the human body?</div> + <div id="q1y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q1n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q2" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are you comfortable around sick individuals?</div> + <div id="q2y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q2n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q3" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are you interested nursing school?</div> + <div id="q3y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q3n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q4" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you communicate well with others?</div> + <div id="q4y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q4n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q5" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Where do you prefer to study?</div> + <div id="q5y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Home</div> + <div id="q5n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">Campus</div> + + </div> + + + + <div id="q6" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are online courses interesting?</div> + <div id="q6y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q6n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q7" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are you good with numbers?</div> + <div id="q7y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q7n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q8" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are you good with excel?</div> + <div id="q8y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q8n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q9" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are you excited by the idea of accounting?</div> + <div id="q9y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q9n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + + + <div id="q10" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Have you completed any major schooling so far?</div> + <div id="q10y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q10n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q11" style="display: none"> + <div style="font-family: 'arial'; font-size: 20pt; padding: 10px; height: 200px">We think we know where this is going... To make sure, what degree interests you?</div> + <div id="q111" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">online nursing school</div> + <div id="q112" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">online accounting degree</div> + <div id="q113" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">medical billing and coding</div> + <div id="q114" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">early childhood education</div> + <div id="q115" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">online seminary</div> + <div id="q116" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">physical therapy</div> + <div id="q117" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">none of these</div> + + <div style="clear: both"></div> + </div> + + <div id="q12" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Compelled to work towards a education?</div> + <div id="q12y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q12n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + + + <div id="finaly" style="display: none"> + <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">You'll do well in life. Your interests make for an interesting match of skillsets and you should look to advance them at every chance you get. Consider taking the next steps. </div> + <div id="final"></div> + <div style="clear: both"></div> + </div> + + <div id="finaln" style="display: none"> + <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">You'll do well in life. Your interests make for an interesting match of skillsets and you should look to advance them at every chance you get. Consider taking the next steps. </div> + <div id="final2"></div> + <div style="clear: both"></div> + </div> + + + + + + + <div id="adspace" style="display: none"> + </div> + + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next5">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next6">Next ></div> + + </div> + +</div> + diff --git a/Mobile.WYSIWYG/Views/Quiz/Fake.cshtml b/Mobile.WYSIWYG/Views/Quiz/Fake.cshtml new file mode 100644 index 0000000..20f57a5 --- /dev/null +++ b/Mobile.WYSIWYG/Views/Quiz/Fake.cshtml @@ -0,0 +1,394 @@ +@{ + ViewBag.Title = "Index"; +} + +<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> +<script> + + function showAd(keyword) { + document.getElementById('adspace').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + function showFinalAd(keyword) { + document.getElementById('final').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + + + +</script> +<script> + $(document).ready( + function() { + $("#q1").click(function() { + $("#q1").hide(); + $("#q2").show(); + }); + + $("#q2y").click(function () { + $("#q2").hide(); + showAd('teeth+whitening'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#q2n").click(function () { + $("#q2").hide(); + $("#q3").show(); + + }); + + $("#next1").click(function () { + $("#adspace").hide(); + $("#next1").hide(); + $("#q3").show(); + }); + + $("#q3").click(function () { + $("#q3").hide(); + $("#q4").show(); + }); + + $("#q4").click(function () { + $("#q4").hide(); + $("#q5").show(); + }); + + $("#q5y").click(function () { + $("#q5").hide(); + showAd('brand+name+clothes'); + $("#adspace").show(); + $("#next2").show(); + }); + + $("#q5n").click(function () { + $("#q5").hide(); + $("#q6").show(); + + }); + + $("#next2").click(function () { + $("#adspace").hide(); + $("#next2").hide(); + $("#q6").show(); + }); + + $("#q6").click(function () { + $("#q6").hide(); + $("#q7").show(); + }); + + $("#q7").click(function () { + $("#q7").hide(); + $("#q8").show(); + }); + + $("#q8y").click(function () { + $("#q8").hide(); + showAd('ladies+leather+handbag'); + $("#adspace").show(); + $("#next3").show(); + }); + + $("#q8n").click(function () { + $("#q8").hide(); + $("#q9").show(); + + }); + + $("#next3").click(function () { + $("#adspace").hide(); + $("#next3").hide(); + $("#q9").show(); + }); + + $("#q9").click(function () { + $("#q9").hide(); + $("#q10").show(); + }); + + $("#q10y").click(function () { + $("#q10").hide(); + showAd('workout+clothes'); + $("#adspace").show(); + $("#next4").show(); + }); + + $("#q10n").click(function () { + $("#q10").hide(); + $("#q11").show(); + + }); + + $("#next4").click(function () { + $("#adspace").hide(); + $("#next4").hide(); + $("#q11").show(); + }); + + $("#q11").click(function () { + $("#q11").hide(); + $("#q12").show(); + }); + + $("#q12").click(function () { + $("#q12").hide(); + $("#q13").show(); + }); + + $("#q13y").click(function () { + $("#q13").hide(); + showAd('organic+spray+tanning'); + $("#adspace").show(); + $("#next5").show(); + }); + + $("#q13n").click(function () { + $("#q13").hide(); + $("#q14").show(); + + }); + + $("#next5").click(function () { + $("#adspace").hide(); + $("#next5").hide(); + $("#q14").show(); + }); + + $("#q14").click(function () { + $("#q14").hide(); + $("#q15").show(); + }); + + $("#q15y").click(function () { + $("#q15").hide(); + showAd('online+masters+degree'); + $("#adspace").show(); + $("#next6").show(); + }); + + $("#q15n").click(function () { + $("#q15").hide(); + $("#q16").show(); + + }); + + $("#next6").click(function () { + $("#adspace").hide(); + $("#next6").hide(); + $("#q16").show(); + }); + + $("#q16").click(function () { + $("#q16").hide(); + $("#q17").show(); + }); + + $("#q17n").click(function () { + $("#q17").hide(); + showAd('house+cleaning+services'); + $("#adspace").show(); + $("#next7").show(); + }); + + $("#q17y").click(function () { + $("#q17").hide(); + $("#q18").show(); + + }); + + $("#next7").click(function () { + $("#adspace").hide(); + $("#next7").hide(); + $("#q18").show(); + }); + + $("#q18y").click(function () { + $("#q18").hide(); + $("#finaly").show(); + + }); + + $("#q18n").click(function () { + $("#q18").hide(); + $("#finaln").show(); + + }); + + + + + + + + + + + }); +</script> + + +<div style="width: 100%; margin: 0 auto;"> + + <div text align="center"> + <div id="q1"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you lie often?</div> + <div id="q1y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q1n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q2" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are you impressed by white teeth?</div> + <div id="q2y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q2n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q3" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you often talk about yourself?</div> + <div id="q3y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q3n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q4" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are your friendships strategic to help you get ahead?</div> + <div id="q4y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q4n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q5" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you prefer brand names in fashion?</div> + <div id="q5y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q5n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + + </div> + + + + <div id="q6" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Is having a perfect body important to you?</div> + <div id="q6y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q6n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q7" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you like to find bargains?</div> + <div id="q7y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q7n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q8" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you love desginer bags?</div> + <div id="q8y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q8n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q9" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Have you ever flirted just to get a free drink?</div> + <div id="q9y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q9n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + + <div id="q10" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you work out to improve your appearance?</div> + <div id="q10y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q10n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q11" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you kiss up to the boss?</div> + <div id="q11y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q11n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q12" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Have you ever lied on a job application?</div> + <div id="q12y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q12n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q13" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you like tan skin?</div> + <div id="q13y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q13n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + + <div id="q14" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Have you ever had plastic surgery?</div> + <div id="q14y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q14n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q15" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do think an advanced degree is important?</div> + <div id="q15y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q15n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + <div id="q16" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you play politics at work?</div> + <div id="q16y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q16n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + <div id="q17" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are you a clean freak?</div> + <div id="q17y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q17n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + <div id="q18" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are you comfortable in your own skin and confident in your relationships?</div> + <div id="q18y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q18n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + + + + <div id="finaly" style="display: none"> + <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">People may think you are a little too fake or superficial. You may be too wrapped up in brand names and have difficulty managing your money. You should realize that quality does not necessarily come with a brand attached, and the most important things in life are free. It may be time to reevaluate and get new priorities in life. Remember to ask questions about others and really listen to their answers.</div> + <div id="final"></div> + <div style="clear: both"></div> + </div> + + <div id="finaln" style="display: none"> + <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">You are a genuine soul. You realize that the best things in life are free and quality does not necessarily come with a brand label. You may enjoy crafting or getting handmade or personalized gifts. You value family and security and are a sentimental person. You often put other people's needs before your own. It may be time to take some time pampering yourself or spend some quality time with friends.</div> + <div id="final"></div> + <div style="clear: both"></div> + </div> + + + + + <div id="adspace" style="display: none"> + </div> + + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next5">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next6">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next7">Next ></div> + + </div> + +</div> + diff --git a/Mobile.WYSIWYG/Views/Quiz/Fake2.cshtml b/Mobile.WYSIWYG/Views/Quiz/Fake2.cshtml new file mode 100644 index 0000000..288a382 --- /dev/null +++ b/Mobile.WYSIWYG/Views/Quiz/Fake2.cshtml @@ -0,0 +1,359 @@ +@{ + ViewBag.Title = "Index"; +} + +<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> +<script> + + function showAd(keyword) { + document.getElementById('adspace').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + function showFinalAd(keyword) { + document.getElementById('final').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + + + +</script> +<script> + $(document).ready( + function() { + $("#q1").click(function() { + $("#q1").hide(); + $("#q2").show(); + }); + + $("#q2y").click(function () { + $("#q2").hide(); + showAd('teeth+whitening'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#q2n").click(function () { + $("#q2").hide(); + $("#q3").show(); + + }); + + $("#next1").click(function () { + $("#adspace").hide(); + $("#next1").hide(); + $("#q3").show(); + }); + + $("#q3y").click(function () { + $("#q3").hide(); + $("#q4").show(); + }); + + $("#q3n").click(function () { + + + $("#q3").hide(); + showAd('house+cleaning+services'); + $("#adspace").show(); + $("#next2").show(); + + + }); + + $("#next2").click(function () { + $("#adspace").hide(); + $("#next2").hide(); + $("#q4").show(); + }); + + $("#q4").click(function () { + $("#q4").hide(); + $("#q5").show(); + }); + + $("#q5").click(function () { + $("#q5").hide(); + $("#q6").show(); + }); + + $("#q6").click(function () { + $("#q6").hide(); + $("#q7").show(); + }); + + + + + $("#q7y").click(function () { + $("#q7").hide(); + showAd('suv+dealer'); + $("#adspace").show(); + $("#next3").show(); + }); + + + $("#next3").click(function () { + $("#adspace").hide(); + $("#next3").hide(); + $("#q8").show(); + }); + + $("#q7n").click(function () { + $("#q7").hide(); + $("#q8").show(); + + }); + + $("#q8").click(function () { + $("#q8").hide(); + $("#q9").show(); + }); + + + $("#q9").click(function () { + $("#q9").hide(); + $("#q10").show(); + }); + + $("#q10").click(function () { + $("#q10").hide(); + $("#q11").show(); + }); + + $("#q11").click(function () { + $("#q11").hide(); + $("#q12").show(); + }); + + $("#q12").click(function () { + $("#q12").hide(); + $("#q13").show(); + }); + + $("#q13y").click(function () { + $("#q13").hide(); + showAd('mba'); + $("#adspace").show(); + $("#next4").show(); + }); + + $("#q13n").click(function () { + $("#q13").hide(); + $("#q14").show(); + + }); + + $("#next4").click(function () { + $("#adspace").hide(); + $("#next4").hide(); + $("#q14").show(); + }); + + + + + $("#q14y").click(function () { + $("#q14").hide(); + showAd('brand+name+clothes'); + $("#adspace").show(); + $("#next5").show(); + }); + + $("#q14n").click(function () { + $("#q14").hide(); + $("#q15").show(); + + }); + + $("#next5").click(function () { + $("#adspace").hide(); + $("#next5").hide(); + $("#q15").show(); + }); + + $("#q15").click(function () { + $("#q15").hide(); + $("#q16").show(); + }); + + + $("#q16y").click(function () { + $("#q16").hide(); + $("#finaly").show(); + + }); + + $("#q16n").click(function () { + $("#q16").hide(); + $("#finaln").show(); + + }); + + + + + + + + + + + + + }); +</script> + + +<div style="width: 100%; margin: 0 auto;"> + + <div text align="center"> + <div id="q1"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you lie often?</div> + <div id="q1y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q1n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q2" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are you impressed by white teeth?</div> + <div id="q2y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q2n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q3" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are you a clean person?</div> + <div id="q3y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q3n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q4" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you often talk about yourself?</div> + <div id="q4y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q4n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q5" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are your friendships strategic to help you get ahead?</div> + <div id="q5y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q5n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + + </div> + + + + <div id="q6" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Is having a perfect body important to you?</div> + <div id="q6y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q6n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q7" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Want a new car?</div> + <div id="q7y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q7n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q8" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you like to find bargains?</div> + <div id="q8y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q8n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q9" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Have you ever flirted just to get a free drink?</div> + <div id="q9y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q9n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + + <div id="q10" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you kiss up to the boss?</div> + <div id="q10y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q10n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q11" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Have you ever lied on a job application?</div> + <div id="q11y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q11n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q12" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Have you ever had plastic surgery?</div> + <div id="q12y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q12n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q13" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do think an advanced degree is important?</div> + <div id="q13y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q13n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + + <div id="q14" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you prefer brand name clothes?</div> + <div id="q14y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q14n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q15" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you play politics at work?</div> + <div id="q15y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q15n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + <div id="q16" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are you comfortable in your own skin and confident in your relationships?</div> + <div id="q16y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q16n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + + + + <div id="finaly" style="display: none"> + <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">People may think you are a little too fake or superficial. You may be too wrapped up in brand names and have difficulty managing your money. You should realize that quality does not necessarily come with a brand attached, and the most important things in life are free. It may be time to reevaluate and get new priorities in life. Remember to ask questions about others and really listen to their answers.</div> + <div id="final"></div> + <div style="clear: both"></div> + </div> + + <div id="finaln" style="display: none"> + <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">You are a genuine soul. You realize that the best things in life are free and quality does not necessarily come with a brand label. You may enjoy crafting or getting handmade or personalized gifts. You value family and security and are a sentimental person. You often put other people's needs before your own. It may be time to take some time pampering yourself or spend some quality time with friends.</div> + <div id="final"></div> + <div style="clear: both"></div> + </div> + + + + + <div id="adspace" style="display: none"> + </div> + + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next5">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next6">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next7">Next ></div> + + </div> + +</div> + + diff --git a/Mobile.WYSIWYG/Views/Quiz/Fitness2.cshtml b/Mobile.WYSIWYG/Views/Quiz/Fitness2.cshtml new file mode 100644 index 0000000..4e3b681 --- /dev/null +++ b/Mobile.WYSIWYG/Views/Quiz/Fitness2.cshtml @@ -0,0 +1,313 @@ +@{ + ViewBag.Title = "Index"; +} + +<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> +<script> + + function showAd(keyword) { + document.getElementById('adspace').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + function showFinalAd(keyword) { + document.getElementById('final').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + function showFinalAd2(keyword) { + document.getElementById('final2').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + + + +</script> +<script> + $(document).ready( + function() { + $("#q1").click(function() { + $("#q1").hide(); + $("#q2").show(); + }); + + + $("#q2").click(function () { + $("#q2").hide(); + $("#q3").show(); + }); + + + $("#q3n").click(function () { + $("#q3").hide(); + $("#q4").show(); + }); + + $("#q3y").click(function () { + $("#q3").hide(); + showAd('personal+trainer+certification'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#next1").click(function () { + $("#adspace").hide(); + $("#next1").hide(); + $("#q4").show(); + }); + + $("#q4n").click(function () { + $("#q5").hide(); + $("#q6").show(); + }); + + $("#q4y").click(function () { + $("#q4").hide(); + showAd('find+personal+trainer'); + $("#adspace").show(); + $("#next2").show(); + }); + + $("#next2").click(function () { + $("#adspace").hide(); + $("#next2").hide(); + $("#q5").show(); + }); + + $("#q5").click(function () { + $("#q5").hide(); + $("#q6").show(); + }); + + + + $("#q6n").click(function () { + $("#q6").hide(); + $("#q7").show(); + }); + + $("#q6y").click(function () { + $("#q6").hide(); + showAd('weight+loss'); + $("#adspace").show(); + $("#next3").show(); + }); + + $("#next3").click(function () { + $("#adspace").hide(); + $("#next3").hide(); + $("#q7").show(); + }); + + $("#q7").click(function () { + $("#q7").hide(); + $("#q8").show(); + }); + + + $("#q8y").click(function () { + $("#q8").hide(); + showFinalAd('yoga+classes'); + $("#finaly").show(); + }); + + $("#q8n").click(function () { + $("#q8").hide(); + showFinalAd2('colon+cleanse'); + $("#finaln").show(); + }); + + + + + + + + + + $("#q16n").click(function () { + $("#q16").hide(); + showAd('galaxy+s6+edge'); + $("#adspace").show(); + $("#next6").show(); + }); + + $("#q16y").click(function () { + $("#q16").hide(); + showAd('protective+cell+phone+covers'); + $("#adspace").show(); + $("#next6").show(); + }); + + $("#next6").click(function () { + $("#adspace").hide(); + $("#next6").hide(); + $("#q17").show(); + }); + + + + $("#q17").click(function () { + $("#q17").hide(); + $("#q18").show(); + }); + + $("#q18").click(function () { + $("#q18").hide(); + $("#q19").show(); + }); + + $("#q19y").click(function () { + $("#q19").hide(); + $("#finaly").show(); + }); + + $("#q19n").click(function () { + $("#q19").hide(); + $("#finaln").show(); + }); + + + + + + + + + + + }); +</script> + + +<div style="width: 100%; margin: 0 auto;"> + + <div text align="center"> + <div id="q1"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px"> + Are you afraid of the weights?</div> + <div id="q1y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q1n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q2" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Feel in better shape than others?</div> + <div id="q2y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q2n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q3" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Ever consider personal training?</div> + <div id="q3y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q3n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q4" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Want to be coached yourself?</div> + <div id="q4y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q4n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q5" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you feel good about your body?</div> + <div id="q5y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q5n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + + </div> + + + + <div id="q6" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Time To Lose A Few Pounds</div> + <div id="q6y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q6n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q7" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Overall, do you feel good?</div> + <div id="q7y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q7n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q8" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you visit the gym regularly?</div> + <div id="q8y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q8n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q9" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are you excited by the idea of accounting?</div> + <div id="q9y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q9n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + + + <div id="q10" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Have you completed any major schooling so far?</div> + <div id="q10y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q10n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q11" style="display: none"> + <div style="font-family: 'arial'; font-size: 20pt; padding: 10px; height: 200px">We think we know where this is going... To make sure, what degree interests you?</div> + <div id="q111" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">online nursing school</div> + <div id="q112" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">online accounting degree</div> + <div id="q113" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">medical billing and coding</div> + <div id="q114" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">early childhood education</div> + <div id="q115" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">online seminary</div> + <div id="q116" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">physical therapy</div> + <div id="q117" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">none of these</div> + + <div style="clear: both"></div> + </div> + + <div id="q12" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Compelled to work towards a education?</div> + <div id="q12y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q12n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + + + <div id="finaly" style="display: none"> + <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">You're a gym god. Lift those weights and make them yours, nothing can stop you now. Consider taking on a new hobby within fitness to keep yourself challenged.</div> + <div id="final"></div> + <div style="clear: both"></div> + </div> + + <div id="finaln" style="display: none"> + <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">If may be time to get back into the groove. Ditch the things holding you back and take another look at your habits. It may do you well to be receptive to new, healthier habits that can replace old ones. </div> + <div id="final2"></div> + <div style="clear: both"></div> + </div> + + + + + + + <div id="adspace" style="display: none"> + </div> + + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next5">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next6">Next ></div> + + </div> + + </div> + diff --git a/Mobile.WYSIWYG/Views/Quiz/Image.cshtml b/Mobile.WYSIWYG/Views/Quiz/Image.cshtml new file mode 100644 index 0000000..95bc1fe --- /dev/null +++ b/Mobile.WYSIWYG/Views/Quiz/Image.cshtml @@ -0,0 +1,396 @@ +@{ + ViewBag.Title = "Index"; +} + +<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> +<script> + + function showAd(keyword) { + document.getElementById('adspace').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + function showFinalAd(keyword) { + document.getElementById('final').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + + + +</script> +<script> + $(document).ready( + function() { + $("#q1").click(function() { + $("#q1").hide(); + $("#q2").show(); + }); + + $("#q2y").click(function () { + $("#q2").hide(); + $("#q3").show(); + }); + + $("#q2n").click(function () { + $("#q2").hide(); + showAd('symptoms+of+depression'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#next1").click(function () { + $("#adspace").hide(); + $("#next1").hide(); + $("#q3").show(); + }); + + $("#q3").click(function () { + $("#q3").hide(); + $("#q4").show(); + }); + + + $("#q4y").click(function () { + $("#q4").hide(); + $("#q5").show(); + }); + + $("#q4n").click(function () { + $("#q4").hide(); + showAd('teeth+whitening+with+baking+soda'); + $("#adspace").show(); + $("#next2").show(); + }); + + $("#next2").click(function () { + $("#adspace").hide(); + $("#next2").hide(); + $("#q5").show(); + }); + + $("#q5").click(function () { + $("#q5").hide(); + $("#q6").show(); + }); + + $("#q6").click(function () { + $("#q6").hide(); + $("#q7").show(); + }); + + + + + + $("#q7y").click(function () { + $("#q7").hide(); + showAd('maxi+dress'); + $("#adspace").show(); + $("#next3").show(); + }); + + $("#next3").click(function () { + $("#adspace").hide(); + $("#next3").hide(); + $("#q8").show(); + }); + + $("#q7n").click(function () { + $("#q7").hide(); + $("#q8").show(); + }); + + + $("#q8").click(function () { + $("#q8").hide(); + $("#q9").show(); + }); + + + $("#q9").click(function () { + $("#q9").hide(); + $("#q10").show(); + }); + + + $("#q10").click(function () { + $("#q10").hide(); + $("#q11").show(); + }); + + $("#q11y").click(function () { + $("#q11").hide(); + showAd('wavy+hair'); + $("#adspace").show(); + $("#next4").show(); + }); + + $("#next4").click(function () { + $("#adspace").hide(); + $("#next4").hide(); + $("#q12").show(); + }); + + $("#q11n").click(function () { + $("#q11").hide(); + $("#q12").show(); + }); + + + $("#q12").click(function () { + $("#q12").hide(); + $("#q13").show(); + }); + + $("#q13").click(function () { + $("#q13").hide(); + $("#q14").show(); + }); + + $("#q14n").click(function () { + $("#q14").hide(); + showAd('suv+dealer'); + $("#adspace").show(); + $("#next5").show(); + }); + + $("#next5").click(function () { + $("#adspace").hide(); + $("#next5").hide(); + $("#q15").show(); + }); + + $("#q14y").click(function () { + $("#q14").hide(); + $("#q15").show(); + }); + + $("#q15").click(function () { + $("#q15").hide(); + $("#q16").show(); + }); + + + + $("#q16n").click(function () { + $("#q16").hide(); + showAd('galaxy+s6+edge'); + $("#adspace").show(); + $("#next6").show(); + }); + + $("#q16y").click(function () { + $("#q16").hide(); + showAd('protective+cell+phone+covers'); + $("#adspace").show(); + $("#next6").show(); + }); + + $("#next6").click(function () { + $("#adspace").hide(); + $("#next6").hide(); + $("#q17").show(); + }); + + + + $("#q17").click(function () { + $("#q17").hide(); + $("#q18").show(); + }); + + $("#q18").click(function () { + $("#q18").hide(); + $("#q19").show(); + }); + + $("#q19y").click(function () { + $("#q19").hide(); + $("#finaly").show(); + }); + + $("#q19n").click(function () { + $("#q19").hide(); + $("#finaln").show(); + }); + + + + + + + + + + + }); +</script> + + +<div style="width: 100%; margin: 0 auto;"> + + <div text align="center"> + <div id="q1"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you make eye contact when talking with others?</div> + <div id="q1y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q1n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q2" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you generally feel happy?</div> + <div id="q2y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q2n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q3" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you smile often at strangers?</div> + <div id="q3y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q3n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q4" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you feel confident in the appearance of your teeth?</div> + <div id="q4y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q4n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q5" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you prefer brand names in fashion?</div> + <div id="q5y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q5n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + + </div> + + + + <div id="q6" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you keep up with style trends?</div> + <div id="q6y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q6n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q7" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you like to dress up?</div> + <div id="q7y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q7n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q8" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you normally wear makeup?</div> + <div id="q8y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q8n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q9" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you get professional manicures/pedicures?</div> + <div id="q9y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q9n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + + <div id="q10" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you change up your makeup often?</div> + <div id="q10y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q10n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q11" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you update your hair style or color often?</div> + <div id="q11y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q11n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q12" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you shop more than once a week?</div> + <div id="q12y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q12n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q13" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you generally enjoy sex?</div> + <div id="q13y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q13n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + + <div id="q14" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Is your car model newer than 5 years?</div> + <div id="q14y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q14n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q15" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you drink socially?</div> + <div id="q15y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q15n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + <div id="q16" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you have a smartphone?</div> + <div id="q16y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q16n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + <div id="q17" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you have a lot of energy?</div> + <div id="q17y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q17n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + <div id="q18" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you work out regularly?</div> + <div id="q18y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q18n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + <div id="q19" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you have a lot of friends?</div> + <div id="q19y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q19n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + + + <div id="finaly" style="display: none"> + <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">You are generally perceived by others as a positive, stylish, intelligent person. You project an image of confidence and hip style. People gravitate toward you like a magnet and want to include you in social activities and work groups. Youger people see you as a role model and older people envy your youth and confidence but are wary of your reliability and money management skills.</div> + <div id="final"></div> + <div style="clear: both"></div> + </div> + + <div id="finaln" style="display: none"> + <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">You are generally percieved by others as a shy, conservative, conscientious person. You project an easy going image of quiet confidence. People may be intimidated by your reserved demeanor or nervous about approaching you since they are unsure how to talk to you. Younger people may overlook you due to your reserved vibe and older people think you are mature beyond your years.</div> + <div id="final"></div> + <div style="clear: both"></div> + </div> + + + + + <div id="adspace" style="display: none"> + </div> + + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next5">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next6">Next ></div> + + </div> + +</div> + diff --git a/Mobile.WYSIWYG/Views/Quiz/Image2.cshtml b/Mobile.WYSIWYG/Views/Quiz/Image2.cshtml new file mode 100644 index 0000000..328b100 --- /dev/null +++ b/Mobile.WYSIWYG/Views/Quiz/Image2.cshtml @@ -0,0 +1,249 @@ +@{ + ViewBag.Title = "Index"; +} + +<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> +<script> + + function showAd(keyword) { + document.getElementById('adspace').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + function showFinalAd(keyword) { + document.getElementById('final').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + + + +</script> +<script> + $(document).ready( + function() { + $("#q1").click(function() { + $("#q1").hide(); + $("#q2").show(); + }); + + $("#q2y").click(function () { + $("#q2").hide(); + showAd('cheapest+cell+phone+plans'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#q2n").click(function () { + $("#q2").hide(); + showAd('phone'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#next1").click(function () { + $("#adspace").hide(); + $("#next1").hide(); + $("#q3").show(); + }); + + $("#q3").click(function () { + $("#q3").hide(); + $("#q4").show(); + }); + + + $("#q4").click(function () { + $("#q4").hide(); + $("#q5").show(); + }); + + + $("#q5").click(function () { + $("#q5").hide(); + $("#q6").show(); + }); + + $("#q6").click(function () { + $("#q6").hide(); + $("#q7").show(); + }); + + $("#q7").click(function () { + $("#q7").hide(); + $("#q8").show(); + }); + + $("#q8y").click(function () { + $("#q8").hide(); + showAd('suv+dealer'); + $("#adspace").show(); + $("#next2").show(); + }); + + $("#q8n").click(function () { + $("#q8").hide(); + $("#q9").show(); + + }); + + $("#next2").click(function () { + $("#adspace").hide(); + $("#next2").hide(); + $("#q9").show(); + }); + + + + + + $("#q9").click(function () { + $("#q9").hide(); + $("#q10").show(); + }); + + + $("#q10").click(function () { + $("#q10").hide(); + $("#q11").show(); + }); + + $("#q11y").click(function () { + $("#q11").hide(); + $("#finaly").show(); + }); + + $("#q11n").click(function () { + $("#q11").hide(); + $("#finaln").show(); + }); + + + + + + + + + + + + }); +</script> + + +<div style="width: 100%; margin: 0 auto;"> + + <div text align="center"> + <div id="q1"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you make eye contact when talking with others?</div> + <div id="q1y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q1n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q2" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you have a smartphone?</div> + <div id="q2y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q2n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q3" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you smile often at strangers?</div> + <div id="q3y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q3n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q4" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you prefer brand names in fashion?</div> + <div id="q4y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q4n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q5" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you keep up with style trends?</div> + <div id="q5y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q5n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + + </div> + + + + <div id="q6" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you change up your makeup often?</div> + <div id="q6y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q6n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q7" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you shop more than once a week?</div> + <div id="q7y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q7n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q8" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Want a new car?</div> + <div id="q8y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q8n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q9" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you have a lot of energy?</div> + <div id="q9y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q9n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + + <div id="q10" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you work out regularly?</div> + <div id="q10y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q10n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q11" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you have a lot of friends?</div> + <div id="q11y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q11n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + + + <div id="finaly" style="display: none"> + <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">You are generally perceived by others as a positive, stylish, intelligent person. You project an image of confidence and hip style. People gravitate toward you like a magnet and want to include you in social activities and work groups. Youger people see you as a role model and older people envy your youth and confidence but are wary of your reliability and money management skills.</div> + <div id="final"></div> + <div style="clear: both"></div> + </div> + + <div id="finaln" style="display: none"> + <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">You are generally percieved by others as a shy, conservative, conscientious person. You project an easy going image of quiet confidence. People may be intimidated by your reserved demeanor or nervous about approaching you since they are unsure how to talk to you. Younger people may overlook you due to your reserved vibe and older people think you are mature beyond your years.</div> + <div id="final"></div> + <div style="clear: both"></div> + </div> + + + + + <div id="adspace" style="display: none"> + </div> + + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next5">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next6">Next ></div> + + </div> + +</div> + + diff --git a/Mobile.WYSIWYG/Views/Quiz/Index.cshtml b/Mobile.WYSIWYG/Views/Quiz/Index.cshtml new file mode 100644 index 0000000..b833307 --- /dev/null +++ b/Mobile.WYSIWYG/Views/Quiz/Index.cshtml @@ -0,0 +1,347 @@ + +@{ + ViewBag.Title = "Index"; +} + + <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> + <script> + + function showAd1() { + document.getElementById('adspace1').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + function showAd2() { + document.getElementById('adspace2').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=meal+kit&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=meal+kit&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + function showAd3() { + document.getElementById('adspace3').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=dating+sites&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=dating+sites&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + function showAd4() { + document.getElementById('adspace4').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=short+hairstyles&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=short+hairstyles&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + function showAd5() { + document.getElementById('adspace5').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=austin&keyword=psychic-reader&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=austin&keyword=psychic-reader&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + + + </script> + <script> + $(document).ready( + function() { + $("#q1y").click(function() { + $("#q1").hide(); + $("#q2").show(); + }); + + $("#q1n").click(function () { + $("#q1").hide(); + $("#q2").show(); + }); + + $("#q2y").click(function () { + $("#q2").hide(); + $("#q3").show(); + }); + + $("#q2n").click(function () { + $("#q2").hide(); + $("#q3").show(); + }); + + $("#q3y").click(function () { + $("#q3").hide(); + showAd1(); + $("#adspace1").show(); + $("#next1").show(); + }); + + $("#q3n").click(function () { + $("#q3").hide(); + $("#q6").show(); + }); + + $("#q4y").click(function () { + $("#q2").hide(); + $("#q3").show(); + }); + + $("#q4n").click(function () { + $("#q2").hide(); + $("#q3").show(); + }); + + + $("#next1").click(function() { + $("#adspace1").hide(); + $("#next1").hide(); + $("#q6").show(); + }); + + $("#q6y").click(function () { + $("#q6").hide(); + $("#q7").show(); + }); + + $("#q6n").click(function () { + $("#q6").hide(); + $("#q7").show(); + }); + + $("#q7y").click(function () { + $("#q7").hide(); + $("#q8").show(); + }); + + $("#q7n").click(function () { + $("#q7").hide(); + $("#q8").show(); + }); + + $("#q8y").click(function () { + $("#q8").hide(); + $("#q9").show(); + }); + + $("#q8n").click(function () { + $("#q8").hide(); + $("#q9").show(); + }); + + $("#q9y").click(function () { + $("#q9").hide(); + $("#q10").show(); + }); + + $("#q9n").click(function () { + $("#q9").hide(); + $("#q10").show(); + }); + + $("#q10y").click(function () { + $("#q10").hide(); + showAd2(); + $("#adspace2").show(); + $("#next2").show(); + }); + + $("#q10n").click(function () { + $("#q10").hide(); + $("#q11").show(); + }); + + + $("#next2").click(function () { + $("#adspace2").hide(); + $("#next2").hide(); + $("#q11").show(); + }); + + $("#q11y").click(function () { + $("#q11").hide(); + $("#q12").show(); + }); + + $("#q11n").click(function () { + $("#q11").hide(); + $("#q12").show(); + }); + + $("#q12y").click(function () { + $("#q12").hide(); + $("#q13").show(); + }); + + $("#q12n").click(function () { + $("#q12").hide(); + $("#q13").show(); + }); + + $("#q13y").click(function () { + $("#q13").hide(); + showAd3(); + $("#adspace3").show(); + $("#next3").show(); + }); + + $("#q13n").click(function () { + $("#q13").hide(); + $("#q14").show(); + }); + + + $("#next3").click(function () { + $("#adspace3").hide(); + $("#next3").hide(); + $("#q14").show(); + }); + + $("#q14").click(function () { + $("#q14").hide(); + $("#q15").show(); + }); + + $("#q15y").click(function () { + $("#q15").hide(); + showAd4(); + $("#adspace4").show(); + $("#next4").show(); + }); + + $("#q15n").click(function () { + $("#q15").hide(); + $("#final").show(); + }); + + + $("#next4").click(function () { + $("#adspace4").hide(); + showAd5(); + $("#next4").hide(); + $("#final").show(); + }); + + + + }); + </script> + + + <div style="width: 100%; margin: 0 auto;"> + + <div text align="center"> + <div id="q1"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Caught him cheating before?</div> + <div id="q1y" style="background-color: #74c680; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">YES!</div> + <div id="q1n" style="background-color: #da6767; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">NO!</div> + <div style="clear: both"></div> + </div> + + <div id="q2" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Does he receive mysterious calls/ texts?</div> + <div id="q2y" style="background-color: #74c680; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">YES!</div> + <div id="q2n" style="background-color: #da6767; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">NO!</div> + <div style="clear: both"></div> + </div> + + <div id="q3" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Want To Know Who He Is Texting?</div> + <div id="q3y" style="background-color: #74c680; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">YES!</div> + <div id="q3n" style="background-color: #da6767; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">NO!</div> + <div style="clear: both"></div> + </div> + + <div id="q4" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px"> No Answer Goes Here</div> + <div id="q4y" style="background-color: #74c680; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">YES!</div> + <div id="q4n" style="background-color: #da6767; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">NO!</div> + <div style="clear: both"></div> + </div> + + + + <div id="q6" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Have you caught him checking out another girl?</div> + <div id="q6y" style="background-color: #74c680; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">YES!</div> + <div id="q6n" style="background-color: #da6767; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">NO!</div> + <div style="clear: both"></div> + </div> + + <div id="q7" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Does he have many girl friends?</div> + <div id="q7y" style="background-color: #74c680; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">YES!</div> + <div id="q7n" style="background-color: #da6767; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">NO!</div> + <div style="clear: both"></div> + </div> + + <div id="q8" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Fail to invite you out with friends?</div> + <div id="q8y" style="background-color: #74c680; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">YES!</div> + <div id="q8n" style="background-color: #da6767; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">NO!</div> + <div style="clear: both"></div> + </div> + + <div id="q9" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you share interests?</div> + <div id="q9y" style="background-color: #74c680; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">YES!</div> + <div id="q9n" style="background-color: #da6767; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">NO!</div> + <div style="clear: both"></div> + </div> + + <div id="q10" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Interested in cooking together?</div> + <div id="q10y" style="background-color: #74c680; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">YES!</div> + <div id="q10n" style="background-color: #da6767; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">NO!</div> + <div style="clear: both"></div> + </div> + + <div id="q11" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Does he get up in the middle of the night?</div> + <div id="q11y" style="background-color: #74c680; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">YES!</div> + <div id="q11n" style="background-color: #da6767; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">NO!</div> + <div style="clear: both"></div> + </div> + + <div id="q12" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Smell Other Perfume?</div> + <div id="q12y" style="background-color: #74c680; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">YES!</div> + <div id="q12n" style="background-color: #da6767; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">NO!</div> + <div style="clear: both"></div> + </div> + + <div id="q13" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Time To Meet a New Guy?</div> + <div id="q13y" style="background-color: #74c680; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">YES!</div> + <div id="q13n" style="background-color: #da6767; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">NO!</div> + <div style="clear: both"></div> + + </div> + + <div id="q14" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Changed how he looks recently?</div> + <div id="q14y" style="background-color: #74c680; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">YES!</div> + <div id="q14n" style="background-color: #da6767; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">NO!</div> + <div style="clear: both"></div> + </div> + + <div id="q15" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Time to change your looks?</div> + <div id="q15y" style="background-color: #74c680; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">YES!</div> + <div id="q15n" style="background-color: #da6767; padding: 30px; color: white; font-family: 'arial'; font-size: 25pt; width: 50%; float: left;">NO!</div> + <div style="clear: both"></div> + </div> + <div id="final" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">“Something makes this situation tingle, maybe you should keep an eye out”</div> + <hr style="border: none; border-top: 1px dotted #82c68b; color: #fff; background-color: #fff; height: 1px; width: 100%;" /> + <div id="adspace5"></div> + </div> + + + + + <div id="adspace1" style="display: none"> + </div> + <div id="adspace2" style="display: none"> + </div> + <div id="adspace3" style="display: none"> + </div> + <div id="adspace4" style="display: none"> + </div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> + + </div> + + </div> + + diff --git a/Mobile.WYSIWYG/Views/Quiz/Marry.cshtml b/Mobile.WYSIWYG/Views/Quiz/Marry.cshtml new file mode 100644 index 0000000..a34deac --- /dev/null +++ b/Mobile.WYSIWYG/Views/Quiz/Marry.cshtml @@ -0,0 +1,357 @@ +@{ + ViewBag.Title = "Index"; +} + +<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> +<script> + + function showAd(keyword) { + document.getElementById('adspace').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + function showFinalAd(keyword) { + document.getElementById('final').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + + + +</script> +<script> + $(document).ready( + function() { + $("#q1y").click(function() { + $("#q1").hide(); + $("#q2").show(); + }); + + $("#q1n").click(function () { + $("#q1").hide(); + $("#q2").show(); + }); + + $("#q2y").click(function () { + $("#q2").hide(); + $("#q3").show(); + }); + + $("#q2n").click(function () { + $("#q2").hide(); + $("#q3").show(); + }); + + $("#q31").click(function () { + $("#q3").hide(); + $("#q4").show(); + }); + + $("#q32").click(function () { + $("#q3").hide(); + $("#q4").show(); + }); + + $("#q33").click(function () { + $("#q3").hide(); + $("#q4").show(); + }); + + $("#q4y").click(function () { + $("#q4").hide(); + $("#q5").show(); + }); + + $("#q4n").click(function () { + $("#q4").hide(); + $("#q5").show(); + }); + + $("#q55").click(function () { + $("#q5").hide(); + $("#q6").show(); + }); + + $("#q51").click(function () { + $("#q5").hide(); + showAd('las+vegas+hotel'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#q52").click(function () { + $("#q5").hide(); + showAd('new+york+hotel'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#q53").click(function () { + $("#q5").hide(); + showAd('cheap+all+inclusive'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#q54").click(function () { + $("#q5").hide(); + showAd('eastern+carribean+cruise'); + $("#adspace").show(); + $("#next1").show(); + }); + + + + + $("#next1").click(function() { + $("#adspace").hide(); + $("#next1").hide(); + $("#q6").show(); + }); + + $("#q6").click(function () { + $("#q6").hide(); + $("#q7").show(); + }); + + + $("#q7").click(function () { + $("#q7").hide(); + $("#q8").show(); + }); + + + $("#q8").click(function () { + $("#q8").hide(); + $("#q9").show(); + }); + + $("#q9y").click(function () { + $("#q9").hide(); + showAd('dating+sites'); + $("#adspace").show(); + $("#next2").show(); + }); + + $("#q9n").click(function () { + $("#q9").hide(); + $("#q10").show(); + }); + + $("#next2").click(function () { + $("#adspace").hide(); + $("#next2").hide(); + $("#q10").show(); + }); + + + $("#q10").click(function () { + $("#q10").hide(); + $("#q11").show(); + }); + + $("#q11").click(function () { + $("#q11").hide(); + $("#q12").show(); + }); + + $("#q12").click(function () { + $("#q12").hide(); + $("#q13").show(); + }); + + $("#q13y").click(function () { + $("#q13").hide(); + showAd('psychic+reading'); + $("#adspace").show(); + $("#next3").show(); + }); + + $("#q13n").click(function () { + $("#q13").hide(); + $("#q14").show(); + }); + + $("#next3").click(function () { + $("#adspace").hide(); + $("#next3").hide(); + $("#q14").show(); + }); + + $("#q14").click(function () { + $("#q14").hide(); + $("#q15").show(); + }); + + $("#q15").click(function () { + $("#q15").hide(); + $("#q16").show(); + }); + + $("#q16").click(function () { + $("#q16").hide(); + showFinalAd('free+online+dating'); + $("#q17").show(); + }); + + + + + + }); +</script> + + +<div style="width: 100%; margin: 0 auto;"> + + <div text align="center"> + <div id="q1"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">What Is Your Gender?</div> + <div id="q1y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Male</div> + <div id="q1n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">Female</div> + <div style="clear: both"></div> + </div> + + <div id="q2" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Would You Have Traditional Wedding Attire?</div> + <div id="q2y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q2n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q3" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Where Would You Get Married?</div> + <div id="q31" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">Church</div> + <div id="q32" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Castle</div> + <div id="q33" style="background-color: #5b8fc4; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Big House</div> + <div style="clear: both"></div> + </div> + + <div id="q4" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Would You Honeymoon Right After The Wedding?</div> + <div id="q4y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q4n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q5" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Where Are You Most Interested In Going?</div> + <div id="q51" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%; ">Las Vegas</div> + <div id="q52" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">New York</div> + <div id="q53" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%; ">All-inclusive Resort</div> + <div id="q54" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%; ">Carribean Cruise</div> + + <div id="q55" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 10pt; width: 75%;">None Of These</div> + + </div> + + + + <div id="q6" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Which Do You Most Desire In Your Partner?</div> + <div id="q61" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%; ">Compassion</div> + <div id="q62" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">Generosity</div> + <div id="q63" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%; ">Empathy</div> + <div id="q64" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%; ">Adventure</div> + + <div style="clear: both"></div> + </div> + + <div id="q7" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Which Movie Would You Watch As A Couple?</div> + <div id="q71" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">Dispicable Me</div> + <div id="q72" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">Penguins Of Madagascar</div> + <div id="q73" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">Frozen</div> + <div id="q74" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">None Of The Above</div> + + <div style="clear: both"></div> + </div> + + <div id="q8" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">When Did You Last Have A Partner?</div> + <div id="q81" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%; ">Currently Do</div> + <div id="q82" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">< 6 Months</div> + <div id="q83" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">< 12 Months</div> + <div id="q84" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">12+ Months</div> + + <div style="clear: both"></div> + </div> + + <div id="q9" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Is It Time To Meet Someone New?</div> + <div id="q9y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q9n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + + <div id="q10" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Big And Lavish Wedding?</div> + <div id="q10y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q10y" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q11" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Would Your Partner Help Plan It?</div> + <div id="q11y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q11n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q12" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do You Beleive In Fate?</div> + <div id="q12y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q12n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q13" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do You Beleive In Psychic Powers?</div> + <div id="q13y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q13n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + + <div id="q14" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Did You Complete College?</div> + <div id="q14y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q14n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q15" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Did You Want Kids?</div> + <div id="q15y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q15n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + <div id="q16" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Did You Have Kids Already?</div> + <div id="q16y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q16n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q17" style="display: none"> + <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">"Your Best Match Is An Adventurious Lover!...They're out there, meet them."</div> + <div id="final"></div> + <div style="clear: both"></div> + </div> + + + + + <div id="adspace" style="display: none"> + </div> + + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> + + </div> + +</div> + diff --git a/Mobile.WYSIWYG/Views/Quiz/MarryContent.cshtml b/Mobile.WYSIWYG/Views/Quiz/MarryContent.cshtml new file mode 100644 index 0000000..367f21c --- /dev/null +++ b/Mobile.WYSIWYG/Views/Quiz/MarryContent.cshtml @@ -0,0 +1,358 @@ +@{ + ViewBag.Title = "Index"; +} + +<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> +<script> + + function showAd(keyword) { + document.getElementById('adspace').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=content-marry&typeTagSuffix=content-marry&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + function showFinalAd(keyword) { + document.getElementById('final').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=content-marry&typeTagSuffix=content-marry&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + + + +</script> +<script> + $(document).ready( + function() { + $("#q1y").click(function() { + $("#q1").hide(); + $("#q2").show(); + }); + + $("#q1n").click(function () { + $("#q1").hide(); + $("#q2").show(); + }); + + $("#q2y").click(function () { + $("#q2").hide(); + $("#q3").show(); + }); + + $("#q2n").click(function () { + $("#q2").hide(); + $("#q3").show(); + }); + + $("#q31").click(function () { + $("#q3").hide(); + $("#q4").show(); + }); + + $("#q32").click(function () { + $("#q3").hide(); + $("#q4").show(); + }); + + $("#q33").click(function () { + $("#q3").hide(); + $("#q4").show(); + }); + + $("#q4y").click(function () { + $("#q4").hide(); + $("#q5").show(); + }); + + $("#q4n").click(function () { + $("#q4").hide(); + $("#q5").show(); + }); + + $("#q55").click(function () { + $("#q5").hide(); + $("#q6").show(); + }); + + $("#q51").click(function () { + $("#q5").hide(); + showAd('las+vegas+hotel'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#q52").click(function () { + $("#q5").hide(); + showAd('new+york+hotel'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#q53").click(function () { + $("#q5").hide(); + showAd('all+inclusive+resort'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#q54").click(function () { + $("#q5").hide(); + showAd('carribean+cruise'); + $("#adspace").show(); + $("#next1").show(); + }); + + + + + $("#next1").click(function() { + $("#adspace").hide(); + $("#next1").hide(); + $("#q6").show(); + }); + + $("#q6").click(function () { + $("#q6").hide(); + $("#q7").show(); + }); + + + $("#q7").click(function () { + $("#q7").hide(); + $("#q8").show(); + }); + + + $("#q8").click(function () { + $("#q8").hide(); + $("#q9").show(); + }); + + $("#q9y").click(function () { + $("#q9").hide(); + showAd('free+online+dating'); + $("#adspace").show(); + $("#next2").show(); + }); + + $("#q9n").click(function () { + $("#q9").hide(); + $("#q10").show(); + }); + + $("#next2").click(function () { + $("#adspace").hide(); + $("#next2").hide(); + $("#q10").show(); + }); + + + $("#q10").click(function () { + $("#q10").hide(); + $("#q11").show(); + }); + + $("#q11").click(function () { + $("#q11").hide(); + $("#q12").show(); + }); + + $("#q12").click(function () { + $("#q12").hide(); + $("#q13").show(); + }); + + $("#q13y").click(function () { + $("#q13").hide(); + showAd('psychic+reading'); + $("#adspace").show(); + $("#next3").show(); + }); + + $("#q13n").click(function () { + $("#q13").hide(); + $("#q14").show(); + }); + + $("#next3").click(function () { + $("#adspace").hide(); + $("#next3").hide(); + $("#q14").show(); + }); + + $("#q14").click(function () { + $("#q14").hide(); + $("#q15").show(); + }); + + $("#q15").click(function () { + $("#q15").hide(); + $("#q16").show(); + }); + + $("#q16").click(function () { + $("#q16").hide(); + showFinalAd('free+online+dating'); + $("#q17").show(); + }); + + + + + + }); +</script> + + +<div style="width: 100%; margin: 0 auto;"> + + <div text align="center"> + <div id="q1"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">What Is Your Gender?</div> + <div id="q1y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Male</div> + <div id="q1n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">Female</div> + <div style="clear: both"></div> + </div> + + <div id="q2" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Would You Have Traditional Wedding Attire?</div> + <div id="q2y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q2n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q3" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Where Would You Get Married?</div> + <div id="q31" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">Church</div> + <div id="q32" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Castle</div> + <div id="q33" style="background-color: #5b8fc4; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Big House</div> + <div style="clear: both"></div> + </div> + + <div id="q4" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Would You Honeymoon Right After The Wedding?</div> + <div id="q4y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q4n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q5" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Where Are You Most Interested In Going?</div> + <div id="q51" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%; ">Las Vegas</div> + <div id="q52" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">New York</div> + <div id="q53" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%; ">All-inclusive Resort</div> + <div id="q54" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%; ">Carribean Cruise</div> + + <div id="q55" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 10pt; width: 75%;">None Of These</div> + + </div> + + + + <div id="q6" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Which Do You Most Desire In Your Partner?</div> + <div id="q61" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%; ">Compassion</div> + <div id="q62" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">Generosity</div> + <div id="q63" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%; ">Empathy</div> + <div id="q64" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%; ">Adventure</div> + + <div style="clear: both"></div> + </div> + + <div id="q7" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Which Movie Would You Watch As A Couple?</div> + <div id="q71" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">Dispicable Me</div> + <div id="q72" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">Penguins Of Madagascar</div> + <div id="q73" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">Frozen</div> + <div id="q74" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">None Of The Above</div> + + <div style="clear: both"></div> + </div> + + <div id="q8" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">When Did You Last Have A Partner?</div> + <div id="q81" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%; ">Currently Do</div> + <div id="q82" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">< 6 Months</div> + <div id="q83" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">< 12 Months</div> + <div id="q84" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 12pt; width: 75%;">12+ Months</div> + + <div style="clear: both"></div> + </div> + + <div id="q9" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Is It Time To Meet Someone New?</div> + <div id="q9y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q9n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + + <div id="q10" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Big And Lavish Wedding?</div> + <div id="q10y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q10y" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q11" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Would Your Partner Help Plan It?</div> + <div id="q11y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q11n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q12" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do You Beleive In Fate?</div> + <div id="q12y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q12n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q13" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do You Beleive In Psychic Powers?</div> + <div id="q13y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q13n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + + <div id="q14" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Did You Complete College?</div> + <div id="q14y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q14n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q15" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Did You Want Kids?</div> + <div id="q15y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q15n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + <div id="q16" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Did You Have Kids Already?</div> + <div id="q16y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q16n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q17" style="display: none"> + <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">"Your Best Match Is An Adventurious Lover!...They're out there, meet them."</div> + <div id="final"></div> + <div style="clear: both"></div> + </div> + + + + + <div id="adspace" style="display: none"> + </div> + + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> + + </div> + +</div> + + diff --git a/Mobile.WYSIWYG/Views/Quiz/PerfectMatch.cshtml b/Mobile.WYSIWYG/Views/Quiz/PerfectMatch.cshtml new file mode 100644 index 0000000..5491ed7 --- /dev/null +++ b/Mobile.WYSIWYG/Views/Quiz/PerfectMatch.cshtml @@ -0,0 +1,224 @@ +@{ + ViewBag.Title = "Index"; +} + +<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> +<script> + + function showAd(keyword) { + document.getElementById('adspace').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + function showFinalAd(keyword) { + document.getElementById('final').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + + + +</script> +<script> + $(document).ready( + function() { + $("#q1").click(function() { + $("#q1").hide(); + $("#q2").show(); + }); + + $("#q2").click(function () { + $("#q2").hide(); + showAd('house+cleaning+services'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#next1").click(function () { + $("#adspace").hide(); + $("#next1").hide(); + $("#q3").show(); + }); + + $("#q3").click(function () { + $("#q3").hide(); + $("#q4").show(); + }); + + + $("#q4y").click(function () { + $("#q4").hide(); + showAd('printable+coupons+oil+change'); + $("#adspace").show(); + $("#next2").show(); + }); + + $("#q4n").click(function () { + $("#q4").hide(); + $("#q5").show(); + }); + + + $("#next2").click(function () { + $("#adspace").hide(); + $("#next2").hide(); + $("#q5").show(); + }); + + $("#q5").click(function () { + $("#q5").hide(); + $("#q6").show(); + }); + + $("#q6").click(function () { + $("#q6").hide(); + $("#q7").show(); + }); + + $("#q7y").click(function () { + $("#q7").hide(); + showAd('cheap+airline+tickets'); + $("#adspace").show(); + $("#next3").show(); + }); + + $("#q7n").click(function () { + $("#q7").hide(); + $("#q8").show(); + }); + + + $("#next3").click(function () { + $("#adspace").hide(); + $("#next3").hide(); + $("#q8").show(); + }); + + $("#q8").click(function () { + $("#q8").hide(); + $("#q9").show(); + }); + + $("#q91").click(function () { + $("#q9").hide(); + showFinalAd('free+dating+site'); + document.getElementById('finalText').innerHTML = "You really need a SMART and ambitious man in your life. Someone who is likes to read, enjoys politics, and keeps up on current events. Your guy will work hard to get ahead at work and work hard to improve your home and surroundings. Find a guy who makes you feel secure in your future together."; + $("#finalholder").show(); + + }); + + $("#q92").click(function () { + $("#q9").hide(); + showFinalAd('free+dating+site'); + document.getElementById('finalText').innerHTML = "You really need a HOT and sexy man in your life. Someone who is passionate about fitness, and fashion, and food. Your guy will like to travel, play games, and try new things. Find someone who will keep your relationship hot and steamy and keep you on your toes."; + $("#finalholder").show(); + + }); + + $("#q93").click(function () { + $("#q9").hide(); + showFinalAd('free+dating+site'); + document.getElementById('finalText').innerHTML = "You really need a ZEN man in your life. Someone who believes in the powers of the spirit, in natural healing, and nourishing the body. Your guy will like yoga, outdoor activities, and learning new things. Find someone who feeds your soul and makes you feel enchanted."; + $("#finalholder").show(); + + }); + + + + + }); +</script> + + +<div style="width: 100%; margin: 0 auto;"> + + <div text align="center"> + <div id="q1"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Have you ever had your heart broken?</div> + <div id="q1y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Yes</div> + <div id="q1n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">No</div> + <div style="clear: both"></div> + </div> + + + <div id="q2" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">How clean do you keep your home?</div> + <div id="q21" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 15pt; width: 75%; ">Organized and Spotless</div> + <div id="q22" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 15pt; width: 75%;">A Little Messy</div> + <div id="q23" style="background-color: #5b8fc4; padding: 10px; color: white; font-family: 'arial'; font-size: 15pt; width: 75%;">Disaster Zone</div> + <div style="clear: both"></div> + </div> + + <div id="q3" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are you usually the one to break up?</div> + <div id="q3y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q3n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q4" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do You Like To Save Money?</div> + <div id="q4y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q4n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q5" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you enjoy discussions about politics and current events?</div> + <div id="q5y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Yes</div> + <div id="q5n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">No</div> + <div style="clear: both"></div> + </div> + + <div id="q6" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Is Religion Important To You?</div> + <div id="q6y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Yes</div> + <div id="q6n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">No</div> + <div style="clear: both"></div> + </div> + + <div id="q7" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do You Like To Travel</div> + <div id="q7y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Yes</div> + <div id="q7n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">No</div> + <div style="clear: both"></div> + </div> + + <div id="q8" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you find ambition important in your mate?</div> + <div id="q8y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Yes</div> + <div id="q8n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">No</div> + <div style="clear: both"></div> + </div> + + <div id="q9" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you believe true love comes from the...</div> + <div id="q91" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 15pt; width: 75%; ">Mind</div> + <div id="q92" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 15pt; width: 75%;">Body</div> + <div id="q93" style="background-color: #5b8fc4; padding: 10px; color: white; font-family: 'arial'; font-size: 15pt; width: 75%;">Spirit</div> + <div style="clear: both"></div> + </div> + + + + <div id="finalholder" style="display: none"> + <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;" id="finalText"></div> + <div id="final"></div> + <div style="clear: both"></div> + </div> + + + + + <div id="adspace" style="display: none"> + </div> + + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> + + </div> + +</div> + diff --git a/Mobile.WYSIWYG/Views/Quiz/SeductionMaster.cshtml b/Mobile.WYSIWYG/Views/Quiz/SeductionMaster.cshtml new file mode 100644 index 0000000..38a6a47 --- /dev/null +++ b/Mobile.WYSIWYG/Views/Quiz/SeductionMaster.cshtml @@ -0,0 +1,358 @@ +@{ + ViewBag.Title = "Index"; +} + +<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> +<script> + + function showAd(keyword) { + document.getElementById('adspace').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper='; + } + + function showFinalAd(keyword) { + document.getElementById('final').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper='; + } + + function showFinalAd2(keyword) { + document.getElementById('final2').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper='; + } + + + + +</script> +<script> + $(document).ready( + function () { + $("#q1").click(function () { + $("#q1").hide(); + $("#q2").show(); + }); + + + $("#q2").click(function () { + $("#q2").hide(); + $("#q3").show(); + }); + + + $("#q3n").click(function () { + $("#q3").hide(); + $("#q4").show(); + }); + + $("#q3y").click(function () { + $("#q3").hide(); + showAd('lipstick'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#next1").click(function () { + $("#adspace").hide(); + $("#next1").hide(); + $("#q4").show(); + }); + + $("#q4").click(function () { + $("#q4").hide(); + $("#q5").show(); + }); + + $("#q5").click(function () { + $("#q5").hide(); + $("#q6").show(); + }); + + $("#q6").click(function () { + $("#q6").hide(); + $("#q7").show(); + }); + + $("#q7n").click(function () { + $("#q7").hide(); + $("#q8").show(); + }); + + $("#q7y").click(function () { + $("#q7").hide(); + showAd('psychic+love+reading'); + $("#adspace").show(); + $("#next2").show(); + }); + + + + + + $("#next2").click(function () { + $("#adspace").hide(); + $("#next2").hide(); + $("#q8").show(); + }); + + + $("#q8").click(function () { + $("#q8").hide(); + $("#q9").show(); + }); + + + $("#q9").click(function () { + $("#q9").hide(); + $("#q10").show(); + + }); + + + $("#q10").click(function () { + $("#q10").hide(); + $("#q11").show(); + }); + + $("#q11y").click(function () { + $("#q11").hide(); + showAd('dry+shampoo'); + $("#adspace").show(); + $("#next4").show(); + }); + + $("#next4").click(function () { + $("#adspace").hide(); + $("#next4").hide(); + $("#q12").show(); + }); + + $("#q11n").click(function () { + $("#q11").hide(); + $("#q12").show(); + }); + + + $("#q12y").click(function () { + $("#q12").hide(); + showFinalAd('yoga+classes+online'); + $("#finaly").show(); + }); + + $("#q12n").click(function () { + $("#q12").hide(); + showFinalAd2('dating+sites'); + $("#finaln").show(); + }); + + + $("#q13").click(function () { + $("#q13").hide(); + $("#q14").show(); + }); + + $("#q14n").click(function () { + $("#q14").hide(); + showAd('car+dealers'); + $("#adspace").show(); + $("#next5").show(); + }); + + $("#next5").click(function () { + $("#adspace").hide(); + $("#next5").hide(); + $("#q15").show(); + }); + + $("#q14y").click(function () { + $("#q14").hide(); + $("#q15").show(); + }); + + $("#q15").click(function () { + $("#q15").hide(); + $("#q16").show(); + }); + + + + $("#q16n").click(function () { + $("#q16").hide(); + showAd('galaxy+s6+edge'); + $("#adspace").show(); + $("#next6").show(); + }); + + $("#q16y").click(function () { + $("#q16").hide(); + showAd('protective+cell+phone+covers'); + $("#adspace").show(); + $("#next6").show(); + }); + + $("#next6").click(function () { + $("#adspace").hide(); + $("#next6").hide(); + $("#q17").show(); + }); + + + + $("#q17").click(function () { + $("#q17").hide(); + $("#q18").show(); + }); + + $("#q18").click(function () { + $("#q18").hide(); + $("#q19").show(); + }); + + $("#q19y").click(function () { + $("#q19").hide(); + $("#finaly").show(); + }); + + $("#q19n").click(function () { + $("#q19").hide(); + $("#finaln").show(); + }); + + + + + + + + + + + }); +</script> + + +<div style="width: 100%; margin: 0 auto;"> + + <div text align="center"> + <div id="q1"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you have sultry moves to turn anyone on?</div> + <div id="q1y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q1n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q2" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you feel kissable?</div> + <div id="q2y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q2n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q3" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Want lustious, kissable lips?</div> + <div id="q3y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q3n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q4" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are you the one that normally parts ways at the end of a relationship?</div> + <div id="q4y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q4n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q5" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you feel left behind in a relationship?</div> + <div id="q5y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q5n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + + </div> + + + + <div id="q6" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Wonder why your relationships end?</div> + <div id="q6y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q6n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q7" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Want to find out why it ended?</div> + <div id="q7y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q7n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q8" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are you the dominate personality?</div> + <div id="q8y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q8n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q9" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you pay for dinner?</div> + <div id="q9y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q9n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + + + <div id="q10" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Does your style exude sex?</div> + <div id="q10y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q10n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q11" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Time for your hair to catchup with the rest of your style?</div> + <div id="q11y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q11n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q12" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Is it easy for you to meet the opposite sex?</div> + <div id="q12y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q12n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + + + <div id="finaly" style="display: none"> + <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">Keep working it! You may not be celebrity status yet, but things are going well enough to keep things rolling just fine. Get out there and have fun. Look for ways to revitalize yourself with more energy to help along the way. </div> + <div id="final"></div> + <div style="clear: both"></div> + </div> + + <div id="finaln" style="display: none"> + <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">Your on your way, don't get frustrated just yet. Maybe throw yourself online more and try more in-person meetups. </div> + <div id="final2"></div> + <div style="clear: both"></div> + </div> + + + + + + + <div id="adspace" style="display: none"> + </div> + + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next5">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next6">Next ></div> + + </div> + +</div> + + + + diff --git a/Mobile.WYSIWYG/Views/Quiz/SeductionMaster2.cshtml b/Mobile.WYSIWYG/Views/Quiz/SeductionMaster2.cshtml new file mode 100644 index 0000000..d9f3d34 --- /dev/null +++ b/Mobile.WYSIWYG/Views/Quiz/SeductionMaster2.cshtml @@ -0,0 +1,363 @@ +@{ + ViewBag.Title = "Index"; +} + +<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> +<script> + + function showAd(keyword) { + document.getElementById('adspace').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + function showFinalAd(keyword) { + document.getElementById('final').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + function showFinalAd2(keyword) { + document.getElementById('final2').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + + + +</script> +<script> + $(document).ready( + function() { + $("#q1").click(function() { + $("#q1").hide(); + $("#q2").show(); + }); + + + $("#q2").click(function () { + $("#q2").hide(); + $("#q3").show(); + }); + + + $("#q3n").click(function () { + $("#q3").hide(); + $("#q4").show(); + }); + + $("#q3y").click(function () { + $("#q3").hide(); + showAd('free+cat+litter+coupons'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#next1").click(function () { + $("#adspace").hide(); + $("#next1").hide(); + $("#q4").show(); + }); + + $("#q4").click(function () { + $("#q4").hide(); + $("#q5").show(); + }); + + $("#q5n").click(function () { + $("#q5").hide(); + $("#q6").show(); + }); + + $("#q5y").click(function () { + $("#q5").hide(); + showAd('smoking+treatment'); + $("#adspace").show(); + $("#next2").show(); + }); + + $("#next2").click(function () { + $("#adspace").hide(); + $("#next2").hide(); + $("#q6").show(); + }); + + $("#q6").click(function () { + $("#q6").hide(); + $("#q7").show(); + }); + + $("#q7n").click(function () { + $("#q7").hide(); + $("#q8").show(); + }); + + $("#q7y").click(function () { + $("#q7").hide(); + showAd('lip+color'); + $("#adspace").show(); + $("#next3").show(); + }); + + + + + + $("#next3").click(function () { + $("#adspace").hide(); + $("#next3").hide(); + $("#q8").show(); + }); + + + $("#q8").click(function () { + $("#q8").hide(); + $("#q9").show(); + }); + + + $("#q9").click(function () { + $("#q9").hide(); + $("#q10").show(); + + }); + + + $("#q10").click(function () { + $("#q10").hide(); + $("#q11").show(); + }); + + $("#q11y").click(function () { + $("#q11").hide(); + showAd('psychic+love+reading'); + $("#adspace").show(); + $("#next4").show(); + }); + + $("#next4").click(function () { + $("#adspace").hide(); + $("#next4").hide(); + $("#q12").show(); + }); + + $("#q11n").click(function () { + $("#q11").hide(); + $("#q12").show(); + }); + + $("#q12").click(function () { + $("#q12").hide(); + $("#q13").show(); + }); + + $("#q13").click(function () { + $("#q13").hide(); + $("#q15").show(); + }); + + $("#q14").click(function () { + $("#q14").hide(); + $("#q15").show(); + }); + + $("#q15").click(function () { + $("#q15").hide(); + $("#q16").show(); + }); + + $("#q16y").click(function () { + $("#q16").hide(); + showAd('dry+shampoo'); + $("#adspace").show(); + $("#next5").show(); + }); + + $("#next5").click(function () { + $("#adspace").hide(); + $("#next5").hide(); + $("#q17").show(); + }); + + $("#q16n").click(function () { + $("#q16").hide(); + $("#q17").show(); + }); + + + + + $("#q17y").click(function () { + $("#q17").hide(); + showFinalAd('yoga+wear') + $("#finaly").show(); + }); + + $("#q17n").click(function () { + $("#q17").hide(); + showFinalAd2('dating+sites') + $("#finaln").show(); + }); + + + + + + + + + + + }); +</script> + + +<div style="width: 100%; margin: 0 auto;"> + + <div text align="center"> + <div id="q1"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you have sultry moves to turn anyone on?</div> + <div id="q1y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q1n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q2" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you have a basement full of cats?</div> + <div id="q2y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q2n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q3" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you have at least one cat?</div> + <div id="q3y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q3n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q4" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Would you kiss a smoker?</div> + <div id="q4y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q4n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q5" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you smoke?</div> + <div id="q5y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q5n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + + </div> + + + + <div id="q6" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you feel kissable?</div> + <div id="q6y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q6n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q7" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Want lustious, kissable lips?</div> + <div id="q7y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q7n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q8" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are you the one that normally parts ways?</div> + <div id="q8y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q8n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q9" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you feel left behind in a relationship?</div> + <div id="q9y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q9n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + + + <div id="q10" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Wonder why your relationships end?</div> + <div id="q10y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q10n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q11" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Want to find out why it ended?</div> + <div id="q11y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q11n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q12" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Are you the dominate personality?</div> + <div id="q12y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q12n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q13" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you pay for dinner?</div> + <div id="q13y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q13n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q15" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Does your style exude sex?</div> + <div id="q15y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q15n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q16" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Time for your hair to catchup with the rest of your style?</div> + <div id="q16y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q16n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q17" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Is it easy for you to meet the opposite sex?</div> + <div id="q17y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q17n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + + + <div id="finaly" style="display: none"> + <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">Keep working it! You may not be celebrity status yet, but things are going well enough to keep things rolling just fine. Get out there and have fun. Look for ways to revitalize yourself with more energy to help along the way. </div> + <div id="final"></div> + <div style="clear: both"></div> + </div> + + <div id="finaln" style="display: none"> + <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">Your on your way, don't get frustrated just yet. Maybe throw yourself online more and try more in-person meetups. </div> + <div id="final2"></div> + <div style="clear: both"></div> + </div> + + + + + + + <div id="adspace" style="display: none"> + </div> + + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next5">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next6">Next ></div> + + </div> + +</div> + diff --git a/Mobile.WYSIWYG/Views/Quiz/SpiritAnimal.cshtml b/Mobile.WYSIWYG/Views/Quiz/SpiritAnimal.cshtml new file mode 100644 index 0000000..fc381ba --- /dev/null +++ b/Mobile.WYSIWYG/Views/Quiz/SpiritAnimal.cshtml @@ -0,0 +1,332 @@ +@{ + ViewBag.Title = "Index"; +} + +<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> +<script> + + function showAd(keyword) { + document.getElementById('adspace').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + function showFinalAd(keyword) { + document.getElementById('final').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + function showFinalAd2(keyword) { + document.getElementById('final2').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + + + +</script> +<script> + $(document).ready( + function() { + $("#q1").click(function() { + $("#q1").hide(); + $("#q2").show(); + }); + + + $("#q2").click(function () { + $("#q2").hide(); + $("#q3").show(); + }); + + + $("#q3").click(function () { + $("#q3").hide(); + $("#q4").show(); + }); + + $("#q41").click(function () { + $("#q4").hide(); + showAd('online+culinary+schools'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#q42").click(function () { + $("#q4").hide(); + showAd('online+nurses'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#q43").click(function () { + $("#q4").hide(); + showAd('master+degree+in+teaching'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#q44").click(function () { + $("#q4").hide(); + showAd('mba'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#q45").click(function () { + $("#q4").hide(); + showAd('degree+in+web+design'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#next1").click(function () { + $("#adspace").hide(); + $("#next1").hide(); + $("#q5").show(); + }); + + + $("#q5").click(function () { + $("#q5").hide(); + $("#q6").show(); + }); + + $("#q6").click(function () { + $("#q6").hide(); + $("#q7").show(); + }); + + + $("#q7").click(function () { + $("#q7").hide(); + $("#q8").show(); + }); + + + $("#q81").click(function () { + $("#q8").hide(); + $("#final1").show(); + }); + + $("#q82").click(function () { + $("#q8").hide(); + + $("#final2").show(); + }); + + + $("#q83").click(function () { + $("#q8").hide(); + + $("#final3").show(); + }); + + + $("#q84").click(function () { + $("#q8").hide(); + + $("#final4").show(); + }); + + + + + + + + + + $("#q16n").click(function () { + $("#q16").hide(); + showAd('galaxy+s6+edge'); + $("#adspace").show(); + $("#next6").show(); + }); + + $("#q16y").click(function () { + $("#q16").hide(); + showAd('protective+cell+phone+covers'); + $("#adspace").show(); + $("#next6").show(); + }); + + $("#next6").click(function () { + $("#adspace").hide(); + $("#next6").hide(); + $("#q17").show(); + }); + + + + $("#q17").click(function () { + $("#q17").hide(); + $("#q18").show(); + }); + + $("#q18").click(function () { + $("#q18").hide(); + $("#q19").show(); + }); + + $("#q19y").click(function () { + $("#q19").hide(); + $("#finaly").show(); + }); + + $("#q19n").click(function () { + $("#q19").hide(); + $("#finaln").show(); + }); + + + + + + + + + + + }); +</script> + + +<div style="width: 100%; margin: 0 auto;"> + + <div text align="center"> + <div id="q1"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px"> + How do you comfort a friend? + </div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Funny story</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Nurture them</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Just be there</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Send a card</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Nothing</div> + <div style="clear: both"></div> + </div> + + <div id="q2" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Favorite sport?</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Baseball</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Basketball</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Football</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Soccer</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">None of above</div> + <div style="clear: both"></div> + </div> + + <div id="q3" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Favorite subject in School?</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Math</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">English</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Art</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Phys Ed</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">None of above</div> + <div style="clear: both"></div> + </div> + + <div id="q4" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Greatest Interest For Study?</div> + <div id="q41" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Culinary School</div> + <div id="q42" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Nursing School</div> + <div id="q43" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Teaching Degree</div> + <div id="q44" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">MBA</div> + <div id="q45" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Web Design</div> + <div style="clear: both"></div> + </div> + + <div id="q5" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">At a party, which room do you choose?</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Kitchen</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Living Room</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Porch</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Wherever food is</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">None of above</div> + + </div> + + + + <div id="q6" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do You Have A Mate In Life?</div> + <div id="q6y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q6n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q7" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">How often do you visit family</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">1x week</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">1x month</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">< 1x month</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;"><1x year</div> + + + </div> + + <div id="q8" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do You Consider Yourself?</div> + <div id="q81" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Strategic</div> + <div id="q82" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Analytic</div> + <div id="q83" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Emotional</div> + <div id="q84" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Powerful</div> + + + </div> + + <div id="final1" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px">Your Spirit Animal:</div> + <div style="font-family: 'arial'; font-size: 30pt; padding: 10px">Bear</div> + <div style="font-family: 'arial'; font-size: 15pt; padding: 10px">Powers: Fighting ability—strength and speed—along with powers of strategic thinking </div> + + + + </div> + + <div id="final2" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px">Your Spirit Animal:</div> + <div style="font-family: 'arial'; font-size: 30pt; padding: 10px">Spider</div> + <div style="font-family: 'arial'; font-size: 15pt; padding: 10px">Powers: Artistic genius, ability to see patterns and sense trouble from a distance</div> + + + + </div> + + <div id="final3" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px">Your Spirit Animal:</div> + <div style="font-family: 'arial'; font-size: 30pt; padding: 10px">Swan</div> + <div style="font-family: 'arial'; font-size: 15pt; padding: 10px">Powers: Foretelling future through dreams, dream-walking</div> + + + + </div> + + <div id="final4" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px">Your Spirit Animal:</div> + <div style="font-family: 'arial'; font-size: 30pt; padding: 10px">Fox</div> + <div style="font-family: 'arial'; font-size: 15pt; padding: 10px">Powers: Stealth, night vision, ability to read and manipulate others' emotions</div> + + + + </div> + + + + + + + + <div id="adspace" style="display: none"> + </div> + + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next5">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next6">Next ></div> + + </div> + +</div> diff --git a/Mobile.WYSIWYG/Views/Quiz/SpiritAnimal2.cshtml b/Mobile.WYSIWYG/Views/Quiz/SpiritAnimal2.cshtml new file mode 100644 index 0000000..6611775 --- /dev/null +++ b/Mobile.WYSIWYG/Views/Quiz/SpiritAnimal2.cshtml @@ -0,0 +1,344 @@ +@{ + ViewBag.Title = "Index"; +} + +<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> +<script> + + function showAd(keyword) { + //document.getElementById('adspace').innerHTML = "<iframe id ='theiframe' src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400' ></iframe>"; + + document.getElementById('adspace').innerHTML = "<iframe id ='theiframe' src='/Quiz/Test' frameborder='0' width='100%' height='400' ></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + function showFinalAd(keyword) { + document.getElementById('final').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + function showFinalAd2(keyword) { + document.getElementById('final2').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + + + +</script> +<script> + $(document).ready( + function() { + $("#q1").click(function() { + $("#q1").hide(); + $("#q2").show(); + }); + + + $("#q2").click(function () { + $("#q2").hide(); + $("#q3").show(); + }); + + + $("#q3").click(function () { + $("#q3").hide(); + $("#q4").show(); + + }); + + $("#q41").click(function () { + $("#q4").hide(); + showAd('online+culinary+schools'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#q42").click(function () { + $("#q4").hide(); + showAd('online+nurses'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#q43").click(function () { + $("#q4").hide(); + showAd('master+degree+in+teaching'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#q44").click(function () { + $("#q4").hide(); + showAd('mba'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#q45").click(function () { + $("#q4").hide(); + showAd('degree+in+web+design'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#next1").click(function () { + $("#adspace").hide(); + $("#next1").hide(); + $("#q5").show(); + }); + + + $("#q5").click(function () { + $("#q5").hide(); + $("#q6").show(); + }); + + $("#q6").click(function () { + $("#q6").hide(); + $("#q7").show(); + }); + + + $("#q7").click(function () { + $("#q7").hide(); + $("#q8").show(); + }); + + + $("#q81").click(function () { + $("#q8").hide(); + $("#final1").show(); + }); + + $("#q82").click(function () { + $("#q8").hide(); + + $("#final2").show(); + }); + + + $("#q83").click(function () { + $("#q8").hide(); + + $("#final3").show(); + }); + + + $("#q84").click(function () { + $("#q8").hide(); + + $("#final4").show(); + }); + + + + + + + + + + $("#q16n").click(function () { + $("#q16").hide(); + showAd('galaxy+s6+edge'); + $("#adspace").show(); + $("#next6").show(); + }); + + $("#q16y").click(function () { + $("#q16").hide(); + showAd('protective+cell+phone+covers'); + $("#adspace").show(); + $("#next6").show(); + }); + + $("#next6").click(function () { + $("#adspace").hide(); + $("#next6").hide(); + $("#q17").show(); + }); + + + + $("#q17").click(function () { + $("#q17").hide(); + $("#q18").show(); + }); + + $("#q18").click(function () { + $("#q18").hide(); + $("#q19").show(); + }); + + $("#q19y").click(function () { + $("#q19").hide(); + $("#finaly").show(); + }); + + $("#q19n").click(function () { + $("#q19").hide(); + $("#finaln").show(); + }); + + + + + + + + + + + + + }); + function goNext(question) { + alert(question); + } +</script> +<style> +.container{position:relative;} +.overlay{top:0;left:0;width:90%;height:100%;position:absolute;} +</style> + +<div style="width: 100%; margin: 0 auto;"> + + <div text align="center"> + <div id="q1"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px"> + How do you comfort a friend? + </div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Funny story</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Nurture them</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Just be there</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Send a card</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Nothing</div> + <div style="clear: both"></div> + </div> + + <div id="q2" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Favorite sport?</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Baseball</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Basketball</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Football</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Soccer</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">None of above</div> + <div style="clear: both"></div> + </div> + + <div id="q3" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Favorite subject in School?</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Math</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">English</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Art</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Phys Ed</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">None of above</div> + <div style="clear: both"></div> + </div> + + <div id="q4" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Greatest Interest For Study?</div> + <div id="q41" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Culinary School</div> + <div id="q42" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Nursing School</div> + <div id="q43" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Teaching Degree</div> + <div id="q44" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">MBA</div> + <div id="q45" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Web Design</div> + <div style="clear: both"></div> + </div> + + <div id="q5" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">At a party, which room do you choose?</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Kitchen</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Living Room</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Porch</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Wherever food is</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">None of above</div> + + </div> + + + + <div id="q6" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do You Have A Mate In Life?</div> + <div id="q6y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q6n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q7" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">How often do you visit family</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">1x week</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">1x month</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">< 1x month</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;"><1x year</div> + + + </div> + + <div id="q8" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do You Consider Yourself?</div> + <div id="q81" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Strategic</div> + <div id="q82" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Analytic</div> + <div id="q83" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Emotional</div> + <div id="q84" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Powerful</div> + + + </div> + + <div id="final1" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px">Your Spirit Animal:</div> + <div style="font-family: 'arial'; font-size: 30pt; padding: 10px">Bear</div> + <div style="font-family: 'arial'; font-size: 15pt; padding: 10px">Powers: Fighting ability—strength and speed—along with powers of strategic thinking </div> + + + + </div> + + <div id="final2" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px">Your Spirit Animal:</div> + <div style="font-family: 'arial'; font-size: 30pt; padding: 10px">Spider</div> + <div style="font-family: 'arial'; font-size: 15pt; padding: 10px">Powers: Artistic genius, ability to see patterns and sense trouble from a distance</div> + + + + </div> + + <div id="final3" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px">Your Spirit Animal:</div> + <div style="font-family: 'arial'; font-size: 30pt; padding: 10px">Swan</div> + <div style="font-family: 'arial'; font-size: 15pt; padding: 10px">Powers: Foretelling future through dreams, dream-walking</div> + + + + </div> + + <div id="final4" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px">Your Spirit Animal:</div> + <div style="font-family: 'arial'; font-size: 30pt; padding: 10px">Fox</div> + <div style="font-family: 'arial'; font-size: 15pt; padding: 10px">Powers: Stealth, night vision, ability to read and manipulate others' emotions</div> + + + + </div> + + + + + + + <div id="adspace" style="display: none"> + </div> + + + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next5">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next6">Next ></div> + + </div> + +</div> + diff --git a/Mobile.WYSIWYG/Views/Quiz/SpiritAnimalContent.cshtml b/Mobile.WYSIWYG/Views/Quiz/SpiritAnimalContent.cshtml new file mode 100644 index 0000000..526e6c8 --- /dev/null +++ b/Mobile.WYSIWYG/Views/Quiz/SpiritAnimalContent.cshtml @@ -0,0 +1,331 @@ + + +<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> +<script> + + function showAd(keyword) { + document.getElementById('adspace').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=content-spiritanimal&typeTagSuffix=content-spiritanimal&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='1000'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + function showFinalAd(keyword) { + document.getElementById('final').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=content-spiritanimal&typeTagSuffix=content-spiritanimal&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='1000'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + function showFinalAd2(keyword) { + document.getElementById('final2').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=content-spiritanimal&typeTagSuffix=content-spiritanimal&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='1000'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + + + +</script> +<script> + $(document).ready( + function() { + $("#q1").click(function() { + $("#q1").hide(); + $("#q2").show(); + }); + + + $("#q2").click(function () { + $("#q2").hide(); + $("#q3").show(); + }); + + + $("#q3").click(function () { + $("#q3").hide(); + $("#q4").show(); + }); + + $("#q41").click(function () { + $("#q4").hide(); + showAd('online+culinary+schools'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#q42").click(function () { + $("#q4").hide(); + showAd('nursing+programs+online'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#q43").click(function () { + $("#q4").hide(); + showAd('master+degree+in+teaching'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#q44").click(function () { + $("#q4").hide(); + showAd('mba+entreprenuership'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#q45").click(function () { + $("#q4").hide(); + showAd('degree+in+web+design'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#next1").click(function () { + $("#adspace").hide(); + $("#next1").hide(); + $("#q5").show(); + }); + + + $("#q5").click(function () { + $("#q5").hide(); + $("#q6").show(); + }); + + $("#q6").click(function () { + $("#q6").hide(); + $("#q7").show(); + }); + + + $("#q7").click(function () { + $("#q7").hide(); + $("#q8").show(); + }); + + + $("#q81").click(function () { + $("#q8").hide(); + $("#final1").show(); + }); + + $("#q82").click(function () { + $("#q8").hide(); + + $("#final2").show(); + }); + + + $("#q83").click(function () { + $("#q8").hide(); + + $("#final3").show(); + }); + + + $("#q84").click(function () { + $("#q8").hide(); + + $("#final4").show(); + }); + + + + + + + + + + $("#q16n").click(function () { + $("#q16").hide(); + showAd('galaxy+s6+edge'); + $("#adspace").show(); + $("#next6").show(); + }); + + $("#q16y").click(function () { + $("#q16").hide(); + showAd('protective+cell+phone+covers'); + $("#adspace").show(); + $("#next6").show(); + }); + + $("#next6").click(function () { + $("#adspace").hide(); + $("#next6").hide(); + $("#q17").show(); + }); + + + + $("#q17").click(function () { + $("#q17").hide(); + $("#q18").show(); + }); + + $("#q18").click(function () { + $("#q18").hide(); + $("#q19").show(); + }); + + $("#q19y").click(function () { + $("#q19").hide(); + $("#finaly").show(); + }); + + $("#q19n").click(function () { + $("#q19").hide(); + $("#finaln").show(); + }); + + + + + + + + + + + }); +</script> + + +<div style="width: 100%; margin: 0 auto;"> + + <div text align="center"> + <div id="q1"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px"> + How do you comfort a friend? + </div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Funny story</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Nurture them</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Just be there</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Send a card</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Nothing</div> + <div style="clear: both"></div> + </div> + + <div id="q2" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Favorite sport?</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Baseball</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Basketball</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Football</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Soccer</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">None of above</div> + <div style="clear: both"></div> + </div> + + <div id="q3" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Favorite subject in School?</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Math</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">English</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Art</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Phys Ed</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">None of above</div> + <div style="clear: both"></div> + </div> + + <div id="q4" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Greatest Interest For Study?</div> + <div id="q41" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Culinary School</div> + <div id="q42" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Nursing School</div> + <div id="q43" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Teaching Degree</div> + <div id="q44" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">MBA</div> + <div id="q45" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Web Design</div> + <div style="clear: both"></div> + </div> + + <div id="q5" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">At a party, which room do you choose?</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Kitchen</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Living Room</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Porch</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Wherever food is</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">None of above</div> + + </div> + + + + <div id="q6" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do You Have A Mate In Life?</div> + <div id="q6y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q6n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q7" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">How often do you visit family</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">1x week</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">1x month</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">< 1x month</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;"><1x year</div> + + + </div> + + <div id="q8" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do You Consider Yourself?</div> + <div id="q81" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Strategic</div> + <div id="q82" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Analytic</div> + <div id="q83" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Emotional</div> + <div id="q84" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Powerful</div> + + + </div> + + <div id="final1" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px">Your Spirit Animal:</div> + <div style="font-family: 'arial'; font-size: 30pt; padding: 10px">Bear</div> + <div style="font-family: 'arial'; font-size: 15pt; padding: 10px">Powers: Fighting ability—strength and speed—along with powers of strategic thinking </div> + + + + </div> + + <div id="final2" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px">Your Spirit Animal:</div> + <div style="font-family: 'arial'; font-size: 30pt; padding: 10px">Spider</div> + <div style="font-family: 'arial'; font-size: 15pt; padding: 10px">Powers: Artistic genius, ability to see patterns and sense trouble from a distance</div> + + + + </div> + + <div id="final3" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px">Your Spirit Animal:</div> + <div style="font-family: 'arial'; font-size: 30pt; padding: 10px">Swan</div> + <div style="font-family: 'arial'; font-size: 15pt; padding: 10px">Powers: Foretelling future through dreams, dream-walking</div> + + + + </div> + + <div id="final4" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px">Your Spirit Animal:</div> + <div style="font-family: 'arial'; font-size: 30pt; padding: 10px">Fox</div> + <div style="font-family: 'arial'; font-size: 15pt; padding: 10px">Powers: Stealth, night vision, ability to read and manipulate others' emotions</div> + + + + </div> + + + + + + + + <div id="adspace" style="display: none"> + </div> + + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next5">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next6">Next ></div> + + </div> + +</div> + diff --git a/Mobile.WYSIWYG/Views/Quiz/SpiritAnimalExpanded.cshtml b/Mobile.WYSIWYG/Views/Quiz/SpiritAnimalExpanded.cshtml new file mode 100644 index 0000000..6c60747 --- /dev/null +++ b/Mobile.WYSIWYG/Views/Quiz/SpiritAnimalExpanded.cshtml @@ -0,0 +1,337 @@ +@{ + ViewBag.Title = "Index"; +} + +<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> +<script> + + function showAd(keyword) { + document.getElementById('adspace').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quizexpanded&keyword=" + keyword + "&c=4&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='1000'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + function showFinalAd(keyword) { + document.getElementById('final').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quizexpanded&keyword=" + keyword + "&c=4&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='1000'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + function showFinalAd2(keyword) { + document.getElementById('final2').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quizexpanded&keyword=" + keyword + "&c=4&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='1000'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + + + +</script> +<script> + $(document).ready( + function() { + $("#q1").click(function() { + $("#q1").hide(); + $("#q2").show(); + }); + + + $("#q2").click(function () { + $("#q2").hide(); + $("#q3").show(); + }); + + + $("#q3").click(function () { + $("#q3").hide(); + $("#q4").show(); + }); + + $("#q41").click(function () { + $("#q4").hide(); + showAd('online+culinary+schools'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#q42").click(function () { + $("#q4").hide(); + showAd('online+nurses'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#q43").click(function () { + $("#q4").hide(); + showAd('master+degree+in+teaching'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#q44").click(function () { + $("#q4").hide(); + showAd('mba'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#q45").click(function () { + $("#q4").hide(); + showAd('degree+in+web+design'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#next1").click(function () { + $("#adspace").hide(); + $("#next1").hide(); + $("#q5").show(); + }); + + + $("#q5").click(function () { + $("#q5").hide(); + $("#q6").show(); + }); + + $("#q6").click(function () { + $("#q6").hide(); + $("#q7").show(); + }); + + + $("#q7").click(function () { + $("#q7").hide(); + $("#q8").show(); + }); + + + $("#q81").click(function () { + $("#q8").hide(); + $("#final1").show(); + }); + + $("#q82").click(function () { + $("#q8").hide(); + + $("#final2").show(); + }); + + + $("#q83").click(function () { + $("#q8").hide(); + + $("#final3").show(); + }); + + + $("#q84").click(function () { + $("#q8").hide(); + + $("#final4").show(); + }); + + + + + + + + + + $("#q16n").click(function () { + $("#q16").hide(); + showAd('galaxy+s6+edge'); + $("#adspace").show(); + $("#next6").show(); + }); + + $("#q16y").click(function () { + $("#q16").hide(); + showAd('protective+cell+phone+covers'); + $("#adspace").show(); + $("#next6").show(); + }); + + $("#next6").click(function () { + $("#adspace").hide(); + $("#next6").hide(); + $("#q17").show(); + }); + + + + $("#q17").click(function () { + $("#q17").hide(); + $("#q18").show(); + }); + + $("#q18").click(function () { + $("#q18").hide(); + $("#q19").show(); + }); + + $("#q19y").click(function () { + $("#q19").hide(); + $("#finaly").show(); + }); + + $("#q19n").click(function () { + $("#q19").hide(); + $("#finaln").show(); + }); + + + + + + + + + + + }); +</script> + + +<div style="width: 100%; margin: 0 auto;"> + + <div text align="center"> + + + <div id="q1"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px"> + How do you comfort a friend? + </div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Funny story</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Nurture them</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Just be there</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Send a card</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Nothing</div> + <div style="clear: both"></div> + </div> + + <div id="q2" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Favorite sport?</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Baseball</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Basketball</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Football</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Soccer</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">None of above</div> + <div style="clear: both"></div> + </div> + + <div id="q3" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Favorite subject in School?</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Math</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">English</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Art</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Phys Ed</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">None of above</div> + <div style="clear: both"></div> + </div> + + <div id="q4" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Greatest Interest For Study?</div> + <div id="q41" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Culinary School</div> + <div id="q42" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Nursing School</div> + <div id="q43" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Teaching Degree</div> + <div id="q44" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">MBA</div> + <div id="q45" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Web Design</div> + <div style="clear: both"></div> + </div> + + <div id="q5" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">At a party, which room do you choose?</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Kitchen</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Living Room</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Porch</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Wherever food is</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">None of above</div> + + </div> + + + + <div id="q6" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do You Have A Mate In Life?</div> + <div id="q6y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q6n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q7" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">How often do you visit family</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">1x week</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">1x month</div> + <div id="" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">< 1x month</div> + <div id="" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;"><1x year</div> + + + </div> + + <div id="q8" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do You Consider Yourself?</div> + <div id="q81" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Strategic</div> + <div id="q82" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Analytic</div> + <div id="q83" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Emotional</div> + <div id="q84" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Powerful</div> + + + </div> + + <div id="final1" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px">Your Spirit Animal:</div> + <div style="font-family: 'arial'; font-size: 30pt; padding: 10px">Bear</div> + <div style="font-family: 'arial'; font-size: 15pt; padding: 10px">Powers: Fighting ability—strength and speed—along with powers of strategic thinking </div> + + + + </div> + + <div id="final2" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px">Your Spirit Animal:</div> + <div style="font-family: 'arial'; font-size: 30pt; padding: 10px">Spider</div> + <div style="font-family: 'arial'; font-size: 15pt; padding: 10px">Powers: Artistic genius, ability to see patterns and sense trouble from a distance</div> + + + + </div> + + <div id="final3" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px">Your Spirit Animal:</div> + <div style="font-family: 'arial'; font-size: 30pt; padding: 10px">Swan</div> + <div style="font-family: 'arial'; font-size: 15pt; padding: 10px">Powers: Foretelling future through dreams, dream-walking</div> + + + + </div> + + <div id="final4" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px">Your Spirit Animal:</div> + <div style="font-family: 'arial'; font-size: 30pt; padding: 10px">Fox</div> + <div style="font-family: 'arial'; font-size: 15pt; padding: 10px">Powers: Stealth, night vision, ability to read and manipulate others' emotions</div> + + + + </div> + + + + + + + + <div id="adspace" style="display: none"> + </div> + + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next5">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next6">Next ></div> + + + + </div> + +</div> + diff --git a/Mobile.WYSIWYG/Views/Quiz/Stalker.cshtml b/Mobile.WYSIWYG/Views/Quiz/Stalker.cshtml new file mode 100644 index 0000000..8a140ce --- /dev/null +++ b/Mobile.WYSIWYG/Views/Quiz/Stalker.cshtml @@ -0,0 +1,328 @@ +@{ + ViewBag.Title = "Index"; +} + +<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> +<script> + + function showAd(keyword) { + document.getElementById('adspace').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + function showFinalAd(keyword) { + document.getElementById('final').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + + + +</script> +<script> + $(document).ready( + function() { + $("#q1").click(function() { + $("#q1").hide(); + $("#q2").show(); + }); + + $("#q2n").click(function () { + $("#q2").hide(); + $("#q3").show(); + }); + + $("#q2y").click(function () { + $("#q2").hide(); + showAd('mobile+spy'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#next1").click(function () { + $("#adspace").hide(); + $("#next1").hide(); + $("#q3").show(); + }); + + $("#q3").click(function () { + $("#q3").hide(); + $("#q4").show(); + }); + + $("#q4").click(function () { + $("#q4").hide(); + $("#q5").show(); + }); + + + $("#q5n").click(function () { + $("#q5").hide(); + $("#q6").show(); + }); + + $("#q5y").click(function () { + $("#q5").hide(); + showAd('cat+food+coupons'); + $("#adspace").show(); + $("#next2").show(); + }); + + $("#next2").click(function () { + $("#adspace").hide(); + $("#next2").hide(); + $("#q6").show(); + }); + + + + $("#q6").click(function () { + $("#q6").hide(); + $("#q7").show(); + }); + + + + + + $("#q7y").click(function () { + $("#q7").hide(); + showAd('tattoo+remover'); + $("#adspace").show(); + $("#next3").show(); + }); + + $("#next3").click(function () { + $("#adspace").hide(); + $("#next3").hide(); + $("#q8").show(); + }); + + $("#q7n").click(function () { + $("#q7").hide(); + $("#q8").show(); + }); + + + $("#q8").click(function () { + $("#q8").hide(); + $("#q9").show(); + }); + + + $("#q9").click(function () { + $("#q9").hide(); + showFinalAd('reverse+phone+number'); + $("#finaly").show(); + }); + + + $("#q10").click(function () { + $("#q10").hide(); + $("#q11").show(); + }); + + $("#q11y").click(function () { + $("#q11").hide(); + showAd('wavy+hair'); + $("#adspace").show(); + $("#next4").show(); + }); + + $("#next4").click(function () { + $("#adspace").hide(); + $("#next4").hide(); + $("#q12").show(); + }); + + $("#q11n").click(function () { + $("#q11").hide(); + $("#q12").show(); + }); + + + $("#q12").click(function () { + $("#q12").hide(); + $("#q13").show(); + }); + + $("#q13").click(function () { + $("#q13").hide(); + $("#q14").show(); + }); + + $("#q14n").click(function () { + $("#q14").hide(); + showAd('car+dealers'); + $("#adspace").show(); + $("#next5").show(); + }); + + $("#next5").click(function () { + $("#adspace").hide(); + $("#next5").hide(); + $("#q15").show(); + }); + + $("#q14y").click(function () { + $("#q14").hide(); + $("#q15").show(); + }); + + $("#q15").click(function () { + $("#q15").hide(); + $("#q16").show(); + }); + + + + $("#q16n").click(function () { + $("#q16").hide(); + showAd('galaxy+s6+edge'); + $("#adspace").show(); + $("#next6").show(); + }); + + $("#q16y").click(function () { + $("#q16").hide(); + showAd('protective+cell+phone+covers'); + $("#adspace").show(); + $("#next6").show(); + }); + + $("#next6").click(function () { + $("#adspace").hide(); + $("#next6").hide(); + $("#q17").show(); + }); + + + + $("#q17").click(function () { + $("#q17").hide(); + $("#q18").show(); + }); + + $("#q18").click(function () { + $("#q18").hide(); + $("#q19").show(); + }); + + $("#q19y").click(function () { + $("#q19").hide(); + $("#finaly").show(); + }); + + $("#q19n").click(function () { + $("#q19").hide(); + $("#finaln").show(); + }); + + + + + + + + + + + }); +</script> + + +<div style="width: 100%; margin: 0 auto;"> + + <div text align="center"> + <div id="q1"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Have you searched someones info online yet?</div> + <div id="q1y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q1n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q2" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you want to search someones past/ current info?</div> + <div id="q2y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q2n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q3" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you say hi to attractive strangers?</div> + <div id="q3y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q3n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q4" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Do you keep pursuing someone after a breakup?</div> + <div id="q4y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q4n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q5" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Have too many cats?</div> + <div id="q5y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q5n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + + </div> + + + + <div id="q6" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Have a tattoo of a previous lover?</div> + <div id="q6y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q6n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q7" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Want it removed?</div> + <div id="q7y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q7n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q8" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Feel like your actions are compulsive?</div> + <div id="q8y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q8n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q9" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Can't get someone out of your mind, when you aren't in theirs?</div> + <div id="q9y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">YES</div> + <div id="q9n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + + + <div id="finaly" style="display: none"> + <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;">Borderline obsessing. Try taking your mind off of them while you working on improving yourself. You could give into temptation, but resist the urge...</div> + <div id="final"></div> + <div style="clear: both"></div> + </div> + + + + + + + <div id="adspace" style="display: none"> + </div> + + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next5">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next6">Next ></div> + + </div> + +</div> + diff --git a/Mobile.WYSIWYG/Views/Quiz/Test.cshtml b/Mobile.WYSIWYG/Views/Quiz/Test.cshtml new file mode 100644 index 0000000..32f9d4d --- /dev/null +++ b/Mobile.WYSIWYG/Views/Quiz/Test.cshtml @@ -0,0 +1 @@ +<a href="http://www.google.com" target="_new" style="font:50pt arial">CLICK ME</a> \ No newline at end of file diff --git a/Mobile.WYSIWYG/Views/Quiz/Vacation.cshtml b/Mobile.WYSIWYG/Views/Quiz/Vacation.cshtml new file mode 100644 index 0000000..39ff752 --- /dev/null +++ b/Mobile.WYSIWYG/Views/Quiz/Vacation.cshtml @@ -0,0 +1,363 @@ +@{ + ViewBag.Title = "Index"; +} + +<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> +<script> + + function showAd(keyword) { + document.getElementById('adspace').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + function showFinalAd1(keyword) { + document.getElementById('finalad1').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + function showFinalAd2(keyword) { + document.getElementById('finalad2').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + function showFinalAd3(keyword) { + document.getElementById('finalad3').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + function showFinalAd4(keyword) { + document.getElementById('finalad4').innerHTML = "<iframe src='http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=" + keyword + "&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper' frameborder='0' width='100%' height='400'></iframe>"; + //window.location = 'http://mobsearch.adk-mobile.com/search/template?templateKey=quiz&keyword=cell+phone+spy&c=1&subid=quiz-test&clickWrapper=@ViewBag.clickWrapper'; + } + + + + +</script> +<script> + $(document).ready( + function() { + $("#q1").click(function() { + $("#q1").hide(); + $("#q2").show(); + }); + + + $("#q2y").click(function () { + $("#q2").hide(); + showAd('all+inclusive+family+vacation'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#q2n").click(function () { + $("#q2").hide(); + showAd('adult+only+all+inclusive+resort'); + $("#adspace").show(); + $("#next1").show(); + }); + + $("#next1").click(function () { + $("#adspace").hide(); + $("#next1").hide(); + $("#q3").show(); + }); + + + $("#q3").click(function () { + $("#q3").hide(); + $("#q4").show(); + }); + + + $("#q4").click(function () { + $("#q4").hide(); + $("#q5").show(); + }); + + $("#q51").click(function () { + $("#q5").hide(); + showFinalAd1('discounted+first+class+airfare'); + $("#final1").show(); + }); + + $("#q52").click(function () { + $("#q5").hide(); + showFinalAd2('hawaii+cruise+vacations'); + $("#final2").show(); + }); + + $("#q53").click(function () { + $("#q5").hide(); + showFinalAd3('bahamas+travel'); + $("#final3").show(); + }); + + $("#q54").click(function () { + $("#q5").hide(); + showFinalAd4('cruise+in+the+mediterranean'); + $("#final4").show(); + }); + + + $("#next2").click(function () { + $("#adspace").hide(); + $("#next2").hide(); + $("#q6").show(); + }); + + + + $("#q6").click(function () { + $("#q6").hide(); + $("#q7").show(); + }); + + $("#q7").click(function () { + $("#q7").hide(); + $("#q8").show(); + }); + + + $("#q8y").click(function () { + $("#q8").hide(); + showAd('attention+deficit+disorder'); + $("#adspace").show(); + $("#next3").show(); + }); + + $("#q8n").click(function () { + $("#q8").hide(); + $("#q9").show(); + }); + + $("#next3").click(function () { + $("#adspace").hide(); + $("#next3").hide(); + $("#q9").show(); + }); + + + $("#q9y").click(function () { + $("#q9").hide(); + showFinalAd('brain+games'); + $("#finaly").show(); + }); + + $("#q9n").click(function () { + $("#q9").hide(); + showFinalAd2('custom+closet+organization'); + $("#finaln").show(); + }); + + + $("#q13").click(function () { + $("#q13").hide(); + $("#q14").show(); + }); + + $("#q14n").click(function () { + $("#q14").hide(); + showAd('car+dealers'); + $("#adspace").show(); + $("#next5").show(); + }); + + $("#next5").click(function () { + $("#adspace").hide(); + $("#next5").hide(); + $("#q15").show(); + }); + + $("#q14y").click(function () { + $("#q14").hide(); + $("#q15").show(); + }); + + $("#q15").click(function () { + $("#q15").hide(); + $("#q16").show(); + }); + + + + $("#q16n").click(function () { + $("#q16").hide(); + showAd('galaxy+s6+edge'); + $("#adspace").show(); + $("#next6").show(); + }); + + $("#q16y").click(function () { + $("#q16").hide(); + showAd('protective+cell+phone+covers'); + $("#adspace").show(); + $("#next6").show(); + }); + + $("#next6").click(function () { + $("#adspace").hide(); + $("#next6").hide(); + $("#q17").show(); + }); + + + + $("#q17").click(function () { + $("#q17").hide(); + $("#q18").show(); + }); + + $("#q18").click(function () { + $("#q18").hide(); + $("#q19").show(); + }); + + $("#q19y").click(function () { + $("#q19").hide(); + $("#finaly").show(); + }); + + $("#q19n").click(function () { + $("#q19").hide(); + $("#finaln").show(); + }); + + + + + + + + + + + }); +</script> + + +<div style="width: 100%; margin: 0 auto;"> + + <div text align="center"> + <div id="q1"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">How important is budget when planning vacations?</div> + <div id="q1y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 15pt; width: 75%;">Huge concern - on a tight budget.</div> + <div id="q1n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 15pt; width: 75%; ">It's important, but I plan for it.</div> + <div id="q1n" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 15pt; width: 75%; ">Money is no object.</div> + <div style="clear: both"></div> + </div> + + <div id="q2" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Who will be going with you?</div> + <div id="q2y" style="background-color: #74c680; padding: 11px; color: white; font-family: 'arial'; font-size: 15pt; width: 75%;">Kids and Adults</div> + <div id="q2n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 15pt; width: 75%;">Adults only.</div> + <div style="clear: both"></div> + </div> + + <div id="q3" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">I think the primary purpose of vacation is</div> + <div id="q3y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Having New Experiences</div> + <div id="q3n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">Relaxation</div> + <div style="clear: both"></div> + </div> + + <div id="q4" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">When are planning to take your next vacation?</div> + <div id="q4y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 15pt; width: 75%; ">Soon! - Within a Few Months</div> + <div id="q4n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 15pt; width: 75%; ">Within 6-12 Months</div> + <div id="q4n" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 15pt; width: 75%; ">Over a Year</div> + <div style="clear: both"></div> + </div> + + <div id="q5" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Which word best describes you?</div> + <div id="q51" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">Worldly</div> + <div id="q52" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">Cerebral</div> + <div id="q53" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">Chill</div> + <div id="q54" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">Adventurous</div> + + </div> + + + + <div id="q6" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Have you ever needed someone to call your phone so you could find it?</div> + <div id="q6y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q6n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q7" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Anyone ever accused you of having ADD?</div> + <div id="q7y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q7n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q8" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Ever lost your shoes in your home?</div> + <div id="q8y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q8n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%; ">NO</div> + <div style="clear: both"></div> + </div> + + <div id="q9" style="display: none"> + <div style="font-family: 'arial'; font-size: 25pt; padding: 10px; height: 200px">Ever been late paying a bill because you forgot or misplaced it?</div> + <div id="q9y" style="background-color: #74c680; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">YES</div> + <div id="q9n" style="background-color: #da6767; padding: 10px; color: white; font-family: 'arial'; font-size: 20pt; width: 75%;">NO</div> + <div style="clear: both"></div> + </div> + + + + <div id="final1" style="display: none"> + <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;"> + Your ideal vacation spot is overseas or big cities. You enjoy experiencing other cultures and trying new foods and learning traditions of other people. You will especially enjoy meeting new people and experiencing native rituals and local hot spots. Look for festivals around the world to enjoy the celebrations of individual cultures, and take in local shopping and landmarks. Make your bucket list of places you want to visit and start filling up that passport with stamps. + </div> + <div id="finalad1"></div> + <div style="clear: both"></div> + </div> + + <div id="final2" style="display: none"> + <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;"> + Your ideal vacation spot is historical and educational. You are fulfilled by enriching your mind and honoring the accomplishments of others. Visit museums, historical destinations, and monuments. You will also enjoy science exhibits and animal habitats. Make a destination bucket list for yourself and start checking off your brain enriching destinations as you visit. You will feel accomplished and enriched as you journey about the world. Consider a cruise to visit many different spots on your next trip. + </div> + <div id="finalad2"></div> + <div style="clear: both"></div> + </div> + + <div id="final3" style="display: none"> + <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;"> + You ideal vacation spot is connecting with nature. You are enriched by connecting with the earth and enjoying the outdoors. Visit island resorts, take a cruise, or go on a camping trip. You would also enjoy float trips, spas, or mountain ski resorts. You want a vacation to be a renewal of your spirit and want the experience to nourish your body and soul. Find destinations where you can hide out from the world and renew yourself. + </div> + <div id="finalad3"></div> + <div style="clear: both"></div> + </div> + + <div id="final4" style="display: none"> + <div style="font-family: 'arial'; font-size: 12pt; padding: 5px;"> + Your ideal vacation spot is is a thrilling adventure trip. You thrive on trying new experiences and get a rush from thrill seeking. Visit theme parks, take outdoor adventure excursions, and visit exotic cultures. You will especially enjoy physical activities like hiking, safaris, ziplining, and thrill rides. You want a vacation to be a rush of excitement to get your heart racing. Start your bucket list now! + </div> + <div id="finalad4"></div> + <div style="clear: both"></div> + </div> + + + + + + + + <div id="adspace" style="display: none"> + </div> + + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next1">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next2">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next3">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next4">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next5">Next ></div> + <div style="text-align: right; margin-top: 20px; color: #000000; display: none;" id="next6">Next ></div> + + </div> + +</div> diff --git a/Mobile.WYSIWYG/Views/Search/Adstation.cshtml b/Mobile.WYSIWYG/Views/Search/Adstation.cshtml new file mode 100644 index 0000000..56744d8 --- /dev/null +++ b/Mobile.WYSIWYG/Views/Search/Adstation.cshtml @@ -0,0 +1,65 @@ +@using Mobile.Search.Web.Helpers +@using Mobile.Search.Web.Models +@model Mobile.Search.Web.Models.AdStation + +@{ + ViewBag.Title = "GuideQ"; + Layout = "~/Views/Search/_GuideQLayout.cshtml"; + +} + +<div style="height:0px !important;font-size: 0 !important;line-height: 0 !important;color:white;background-color:black"> + <a href="@Url.Action("bclick", "Search", new {keyword=Model.Keyword,referrer=Url.Encode((Request.UrlReferrer != null ? Request.UrlReferrer.ToString() : string.Empty)),ip=Model.Ip})">Click for results</a> +</div> +<div id="framecontainer"></div> +@*<iframe onload="Orient(this)" id="frame" src="@Model.Url" frameborder="0" height="100%" width="100%" style="margin:-.4em;" scrolling="no"></iframe>*@ +<noscript> + <div> + <a href="@Url.Action("nscriptclick", "Search", new {keyword=Model.Keyword,referrer=Url.Encode((Request.UrlReferrer != null ? Request.UrlReferrer.ToString() : string.Empty)),ip=Model.Ip})">Click for results</a> + </div> + + +</noscript> + + +<script type="text/javascript" language="javascript"> + + var maxheight = window.innerHeight; + var maxwidth = window.innerWidth; + + + function Orient(obj) { + + var maxheight = window.innerHeight; + var maxwidth = window.innerWidth; + + obj.height = maxheight; + //obj.width = maxwidth; + obj.width = '100%'; + + } + function search() { + var url = '/search/frame?q=' + $('#q').val() + '&layout=' + $('#template').val(); + document.getElementById('frame').src = url; + return false; + } + + var frame = document.createElement('iframe'); + frame.src = '@Html.Raw(Model.Url.ToString().Replace("'","\'"))'; + frame.onload = 'Orient(this)'; + frame.id = "frame"; + frame.frameBorder = "0"; + frame.width = '100%'; + frame.height = maxheight; + frame.scrolling = 'no'; + + var framecontainer = document.getElementById('framecontainer'); + + if (framecontainer != null) { + framecontainer.appendChild(frame); + } else { + + document.body.appendChild(frame); + } + +</script> diff --git a/Mobile.WYSIWYG/Views/Search/CSearch.cshtml b/Mobile.WYSIWYG/Views/Search/CSearch.cshtml new file mode 100644 index 0000000..e5d702b --- /dev/null +++ b/Mobile.WYSIWYG/Views/Search/CSearch.cshtml @@ -0,0 +1,27 @@ +@model Mobile.Search.Web.Models.FormSubmitModel + +@{ + Layout = null; +} + +<!DOCTYPE html> + +<html> + <head> + <title>Search</title> + <meta http-equiv="cache-control" content="max-age=0" /> + <meta http-equiv="cache-control" content="no-cache" /> + <meta http-equiv="expires" content="0" /> + <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" /> + <meta http-equiv="pragma" content="no-cache" /> + <script> + @if (Request.Headers["HTTP_REFERER"] == null) + { + @Html.Raw("window.location.href = '" + Model.U + "';") + } + </script> + </head> + <body> + @Html.Raw(Request.Headers["HTTP_REFERER"]) + </body> +</html> \ No newline at end of file diff --git a/Mobile.Search.Web/Views/Search/DeleteMe.cshtml b/Mobile.WYSIWYG/Views/Search/DeleteMe.cshtml similarity index 100% rename from Mobile.Search.Web/Views/Search/DeleteMe.cshtml rename to Mobile.WYSIWYG/Views/Search/DeleteMe.cshtml diff --git a/Mobile.WYSIWYG/Views/Search/FormSubmit.cshtml b/Mobile.WYSIWYG/Views/Search/FormSubmit.cshtml new file mode 100644 index 0000000..9bbc16d --- /dev/null +++ b/Mobile.WYSIWYG/Views/Search/FormSubmit.cshtml @@ -0,0 +1,5 @@ +@model Mobile.Search.Web.Models.FormSubmitModel +@{ + Layout = null; +} +<!DOCTYPE html><html><head><title></title></head><body><form name="myform" action="/search" method="GET"><input type="hidden" name="rurl" value="@Model.U" /> <button type="submit">Click Here To Proceed</button> </form><script language="javascript">document.myform.submit();</script></body></html> \ No newline at end of file diff --git a/Mobile.WYSIWYG/Views/Search/Google.cshtml b/Mobile.WYSIWYG/Views/Search/Google.cshtml new file mode 100644 index 0000000..df92220 --- /dev/null +++ b/Mobile.WYSIWYG/Views/Search/Google.cshtml @@ -0,0 +1,47 @@ +@using Mobile.Search.Web.Extensions +@model Mobile.Search.Shared.Models.SearchResult + +@{ + Layout = null; +} + +<!DOCTYPE html> + +<html> + <head> + <title>@Model.Query</title> + <meta name="viewport" content="width=device-width, initial-scale=1"> + </head> + <body> + <h4 style="font-family:Arial, sans-serif">Search Results for '@Model.Query'</h4> + <div> + @foreach (var listing in Model.Listings.Where(x => x.BiddedListing)) + { + listing.ClickUrl = Model.ClickUrlFunc(listing); + listing.Description = listing.Description.BoldQuery(Model.Query).ToString(); + @Html.Partial("_Listing", listing) + } + @if (!Model.Listings.Any(x => x.BiddedListing)) + { + <span class="alert alert-danger">No Sponsored Results Available!</span> + foreach (var listing in Model.Listings.Where(x => !x.BiddedListing)) + { + listing.ClickUrl = Model.ClickUrlFunc(listing); + @Html.Partial("_Listing", listing) + } + } + + </div> + + <script> + (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ + (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), + m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) + })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); + + ga('create', 'UA-61438112-1', 'auto'); + ga('send', 'pageview'); + + </script> + </body> +</html> \ No newline at end of file diff --git a/Mobile.WYSIWYG/Views/Search/GoogleSingle.cshtml b/Mobile.WYSIWYG/Views/Search/GoogleSingle.cshtml new file mode 100644 index 0000000..1c77da7 --- /dev/null +++ b/Mobile.WYSIWYG/Views/Search/GoogleSingle.cshtml @@ -0,0 +1,55 @@ +@model Mobile.Search.Shared.Models.SearchResult + +@{ + Layout = null; + var listing = Model.Listings.First(x => x.BiddedListing); +} + +<!DOCTYPE html> + +<html> + <head> + <title>@Model.Query</title> + </head> + <body> + <center> + <table border="0" cellpadding="0" cellspacing="0" bgcolor="#ffffff"> + <tr><td><div style="height:0; width:300; background-color:#ffffff; font-size:2px; text-align:center; color:#ffffff">{{tagline}}</div></td></tr> + <tr> + <td> + <table border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ffffff"> + <tr> + <td width="300" bgcolor="#ffffff" style="font-size: 16px; font-family:'Open Sans', Arial, Helvetica, sans-serif; color:#464646;" align="center" valign="middle"> + <a href="@Model.ClickUrlFunc(listing)" style="color:#464646; text-decoration:none"> + <span style="color:royalblue;line-height:1.5em; font-size:14pt"> + @WebUtility.HtmlDecode(listing.Title) + </span><br/> + <span style="line-height:1.7em; font-weight:normal"> + @WebUtility.HtmlDecode(listing.Description) + </span> + <br/> + <span style="line-height:1.7em; font-size:11px; font-weight:normal"> + @listing.SiteHost + </span> + </a> + </td> + </tr> + <tr> + <td width="300" align="center" style="padding:0px 0px 45px 0px;"> + <a href="@Model.ClickUrlFunc(listing)" style="text-decoration: none; color:#FFFFFF"> + <img src="http://image.email.horoscopedaily.email/ia?id=dc3161bf22d8a665c1a829f7278d59d6" alt=""> + </a> + </td> + </tr> + </table> + </td> + </tr> + </table> + </center> + + @if (ViewBag.FooterHtml != null) + { + @Html.Raw(ViewBag.FooterHtml) + } + </body> +</html> \ No newline at end of file diff --git a/Mobile.WYSIWYG/Views/Search/MultiListing.cshtml b/Mobile.WYSIWYG/Views/Search/MultiListing.cshtml new file mode 100644 index 0000000..6aa52a0 --- /dev/null +++ b/Mobile.WYSIWYG/Views/Search/MultiListing.cshtml @@ -0,0 +1,101 @@ +@using Mobile.Search.Shared.Models +@model Mobile.Search.Shared.Models.SearchResult + +@{ + Layout = null; + var biddedListings = Model.Listings.Where(x => x.BiddedListing).OrderBy(x => x.Rank).ToList(); + var listing1 = default(Listing); + var listing2 = default(Listing); + var listing3 = default(Listing); + var listing4 = default(Listing); + + if (biddedListings.Count > 0) + { + listing1 = biddedListings[0]; + listing1.ClickUrl = Model.ClickUrlFunc(listing1); + } + if (biddedListings.Count > 1) + { + listing2 = biddedListings[1]; + listing2.ClickUrl = Model.ClickUrlFunc(listing2); + } + if (biddedListings.Count > 2) + { + listing3 = biddedListings[2]; + listing3.ClickUrl = Model.ClickUrlFunc(listing3); + } + if (biddedListings.Count > 3) + { + listing4 = biddedListings[3]; + listing4.ClickUrl = Model.ClickUrlFunc(listing4); + } + +} + +<!DOCTYPE html> + +<html> + <head> + <title>@Model.Query</title> + </head> + <body> + <center> + <table border="0" cellpadding="0" cellspacing="0" bgcolor="#ffffff"> + <tr> + <td><div style="height:0; width:300; background-color:#ffffff; font-size:2px; text-align:center; color:#ffffff">${HOTSPOT_TEXT}$</div></td> + </tr> + <tr> + <td> + <table border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ffffff"> + <tr> + <td width="320" bgcolor="#ffffff" style="font-size: 16px; font-family:Arial, Helvetica, sans-serif; color:#464646;" align="center" valign="middle"> + <a href="@listing1.ClickUrl" style="color:#464646; text-decoration:none"> + <table style="width:320px;" bgcolor="#ffffff" cellpadding="0" cellspacing="0" border="0"> + <tbody> + <tr> + <td style="color:#0053f9; font-family: Roboto, Arial, sans-serif; line-height:40px; font-size: 32px; text-align:center; padding:3px 10px 0px 10px;">@listing1.Title</td> + </tr> + <tr> + <td style="color:#000000; font-family: Roboto, Arial, sans-serif; font-size: 22px; padding:8px 10px 0px 10px; text-align:center;">@listing1.Description</td> + </tr> + <tr> + <td style="color:#000000; font-family: Roboto, Arial, sans-serif; font-size: 11px; padding-top:8px; padding-bottom:0px; text-align:center;">@listing1.SiteHost</td> + </tr> + </tbody> + </table> + </a> + </td> + </tr> + <tr> + <td width="320" align="center"> + <a href="@listing1.ClickUrl" style="text-decoration:none; color:#FFFFFF"> + <img src="/Content/Templates/images/one_click_cta.png" style="border:none" alt=""> + </a> + </td> + </tr> + </table> + </td> + </tr> + </table> + <table border="0" align="center" cellpadding="0" cellspacing="0"> + <tr> + <td height="1px" colspan="2" bgcolor="#515151"></td> + </tr> + @Html.Partial("_SubListing", listing2) + <tr> + <td height="1px" colspan="2" bgcolor="#515151"></td> + </tr> + + @Html.Partial("_SubListing", listing3) + <tr> + <td height="1px" colspan="2" bgcolor="#515151"></td> + </tr> + @Html.Partial("_SubListing", listing4) + </table> + </center> + @if (ViewBag.FooterHtml != null) + { + @Html.Raw(ViewBag.FooterHtml) + } + </body> +</html> \ No newline at end of file diff --git a/Mobile.WYSIWYG/Views/Search/MultiTerms.cshtml b/Mobile.WYSIWYG/Views/Search/MultiTerms.cshtml new file mode 100644 index 0000000..0c13fe1 --- /dev/null +++ b/Mobile.WYSIWYG/Views/Search/MultiTerms.cshtml @@ -0,0 +1,218 @@ +@model Mobile.Search.Web.Controllers.MultiTermsViewModel +@{ + Layout = null; +} + +<!DOCTYPE html> +<html> + <head> + <title>Search</title> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <style> + /** + * base styles + **/ + html, body { + margin: 0; + padding: 0; + } + ul { + margin: 0; + padding: 0; + + } + .search-button { + list-style: none; + height: 2em; + font-size: 1.3em; + line-height: 2em; + } + ul li span { + font-family: arial, sans-serif; + font-weight:bolder; + width:100%; + } + /* hide these things */ + input[type=radio] { + position: absolute; + top: -9999px; + left: -9999px; + } + .search-results { + width: 100%; + padding-top:10px; + -webkit-box-shadow: 0px -5px 5px rgba(50, 50, 50, 0.5); + -moz-box-shadow: 0px -5px 5px rgba(50, 50, 50, 0.5); + box-shadow: 0px -5px 5px rgba(50, 50, 50, 0.5); + } + /**********************/ + + /** + * active/inactive states + **/ + .header { + background-color: #6a8bc9; + padding:10px; + } + .header span { + color: white; + font-size: 1.5em; + } + /************************/ + + /** + * button 1 (2nd li in the ul) + **/ + #listing-1 ~ ul li:nth-child(2) { + background-color: #f2f1ef; + border-bottom: solid 1px #bbb; + background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpBN0Y3NjZENkU1MTUxMUU0QUQ3MTk1MEI0NjIxREZFNSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpBN0Y3NjZEN0U1MTUxMUU0QUQ3MTk1MEI0NjIxREZFNSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkE3Rjc2NkQ0RTUxNTExRTRBRDcxOTUwQjQ2MjFERkU1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkE3Rjc2NkQ1RTUxNTExRTRBRDcxOTUwQjQ2MjFERkU1Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+We2GnwAAArRJREFUeNrcmi9IQ1EUxq/igsWgYQaDxeDCykAMGlYMFsOKRaMLE6YwQYUJOtCBggpO0KDBsrJgMVgsBhUsBovFYFnQYFlQmN+B80AU9d3z7vbOPPDxQO8d7+e59/ybbfV63fwHawsCktm66ccjAfVCb9AVdGfzGaXckBOQjgAQE3isQ7FPP36ClqGTZnukXQgRxyP7BYKsj+FyLQECm4GSP/yOYDaJtxVAJnysWfS5LhwQHKslPKI+lpJn9n7xXOge6YYiPtd6d2ZAI8gLh1q/NgxtQD2qQBD36aWuLbel+Jipu+wXwgCxpA3k0DaDwzqh1UbBiEBwvCiDL0CPllsjnEhTWjxCMOecwV8tt0bZK0kVIAxTwaMg2Jrg7J9QAcK2xeFVApNDgo1oATFc8ZYE+yYpLLuAaXd4TPehS2EBmtcEcg+loTPB3jy8ktEC4sHscoNla5tBYFyDkJ3znbHNMZ0MM64FxHCrS9GsJoCZAUxUC4jhKHYorMmymkDI5vjO2NqoNhCyI+jZck+XRpCY5MW0gVAEWrNojT170ASS4BpsQABxpAXEK9XjktCNqtq6OuhoAAQNGQ6MbKZVBkRByx3JCiFOuesUmWuPrBnZ3JfKmjS8UdUAQuX4oiBCUaFZCALh8mgl+UhJwuw8IC6DvoALkBFox3z/iuEvo2nlBg8xwk2IqFJ7uLuLCyCK0HHomR0QVHJvQ2OC7QSxoqVEoXHOlGDfmXBQ4R4E3qDph6QtPeV9VRUgXAxK+vmioAVuDAi8MSW4F1W+E1eayvhB4++rN8+euYCsaOtH3i3X77sMsy5BaGbldwJfch1mnYEgE9Nk5NbHUjpKs6ZJJo1ax+b3aeIFT1CMahB4hQZw5Z86PGjayMamYgv630E5Lhr7PmVt6tNrFn+U8EE02b8B+RBgADA1p/qLw9EIAAAAAElFTkSuQmCC') /*/Content/Images/blue-arrow.png*/; + background-size: 25px 25px; + background-repeat:no-repeat; + background-position: center left; + } + #listing-1 ~ ul li:nth-child(2) span { + color: #4d4d4d; + padding-left:30px; + } + + #listing-1:checked ~ ul li:nth-child(2) { + background-color: #6c6c6c; + background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCMTYwNzU5NkU1MTUxMUU0ODExQkM0RjREMjVCQTIxRiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCMTYwNzU5N0U1MTUxMUU0ODExQkM0RjREMjVCQTIxRiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkIxNjA3NTk0RTUxNTExRTQ4MTFCQzRGNEQyNUJBMjFGIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkIxNjA3NTk1RTUxNTExRTQ4MTFCQzRGNEQyNUJBMjFGIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+KyLN9wAAAr5JREFUeNrkmiFMY0EQhreECgziED2BOIMAUVODAFGDOIPAYDgJgsv1SCChJJBAk4OkJMAFLgFBBQaDwCAwmApOnEFgMAgMAgQGAUn5/2Re0kDgdue9lgEm+dOk3Unel9mdnZnXVK1Wc+/BUlqQ39VhfnyBctBn6A46hk58/H/07SYK0hrDdxD6BfXUfXcBzUA7zY5IizIaWXwUHkHQOgVu8k2AwEah/DO/EaYMjb8FkEGPNdOe614HBNuqiI+Mx1JGZv2FyL16RD5Bac+10ZnpsghyLanW13qhRajDFAjyPx/qb6DbkGwzc4f9SJkgitZAtnxv8Dprg+YbBaMCwfbiDT4FnQe6puUiHbISEdqh3OA3gX5M3UWk8bwVENoeVFL4sdAsAyZnBYS2LOlVAzMJmLQVECcV74bCj73AehIwLQlu0z9QVVmAzloCOYXGoAOF7yyiMm4FJIJZkwYr1MpxYJIGidLyjOKOaROYr1ZAnLS6zGa3CphRwGSsgDjJYlvKmqxgCYT2U85MqPVbA6FtQ1eBPu0WQXo0D2YNhBloIaA1juzMEkhOarAuBcS2FZCMNFBZTepGvxNcHbQ2AIJDhk2nm2ntAqJk5YwUlBD70nWqLOmILDjd3JdlzRiicWkBhOX4tCJDsdAsxYFIcmvlZUtp0uwEIKpxHyAJkD5o1T19xfA/47RyERCHFi7EDunusgqIJUBULNzsLLlXoAGFLyHmrJQofJkzovA7UA4qkgdB48Pph6Yt3Re/SxMgUgxq+vklRQvcGBBEY0RxLhgBnoljS2V8t/N79RbZlRSQe9b6kfvA9RzcVVyDTQPCmZXvBH5DtpQzB4L8z8nIP4+l3ErfXZNMm7Uq7uVp4pFMUJxpEESFA7jn/hXD37453dhUbXHK+ClJqywaO+tubfbpt67Jlvrw/9eyZg8CDAD9LKEpW+mYRgAAAABJRU5ErkJggg==') /*/Content/Images/green-arrow.png*/; + background-size: 25px 25px; + background-repeat:no-repeat; + background-position: center left; + width:100% + } + #listing-1:checked ~ ul li:nth-child(2) span { + color: white; + padding-left:30px; + } + + /** + * button 2 + **/ + #listing-2 ~ ul li:nth-child(3) { + background-color: #f2f1ef; + border-bottom: solid 1px #bbb; + background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpBN0Y3NjZENkU1MTUxMUU0QUQ3MTk1MEI0NjIxREZFNSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpBN0Y3NjZEN0U1MTUxMUU0QUQ3MTk1MEI0NjIxREZFNSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkE3Rjc2NkQ0RTUxNTExRTRBRDcxOTUwQjQ2MjFERkU1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkE3Rjc2NkQ1RTUxNTExRTRBRDcxOTUwQjQ2MjFERkU1Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+We2GnwAAArRJREFUeNrcmi9IQ1EUxq/igsWgYQaDxeDCykAMGlYMFsOKRaMLE6YwQYUJOtCBggpO0KDBsrJgMVgsBhUsBovFYFnQYFlQmN+B80AU9d3z7vbOPPDxQO8d7+e59/ybbfV63fwHawsCktm66ccjAfVCb9AVdGfzGaXckBOQjgAQE3isQ7FPP36ClqGTZnukXQgRxyP7BYKsj+FyLQECm4GSP/yOYDaJtxVAJnysWfS5LhwQHKslPKI+lpJn9n7xXOge6YYiPtd6d2ZAI8gLh1q/NgxtQD2qQBD36aWuLbel+Jipu+wXwgCxpA3k0DaDwzqh1UbBiEBwvCiDL0CPllsjnEhTWjxCMOecwV8tt0bZK0kVIAxTwaMg2Jrg7J9QAcK2xeFVApNDgo1oATFc8ZYE+yYpLLuAaXd4TPehS2EBmtcEcg+loTPB3jy8ktEC4sHscoNla5tBYFyDkJ3znbHNMZ0MM64FxHCrS9GsJoCZAUxUC4jhKHYorMmymkDI5vjO2NqoNhCyI+jZck+XRpCY5MW0gVAEWrNojT170ASS4BpsQABxpAXEK9XjktCNqtq6OuhoAAQNGQ6MbKZVBkRByx3JCiFOuesUmWuPrBnZ3JfKmjS8UdUAQuX4oiBCUaFZCALh8mgl+UhJwuw8IC6DvoALkBFox3z/iuEvo2nlBg8xwk2IqFJ7uLuLCyCK0HHomR0QVHJvQ2OC7QSxoqVEoXHOlGDfmXBQ4R4E3qDph6QtPeV9VRUgXAxK+vmioAVuDAi8MSW4F1W+E1eayvhB4++rN8+euYCsaOtH3i3X77sMsy5BaGbldwJfch1mnYEgE9Nk5NbHUjpKs6ZJJo1ax+b3aeIFT1CMahB4hQZw5Z86PGjayMamYgv630E5Lhr7PmVt6tNrFn+U8EE02b8B+RBgADA1p/qLw9EIAAAAAElFTkSuQmCC') /*/Content/Images/blue-arrow.png*/; + background-size: 25px 25px; + background-repeat:no-repeat; + background-position: center left; + } + #listing-2 ~ ul li:nth-child(3) span { + color: #4d4d4d; + padding-left:30px; + } + + #listing-2:checked ~ ul li:nth-child(3) { + background-color: #6c6c6c; + background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCMTYwNzU5NkU1MTUxMUU0ODExQkM0RjREMjVCQTIxRiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCMTYwNzU5N0U1MTUxMUU0ODExQkM0RjREMjVCQTIxRiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkIxNjA3NTk0RTUxNTExRTQ4MTFCQzRGNEQyNUJBMjFGIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkIxNjA3NTk1RTUxNTExRTQ4MTFCQzRGNEQyNUJBMjFGIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+KyLN9wAAAr5JREFUeNrkmiFMY0EQhreECgziED2BOIMAUVODAFGDOIPAYDgJgsv1SCChJJBAk4OkJMAFLgFBBQaDwCAwmApOnEFgMAgMAgQGAUn5/2Re0kDgdue9lgEm+dOk3Unel9mdnZnXVK1Wc+/BUlqQ39VhfnyBctBn6A46hk58/H/07SYK0hrDdxD6BfXUfXcBzUA7zY5IizIaWXwUHkHQOgVu8k2AwEah/DO/EaYMjb8FkEGPNdOe614HBNuqiI+Mx1JGZv2FyL16RD5Bac+10ZnpsghyLanW13qhRajDFAjyPx/qb6DbkGwzc4f9SJkgitZAtnxv8Dprg+YbBaMCwfbiDT4FnQe6puUiHbISEdqh3OA3gX5M3UWk8bwVENoeVFL4sdAsAyZnBYS2LOlVAzMJmLQVECcV74bCj73AehIwLQlu0z9QVVmAzloCOYXGoAOF7yyiMm4FJIJZkwYr1MpxYJIGidLyjOKOaROYr1ZAnLS6zGa3CphRwGSsgDjJYlvKmqxgCYT2U85MqPVbA6FtQ1eBPu0WQXo0D2YNhBloIaA1juzMEkhOarAuBcS2FZCMNFBZTepGvxNcHbQ2AIJDhk2nm2ntAqJk5YwUlBD70nWqLOmILDjd3JdlzRiicWkBhOX4tCJDsdAsxYFIcmvlZUtp0uwEIKpxHyAJkD5o1T19xfA/47RyERCHFi7EDunusgqIJUBULNzsLLlXoAGFLyHmrJQofJkzovA7UA4qkgdB48Pph6Yt3Re/SxMgUgxq+vklRQvcGBBEY0RxLhgBnoljS2V8t/N79RbZlRSQe9b6kfvA9RzcVVyDTQPCmZXvBH5DtpQzB4L8z8nIP4+l3ErfXZNMm7Uq7uVp4pFMUJxpEESFA7jn/hXD37453dhUbXHK+ClJqywaO+tubfbpt67Jlvrw/9eyZg8CDAD9LKEpW+mYRgAAAABJRU5ErkJggg==') /*/Content/Images/green-arrow.png*/; + background-size: 25px 25px; + background-repeat:no-repeat; + background-position: center left; + width:100% + } + #listing-2:checked ~ ul li:nth-child(3) span { + color: white; + padding-left:30px; + } + + /** + * button 3 + **/ + #listing-3 ~ ul li:nth-child(4) { + background-color: #f2f1ef; + border-bottom: solid 1px #bbb; + background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpBN0Y3NjZENkU1MTUxMUU0QUQ3MTk1MEI0NjIxREZFNSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpBN0Y3NjZEN0U1MTUxMUU0QUQ3MTk1MEI0NjIxREZFNSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkE3Rjc2NkQ0RTUxNTExRTRBRDcxOTUwQjQ2MjFERkU1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkE3Rjc2NkQ1RTUxNTExRTRBRDcxOTUwQjQ2MjFERkU1Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+We2GnwAAArRJREFUeNrcmi9IQ1EUxq/igsWgYQaDxeDCykAMGlYMFsOKRaMLE6YwQYUJOtCBggpO0KDBsrJgMVgsBhUsBovFYFnQYFlQmN+B80AU9d3z7vbOPPDxQO8d7+e59/ybbfV63fwHawsCktm66ccjAfVCb9AVdGfzGaXckBOQjgAQE3isQ7FPP36ClqGTZnukXQgRxyP7BYKsj+FyLQECm4GSP/yOYDaJtxVAJnysWfS5LhwQHKslPKI+lpJn9n7xXOge6YYiPtd6d2ZAI8gLh1q/NgxtQD2qQBD36aWuLbel+Jipu+wXwgCxpA3k0DaDwzqh1UbBiEBwvCiDL0CPllsjnEhTWjxCMOecwV8tt0bZK0kVIAxTwaMg2Jrg7J9QAcK2xeFVApNDgo1oATFc8ZYE+yYpLLuAaXd4TPehS2EBmtcEcg+loTPB3jy8ktEC4sHscoNla5tBYFyDkJ3znbHNMZ0MM64FxHCrS9GsJoCZAUxUC4jhKHYorMmymkDI5vjO2NqoNhCyI+jZck+XRpCY5MW0gVAEWrNojT170ASS4BpsQABxpAXEK9XjktCNqtq6OuhoAAQNGQ6MbKZVBkRByx3JCiFOuesUmWuPrBnZ3JfKmjS8UdUAQuX4oiBCUaFZCALh8mgl+UhJwuw8IC6DvoALkBFox3z/iuEvo2nlBg8xwk2IqFJ7uLuLCyCK0HHomR0QVHJvQ2OC7QSxoqVEoXHOlGDfmXBQ4R4E3qDph6QtPeV9VRUgXAxK+vmioAVuDAi8MSW4F1W+E1eayvhB4++rN8+euYCsaOtH3i3X77sMsy5BaGbldwJfch1mnYEgE9Nk5NbHUjpKs6ZJJo1ax+b3aeIFT1CMahB4hQZw5Z86PGjayMamYgv630E5Lhr7PmVt6tNrFn+U8EE02b8B+RBgADA1p/qLw9EIAAAAAElFTkSuQmCC') /*/Content/Images/blue-arrow.png*/; + background-size: 25px 25px; + background-repeat:no-repeat; + background-position: center left; + } + #listing-3 ~ ul li:nth-child(4) span { + color: #4d4d4d; + padding-left:30px; + } + + #listing-3:checked ~ ul li:nth-child(4) { + background-color: #6c6c6c; + background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCMTYwNzU5NkU1MTUxMUU0ODExQkM0RjREMjVCQTIxRiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCMTYwNzU5N0U1MTUxMUU0ODExQkM0RjREMjVCQTIxRiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkIxNjA3NTk0RTUxNTExRTQ4MTFCQzRGNEQyNUJBMjFGIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkIxNjA3NTk1RTUxNTExRTQ4MTFCQzRGNEQyNUJBMjFGIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+KyLN9wAAAr5JREFUeNrkmiFMY0EQhreECgziED2BOIMAUVODAFGDOIPAYDgJgsv1SCChJJBAk4OkJMAFLgFBBQaDwCAwmApOnEFgMAgMAgQGAUn5/2Re0kDgdue9lgEm+dOk3Unel9mdnZnXVK1Wc+/BUlqQ39VhfnyBctBn6A46hk58/H/07SYK0hrDdxD6BfXUfXcBzUA7zY5IizIaWXwUHkHQOgVu8k2AwEah/DO/EaYMjb8FkEGPNdOe614HBNuqiI+Mx1JGZv2FyL16RD5Bac+10ZnpsghyLanW13qhRajDFAjyPx/qb6DbkGwzc4f9SJkgitZAtnxv8Dprg+YbBaMCwfbiDT4FnQe6puUiHbISEdqh3OA3gX5M3UWk8bwVENoeVFL4sdAsAyZnBYS2LOlVAzMJmLQVECcV74bCj73AehIwLQlu0z9QVVmAzloCOYXGoAOF7yyiMm4FJIJZkwYr1MpxYJIGidLyjOKOaROYr1ZAnLS6zGa3CphRwGSsgDjJYlvKmqxgCYT2U85MqPVbA6FtQ1eBPu0WQXo0D2YNhBloIaA1juzMEkhOarAuBcS2FZCMNFBZTepGvxNcHbQ2AIJDhk2nm2ntAqJk5YwUlBD70nWqLOmILDjd3JdlzRiicWkBhOX4tCJDsdAsxYFIcmvlZUtp0uwEIKpxHyAJkD5o1T19xfA/47RyERCHFi7EDunusgqIJUBULNzsLLlXoAGFLyHmrJQofJkzovA7UA4qkgdB48Pph6Yt3Re/SxMgUgxq+vklRQvcGBBEY0RxLhgBnoljS2V8t/N79RbZlRSQe9b6kfvA9RzcVVyDTQPCmZXvBH5DtpQzB4L8z8nIP4+l3ErfXZNMm7Uq7uVp4pFMUJxpEESFA7jn/hXD37453dhUbXHK+ClJqywaO+tubfbpt67Jlvrw/9eyZg8CDAD9LKEpW+mYRgAAAABJRU5ErkJggg==') /*/Content/Images/green-arrow.png*/; + background-size: 25px 25px; + background-repeat:no-repeat; + background-position: center left; + width:100% + } + #listing-3:checked ~ ul li:nth-child(4) span { + color: white; + padding-left:30px; + } + + + + /* Hide the correct div when the keyword isn't selected'*/ + #listing-1 ~ div.search-results > div:nth-child(1) { + display: none; + } + #listing-2 ~ div.search-results > div:nth-child(2) { + display: none; + } + #listing-3 ~ div.search-results > div:nth-child(3) { + display: none; + } + + /* Show the correct div when the keyword is selected */ + #listing-1:checked ~ div.search-results > div:nth-child(1) { + display: block; + } + #listing-2:checked ~ div.search-results > div:nth-child(2) { + display: block; + } + #listing-3:checked ~ div.search-results > div:nth-child(3) { + display: block; + } + </style> + </head> + <body> + <input type="radio" name="g" id="listing-1"> + <input type="radio" name="g" checked="checked" id="listing-2"> + <input type="radio" name="g" id="listing-3"> + <ul> + <li class="header"> + <span> + What's Your Passion? + </span> + </li> + <li class="search-button"> + <label for="listing-1"> + <span> + Online Nursing Schools + </span> + </label> + </li> + <li class="search-button"> + <label for="listing-2"> + <span> + Interior Design School + </span> + </label> + </li> + <li class="search-button listing-3"> + <label for="listing-3"> + <span> + Photography Courses + </span> + </label> + </li> + </ul> + + + <!--Search Results are shown within here--> + <div class="search-results"> + @Html.Action("Listing","Search",new { keyword = "online+nursing+schools", type = 1, subid = Model.Subid, clickWrapper = Model.ClickWrapper}) + @Html.Action("Listing","Search",new { keyword = "interior+design+school", type = 1, subid = Model.Subid, clickWrapper = Model.ClickWrapper}) + @Html.Action("Listing","Search",new { keyword = "photography+courses", type = 1, subid = Model.Subid, clickWrapper = Model.ClickWrapper}) + </div> + + @Html.Raw(Model.FooterHtml) + </body> +</html> \ No newline at end of file diff --git a/Mobile.WYSIWYG/Views/Search/RedBlack.cshtml b/Mobile.WYSIWYG/Views/Search/RedBlack.cshtml new file mode 100644 index 0000000..18642ab --- /dev/null +++ b/Mobile.WYSIWYG/Views/Search/RedBlack.cshtml @@ -0,0 +1,65 @@ +@using System.Activities.Statements +@using Mobile.Search.Web.Extensions +@model Mobile.Search.Shared.Models.SearchResult + +@{ + Layout = null; +} + +<!DOCTYPE html> + +<html> +<head> + <title>@Model.Query</title> + <link rel="stylesheet" href="~/Content/redblack.css"/> +</head> +<body> + <div id="container"> + <div class="adk_re_primary"> + <div class="adk_re_panel"> + <div class="adk_re_head"> + <div class="adk_re_logo_left"> + <span class="adk_re_logo_text"></span> + </div> + <span class="adk_re_results_tag" style="font-size:24pt;"> + Top 5 Results for <strong>@Model.Query</strong>! + </span> + @if (!Model.Listings.Any(x => x.BiddedListing)) + { + <span class="alert alert-danger">No Results Found</span> + } + @foreach (var listing in Model.Listings.Where(x => x.BiddedListing)) + { + <a class="adk_re_ahref" target="_blank" href="@Model.ClickUrlFunc(listing)"> + <li class="adk_re_siteLink"> + <table class="adk_re_link_table"> + <tbody> + <tr> + <td class="adk_re_index">@listing.Rank</td> + <td class="adk_re_title_desc"> + <div class="adk_re_title"> + @Html.Raw(listing.Title.BoldQuery(Model.Query)) + </div> + <div class="adk_re_desc"> + Sponsored: @Html.Raw(listing.SiteHost) + <br/> + @Html.Raw(listing.Description.BoldQuery(Model.Query)) + </div> + </td> + </tr> + </tbody> + </table> + </li> + </a> + } + </div> + </div> + </div> + </div> + <div class="width:90%"></div> + @if (ViewBag.FooterHtml != null) + { + @Html.Raw(ViewBag.FooterHtml) + } +</body> +</html> diff --git a/Mobile.WYSIWYG/Views/Search/Test.cshtml b/Mobile.WYSIWYG/Views/Search/Test.cshtml new file mode 100644 index 0000000..a76371b --- /dev/null +++ b/Mobile.WYSIWYG/Views/Search/Test.cshtml @@ -0,0 +1,93 @@ +@using Mobile.Search.Shared +@{ + ViewBag.Title = "GuideQ"; + Layout = "~/Views/Search/_GuideQLayout.cshtml"; + +} +<br /><br /> +<div class="container"> + <form id="testform" class="form-horizontal" role="form"> + <div class="form-group"> + <label class="control-label col-sm-2">Search Query</label> + <div class="col-sm-10"> + <input id="q" type="text" class="form-control" placeholder="Search" /> + </div> + </div> + <div class="form-group"> + <label class="control-label col-sm-2">Template</label> + <div class="col-sm-10"> + <select class="form-control" id="template"> + <option id="google">Google</option> + <option id="redblack">RedBlack</option> + <option id="google_single">Google_Single</option> + <option id="multi_listing">Multi_Listing</option> + </select> + </div> + </div> + <div class="form-group"> + <label class="control-label col-sm-2">Source Tag</label> + <div class="col-sm-10"> + <select class="form-control" style="max-width:330px" id="source-tag"> + @foreach (var kvp in YahooTags.SourceTagDictionary) + { + if (kvp.Key == 2) + { + <option id="@kvp.Key" selected>@kvp.Value</option> + } + else + { + <option id="@kvp.Key">@kvp.Value</option> + } + } + </select> + </div> + </div> + <div class="form-group"> + <label class="control-label col-sm-2">Ad Count</label> + <div class="col-sm-10"> + <input id="c" type="text" class="form-control" value="5"/> + </div> + </div> + <div class="form-group"> + <label class="control-label col-sm-2"> + User Agent + </label> + <div class="col-sm-10"> + <pre><code>Mozilla/5.0 (Linux; U; Android 4.0.3; ko-kr; LG-L160L Build/IML74K) AppleWebkit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30</code></pre> + </div> + </div> + <div class="form-group"> + <label class="control-label col-sm-2"> + Frame Url + </label> + <div class="col-sm-10"> + <pre><code id="frameUrl">n/a</code></pre> + </div> + </div> + <button type="submit" class="btn btn-lg btn-primary">Test</button> + </form> +</div> +<iframe onload="Orient(this)" id="frame" src="about:blank" frameborder="0" height="100%" width="100%" scrolling="no"></iframe> + + +@section scripts { + <script type="text/javascript" language="javascript"> + $(function() { + $('#testform').submit(function(e) { + e.preventDefault(); + var url = '/search/frame?keyword=' + $('#q').val() + '&layout=' + $('#template').val() + '&c=' + $('#c').val() + '&type=' + $('#source-tag').children(':selected').attr('id'); + document.getElementById('frame').src = url; + $('#frameUrl').html(url); + return false; + }); + }); + + function Orient(obj) { + var maxheight = window.innerHeight; + var maxWidth = window.innerWidth; + + obj.height = maxheight; + obj.width = maxWidth; + } + </script> +} diff --git a/Mobile.WYSIWYG/Views/Search/_GuideQLayout.cshtml b/Mobile.WYSIWYG/Views/Search/_GuideQLayout.cshtml new file mode 100644 index 0000000..d9aa4a3 --- /dev/null +++ b/Mobile.WYSIWYG/Views/Search/_GuideQLayout.cshtml @@ -0,0 +1,57 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>@ViewBag.Title </title> + @Styles.Render("~/Content/css") + @Scripts.Render("~/bundles/modernizr") + +</head> +<body style="padding-top:0px;"> + @*<div class="navbar navbar-inverse navbar-fixed-top"> + <div class="container"> + <div class="navbar-header"> + <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + @* @Html.ActionLink("Application name", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" }) * @ + <span class="navbar-brand">GuideQ</span> + </div> + <div class="navbar-collapse collapse"> + <ul class="nav navbar-nav"> + @*<li>@Html.ActionLink("Home", "Index", "Home")</li> + <li>@Html.ActionLink("About", "About", "Home")</li> + <li>@Html.ActionLink("Contact", "Contact", "Home")</li>* @ + </ul> + @* @Html.Partial("_LoginPartial")* @ + </div> + </div> + </div>*@ + <div class="container body-content" style="padding:0;max-width: 100%;"> + @RenderBody() + <hr /> + <footer> + <p>© @DateTime.Now.Year - GuideQ</p> + </footer> + </div> + + @Scripts.Render("~/bundles/jquery") + @Scripts.Render("~/bundles/bootstrap") + @RenderSection("scripts", required: false) + + <script> + (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ + (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), + m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) + })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); + + ga('create', 'UA-61438112-1', 'auto'); + ga('send', 'pageview'); + + </script> + +</body> +</html> diff --git a/Mobile.WYSIWYG/Views/Search/_Listing.cshtml b/Mobile.WYSIWYG/Views/Search/_Listing.cshtml new file mode 100644 index 0000000..f310634 --- /dev/null +++ b/Mobile.WYSIWYG/Views/Search/_Listing.cshtml @@ -0,0 +1,11 @@ +@using Mobile.Search.Web.Extensions +@model Mobile.Search.Shared.Models.Listing + +<div style="font-family:arial, sans-serif"> + <a href="@Model.ClickUrl" target="_blank" style="text-decoration: none; color:#1a0dab; line-height:1.2; font-size:18px;"> + @Html.Raw(Model.Title) + </a> + <br/> + <cite style="color:green; line-height:15px; font-size:small; font-style: normal">@Model.SiteHost</cite> + <p style="margin-top:3px; color:#545454; font-size:small">@Html.Raw(Model.Description)</p> +</div> diff --git a/Mobile.WYSIWYG/Views/Search/_SubListing.cshtml b/Mobile.WYSIWYG/Views/Search/_SubListing.cshtml new file mode 100644 index 0000000..da73cd4 --- /dev/null +++ b/Mobile.WYSIWYG/Views/Search/_SubListing.cshtml @@ -0,0 +1,22 @@ +@model Mobile.Search.Shared.Models.Listing + +<tr> + <td width="280" bgcolor="#ffffff" align="center" valign="top"> + <a href="@Model.ClickUrl"> + <table style="/*width:${WIDTH}$px;height:${HEIGHT}$px;*/" bgcolor="#ffffff" cellpadding="0" cellspacing="0" border="0"> + <tbody> + <tr> + <td width="280px" bgcolor="#ffffff" style="color:#0368f4; font-family:Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 17px; text-align:left; padding:10px 10px 0px 10px; font-weight:bold">@Model.Title</td> + </tr> + <tr> + <td width="280px" bgcolor="#ffffff" style="color:#000000; font-family:Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; padding:0px 10px 10px 10px; text-align:left;">@Model.Description</td> + </tr> + + </tbody> + </table> + </a> + </td> +<td width="40" bgcolor="#ffffff" align="center" valign="middle"> + <a href="@Model.ClickUrl"><img src="~/Content/Templates/images/ia.gif" alt="" width="40" height="63" border="0" style="display:block" /></a> +</td> +</tr> \ No newline at end of file diff --git a/Mobile.Search.Web/Views/Shared/Error.cshtml b/Mobile.WYSIWYG/Views/Shared/Error.cshtml similarity index 100% rename from Mobile.Search.Web/Views/Shared/Error.cshtml rename to Mobile.WYSIWYG/Views/Shared/Error.cshtml diff --git a/Mobile.Search.Web/Views/Shared/Lockout.cshtml b/Mobile.WYSIWYG/Views/Shared/Lockout.cshtml similarity index 100% rename from Mobile.Search.Web/Views/Shared/Lockout.cshtml rename to Mobile.WYSIWYG/Views/Shared/Lockout.cshtml diff --git a/Mobile.WYSIWYG/Views/Shared/Purple.cshtml b/Mobile.WYSIWYG/Views/Shared/Purple.cshtml new file mode 100644 index 0000000..d9a5def --- /dev/null +++ b/Mobile.WYSIWYG/Views/Shared/Purple.cshtml @@ -0,0 +1,45 @@ +@using Mobile.Search.Web.Extensions +@model Mobile.Search.Shared.Models.SearchResult +@{ + var fontSize = 18; +} + <div class="listing"> + @foreach (var listing in Model.Listings.Where(x => x.BiddedListing)) + { + listing.ClickUrl = Model.ClickUrlFunc(listing); + listing.Description = listing.Description.BoldQuery(Model.Query).ToString(); + + if (listing.Rank == 1) + { + + <div style="font-family: arial, sans-serif;padding-left:10px;margin-bottom:10px;float:left;width:280px;"> + <a href="@listing.ClickUrl" target="_blank" style="text-decoration: none; color: #6a8bc9; line-height: 1.2; font-size:25px; font-weight:bolder"> + @Html.Raw(listing.Title) + </a> + <br /> + <div style="margin-top: 3px; color: #545454; font-size: small; font-weight:bold;font-size:16px;">@Html.Raw(listing.Description)</div> + <cite style="color: #8ebb59; line-height: 15px; font-size: small; font-style: normal;font-weight:bolder;">@listing.SiteHost</cite> + </div> + <div style="clear:both"></div> + + } + else + { + + <div style="font-family: arial, sans-serif;margin-top:10px;margin-bottom:10px;padding-left:10px;"> + <a href="@listing.ClickUrl" target="_blank" style="text-decoration: none; color: #6a8bc9; line-height: 1.2; font-size: 18px;"> + @Html.Raw(listing.Title) + </a> + <br /> + <div style="margin-top: 3px; color: #545454; font-size: small">@Html.Raw(listing.Description)</div> + <cite style="color: #8ebb59; line-height: 15px; font-size: small; font-style: normal">@listing.SiteHost</cite> + </div> + + } + <hr style=" border: 0;height: 0;border-top: 1px solid rgba(0, 0, 0, 0.1);border-bottom: 1px solid rgba(255, 255, 255, 0.3);"/> + } + @if (!Model.Listings.Any(x => x.BiddedListing)) + { + <span class="alert alert-danger">No Sponsored Results Available!</span> + } + </div> diff --git a/Mobile.WYSIWYG/Views/Shared/_Layout.cshtml b/Mobile.WYSIWYG/Views/Shared/_Layout.cshtml new file mode 100644 index 0000000..f9e54fe --- /dev/null +++ b/Mobile.WYSIWYG/Views/Shared/_Layout.cshtml @@ -0,0 +1,65 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>@ViewBag.Title</title> + @Styles.Render("~/Content/css") + @Scripts.Render("~/bundles/modernizr") + @RenderSection("head", false) + + <style> + /* login page */ +#loginForm { + border-right: solid 2px #c8c8c8; + float: left; + width: 55%; +} + + #loginForm .validation-error { + display: block; + margin-left: 15px; + } + + #loginForm .validation-summary-errors ul { + margin: 0; + padding: 0; + } + + #loginForm .validation-summary-errors li { + display: inline; + list-style: none; + margin: 0; + } + + #loginForm input { + width: 250px; + } + + #loginForm input[type="checkbox"], + #loginForm input[type="submit"], + #loginForm input[type="button"], + #loginForm button { + width: auto; + } + </style> +</head> +<body> + <div class="navbar navbar-inverse navbar-fixed-top"> + <div class="container"> + <div class="navbar-header"> + </div> + <div class="navbar-collapse collapse"> + </div> + </div> + </div> + <div class="container body-content"> + @RenderBody() + <hr /> + </div> + + @Scripts.Render("~/bundles/jquery") + @Scripts.Render("~/bundles/bootstrap") + @RenderSection("scripts", required: false) +</body> +</html> diff --git a/Mobile.WYSIWYG/Views/Shared/_LoginPartial.cshtml b/Mobile.WYSIWYG/Views/Shared/_LoginPartial.cshtml new file mode 100644 index 0000000..f996508 --- /dev/null +++ b/Mobile.WYSIWYG/Views/Shared/_LoginPartial.cshtml @@ -0,0 +1,22 @@ +@using Microsoft.AspNet.Identity +@if (Request.IsAuthenticated) +{ + using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm", @class = "navbar-right" })) + { + @Html.AntiForgeryToken() + + <ul class="nav navbar-nav navbar-right"> + <li> + @Html.ActionLink("Hello " + User.Identity.GetUserName() + "!", "Index", "Manage", routeValues: null, htmlAttributes: new { title = "Manage" }) + </li> + <li><a href="javascript:document.getElementById('logoutForm').submit()">Log off</a></li> + </ul> + } +} +else +{ + <ul class="nav navbar-nav navbar-right"> + <li>@Html.ActionLink("Register", "Register", "Account", routeValues: null, htmlAttributes: new { id = "registerLink" })</li> + <li>@Html.ActionLink("Log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })</li> + </ul> +} diff --git a/Mobile.WYSIWYG/Views/Template/AdvertiserBlacklist.cshtml b/Mobile.WYSIWYG/Views/Template/AdvertiserBlacklist.cshtml new file mode 100644 index 0000000..560e55d --- /dev/null +++ b/Mobile.WYSIWYG/Views/Template/AdvertiserBlacklist.cshtml @@ -0,0 +1,46 @@ +@model List<Dictionary<string, string>> + +@{ + Layout = "~/Views/Shared/_Layout.cshtml"; +} + +<h2>Advertiser URL Blacklist</h2> +<table class="table table-bordered"> + <thead> + <tr> + <th>Keyword</th> + <th>Advertiser URL</th> + </tr> + </thead> + <tbody> + @foreach (var item in Model) + { + <tr> + <td>@item["keyword"]</td> + <td>@item["advertiserUrl"]</td> + <td> + <div class="btn-group"> + @Html.ActionLink("Remove", "AdvertiserBlacklist", new { keyword = item["keyword"], advertiserUrl = item["advertiserUrl"], remove = "true" }, new { @class = "btn btn-danger btn-sm" }) + </div> + </td> + </tr> + } + </tbody> +</table> +<script> + function add() { + var keyword = $('#add-keyword').val(); + var adveriserUrl = $('#add-advertiserUrl').val(); + if (keyword && keyword.length > 0 && adveriserUrl && adveriserUrl.length > 0) { + window.location = '/Template/AdvertiserBlacklist?add=true&advertiserUrl=' + encodeURIComponent(adveriserUrl) + '&keyword=' + encodeURIComponent(keyword); + } + } +</script> +<h4 style="margin-top:30px;">Add Advertiser URL</h4> +<div class="form-inline"> + <input type="text" value="" class="form-control form-group" name="keyword" id="add-keyword" style="width:300px;" placeholder="keyword" /> + <input type="text" value="" class="form-control form-group" name="advertiserUrl" id="add-advertiserUrl" style="width:300px;" placeholder="advertiser url" /> + <span class="input-group-btn form-group"> + <a href="#" class="btn btn-primary" onclick="add();">Add</a> + </span> +</div> diff --git a/Mobile.WYSIWYG/Views/Template/Edit.cshtml b/Mobile.WYSIWYG/Views/Template/Edit.cshtml new file mode 100644 index 0000000..5b58dc3 --- /dev/null +++ b/Mobile.WYSIWYG/Views/Template/Edit.cshtml @@ -0,0 +1,144 @@ +@model KeyValuePair<string,string> + +@{ + ViewBag.Title = "Edit"; + Layout = null; +} + +<html> +<head> + <title>Template Edit</title> + <link rel="stylesheet" href="~/Scripts/CodeMirror/lib/codemirror.css"/> + <link rel="stylesheet" href="~/Content/panes.css"/> + <link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/pure-min.css"> + <style> + /* Pane configuration */ + .left.col { width: 450px; } + .right.col {left: 450px;right: 0; } + .header.row {height: 45px;line-height: 45px; } + .body.row {top: 45px;bottom: 0px; } + .footer.row {height: 0;bottom: 0;line-height: 0; } + .wide{width:100%;} + .CodeMirror{ + height: auto; + } + + /* 5 min effort iOS-like styles */ + /* Very rough, 5-minute effort at iOS-like styles. I'm sure you can do better... */ + + body { font-family: 'Helvetica Neue', Arial, Sans-Serif; } + .header, .footer { + color: #eee;text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);padding: 0 0.5em; + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #696f77), color-stop(100%, #28343b)); + background: -webkit-linear-gradient(top, #696f77 0%, #28343b 100%);background: -ms-linear-gradient(top, #696f77 0%, #28343b 100%); + } + .header { font-size: 1.4em; } + .right.col { border-left: 1px solid black; } + + </style> +</head> +<body> + @using (Html.BeginForm("Edit", "Template", FormMethod.Post, new {@class = "pure-form pure-form-stacked" })) + { + + <div class="left col"> + <div class="header row"> + Options + </div> + <div class="body row scroll-y"> + <div style="width: 90%; margin:auto "> + + <div class="pure-control-group"> + <label for="Key">Template Key</label> + @Html.TextBoxFor(x => x.Key, new { @class = "wide" }) + </div> + <div class="pure-controls"> + <button type="submit" class="pure-button pure-button-primary">Save Changes</button> + </div> + + </div> + <br/> + <div style="width: 100%; text-align: center"> + <h3>Preview </h3> + <iframe width="375" height="650" src="/search/template?templateKey=@Model.Key&keyword=audi+a4&debug=true" style="border: solid 1px black; margin: auto"></iframe> + </div> + + </div> + </div> + <div class="right col"> + <div class="header row"> + Html + </div> + <div class="body row scroll-y"> + @Html.TextAreaFor(x => x.Value) + </div> + </div> + } + @*@using (Html.BeginForm("Edit", "Template", FormMethod.Post)) + { + <div class="container"> + <div style="overflow-y: hidden; float: left;width: 24%;min-width:450px"> + <div class="options-container" style="overflow-y: auto; overflow-x: hidden; "> + <div class="form-group"> + <span><strong>Key:</strong><label class="control-label">@Model.Key</label></span> + </div> + <div class="form-group"> + <label class="control-label">Template Key</label> + @Html.TextBoxFor(x => x.Key, new {@class = "form-control"}) + </div> + <div class="form-group"> + <button type="submit" class="btn btn-primary">Save Changes</button> + </div> + + <br/> + Preview + <iframe width="375" height="650" style="border: solid 1px black;"></iframe> + + </div> + + </div> + <div class="code-container" style="float: left; width:70%"> + @Html.TextAreaFor(x => x.Value) + </div> + </div> + } + @Scripts.Render("~/bundles/bootstrap") + <script type="text/javascript" src="~/Scripts/codemirror-2.37/lib/codemirror.js"></script> + <script type="text/javascript" src="~/Scripts/codemirror-2.37/mode/xml/xml.js"></script> + <script type="text/javascript" src="~/Scripts/codemirror-2.37/mode/javascript/javascript.js"></script> + <script type="text/javascript" src="~/Scripts/codemirror-2.37/mode/css/css.js"></script> + <script type="text/javascript" src="~/Scripts/codemirror-2.37/mode/htmlmixed/htmlmixed.js"></script> + <script> + function sizeCodeMirror() { + $('.CodeMirror').css('height', ($(window).height()) + 'px'); + $('.CodeMirror').css('width', ($('.code-container').get(0).clientWidth) + 'px'); + $('.options-container').css('max-height', ($(window).height()) + 'px'); + } + $(function() { + CodeMirror.fromTextArea(document.getElementById('Value'), { + lineNumbers: true, + mode: "htmlmixed" + }); + + sizeCodeMirror(); + }); + $(window).resize(function() { + sizeCodeMirror(); + }); + </script>*@ + @Scripts.Render("~/bundles/jquery") + <script type="text/javascript" src="~/Scripts/CodeMirror/lib/codemirror.js"></script> + <script type="text/javascript" src="~/Scripts/CodeMirror/mode/xml/xml.js"></script> + <script type="text/javascript" src="~/Scripts/CodeMirror/mode/javascript/javascript.js"></script> + <script type="text/javascript" src="~/Scripts/CodeMirror/mode/css/css.js"></script> + <script type="text/javascript" src="~/Scripts/CodeMirror/mode/htmlmixed/htmlmixed.js"></script> +<script> + $(function() { + CodeMirror.fromTextArea(document.getElementById('Value'), { + lineNumbers: true, + mode: "htmlmixed" + }); + }); +</script> +</body> +</html> \ No newline at end of file diff --git a/Mobile.WYSIWYG/Views/Template/FroalaIndex.cshtml b/Mobile.WYSIWYG/Views/Template/FroalaIndex.cshtml new file mode 100644 index 0000000..0f33127 --- /dev/null +++ b/Mobile.WYSIWYG/Views/Template/FroalaIndex.cshtml @@ -0,0 +1,286 @@ +@model KeyValuePair<string, string> + +@{ + ViewBag.Title = "FroalaIndex"; + Layout = null; +} + +<html> +<head> + <title>Template Edit</title> + <link rel="stylesheet" href="~/Scripts/CodeMirror/lib/codemirror.css" /> + <link rel="stylesheet" href="~/Content/panes.css" /> + <link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/pure-min.css"> + <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/froala-editor/2.7.6/js/plugins/paragraph_style.min.js" type="text/javascript" /> + <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/froala-editor/2.7.6/js/plugins/video.min.js" type="text/javascript" /> + <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/froala-editor/2.7.6/js/plugins/inline_style.min.js" type="text/javascript" /> + <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/froala-editor/2.7.6/js/third_party/image_aviary.min.js" type="text/javascript" /> + <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/froala-editor/2.7.6/js/plugins/table.min.js" type="text/javascript" /> + <link rel="stylesheet" href="../css/plugins/table.min.css"> + <link href="https://cdnjs.cloudflare.com/ajax/libs/froala-editor/2.7.6/css/plugins/table.css" rel="stylesheet" type="text/css" /> + <link href="https://cdnjs.cloudflare.com/ajax/libs/froala-editor/2.7.6/css/plugins/table.min.css" rel="stylesheet" type="text/css" /> + <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" /> + <link href="https://cdnjs.cloudflare.com/ajax/libs/froala-editor/2.7.6/css/plugins/image.css" rel="stylesheet" type="text/css" /> + <link href="https://cdnjs.cloudflare.com/ajax/libs/froala-editor/2.7.6/css/plugins/video.css" rel="stylesheet" type="text/css" /> + <link href="https://cdnjs.cloudflare.com/ajax/libs/froala-editor/2.7.6/css/plugins/video.min.css" rel="stylesheet" type="text/css" /> + <link href="https://cdnjs.cloudflare.com/ajax/libs/froala-editor/2.7.6/css/plugins/image_manager.css" rel="stylesheet" type="text/css" /> + <link href="https://cdnjs.cloudflare.com/ajax/libs/froala-editor/2.7.6/css/plugins/image_manager.min.css" rel="stylesheet" type="text/css" /> + <link href="https://cdnjs.cloudflare.com/ajax/libs/froala-editor/2.7.6/css/plugins/image.min.css" rel="stylesheet" type="text/css" /> + <!-- Include Editor style. --> + <link href="https://cdnjs.cloudflare.com/ajax/libs/froala-editor/2.7.6/css/froala_editor.pkgd.min.css" rel="stylesheet" type="text/css" /> + <link href="https://cdnjs.cloudflare.com/ajax/libs/froala-editor/2.7.6/css/froala_style.min.css" rel="stylesheet" type="text/css" /> + + <!-- Create a tag that we will use as the editable area. --> + <style> + /* Pane configuration */ + .left.col { + width: 33%; + } + + .right.col { + left: 33%; + right: 0; + } + + .header.row { + height: 45px; + line-height: 45px; + text-align: center; + } + + .body.row { + top: 45px; + bottom: 0px; + } + + .footer.row { + height: 0; + bottom: 0; + line-height: 0; + } + + .wide { + width: 100%; + } + + .CodeMirror { + height: auto; + } + + /* 5 min effort iOS-like styles */ + /* Very rough, 5-minute effort at iOS-like styles. I'm sure you can do better... */ + + body { + font-family: 'Helvetica Neue', Arial, Sans-Serif; + } + + .header, .footer { + color: #eee; + text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5); + padding: 0 0.5em; + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #696f77), color-stop(100%, #28343b)); + background: -webkit-linear-gradient(top, #696f77 0%, #28343b 100%); + background: -ms-linear-gradient(top, #696f77 0%, #28343b 100%); + } + + .header { + font-size: 1.4em; + } + + .right.col { + border-left: 1px solid black; + } + </style> +</head> +<body> + @using (Html.BeginForm("FroalaIndex", "Template", FormMethod.Post, new { @class = "pure-form pure-form-stacked" })) + { + + <div class="left col"> + <div class="header row"> + Options + </div> + <div class="body row scroll-y"> + <div style="width: 50%; margin-right:10px;margin-left:40px"> + + <div class="pure-control-group"> + <label for="Key">Template Key</label> + @Html.TextBoxFor(x => x.Key, new { @class = "wide", id = "KeyValue" }) + </div> + <br /> + <div class="pure-controls"> + <button type="submit" class="pure-button pure-button-primary">Save Changes</button> + </div> + + </div> + <br /> + <div style="width: 100%; margin-right:10px;margin-left:40px"> + <h3>Send test Email </h3> + + + @Html.TextBox("EmailId", "", new { align = "center!important", style = "display: inline-block !important", id = "EmailId" }) + <br /><br /> + <div class="pure-controls"> + <button type="submit" id="SendEmail" class="pure-button pure-button-primary">Send Email</button> + </div> + + <br /> <br /> + <div id="sent_to_email"> + <div class="alert alert-success" role="alert"> + <strong>Email to : <u><strong id="email_id"></strong></u> Send Successfully</strong> + </div> + <br /> <br /> + </div> + <div id="sent_to_email_failed"> + <div class="alert alert-success" role="alert"> + <strong>Email to : <u><strong id="email_id_failed"></strong></u> Send Failed</strong> + </div> + <br /> <br /> + </div> + <!-- <iframe width="375" height="650" src="/search/template?templateKey=@Model.Key&keyword=audi+a4&debug=true" style="border: solid 1px black; margin: auto"></iframe>--> + <div id="wrap_url_cb"> + <div> + <table> + <tr> + <td align="left"> + <b> Wrap Url :</b> + </td> + <td align="right" style="padding-left:10px"> + @Html.CheckBox("WrapUrl", false, new { id = "WrapUrl" }) + </td> + </tr> + <tr> + <td align="left"> + <b> Advertiser has Unsubscribed Url : </b> + </td> + <td align="right" style="padding-left:10px"> + @Html.CheckBox("WrapAdvertiserUrl", false, new { id = "WrapAdvertiserUrl" }) + </td> + </tr> + </table> + + + </div> + + </div> + </div> + + </div> + </div> + <div class="right col"> + <div class="header row"> + Html + </div> + <div class="body row scroll-y" id="froalaval"> + @Html.TextAreaFor(x => x.Value, new { @class = "FroalaHtmlEditor", id = "FroalaHtmlEditor", display = "none" }) + + </div> + </div> + } + + @Scripts.Render("~/bundles/jquery") + <script type="text/javascript" src="~/Scripts/CodeMirror/lib/codemirror.js"></script> + <script type="text/javascript" src="~/Scripts/CodeMirror/mode/xml/xml.js"></script> + <script type="text/javascript" src="~/Scripts/CodeMirror/mode/javascript/javascript.js"></script> + <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script> + <script type="text/javascript" src="~/Scripts/CodeMirror/mode/css/css.js"></script> + <script type="text/javascript" src="~/Scripts/CodeMirror/mode/htmlmixed/htmlmixed.js"></script> + <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> + <script src="../js/plugins/table.min.js"></script> + + <!-- Include Editor JS files. --> + <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/froala-editor/2.7.6/js/froala_editor.pkgd.min.js"></script> + <script> + //$(function () { + // $('textarea').froalaEditor({ + // heightMin: 900, + + + // }) + + //}); + //$(function () { + // $('textarea') + // .on('froalaEditor.contentChanged froalaEditor.initialized', function (e, editor) { + // $('pre#eg-previewer').text(editor.codeBeautifier.run(editor.html.get())) + // $('pre#eg-previewer').removeClass('prettyprinted'); + // prettyPrint() + // }) + // .froalaEditor() + //}); + $(document).ready(function () { + var original_helpers = $.FE.MODULES.helpers; + $.FE.MODULES.helpers = function (editor) { + var helpers = original_helpers(editor); + + var isURL = helpers.isURL(); + + // This is the original sanitizer. + helpers.sanitizeURL = function (url) { + console.log('hello :)') + + return url; + }; + + return helpers; + } + $('#sent_to_email').hide(); + $('#sent_to_email_failed').hide(); + $.get("/Template/S3Signature", {}) + .done(function (data) { + $('#FroalaHtmlEditor').froalaEditor({ + enter: $.FroalaEditor.ENTER_BR, + fullPage: true, + key: 'ukkyeD-11aB1gF-7C3uvxrpxB2G-7ol==', + htmlRemoveTags: [''], + htmlAllowedAttrs: ['.*'], + heightMin: 800, + htmlAllowedTags: ['.*'], + htmlAllowComments: true, + toolbarInline: false, + videoUploadToS3: data, + imageUploadToS3: data + }) + }); + $('#SendEmail').click(function (e) { + e.preventDefault(); + var Content = $('#FroalaHtmlEditor').froalaEditor('html.get'); + if (Content.length < 1) { + Content = $('#FroalaHtmlEditor').froalaEditor('codeView.get'); + } + + var EmailId = document.getElementById("EmailId").value; + var key = document.getElementById("KeyValue").value; + var WrapUrl = document.getElementById("WrapUrl").checked; + var WrapAdvertiserUrl = document.getElementById("WrapAdvertiserUrl").checked; + + + $.ajax({ + url: "/Template/FroalaIndex", + type: "POST", + data: JSON.stringify({ 'key': key, 'value': Content, 'EmailId': EmailId, 'isSendEmail': true, 'WrapUrl': WrapUrl, 'AdvertiserHasUnSub': WrapAdvertiserUrl }), + dataType: "json", + traditional: true, + contentType: "application/json; charset=utf-8", + success: function (data) { + if (data.status == "Success") { + $('#sent_to_email_failed').hide(); + $('#email_id').empty().append(EmailId); + $('#sent_to_email').show(); + document.getElementById("EmailId").value = "" + } else { + $('#sent_to_email').hide(); + $('#email_id_failed').empty().append(EmailId); + $('#sent_to_email_failed').show(); + document.getElementById("EmailId").value = "" + } + } + + + }); + + }); + }); + </script> +</body> +</html> \ No newline at end of file diff --git a/Mobile.WYSIWYG/Views/Template/Index.cshtml b/Mobile.WYSIWYG/Views/Template/Index.cshtml new file mode 100644 index 0000000..152665e --- /dev/null +++ b/Mobile.WYSIWYG/Views/Template/Index.cshtml @@ -0,0 +1,51 @@ +@model Dictionary<string,string> + +@{ + Layout = "~/Views/Shared/_Layout.cshtml"; +} + +@section head { + <script src="//cdnjs.cloudflare.com/ajax/libs/list.js/1.2.0/list.min.js"></script> +} +<div class="row" style="padding-top:10px;padding-bottom:10px;"> + <div class="col-xs-9"> + <h2 style="margin:0;padding:0;line-height:normal;">Templates</h2> + </div> + <div class="col-xs-3"> + @Html.ActionLink("Create New", "Create", null, new { @class = "btn btn-primary pull-right" }) + </div> +</div> +<div id="templates"> + <input class="search form-control" placeholder="search"/> + <br/> + <table class="table table-striped table-bordered table-condensed"> + <thead> + <tr> + <th>Template Key</th> + <th>Options</th> + </tr> + </thead> + <tbody class="list"> + @foreach (var kvp in Model) + { + <tr> + <td class="key">@kvp.Key</td> + <td class="options"> + <div class="btn-group"> + @Html.ActionLink("Edit", "Edit", new {templateKey = kvp.Key}, new {@class = "btn btn-primary btn-sm"}) + <a class="btn btn-sm btn-primary" target="_blank" href="/search/template?templateKey=@kvp.Key&keyword=audi+a4&debug=true">View</a> + @Html.ActionLink("Delete", "Delete", new {templateKey = kvp.Key}, new {@class = "btn btn-danger btn-sm"}) + </div> + </td> + </tr> + } + </tbody> + </table> +</div> +<script> + var options = { + valueNames: ['key'] + }; + var templateList = new List('templates', options); +</script> +@Html.ActionLink("Create New", "CreateFroala", null, new { @class = "btn btn-primary" }) \ No newline at end of file diff --git a/Mobile.WYSIWYG/Views/Test/CheckboxHack.cshtml b/Mobile.WYSIWYG/Views/Test/CheckboxHack.cshtml new file mode 100644 index 0000000..ae9ca43 --- /dev/null +++ b/Mobile.WYSIWYG/Views/Test/CheckboxHack.cshtml @@ -0,0 +1,48 @@ + +@{ + Layout = null; + ViewBag.Title = "CheckboxHack"; +} +<!doctype html> +<html> + <head> + <title></title> + + <style> + input[type=checkbox] { + position: absolute; + top: -9999px; + left: -9999px; + } + label { + -webkit-appearance: push-button; + -moz-appearance: button; + display: inline-block; + margin: 60px 0 10px 0; + cursor: pointer; + } + + /* Default State */ + div { + background: green; + width: 400px; + height: 100px; + line-height: 100px; + color: white; + text-align: center; + } + + /* Toggled State */ + input[type=checkbox]:checked ~ div { + background: red; + } + </style> + </head> + <body> + <label for="toggle-1">I'm a toggle</label> + <input type="checkbox" id="toggle-1"> + <div>I'm controlled by toggle. No JavaScript!</div> + </body> +</html> +<h2>CheckboxHack</h2> + diff --git a/Mobile.WYSIWYG/Views/Test/CssTarget.cshtml b/Mobile.WYSIWYG/Views/Test/CssTarget.cshtml new file mode 100644 index 0000000..4eebd30 --- /dev/null +++ b/Mobile.WYSIWYG/Views/Test/CssTarget.cshtml @@ -0,0 +1,29 @@ + +@{ + Layout = null; + ViewBag.Title = "CssTarget"; +} + +<html> + <head> + <style> + div { + display: none; + } + + :target { + display: block; + } + </style> + <title>Css pseudo test</title> + </head> + <body> + <a href="#foo">Click here to show the hidden <code>div</code> element</a><br> + <a href="#">Click here to hide it again</a>. + <div id="foo">This should only show when the link is clicked.</div> + </body> +</html> +<h2>CssTarget</h2> + + + diff --git a/Mobile.WYSIWYG/Views/Test/GoogleSingle.cshtml b/Mobile.WYSIWYG/Views/Test/GoogleSingle.cshtml new file mode 100644 index 0000000..6d059f2 --- /dev/null +++ b/Mobile.WYSIWYG/Views/Test/GoogleSingle.cshtml @@ -0,0 +1,54 @@ +@model Mobile.Search.Shared.Models.SearchResult + +@{ + Layout = null; + var listing = Model.Listings.First(x => x.BiddedListing); +} + +<!DOCTYPE html> + +<html> + <head> + <title>@Model.Query</title> + </head> + <body> + <center> + <table border="0" cellpadding="0" cellspacing="0" bgcolor="#ffffff"> + <tr><td><div style="height:0; width:300; background-color:#ffffff; font-size:2px; text-align:center; color:#ffffff">{{tagline}}</div></td></tr> + <tr> + <td> + <table border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ffffff"> + <tr> + <td width="300" bgcolor="#ffffff" style="font-size: 16px; font-family:'Open Sans', Arial, Helvetica, sans-serif; color:#464646;" align="center" valign="middle"> + <a href="@Model.ClickUrlFunc(listing)" style="color:#464646; text-decoration:none"> + <span style="color:royalblue;line-height:1.5em; font-size:14pt"> + @WebUtility.HtmlDecode(listing.Title) + </span><br/> + <span style="line-height:1.7em; font-weight:normal"> + @WebUtility.HtmlDecode(listing.Description) + </span> + <br/> + <span style="line-height:1.7em; font-size:11px; font-weight:normal"> + @listing.SiteHost + </span> + </a> + </td> + </tr> + <tr> + <td width="300" align="center" style="padding:0px 0px 45px 0px;"> + <a href="@Model.ClickUrlFunc(listing)" style="text-decoration: none; color:#FFFFFF"> + <img src="http://image.email.horoscopedaily.email/ia?id=dc3161bf22d8a665c1a829f7278d59d6" alt=""> + </a> + </td> + </tr> + </table> + </td> + </tr> + </table> + </center> + @if (ViewBag.FooterHtml != null) + { + @Html.Raw(ViewBag.FooterHtml) + } + </body> +</html> \ No newline at end of file diff --git a/Mobile.WYSIWYG/Views/Web.config b/Mobile.WYSIWYG/Views/Web.config new file mode 100644 index 0000000..b71d5ef --- /dev/null +++ b/Mobile.WYSIWYG/Views/Web.config @@ -0,0 +1,35 @@ +<?xml version="1.0"?> + +<configuration> + <configSections> + <sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> + <section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" /> + <section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" /> + </sectionGroup> + </configSections> + + <system.web.webPages.razor> + <host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.2.2.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> + <pages pageBaseType="System.Web.Mvc.WebViewPage"> + <namespaces> + <add namespace="System.Web.Mvc" /> + <add namespace="System.Web.Mvc.Ajax" /> + <add namespace="System.Web.Mvc.Html" /> + <add namespace="System.Web.Optimization"/> + <add namespace="System.Web.Routing" /> + <add namespace="Mobile.Search.Web" /> + </namespaces> + </pages> + </system.web.webPages.razor> + + <appSettings> + <add key="webpages:Enabled" value="false" /> + </appSettings> + + <system.webServer> + <handlers> + <remove name="BlockViewHandler"/> + <add name="BlockViewHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler" /> + </handlers> + </system.webServer> +</configuration> diff --git a/Mobile.WYSIWYG/Views/_ViewStart.cshtml b/Mobile.WYSIWYG/Views/_ViewStart.cshtml new file mode 100644 index 0000000..2de6241 --- /dev/null +++ b/Mobile.WYSIWYG/Views/_ViewStart.cshtml @@ -0,0 +1,3 @@ +@{ + Layout = "~/Views/Shared/_Layout.cshtml"; +} diff --git a/Mobile.WYSIWYG/Web.Debug.config b/Mobile.WYSIWYG/Web.Debug.config new file mode 100644 index 0000000..680849f --- /dev/null +++ b/Mobile.WYSIWYG/Web.Debug.config @@ -0,0 +1,30 @@ +<?xml version="1.0"?> + +<!-- For more information on using Web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=301874 --> + +<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> + <!-- + In the example below, the "SetAttributes" transform will change the value of + "connectionString" to use "ReleaseSQLServer" only when the "Match" locator + finds an attribute "name" that has a value of "MyDB". + + <connectionStrings> + <add name="MyDB" + connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True" + xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/> + </connectionStrings> + --> + <system.web> + <!-- + In the example below, the "Replace" transform will replace the entire + <customErrors> section of your Web.config file. + Note that because there is only one customErrors section under the + <system.web> node, there is no need to use the "xdt:Locator" attribute. + + <customErrors defaultRedirect="GenericError.htm" + mode="RemoteOnly" xdt:Transform="Replace"> + <error statusCode="500" redirect="InternalError.htm"/> + </customErrors> + --> + </system.web> +</configuration> diff --git a/Mobile.WYSIWYG/Web.Release.config b/Mobile.WYSIWYG/Web.Release.config new file mode 100644 index 0000000..826aeef --- /dev/null +++ b/Mobile.WYSIWYG/Web.Release.config @@ -0,0 +1,35 @@ +<?xml version="1.0"?> + +<!-- For more information on using Web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=301874 --> + +<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> + <!-- + In the example below, the "SetAttributes" transform will change the value of + "connectionString" to use "ReleaseSQLServer" only when the "Match" locator + finds an attribute "name" that has a value of "MyDB". + + <connectionStrings> + <add name="MyDB" + connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True" + xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/> + </connectionStrings> + --> + <appSettings> + <add key="RedisConnString" value="inbox-mobi-api.5uev6x.0001.usw2.cache.amazonaws.com:6379" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/> + <add key="rabbitMq" value="rabbitMq://10.2.10.8:5672:adk-mobile@Yamika" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/> + </appSettings> + <system.web> + <compilation xdt:Transform="RemoveAttributes(debug)" /> + <!-- + In the example below, the "Replace" transform will replace the entire + <customErrors> section of your Web.config file. + Note that because there is only one customErrors section under the + <system.web> node, there is no need to use the "xdt:Locator" attribute. + + <customErrors defaultRedirect="GenericError.htm" + mode="RemoteOnly" xdt:Transform="Replace"> + <error statusCode="500" redirect="InternalError.htm"/> + </customErrors> + --> + </system.web> +</configuration> diff --git a/Mobile.WYSIWYG/Web.config b/Mobile.WYSIWYG/Web.config new file mode 100644 index 0000000..87423a0 --- /dev/null +++ b/Mobile.WYSIWYG/Web.config @@ -0,0 +1,167 @@ +<?xml version="1.0" encoding="utf-8"?> + +<!-- + For more information on how to configure your ASP.NET application, please visit + http://go.microsoft.com/fwlink/?LinkId=301880 + --> +<configuration> + <configSections> + + <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> + <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --></configSections> + <connectionStrings> + <add name="TopKeywordsRedshiftConnection" connectionString="Server=mobile-email.cejry5nesllx.us-west-2.redshift.amazonaws.com; Database=mobileemail; UID=mobsearch; PWD=44remember/TOKYO/shouted44; Port=5439" /> + <add name="EmailConfigCampaign" connectionString="data source=54.189.228.250;Initial Catalog=EmailConfig;Persist Security Info=True;User ID=campaign_management;Password=Children is learning!;MultipleActiveResultSets=True;App=EntityFramework;Connection Timeout=25" providerName="System.Data.SqlClient" /> + <add name="EmailConfig" connectionString="data source=54.189.228.250;Initial Catalog=EmailConfig;Persist Security Info=True;User ID=chuck;Password=Is our children learning?;MultipleActiveResultSets=True;App=EntityFramework;Connection Timeout=25" providerName="System.Data.SqlClient" /> + <add name="MobileEmailRedshift" connectionString="Server=mobile-email.cejry5nesllx.us-west-2.redshift.amazonaws.com; Database=mobileemail; UID=chuck; PWD=1Sourchildrenlearning?; Port=5439; Pooling=false;" /> + </connectionStrings> + <appSettings> + <add key="webpages:Version" value="3.0.0.0" /> + <add key="webpages:Enabled" value="false" /> + <add key="ClientValidationEnabled" value="true" /> + <add key="UnobtrusiveJavaScriptEnabled" value="true" /> + <!--Queue Server--> + <!-- Public IP Address is ec2-204-236-143-164.us-west-1.compute.amazonaws.com--> + <!-- Private IP Address is 10.254.202.91--> + <!--<add key="rabbitMq" value="rabbitMq://35.165.233.171:5672:adk-mobile@Yamika" />--> + <add key="rabbitMq" value="rabbitMq://ec2-54-215-42-24.us-west-1.compute.amazonaws.com:5672:adk-mobile@Yamika" /> + <!--Queues--> + <add key="ClickQueue" value="mobile.search.click.inq" /> + <add key="QueryQueue" value="mobile.search.query.inq" /> + <add key="BidSystemQueryQueue" value="mobile.search.bidsystem.query.inq" /> + <!--Provider Config--> + <add key="YahooSourceTag" value="adknowledge_mobile_1click_c_search" /> + <add key="AWSAccessKey" value="AKIAILPIR54LYZXOAXEA" /> + <add key="AWSSecretKey" value="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" /> + <add key="SMTPMinboxHost" value="smtp.email.minbox.email" /> + <add key="SMTPSendGridHost" value="smtp.sendgrid.net" /> + <add key="SMTPSendGridUser" value="adkmobile" /> + <add key="SMTPSendGridPass" value="Sh0w me the money!" /> + <add key="Port" value="587" /> + <add key="FromMailAddress" value="offers@minbox.email" /> + <!-- temp for stats d counters --> + <!-- this is using the bidder graphite server --> + <add key="StatsDServer" value="ec2-52-6-110-37.compute-1.amazonaws.com" /> + <!--Redis server that stores the last opened, and last clicked keywords--> + <add key="RedisConnString" value="localhost:6379,abortConnect=false,syncTimeout=3000" /> + <!-- D2S Dynamo Tables for Search--> + <add key="AWSRegion" value="us-west-2" /> + <add key="AWS.DynamoDBContext.TableNamePrefix" value="prd_" /> + <add key="LogPath" value="C:\Mobile\logs\MobSearch\web-{Date}.log" /> + <!--AWSProfileName is used to reference an account that has been registered with the SDK. +If using AWS Toolkit for Visual Studio then this value is the same value shown in the AWS Explorer. +It is also possible to register an account using the <solution-dir>/packages/AWSSDK-X.X.X.X/tools/account-management.ps1 PowerShell script +that is bundled with the nuget package under the tools folder. + + <add key="AWSProfileName" value="" /> +--> + </appSettings> + <!-- + For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367. + + The following attributes can be set on the <httpRuntime> tag. + <system.Web> + <httpRuntime targetFramework="4.5.2" /> + </system.Web> + --> + <system.web> + <compilation debug="true" targetFramework="4.6.1"> + <assemblies> + <add assembly="System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> + </assemblies> + </compilation> + <httpRuntime targetFramework="4.5" requestValidationMode="2.0" maxQueryStringLength="32768" maxUrlLength="65536" maxRequestLength="65536" requestPathInvalidCharacters="*,%,:,\" /> + <customErrors mode="RemoteOnly" /> + <membership defaultProvider="ADMembershipProvider"> + <providers> + <clear /> + <add name="ADMembershipProvider" type="ADKMembershipProvider.AdkMembershipProvider" /> + </providers> + </membership> + <authentication mode="Forms"> + <forms name=".ADAuthCookie" loginUrl="~/Account/Login" timeout="9440" slidingExpiration="false" protection="All" /> + </authentication> + <machineKey validationKey="9D917A96D5FCB1E02CB44567C415E175D54FB9352ED0F3F76C42F59149DECA28E1029A3F69080A4E876357974F5ED39E75FA50498A162CD2C8B62F7701531471" decryptionKey="3F660F6419346F1C477AC77ABF3B14E65BBBAC1FA3DBCEE48EDB0DD303033735" validation="SHA1" decryption="AES" /> + </system.web> + <system.webServer> + <httpProtocol> + <customHeaders> + <add name="Access-Control-Allow-Origin" value="*" /> + <add name="Access-Control-Allow-Methods" value="GET, PUT, POST, DELETE, HEAD" /> + <add name="Access-Control-Allow-Headers" value="Origin, X-Requested-With, Content-Type, Accept" /> + </customHeaders> + </httpProtocol> + <modules /> + <security> + <requestFiltering> + <requestLimits maxQueryString="32768" maxUrl="99999" /> + </requestFiltering> + </security> + </system.webServer> + <runtime> + <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> + <dependentAssembly> + <assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" /> + <bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" /> + </dependentAssembly> + <dependentAssembly> + <assemblyIdentity name="Microsoft.Owin.Security.OAuth" publicKeyToken="31bf3856ad364e35" /> + <bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" /> + </dependentAssembly> + <dependentAssembly> + <assemblyIdentity name="Microsoft.Owin.Security.Cookies" publicKeyToken="31bf3856ad364e35" /> + <bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" /> + </dependentAssembly> + <dependentAssembly> + <assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35" /> + <bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" /> + </dependentAssembly> + <dependentAssembly> + <assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" /> + <bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" /> + </dependentAssembly> + <dependentAssembly> + <assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" /> + <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" /> + </dependentAssembly> + <dependentAssembly> + <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" /> + <bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930" /> + </dependentAssembly> + <dependentAssembly> + <assemblyIdentity name="AWSSDK" publicKeyToken="9f476d3089b52be3" culture="neutral" /> + <bindingRedirect oldVersion="0.0.0.0-2.3.55.2" newVersion="2.3.55.2" /> + </dependentAssembly> + <dependentAssembly> + <assemblyIdentity name="Serilog" publicKeyToken="24c2f752a8e58a10" culture="neutral" /> + <bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="2.0.0.0" /> + </dependentAssembly> + <dependentAssembly> + <assemblyIdentity name="Npgsql" publicKeyToken="5d8b90d52f46fda7" culture="neutral" /> + <bindingRedirect oldVersion="0.0.0.0-3.1.9.0" newVersion="3.1.9.0" /> + </dependentAssembly> + <dependentAssembly> + <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" /> + <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" /> + </dependentAssembly> + <dependentAssembly> + <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" /> + <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" /> + </dependentAssembly> + <dependentAssembly> + <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" /> + <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" /> + </dependentAssembly> + <dependentAssembly> + <assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral" /> + <bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" /> + </dependentAssembly> + </assemblyBinding> + </runtime> + <entityFramework> + <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" /> + <providers> + <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" /> + </providers> + </entityFramework> +</configuration> \ No newline at end of file diff --git a/Mobile.WYSIWYG/favicon.ico b/Mobile.WYSIWYG/favicon.ico new file mode 100644 index 0000000..a3a7999 Binary files /dev/null and b/Mobile.WYSIWYG/favicon.ico differ diff --git a/Mobile.Search.Web/fonts/FontAwesome.otf b/Mobile.WYSIWYG/fonts/FontAwesome.otf similarity index 100% rename from Mobile.Search.Web/fonts/FontAwesome.otf rename to Mobile.WYSIWYG/fonts/FontAwesome.otf diff --git a/Mobile.Search.Web/fonts/fontawesome-webfont.eot b/Mobile.WYSIWYG/fonts/fontawesome-webfont.eot similarity index 100% rename from Mobile.Search.Web/fonts/fontawesome-webfont.eot rename to Mobile.WYSIWYG/fonts/fontawesome-webfont.eot diff --git a/Mobile.Search.Web/fonts/fontawesome-webfont.svg b/Mobile.WYSIWYG/fonts/fontawesome-webfont.svg similarity index 100% rename from Mobile.Search.Web/fonts/fontawesome-webfont.svg rename to Mobile.WYSIWYG/fonts/fontawesome-webfont.svg diff --git a/Mobile.Search.Web/fonts/fontawesome-webfont.ttf b/Mobile.WYSIWYG/fonts/fontawesome-webfont.ttf similarity index 100% rename from Mobile.Search.Web/fonts/fontawesome-webfont.ttf rename to Mobile.WYSIWYG/fonts/fontawesome-webfont.ttf diff --git a/Mobile.Search.Web/fonts/fontawesome-webfont.woff b/Mobile.WYSIWYG/fonts/fontawesome-webfont.woff similarity index 100% rename from Mobile.Search.Web/fonts/fontawesome-webfont.woff rename to Mobile.WYSIWYG/fonts/fontawesome-webfont.woff diff --git a/Mobile.WYSIWYG/fonts/fontawesome-webfont.woff2 b/Mobile.WYSIWYG/fonts/fontawesome-webfont.woff2 new file mode 100644 index 0000000..7eb74fd Binary files /dev/null and b/Mobile.WYSIWYG/fonts/fontawesome-webfont.woff2 differ diff --git a/Mobile.WYSIWYG/fonts/glyphicons-halflings-regular.eot b/Mobile.WYSIWYG/fonts/glyphicons-halflings-regular.eot new file mode 100644 index 0000000..b93a495 Binary files /dev/null and b/Mobile.WYSIWYG/fonts/glyphicons-halflings-regular.eot differ diff --git a/Mobile.Search.Web/fonts/glyphicons-halflings-regular.svg b/Mobile.WYSIWYG/fonts/glyphicons-halflings-regular.svg similarity index 100% rename from Mobile.Search.Web/fonts/glyphicons-halflings-regular.svg rename to Mobile.WYSIWYG/fonts/glyphicons-halflings-regular.svg diff --git a/Mobile.WYSIWYG/fonts/glyphicons-halflings-regular.ttf b/Mobile.WYSIWYG/fonts/glyphicons-halflings-regular.ttf new file mode 100644 index 0000000..1413fc6 Binary files /dev/null and b/Mobile.WYSIWYG/fonts/glyphicons-halflings-regular.ttf differ diff --git a/Mobile.WYSIWYG/fonts/glyphicons-halflings-regular.woff b/Mobile.WYSIWYG/fonts/glyphicons-halflings-regular.woff new file mode 100644 index 0000000..9e61285 Binary files /dev/null and b/Mobile.WYSIWYG/fonts/glyphicons-halflings-regular.woff differ diff --git a/Mobile.WYSIWYG/fonts/glyphicons-halflings-regular.woff2 b/Mobile.WYSIWYG/fonts/glyphicons-halflings-regular.woff2 new file mode 100644 index 0000000..64539b5 Binary files /dev/null and b/Mobile.WYSIWYG/fonts/glyphicons-halflings-regular.woff2 differ diff --git a/Mobile.WYSIWYG/job_scheduling_data_2_0.xsd b/Mobile.WYSIWYG/job_scheduling_data_2_0.xsd new file mode 100644 index 0000000..d1dabc1 --- /dev/null +++ b/Mobile.WYSIWYG/job_scheduling_data_2_0.xsd @@ -0,0 +1,361 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" + xmlns="http://quartznet.sourceforge.net/JobSchedulingData" + targetNamespace="http://quartznet.sourceforge.net/JobSchedulingData" + elementFormDefault="qualified" + version="2.0"> + + <xs:element name="job-scheduling-data"> + <xs:annotation> + <xs:documentation>Root level node</xs:documentation> + </xs:annotation> + <xs:complexType> + <xs:sequence maxOccurs="unbounded"> + <xs:element name="pre-processing-commands" type="pre-processing-commandsType" minOccurs="0" maxOccurs="1"> + <xs:annotation> + <xs:documentation>Commands to be executed before scheduling the jobs and triggers in this file.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="processing-directives" type="processing-directivesType" minOccurs="0" maxOccurs="1"> + <xs:annotation> + <xs:documentation>Directives to be followed while scheduling the jobs and triggers in this file.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="schedule" minOccurs="0" maxOccurs="unbounded"> + <xs:complexType> + <xs:sequence maxOccurs="unbounded"> + <xs:element name="job" type="job-detailType" minOccurs="0" maxOccurs="unbounded" /> + <xs:element name="trigger" type="triggerType" minOccurs="0" maxOccurs="unbounded" /> + </xs:sequence> + </xs:complexType> + </xs:element> + </xs:sequence> + <xs:attribute name="version" type="xs:string"> + <xs:annotation> + <xs:documentation>Version of the XML Schema instance</xs:documentation> + </xs:annotation> + </xs:attribute> + </xs:complexType> + </xs:element> + + <xs:complexType name="pre-processing-commandsType"> + <xs:sequence maxOccurs="unbounded"> + <xs:element name="delete-jobs-in-group" type="xs:string" minOccurs="0" maxOccurs="unbounded"> + <xs:annotation> + <xs:documentation>Delete all jobs, if any, in the identified group. "*" can be used to identify all groups. Will also result in deleting all triggers related to the jobs.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="delete-triggers-in-group" type="xs:string" minOccurs="0" maxOccurs="unbounded"> + <xs:annotation> + <xs:documentation>Delete all triggers, if any, in the identified group. "*" can be used to identify all groups. Will also result in deletion of related jobs that are non-durable.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="delete-job" minOccurs="0" maxOccurs="unbounded"> + <xs:annotation> + <xs:documentation>Delete the identified job if it exists (will also result in deleting all triggers related to it).</xs:documentation> + </xs:annotation> + <xs:complexType> + <xs:sequence> + <xs:element name="name" type="xs:string" /> + <xs:element name="group" type="xs:string" minOccurs="0" /> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="delete-trigger" minOccurs="0" maxOccurs="unbounded"> + <xs:annotation> + <xs:documentation>Delete the identified trigger if it exists (will also result in deletion of related jobs that are non-durable).</xs:documentation> + </xs:annotation> + <xs:complexType> + <xs:sequence> + <xs:element name="name" type="xs:string" /> + <xs:element name="group" type="xs:string" minOccurs="0" /> + </xs:sequence> + </xs:complexType> + </xs:element> + </xs:sequence> + </xs:complexType> + + <xs:complexType name="processing-directivesType"> + <xs:sequence> + <xs:element name="overwrite-existing-data" type="xs:boolean" minOccurs="0" default="true"> + <xs:annotation> + <xs:documentation>Whether the existing scheduling data (with same identifiers) will be overwritten. If false, and ignore-duplicates is not false, and jobs or triggers with the same names already exist as those in the file, an error will occur.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="ignore-duplicates" type="xs:boolean" minOccurs="0" default="false"> + <xs:annotation> + <xs:documentation>If true (and overwrite-existing-data is false) then any job/triggers encountered in this file that have names that already exist in the scheduler will be ignored, and no error will be produced.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="schedule-trigger-relative-to-replaced-trigger" type="xs:boolean" minOccurs="0" default="false"> + <xs:annotation> + <xs:documentation>If true trigger's start time is calculated based on earlier run time instead of fixed value. Trigger's start time must be undefined for this to work.</xs:documentation> + </xs:annotation> + </xs:element> + </xs:sequence> + </xs:complexType> + + <xs:complexType name="job-detailType"> + <xs:annotation> + <xs:documentation>Define a JobDetail</xs:documentation> + </xs:annotation> + <xs:sequence> + <xs:element name="name" type="xs:string" /> + <xs:element name="group" type="xs:string" minOccurs="0" /> + <xs:element name="description" type="xs:string" minOccurs="0" /> + <xs:element name="job-type" type="xs:string" /> + <xs:sequence minOccurs="0"> + <xs:element name="durable" type="xs:boolean" /> + <xs:element name="recover" type="xs:boolean" /> + </xs:sequence> + <xs:element name="job-data-map" type="job-data-mapType" minOccurs="0" /> + </xs:sequence> + </xs:complexType> + + <xs:complexType name="job-data-mapType"> + <xs:annotation> + <xs:documentation>Define a JobDataMap</xs:documentation> + </xs:annotation> + <xs:sequence minOccurs="0" maxOccurs="unbounded"> + <xs:element name="entry" type="entryType" /> + </xs:sequence> + </xs:complexType> + + <xs:complexType name="entryType"> + <xs:annotation> + <xs:documentation>Define a JobDataMap entry</xs:documentation> + </xs:annotation> + <xs:sequence> + <xs:element name="key" type="xs:string" /> + <xs:element name="value" type="xs:string" /> + </xs:sequence> + </xs:complexType> + + <xs:complexType name="triggerType"> + <xs:annotation> + <xs:documentation>Define a Trigger</xs:documentation> + </xs:annotation> + <xs:choice> + <xs:element name="simple" type="simpleTriggerType" /> + <xs:element name="cron" type="cronTriggerType" /> + <xs:element name="calendar-interval" type="calendarIntervalTriggerType" /> + </xs:choice> + </xs:complexType> + + <xs:complexType name="abstractTriggerType" abstract="true"> + <xs:annotation> + <xs:documentation>Common Trigger definitions</xs:documentation> + </xs:annotation> + <xs:sequence> + <xs:element name="name" type="xs:string" /> + <xs:element name="group" type="xs:string" minOccurs="0" /> + <xs:element name="description" type="xs:string" minOccurs="0" /> + <xs:element name="job-name" type="xs:string" /> + <xs:element name="job-group" type="xs:string" minOccurs="0" /> + <xs:element name="priority" type="xs:nonNegativeInteger" minOccurs="0" /> + <xs:element name="calendar-name" type="xs:string" minOccurs="0" /> + <xs:element name="job-data-map" type="job-data-mapType" minOccurs="0" /> + <xs:sequence minOccurs="0"> + <xs:choice> + <xs:element name="start-time" type="xs:dateTime" /> + <xs:element name="start-time-seconds-in-future" type="xs:nonNegativeInteger" /> + </xs:choice> + <xs:element name="end-time" type="xs:dateTime" minOccurs="0" /> + </xs:sequence> + </xs:sequence> + </xs:complexType> + + <xs:complexType name="simpleTriggerType"> + <xs:annotation> + <xs:documentation>Define a SimpleTrigger</xs:documentation> + </xs:annotation> + <xs:complexContent> + <xs:extension base="abstractTriggerType"> + <xs:sequence> + <xs:element name="misfire-instruction" type="simple-trigger-misfire-instructionType" minOccurs="0" /> + <xs:sequence minOccurs="0"> + <xs:element name="repeat-count" type="repeat-countType" /> + <xs:element name="repeat-interval" type="xs:nonNegativeInteger" /> + </xs:sequence> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="cronTriggerType"> + <xs:annotation> + <xs:documentation>Define a CronTrigger</xs:documentation> + </xs:annotation> + <xs:complexContent> + <xs:extension base="abstractTriggerType"> + <xs:sequence> + <xs:element name="misfire-instruction" type="cron-trigger-misfire-instructionType" minOccurs="0" /> + <xs:element name="cron-expression" type="cron-expressionType" /> + <xs:element name="time-zone" type="xs:string" minOccurs="0" /> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="calendarIntervalTriggerType"> + <xs:annotation> + <xs:documentation>Define a DateIntervalTrigger</xs:documentation> + </xs:annotation> + <xs:complexContent> + <xs:extension base="abstractTriggerType"> + <xs:sequence> + <xs:element name="misfire-instruction" type="date-interval-trigger-misfire-instructionType" minOccurs="0" /> + <xs:element name="repeat-interval" type="xs:nonNegativeInteger" /> + <xs:element name="repeat-interval-unit" type="interval-unitType" /> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:simpleType name="cron-expressionType"> + <xs:annotation> + <xs:documentation> + Cron expression (see JavaDoc for examples) + + Special thanks to Chris Thatcher (thatcher@butterfly.net) for the regular expression! + + Regular expressions are not my strong point but I believe this is complete, + with the caveat that order for expressions like 3-0 is not legal but will pass, + and month and day names must be capitalized. + If you want to examine the correctness look for the [\s] to denote the + seperation of individual regular expressions. This is how I break them up visually + to examine them: + + SECONDS: + ( + ((([0-9]|[0-5][0-9])(-([0-9]|[0-5][0-9]))?,)*([0-9]|[0-5][0-9])(-([0-9]|[0-5][0-9]))?) + | (([\*]|[0-9]|[0-5][0-9])/([0-9]|[0-5][0-9])) + | ([\?]) + | ([\*]) + ) [\s] + MINUTES: + ( + ((([0-9]|[0-5][0-9])(-([0-9]|[0-5][0-9]))?,)*([0-9]|[0-5][0-9])(-([0-9]|[0-5][0-9]))?) + | (([\*]|[0-9]|[0-5][0-9])/([0-9]|[0-5][0-9])) + | ([\?]) + | ([\*]) + ) [\s] + HOURS: + ( + ((([0-9]|[0-1][0-9]|[2][0-3])(-([0-9]|[0-1][0-9]|[2][0-3]))?,)*([0-9]|[0-1][0-9]|[2][0-3])(-([0-9]|[0-1][0-9]|[2][0-3]))?) + | (([\*]|[0-9]|[0-1][0-9]|[2][0-3])/([0-9]|[0-1][0-9]|[2][0-3])) + | ([\?]) + | ([\*]) + ) [\s] + DAY OF MONTH: + ( + ((([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1])(-([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1]))?,)*([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1])(-([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1]))?(C)?) + | (([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1])/([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1])(C)?) + | (L(-[0-9])?) + | (L(-[1-2][0-9])?) + | (L(-[3][0-1])?) + | (LW) + | ([1-9]W) + | ([1-3][0-9]W) + | ([\?]) + | ([\*]) + )[\s] + MONTH: + ( + ((([1-9]|0[1-9]|1[0-2])(-([1-9]|0[1-9]|1[0-2]))?,)*([1-9]|0[1-9]|1[0-2])(-([1-9]|0[1-9]|1[0-2]))?) + | (([1-9]|0[1-9]|1[0-2])/([1-9]|0[1-9]|1[0-2])) + | (((JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)(-(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC))?,)*(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)(-(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC))?) + | ((JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)/(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)) + | ([\?]) + | ([\*]) + )[\s] + DAY OF WEEK: + ( + (([1-7](-([1-7]))?,)*([1-7])(-([1-7]))?) + | ([1-7]/([1-7])) + | (((MON|TUE|WED|THU|FRI|SAT|SUN)(-(MON|TUE|WED|THU|FRI|SAT|SUN))?,)*(MON|TUE|WED|THU|FRI|SAT|SUN)(-(MON|TUE|WED|THU|FRI|SAT|SUN))?(C)?) + | ((MON|TUE|WED|THU|FRI|SAT|SUN)/(MON|TUE|WED|THU|FRI|SAT|SUN)(C)?) + | (([1-7]|(MON|TUE|WED|THU|FRI|SAT|SUN))(L|LW)?) + | (([1-7]|MON|TUE|WED|THU|FRI|SAT|SUN)#([1-7])?) + | ([\?]) + | ([\*]) + ) + YEAR (OPTIONAL): + ( + [\s]? + ([\*])? + | ((19[7-9][0-9])|(20[0-9][0-9]))? + | (((19[7-9][0-9])|(20[0-9][0-9]))/((19[7-9][0-9])|(20[0-9][0-9])))? + | ((((19[7-9][0-9])|(20[0-9][0-9]))(-((19[7-9][0-9])|(20[0-9][0-9])))?,)*((19[7-9][0-9])|(20[0-9][0-9]))(-((19[7-9][0-9])|(20[0-9][0-9])))?)? + ) + </xs:documentation> + </xs:annotation> + <xs:restriction base="xs:string"> + <xs:pattern + value="(((([0-9]|[0-5][0-9])(-([0-9]|[0-5][0-9]))?,)*([0-9]|[0-5][0-9])(-([0-9]|[0-5][0-9]))?)|(([\*]|[0-9]|[0-5][0-9])/([0-9]|[0-5][0-9]))|([\?])|([\*]))[\s](((([0-9]|[0-5][0-9])(-([0-9]|[0-5][0-9]))?,)*([0-9]|[0-5][0-9])(-([0-9]|[0-5][0-9]))?)|(([\*]|[0-9]|[0-5][0-9])/([0-9]|[0-5][0-9]))|([\?])|([\*]))[\s](((([0-9]|[0-1][0-9]|[2][0-3])(-([0-9]|[0-1][0-9]|[2][0-3]))?,)*([0-9]|[0-1][0-9]|[2][0-3])(-([0-9]|[0-1][0-9]|[2][0-3]))?)|(([\*]|[0-9]|[0-1][0-9]|[2][0-3])/([0-9]|[0-1][0-9]|[2][0-3]))|([\?])|([\*]))[\s](((([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1])(-([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1]))?,)*([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1])(-([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1]))?(C)?)|(([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1])/([1-9]|[0][1-9]|[1-2][0-9]|[3][0-1])(C)?)|(L(-[0-9])?)|(L(-[1-2][0-9])?)|(L(-[3][0-1])?)|(LW)|([1-9]W)|([1-3][0-9]W)|([\?])|([\*]))[\s](((([1-9]|0[1-9]|1[0-2])(-([1-9]|0[1-9]|1[0-2]))?,)*([1-9]|0[1-9]|1[0-2])(-([1-9]|0[1-9]|1[0-2]))?)|(([1-9]|0[1-9]|1[0-2])/([1-9]|0[1-9]|1[0-2]))|(((JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)(-(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC))?,)*(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)(-(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC))?)|((JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)/(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC))|([\?])|([\*]))[\s]((([1-7](-([1-7]))?,)*([1-7])(-([1-7]))?)|([1-7]/([1-7]))|(((MON|TUE|WED|THU|FRI|SAT|SUN)(-(MON|TUE|WED|THU|FRI|SAT|SUN))?,)*(MON|TUE|WED|THU|FRI|SAT|SUN)(-(MON|TUE|WED|THU|FRI|SAT|SUN))?(C)?)|((MON|TUE|WED|THU|FRI|SAT|SUN)/(MON|TUE|WED|THU|FRI|SAT|SUN)(C)?)|(([1-7]|(MON|TUE|WED|THU|FRI|SAT|SUN))?(L|LW)?)|(([1-7]|MON|TUE|WED|THU|FRI|SAT|SUN)#([1-7])?)|([\?])|([\*]))([\s]?(([\*])?|(19[7-9][0-9])|(20[0-9][0-9]))?| (((19[7-9][0-9])|(20[0-9][0-9]))/((19[7-9][0-9])|(20[0-9][0-9])))?| ((((19[7-9][0-9])|(20[0-9][0-9]))(-((19[7-9][0-9])|(20[0-9][0-9])))?,)*((19[7-9][0-9])|(20[0-9][0-9]))(-((19[7-9][0-9])|(20[0-9][0-9])))?)?)" /> + </xs:restriction> + </xs:simpleType> + + <xs:simpleType name="repeat-countType"> + <xs:annotation> + <xs:documentation>Number of times to repeat the Trigger (-1 for indefinite)</xs:documentation> + </xs:annotation> + <xs:restriction base="xs:integer"> + <xs:minInclusive value="-1" /> + </xs:restriction> + </xs:simpleType> + + + <xs:simpleType name="simple-trigger-misfire-instructionType"> + <xs:annotation> + <xs:documentation>Simple Trigger Misfire Instructions</xs:documentation> + </xs:annotation> + <xs:restriction base="xs:string"> + <xs:pattern value="SmartPolicy" /> + <xs:pattern value="RescheduleNextWithExistingCount" /> + <xs:pattern value="RescheduleNextWithRemainingCount" /> + <xs:pattern value="RescheduleNowWithExistingRepeatCount" /> + <xs:pattern value="RescheduleNowWithRemainingRepeatCount" /> + <xs:pattern value="FireNow" /> + </xs:restriction> + </xs:simpleType> + + <xs:simpleType name="cron-trigger-misfire-instructionType"> + <xs:annotation> + <xs:documentation>Cron Trigger Misfire Instructions</xs:documentation> + </xs:annotation> + <xs:restriction base="xs:string"> + <xs:pattern value="SmartPolicy" /> + <xs:pattern value="DoNothing" /> + <xs:pattern value="FireOnceNow" /> + </xs:restriction> + </xs:simpleType> + + <xs:simpleType name="date-interval-trigger-misfire-instructionType"> + <xs:annotation> + <xs:documentation>Date Interval Trigger Misfire Instructions</xs:documentation> + </xs:annotation> + <xs:restriction base="xs:string"> + <xs:pattern value="SmartPolicy" /> + <xs:pattern value="DoNothing" /> + <xs:pattern value="FireOnceNow" /> + </xs:restriction> + </xs:simpleType> + + <xs:simpleType name="interval-unitType"> + <xs:annotation> + <xs:documentation>Interval Units</xs:documentation> + </xs:annotation> + <xs:restriction base="xs:string"> + <xs:pattern value="Day" /> + <xs:pattern value="Hour" /> + <xs:pattern value="Minute" /> + <xs:pattern value="Month" /> + <xs:pattern value="Second" /> + <xs:pattern value="Week" /> + <xs:pattern value="Year" /> + </xs:restriction> + </xs:simpleType> + +</xs:schema> \ No newline at end of file diff --git a/Mobile.WYSIWYG/packages.config b/Mobile.WYSIWYG/packages.config new file mode 100644 index 0000000..5ef249c --- /dev/null +++ b/Mobile.WYSIWYG/packages.config @@ -0,0 +1,67 @@ +<?xml version="1.0" encoding="utf-8"?> +<packages> + <package id="ADKMembershipProvider" version="0.0.8" targetFramework="net461" /> + <package id="Antlr" version="3.5.0.2" targetFramework="net461" /> + <package id="AWSSDK" version="2.3.55.2" targetFramework="net461" /> + <package id="AWSSDK.Core" version="3.3.21.16" targetFramework="net461" /> + <package id="AWSSDK.S3" version="3.3.17.2" targetFramework="net461" /> + <package id="bootstrap" version="3.3.7" targetFramework="net461" /> + <package id="Chronos" version="0.0.153" targetFramework="net461" /> + <package id="Chronos.AWS" version="0.0.153" targetFramework="net461" /> + <package id="CodeMirror.NuGet" version="5.19.0" targetFramework="net461" /> + <package id="Common.Logging" version="3.3.1" targetFramework="net461" /> + <package id="Common.Logging.Core" version="3.3.1" targetFramework="net461" /> + <package id="EntityFramework" version="6.1.3" targetFramework="net461" /> + <package id="FontAwesome" version="4.6.3" targetFramework="net461" /> + <package id="FroalaEditor" version="2.7.6" targetFramework="net461" /> + <package id="FroalaEditorSDK" version="1.0.1" targetFramework="net461" /> + <package id="HtmlAgilityPack" version="1.4.9.5" targetFramework="net461" /> + <package id="Inferno" version="1.4.0" targetFramework="net461" /> + <package id="jQuery" version="3.1.1" targetFramework="net461" /> + <package id="jQuery.Validation" version="1.15.1" targetFramework="net461" /> + <package id="Magick.NET-Q16-AnyCPU" version="7.0.3.502" targetFramework="net461" /> + <package id="Magick.NET-Q16-x86" version="7.4.3" targetFramework="net461" /> + <package id="Microsoft.AspNet.Identity.Core" version="2.2.1" targetFramework="net461" /> + <package id="Microsoft.AspNet.Identity.EntityFramework" version="2.2.1" targetFramework="net461" /> + <package id="Microsoft.AspNet.Identity.Owin" version="2.2.1" targetFramework="net461" /> + <package id="Microsoft.AspNet.Mvc" version="5.2.3" targetFramework="net461" /> + <package id="Microsoft.AspNet.Razor" version="3.2.3" targetFramework="net461" /> + <package id="Microsoft.AspNet.Web.Optimization" version="1.1.3" targetFramework="net45" /> + <package id="Microsoft.AspNet.WebPages" version="3.2.3" targetFramework="net461" /> + <package id="Microsoft.jQuery.Unobtrusive.Validation" version="3.2.3" targetFramework="net461" /> + <package id="Microsoft.Owin" version="3.0.1" targetFramework="net461" /> + <package id="Microsoft.Owin.Host.SystemWeb" version="3.0.1" targetFramework="net461" /> + <package id="Microsoft.Owin.Security" version="3.0.1" targetFramework="net461" /> + <package id="Microsoft.Owin.Security.Cookies" version="3.0.1" targetFramework="net461" /> + <package id="Microsoft.Owin.Security.Facebook" version="3.0.1" targetFramework="net461" /> + <package id="Microsoft.Owin.Security.Google" version="3.0.1" targetFramework="net461" /> + <package id="Microsoft.Owin.Security.MicrosoftAccount" version="3.0.1" targetFramework="net461" /> + <package id="Microsoft.Owin.Security.OAuth" version="3.0.1" targetFramework="net461" /> + <package id="Microsoft.Owin.Security.Twitter" version="3.0.1" targetFramework="net461" /> + <package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net45" /> + <package id="Modernizr" version="2.8.3" targetFramework="net461" /> + <package id="Newtonsoft.Json" version="9.0.1" targetFramework="net461" /> + <package id="Npgsql" version="3.1.9" targetFramework="net461" /> + <package id="Nustache" version="1.16.0.4" targetFramework="net461" /> + <package id="OctoPack" version="3.4.6" targetFramework="net461" developmentDependency="true" /> + <package id="Owin" version="1.0" targetFramework="net45" /> + <package id="PagedList" version="1.17.0.0" targetFramework="net461" /> + <package id="PagedList.Mvc" version="4.5.0.0" targetFramework="net461" /> + <package id="Quartz" version="2.4.1" targetFramework="net461" /> + <package id="RabbitMQ.Client" version="3.5.0" targetFramework="net45" /> + <package id="Respond" version="1.4.2" targetFramework="net461" /> + <package id="Rx-Core" version="2.2.5" targetFramework="net45" /> + <package id="Rx-Interfaces" version="2.2.5" targetFramework="net45" /> + <package id="Rx-Linq" version="2.2.5" targetFramework="net45" /> + <package id="Serilog" version="2.3.0" targetFramework="net461" /> + <package id="Serilog.Enrichers.Environment" version="2.1.1" targetFramework="net461" /> + <package id="Serilog.Formatting.Compact" version="1.0.0" targetFramework="net461" /> + <package id="Serilog.Sinks.File" version="3.1.1" targetFramework="net461" /> + <package id="Serilog.Sinks.PeriodicBatching" version="2.1.0" targetFramework="net461" /> + <package id="Serilog.Sinks.RollingFile" version="3.2.0" targetFramework="net461" /> + <package id="Serilog.Sinks.Seq" version="3.1.1" targetFramework="net461" /> + <package id="ServiceStack.Text" version="4.5.4" targetFramework="net461" /> + <package id="StackExchange.Redis" version="1.1.608" targetFramework="net461" /> + <package id="StatsdClient" version="1.4.51" targetFramework="net461" /> + <package id="WebGrease" version="1.6.0" targetFramework="net461" /> +</packages> \ No newline at end of file diff --git a/Mobile.WYSIWYG/readme.md b/Mobile.WYSIWYG/readme.md new file mode 100644 index 0000000..2504179 --- /dev/null +++ b/Mobile.WYSIWYG/readme.md @@ -0,0 +1,19 @@ +http://mobsearch.adk-mobile.com/search/templatejson + +D2S Endpoint, expects these params + +``` +templateKey - the mobsearch template to use for showing results +keyword - the keyword to search for +clickWrapper - click wrapper to track clicks, {URL} macro must be present and be redirected to to work +footer - base64 encoded footer (only avail for some templates) +c = 5 - the number of ads +debug - if true the data won't be tracked in the searches schema +subject - no effect +hotspot - no effect, +partner - the source tag, +typeTag - the type tag to use, +userAgent - override the user agent if you want (to yahoo and tracking), +ip - override the ip address, +subid - can be whatever you want +``` \ No newline at end of file diff --git a/Mobile.WYSIWYG/robots.txt b/Mobile.WYSIWYG/robots.txt new file mode 100644 index 0000000..f870a67 --- /dev/null +++ b/Mobile.WYSIWYG/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: / \ No newline at end of file