Last active
August 29, 2015 14:10
-
-
Save uzresk/829b0e50d797434bf261 to your computer and use it in GitHub Desktop.
複数ブラウザ/端末をまとめてテストする ref: http://qiita.com/uzresk/items/78f62401d3fd6efedbf8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum install nodejs npm --enablerepo=epel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install -g browser-sync |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo browser-sync start --port 80 --proxy localhost:81 --files "**" & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
<h1>1ページ</h1> | |
<h2>Hello <div id='text'></div></h2> | |
<div> | |
<Button onclick='world()'>Click!!</Button> | |
<div id='text'></div> | |
<hr> | |
text <input type="text" name="foo" /> | |
<hr> | |
<br>radio | |
<input type="radio" name="hoge" value="1"/>:1 | |
<input type="radio" name="hoge" value="2"/>:2 | |
<hr> | |
<br>textarea | |
<textarea cols="50" rows="8"></textarea> | |
<hr> | |
<a href="index2.html">2ページ目へ</a> | |
</div> | |
<script> | |
world = function() { | |
document.getElementById('text').textContent += 'world!'; | |
} | |
</script> | |
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
<h1>2ページ</h1> | |
<h2>Hello <div id='text'></div></h2> | |
<div> | |
<Button onclick='world()'>Click!!</Button> | |
<div id='text'></div> | |
<hr> | |
text <input type="text" name="foo" /> | |
<hr> | |
<br>radio | |
<input type="radio" name="hoge" value="1"/>:1 | |
<input type="radio" name="hoge" value="2"/>:2 | |
<hr> | |
<br>textarea | |
<textarea cols="50" rows="8"></textarea> | |
<hr> | |
<a href="index.html">1ページ目へ</a> | |
</div> | |
<script> | |
world = function() { | |
document.getElementById('text').textContent += 'world!'; | |
} | |
</script> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment