Team:Marburg/2

From 2013.igem.org

(Difference between revisions)
m
Line 1: Line 1:
<html>
<html>
-
<!DOCTYPE html>
 
-
<html lang="en">
 
<head>
<head>
-
<meta charset="utf-8">  
+
<title>Popup-Fenster mit JavaScript</title>
-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">  
+
<script type="text/javascript">
-
<title>SUPERSCROLLORAMA - Simple Demo #1</title>
+
function popup (url) {
-
<link href='http://fonts.googleapis.com/css?family=Luckiest+Guy' rel='stylesheet' type='text/css'>
+
fenster = window.open(url, "Popupfenster", "width=400,height=300,resizable=yes");
-
</html>
+
fenster.focus();
-
+
return false;
-
{{:Team:Marburg/normalize.css}}
+
}
-
<html>
+
</script>
</head>
</head>
-
<body class="simple-demo">
+
<body>
-
<div id="content-wrapper">
+
<p><a href="https://2013.igem.org/Team:Marburg/1?action=raw" target="_blank" onclick="return popup(this.href);">Fenster anzeigen</a></p>
-
 
+
</body>
-
<div id="examples-1">
+
-
<h2 id="fade-it">Fade It</h2>
+
-
<h2 id="fly-it">Fly It</h2>
+
-
<h2 id="spin-it">Spin It</h2>
+
-
<h2 id="scale-it">Scale It</h2>
+
-
<h2 id="smush-it">Smush It</h2>
+
-
</div>
+
-
 
+
-
</div>
+
-
<script type="text/javascript" src="js/greensock/TweenMax.min.js"></script>
+
-
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
+
-
  <script>window.jQuery || document.write('<script src="_/js/jquery-1.9.1.min.js"><\/script>')</script>
+
-
  <script src="js/jquery.superscrollorama.js"></script>
+
-
<script>
+
-
$(document).ready(function() {
+
-
var controller = $.superscrollorama();
+
-
// individual element tween examples
+
-
controller.addTween('#fade-it', TweenMax.from( $('#fade-it'), .5, {css:{opacity: 0}}));
+
-
controller.addTween('#fly-it', TweenMax.from( $('#fly-it'), .25, {css:{right:'1000px'}, ease:Quad.easeInOut}));
+
-
controller.addTween('#spin-it', TweenMax.from( $('#spin-it'), .25, {css:{opacity:0, rotation: 720}, ease:Quad.easeOut}));
+
-
controller.addTween('#scale-it', TweenMax.fromTo( $('#scale-it'), .25, {css:{opacity:0, fontSize:'20px'}, immediateRender:true, ease:Quad.easeInOut}, {css:{opacity:1, fontSize:'240px'}, ease:Quad.easeInOut}));
+
-
controller.addTween('#smush-it', TweenMax.fromTo( $('#smush-it'), .25, {css:{opacity:0, 'letter-spacing':'30px'}, immediateRender:true, ease:Quad.easeInOut}, {css:{opacity:1, 'letter-spacing':'-10px'}, ease:Quad.easeInOut}), 0, 100); // 100 px offset for better timing
+
-
});
+
-
</script>
+
-
 
+
-
</body></html>
+
</html>
</html>

Revision as of 11:04, 9 March 2014

Popup-Fenster mit JavaScript

Fenster anzeigen