Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
91 lines (67 sloc) 2.23 KB
<!DOCTYPE html>
<meta charset="utf-8">
<title>Anything Zoomer | Image</title>
<link href="" rel="stylesheet">
<link rel="stylesheet" href="demo/style.css">
<link rel="stylesheet" href="css/anythingzoomer.css">
<script src=""></script>
<script src="js/jquery.anythingzoomer.js"></script>
.small img { width: 250px; height: 167px; }
.large img { width: 500px; height: 333px; }
.small img.kyptos { width: 320px; height: 240px; }
.large img.kyptos { width: 800px; height: 600px; }
$(function() {
var img = ($(this).hasClass('kyptos')) ? 'kryptos-front' : 'rushmore';
$('.large').find('img').toggleClass('kyptos').attr('src', 'demo/' + img + '.jpg');
$('.small').find('img').toggleClass('kyptos').attr('src', 'demo/' + img + '_small.jpg');
// update plugin
<body id="swap">
<div id="main-content">
<a href="" id="dl">Download</a>
<ul id="nav">
<li><a href="index.html">Calendar</a></li>
<li><a href="image.html">Image</a></li>
<li><a class="current" href="swap.html">Swap</a></li>
<li><a href="text.html">Text</a></li>
<li><a href="double.html">Double</a></li>
<li><a class="use" href="use.html">Usage</a></li>
<li><a class="play" href="">Playground</a></li>
<li><a class="issue" href="">Issues</a></li>
<h2>Swap Demo</h2>
<ul class="info">
<li>AnythingZoomer can now be called to update its contents dynamically.</li>
<li>Just click the "Swap image" button to toggle between two sets of images.</li>
<button>Swap image</button>
<div class="zoom">
<div class="small">
<img src="demo/rushmore_small.jpg" alt="small rushmore">
<div class="large">
<img src="demo/rushmore.jpg" alt="big rushmore">
Something went wrong with that request. Please try again.