Skip to content

Commit 80caa5b

Browse files
authored
Merge pull request #14 from sho-yamane/fix-quotations
クォーテーション修正
2 parents 50a531a + b305022 commit 80caa5b

File tree

3 files changed

+20
-17
lines changed

3 files changed

+20
-17
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,7 @@ node_modules
1616
.nuxt
1717

1818
# Distribution
19-
#dist
19+
#dist
20+
21+
# Editor
22+
.idea

dist/ie-buster.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,24 @@
33
function ieBusterUserAgentCheck() {
44
var ieBusterUserAgent = window.navigator.userAgent.toLowerCase()
55
if (
6-
~ieBusterUserAgent.indexOf("msie") ||
7-
~ieBusterUserAgent.indexOf("trident")
6+
~ieBusterUserAgent.indexOf('msie') ||
7+
~ieBusterUserAgent.indexOf('trident')
88
)
99
return true
1010
}
1111

1212
if (ieBusterUserAgentCheck()) {
13-
var ieBusterTarget = document.getElementsByTagName("body")[0]
14-
var ieBusterApp = document.createElement("div")
13+
var ieBusterTarget = document.getElementsByTagName('body')[0]
14+
var ieBusterApp = document.createElement('div')
1515
ieBusterApp.innerHTML =
1616
'<div style="position: fixed; top: 0px; left: 0; width: 100%; padding: 16px; box-sizing: border-box; z-index: 999999;">' +
1717
'<div style="width: 100%; max-width:866px; margin: 0 auto; padding: 16px 20px; background-color: #fff; box-shadow: rgba(0, 0, 0, 0.4) 0px 0px 5px 0px; box-sizing: border-box; font-family: SegoeUI, Meiryo, sans-serif;">' +
1818
'<p style="display: block; float: left; width: 100%; max-width: 664px; margin: 0; color: #000; font-size: 14px; font-weight: 400; line-height: 1.5;">' +
19-
"ご利用のインターネットブラウザは推奨環境ではありません。セキュリティリスクが高い状態ですので、最新の Google Chrome をご利用ください。" +
20-
"</p>" +
19+
'ご利用のインターネットブラウザは推奨環境ではありません。セキュリティリスクが高い状態ですので、最新の Google Chrome をご利用ください。' +
20+
'</p>' +
2121
'<a style="display: block; float: right; height: 36px; width: 154px; padding: 0 16px; background-color: rgb(0, 120, 212); box-sizing: border-box; color: #fff; font-size: 12px; font-weight: 400; line-height: 36px; text-align: center; text-decoration: none; white-space: nowrap;" href="https://www.google.com/chrome/" target="_blank" rel="noopener noreferrer">ダウンロードページへ</a>' +
2222
'<div style="clear: both;"></div>' +
23-
"</div>" +
24-
"</div>"
23+
'</div>' +
24+
'</div>'
2525
ieBusterTarget.appendChild(ieBusterApp)
2626
}

src/app/ie-buster.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
function ieBusterUserAgentCheck() {
22
var ieBusterUserAgent = window.navigator.userAgent.toLowerCase()
33
if (
4-
~ieBusterUserAgent.indexOf("msie") ||
5-
~ieBusterUserAgent.indexOf("trident")
4+
~ieBusterUserAgent.indexOf('msie') ||
5+
~ieBusterUserAgent.indexOf('trident')
66
)
77
return true
88
}
99

1010
if (ieBusterUserAgentCheck()) {
11-
var ieBusterTarget = document.getElementsByTagName("body")[0]
12-
var ieBusterApp = document.createElement("div")
11+
var ieBusterTarget = document.getElementsByTagName('body')[0]
12+
var ieBusterApp = document.createElement('div')
1313
ieBusterApp.innerHTML =
1414
'<div style="position: fixed; top: 0px; left: 0; width: 100%; padding: 16px; box-sizing: border-box; z-index: 999999;">' +
1515
'<div style="width: 100%; max-width:866px; margin: 0 auto; padding: 16px 20px; background-color: #fff; box-shadow: rgba(0, 0, 0, 0.4) 0px 0px 5px 0px; box-sizing: border-box; font-family: SegoeUI, Meiryo, sans-serif;">' +
1616
'<p style="display: block; float: left; width: 100%; max-width: 664px; margin: 0; color: #000; font-size: 14px; font-weight: 400; line-height: 1.5;">' +
17-
"ご利用のインターネットブラウザは推奨環境ではありません。セキュリティリスクが高い状態ですので、最新の Google Chrome をご利用ください。" +
18-
"</p>" +
17+
'ご利用のインターネットブラウザは推奨環境ではありません。セキュリティリスクが高い状態ですので、最新の Google Chrome をご利用ください。' +
18+
'</p>' +
1919
'<a style="display: block; float: right; height: 36px; width: 154px; padding: 0 16px; background-color: rgb(0, 120, 212); box-sizing: border-box; color: #fff; font-size: 12px; font-weight: 400; line-height: 36px; text-align: center; text-decoration: none; white-space: nowrap;" href="https://www.google.com/chrome/" target="_blank" rel="noopener noreferrer">ダウンロードページへ</a>' +
2020
'<div style="clear: both;"></div>' +
21-
"</div>" +
22-
"</div>"
21+
'</div>' +
22+
'</div>'
2323
ieBusterTarget.appendChild(ieBusterApp)
2424
}

0 commit comments

Comments
 (0)