Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR Removed unnecessary files for history.js

  • Loading branch information...
commit f90c317c863991ac490ccde0823691a07fa57f5f 1 parent a5f8417
Ingo Schommer chillu authored
Showing with 0 additions and 23,252 deletions.
  1. +0 −351 admin/thirdparty/history-js/cli
  2. +0 −58 admin/thirdparty/history-js/demo/bcherry-orig.html
  3. +0 −62 admin/thirdparty/history-js/demo/bcherry.html
  4. +0 −37 admin/thirdparty/history-js/demo/chrome.html
  5. +0 −101 admin/thirdparty/history-js/demo/index.html
  6. +0 −43 admin/thirdparty/history-js/demo/native-auto.html
  7. +0 −62 admin/thirdparty/history-js/demo/native.html
  8. +0 −23 admin/thirdparty/history-js/demo/navigator.html
  9. +0 −61 admin/thirdparty/history-js/demo/safari.html
  10. +0 −28 admin/thirdparty/history-js/tests.src/_header.php
  11. +0 −59 admin/thirdparty/history-js/tests.src/all.php
  12. +0 −62 admin/thirdparty/history-js/tests.src/each.php
  13. +0 −25 admin/thirdparty/history-js/tests.src/index.php
  14. +0 −13 admin/thirdparty/history-js/tests/.htaccess
  15. +0 −47 admin/thirdparty/history-js/tests/compressed-html4-nonpersistant-jquery.html
  16. +0 −47 admin/thirdparty/history-js/tests/compressed-html4-nonpersistant-mootools.html
  17. +0 −47 admin/thirdparty/history-js/tests/compressed-html4-nonpersistant-prototype.html
  18. +0 −47 admin/thirdparty/history-js/tests/compressed-html4-nonpersistant-zepto.html
  19. +0 −48 admin/thirdparty/history-js/tests/compressed-html4-persistant-jquery.html
  20. +0 −48 admin/thirdparty/history-js/tests/compressed-html4-persistant-mootools.html
  21. +0 −48 admin/thirdparty/history-js/tests/compressed-html4-persistant-prototype.html
  22. +0 −48 admin/thirdparty/history-js/tests/compressed-html4-persistant-zepto.html
  23. +0 −46 admin/thirdparty/history-js/tests/compressed-html5-nonpersistant-jquery.html
  24. +0 −46 admin/thirdparty/history-js/tests/compressed-html5-nonpersistant-mootools.html
  25. +0 −46 admin/thirdparty/history-js/tests/compressed-html5-nonpersistant-prototype.html
  26. +0 −46 admin/thirdparty/history-js/tests/compressed-html5-nonpersistant-zepto.html
  27. +0 −47 admin/thirdparty/history-js/tests/compressed-html5-persistant-jquery.html
  28. +0 −47 admin/thirdparty/history-js/tests/compressed-html5-persistant-mootools.html
  29. +0 −47 admin/thirdparty/history-js/tests/compressed-html5-persistant-prototype.html
  30. +0 −47 admin/thirdparty/history-js/tests/compressed-html5-persistant-zepto.html
  31. +0 −3  admin/thirdparty/history-js/tests/image.php
  32. +0 −28 admin/thirdparty/history-js/tests/index.html
  33. +0 −254 admin/thirdparty/history-js/tests/tests.js
  34. +0 −47 admin/thirdparty/history-js/tests/uncompressed-html4-nonpersistant-jquery.html
  35. +0 −47 admin/thirdparty/history-js/tests/uncompressed-html4-nonpersistant-mootools.html
  36. +0 −47 admin/thirdparty/history-js/tests/uncompressed-html4-nonpersistant-prototype.html
  37. +0 −47 admin/thirdparty/history-js/tests/uncompressed-html4-nonpersistant-zepto.html
  38. +0 −48 admin/thirdparty/history-js/tests/uncompressed-html4-persistant-jquery.html
  39. +0 −48 admin/thirdparty/history-js/tests/uncompressed-html4-persistant-mootools.html
  40. +0 −48 admin/thirdparty/history-js/tests/uncompressed-html4-persistant-prototype.html
  41. +0 −48 admin/thirdparty/history-js/tests/uncompressed-html4-persistant-zepto.html
  42. +0 −46 admin/thirdparty/history-js/tests/uncompressed-html5-nonpersistant-jquery.html
  43. +0 −46 admin/thirdparty/history-js/tests/uncompressed-html5-nonpersistant-mootools.html
  44. +0 −46 admin/thirdparty/history-js/tests/uncompressed-html5-nonpersistant-prototype.html
  45. +0 −46 admin/thirdparty/history-js/tests/uncompressed-html5-nonpersistant-zepto.html
  46. +0 −47 admin/thirdparty/history-js/tests/uncompressed-html5-persistant-jquery.html
  47. +0 −47 admin/thirdparty/history-js/tests/uncompressed-html5-persistant-mootools.html
  48. +0 −47 admin/thirdparty/history-js/tests/uncompressed-html5-persistant-prototype.html
  49. +0 −47 admin/thirdparty/history-js/tests/uncompressed-html5-persistant-zepto.html
  50. +0 −8,316 admin/thirdparty/history-js/vendor/jquery.js
  51. +0 −5,491 admin/thirdparty/history-js/vendor/mootools.js
  52. +0 −6,082 admin/thirdparty/history-js/vendor/prototype.js
  53. +0 −13 admin/thirdparty/history-js/vendor/yui.js
  54. +0 −576 admin/thirdparty/history-js/vendor/zepto.js
351 admin/thirdparty/history-js/cli
View
@@ -1,351 +0,0 @@
-#!/usr/bin/env ruby
-
-# == Name
-# cli - BalCMS Command Line Interface
-#
-# == Synopsis
-# cli check-env
-# cli birth
-# cli init-commit
-# cli init-new
-# cli init-existing
-# cli configure
-# cli install
-# cli permissions
-# cli setup
-# cli cron
-#
-# cli add
-# cli stable
-# cli master
-# cli upgrade
-# cli update
-# cli deploy
-#
-# cli clean
-# cli clean-media
-# cli clean-config
-# cli clean-styles
-# cli clean-scripts
-#
-# cli [options]
-#
-# == Examples
-# cli check-env
-# Checks to see that our environment is properly configured and will support a BalCMS installation.
-#
-# cli birth
-# Executes: init-new, configure, install, init-commit
-#
-# cli init-commit
-# Performs the initial commit (commits new and modified files during the installation to the git repo).
-#
-# cli init-new
-# Initialises the repository as a new installation. Only run this once.
-#
-# TODO: finish this example section
-#
-# == Options
-# -h, --help Displays help message
-# -v, --version Display the version, then exit
-# -q, --quiet Output as little as possible, overrides verbose
-# -V, --verbose Verbose output
-#
-# == Author
-# Benjamin Arthur Lupton
-#
-# == Copyright
-# Copyright (c) 2008-2011 Benjamin Arthur Lupton
-# Licensed under the New BSD License
-# http://creativecommons.org/licenses/BSD/
-
-require 'optparse'
-require 'rdoc/usage'
-require 'ostruct'
-require 'date'
-
-class App
- SOURCEMAP = './scripts/closure.map'
- BUILDDIR = './.build'
- UGLIFYURL = 'https://github.com/mishoo/UglifyJS/raw/master/bin/uglifyjs'
- UGLIFYDIR = './.build/uglify'
- UGLIFYFILE = './.build/uglify/uglify'
- CLOSUREURL = 'http://closure-compiler.googlecode.com/files/compiler-latest.zip'
- CLOSUREDIR = './.build/closure'
- CLOSUREZIP = './.build/closure/compiler.zip'
- CLOSUREFILE = './.build/closure/compiler.jar'
- YUIURL = 'http://yuilibrary.com/downloads/yuicompressor/yuicompressor-2.4.2.zip'
- YUIDIR = './.build/yui'
- YUIZIP = './.build/yui/compiler.zip'
- YUIFILE = './.build/yui/yuicompressor-2.4.2/build/yuicompressor-2.4.2.jar'
-
- def initialize
- init_env
- end
-
- def init_env
- # Check for Requirements
- reqs = ['mkdir','curl','tar','git']
- reqs.each do |req|
- has_req = `which #{req}`.strip
- if has_req.empty?
- abort("CLI requires the following binary which is not installed: #{req}")
- end
- end
-
- # Check for Closure Compiler
- if !File.exists?(CLOSUREFILE)
- `mkdir -p #{CLOSUREDIR}`
- puts "Downloading the Closure Compiler..."
- download(CLOSUREURL, CLOSUREZIP)
- extract(CLOSUREDIR, CLOSUREZIP)
- `chmod +x #{CLOSUREFILE}`
- end
-
- # Check for Uglify
- if !File.exists?(UGLIFYFILE)
- `mkdir -p #{UGLIFYDIR}`
- puts "Downloading the Uglify Compiler..."
- download(UGLIFYURL, UGLIFYFILE)
- `chmod +x #{UGLIFYFILE}`
- end
-
- # Check for YUI Compiler
- if !File.exists?(YUIFILE)
- `mkdir -p #{YUIDIR}`
- puts "Downloading the YUI Compiler..."
- download(YUIURL, (YUIZIP))
- extract(YUIDIR, YUIZIP)
- `chmod +x #{YUIFILE}`
- end
- end
-
- def has_changes
- result = `git status`
- if result.include? 'Changed but not updated'
- abort("You have un-committed changes that need to be committed before we can proceed.\n#{result}")
- end
- end
-
- # ===========================================================================
- # Helpers
-
- def download ( url, file )
- result = `curl -L #{url} -o #{file}`
- end
-
- def extract ( dir, file )
- file = file.gsub(dir,'.')
- result = `cd #{dir} ; tar -xf #{file} ; rm -Rf #{file}`
- end
-
- def compressJavascriptFile ( in_file, out_file )
- # Calculate
- in_file_size = File.size(in_file)
-
- # Handle
- if in_file.equal? out_file
- out_file = out_file.gsub(/\.js$/, '.min.js')
- compressFileUglify(in_file,out_file)
- `rm #{in_file}`
- `mv #{out_file} #{in_file}`
- out_file = in_file
- else
- compressFileUglify(in_file,out_file)
- out_file_size = File.size(out_file)
- end
-
- # Calculate
- out_file_size = File.size(out_file)
- ratio = Float(out_file_size)/Float(in_file_size)
- reduction = ((1-ratio)*100).round
-
- # Log
- puts "Compressed the file [#{in_file}] to [#{out_file}] with a #{reduction}% reduction"
- end
-
- def compressFileUglify ( in_file, out_file )
- result = `#{UGLIFYFILE} -o #{out_file} #{in_file}`
- end
-
- def compressFileClosure ( in_file, out_file )
- result = `java -jar #{CLOSUREFILE} --js_output_file=#{out_file} --js=#{in_file}`
- end
-
- # ===========================================================================
- # Installers
-
- def build
-
- end
-
- # ===========================================================================
- # Git Helpers
-
- def add
- puts \
- ` git add -u;`
- end
-
- def stable
- puts \
- ` git checkout #{BRANCH_STABLE};`
- end
-
- def dev
- puts \
- ` git checkout #{BRANCH_DEV};`
- end
-
- def master
- puts \
- ` git checkout master;`
- end
-
- def upgrade
- puts \
- ` git checkout #{BRANCH_BALCMS};
- git pull balcms #{BRANCH_STABLE};
- git checkout #{BRANCH_DEV};
- git merge #{BRANCH_BALCMS};`
- end
-
- def update
- puts \
- ` git pull;`
- configure
- end
-
- def deploy
- puts \
- ` git checkout #{BRANCH_STABLE};
- git merge #{BRANCH_DEV};
- git checkout #{BRANCH_MASTER};
- git merge #{BRANCH_STABLE};
- git checkout #{BRANCH_DEV};
- git push origin --all;`
- end
-
-end
-
-# ===========================================================================
-# Booter
-
-class Booter
- VERSION = :'0.0.1'
-
- attr_reader :options
-
- def initialize(arguments, stdin)
- @arguments = arguments
- @stdin = stdin
-
- # Set defaults
- @options = OpenStruct.new
- @options.verbose = false
- @options.quiet = false
- # TO DO - add additional defaults
- end
-
- # Parse options, check arguments, then process the command
- def run
-
- if parsed_options? && arguments_valid?
-
- puts "Start at #{DateTime.now}\n\n" if @options.verbose
-
- output_options if @options.verbose # [Optional]
-
- process_arguments
- process_command
-
- puts "\nFinished at #{DateTime.now}" if @options.verbose
-
- else
- output_usage
- end
-
- end
-
- protected
-
- def parsed_options?
-
- # Specify options
- opts = OptionParser.new
- opts.on('-v', '--version') { output_version ; exit 0 }
- opts.on('-h', '--help') { output_help }
- opts.on('-V', '--verbose') { @options.verbose = true }
- opts.on('-q', '--quiet') { @options.quiet = true }
- # TO DO - add additional options
-
- opts.parse!(@arguments) rescue return false
-
- process_options
- true
- end
-
- # Performs post-parse processing on options
- def process_options
- @options.verbose = false if @options.quiet
- end
-
- def output_options
- puts :"Options:\n"
-
- @options.marshal_dump.each do |name, val|
- puts " #{name} = #{val}"
- end
- end
-
- # True if required arguments were provided
- def arguments_valid?
- # TO DO - implement your real logic here
- true if @arguments.length == 1
- end
-
- # Setup the arguments
- def process_arguments
- # TO DO - place in local vars, etc
- end
-
- def output_help
- output_version
- RDoc::usage() #exits app
- end
-
- def output_usage
- RDoc::usage(:'usage') # gets usage from comments above
- end
-
- def output_version
- puts "#{File.basename(__FILE__)} version #{VERSION}"
- end
-
- def process_command
- # Create Application
- app = App.new
-
- # Fetch + Execute
- command = @arguments[0].gsub('-','_')
- unless app.respond_to?(command)
- abort("Unknown command: #{command}")
- end
- app.send(command)
- end
-
- def process_standard_input
- input = @stdin.read
- # TO DO - process input
-
- # [Optional]
- #@stdin.each do |line|
- # # TO DO - process each line
- #end
- end
-end
-
-
-# Create Booter
-booter = Booter.new(ARGV, STDIN)
-booter.run
58 admin/thirdparty/history-js/demo/bcherry-orig.html
View
@@ -1,58 +0,0 @@
-
-<!DOCTYPE html>
-<html lang="en">
-<head>
- <meta charset="utf-8" />
-
- <title>WebKit is Dropping HTML5 "popstate" Events</title>
-
- <link rel="stylesheet" href="/static/lib/css/blueprint/blueprint.min.css" media="screen, projection" />
- <link rel="stylesheet" href="/static/lib/css/blueprint/print.min.css" media="print" />
- <!--[if lt IE 8]>
- <link rel="stylesheet" href="/static/lib/css/blueprint/ie.min.css" media="screen, projection">
- <![endif]-->
- <link href="/static/lib/css/bcherry.css" rel="stylesheet" media="screen" />
- <style>
- #n {
- font-size: 48px;
- }
- p {
- padding: 0 20px;
- }
- </style>
-
- <script type="text/javascript" src="../vendor/jquery.js"></script>
- <script type="text/javascript" src="../scripts/uncompressed/history.adapter.jquery.js"></script>
- <script type="text/javascript" src="../scripts/uncompressed/history.js"></script>
-
-</head>
-<body>
- <div id="n"></div>
- <p>There's a bug in the HTML5 "popstate" event, as implemented in WebKit (Safari and Chrome). View this page in one of those browsers. Your browser has had history entries added from #0 to #19 (you should start at #19). Hitting back/forward will navigate through these. On each URL, the large number above should reflect the hash value. If you hit back/forward quickly, you'll notice that your number gets out of sync with the URL. This is because WebKit is dropping popstate events (they are not firing). It seems to happen when outbound network requests are in progress when the user navigates in their browser happens. In this case, your browser is downloading an image that takes 1s to serve on every popstate, so you'll have to wait 1s between backs/forwards to have the feature work correctly. You could also cause constant network traffic by putting an image download in a setInterval, in which case your popstate events will never fire. This implementation simulates an AJAX application that makes a network request when you navigate between URLs using pushState/popstate. View the source for more info.</p>
- <p>This was filed as <a href="https://bugs.webkit.org/show_bug.cgi?id=42940">Bug 42940</a> with WebKit on July 24, 2010. The Firefox 4 beta does not have this bug, which is good news.</p>
- <p>This is put together by <a href="http://www.adequatelygood.com">Ben Cherry</a>. Ben is a front-end engineer at <a href="http://twitter.com/">Twitter</a>, and you can follow him at <a href="http://twitter.com/bcherry">@bcherry</a>.</p>
- <script>
- // Bind to popstate
- $(window).bind("popstate", function(e) {
- var State = e.state;
-
- // log that this event was fired, and the current URL
- if (window.console && window.console.log) {
- console.log("popstate", State, window.location.href);
- }
- // update the page
- $("#n").text(typeof State.n !== 'undefined' ? State.n : document.location.href);
-
- // Make an outbound image request that will take 1s. This request seems to be the cause of dropped popstates.
- // Removing this, or replacing it with something else, avoids the issue. Even if it's replaced with slow, blocking code (i.e. 1s of execution) events are not dropped.
- (new Image()).src = "http://www.bcherry.net/playground/pushstate.jpg";
- });
-
- // Seed the browser history
- for (var i = 0; i < 20; i++) {
- window.history.pushState({n:i}, i, "?" + i);
- $("#n").text(i);
- }
- </script>
-</body>
-</html>
62 admin/thirdparty/history-js/demo/bcherry.html
View
@@ -1,62 +0,0 @@
-
-<!DOCTYPE html>
-<html lang="en">
-<head>
- <meta charset="utf-8" />
-
- <title>WebKit is Dropping HTML5 "popstate" Events</title>
-
- <link rel="stylesheet" href="/static/lib/css/blueprint/blueprint.min.css" media="screen, projection" />
- <link rel="stylesheet" href="/static/lib/css/blueprint/print.min.css" media="print" />
- <!--[if lt IE 8]>
- <link rel="stylesheet" href="/static/lib/css/blueprint/ie.min.css" media="screen, projection">
- <![endif]-->
- <link href="/static/lib/css/bcherry.css" rel="stylesheet" media="screen" />
- <style>
- #n {
- font-size: 48px;
- }
- p {
- padding: 0 20px;
- }
- </style>
-
- <script type="text/javascript" src="../vendor/jquery.js"></script>
- <script type="text/javascript" src="../scripts/uncompressed/history.adapter.jquery.js"></script>
- <script type="text/javascript" src="../scripts/uncompressed/history.js"></script>
-
-</head>
-<body>
- <div id="n"></div>
- <p>There's a bug in the HTML5 "popstate" event, as implemented in WebKit (Safari and Chrome). View this page in one of those browsers. Your browser has had history entries added from #0 to #19 (you should start at #19). Hitting back/forward will navigate through these. On each URL, the large number above should reflect the hash value. If you hit back/forward quickly, you'll notice that your number gets out of sync with the URL. This is because WebKit is dropping popstate events (they are not firing). It seems to happen when outbound network requests are in progress when the user navigates in their browser happens. In this case, your browser is downloading an image that takes 1s to serve on every popstate, so you'll have to wait 1s between backs/forwards to have the feature work correctly. You could also cause constant network traffic by putting an image download in a setInterval, in which case your popstate events will never fire. This implementation simulates an AJAX application that makes a network request when you navigate between URLs using pushState/popstate. View the source for more info.</p>
- <p>This was filed as <a href="https://bugs.webkit.org/show_bug.cgi?id=42940">Bug 42940</a> with WebKit on July 24, 2010. The Firefox 4 beta does not have this bug, which is good news.</p>
- <p>This is put together by <a href="http://www.adequatelygood.com">Ben Cherry</a>. Ben is a front-end engineer at <a href="http://twitter.com/">Twitter</a>, and you can follow him at <a href="http://twitter.com/bcherry">@bcherry</a>.</p>
- <p>This bug was fixed in <a href="http://github.com/balupton/history.js">History.js</a> by <a href="http://balupton.com">Benjamin Lupton</a>. Benjamin is a freelance web 2.0 consultant, and you can follow him at <a href="http://twitter.com/balupton">@balupton</a>.</p>
- <script>
- // Prepare
- window.History.debug.enable = true;
-
- // Bind to popstate
- $(window).bind("statechange", function(e) {
- var State = window.History.getState();
-
- // log that this event was fired, and the current URL
- if (window.console && window.console.log) {
- console.log("popstate", State, window.location.href);
- }
- // update the page
- $("#n").text(typeof State.data.n !== 'undefined' ? State.data.n : State.url);
-
- // Make an outbound image request that will take 1s. This request seems to be the cause of dropped popstates.
- // Removing this, or replacing it with something else, avoids the issue. Even if it's replaced with slow, blocking code (i.e. 1s of execution) events are not dropped.
- (new Image()).src = "http://www.bcherry.net/playground/pushstate.jpg";
- });
-
- // Seed the browser history
- for (var i = 0; i < 20; i++) {
- window.History.pushState({n:i}, i, "?" + i);
- $("#n").text(i);
- }
- </script>
-</body>
-</html>
37 admin/thirdparty/history-js/demo/chrome.html
View
@@ -1,37 +0,0 @@
-<html>
-<head>
- <title>Chrome History API Data Artifact</title>
-</head>
-<body>
- <p>This demo demonstrates an issue with Google Chrome versions 8-10 (possibly 11) where if you push a state with data, then do history.back to the initial state, the event.state will contain the pushed states data instead of being null.</p>
- <p>Note: The issue requires a clean history list, as such this should always be opened in a new tab/window where there are no prior history items.</p>
- <p>Reported by <a href="http://balupton.com">Benjamin Lupton</a> author of <a href="http://github.com/balupton/history.js">History.js</a></p>
- <button id="bug">bug</button>
- <button id="reset">reset</button>
- <textarea id="log" style="width:100%;height:200px;margin-top:1em;"></textarea>
- <script type="text/javascript">
- (function(){
-
- window.onpopstate = function(event) {
- var message = ("onpopstate: location: " + document.location.href + ", data: " + JSON.stringify(event.state));
- document.getElementById('log').innerHTML += message+"\n\n";
- };
-
- document.getElementById('bug').onclick = function(){
- setTimeout(function(){
- history.pushState({state:'new'},'New State','?new');
- },1e3);
-
- setTimeout(function(){
- history.back();
- },2e3);
- };
-
- document.getElementById('reset').onclick = function(){
- document.location.href = document.location.href.replace(/[\#\?].*/,"");
- };
-
- })();
- </script>
-</body>
-</html>
101 admin/thirdparty/history-js/demo/index.html
View
@@ -1,101 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>
- History.js
- </title>
-</head>
-<body style="padding-bottom:40px">
- <!-- Scripts -->
- <script>if ( typeof window.JSON === 'undefined' ) { document.write('<script src="../scripts/uncompressed/json2.js"><\/script>'); }</script>
- <script src="../vendor/jquery.js"></script>
- <script src="../scripts/uncompressed/amplify.store.js"></script>
- <script src="../scripts/uncompressed/history.adapter.jquery.js"></script>
- <script src="../scripts/uncompressed/history.js"></script>
- <script src="../scripts/uncompressed/history.html4.js"></script>
-
- <!-- HTML -->
- <div id="wrap">
- <!-- Intro -->
- <h1><a href="https://github.com/balupton/History.js">History.js</a> by <a href="http://balupton.com">Benjamin Lupton</a></h1>
- <p>History.js gracefully supports the <a href="https://developer.mozilla.org/en/DOM/Manipulating_the_browser_history">HTML5 History/State APIs</a> (pushState, replaceState, onPopState) in all browsers. Including continued support for data, titles, replaceState. Supports <a href="http://jquery.com/">jQuery</a>, <a href="http://mootools.net">MooTools</a> and <a href="http://prototypejs.org">Prototype</a>. For HTML5 browsers this means that you can modify the URL directly, without needing to use hashes anymore. For HTML4 browsers it will revert back to using the old onhashchange functionality.</p>
-
- <!-- Textarea for Logging -->
- <textarea id="log" style="width:100%;height:400px"></textarea>
-
- <!-- Note -->
- <p>Click through the buttons in order and you'll get the results demonstrated in the <a href="../README.md">README.md</a> file.</p>
-
- <!-- Buttons -->
- <ul id="buttons">
- </ul>
-
- <!-- Subscribe to Updates -->
- <h3 style="margin-top:30px">Subscribe to Updates</h3>
- <p>You'll be the first to know when new releases come out. Yes this form actually works, it just isn't styled yet to keep things simple.</p>
- <form action="http://balupton.createsend.com/t/r/s/phujuu/" method="post" id="subForm">
- <div>
- <label for="name">Name:</label><input type="text" name="cm-name" id="name" /><br />
- <label for="phujuu-phujuu">Email:</label><input type="text" name="cm-phujuu-phujuu" id="phujuu-phujuu" /><br />
- <label for="Website">Website:</label><input type="text" name="cm-f-kjqtu" id="Website" /><br />
- <input type="submit" value="Subscribe" />
- </div>
- </form>
-
- <!-- Our Script -->
- <script>
- (function(window,undefined){
-
- // Check Location
- if ( document.location.protocol === 'file:' ) {
- alert('The HTML5 History API (and thus History.js) do not work on files, please upload it to a server.');
- }
-
- // Establish Variables
- var
- History = window.History, // Note: We are using a capital H instead of a lower h
- State = History.getState(),
- $log = $('#log');
-
- // Log Initial State
- History.log('initial:', State.data, State.title, State.url);
-
- // Bind to State Change
- History.Adapter.bind(window,'statechange',function(){ // Note: We are using statechange instead of popstate
- // Log the State
- var State = History.getState(); // Note: We are using History.getState() instead of event.state
- History.log('statechange:', State.data, State.title, State.url);
- });
-
- // Prepare Buttons
- var
- buttons = document.getElementById('buttons'),
- scripts = [
- 'History.pushState({state:1,rand:Math.random()}, "State 1", "?state=1"); // logs {state:1,rand:"some random value"}, "State 1", "?state=1"',
- 'History.pushState({state:2,rand:Math.random()}, "State 2", "?state=2"); // logs {state:2,rand:"some random value"}, "State 2", "?state=2"',
- 'History.replaceState({state:3,rand:Math.random()}, "State 3", "?state=3"); // logs {state:3,rand:"some random value"}, "State 3", "?state=3"',
- 'History.pushState(null, null, "?state=4"); // logs {}, "", "?state=4"',
- 'History.back(); // logs {state:3}, "State 3", "?state=3"',
- 'History.back(); // logs {state:1}, "State 1", "?state=1"',
- 'History.back(); // logs {}, "The page you started at", "?"',
- 'History.go(2); // logs {state:3}, "State 3", "?state=3"'
- ],
- buttonsHTML = ''
- ;
-
- // Add Buttons
- for ( var i=0,n=scripts.length; i<n; ++i ) {
- var _script = scripts[i];
- buttonsHTML +=
- '<li><button onclick=\'javascript:'+_script+'\'>'+_script+'</button></li>';
- }
- buttons.innerHTML = buttonsHTML;
-
- })(window);
- </script>
- </div>
-
-</body>
-</html>
43 admin/thirdparty/history-js/demo/native-auto.html
View
@@ -1,43 +0,0 @@
-<html>
-<head>
-</head>
-<body>
- <script type="text/javascript">
- (function(){
-
- window.onpopstate = function(event) {
- console.log("onpopstate: location: " + document.location.href + ", data: " + JSON.stringify(event.state));
- };
- window.onhashchange = function(event) {
- console.log("onhashchange: location: " + document.location.href);
- };
-
- setTimeout(function(){
- history.pushState({page: 1}, "title 1", "?page=1");
- },1e3);
- setTimeout(function(){
- history.pushState({page: 2}, "title 2", "?page=2");
- },2e3);
- setTimeout(function(){
- history.replaceState({page: 3}, "title 3", "?page=3");
- },3e3);
- setTimeout(function(){
- document.location.hash = 'asd';
- },4e3);
- setTimeout(function(){
- history.back(); // alerts "location: http://example.com/example.html?page=3#asd, state: {"page":3}"
- },5e3);
- setTimeout(function(){
- history.back(); // alerts "location: http://example.com/example.html?page=1, state: {"page":1}"
- },6e3);
- setTimeout(function(){
- history.back(); // alerts "location: http://example.com/example.html, state: null
- },7e3);
- setTimeout(function(){
- history.go(2); // alerts "location: http://example.com/example.html?page=3, state: {"page":3}
- },8e3);
-
- })();
- </script>
-</body>
-</html>
62 admin/thirdparty/history-js/demo/native.html
View
@@ -1,62 +0,0 @@
-<html>
-<head>
- <title>HTML5 History API Demo</title>
-</head>
-<body>
- <textarea id="log" style="width:100%;height:400px;margin:1em;"></textarea>
- <div id="url" style="border:1px black dotted;height:1em;margin:1em;"></div>
- <div id="buttons" style="margin:1em;"></div>
- <script type="text/javascript">
- var $url = document.getElementById('url'), $log = document.getElementById('log');
-
- window.onpopstate = function(event) {
- var message =
- "onpopstate: "+
- "location: " + location.href + ", " +
- "data: " + JSON.stringify(event.state) +
- "\n\n"
- ;
-
- $url.innerHTML = location.href;
- $log.innerHTML += message;
- console.log(message);
- };
-
- window.onhashchange = function(event) {
- var message =
- "onhashchange: "+
- "location: " + location.href + ", "+
- "hash: " + location.hash +
- "\n\n"
- ;
-
- $url.innerHTML = location.href;
- $log.innerHTML += message;
- console.log(message);
- };
-
- // Prepare Buttons
- var
- buttons = document.getElementById('buttons'),
- scripts = [
- 'history.pushState({state:1}, "State 1", "?state=1");',
- 'history.pushState({state:2}, "State 2", "?state=2");',
- 'history.replaceState({state:3}, "State 3", "?state=3");',
- 'location.hash = Math.random();',
- 'history.back();',
- 'history.forward();',
- 'document.location.href = document.location.href.replace(/[\#\?].*/,"");'
- ],
- buttonsHTML = ''
- ;
-
- // Add Buttons
- for ( var i=0,n=scripts.length; i<n; ++i ) {
- var _script = scripts[i];
- buttonsHTML +=
- '<li><button onclick=\'javascript:'+_script+'\'>'+_script+'</button></li>';
- }
- buttons.innerHTML = buttonsHTML;
- </script>
-</body>
-</html>
23 admin/thirdparty/history-js/demo/navigator.html
View
@@ -1,23 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>
- Navigator Output
- </title>
- <style>
- label { font-weight:bold; }
- label:after { content: ":"; margin-right:5px; }
- </style>
-</head>
-<body>
- <div id="nav"></div>
- <script>
- var nav = document.getElementById('nav'), i,v;
- for ( i in navigator ) {
- var v = navigator[i];
- nav.innerHTML += '<div><label>'+i+'</label>'+v+'</div>';
- }
- </script>
-</body>
-</html>
61 admin/thirdparty/history-js/demo/safari.html
View
@@ -1,61 +0,0 @@
-<html>
-<head>
- <title>Safari Hash ReplaceState History Traversal Bug</title>
-</head>
-<body>
- <p>This demo demonstrates an issue with Safari 5.0.4 (6533.20.27) handing of hashes and replace state. When a hash is set, and then replaced using replaceState the history list are then broken, when traversing back the hash does not change.</p>
- <p>Note: The issue requires a clean history list, as such this should always be opened in a new tab/window where there are no prior history items.</p>
- <p>Reported by <a href="http://balupton.com">Benjamin Lupton</a> author of <a href="http://github.com/balupton/history.js">History.js</a></p>
- <button id="bug">bug</button>
- <button id="workaround">workaround</button>
- <button id="reset">reset</button>
- <textarea id="log" style="width:100%;height:200px;margin-top:1em;"></textarea>
- <script type="text/javascript">
- (function(){
-
- window.onpopstate = function(event) {
- var message = ("onpopstate: location: " + document.location.href);
- document.getElementById('log').innerHTML += message+"\n\n";
- };
-
- window.onhashchange = function(event) {
- var message = ("onhashchange: location: " + document.location.href);
- document.getElementById('log').innerHTML += message+"\n\n";
- };
-
- document.getElementById('bug').onclick = function(){
- setTimeout(function(){
- document.location.hash = Math.random();
- },1e3);
-
- setTimeout(function(){
- history.replaceState(null,'','?blah');
- },2e3);
-
- setTimeout(function(){
- history.back(); // should take us to the initial page, it doesn't
- },3e3);
- };
-
- document.getElementById('workaround').onclick = function(){
- setTimeout(function(){
- history.pushState(null,'','#'+Math.random());
- },1e3);
-
- setTimeout(function(){
- history.replaceState(null,'','?blah');
- },2e3);
-
- setTimeout(function(){
- history.back(); // will take us to the initial page
- },3e3);
- };
-
- document.getElementById('reset').onclick = function(){
- document.location.href = document.location.href.replace(/[\#\?].*/,"");
- };
-
- })();
- </script>
-</body>
-</html>
28 admin/thirdparty/history-js/tests.src/_header.php
View
@@ -1,28 +0,0 @@
-<?php
- # Check
- if ( empty($_SERVER['REQUEST_URI']) ) {
- die('run this in your browser');
- }
-
- # Locations
- $dir = dirname(__FILE__);
- $out = "$dir/../tests";
-
- # Base URL
- $relative_url = $_SERVER['REQUEST_URI'];
- $relative_url = substr($relative_url,0,strpos($relative_url,'/history.js')).'/history.js/';
- $base_url = '/'.$relative_url;
- $tests_url = $base_url.'tests';
-
- # Compress
- $compress = array('uncompressed','compressed');
-
- # Persist
- $persists = array('persistant','nonpersistant');
-
- # Support
- $supports = array('html5','html4');
-
- # Adapter
- $adapters = array('jquery','mootools','prototype','zepto');
-
59 admin/thirdparty/history-js/tests.src/all.php
View
@@ -1,59 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <title>History.js Test Suite</title>
- <style type="text/css">
- body,html,iframe {
- padding:0;
- margin:0;
- outline:none;
- border:none;
- }
- .compress {
- padding-bottom:1em;
- }
- .support {
- padding-bottom:1em;
- }
- .persist {
- padding-bottom:1em;
- }
- </style>
-</head>
-<body>
- <h1>History.js Test Suite</h1>
- <p>HTML5 Browsers - should pass the HTML4 and HTML5 tests</p>
- <p>HTML4 Browsers - should pass the HTML4 tests and fail the HTML5 tests</p>
- <?php
- foreach ( $compress as $compression ) :
- echo '<div class="compress">';
- foreach ( $supports as $support ) :
- echo '<div class="support">';
- foreach ( $persists as $persist ) :
- echo '<div class="persist">';
- foreach ( $adapters as $adapter ) :
- echo '<div class="adapter">';
-
- # Url
- $filename = "${compression}-${support}-${persist}-${adapter}.html";
-
- # Title
- $Support = strtoupper($support);
- $Adapter = ucwords($adapter);
- $Persist = ucwords($persist);
- $Compression = ucwords($compression);
- $title = "History.js ${Compression} ${Support} ${Persist} ${Adapter} Test Suite";
-
- # Render
- ?><a href="<?=$filename?>"><?=$title?></a><?php
- echo '</div>';
- endforeach;
- echo '</div>';
- endforeach;
- echo '</div>';
- endforeach;
- echo '</div>';
- endforeach;
- ?>
-</body>
-</html>
62 admin/thirdparty/history-js/tests.src/each.php
View
@@ -1,62 +0,0 @@
-<?php
- # Url
- $filename = "${compression}-${support}-${persist}-${adapter}.html";
-
- # Titles
- $Support = strtoupper($support);
- $Adapter = ucwords($adapter);
- $Persist = ucwords($persist);
- $Compression = ucwords($compression);
- $title = "History.js ${Compression} ${Support} ${Persist} ${Adapter} Test Suite";
-?><!DOCTYPE html>
-<html debug="true">
-<head>
- <meta http-equiv="Expires" CONTENT="Mon, 06 Jan 1990 00:00:01 GMT" />
- <meta http-equiv="PRAGMA" CONTENT="NO-CACHE" />
- <meta http-equiv="CACHE-CONTROL" CONTENT="NO-CACHE" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
- <title><?=$title?></title>
-
- <!-- Check -->
- <script>
- var
- href = window.document.location.href,
- test_url = href.replace(/(history\.js\/tests\/[^\/\?\#]+).*/,'$1');
- if ( test_url !== href ) {
- window.document.location.href = test_url;
- }
- </script>
-
- <!-- Framework -->
- <script src="../vendor/<?=$adapter?>.js"></script>
-
- <!-- QUnit -->
- <link rel="stylesheet" href="../vendor/qunit/qunit/qunit.css" type="text/css" media="screen">
- <script src="../vendor/qunit/qunit/qunit.js"></script>
-</head>
-<body>
- <!-- Elements -->
- <h1 id="qunit-header"><?=$title?></h1>
- <h2 id="qunit-banner"></h2>
- <div id="qunit-testrunner-toolbar"></div>
- <h2 id="qunit-userAgent"></h2>
- <ol id="qunit-tests"></ol>
- <div id="qunit-fixture">test markup</div>
- <button onclick="history.back()">back</button><button onclick="history.forward()">forward</button>
- <textarea id="log" style="width:100%;height:400px"></textarea>
-
- <!-- History.js -->
- <script>if ( typeof window.JSON === 'undefined' ) { document.write('<script src="../scripts/<?=$compression?>/json2.js"><\/script>'); }</script>
- <?php if ( $persist === 'persistant' ) : ?>
- <script src="../scripts/<?=$compression?>/amplify.store.js"></script>
- <?php endif; ?>
- <script src="../scripts/<?=$compression?>/history.adapter.<?=$adapter?>.js"></script>
- <script src="../scripts/<?=$compression?>/history.js"></script>
- <?php if ( $support === 'html4' ) : ?>
- <script src="../scripts/<?=$compression?>/history.html4.js"></script>
- <?php endif; ?>
-
- <!-- Tests -->
- <script src="tests.js"></script>
-</body>
-</html>
25 admin/thirdparty/history-js/tests.src/index.php
View
@@ -1,25 +0,0 @@
-<?php
- # Header
- require_once(dirname(__FILE__).'/_header.php');
-
- # Index
- ob_start();
- require($dir.'/all.php');
- $contents = ob_get_contents();
- ob_end_clean();
- file_put_contents($out.'/index.html', $contents);
-
- # Each
- foreach ( $compress as $compression )
- foreach ( $supports as $support )
- foreach ( $persists as $persist )
- foreach ( $adapters as $adapter ) {
- ob_start();
- require($dir.'/each.php');
- $contents = ob_get_contents();
- ob_end_clean();
- file_put_contents($out."/${filename}", $contents);
- }
-
- # Done
-?><html><body><a href="../tests">Tests</a></body></html>
13 admin/thirdparty/history-js/tests/.htaccess
View
@@ -1,13 +0,0 @@
-Options +FollowSymlinks
-RewriteEngine On
-
-# Clean Adapter
-RewriteCond %{REQUEST_FILENAME} !-f
-RewriteCond %{REQUEST_FILENAME} !-d
-RewriteRule ([^\.]+)$ $1.html [NC,L,QSA]
-
-# Can someone smarter than me make it so:
-# http://localhost/history.js/tests/uncompressed-html5-persistant-jquery
-# Does not redirect to:
-# http://localhost/history.js/tests/uncompressed-html5-persistant-jquery.html
-# But still accesses that url
47 admin/thirdparty/history-js/tests/compressed-html4-nonpersistant-jquery.html
View
@@ -1,47 +0,0 @@
-<!DOCTYPE html>
-<html debug="true">
-<head>
- <meta http-equiv="Expires" CONTENT="Mon, 06 Jan 1990 00:00:01 GMT" />
- <meta http-equiv="PRAGMA" CONTENT="NO-CACHE" />
- <meta http-equiv="CACHE-CONTROL" CONTENT="NO-CACHE" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
- <title>History.js Compressed HTML4 Nonpersistant Jquery Test Suite</title>
-
- <!-- Check -->
- <script>
- var
- href = window.document.location.href,
- test_url = href.replace(/(history\.js\/tests\/[^\/\?\#]+).*/,'$1');
- if ( test_url !== href ) {
- window.document.location.href = test_url;
- }
- </script>
-
- <!-- Framework -->
- <script src="../vendor/jquery.js"></script>
-
- <!-- QUnit -->
- <link rel="stylesheet" href="../vendor/qunit/qunit/qunit.css" type="text/css" media="screen">
- <script src="../vendor/qunit/qunit/qunit.js"></script>
-</head>
-<body>
- <!-- Elements -->
- <h1 id="qunit-header">History.js Compressed HTML4 Nonpersistant Jquery Test Suite</h1>
- <h2 id="qunit-banner"></h2>
- <div id="qunit-testrunner-toolbar"></div>
- <h2 id="qunit-userAgent"></h2>
- <ol id="qunit-tests"></ol>
- <div id="qunit-fixture">test markup</div>
- <button onclick="history.back()">back</button><button onclick="history.forward()">forward</button>
- <textarea id="log" style="width:100%;height:400px"></textarea>
-
- <!-- History.js -->
- <script>if ( typeof window.JSON === 'undefined' ) { document.write('<script src="../scripts/compressed/json2.js"><\/script>'); }</script>
- <script src="../scripts/compressed/history.adapter.jquery.js"></script>
- <script src="../scripts/compressed/history.js"></script>
- <script src="../scripts/compressed/history.html4.js"></script>
-
- <!-- Tests -->
- <script src="tests.js"></script>
-</body>
-</html>
47 admin/thirdparty/history-js/tests/compressed-html4-nonpersistant-mootools.html
View
@@ -1,47 +0,0 @@
-<!DOCTYPE html>
-<html debug="true">
-<head>
- <meta http-equiv="Expires" CONTENT="Mon, 06 Jan 1990 00:00:01 GMT" />
- <meta http-equiv="PRAGMA" CONTENT="NO-CACHE" />
- <meta http-equiv="CACHE-CONTROL" CONTENT="NO-CACHE" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
- <title>History.js Compressed HTML4 Nonpersistant Mootools Test Suite</title>
-
- <!-- Check -->
- <script>
- var
- href = window.document.location.href,
- test_url = href.replace(/(history\.js\/tests\/[^\/\?\#]+).*/,'$1');
- if ( test_url !== href ) {
- window.document.location.href = test_url;
- }
- </script>
-
- <!-- Framework -->
- <script src="../vendor/mootools.js"></script>
-
- <!-- QUnit -->
- <link rel="stylesheet" href="../vendor/qunit/qunit/qunit.css" type="text/css" media="screen">
- <script src="../vendor/qunit/qunit/qunit.js"></script>
-</head>
-<body>
- <!-- Elements -->
- <h1 id="qunit-header">History.js Compressed HTML4 Nonpersistant Mootools Test Suite</h1>
- <h2 id="qunit-banner"></h2>
- <div id="qunit-testrunner-toolbar"></div>
- <h2 id="qunit-userAgent"></h2>
- <ol id="qunit-tests"></ol>
- <div id="qunit-fixture">test markup</div>
- <button onclick="history.back()">back</button><button onclick="history.forward()">forward</button>
- <textarea id="log" style="width:100%;height:400px"></textarea>
-
- <!-- History.js -->
- <script>if ( typeof window.JSON === 'undefined' ) { document.write('<script src="../scripts/compressed/json2.js"><\/script>'); }</script>
- <script src="../scripts/compressed/history.adapter.mootools.js"></script>
- <script src="../scripts/compressed/history.js"></script>
- <script src="../scripts/compressed/history.html4.js"></script>
-
- <!-- Tests -->
- <script src="tests.js"></script>
-</body>
-</html>
47 admin/thirdparty/history-js/tests/compressed-html4-nonpersistant-prototype.html
View
@@ -1,47 +0,0 @@
-<!DOCTYPE html>
-<html debug="true">
-<head>
- <meta http-equiv="Expires" CONTENT="Mon, 06 Jan 1990 00:00:01 GMT" />
- <meta http-equiv="PRAGMA" CONTENT="NO-CACHE" />
- <meta http-equiv="CACHE-CONTROL" CONTENT="NO-CACHE" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
- <title>History.js Compressed HTML4 Nonpersistant Prototype Test Suite</title>
-
- <!-- Check -->
- <script>
- var
- href = window.document.location.href,
- test_url = href.replace(/(history\.js\/tests\/[^\/\?\#]+).*/,'$1');
- if ( test_url !== href ) {
- window.document.location.href = test_url;
- }
- </script>
-
- <!-- Framework -->
- <script src="../vendor/prototype.js"></script>
-
- <!-- QUnit -->
- <link rel="stylesheet" href="../vendor/qunit/qunit/qunit.css" type="text/css" media="screen">
- <script src="../vendor/qunit/qunit/qunit.js"></script>
-</head>
-<body>
- <!-- Elements -->
- <h1 id="qunit-header">History.js Compressed HTML4 Nonpersistant Prototype Test Suite</h1>
- <h2 id="qunit-banner"></h2>
- <div id="qunit-testrunner-toolbar"></div>
- <h2 id="qunit-userAgent"></h2>
- <ol id="qunit-tests"></ol>
- <div id="qunit-fixture">test markup</div>
- <button onclick="history.back()">back</button><button onclick="history.forward()">forward</button>
- <textarea id="log" style="width:100%;height:400px"></textarea>
-
- <!-- History.js -->
- <script>if ( typeof window.JSON === 'undefined' ) { document.write('<script src="../scripts/compressed/json2.js"><\/script>'); }</script>
- <script src="../scripts/compressed/history.adapter.prototype.js"></script>
- <script src="../scripts/compressed/history.js"></script>
- <script src="../scripts/compressed/history.html4.js"></script>
-
- <!-- Tests -->
- <script src="tests.js"></script>
-</body>
-</html>
47 admin/thirdparty/history-js/tests/compressed-html4-nonpersistant-zepto.html
View
@@ -1,47 +0,0 @@
-<!DOCTYPE html>
-<html debug="true">
-<head>
- <meta http-equiv="Expires" CONTENT="Mon, 06 Jan 1990 00:00:01 GMT" />
- <meta http-equiv="PRAGMA" CONTENT="NO-CACHE" />
- <meta http-equiv="CACHE-CONTROL" CONTENT="NO-CACHE" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
- <title>History.js Compressed HTML4 Nonpersistant Zepto Test Suite</title>
-
- <!-- Check -->
- <script>
- var
- href = window.document.location.href,
- test_url = href.replace(/(history\.js\/tests\/[^\/\?\#]+).*/,'$1');
- if ( test_url !== href ) {
- window.document.location.href = test_url;
- }
- </script>
-
- <!-- Framework -->
- <script src="../vendor/zepto.js"></script>
-
- <!-- QUnit -->
- <link rel="stylesheet" href="../vendor/qunit/qunit/qunit.css" type="text/css" media="screen">
- <script src="../vendor/qunit/qunit/qunit.js"></script>
-</head>
-<body>
- <!-- Elements -->
- <h1 id="qunit-header">History.js Compressed HTML4 Nonpersistant Zepto Test Suite</h1>
- <h2 id="qunit-banner"></h2>
- <div id="qunit-testrunner-toolbar"></div>
- <h2 id="qunit-userAgent"></h2>
- <ol id="qunit-tests"></ol>
- <div id="qunit-fixture">test markup</div>
- <button onclick="history.back()">back</button><button onclick="history.forward()">forward</button>
- <textarea id="log" style="width:100%;height:400px"></textarea>
-
- <!-- History.js -->
- <script>if ( typeof window.JSON === 'undefined' ) { document.write('<script src="../scripts/compressed/json2.js"><\/script>'); }</script>
- <script src="../scripts/compressed/history.adapter.zepto.js"></script>
- <script src="../scripts/compressed/history.js"></script>
- <script src="../scripts/compressed/history.html4.js"></script>
-
- <!-- Tests -->
- <script src="tests.js"></script>
-</body>
-</html>
48 admin/thirdparty/history-js/tests/compressed-html4-persistant-jquery.html
View
@@ -1,48 +0,0 @@
-<!DOCTYPE html>
-<html debug="true">
-<head>
- <meta http-equiv="Expires" CONTENT="Mon, 06 Jan 1990 00:00:01 GMT" />
- <meta http-equiv="PRAGMA" CONTENT="NO-CACHE" />
- <meta http-equiv="CACHE-CONTROL" CONTENT="NO-CACHE" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
- <title>History.js Compressed HTML4 Persistant Jquery Test Suite</title>
-
- <!-- Check -->
- <script>
- var
- href = window.document.location.href,
- test_url = href.replace(/(history\.js\/tests\/[^\/\?\#]+).*/,'$1');
- if ( test_url !== href ) {
- window.document.location.href = test_url;
- }
- </script>
-
- <!-- Framework -->
- <script src="../vendor/jquery.js"></script>
-
- <!-- QUnit -->
- <link rel="stylesheet" href="../vendor/qunit/qunit/qunit.css" type="text/css" media="screen">
- <script src="../vendor/qunit/qunit/qunit.js"></script>
-</head>
-<body>
- <!-- Elements -->
- <h1 id="qunit-header">History.js Compressed HTML4 Persistant Jquery Test Suite</h1>
- <h2 id="qunit-banner"></h2>
- <div id="qunit-testrunner-toolbar"></div>
- <h2 id="qunit-userAgent"></h2>
- <ol id="qunit-tests"></ol>
- <div id="qunit-fixture">test markup</div>
- <button onclick="history.back()">back</button><button onclick="history.forward()">forward</button>
- <textarea id="log" style="width:100%;height:400px"></textarea>
-
- <!-- History.js -->
- <script>if ( typeof window.JSON === 'undefined' ) { document.write('<script src="../scripts/compressed/json2.js"><\/script>'); }</script>
- <script src="../scripts/compressed/amplify.store.js"></script>
- <script src="../scripts/compressed/history.adapter.jquery.js"></script>
- <script src="../scripts/compressed/history.js"></script>
- <script src="../scripts/compressed/history.html4.js"></script>
-
- <!-- Tests -->
- <script src="tests.js"></script>
-</body>
-</html>
48 admin/thirdparty/history-js/tests/compressed-html4-persistant-mootools.html
View
@@ -1,48 +0,0 @@
-<!DOCTYPE html>
-<html debug="true">
-<head>
- <meta http-equiv="Expires" CONTENT="Mon, 06 Jan 1990 00:00:01 GMT" />
- <meta http-equiv="PRAGMA" CONTENT="NO-CACHE" />
- <meta http-equiv="CACHE-CONTROL" CONTENT="NO-CACHE" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
- <title>History.js Compressed HTML4 Persistant Mootools Test Suite</title>
-
- <!-- Check -->
- <script>
- var
- href = window.document.location.href,
- test_url = href.replace(/(history\.js\/tests\/[^\/\?\#]+).*/,'$1');
- if ( test_url !== href ) {
- window.document.location.href = test_url;
- }
- </script>
-
- <!-- Framework -->
- <script src="../vendor/mootools.js"></script>
-
- <!-- QUnit -->
- <link rel="stylesheet" href="../vendor/qunit/qunit/qunit.css" type="text/css" media="screen">
- <script src="../vendor/qunit/qunit/qunit.js"></script>
-</head>
-<body>
- <!-- Elements -->
- <h1 id="qunit-header">History.js Compressed HTML4 Persistant Mootools Test Suite</h1>
- <h2 id="qunit-banner"></h2>
- <div id="qunit-testrunner-toolbar"></div>
- <h2 id="qunit-userAgent"></h2>
- <ol id="qunit-tests"></ol>
- <div id="qunit-fixture">test markup</div>
- <button onclick="history.back()">back</button><button onclick="history.forward()">forward</button>
- <textarea id="log" style="width:100%;height:400px"></textarea>
-
- <!-- History.js -->
- <script>if ( typeof window.JSON === 'undefined' ) { document.write('<script src="../scripts/compressed/json2.js"><\/script>'); }</script>
- <script src="../scripts/compressed/amplify.store.js"></script>
- <script src="../scripts/compressed/history.adapter.mootools.js"></script>
- <script src="../scripts/compressed/history.js"></script>
- <script src="../scripts/compressed/history.html4.js"></script>
-
- <!-- Tests -->
- <script src="tests.js"></script>
-</body>
-</html>
48 admin/thirdparty/history-js/tests/compressed-html4-persistant-prototype.html
View
@@ -1,48 +0,0 @@
-<!DOCTYPE html>
-<html debug="true">
-<head>
- <meta http-equiv="Expires" CONTENT="Mon, 06 Jan 1990 00:00:01 GMT" />
- <meta http-equiv="PRAGMA" CONTENT="NO-CACHE" />
- <meta http-equiv="CACHE-CONTROL" CONTENT="NO-CACHE" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
- <title>History.js Compressed HTML4 Persistant Prototype Test Suite</title>
-
- <!-- Check -->
- <script>
- var
- href = window.document.location.href,
- test_url = href.replace(/(history\.js\/tests\/[^\/\?\#]+).*/,'$1');
- if ( test_url !== href ) {
- window.document.location.href = test_url;
- }
- </script>
-
- <!-- Framework -->
- <script src="../vendor/prototype.js"></script>
-
- <!-- QUnit -->
- <link rel="stylesheet" href="../vendor/qunit/qunit/qunit.css" type="text/css" media="screen">
- <script src="../vendor/qunit/qunit/qunit.js"></script>
-</head>
-<body>
- <!-- Elements -->
- <h1 id="qunit-header">History.js Compressed HTML4 Persistant Prototype Test Suite</h1>
- <h2 id="qunit-banner"></h2>
- <div id="qunit-testrunner-toolbar"></div>
- <h2 id="qunit-userAgent"></h2>
- <ol id="qunit-tests"></ol>
- <div id="qunit-fixture">test markup</div>
- <button onclick="history.back()">back</button><button onclick="history.forward()">forward</button>
- <textarea id="log" style="width:100%;height:400px"></textarea>
-
- <!-- History.js -->
- <script>if ( typeof window.JSON === 'undefined' ) { document.write('<script src="../scripts/compressed/json2.js"><\/script>'); }</script>
- <script src="../scripts/compressed/amplify.store.js"></script>
- <script src="../scripts/compressed/history.adapter.prototype.js"></script>
- <script src="../scripts/compressed/history.js"></script>
- <script src="../scripts/compressed/history.html4.js"></script>
-
- <!-- Tests -->
- <script src="tests.js"></script>
-</body>
-</html>
48 admin/thirdparty/history-js/tests/compressed-html4-persistant-zepto.html
View
@@ -1,48 +0,0 @@
-<!DOCTYPE html>
-<html debug="true">
-<head>
- <meta http-equiv="Expires" CONTENT="Mon, 06 Jan 1990 00:00:01 GMT" />
- <meta http-equiv="PRAGMA" CONTENT="NO-CACHE" />
- <meta http-equiv="CACHE-CONTROL" CONTENT="NO-CACHE" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
- <title>History.js Compressed HTML4 Persistant Zepto Test Suite</title>
-
- <!-- Check -->
- <script>
- var
- href = window.document.location.href,
- test_url = href.replace(/(history\.js\/tests\/[^\/\?\#]+).*/,'$1');
- if ( test_url !== href ) {
- window.document.location.href = test_url;
- }
- </script>
-
- <!-- Framework -->
- <script src="../vendor/zepto.js"></script>
-
- <!-- QUnit -->
- <link rel="stylesheet" href="../vendor/qunit/qunit/qunit.css" type="text/css" media="screen">
- <script src="../vendor/qunit/qunit/qunit.js"></script>
-</head>
-<body>
- <!-- Elements -->
- <h1 id="qunit-header">History.js Compressed HTML4 Persistant Zepto Test Suite</h1>
- <h2 id="qunit-banner"></h2>
- <div id="qunit-testrunner-toolbar"></div>
- <h2 id="qunit-userAgent"></h2>
- <ol id="qunit-tests"></ol>
- <div id="qunit-fixture">test markup</div>
- <button onclick="history.back()">back</button><button onclick="history.forward()">forward</button>
- <textarea id="log" style="width:100%;height:400px"></textarea>
-
- <!-- History.js -->
- <script>if ( typeof window.JSON === 'undefined' ) { document.write('<script src="../scripts/compressed/json2.js"><\/script>'); }</script>
- <script src="../scripts/compressed/amplify.store.js"></script>
- <script src="../scripts/compressed/history.adapter.zepto.js"></script>
- <script src="../scripts/compressed/history.js"></script>
- <script src="../scripts/compressed/history.html4.js"></script>
-
- <!-- Tests -->
- <script src="tests.js"></script>
-</body>
-</html>
46 admin/thirdparty/history-js/tests/compressed-html5-nonpersistant-jquery.html
View
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<html debug="true">
-<head>
- <meta http-equiv="Expires" CONTENT="Mon, 06 Jan 1990 00:00:01 GMT" />
- <meta http-equiv="PRAGMA" CONTENT="NO-CACHE" />
- <meta http-equiv="CACHE-CONTROL" CONTENT="NO-CACHE" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
- <title>History.js Compressed HTML5 Nonpersistant Jquery Test Suite</title>
-
- <!-- Check -->
- <script>
- var
- href = window.document.location.href,
- test_url = href.replace(/(history\.js\/tests\/[^\/\?\#]+).*/,'$1');
- if ( test_url !== href ) {
- window.document.location.href = test_url;
- }
- </script>
-
- <!-- Framework -->
- <script src="../vendor/jquery.js"></script>
-
- <!-- QUnit -->
- <link rel="stylesheet" href="../vendor/qunit/qunit/qunit.css" type="text/css" media="screen">
- <script src="../vendor/qunit/qunit/qunit.js"></script>
-</head>
-<body>
- <!-- Elements -->
- <h1 id="qunit-header">History.js Compressed HTML5 Nonpersistant Jquery Test Suite</h1>
- <h2 id="qunit-banner"></h2>
- <div id="qunit-testrunner-toolbar"></div>
- <h2 id="qunit-userAgent"></h2>
- <ol id="qunit-tests"></ol>
- <div id="qunit-fixture">test markup</div>
- <button onclick="history.back()">back</button><button onclick="history.forward()">forward</button>
- <textarea id="log" style="width:100%;height:400px"></textarea>
-
- <!-- History.js -->
- <script>if ( typeof window.JSON === 'undefined' ) { document.write('<script src="../scripts/compressed/json2.js"><\/script>'); }</script>
- <script src="../scripts/compressed/history.adapter.jquery.js"></script>
- <script src="../scripts/compressed/history.js"></script>
-
- <!-- Tests -->
- <script src="tests.js"></script>
-</body>
-</html>
46 admin/thirdparty/history-js/tests/compressed-html5-nonpersistant-mootools.html
View
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<html debug="true">
-<head>
- <meta http-equiv="Expires" CONTENT="Mon, 06 Jan 1990 00:00:01 GMT" />
- <meta http-equiv="PRAGMA" CONTENT="NO-CACHE" />
- <meta http-equiv="CACHE-CONTROL" CONTENT="NO-CACHE" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
- <title>History.js Compressed HTML5 Nonpersistant Mootools Test Suite</title>
-
- <!-- Check -->
- <script>
- var
- href = window.document.location.href,
- test_url = href.replace(/(history\.js\/tests\/[^\/\?\#]+).*/,'$1');
- if ( test_url !== href ) {
- window.document.location.href = test_url;
- }
- </script>
-
- <!-- Framework -->
- <script src="../vendor/mootools.js"></script>
-
- <!-- QUnit -->
- <link rel="stylesheet" href="../vendor/qunit/qunit/qunit.css" type="text/css" media="screen">
- <script src="../vendor/qunit/qunit/qunit.js"></script>
-</head>
-<body>
- <!-- Elements -->
- <h1 id="qunit-header">History.js Compressed HTML5 Nonpersistant Mootools Test Suite</h1>
- <h2 id="qunit-banner"></h2>
- <div id="qunit-testrunner-toolbar"></div>
- <h2 id="qunit-userAgent"></h2>
- <ol id="qunit-tests"></ol>
- <div id="qunit-fixture">test markup</div>
- <button onclick="history.back()">back</button><button onclick="history.forward()">forward</button>
- <textarea id="log" style="width:100%;height:400px"></textarea>
-
- <!-- History.js -->
- <script>if ( typeof window.JSON === 'undefined' ) { document.write('<script src="../scripts/compressed/json2.js"><\/script>'); }</script>
- <script src="../scripts/compressed/history.adapter.mootools.js"></script>
- <script src="../scripts/compressed/history.js"></script>
-
- <!-- Tests -->
- <script src="tests.js"></script>
-</body>
-</html>
46 admin/thirdparty/history-js/tests/compressed-html5-nonpersistant-prototype.html
View
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<html debug="true">
-<head>
- <meta http-equiv="Expires" CONTENT="Mon, 06 Jan 1990 00:00:01 GMT" />
- <meta http-equiv="PRAGMA" CONTENT="NO-CACHE" />
- <meta http-equiv="CACHE-CONTROL" CONTENT="NO-CACHE" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
- <title>History.js Compressed HTML5 Nonpersistant Prototype Test Suite</title>
-
- <!-- Check -->
- <script>
- var
- href = window.document.location.href,
- test_url = href.replace(/(history\.js\/tests\/[^\/\?\#]+).*/,'$1');
- if ( test_url !== href ) {
- window.document.location.href = test_url;
- }
- </script>
-
- <!-- Framework -->
- <script src="../vendor/prototype.js"></script>
-
- <!-- QUnit -->
- <link rel="stylesheet" href="../vendor/qunit/qunit/qunit.css" type="text/css" media="screen">
- <script src="../vendor/qunit/qunit/qunit.js"></script>
-</head>
-<body>
- <!-- Elements -->
- <h1 id="qunit-header">History.js Compressed HTML5 Nonpersistant Prototype Test Suite</h1>
- <h2 id="qunit-banner"></h2>
- <div id="qunit-testrunner-toolbar"></div>
- <h2 id="qunit-userAgent"></h2>
- <ol id="qunit-tests"></ol>
- <div id="qunit-fixture">test markup</div>
- <button onclick="history.back()">back</button><button onclick="history.forward()">forward</button>
- <textarea id="log" style="width:100%;height:400px"></textarea>
-
- <!-- History.js -->
- <script>if ( typeof window.JSON === 'undefined' ) { document.write('<script src="../scripts/compressed/json2.js"><\/script>'); }</script>
- <script src="../scripts/compressed/history.adapter.prototype.js"></script>
- <script src="../scripts/compressed/history.js"></script>
-
- <!-- Tests -->
- <script src="tests.js"></script>
-</body>
-</html>
46 admin/thirdparty/history-js/tests/compressed-html5-nonpersistant-zepto.html
View
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<html debug="true">
-<head>
- <meta http-equiv="Expires" CONTENT="Mon, 06 Jan 1990 00:00:01 GMT" />
- <meta http-equiv="PRAGMA" CONTENT="NO-CACHE" />
- <meta http-equiv="CACHE-CONTROL" CONTENT="NO-CACHE" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
- <title>History.js Compressed HTML5 Nonpersistant Zepto Test Suite</title>
-
- <!-- Check -->
- <script>
- var
- href = window.document.location.href,
- test_url = href.replace(/(history\.js\/tests\/[^\/\?\#]+).*/,'$1');
- if ( test_url !== href ) {
- window.document.location.href = test_url;
- }
- </script>
-
- <!-- Framework -->
- <script src="../vendor/zepto.js"></script>
-
- <!-- QUnit -->
- <link rel="stylesheet" href="../vendor/qunit/qunit/qunit.css" type="text/css" media="screen">
- <script src="../vendor/qunit/qunit/qunit.js"></script>
-</head>
-<body>
- <!-- Elements -->
- <h1 id="qunit-header">History.js Compressed HTML5 Nonpersistant Zepto Test Suite</h1>
- <h2 id="qunit-banner"></h2>
- <div id="qunit-testrunner-toolbar"></div>
- <h2 id="qunit-userAgent"></h2>
- <ol id="qunit-tests"></ol>
- <div id="qunit-fixture">test markup</div>
- <button onclick="history.back()">back</button><button onclick="history.forward()">forward</button>
- <textarea id="log" style="width:100%;height:400px"></textarea>
-
- <!-- History.js -->
- <script>if ( typeof window.JSON === 'undefined' ) { document.write('<script src="../scripts/compressed/json2.js"><\/script>'); }</script>
- <script src="../scripts/compressed/history.adapter.zepto.js"></script>
- <script src="../scripts/compressed/history.js"></script>
-
- <!-- Tests -->
- <script src="tests.js"></script>
-</body>
-</html>
47 admin/thirdparty/history-js/tests/compressed-html5-persistant-jquery.html
View
@@ -1,47 +0,0 @@
-<!DOCTYPE html>
-<html debug="true">
-<head>
- <meta http-equiv="Expires" CONTENT="Mon, 06 Jan 1990 00:00:01 GMT" />
- <meta http-equiv="PRAGMA" CONTENT="NO-CACHE" />
- <meta http-equiv="CACHE-CONTROL" CONTENT="NO-CACHE" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
- <title>History.js Compressed HTML5 Persistant Jquery Test Suite</title>
-
- <!-- Check -->
- <script>
- var
- href = window.document.location.href,
- test_url = href.replace(/(history\.js\/tests\/[^\/\?\#]+).*/,'$1');
- if ( test_url !== href ) {
- window.document.location.href = test_url;
- }
- </script>
-
- <!-- Framework -->
- <script src="../vendor/jquery.js"></script>
-
- <!-- QUnit -->
- <link rel="stylesheet" href="../vendor/qunit/qunit/qunit.css" type="text/css" media="screen">
- <script src="../vendor/qunit/qunit/qunit.js"></script>
-</head>
-<body>
- <!-- Elements -->
- <h1 id="qunit-header">History.js Compressed HTML5 Persistant Jquery Test Suite</h1>
- <h2 id="qunit-banner"></h2>
- <div id="qunit-testrunner-toolbar"></div>
- <h2 id="qunit-userAgent"></h2>
- <ol id="qunit-tests"></ol>
- <div id="qunit-fixture">test markup</div>
- <button onclick="history.back()">back</button><button onclick="history.forward()">forward</button>
- <textarea id="log" style="width:100%;height:400px"></textarea>
-
- <!-- History.js -->
- <script>if ( typeof window.JSON === 'undefined' ) { document.write('<script src="../scripts/compressed/json2.js"><\/script>'); }</script>
- <script src="../scripts/compressed/amplify.store.js"></script>
- <script src="../scripts/compressed/history.adapter.jquery.js"></script>
- <script src="../scripts/compressed/history.js"></script>
-
- <!-- Tests -->
- <script src="tests.js"></script>
-</body>
-</html>
47 admin/thirdparty/history-js/tests/compressed-html5-persistant-mootools.html
View
@@ -1,47 +0,0 @@
-<!DOCTYPE html>
-<html debug="true">
-<head>
- <meta http-equiv="Expires" CONTENT="Mon, 06 Jan 1990 00:00:01 GMT" />
- <meta http-equiv="PRAGMA" CONTENT="NO-CACHE" />
- <meta http-equiv="CACHE-CONTROL" CONTENT="NO-CACHE" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
- <title>History.js Compressed HTML5 Persistant Mootools Test Suite</title>
-
- <!-- Check -->
- <script>
- var
- href = window.document.location.href,
- test_url = href.replace(/(history\.js\/tests\/[^\/\?\#]+).*/,'$1');
- if ( test_url !== href ) {
- window.document.location.href = test_url;
- }
- </script>
-
- <!-- Framework -->
- <script src="../vendor/mootools.js"></script>
-
- <!-- QUnit -->
- <link rel="stylesheet" href="../vendor/qunit/qunit/qunit.css" type="text/css" media="screen">
- <script src="../vendor/qunit/qunit/qunit.js"></script>
-</head>
-<body>
- <!-- Elements -->
- <h1 id="qunit-header">History.js Compressed HTML5 Persistant Mootools Test Suite</h1>
- <h2 id="qunit-banner"></h2>
- <div id="qunit-testrunner-toolbar"></div>
- <h2 id="qunit-userAgent"></h2>
- <ol id="qunit-tests"></ol>
- <div id="qunit-fixture">test markup</div>
- <button onclick="history.back()">back</button><button onclick="history.forward()">forward</button>
- <textarea id="log" style="width:100%;height:400px"></textarea>
-
- <!-- History.js -->
- <script>if ( typeof window.JSON === 'undefined' ) { document.write('<script src="../scripts/compressed/json2.js"><\/script>'); }</script>
- <script src="../scripts/compressed/amplify.store.js"></script>
- <script src="../scripts/compressed/history.adapter.mootools.js"></script>
- <script src="../scripts/compressed/history.js"></script>
-
- <!-- Tests -->
- <script src="tests.js"></script>
-</body>
-</html>
47 admin/thirdparty/history-js/tests/compressed-html5-persistant-prototype.html
View
@@ -1,47 +0,0 @@
-<!DOCTYPE html>
-<html debug="true">
-<head>
- <meta http-equiv="Expires" CONTENT="Mon, 06 Jan 1990 00:00:01 GMT" />
- <meta http-equiv="PRAGMA" CONTENT="NO-CACHE" />
- <meta http-equiv="CACHE-CONTROL" CONTENT="NO-CACHE" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
- <title>History.js Compressed HTML5 Persistant Prototype Test Suite</title>
-
- <!-- Check -->
- <script>
- var
- href = window.document.location.href,
- test_url = href.replace(/(history\.js\/tests\/[^\/\?\#]+).*/,'$1');
- if ( test_url !== href ) {
- window.document.location.href = test_url;
- }
- </script>
-
- <!-- Framework -->
- <script src="../vendor/prototype.js"></script>
-
- <!-- QUnit -->
- <link rel="stylesheet" href="../vendor/qunit/qunit/qunit.css" type="text/css" media="screen">
- <script src="../vendor/qunit/qunit/qunit.js"></script>
-</head>
-<body>
- <!-- Elements -->
- <h1 id="qunit-header">History.js Compressed HTML5 Persistant Prototype Test Suite</h1>
- <h2 id="qunit-banner"></h2>
- <div id="qunit-testrunner-toolbar"></div>
- <h2 id="qunit-userAgent"></h2>
- <ol id="qunit-tests"></ol>
- <div id="qunit-fixture">test markup</div>
- <button onclick="history.back()">back</button><button onclick="history.forward()">forward</button>
- <textarea id="log" style="width:100%;height:400px"></textarea>
-
- <!-- History.js -->
- <script>if ( typeof window.JSON === 'undefined' ) { document.write('<script src="../scripts/compressed/json2.js"><\/script>'); }</script>
- <script src="../scripts/compressed/amplify.store.js"></script>
- <script src="../scripts/compressed/history.adapter.prototype.js"></script>
- <script src="../scripts/compressed/history.js"></script>
-
- <!-- Tests -->
- <script src="tests.js"></script>
-</body>
-</html>
47 admin/thirdparty/history-js/tests/compressed-html5-persistant-zepto.html
View
@@ -1,47 +0,0 @@
-<!DOCTYPE html>
-<html debug="true">
-<head>
- <meta http-equiv="Expires" CONTENT="Mon, 06 Jan 1990 00:00:01 GMT" />
- <meta http-equiv="PRAGMA" CONTENT="NO-CACHE" />
- <meta http-equiv="CACHE-CONTROL" CONTENT="NO-CACHE" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
- <title>History.js Compressed HTML5 Persistant Zepto Test Suite</title>
-
- <!-- Check -->
- <script>
- var
- href = window.document.location.href,
- test_url = href.replace(/(history\.js\/tests\/[^\/\?\#]+).*/,'$1');
- if ( test_url !== href ) {
- window.document.location.href = test_url;
- }
- </script>
-
- <!-- Framework -->
- <script src="../vendor/zepto.js"></script>
-
- <!-- QUnit -->
- <link rel="stylesheet" href="../vendor/qunit/qunit/qunit.css" type="text/css" media="screen">
- <script src="../vendor/qunit/qunit/qunit.js"></script>
-</head>
-<body>
- <!-- Elements -->
- <h1 id="qunit-header">History.js Compressed HTML5 Persistant Zepto Test Suite</h1>
- <h2 id="qunit-banner"></h2>
- <div id="qunit-testrunner-toolbar"></div>
- <h2 id="qunit-userAgent"></h2>
- <ol id="qunit-tests"></ol>
- <div id="qunit-fixture">test markup</div>
- <button onclick="history.back()">back</button><button onclick="history.forward()">forward</button>
- <textarea id="log" style="width:100%;height:400px"></textarea>
-
- <!-- History.js -->
- <script>if ( typeof window.JSON === 'undefined' ) { document.write('<script src="../scripts/compressed/json2.js"><\/script>'); }</script>
- <script src="../scripts/compressed/amplify.store.js"></script>
- <script src="../scripts/compressed/history.adapter.zepto.js"></script>
- <script src="../scripts/compressed/history.js"></script>
-
- <!-- Tests -->
- <script src="tests.js"></script>
-</body>
-</html>
3  admin/thirdparty/history-js/tests/image.php
View
@@ -1,3 +0,0 @@
-<?php
-header('Content-type: image/jpeg');
-sleep(10);
28 admin/thirdparty/history-js/tests/index.html
View
@@ -1,28 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <title>History.js Test Suite</title>
- <style type="text/css">
- body,html,iframe {
- padding:0;
- margin:0;
- outline:none;
- border:none;
- }
- .compress {
- padding-bottom:1em;
- }
- .support {
- padding-bottom:1em;
- }
- .persist {
- padding-bottom:1em;
- }
- </style>
-</head>
-<body>
- <h1>History.js Test Suite</h1>
- <p>HTML5 Browsers - should pass the HTML4 and HTML5 tests</p>
- <p>HTML4 Browsers - should pass the HTML4 tests and fail the HTML5 tests</p>
- <div class="compress"><div class="support"><div class="persist"><div class="adapter"><a href="uncompressed-html5-persistant-jquery.html">History.js Uncompressed HTML5 Persistant Jquery Test Suite</a></div><div class="adapter"><a href="uncompressed-html5-persistant-mootools.html">History.js Uncompressed HTML5 Persistant Mootools Test Suite</a></div><div class="adapter"><a href="uncompressed-html5-persistant-prototype.html">History.js Uncompressed HTML5 Persistant Prototype Test Suite</a></div><div class="adapter"><a href="uncompressed-html5-persistant-zepto.html">History.js Uncompressed HTML5 Persistant Zepto Test Suite</a></div></div><div class="persist"><div class="adapter"><a href="uncompressed-html5-nonpersistant-jquery.html">History.js Uncompressed HTML5 Nonpersistant Jquery Test Suite</a></div><div class="adapter"><a href="uncompressed-html5-nonpersistant-mootools.html">History.js Uncompressed HTML5 Nonpersistant Mootools Test Suite</a></div><div class="adapter"><a href="uncompressed-html5-nonpersistant-prototype.html">History.js Uncompressed HTML5 Nonpersistant Prototype Test Suite</a></div><div class="adapter"><a href="uncompressed-html5-nonpersistant-zepto.html">History.js Uncompressed HTML5 Nonpersistant Zepto Test Suite</a></div></div></div><div class="support"><div class="persist"><div class="adapter"><a href="uncompressed-html4-persistant-jquery.html">History.js Uncompressed HTML4 Persistant Jquery Test Suite</a></div><div class="adapter"><a href="uncompressed-html4-persistant-mootools.html">History.js Uncompressed HTML4 Persistant Mootools Test Suite</a></div><div class="adapter"><a href="uncompressed-html4-persistant-prototype.html">History.js Uncompressed HTML4 Persistant Prototype Test Suite</a></div><div class="adapter"><a href="uncompressed-html4-persistant-zepto.html">History.js Uncompressed HTML4 Persistant Zepto Test Suite</a></div></div><div class="persist"><div class="adapter"><a href="uncompressed-html4-nonpersistant-jquery.html">History.js Uncompressed HTML4 Nonpersistant Jquery Test Suite</a></div><div class="adapter"><a href="uncompressed-html4-nonpersistant-mootools.html">History.js Uncompressed HTML4 Nonpersistant Mootools Test Suite</a></div><div class="adapter"><a href="uncompressed-html4-nonpersistant-prototype.html">History.js Uncompressed HTML4 Nonpersistant Prototype Test Suite</a></div><div class="adapter"><a href="uncompressed-html4-nonpersistant-zepto.html">History.js Uncompressed HTML4 Nonpersistant Zepto Test Suite</a></div></div></div></div><div class="compress"><div class="support"><div class="persist"><div class="adapter"><a href="compressed-html5-persistant-jquery.html">History.js Compressed HTML5 Persistant Jquery Test Suite</a></div><div class="adapter"><a href="compressed-html5-persistant-mootools.html">History.js Compressed HTML5 Persistant Mootools Test Suite</a></div><div class="adapter"><a href="compressed-html5-persistant-prototype.html">History.js Compressed HTML5 Persistant Prototype Test Suite</a></div><div class="adapter"><a href="compressed-html5-persistant-zepto.html">History.js Compressed HTML5 Persistant Zepto Test Suite</a></div></div><div class="persist"><div class="adapter"><a href="compressed-html5-nonpersistant-jquery.html">History.js Compressed HTML5 Nonpersistant Jquery Test Suite</a></div><div class="adapter"><a href="compressed-html5-nonpersistant-mootools.html">History.js Compressed HTML5 Nonpersistant Mootools Test Suite</a></div><div class="adapter"><a href="compressed-html5-nonpersistant-prototype.html">History.js Compressed HTML5 Nonpersistant Prototype Test Suite</a></div><div class="adapter"><a href="compressed-html5-nonpersistant-zepto.html">History.js Compressed HTML5 Nonpersistant Zepto Test Suite</a></div></div></div><div class="support"><div class="persist"><div class="adapter"><a href="compressed-html4-persistant-jquery.html">History.js Compressed HTML4 Persistant Jquery Test Suite</a></div><div class="adapter"><a href="compressed-html4-persistant-mootools.html">History.js Compressed HTML4 Persistant Mootools Test Suite</a></div><div class="adapter"><a href="compressed-html4-persistant-prototype.html">History.js Compressed HTML4 Persistant Prototype Test Suite</a></div><div class="adapter"><a href="compressed-html4-persistant-zepto.html">History.js Compressed HTML4 Persistant Zepto Test Suite</a></div></div><div class="persist"><div class="adapter"><a href="compressed-html4-nonpersistant-jquery.html">History.js Compressed HTML4 Nonpersistant Jquery Test Suite</a></div><div class="adapter"><a href="compressed-html4-nonpersistant-mootools.html">History.js Compressed HTML4 Nonpersistant Mootools Test Suite</a></div><div class="adapter"><a href="compressed-html4-nonpersistant-prototype.html">History.js Compressed HTML4 Nonpersistant Prototype Test Suite</a></div><div class="adapter"><a href="compressed-html4-nonpersistant-zepto.html">History.js Compressed HTML4 Nonpersistant Zepto Test Suite</a></div></div></div></div></body>
-</html>
254 admin/thirdparty/history-js/tests/tests.js
View
@@ -1,254 +0,0 @@
-(function(){
-
-var
- History = window.History,
- document = window.document,
- test = window.test,
- same = window.same;
-
-// Check
-if ( !History.enabled ) {
- throw new Error('History.js is disabled');
-}
-
-// Prepare
-History.options.debug = false;
-
-// Variables
-var
- States = {
- // Home
- 0: {
- 'url': document.location.href.replace(/#.*$/,''),
- 'title': ''
- },
- // One
- 1: {
- 'data': {
- 'state': 1,
- 'rand': Math.random()
- },
- 'title': 'State 1',
- 'url': '?state=1'
- },
- // Two
- 2: {
- 'data': {
- 'state': 2,
- 'rand': Math.random()
- },
- 'title': 'State 2',
- 'url': '?state=2&asd=%20asd%2520asd'
- },
- // Three
- 3: {
- 'url': '?state=3'
- },
- // Four
- 4: {
- 'data': {
- 'state': 4,
- 'trick': true,
- 'rand': Math.random()
- },
- 'title': 'State 4',
- 'url': '?state=3'
- },
- // Log
- 5: {
- 'url': '?state=1#log'
- },
- // Six
- 6: {
- 'data': {
- 'state': 6,
- 'rand': Math.random()
- },
- 'url': 'six.html'
- },
- // Seven
- 7: {
- 'url': 'seven'
- },
- // Eight
- 8: {
- 'url': '/eight'
- }
- },
- stateOrder = [0,1,2,3,4,3,1,0,1,3,4,3,1,0,6,7,8,1,8,7,6,0],
- currentTest = 0;
-
-// Original Title
-var title = document.title;
-
-var banner;
-
-var checkStatus = function(){
- banner = banner || document.getElementById('qunit-banner');
- var status = banner.className !== 'qunit-fail';
- return status;
-};
-
-// Check State
-var checkState = function(){
- if ( !checkStatus() ) {
- throw new Error('A test has failed');
- }
-
- var
- stateIndex = stateOrder[currentTest],
- expectedState = History.normalizeState(States[stateIndex]),
- actualState = History.getState(false);
-
- ++currentTest;
-
- document.title = title+': '+actualState.url;
-
- var
- testName = 'Test '+currentTest,
- stateName = 'State '+stateIndex;
-
- test(testName,function(){
- History.log('Completed: '+testName +' / '+ stateName);
- same(actualState,expectedState,stateName);
- });
-
- // Image Load to Stress Test Safari and Opera
- (new Image()).src = "image.php";
-};
-
-// Check the Initial State
-checkState();
-
-// State Change
-History.Adapter.bind(window,'statechange',checkState);
-
-// Log
-var addLog = function(){
- var args = arguments;
- History.queue(function(){
- History.log.apply(History,args);
- });
-};
-
-// Dom Load
-History.Adapter.onDomLoad(function(){
- setTimeout(function(){
-
- // ----------------------------------------------------------------------
- // Test State Functionality: Adding
-
- // Test 2 / State 1 (0 -> 1)
- // Tests HTML4 -> HTML5 Graceful Upgrade
- addLog('Test 2',History.queues.length,History.busy.flag);
- History.setHash(History.getHashByState(States[1]));
-
- // Test 3 / State 2 (1 -> 2)
- addLog('Test 3',History.queues.length,History.busy.flag);
- History.pushState(States[2].data, States[2].title, States[2].url);
-
- // Test 3-2 / State 2 (2 -> 2) / No Change
- addLog('Test 3-2',History.queues.length,History.busy.flag);
- History.pushState(States[2].data, States[2].title, States[2].url);
-
- // Test 3-3 / State 2 (2 -> 2) / No Change
- addLog('Test 3-3',History.queues.length,History.busy.flag);
- History.replaceState(States[2].data, States[2].title, States[2].url);
-
- // Test 4 / State 3 (2 -> 3)
- addLog('Test 4',History.queues.length,History.busy.flag);
- History.replaceState(States[3].data, States[3].title, States[3].url);
-
- // Test 5 / State 4 (3 -> 4)
- addLog('Test 5',History.queues.length,History.busy.flag);
- History.pushState(States[4].data, States[4].title, States[4].url);
-
- // ----------------------------------------------------------------------
- // Test State Functionality: Traversing
-
- // Test 6 / State 3 (4 -> 3)
- // Test 7 / State 1 (3 -> 2 -> 1)
- addLog('Test 6,7',History.queues.length,History.busy.flag);
- History.go(-2);
-
- // Test 8 / State 0 (1 -> 0)
- // Tests Default State
- addLog('Test 8',History.queues.length,History.busy.flag);
- History.back();
-
- // Test 9 / State 1 (0 -> 1)
- // Test 10 / State 3 (1 -> 2 -> 3)
- addLog('Test 9,10',History.queues.length,History.busy.flag);
- History.go(2);
-
- // Test 11 / State 4 (3 -> 4)
- addLog('Test 11',History.queues.length,History.busy.flag);
- History.forward();
-
- // Test 12 / State 3 (4 -> 3)
- addLog('Test 12',History.queues.length,History.busy.flag);
- History.back();
-
- // Test 13 / State 1 (3 -> 2 -> 1)
- addLog('Test 13',History.queues.length,History.busy.flag);
- History.back();
-
- // ----------------------------------------------------------------------
- // Test State Functionality: Traditional Anchors
-
- // Test 13-2 / State 1 (1 -> #log) / No Change
- addLog('Test 13-2',History.queues.length,History.busy.flag);
- History.setHash('log');
-
- // Test 13-3 / State 1 (#log -> 1) / No Change
- addLog('Test 13-3',History.queues.length,History.busy.flag);
- History.back();
-
- // Test 14 / State 0 (1 -> 0)
- addLog('Test 14',History.queues.length,History.busy.flag);
- History.back();
-
- // ----------------------------------------------------------------------
- // Test URL Handling: Adding
-
- // Test 15 / State 6 (1 -> 6)
- // Also tests data with no title
- addLog('Test 15',History.queues.length,History.busy.flag);
- History.pushState(States[6].data, States[6].title, States[6].url);
-
- // Test 16 / State 7 (6 -> 7)
- addLog('Test 16',History.queues.length,History.busy.flag);
- History.pushState(States[7].data, States[7].title, States[7].url);
-
- // Test 17 / State 7 (7 -> 8)
- addLog('Test 17',History.queues.length,History.busy.flag);
- History.pushState(States[8].data, States[8].title, States[8].url);
-
- // Test 18 / State 1 (8 -> 1)
- // Should be /eight?state=1
- addLog('Test 18',History.queues.length,History.busy.flag);
- History.pushState(States[1].data, States[1].title, States[1].url);
-
- // ----------------------------------------------------------------------
- // Test URL Handling: Traversing
-
- // Test 19 / State 8 (1 -> 8)
- addLog('Test 19',History.queues.length,History.busy.flag);
- History.back();
-
- // Test 20 / State 7 (8 -> 7)
- addLog('Test 20',History.queues.length,History.busy.flag);
- History.back();
-
- // Test 21 / State 6 (7 -> 6)
- addLog('Test 21',History.queues.length,History.busy.flag);
- History.back();
-
- // Test 22 / State 0 (6 -> 0)
- addLog('Test 22',History.queues.length,History.busy.flag);
- History.back();
-
- },1000); // wait for test one to complete
-});
-
-})();
47 admin/thirdparty/history-js/tests/uncompressed-html4-nonpersistant-jquery.html
View
@@ -1,47 +0,0 @@
-<!DOCTYPE html>
-<html debug="true">
-<head>
- <meta http-equiv="Expires" CONTENT="Mon, 06 Jan 1990 00:00:01 GMT" />
- <meta http-equiv="PRAGMA" CONTENT="NO-CACHE" />
- <meta http-equiv="CACHE-CONTROL" CONTENT="NO-CACHE" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
- <title>History.js Uncompressed HTML4 Nonpersistant Jquery Test Suite</title>
-
- <!-- Check -->
- <script>
- var
- href = window.document.location.href,
- test_url = href.replace(/(history\.js\/tests\/[^\/\?\#]+).*/,'$1');
- if ( test_url !== href ) {
- window.document.location.href = test_url;
- }
- </script>
-
- <!-- Framework -->