BVB Source Codes

Squire Show Constants.js Source code

Return Download Squire: download Constants.js Source code - Download Squire Source code - Type:.js
  1. /*jshint strict:false, undef:false, unused:false */
  2.  
  3. var DOCUMENT_POSITION_PRECEDING = 2; // Node.DOCUMENT_POSITION_PRECEDING
  4. var ELEMENT_NODE = 1;                // Node.ELEMENT_NODE;
  5. var TEXT_NODE = 3;                   // Node.TEXT_NODE;
  6. var DOCUMENT_NODE = 9;               // Node.DOCUMENT_NODE;
  7. var DOCUMENT_FRAGMENT_NODE = 11;     // Node.DOCUMENT_FRAGMENT_NODE;
  8. var SHOW_ELEMENT = 1;                // NodeFilter.SHOW_ELEMENT;
  9. var SHOW_TEXT = 4;                   // NodeFilter.SHOW_TEXT;
  10.  
  11. var START_TO_START = 0; // Range.START_TO_START
  12. var START_TO_END = 1;   // Range.START_TO_END
  13. var END_TO_END = 2;     // Range.END_TO_END
  14. var END_TO_START = 3;   // Range.END_TO_START
  15.  
  16. var HIGHLIGHT_CLASS = 'highlight';
  17. var COLOUR_CLASS = 'colour';
  18. var FONT_FAMILY_CLASS = 'font';
  19. var FONT_SIZE_CLASS = 'size';
  20.  
  21. var ZWS = '\u200B';
  22.  
  23. var win = doc.defaultView;
  24.  
  25. var ua = navigator.userAgent;
  26.  
  27. var isAndroid = /Android/.test( ua );
  28. var isIOS = /iP(?:ad|hone|od)/.test( ua );
  29. var isMac = /Mac OS X/.test( ua );
  30. var isWin = /Windows NT/.test( ua );
  31.  
  32. var isGecko = /Gecko\//.test( ua );
  33. var isIElt11 = /Trident\/[456]\./.test( ua );
  34. var isPresto = !!win.opera;
  35. var isEdge = /Edge\//.test( ua );
  36. var isWebKit = !isEdge && /WebKit\//.test( ua );
  37. var isIE = /Trident\/[4567]\./.test( ua );
  38.  
  39. var ctrlKey = isMac ? 'meta-' : 'ctrl-';
  40.  
  41. var useTextFixer = isIElt11 || isPresto;
  42. var cantFocusEmptyTextNodes = isIElt11 || isWebKit;
  43. var losesSelectionOnBlur = isIElt11;
  44.  
  45. var canObserveMutations = typeof MutationObserver !== 'undefined';
  46. var canWeakMap = typeof WeakMap !== 'undefined';
  47.  
  48. // Use [^ \t\r\n] instead of \S so that nbsp does not count as white-space
  49. var notWS = /[^ \t\r\n]/;
  50.  
  51. var indexOf = Array.prototype.indexOf;
  52.  
  53. // Polyfill for FF3.5
  54. if ( !Object.create ) {
  55.     Object.create = function ( proto ) {
  56.         var F = function () {};
  57.         F.prototype = proto;
  58.         return new F();
  59.     };
  60. }
  61.  
downloadConstants.js Source code - Download Squire Source code
Related Source Codes/Software:
thor - Thor is a toolkit for building powerful command-li... 2017-01-08
glide - Package Management for Golang h... 2017-01-08
TextFieldEffects - Custom UITextFields effects inspired by Codrops, b... 2017-01-08
flowchart.js - Draws simple SVG flow chart diagrams from textual ... 2017-01-08
RoundedImageView - A fast ImageView that supports rounded corners, ov... 2017-01-07
webpack-demos - a collection of simple demos of Webpack 2017-01-08
amazon-dsstne - Deep Scalable Sparse Tensor Network Engine (DSSTNE... 2017-01-08
rq - Simple job queues for Python ht... 2017-01-08
emmet-vim - emmet for vim: http://emmet.io/ ... 2017-01-08
prose - A Content Editor for GitHub. ht... 2017-01-08
discover-flask - Full Stack Web Development with Flask. ... 2017-01-12
spring-mvc-showcase - Demonstrates the features of the Spring MVC web fr... 2017-01-12
tushare - TuShare is a utility for crawling historical data ... 2017-01-12
raml-spec - RAML Specification http://raml.... 2017-01-12
android-stackblur - Android StackBlur is a library that can perform a ... 2017-01-12
sound-redux - A Soundcloud client built with React / Redux ... 2017-01-12
httpstat - curl statistics made simple 2017-01-12
vim - Vim configuration file and plug-ins 2017-01-12
appframework - The definitive HTML5 mobile javascript framework ... 2017-01-12
BaiduExporter - Assistant for Baidu to export download links to ar... 2017-01-11

 Back to top