Skip to content

Commit

Permalink
add title
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Apr 18, 2015
1 parent adbdc49 commit 586d904
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/outdatedbrowser.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/outdatedbrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
this.container = document.createElement('div'),
this.container.className = 'outdatedbrowser'
browserUpdate(json)
container.innerHTML = '<span class="split"></span>' + createHTML(json)
container.innerHTML = '<h1>请更新浏览器</h1><span class="split"></span>' + createHTML(json)
document.body.appendChild(container)
addCSS(style);
// addCSS(style);
}
function browserUpdate (json) {
if(!json) return;
Expand Down
2 changes: 2 additions & 0 deletions lib/outdatedbrowser.styl
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ body,html
display:block
width:100%
padding-top:20px
left:0
top:0
color:#046D00
.split
display: inline-block
Expand Down
2 changes: 1 addition & 1 deletion test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>过时的浏览器</title>
<!-- <link rel="stylesheet" type="text/css" href="outdatedbrowser.css"> -->
<link rel="stylesheet" type="text/css" href="outdatedbrowser.css">
</head>
<body>
<!-- <div class="outdatedbrowser">
Expand Down
2 changes: 1 addition & 1 deletion test/outdatedbrowser.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 586d904

Please sign in to comment.