mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 17:00:04 +02:00
318 lines
9.1 KiB
HTML
318 lines
9.1 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
|
"http://www.w3.org/TR/html4/strict.dtd">
|
|
<html lang="en">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<title>Learn Git Branching</title>
|
|
<meta name="author" content="Peter Cottle">
|
|
<link rel="stylesheet" href="src/style/main.css" type="text/css" charset="utf-8">
|
|
<link rel="stylesheet" href="src/style/font-awesome.css" type="text/css" charset="utf-8">
|
|
</head>
|
|
<body>
|
|
|
|
<!-- The entire interface is within this div -->
|
|
<div id="interfaceWrapper" class="box horizontal flex1">
|
|
<div id="controls" class="box vertical flex1">
|
|
<div id="commandLineHistory" class="box vertical flex3">
|
|
<div class="toolbar box vertical center">
|
|
<div class="controls box horizontal justify">
|
|
<div class="box flex1">
|
|
<div class="close">
|
|
</div>
|
|
</div>
|
|
<div class="box flex1">
|
|
<div class="minimize">
|
|
</div>
|
|
</div>
|
|
<div class="box flex1">
|
|
<div class="plus">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<i class="icon-home"></i>
|
|
Learn Git Branching
|
|
</div>
|
|
</div>
|
|
<div id="terminal" class="box flex1 horizontal startAlign">
|
|
<div id="commandDisplay" class="box vertical flex1">
|
|
</div>
|
|
</div>
|
|
|
|
<div id="commandLineBar" class="box vertical flex0">
|
|
<div id="prompt" class="box horizontal">
|
|
<span class="promptSign box">$</span>
|
|
<span class="command box"></span>
|
|
<span class="cursor box"> </span>
|
|
</div>
|
|
<textarea id="commandTextField"></textarea>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="mainVisSpace" class="box flex1 horizontal">
|
|
</div>
|
|
</div>
|
|
|
|
<div id="canvasHolder">
|
|
|
|
</div>
|
|
|
|
<!-- Dependencies -->
|
|
<script src="lib/jquery-1.8.0.min.js"></script>
|
|
<script src="lib/jquery-ui-1.9.0.custom.min.js"></script>
|
|
<script src="lib/underscore-min.js"></script>
|
|
<script src="lib/backbone-min.js"></script>
|
|
<script src="lib/backbone.localStorage-min.js"></script>
|
|
<script src="lib/raphael-min.js"></script>
|
|
|
|
<!-- Templates -->
|
|
<script type="text/html" id="command-template">
|
|
<p class="commandLine transitionBackground <%= status %>">
|
|
<span class="prompt">$</span>
|
|
<%= rawStr %>
|
|
<span class="icons transitionAllSlow">
|
|
<i class="icon-exclamation-sign"></i>
|
|
<i class="icon-check-empty"></i>
|
|
<i class="icon-retweet"></i>
|
|
<i class="icon-check"></i>
|
|
</span>
|
|
</p>
|
|
|
|
<div class="commandLineResult <%= resultType %>">
|
|
<%= result %>
|
|
</div>
|
|
|
|
<div class="commandLineWarnings">
|
|
<%= formattedWarnings %>
|
|
</div>
|
|
</script>
|
|
|
|
<script type="text/html" id="level-toolbar-template">
|
|
<div class="toolbar level-toolbar box vertical center transitionAll hidden">
|
|
<div>
|
|
<i class="icon-bolt"></i>
|
|
Level
|
|
<span class="levelToolbarSpan">
|
|
<%= name %>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</script>
|
|
|
|
<script type="text/html" id="modal-view-template">
|
|
<div class="contentHolder box vertical center flex1">
|
|
</div>
|
|
</script>
|
|
|
|
<script type="text/html" id="terminal-window-bare-template">
|
|
<div class="terminal-window-holder box flex3 vertical transitionTransform slideOut">
|
|
<div class="wrapper box vertical">
|
|
<div class="toolbar box vertical center">
|
|
<div class="controls box horizontal justify">
|
|
<div class="box flex1">
|
|
<div class="close">
|
|
</div>
|
|
</div>
|
|
<div class="box flex1">
|
|
<div class="minimize">
|
|
</div>
|
|
</div>
|
|
<div class="box flex1">
|
|
<div class="plus">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<i class="icon-cog"></i>
|
|
<%= title %>
|
|
</div>
|
|
</div>
|
|
<div class="terminal-text">
|
|
<p class="helperText">
|
|
<%= text %>
|
|
</p>
|
|
</div>
|
|
<div class="inside box flex1">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="box flex3">
|
|
</div>
|
|
</script>
|
|
|
|
<script type="text/html" id="terminal-window-template">
|
|
<div class="terminal-window box horizontal flex3 transitionAll">
|
|
<div class="box flex1">
|
|
</div>
|
|
|
|
<div class="terminal-window-holder box flex3 vertical transitionTransform">
|
|
<div class="toolbar box vertical center">
|
|
<div class="controls box horizontal justify">
|
|
<div class="box flex1">
|
|
<div class="close">
|
|
</div>
|
|
</div>
|
|
<div class="box flex1">
|
|
<div class="minimize">
|
|
</div>
|
|
</div>
|
|
<div class="box flex1">
|
|
<div class="plus">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<i class="icon-cog"></i>
|
|
<%= title %>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="inside">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="box flex1">
|
|
</div>
|
|
</div>
|
|
</script>
|
|
|
|
<script type="text/html" id="level-dropdown-view">
|
|
</script>
|
|
|
|
<script type="text/html" id="series-view">
|
|
<div class="displayName">
|
|
<h3> <%= displayName %> </h3>
|
|
</div>
|
|
<p class="about">
|
|
<%= about %>
|
|
</p>
|
|
<div class="iconHolder box horizontal">
|
|
<% for (var i = 0; i < ids.length; i++) { %>
|
|
<div class="levelIcon box center centerAlign vertical" id="levelIcon-<%=ids[i]%>" data-id="<%=ids[i]%>">
|
|
<div class="index box" data-id="<%=ids[i]%>">
|
|
<i class="icon-ok-circle"></i>
|
|
<div class="indexNum" data-id="<%=ids[i]%>">
|
|
<%= i + 1 %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<% } %>
|
|
</div>
|
|
</script>
|
|
|
|
<script type="text/html" id="git-demonstration-view">
|
|
<div class="demonstrationText box vertical">
|
|
<div class="beforeText box flex1 vertical center">
|
|
<p>
|
|
<%= beforeHTML %>
|
|
</p>
|
|
</div>
|
|
|
|
<div class="command box flex1 vertical center centerAlign">
|
|
<p class="uiButton uiButtonYellow transitionOpacity">
|
|
<%= command %>
|
|
</p>
|
|
</div>
|
|
|
|
<div class="afterText box flex1 vertical center transitionOpacity">
|
|
<p>
|
|
<%= afterHTML %>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="visHolder box vertical flex1">
|
|
</div>
|
|
</script>
|
|
|
|
<script type="text/html" id="modal-alert-template">
|
|
<h2>
|
|
<%= title %>
|
|
</h2>
|
|
<p>
|
|
<%= text %>
|
|
</p>
|
|
</script>
|
|
|
|
<script type="text/html" id="interactive-rebase-template">
|
|
<div class="iRebaseDialog wrapper transitionAllSlow">
|
|
<p>
|
|
Rebasing <%= num %> Commits
|
|
</p>
|
|
<p class="helperText">
|
|
(Drag and drop to re-order. Toggle the "pick" button to omit or re-add a commit)
|
|
</p>
|
|
<div class="entryHolders">
|
|
<ul class="rebaseEntries">
|
|
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="confirmCancel">
|
|
</div>
|
|
</div>
|
|
</script>
|
|
|
|
<script type="text/html" id="left-right-template">
|
|
<% if (showLeft) { %>
|
|
<div class="box left">
|
|
<% } else { %>
|
|
<div class="box left hideLeft">
|
|
<% } %>
|
|
<i class="icon-circle-arrow-left"></i>
|
|
</div>
|
|
<div class="box right">
|
|
<% if (!lastNav) { %>
|
|
<i class="icon-circle-arrow-right"></i>
|
|
<% } else { %>
|
|
<i class="icon-ok"></i>
|
|
<% } %>
|
|
</div>
|
|
</script>
|
|
|
|
<script type="text/html" id="confirm-cancel-template">
|
|
<a class="box cancelButton uiButton uiButtonRed">
|
|
<%= cancel %>
|
|
</a>
|
|
<a class="box confirmButton uiButton uiButtonYellow">
|
|
<%= confirm %>
|
|
</a>
|
|
</script>
|
|
|
|
<script type="text/html" id="interactive-rebase-entry-template">
|
|
<li id="<%= id %>" class="rebaseEntry transitionOpacity">
|
|
<div class="wrapper">
|
|
<i class="icon-align-justify"></i>
|
|
<span class="idwrapper">
|
|
<%= id %>
|
|
</span>
|
|
<a id="toggleButton" class="uiButton uiButtonPink">
|
|
Pick
|
|
</a>
|
|
</div>
|
|
</li>
|
|
</script>
|
|
|
|
<!-- The compiled and minified build file (that actually does everything) is below.
|
|
For a much easier time perusing the source, see the individual files at:
|
|
https://github.com/pcottle/learnGitBranching
|
|
-->
|
|
<script src="build/bundle.js"></script>
|
|
|
|
<!-- The advantage of github pages: super-easy, simple, slick static hostic.
|
|
The downside? No raw logs to parse for analytics, so I have to include
|
|
Google analytics :-/ -->
|
|
<script type="text/javascript">
|
|
var _gaq = _gaq || [];
|
|
_gaq.push(['_setAccount', 'UA-37500646-1']);
|
|
_gaq.push(['_trackPageview']);
|
|
(function() {
|
|
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
|
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
|
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
|
})();
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|