Skip to content

Commit 13b7b4a

Browse files
committed
Initial commit.
0 parents  commit 13b7b4a

10 files changed

+2456
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/jquery.fullscreen.jar
2+
/.project

LICENSE.txt

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2011 Klaus Reimer <[email protected]>
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a
4+
copy of this software and associated documentation files (the "Software"),
5+
to deal in the Software without restriction, including without limitation
6+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
7+
and/or sell copies of the Software, and to permit persons to whom the
8+
Software is furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in
11+
all copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
19+
DEALINGS IN THE SOFTWARE.

README.md

Whitespace-only changes.

build.xml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE project>
3+
<project name="jquery.fullscreen" default="package">
4+
5+
<taskdef name="jscomp"
6+
classname="com.google.javascript.jscomp.ant.CompileTask"
7+
classpath="lib/compiler.jar" />
8+
9+
<target name="compile">
10+
<jscomp compilationLevel="advanced"
11+
warning="verbose"
12+
debug="false"
13+
output="jquery.fullscreen-min.js">
14+
<sources dir=".">
15+
<file name="jquery.fullscreen.js" />
16+
</sources>
17+
<externs dir="externs">
18+
<file name="jquery.js" />
19+
</externs>
20+
</jscomp>
21+
</target>
22+
23+
<target name="package" depends="compile">
24+
<jar destfile="jquery.fullscreen.jar">
25+
<mappedresources>
26+
<fileset dir=".">
27+
<include name="jquery.fullscreen.js" />
28+
</fileset>
29+
<globmapper from="*" to="script-sources/*" />
30+
</mappedresources>
31+
<mappedresources>
32+
<fileset dir=".">
33+
<include name="jquery.fullscreen-min.js" />
34+
</fileset>
35+
<globmapper from="*-min.js" to="scripts/*.js" />
36+
</mappedresources>
37+
<mappedresources>
38+
<fileset dir="externs">
39+
<include name="jquery.fullscreen.js" />
40+
</fileset>
41+
<globmapper from="*" to="script-externs/*" />
42+
</mappedresources>
43+
</jar>
44+
</target>
45+
46+
<target name="clean">
47+
<delete file="jquery.fullscreen.jar" />
48+
</target>
49+
50+
</project>

demo/index.html

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8" />
5+
<title>jQuery Fullscreen Plugin demo</title>
6+
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
7+
<script type="text/javascript" src="../jquery.fullscreen-min.js"></script>
8+
</head>
9+
<body>
10+
<button onclick="$(document).fullScreen(true)">Go Fullscreen</button>
11+
<button onclick="$(document).fullScreen(false)">Exit Fullscreen</button>
12+
<button onclick="$(document).toggleFullScreen()">Toggle Fullscreen</button>
13+
<button onclick="alert($(document).fullScreen())">Are we Fullscreen?</button>
14+
</body>
15+
</html>

externs/jquery.fullscreen.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/**
2+
* @param {boolean=} state
3+
* @return {boolean|jQuery|null}
4+
*/
5+
jQuery.prototype.fullScreen = function(state) {};
6+
7+
/**
8+
* @return {!jQuery}
9+
*/
10+
jQuery.prototype.toggleFullScreen = function() {};
11+

0 commit comments

Comments
 (0)