Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

[Example](http://flimshaw.github.io/Valiant360) - [Development Log](https://github.com/flimshaw/Valiant360/wiki/Development-log)

#### Latest Features

+ Smoother mouse panning
+ Panning based on device's sensor (The canvas pans as you rotate your phone a la Streetview. Only 360 images work on mobile for now.)
+ Ability to disable zooming via mouse wheel

#### About

Expand Down
15 changes: 8 additions & 7 deletions build/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,25 @@
<meta charset="utf-8">

<!-- Valiant360 control styles -->
<link rel="stylesheet" type="text/css" href="css/valiant360.css" />
<link rel="stylesheet" type="text/css" href="../demo/css/valiant360.css" />

</head>
<body>

<div class="valiantPhoto" data-video-src="overpass-clip.mp4" style="width: 480px; height: 380px;"></div>
<div class="valiantPhoto" data-video-src="overpass-clip.mp4" style="width: 100%; height: 500px;"></div>

<div class="valiantPhoto" data-photo-src="equirectangular-bathroom-tile.jpg" style="width: 480px; height: 380px;"></div>
<div class="valiantPhoto" data-photo-src="demo360.jpg" style="width: 100%; height: 500px;"></div>

<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="js/three.min.js"></script>
<script type="text/javascript" src="../demo/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="../demo/js/three.min.js"></script>
<script type="text/javascript" src="../src/lib/Detector.js"></script>

<!-- Valiant360 plugin, load after jQuery and Three.js -->
<script type="text/javascript" src="jquery.valiant360.min.js"></script>
<script type="text/javascript" src="../src/valiant.jquery.js"></script>

<script type="text/javascript">
$(document).ready(function() {
$('.valiantPhoto').Valiant360();
$('.valiantPhoto').Valiant360({ disableZoom: true });
});
</script>

Expand Down
Loading