jhtmlarea 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jhtmlarea
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dow Drake
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-19 00:00:00.000000000 Z
11
+ date: 2013-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,9 +72,8 @@ files:
72
72
  - vendor/assets/images/jHtmlArea.png
73
73
  - vendor/assets/images/jHtmlArea_Toolbar_Group_BG.png
74
74
  - vendor/assets/images/jHtmlArea_Toolbar_Group__Btn_Select_BG.png
75
- - vendor/assets/javascripts/browserDetect.js
76
- - vendor/assets/javascripts/jHtmlArea-0.7.5.js
77
- - vendor/assets/javascripts/jHtmlArea.ColorPickerMenu-0.7.0.js
75
+ - vendor/assets/javascripts/jHtmlArea-0.8.0.js
76
+ - vendor/assets/javascripts/jHtmlArea.ColorPickerMenu-0.8.0.js
78
77
  - vendor/assets/stylesheets/jHtmlArea.ColorPickerMenu.css.scss
79
78
  - vendor/assets/stylesheets/jHtmlArea.Editor.css.scss
80
79
  - vendor/assets/stylesheets/jHtmlArea.css.scss
@@ -1,118 +0,0 @@
1
- // http://www.quirksmode.org/js/detect.htmlvar
2
- BrowserDetect = {
3
- init: function () {
4
- this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
5
- this.version = this.searchVersion(navigator.userAgent)
6
- || this.searchVersion(navigator.appVersion)
7
- || "an unknown version";
8
- this.OS = this.searchString(this.dataOS) || "an unknown OS";
9
- },
10
- searchString: function (data) {
11
- for (var i=0;i<data.length;i++) {
12
- var dataString = data[i].string;
13
- var dataProp = data[i].prop;
14
- this.versionSearchString = data[i].versionSearch || data[i].identity;
15
- if (dataString) {
16
- if (dataString.indexOf(data[i].subString) != -1)
17
- return data[i].identity;
18
- }
19
- else if (dataProp)
20
- return data[i].identity;
21
- }
22
- },
23
- searchVersion: function (dataString) {
24
- var index = dataString.indexOf(this.versionSearchString);
25
- if (index == -1) return;
26
- return parseFloat(dataString.substring(index+this.versionSearchString.length+1));
27
- },
28
- dataBrowser: [
29
- {
30
- string: navigator.userAgent,
31
- subString: "Chrome",
32
- identity: "Chrome"
33
- },
34
- { string: navigator.userAgent,
35
- subString: "OmniWeb",
36
- versionSearch: "OmniWeb/",
37
- identity: "OmniWeb"
38
- },
39
- {
40
- string: navigator.vendor,
41
- subString: "Apple",
42
- identity: "Safari",
43
- versionSearch: "Version"
44
- },
45
- {
46
- prop: window.opera,
47
- identity: "Opera",
48
- versionSearch: "Version"
49
- },
50
- {
51
- string: navigator.vendor,
52
- subString: "iCab",
53
- identity: "iCab"
54
- },
55
- {
56
- string: navigator.vendor,
57
- subString: "KDE",
58
- identity: "Konqueror"
59
- },
60
- {
61
- string: navigator.userAgent,
62
- subString: "Firefox",
63
- identity: "Firefox"
64
- },
65
- {
66
- string: navigator.vendor,
67
- subString: "Camino",
68
- identity: "Camino"
69
- },
70
- { // for newer Netscapes (6+)
71
- string: navigator.userAgent,
72
- subString: "Netscape",
73
- identity: "Netscape"
74
- },
75
- {
76
- string: navigator.userAgent,
77
- subString: "MSIE",
78
- identity: "Explorer",
79
- versionSearch: "MSIE"
80
- },
81
- {
82
- string: navigator.userAgent,
83
- subString: "Gecko",
84
- identity: "Mozilla",
85
- versionSearch: "rv"
86
- },
87
- { // for older Netscapes (4-)
88
- string: navigator.userAgent,
89
- subString: "Mozilla",
90
- identity: "Netscape",
91
- versionSearch: "Mozilla"
92
- }
93
- ],
94
- dataOS : [
95
- {
96
- string: navigator.platform,
97
- subString: "Win",
98
- identity: "Windows"
99
- },
100
- {
101
- string: navigator.platform,
102
- subString: "Mac",
103
- identity: "Mac"
104
- },
105
- {
106
- string: navigator.userAgent,
107
- subString: "iPhone",
108
- identity: "iPhone/iPod"
109
- },
110
- {
111
- string: navigator.platform,
112
- subString: "Linux",
113
- identity: "Linux"
114
- }
115
- ]
116
-
117
- };
118
- BrowserDetect.init();