Skip to content

Instantly share code, notes, and snippets.

@uzresk
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uzresk/829b0e50d797434bf261 to your computer and use it in GitHub Desktop.
Save uzresk/829b0e50d797434bf261 to your computer and use it in GitHub Desktop.
複数ブラウザ/端末をまとめてテストする ref: http://qiita.com/uzresk/items/78f62401d3fd6efedbf8
yum install nodejs npm --enablerepo=epel
npm install -g browser-sync
sudo browser-sync start --port 80 --proxy localhost:81 --files "**" &
<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>
<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