Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
add: stylesheets
Browse files Browse the repository at this point in the history
  • Loading branch information
dongyuanxin committed Nov 17, 2019
1 parent 757ef25 commit 1536980
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
11 changes: 8 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,18 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<meta name="author" content="董沅鑫">
<title>Pure Virtual Dom</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<div id="root"></div>
<button id="btn1">Step1: Add node</button>
<button id="reload2">Step2: Update text</button>
<button id="reload2">Step3: Change classname</button>
<div>
<h6>Please click the button in order and open chrome console:</h5>
<button id="btn1">Step1: Add node</button>
<button id="btn2">Step2: Update text</button>
<button id="btn3">Step3: Change classname</button>
</div>
<script src="./element.js"></script>
<script src="./diff.js"></script>
<script src="./main.js"></script>
Expand Down
8 changes: 8 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#root {
border: 1px solid red;
}

.night {
background: black;
color: white;
}

0 comments on commit 1536980

Please sign in to comment.