Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
92 lines (81 sloc) 2.97 KB
require_once 'inc/functions.php';
if (array_key_exists('jnavigate', $_GET) ||
array_key_exists('jnavigate', $_POST)) {
} else {
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8" />
<title>jNavigate jQuery plugin</title>
<link href=',light,regular,bold' rel='stylesheet' type='text/css'>
<link rel="stylesheet" media="screen" type="text/css" href="style/style.css">
<a id="fork-banner" href="">
<img src="" alt="Fork me on GitHub">
<div id="wrap">
<h1>jNavigate jQuery plugin</h1>
<nav id="main-nav">
<li><a class="ext-trigger" href="index.php?page=home">jNavigate home</a></li>
<li><a class="ext-trigger" href="index.php?page=docs">Documentation</a></li>
<li><a class="ext-trigger" href="index.php?page=form">Form example</a></li>
<li><a class="ext-trigger" href="index.php?page=utils">Utility methods</a></li>
<li><a id="kill" href="index.php?page=form">Kill jNavigate</a></li>
<div id="main">
<?php load_partial(); ?>
<a class="backBtn" href="">Back to the article</a>
<script src=""></script>
<script src="js/jnavigate.jquery.js"></script>
$(function () {
extTrigger: ".ext-trigger",
intTrigger: ".trigger",
loaded: utilsDemos
$("#kill").click(function (ev) {
utilsDemos(); // just in case user landed on utils page!
function utilsDemos () {
$("#loadingDemo").unbind().click(function (ev) {
var $box = $("#loadingBox")
, $loading = $"jnavigate-overlay");
if (!$loading) {
$loading = $"jnavigate-overlay");
$(this).text("Remove loading overlay");
} else if ($":hidden")) {
$(this).text("Remove loading overlay");
} else {
$(this).text("Add loading overlay");
$("#navigateDemo").unbind().click(function (ev) {
$("#navigateBox").jNavigate("navigate", {
url: this.href
, useHistory: false
<?php include 'inc/footer.php'; } ?>