diff options
Diffstat (limited to 'contexts/data/lib/closure-library/closure/goog/demos/dragdropdetector.html')
-rw-r--r-- | contexts/data/lib/closure-library/closure/goog/demos/dragdropdetector.html | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/contexts/data/lib/closure-library/closure/goog/demos/dragdropdetector.html b/contexts/data/lib/closure-library/closure/goog/demos/dragdropdetector.html deleted file mode 100644 index 6787c0b..0000000 --- a/contexts/data/lib/closure-library/closure/goog/demos/dragdropdetector.html +++ /dev/null @@ -1,46 +0,0 @@ -<!DOCTYPE html> -<html> -<!-- -Copyright 2010 The Closure Library Authors. All Rights Reserved. - -Use of this source code is governed by the Apache License, Version 2.0. -See the COPYING file for details. ---> -<head> - <title>goog.ui.DragDropDetector</title> - <script src="../base.js"></script> - <script> - goog.require('goog.ui.DragDropDetector'); - goog.require('goog.ui.DragDropDetector.EventType'); - </script> - <link rel="stylesheet" href="css/demo.css"> - <link rel="stylesheet" href="../css/dragdropdetector.css"> - <style type="text/css"> - html, body { - width: 100%; - height: 100%; - margin: 0; - padding: 0; - } - </style> -</head> -<body> - <h1>goog.ui.DragDropDetector</h1> - <p>Try dropping images from other web pages on this page.</p> - <script type="text/javascript"> - var detector = new goog.ui.DragDropDetector(); - goog.events.listen(detector, - [ - goog.ui.DragDropDetector.EventType.IMAGE_DROPPED, - goog.ui.DragDropDetector.EventType.LINK_DROPPED - ], - function(e) { - var str = 'Detected ' + e.getUrl(); - if (e.getPosition) { - str += ' at ' + e.getPosition(); - } - alert(str); - }); - </script> -</body> -</html> |